From 8b36df02499100735d11c7f5218794fbb5f48dc5 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 13 Jun 2025 09:26:47 +0000 Subject: [PATCH] build(codegen): updating SDK --- ...nit-key-by-business-unit-key-orders-request-builder.ts | 6 ++++-- ...in-store-key-by-store-key-me-orders-request-builder.ts | 4 +++- ...ey-in-store-key-by-store-key-orders-request-builder.ts | 4 +++- .../orders/by-project-key-me-orders-request-builder.ts | 5 +++-- .../orders/by-project-key-orders-request-builder.ts | 8 +++++--- packages/platform-sdk/src/generated/models/cart.ts | 2 +- references.txt | 1 + 7 files changed, 20 insertions(+), 10 deletions(-) diff --git a/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 b/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 index cbd766d48..80830adf5 100644 --- a/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 +++ b/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 @@ -128,8 +128,10 @@ export class ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnit } /** * Creates an Order from a [Cart](ctp:api:type:Cart) in a [BusinessUnit](ctp:api:type:BusinessUnit). - * The Cart must have a shipping address set before creating an Order. - * 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. + * + * The Cart must have a shipping address and an active Shipping Method set. + * + * If the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter, an [InvalidOperation](ctp:api:type:InvalidOperationError) is returned. * * Specific Error Codes: * diff --git a/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-me-orders-request-builder.ts b/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-me-orders-request-builder.ts index 464b2e0b0..9d85e5981 100644 --- a/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-me-orders-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-me-orders-request-builder.ts @@ -108,7 +108,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeOrdersRequestBuilder { * * 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. * - * 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). + * 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). * * 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. * diff --git a/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-orders-request-builder.ts b/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-orders-request-builder.ts index c3cfb26a7..18f8589c4 100644 --- a/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-orders-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/orders/by-project-key-in-store-key-by-store-key-orders-request-builder.ts @@ -121,10 +121,12 @@ export class ByProjectKeyInStoreKeyByStoreKeyOrdersRequestBuilder { } /** * Creates an Order from a Cart in a [Store](ctp:api:type:Store). - * Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction). + * The Cart must have a shipping address and an active Shipping Method set. + * * The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode). * * Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message. + * * 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. * 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. * diff --git a/packages/platform-sdk/src/generated/client/orders/by-project-key-me-orders-request-builder.ts b/packages/platform-sdk/src/generated/client/orders/by-project-key-me-orders-request-builder.ts index 58df09e67..83c8f9b4c 100644 --- a/packages/platform-sdk/src/generated/client/orders/by-project-key-me-orders-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/orders/by-project-key-me-orders-request-builder.ts @@ -116,11 +116,12 @@ export class ByProjectKeyMeOrdersRequestBuilder { * * 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. * - * 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). - * Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message. + * 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). * * 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. * + * Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message. + * * 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. * 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. * diff --git a/packages/platform-sdk/src/generated/client/orders/by-project-key-orders-request-builder.ts b/packages/platform-sdk/src/generated/client/orders/by-project-key-orders-request-builder.ts index d024a3fc5..fb01c6c5d 100644 --- a/packages/platform-sdk/src/generated/client/orders/by-project-key-orders-request-builder.ts +++ b/packages/platform-sdk/src/generated/client/orders/by-project-key-orders-request-builder.ts @@ -155,13 +155,15 @@ export class ByProjectKeyOrdersRequestBuilder { } /** * Creates an Order from a Cart. - * Before you create an Order, the Cart must have a [shipping address set](ctp:api:type:CartSetShippingAddressAction). + * + * The Cart must have a shipping address and an active Shipping Method set. + * * The shipping address is used for tax calculation for a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode). * * Creating an Order produces the [OrderCreated](ctp:api:type:OrderCreatedMessage) Message. * - * 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. - * 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. + * 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. + * 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. * * Specific Error Codes: * diff --git a/packages/platform-sdk/src/generated/models/cart.ts b/packages/platform-sdk/src/generated/models/cart.ts index 6adcd9563..95434e239 100644 --- a/packages/platform-sdk/src/generated/models/cart.ts +++ b/packages/platform-sdk/src/generated/models/cart.ts @@ -3790,7 +3790,7 @@ export interface CartSetShippingMethodAction extends ICartUpdateAction { * Value to set. * If empty, any existing value is removed. * - * If the referenced Shipping Method has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned. + * 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. * * */ diff --git a/references.txt b/references.txt index 537a65c40..57aeebc95 100644 --- a/references.txt +++ b/references.txt @@ -417,3 +417,4 @@ fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc 8f053b3f8730a47bc1257e09304a442d35356b9e e68ca35e345e284ffc6281baa6fcfb56a3e93582 b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d +2222db881c7a11c0c0e7a23d0b0165c1fe593281