Skip to content

Commit bda3742

Browse files
build(codegen): updating SDK (#1093)
Co-authored-by: ct-sdks[bot] <153784748+ct-sdks[bot]@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 42d1836 commit bda3742

7 files changed

Lines changed: 20 additions & 10 deletions

packages/platform-sdk/src/generated/client/orders/by-project-key-as-associate-by-associate-id-in-business-unit-key-by-business-unit-key-orders-request-builder.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ export class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnit
128128
}
129129
/**
130130
* Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit).
131-
* The Cart must have a shipping address set before creating an Order.
132-
* 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.
131+
*
132+
* The Cart must have a shipping address and an active Shipping Method set.
133+
*
134+
* If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned.
133135
*
134136
* Specific Error Codes:
135137
*

packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-me-orders-request-builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder {
108108
*
109109
* 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.
110110
*
111-
* 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).
111+
* The Cart must have a shipping address and an active Shipping Method set.
112+
*
113+
* When creating [B2B Orders](/associates-overview#b2b-resources), the Customer must have the `CreateMyOrdersFromMyCarts` [Permission](ctp:api:type:Permission).
112114
*
113115
* 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.
114116
*

packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-orders-request-builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ export class ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder {
121121
}
122122
/**
123123
* Creates an Order from a Cart in a [Store](ctp:api:type:Store).
124-
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
124+
* The Cart must have a shipping address and an active Shipping Method set.
125+
*
125126
* The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
126127
*
127128
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
129+
*
128130
* 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.
129131
* 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.
130132
*

packages/platform-sdk/src/generated/client/orders/by-project-key-me-orders-request-builder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ export class ByProjectKeyMeOrdersRequestBuilder {
116116
*
117117
* 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.
118118
*
119-
* 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).
120-
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
119+
* 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).
121120
*
122121
* 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.
123122
*
123+
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
124+
*
124125
* 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.
125126
* 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.
126127
*

packages/platform-sdk/src/generated/client/orders/by-project-key-orders-request-builder.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,15 @@ export class ByProjectKeyOrdersRequestBuilder {
155155
}
156156
/**
157157
* Creates an Order from a Cart.
158-
* Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction).
158+
*
159+
* The Cart must have a shipping address and an active Shipping Method set.
160+
*
159161
* The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode).
160162
*
161163
* Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message.
162164
*
163-
* 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.
164-
* 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.
165+
* 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.
166+
* 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.
165167
*
166168
* Specific Error Codes:
167169
*

packages/platform-sdk/src/generated/models/cart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3790,7 +3790,7 @@ export interface CartSetShippingMethodAction extends ICartUpdateAction {
37903790
* Value to set.
37913791
* If empty, any existing value is removed.
37923792
*
3793-
* If the referenced Shipping Method has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
3793+
* If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
37943794
*
37953795
*
37963796
*/

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,4 @@ fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc
417417
8f053b3f8730a47bc1257e09304a442d35356b9e
418418
e68ca35e345e284ffc6281baa6fcfb56a3e93582
419419
b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
420+
2222db881c7a11c0c0e7a23d0b0165c1fe593281

0 commit comments

Comments
 (0)