Skip to content

Commit e6eff0b

Browse files
author
Sanjay
committed
Merge pull request #12 from sanjaymandadi/Dev
Regen code for Mozu 5.1
2 parents 5acadd1 + 175d999 commit e6eff0b

File tree

30 files changed

+233
-112
lines changed

30 files changed

+233
-112
lines changed

ChangeLog.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Events
2+
0. Added - Product.Product Code Renamed
3+
4+
Operation Params
5+
0. Added - commerce.catalog.admin.products.RenameProductCodes- Param : productCodeRenames
6+
1. Added - commerce.customer.segments.RemoveSegmentAccount- Param : accountId
7+
8+
Operations
9+
0. Added - commerce.catalog.admin.products.RenameProductCodes - POST
10+
1. Added - commerce.customer.segments.RemoveSegmentAccount - DELETE

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"extra": {
2626
"branch-alias": {
27-
"dev-master": "1.7.x-dev"
27+
"dev-master": "1.12.x-dev"
2828
}
2929
}
3030
}

src/Mozu/Api/Clients/Commerce/Catalog/Admin/ProductClient.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
use Mozu\Api\Contracts\ProductAdmin\ProductInCatalogInfo;
2121
use Mozu\Api\Contracts\ProductAdmin\Product;
22+
use Mozu\Api\Contracts\ProductAdmin\ProductCodeRename;
2223
use Mozu\Api\Contracts\ProductAdmin\ProductCollection;
2324

2425
/**
@@ -129,6 +130,20 @@ public static function addProductInCatalogClient($dataViewMode, $productInCatalo
129130

130131
}
131132

133+
/**
134+
*
135+
*
136+
* @param array|ProductCodeRename $productCodeRenames
137+
* @return MozuClient
138+
*/
139+
public static function renameProductCodesClient($productCodeRenames)
140+
{
141+
$url = ProductUrl::renameProductCodesUrl();
142+
$mozuClient = new MozuClient();
143+
return $mozuClient->withResourceUrl($url)->withBody($productCodeRenames);
144+
145+
}
146+
132147
/**
133148
* Updates the properties of a product specific to each catalog associated with the product.
134149
*

src/Mozu/Api/Clients/Commerce/Customer/CustomerSegmentClient.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,17 @@ public static function deleteSegmentClient($id)
118118
}
119119

120120
/**
121-
* Removes the specified customer accounts from a defined customer segment. You must create the request body to perform this operation.
121+
*
122122
*
123-
* @param int $id Unique identifier of the segment from which to remove the customer accounts.
124-
* @param array|int $accountIds List of customer account identifiers to remove from the specified customer segments.
123+
* @param int $accountId
124+
* @param int $id
125125
* @return MozuClient
126126
*/
127-
public static function deleteSegmentAccountsClient($accountIds, $id)
127+
public static function removeSegmentAccountClient($id, $accountId)
128128
{
129-
$url = CustomerSegmentUrl::deleteSegmentAccountsUrl($id);
129+
$url = CustomerSegmentUrl::removeSegmentAccountUrl($accountId, $id);
130130
$mozuClient = new MozuClient();
131-
return $mozuClient->withResourceUrl($url)->withBody($accountIds);
131+
return $mozuClient->withResourceUrl($url);
132132

133133
}
134134

src/Mozu/Api/Clients/Platform/Entitylists/EntityClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static function getEntitiesClient($entityListFullName, $pageSize = null,
6363
*
6464
* @param string $entityListFullName
6565
* @param string $responseFields Use this field to include those fields which are not included by default.
66-
* @param JObject $item
66+
* @param hashtable $item
6767
* @return MozuClient
6868
*/
6969
public static function insertEntityClient($item, $entityListFullName, $responseFields = null)
@@ -80,7 +80,7 @@ public static function insertEntityClient($item, $entityListFullName, $responseF
8080
* @param string $entityListFullName
8181
* @param string $id
8282
* @param string $responseFields Use this field to include those fields which are not included by default.
83-
* @param JObject $item
83+
* @param hashtable $item
8484
* @return MozuClient
8585
*/
8686
public static function updateEntityClient($item, $entityListFullName, $id, $responseFields = null)

src/Mozu/Api/Contracts/CommerceRuntime/Orders/Order.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,8 @@ class Order
206206
*/
207207
public $originalCartId;
208208

209+
public $parentOrderId;
210+
209211
/**
210212
*If this order was created to fulfill an item replacement as part of a return merchandise authorization (RMA), the unique identifier of the return.
211213
*/

src/Mozu/Api/Contracts/CommerceRuntime/Products/ProductOption.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
*/
2020
class ProductOption
2121
{
22+
/**
23+
*If the value if an object, the value selected.
24+
*/
25+
public $value;
26+
2227
/**
2328
*The fully qualified name of the attribute, which is a user defined attribute identifier.
2429
*/
@@ -44,11 +49,6 @@ class ProductOption
4449
*/
4550
public $stringValue;
4651

47-
/**
48-
*If the value if an object, the value selected.
49-
*/
50-
public $value;
51-
5252
}
5353

5454
?>

src/Mozu/Api/Contracts/Content/DocumentListType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,12 @@ class DocumentListType
2424

2525
public $installationPackage;
2626

27-
public $localizationType;
28-
2927
public $name;
3028

3129
public $namespace;
3230

3331
public $scopeType;
3432

35-
public $security;
36-
3733
public $supportsPublishing;
3834

3935
public $usages;

src/Mozu/Api/Contracts/Content/View.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,10 @@
1616

1717
class View
1818
{
19-
public $defaultSort;
20-
21-
/**
22-
*A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. Valid operators include equals (eq), does not equal (ne), greater than (gt), less than (lt), greater than or equal to (ge), less than or equal to (le), starts with (sw), or contains (cont). For example - "filter=IsDisplayed+eq+true"
23-
*/
24-
public $filter;
19+
public $isVisibleInStorefront;
2520

2621
public $name;
2722

28-
public $security;
29-
3023
public $usages;
3124

3225
public $fields;

src/Mozu/Api/Contracts/Content/ViewField.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@
1616

1717
class ViewField
1818
{
19-
public $isQueryable;
20-
21-
public $isSortable;
22-
2319
public $name;
2420

2521
public $target;
2622

27-
public $type;
28-
2923
}
3024

3125
?>

0 commit comments

Comments
 (0)