Skip to content

Commit 33db34c

Browse files
committed
Merge branch 'sanjaymandadi-master'
2 parents 6732178 + 50547bc commit 33db34c

File tree

281 files changed

+7219
-322
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+7219
-322
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.17.x-dev"
30+
"dev-master": "1.18.x-dev"
3131
}
3232
}
3333
}

src/Clients/Commerce/Carts/AppliedDiscountClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
/**
20-
* Use the Cart Coupons resource to apply a coupon to a defined cart or remove a coupon from a cart. When the shopper proceeds to checkout, the coupons applied to the cart apply to the order.
20+
* Use the Cart Coupons subresource to apply a coupon to a defined cart or remove a coupon from a cart. When the shopper proceeds to checkout, the coupons applied to the cart apply to the order.
2121
*/
2222
class AppliedDiscountClient {
2323

@@ -39,7 +39,7 @@ public static function applyCouponClient($cartId, $couponCode, $responseFields =
3939
}
4040

4141
/**
42-
* Removes one or more applied coupons from the cart specified in the request.
42+
* Removes all coupons from the cart specified in the request.
4343
*
4444
* @param string $cartId Identifier of the cart to delete.
4545
* @return MozuClient

src/Clients/Commerce/Carts/ExtendedPropertyClient.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818

1919
/**
20-
* commerce/carts/cartextendedproperties related resources. DOCUMENT_HERE
20+
* Use the Cart Extended Properties subresource to store an arbitrary number of cart extended properties such as tracking strings, marketing sources, affiliates, sales personnel/data, and so on, on a per cart basis. Each cart may have none, one, or more than one entry in the extended properties collection, and all values in the extended properties collection are represented as strings. When you create an order from a cart, all extended properties are retained from the cart and copied to the order. Refer to the subresource for more information about order extended properties.
2121
*/
2222
class ExtendedPropertyClient {
2323

2424
/**
25-
* carts-cartextendedproperties Get GetExtendedProperties description DOCUMENT_HERE
25+
* Retrieves a list of cart extended properties specified in the request.
2626
*
2727
* @return MozuClient
2828
*/
@@ -36,7 +36,7 @@ public static function getExtendedPropertiesClient()
3636
}
3737

3838
/**
39-
* carts-cartextendedproperties Post AddExtendedProperties description DOCUMENT_HERE
39+
* Adds one or more specified extended properties to the carts extended properties collection.
4040
*
4141
* @param array|ExtendedProperty $extendedProperties Mozu.CommerceRuntime.Contracts.Commerce.ExtendedProperty ApiType DOCUMENT_HERE
4242
* @return MozuClient
@@ -51,7 +51,7 @@ public static function addExtendedPropertiesClient($extendedProperties)
5151
}
5252

5353
/**
54-
* carts-cartextendedproperties Put UpdateExtendedProperty description DOCUMENT_HERE
54+
* Updates one or more details of the extended property specified in the request.
5555
*
5656
* @param string $key
5757
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
@@ -69,9 +69,9 @@ public static function updateExtendedPropertyClient($extendedProperty, $key, $up
6969
}
7070

7171
/**
72-
* carts-cartextendedproperties Put UpdateExtendedProperties description DOCUMENT_HERE
72+
* Updates one or more details of the extended properties specified in the request.
7373
*
74-
* @param bool $upsert
74+
* @param bool $upsert Any set of key value pairs to be stored in the extended properties of a cart.
7575
* @param array|ExtendedProperty $extendedProperties Mozu.CommerceRuntime.Contracts.Commerce.ExtendedProperty ApiType DOCUMENT_HERE
7676
* @return MozuClient
7777
*/
@@ -85,7 +85,7 @@ public static function updateExtendedPropertiesClient($extendedProperties, $upse
8585
}
8686

8787
/**
88-
* carts-cartextendedproperties Delete DeleteExtendedProperties description DOCUMENT_HERE
88+
* Deletes the extended properties cart extended properties collection.
8989
*
9090
* @param array|string $keys
9191
*/
@@ -99,7 +99,7 @@ public static function deleteExtendedPropertiesClient($keys)
9999
}
100100

101101
/**
102-
* carts-cartextendedproperties Delete DeleteExtendedProperty description DOCUMENT_HERE
102+
* Deletes a specific extended property from the cart extended property collection.
103103
*
104104
* @param string $key
105105
*/

src/Clients/Commerce/Catalog/Admin/Attributedefinition/ProductTypeClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
namespace Mozu\Api\Clients\Commerce\Catalog\Admin\Attributedefinition;
1414

15-
use Mozu\Api\Headers;
1615
use Mozu\Api\MozuClient;
1716
use Mozu\Api\Urls\Commerce\Catalog\Admin\Attributedefinition\ProductTypeUrl;
1817

18+
use Mozu\Api\Headers;
19+
1920
/**
2021
* Use the Product Types resource to manage the types for your product catalog. Product types act as configuration templates, which store a set of attributes common to all products associated with that type. Unlike categories, products can only be associated with a single product type.
2122
*/

