Skip to content

Commit 1529c80

Browse files
committed
build(codegen): updating SDK
1 parent fa6b52c commit 1529c80

31 files changed

Lines changed: 1037 additions & 15 deletions

changes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@
160160
- added property `discounts` to type `Project`
161161
- added property `priceRoundingMode` to type `QuoteRequest`
162162
- added property `priceRoundingMode` to type `Quote`
163+
- added property `stores` to type `ShippingMethod`
164+
- added property `stores` to type `ShippingMethodDraft`
163165
- added property `businessUnit` to type `ShoppingList`
164166
- added property `businessUnit` to type `ShoppingListDraft`
165167
- added property `published` to type `ShoppingListLineItem`
@@ -581,6 +583,9 @@
581583
- added type `ReservationState`
582584
- added type `SearchFuzzyExpression`
583585
- added type `SearchFuzzyValue`
586+
- added type `ShippingMethodAddStoreAction`
587+
- added type `ShippingMethodRemoveStoreAction`
588+
- added type `ShippingMethodSetStoresAction`
584589
- added type `ShoppingListSetBusinessUnitAction`
585590
- added type `EventDeliveryPayload`
586591
- added type `EventSubscription`

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,11 @@ $request = $builder
21882188

21892189
Creates a Cart in the Project.
21902190

2191-
If the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match, or if the Shipping Method is not active, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
2191+
An [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned in one of the following cases:
2192+
1. If the referenced Shipping Method has a predicate that does not match the Cart.
2193+
2. If the referenced Shipping Method is not active.
2194+
3. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
2195+
4. If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.
21922196

21932197
When using [InventoryMode](ctp:api:type:InventoryMode) `ReserveOnCart`:
21942198
- If only some Line Items can be reserved, the Cart creation succeeds, however, the items that could not be reserved are removed and reservation warnings are returned in the response.
@@ -4329,7 +4333,10 @@ $request = $builder
43294333

43304334
Creates a Cart in a [Store](ctp:api:type:Store).
43314335

4332-
If the referenced [ShippingMethod](ctp:api:type:ShippingMethod) in the [CartDraft](ctp:api:type:CartDraft) has a predicate that does not match, or if the Shipping Method is not active, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
4336+
An [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned in one of the following cases:
4337+
1. If the referenced Shipping Method has a predicate that does not match the Cart.
4338+
2. If the referenced Shipping Method is not active.
4339+
3. If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.
43334340

43344341
Specific Error Codes:
43354342

lib/commercetools-api/src/Models/Cart/CartAddShippingMethodAction.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ public function getShippingKey();
3535

3636
/**
3737
* <p>ResourceIdentifier to a <a href="ctp:api:type:ShippingMethod">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="ctp:api:type:ShippingMode">ShippingMode</a>.
38-
* If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
38+
* <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
39+
* <ol>
40+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
41+
* <li>If the referenced Shipping Method is not active.</li>
42+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
43+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
44+
* </ol>
3945
*
4046
4147
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Cart/CartAddShippingMethodActionBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,13 @@ public function getShippingKey()
8282

8383
/**
8484
* <p>ResourceIdentifier to a <a href="ctp:api:type:ShippingMethod">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="ctp:api:type:ShippingMode">ShippingMode</a>.
85-
* If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
85+
* <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
86+
* <ol>
87+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
88+
* <li>If the referenced Shipping Method is not active.</li>
89+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
90+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
91+
* </ol>
8692
*
8793
8894
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Cart/CartAddShippingMethodActionModel.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,13 @@ public function getShippingKey()
139139

140140
/**
141141
* <p>ResourceIdentifier to a <a href="ctp:api:type:ShippingMethod">ShippingMethod</a> to add to the Cart with <code>Multiple</code> <a href="ctp:api:type:ShippingMode">ShippingMode</a>.
142-
* If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
142+
* <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
143+
* <ol>
144+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
145+
* <li>If the referenced Shipping Method is not active.</li>
146+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
147+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
148+
* </ol>
143149
*
144150
*
145151
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Cart/CartSetShippingMethodAction.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ interface CartSetShippingMethodAction extends CartUpdateAction
2020
/**
2121
* <p>Value to set.
2222
* If empty, any existing value is removed.</p>
23-
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
23+
* <p><a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
24+
* <ol>
25+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
26+
* <li>If the referenced Shipping Method is not active.</li>
27+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
28+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
29+
* </ol>
2430
*
2531
2632
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Cart/CartSetShippingMethodActionBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ final class CartSetShippingMethodActionBuilder implements Builder
3737
/**
3838
* <p>Value to set.
3939
* If empty, any existing value is removed.</p>
40-
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
40+
* <p><a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
41+
* <ol>
42+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
43+
* <li>If the referenced Shipping Method is not active.</li>
44+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
45+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
46+
* </ol>
4147
*
4248
4349
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Cart/CartSetShippingMethodActionModel.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ public function getAction()
7575
/**
7676
* <p>Value to set.
7777
* If empty, any existing value is removed.</p>
78-
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
78+
* <p><a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
79+
* <ol>
80+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
81+
* <li>If the referenced Shipping Method is not active.</li>
82+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
83+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
84+
* </ol>
7985
*
8086
*
8187
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Me/MyCartSetShippingMethodAction.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ interface MyCartSetShippingMethodAction extends MyCartUpdateAction
2121
/**
2222
* <p>Value to set.
2323
* If empty, any existing value is removed.</p>
24-
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
24+
* <p><a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
25+
* <ol>
26+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
27+
* <li>If the referenced Shipping Method is not active.</li>
28+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
29+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
30+
* </ol>
2531
*
2632
2733
* @return null|ShippingMethodResourceIdentifier

lib/commercetools-api/src/Models/Me/MyCartSetShippingMethodActionBuilder.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ final class MyCartSetShippingMethodActionBuilder implements Builder
3939
/**
4040
* <p>Value to set.
4141
* If empty, any existing value is removed.</p>
42-
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</p>
42+
* <p><a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned in one of the following cases:</p>
43+
* <ol>
44+
* <li>If the referenced Shipping Method has a predicate that does not match the Cart.</li>
45+
* <li>If the referenced Shipping Method is not active.</li>
46+
* <li>If the referenced Shipping Method is associated with a Store that is different from the Cart's Store.</li>
47+
* <li>If the referenced Shipping Method is associated with a Store and the Cart is not associated with any Store.</li>
48+
* </ol>
4349
*
4450
4551
* @return null|ShippingMethodResourceIdentifier

0 commit comments

Comments
 (0)