Skip to content

Commit ce70266

Browse files
update sdk for latest slingshot changes 1.1940.19275
1 parent 5b7ab74 commit ce70266

File tree

15 files changed

+101
-76
lines changed

15 files changed

+101
-76
lines changed

src/Clients/Commerce/OrderClient.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class OrderClient {
2626
*
2727
* @param string $filter A set of expressions that consist of a field, operator, and value and represent search parameter syntax when filtering results of a query. You can filter an order's search results by any of its properties, including status, contact information, or total. 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=Status+eq+Submitted"
2828
* @param bool $includeBin
29+
* @param string $mode
2930
* @param int $pageSize Used to page results from a query. Indicates the maximum number of entities to return from a query. Default value: 20. Max value: 200.
3031
* @param string $q A list of order search terms to use in the query when searching across order number and the name or email of the billing contact. Separate multiple search terms with a space character.
3132
* @param int $qLimit The maximum number of search results to return in the response. You can limit any range between 1-100.
@@ -34,9 +35,9 @@ class OrderClient {
3435
* @param int $startIndex
3536
* @return MozuClient
3637
*/
37-
public static function getOrdersClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $q = null, $qLimit = null, $includeBin = null, $responseFields = null)
38+
public static function getOrdersClient($startIndex = null, $pageSize = null, $sortBy = null, $filter = null, $q = null, $qLimit = null, $includeBin = null, $mode = null, $responseFields = null)
3839
{
39-
$url = OrderUrl::getOrdersUrl($filter, $includeBin, $pageSize, $q, $qLimit, $responseFields, $sortBy, $startIndex);
40+
$url = OrderUrl::getOrdersUrl($filter, $includeBin, $mode, $pageSize, $q, $qLimit, $responseFields, $sortBy, $startIndex);
4041
$mozuClient = new MozuClient();
4142
$mozuClient->withResourceUrl($url);
4243
return $mozuClient;
@@ -78,13 +79,14 @@ public static function getTaxableOrdersClient($orderId)
7879
*
7980
* @param bool $draft If true, retrieve the draft version of the order, which might include uncommitted changes to the order or its components.
8081
* @param bool $includeBin
82+
* @param string $mode
8183
* @param string $orderId Unique identifier of the order details to get.
8284
* @param string $responseFields
8385
* @return MozuClient
8486
*/
85-
public static function getOrderClient($orderId, $draft = null, $includeBin = null, $responseFields = null)
87+
public static function getOrderClient($orderId, $draft = null, $includeBin = null, $mode = null, $responseFields = null)
8688
{
87-
$url = OrderUrl::getOrderUrl($draft, $includeBin, $orderId, $responseFields);
89+
$url = OrderUrl::getOrderUrl($draft, $includeBin, $mode, $orderId, $responseFields);
8890
$mozuClient = new MozuClient();
8991
$mozuClient->withResourceUrl($url);
9092
return $mozuClient;

src/Clients/Platform/Adminuser/RoleClient.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ class RoleClient {
2525
*
2626
*
2727
* @param string $filter
28-
* @param int $pageSize
2928
* @param string $responseFields
30-
* @param int $startIndex
3129
* @return MozuClient
3230
*/
33-
public static function getRolesClient($startIndex = null, $pageSize = null, $filter = null, $responseFields = null)
31+
public static function getRolesClient($filter = null, $responseFields = null)
3432
{
35-
$url = RoleUrl::getRolesUrl($filter, $pageSize, $responseFields, $startIndex);
33+
$url = RoleUrl::getRolesUrl($filter, $responseFields);
3634
$mozuClient = new MozuClient();
3735
$mozuClient->withResourceUrl($url);
3836
return $mozuClient;

src/Contracts/CommerceRuntime/Fulfillment/CanceledItem.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,30 @@ class CanceledItem
6464

6565
public $shippingTax;
6666

67+
public $taxableHandling;
68+
69+
public $taxableLineItemCost;
70+
71+
public $taxableShipping;
72+
6773
public $unitPrice;
6874

6975
public $variationProductCode;
7076

77+
public $weightedDutyAdjustment;
78+
79+
public $weightedHandlingAdjustment;
80+
81+
public $weightedHandlingTaxAdjustment;
82+
83+
public $weightedLineItemTaxAdjustment;
84+
85+
public $weightedShipmentAdjustment;
86+
87+
public $weightedShippingAdjustment;
88+
89+
public $weightedShippingTaxAdjustment;
90+
7191
public $auditInfo;
7292

7393
public $canceledReason;

src/Contracts/CommerceRuntime/Fulfillment/ShipmentItem.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,32 @@ class ShipmentItem
6464

6565
public $shippingTax;
6666

67+
public $taxableHandling;
68+
69+
public $taxableLineItemCost;
70+
71+
public $taxableShipping;
72+
6773
public $unitPrice;
6874

6975
public $variationProductCode;
7076

77+
public $weightedDutyAdjustment;
78+
79+
public $weightedHandlingAdjustment;
80+
81+
public $weightedHandlingTaxAdjustment;
82+
83+
public $weightedLineItemTaxAdjustment;
84+
85+
public $weightedShipmentAdjustment;
86+
87+
public $weightedShippingAdjustment;
88+
89+
public $weightedShippingTaxAdjustment;
90+
91+
public $auditInfo;
92+
7193
public $data;
7294

7395
public $measurements;

src/Contracts/CommerceRuntime/Fulfillment/ShipmentItemAdjustment.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616

1717
class ShipmentItemAdjustment
1818
{
19-
public $actualPrice;
20-
21-
public $unitTax;
19+
public $overridePrice;
2220

2321
}
2422

src/Contracts/CommerceRuntime/Orders/Order.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ class Order
117117

118118
public $isTaxExempt;
119119

120+
public $isUnified;
121+
120122
public $itemTaxTotal;
121123

122124
public $lastValidationDate;

src/Contracts/CommerceRuntime/Orders/OrderReturnableItem.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616

1717
class OrderReturnableItem
1818
{
19+
public $fulfillmentStatus;
20+
21+
public $orderItemId;
22+
23+
public $orderItemOptionAttributeFQN;
24+
25+
public $orderLineId;
26+
27+
public $parentProductCode;
28+
29+
public $parentProductName;
30+
1931
public $productCode;
2032

2133
public $productName;
@@ -28,7 +40,11 @@ class OrderReturnableItem
2840

2941
public $quantityReturned;
3042

31-
public $items;
43+
public $shipmentItemId;
44+
45+
public $shipmentNumber;
46+
47+
public $unitQuantity;
3248

3349
}
3450

src/Contracts/CommerceRuntime/Orders/ReturnableShipItem.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/Contracts/Core/Behavior.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
*/
2020
class Behavior
2121
{
22+
public $categoryId;
23+
2224
public $id;
2325

2426
public $isPrivate;
@@ -34,8 +36,6 @@ class Behavior
3436

3537
public $validUserTypes;
3638

37-
public $categoryId;
38-
3939
}
4040

4141
?>

src/Contracts/MZDB/EntityContainerCollection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
class EntityContainerCollection
1818
{
19+
public $startIndex;
20+
1921
public $pageCount;
2022

2123
public $pageSize;
2224

23-
public $startIndex;
24-
2525
public $totalCount;
2626

2727
public $items;

0 commit comments

Comments
 (0)