src/Clients/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeExtraClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
namespace Mozu\Api\Clients\Commerce\Catalog\Admin\Attributedefinition\Producttypes;
1414

15-
use Mozu\Api\Headers;
1615
use Mozu\Api\MozuClient;
1716
use Mozu\Api\Urls\Commerce\Catalog\Admin\Attributedefinition\Producttypes\ProductTypeExtraUrl;
1817

18+
use Mozu\Api\Headers;
19+
1920
/**
2021
* Use the Extras subresource to define how a product attribute classified as an "extra" is used for a specific product type. Product attribute defintions are unique for each associated product type.
2122
*/

src/Clients/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypeOptionClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
namespace Mozu\Api\Clients\Commerce\Catalog\Admin\Attributedefinition\Producttypes;
1414

15-
use Mozu\Api\Headers;
1615
use Mozu\Api\MozuClient;
1716
use Mozu\Api\Urls\Commerce\Catalog\Admin\Attributedefinition\Producttypes\ProductTypeOptionUrl;
1817

18+
use Mozu\Api\Headers;
19+
1920
/**
2021
* Use the Options subresource to define how an option attribute is used for a specific product type. Product attribute definitions are unique for each associated product type.
2122
*/

src/Clients/Commerce/Catalog/Admin/Attributedefinition/Producttypes/ProductTypePropertyClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
namespace Mozu\Api\Clients\Commerce\Catalog\Admin\Attributedefinition\Producttypes;
1414

15-
use Mozu\Api\Headers;
1615
use Mozu\Api\MozuClient;
1716
use Mozu\Api\Urls\Commerce\Catalog\Admin\Attributedefinition\Producttypes\ProductTypePropertyUrl;
1817

18+
use Mozu\Api\Headers;
19+
1920
/**
2021
* Use the Properties subresource to define how property product attributes are used for a specific product type. Product attribute definitions are unique for each associated product type.
2122
*/

src/Clients/Commerce/Catalog/Admin/CategoryClient.php

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,42 @@ public static function addCategoryClient($category, $incrementSequence = null,
8989

9090
}
9191

