Skip to content

Commit 7146b7c

Browse files
Merge pull request #384 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 1f57b9f + b2b2876 commit 7146b7c

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,10 @@ $request = $builder
718718
## `withProjectKey("projectKey")->asAssociate()->withAssociateIdValue("associateId")->inBusinessUnitKeyWithBusinessUnitKeyValue("businessUnitKey")->orders()->post(null)`
719719

720720
Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
721-
The Cart must have a shipping address set before creating an Order.
722-
Creating an Order fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
721+
722+
The Cart must have a shipping address and an active Shipping Method set.
723+
724+
If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned.
723725

724726
Specific Error Codes:
725727

@@ -5063,7 +5065,9 @@ $request = $builder
50635065

50645066
Creates an Order from a Cart in a [Store](ctp:api:type:Store) for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
50655067

5066-
The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
5068+
The Cart must have a shipping address and an active Shipping Method set.
5069+
5070+
When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
50675071

50685072
If the Cart's `customerId` does not match the [customer:{id}](/scopes#composable-commerce-oauth) scope, or the `anonymousId` does not match the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
50695073

@@ -5507,10 +5511,12 @@ $request = $builder
55075511
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->orders()->post(null)`
55085512

55095513
Creates an Order from a Cart in a [Store](ctp:api:type:Store).
5510-
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
5514+
The Cart must have a shipping address and an active Shipping Method set.
5515+
55115516
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
55125517

55135518
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
5519+
55145520
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
55155521
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
55165522

@@ -7451,11 +7457,12 @@ $request = $builder
74517457

74527458
Creates an Order from a Cart for the Customer or anonymous user. The `customerId` or `anonymousId` field on the Order is automatically set based on the [customer:{id}](/scopes#composable-commerce-oauth) or [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope.
74537459

7454-
The Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction) for taxes to be calculated. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
7455-
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7460+
The Cart must have a shipping address and an active Shipping Method set. When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
74567461

74577462
If the Cart's `customerId` does not match the [customer:{id}](/scopes#composable-commerce-oauth) scope, or the `anonymousId` does not match the [anonymous_id:{id}](/scopes#composable-commerce-oauth) scope, a [ResourceNotFound](ctp:api:type:ResourceNotFoundError) error is returned.
74587463

7464+
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
7465+
74597466
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
74607467
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
74617468

@@ -8319,13 +8326,15 @@ $request = $builder
83198326
## `withProjectKey("projectKey")->orders()->post(null)`
83208327

83218328
Creates an Order from a Cart.
8322-
Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
8329+
8330+
The Cart must have a shipping address and an active Shipping Method set.
8331+
83238332
The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
83248333

83258334
Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
83268335

8327-
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
8328-
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
8336+
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned.
8337+
If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
83298338

83308339
Specific Error Codes:
83318340

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ 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 has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</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>
2424
*
2525
2626
* @return null|ShippingMethodResourceIdentifier

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ 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 has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</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>
4141
*
4242
4343
* @return null|ShippingMethodResourceIdentifier

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ 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 has a predicate that does not match the Cart, an <a href="ctp:api:type:InvalidOperationError">InvalidOperation</a> error is returned.</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>
7979
*
8080
*
8181
* @return null|ShippingMethodResourceIdentifier

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,4 @@ fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc
423423
8f053b3f8730a47bc1257e09304a442d35356b9e
424424
e68ca35e345e284ffc6281baa6fcfb56a3e93582
425425
b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
426+
2222db881c7a11c0c0e7a23d0b0165c1fe593281

0 commit comments

Comments
 (0)