92+
/**
93+
* admin-categories Post ValidateDynamicExpression description DOCUMENT_HERE
94+
*
95+
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
96+
* @param DynamicExpression $dynamicExpressionIn Mozu.ProductAdmin.Contracts.DynamicExpression ApiType DOCUMENT_HERE
97+
* @return MozuClient
98+
*/
99+
public static function validateDynamicExpressionClient($dynamicExpressionIn, $responseFields = null)
100+
{
101+
$url = CategoryUrl::validateDynamicExpressionUrl($responseFields);
102+
$mozuClient = new MozuClient();
103+
$mozuClient->withResourceUrl($url)->withBody($dynamicExpressionIn);
104+
return $mozuClient;
105+
106+
}
107+
108+
/**
109+
* admin-categories Post ValidateRealTimeDynamicExpression description DOCUMENT_HERE
110+
*
111+
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
112+
* @param DynamicExpression $dynamicExpressionIn Mozu.ProductAdmin.Contracts.DynamicExpression ApiType DOCUMENT_HERE
113+
* @return MozuClient
114+
*/
115+
public static function validateRealTimeDynamicExpressionClient($dynamicExpressionIn, $responseFields = null)
116+
{
117+
$url = CategoryUrl::validateRealTimeDynamicExpressionUrl($responseFields);
118+
$mozuClient = new MozuClient();
119+
$mozuClient->withResourceUrl($url)->withBody($dynamicExpressionIn);
120+
return $mozuClient;
121+
122+
}
123+
92124
/**
93125
* Update the properties of a defined category or move it to another location in the category hierarchy. Because this operation replaces the defined resource,include all the information to maintain for the category in the request.
94126
*
95-
* @param bool $cascadeVisibility If true, when changing the display option for the category, change it for all subcategories also. Default: False.
127+
* @param bool $cascadeVisibility If true, when changing the display option for the category, change it for all subcategories also. The default value is false.
96128
* @param int $categoryId Unique identifier of the category to modify.
97129
* @param string $responseFields Use this field to include those fields which are not included by default.
98130
* @param Category $category A descriptive container that groups products. A category is merchant defined with associated products and discounts as configured. GThe storefront displays products in a hierarchy of categories. As such, categories can include a nesting of sub-categories to organize products and product options per set guidelines such as color, brand, material, and size.
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<?php
2+
3+
4+
/**
5+
* <auto-generated>
6+
* This code was generated by Codezu.
7+
*
8+
* Changes to this file may cause incorrect behavior and will be lost if
9+
* the code is regenerated.
10+
* </auto-generated>
11+
*/
12+
13+
namespace Mozu\Api\Clients\Commerce\Catalog\Admin;
14+
15+
use Mozu\Api\MozuClient;
16+
use Mozu\Api\Urls\Commerce\Catalog\Admin\CouponSetUrl;
17+
18+
19+
/**
20+
* commerce/catalog/admin/couponsets related resources. DOCUMENT_HERE
21+
*/
22+
class CouponSetClient {
23+
24+
/**
25+
* Returns a paged collection of CouponSets
26+
*
27+
* @param string $filter A set of filter expressions representing the search parameters for a query: eq=equals, ne=not equals, gt=greater than, lt = less than or equals, gt = greater than or equals, lt = less than or equals, sw = starts with, or cont = contains. Optional.
28+
* @param bool $includeCounts
29+
* @param int $pageSize The number of results to display on each page when creating paged results from a query. The amount is divided and displayed on the `pageCount `amount of pages. The default is 20 and maximum value is 200 per page.
30+
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
31+
* @param string $sortBy The element to sort the results by and the channel in which the results appear. Either ascending (a-z) or descending (z-a) channel. Optional.
32+
* @param int $startIndex When creating paged results from a query, this value indicates the zero-based offset in the complete result set where the returned entities begin. For example, with a `pageSize `of 25, to get the 51st through the 75th items, use `startIndex=3`.
33+
* @return MozuClient
34+
*/
35+
public static function getCouponSetsClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $includeCounts = null, $responseFields = null)
36+
{
37+
$url = CouponSetUrl::getCouponSetsUrl($filter, $includeCounts, $pageSize, $responseFields, $sortBy, $startIndex);
38+
$mozuClient = new MozuClient();
39+
$mozuClient->withResourceUrl($url);
40+
return $mozuClient;
41+
42+
}
43+
44+
/**
45+
*
46+
*
47+
* @param string $couponSetCode
48+
* @param bool $includeCounts
49+
* @param string $responseFields
50+
* @return MozuClient
51+
*/
52+
public static function getCouponSetClient($couponSetCode, $includeCounts = null, $responseFields = null)
53+
{
54+
$url = CouponSetUrl::getCouponSetUrl($couponSetCode, $includeCounts, $responseFields);
55+
$mozuClient = new MozuClient();
56+
$mozuClient->withResourceUrl($url);
57+
return $mozuClient;
58+
59+
}
60+
61+
/**
62+
* Returns a random 4 character code that is unique as a coupon set code.
63+
*
64+
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
65+
* @return MozuClient
66+
*/
67+
public static function getUniqueCouponSetCodeClient($responseFields = null)
68+
{
69+
$url = CouponSetUrl::getUniqueCouponSetCodeUrl($responseFields);
70+
$mozuClient = new MozuClient();
71+
$mozuClient->withResourceUrl($url);
72+
return $mozuClient;
73+
74+
}
75+
76+
/**
77+
* Adds a single
78+
*
79+
* @param string $responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
80+
* @param CouponSet $couponSet Mozu.ProductAdmin.Contracts.CouponSet ApiType DOCUMENT_HERE
81+
* @return MozuClient
82+
*/
83+
public static function addCouponSetClient($couponSet, $responseFields = null)
84+
{
85+
$url = CouponSetUrl::addCouponSetUrl($responseFields);
86+
$mozuClient = new MozuClient();
87+
$mozuClient->withResourceUrl($url)->withBody($couponSet);
88+
return $mozuClient;
89+
90+
}
91+
92+
/**
93+
* Tests code for uniqueness and validity
94+
*
95+
* @param string $code User-defined code that uniqely identifies the channel group.
96+
*/
97+
public static function validateUniqueCouponSetCodeClient($code)
98+
{
99+
$url = CouponSetUrl::validateUniqueCouponSetCodeUrl($code);
100+
$mozuClient = new MozuClient();
101+
$mozuClient->withResourceUrl($url);
102+
return $mozuClient;
103+
104+
}
105+
106+
/**
107+
*
108+
*
109+
* @param string $couponSetCode
110+
* @param string $responseFields
111+
* @param CouponSet $couponSet
112+
* @return MozuClient
113+
*/
114+
public static function updateCouponSetClient($couponSet, $couponSetCode, $responseFields = null)
115+
{
116+
$url = CouponSetUrl::updateCouponSetUrl($couponSetCode, $responseFields);
117+
$mozuClient = new MozuClient();
118+
$mozuClient->withResourceUrl($url)->withBody($couponSet);
119+
return $mozuClient;
120+
121+
}
122+
123+
/**
124+
*
125+
*
126+
* @param string $couponSetCode
127+
*/
128+
public static function deleteCouponSetClient($couponSetCode)
129+
{
130+
$url = CouponSetUrl::deleteCouponSetUrl($couponSetCode);
131+
$mozuClient = new MozuClient();
132+
$mozuClient->withResourceUrl($url);
133+
return $mozuClient;
134+
135+
}
136+
137+
138+
}
139+
140+
?>
141+

0 commit comments

Comments
 (0)