From 810bc5761c019a0b8eb59f239cbcc432dab4fee7 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 21 Dec 2023 13:53:19 +0000
Subject: [PATCH 01/28] build(codegen): updating SDK
---
changes.md | 7 ++++++
.../src/generated/models/error.ts | 24 -------------------
references.txt | 1 +
3 files changed, 8 insertions(+), 24 deletions(-)
diff --git a/changes.md b/changes.md
index 1691dd287..8eef5a3aa 100644
--- a/changes.md
+++ b/changes.md
@@ -27,6 +27,13 @@
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse`
+
+Removed Type(s)
+
+- :warning: removed type `NotEnabledError`
+- :warning: removed type `GraphQLNotEnabledError`
+
+
**History changes**
diff --git a/packages/platform-sdk/src/generated/models/error.ts b/packages/platform-sdk/src/generated/models/error.ts
index ccebf87d0..6f9ecfe7d 100644
--- a/packages/platform-sdk/src/generated/models/error.ts
+++ b/packages/platform-sdk/src/generated/models/error.ts
@@ -96,7 +96,6 @@ export type ErrorObject =
| MissingTaxRateForCountryError
| MoneyOverflowError
| NoMatchingProductDiscountFoundError
- | NotEnabledError
| ObjectNotFoundError
| OutOfStockError
| OverCapacityError
@@ -1443,20 +1442,6 @@ export interface NoMatchingProductDiscountFoundError {
*/
readonly message: string
}
-/**
- * Returned when the [Project-specific category recommendations feature](/../api/projects/categoryRecommendations#project-specific-category-recommendations) is not enabled for the Project.
- *
- */
-export interface NotEnabledError {
- readonly code: 'NotEnabled'
- [key: string]: any
- /**
- * `"The category recommendations API is not yet enabled for your project."`
- *
- *
- */
- readonly message: string
-}
/**
* Returned when the requested resource was not found.
*
@@ -2041,7 +2026,6 @@ export type GraphQLErrorObject =
| GraphQLMissingTaxRateForCountryError
| GraphQLMoneyOverflowError
| GraphQLNoMatchingProductDiscountFoundError
- | GraphQLNotEnabledError
| GraphQLObjectNotFoundError
| GraphQLOutOfStockError
| GraphQLOverCapacityError
@@ -3007,14 +2991,6 @@ export interface GraphQLNoMatchingProductDiscountFoundError {
readonly code: 'NoMatchingProductDiscountFound'
[key: string]: any
}
-/**
- * Returned when the [Project-specific category recommendations feature](/../api/projects/categoryRecommendations#project-specific-category-recommendations) is not enabled for the Project.
- *
- */
-export interface GraphQLNotEnabledError {
- readonly code: 'NotEnabled'
- [key: string]: any
-}
/**
* Returned when the requested resource was not found.
*
diff --git a/references.txt b/references.txt
index 39c27afe3..e5165111c 100644
--- a/references.txt
+++ b/references.txt
@@ -207,3 +207,4 @@ c633a41c164e2dbf2201dd9856c18d5336b0ac5d
70d15e13efcbf54dd231b1f2cfbec50da95de1a3
8f05884799f311b3f09307fb57c2846383c96371
de39b32f1f157ed82869e1c07c1963615d571f87
+d29ffbb65f68b7dd7623956b7e6151454bea2fea
From b08599783318c836584e22cfd607cf32813c9585 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 21 Dec 2023 13:57:13 +0000
Subject: [PATCH 02/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index e5165111c..ab0b819fc 100644
--- a/references.txt
+++ b/references.txt
@@ -208,3 +208,4 @@ c633a41c164e2dbf2201dd9856c18d5336b0ac5d
8f05884799f311b3f09307fb57c2846383c96371
de39b32f1f157ed82869e1c07c1963615d571f87
d29ffbb65f68b7dd7623956b7e6151454bea2fea
+f94a9a687588e4e941100ac3a4a25d55058a6016
From e55d4105004cba12a10869b629ae9a9b65cdefc4 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 27 Dec 2023 14:44:50 +0000
Subject: [PATCH 03/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index ab0b819fc..819549492 100644
--- a/references.txt
+++ b/references.txt
@@ -209,3 +209,4 @@ c633a41c164e2dbf2201dd9856c18d5336b0ac5d
de39b32f1f157ed82869e1c07c1963615d571f87
d29ffbb65f68b7dd7623956b7e6151454bea2fea
f94a9a687588e4e941100ac3a4a25d55058a6016
+e5585a5cbf8c346ba1b8b87fcc2ae704047c5898
From 50c9de0e8ff22cd401b075e8ad0ee65c8d6d4a6e Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 3 Jan 2024 10:55:40 +0000
Subject: [PATCH 04/28] build(codegen): updating SDK
---
...-by-store-key-product-projections-by-id-request-builder.ts | 4 +++-
...tore-key-product-projections-key-by-key-request-builder.ts | 4 +++-
references.txt | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-by-id-request-builder.ts b/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-by-id-request-builder.ts
index 6c3730dec..9ee680b0a 100644
--- a/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-by-id-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-by-id-request-builder.ts
@@ -22,10 +22,12 @@ export class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDRequestBuilde
) {}
/**
* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its ID from the specified [Store](ctp:api:type:Store).
- * If the Store has defined some languages, countries, distribution or supply Channels,
+ * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection,
* they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices)
* and [inventory](ctp:api:type:ProductProjectionInventoryEntries).
*
+ * If [ProductSelection](ctp:api:type:ProductSelection) is used, it affects the [availability of the Product](/projects/stores#products-available-in-store) in the specified Store.
+ *
* When used with an API Client that has the `view_published_products:{projectKey}` scope, this endpoint only returns published (current) Product Projections.
*
*/
diff --git a/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-key-by-key-request-builder.ts b/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-key-by-key-request-builder.ts
index 46313d2c2..b7e3c96d3 100644
--- a/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-key-by-key-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/product-projections/by-project-key-in-store-key-by-store-key-product-projections-key-by-key-request-builder.ts
@@ -22,10 +22,12 @@ export class ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyRequestBu
) {}
/**
* Gets the current or staged representation of a [Product](ctp:api:type:Product) by its key from the specified [Store](ctp:api:type:Store).
- * If the Store has defined some languages, countries, distribution or supply Channels,
+ * If the Store has defined some languages, countries, distribution, supply Channels, and/or Product Selection,
* they are used for projections based on [locale](ctp:api:type:ProductProjectionLocales), [price](ctp:api:type:ProductProjectionPrices)
* and [inventory](ctp:api:type:ProductProjectionInventoryEntries).
*
+ * If [ProductSelection](ctp:api:type:ProductSelection) is used, it affects the [availability of the Product](/projects/stores#products-available-in-store) in the specified Store.
+ *
* When used with an API Client that has the `view_published_products:{projectKey}` scope, this endpoint only returns published (current) Product Projections.
*
*/
diff --git a/references.txt b/references.txt
index 819549492..e496c2956 100644
--- a/references.txt
+++ b/references.txt
@@ -210,3 +210,4 @@ de39b32f1f157ed82869e1c07c1963615d571f87
d29ffbb65f68b7dd7623956b7e6151454bea2fea
f94a9a687588e4e941100ac3a4a25d55058a6016
e5585a5cbf8c346ba1b8b87fcc2ae704047c5898
+d216fff1d56706c8f7cb20b8c9d10b917b8f7781
From 40b14dd47b8d7f4ca29bca77fac668fa13d776c7 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 9 Jan 2024 07:47:07 +0000
Subject: [PATCH 05/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index e496c2956..794741db4 100644
--- a/references.txt
+++ b/references.txt
@@ -211,3 +211,4 @@ d29ffbb65f68b7dd7623956b7e6151454bea2fea
f94a9a687588e4e941100ac3a4a25d55058a6016
e5585a5cbf8c346ba1b8b87fcc2ae704047c5898
d216fff1d56706c8f7cb20b8c9d10b917b8f7781
+6fdddfe25400a00a9b38068eabe18331d216fc82
From 40c0e6e92e82850e6e8810c04b0f6c351b618047 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 9 Jan 2024 10:04:18 +0000
Subject: [PATCH 06/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 794741db4..e1402ad62 100644
--- a/references.txt
+++ b/references.txt
@@ -212,3 +212,4 @@ f94a9a687588e4e941100ac3a4a25d55058a6016
e5585a5cbf8c346ba1b8b87fcc2ae704047c5898
d216fff1d56706c8f7cb20b8c9d10b917b8f7781
6fdddfe25400a00a9b38068eabe18331d216fc82
+580c5cde461a20eb43322d6bb592ac2de30eb61f
From 9bc46cf34cc851fe80a833bbeaaf51ef7cd0d9af Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 10 Jan 2024 07:47:03 +0000
Subject: [PATCH 07/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index e1402ad62..f43411f75 100644
--- a/references.txt
+++ b/references.txt
@@ -213,3 +213,4 @@ e5585a5cbf8c346ba1b8b87fcc2ae704047c5898
d216fff1d56706c8f7cb20b8c9d10b917b8f7781
6fdddfe25400a00a9b38068eabe18331d216fc82
580c5cde461a20eb43322d6bb592ac2de30eb61f
+abf2e5abe5909b6f2f44aa192852d2a12c5aa519
From af217d7ee11dacb413511f1b496cdd953eaa9cab Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 11 Jan 2024 09:58:42 +0000
Subject: [PATCH 08/28] build(codegen): updating SDK
---
changes.md | 29 +++++++++----
.../src/generated/models/approval-flow.ts | 42 +++++++++++++++++++
.../platform-sdk/src/generated/models/type.ts | 2 +
references.txt | 1 +
4 files changed, 67 insertions(+), 7 deletions(-)
diff --git a/changes.md b/changes.md
index 8eef5a3aa..8deb4d0b5 100644
--- a/changes.md
+++ b/changes.md
@@ -13,12 +13,34 @@
- added query parameter `expand` to method `post /{projectKey}/in-store/key={storeKey}/cart-discounts`
+
+Added Type(s)
+
+- added type `ApprovalFlowSetCustomFieldAction`
+- added type `ApprovalFlowSetCustomTypeAction`
+
+
+
+Removed Type(s)
+
+- :warning: removed type `NotEnabledError`
+- :warning: removed type `GraphQLNotEnabledError`
+
+
+
+Added Property(s)
+
+- added property `custom` to type `ApprovalFlow`
+
+
Added Enum(s)
- added enum `associate-role` to type `AttributeReferenceTypeId`
- added enum `business-unit` to type `AttributeReferenceTypeId`
- added enum `cart-discount` to type `AttributeReferenceTypeId`
+- added enum `approval-flow` to type `CustomFieldReferenceValue`
+- added enum `approval-flow` to type `ResourceTypeId`
@@ -27,13 +49,6 @@
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse`
-
-Removed Type(s)
-
-- :warning: removed type `NotEnabledError`
-- :warning: removed type `GraphQLNotEnabledError`
-
-
**History changes**
diff --git a/packages/platform-sdk/src/generated/models/approval-flow.ts b/packages/platform-sdk/src/generated/models/approval-flow.ts
index 8fd19c289..c2302ff37 100644
--- a/packages/platform-sdk/src/generated/models/approval-flow.ts
+++ b/packages/platform-sdk/src/generated/models/approval-flow.ts
@@ -8,6 +8,7 @@ import { ApprovalRule, RuleApprover } from './approval-rule'
import { Associate, BusinessUnitKeyReference } from './business-unit'
import { BaseResource, CreatedBy, LastModifiedBy } from './common'
import { OrderReference } from './order'
+import { CustomFields, FieldContainer, TypeResourceIdentifier } from './type'
export interface ApprovalFlow extends BaseResource {
/**
@@ -101,6 +102,12 @@ export interface ApprovalFlow extends BaseResource {
*
*/
readonly currentTierPendingApprovers: RuleApprover[]
+ /**
+ * Custom Fields on the Approval Flow.
+ *
+ *
+ */
+ readonly custom?: CustomFields
}
export interface ApprovalFlowApproval {
/**
@@ -199,6 +206,8 @@ export interface ApprovalFlowUpdate {
export type ApprovalFlowUpdateAction =
| ApprovalFlowApproveAction
| ApprovalFlowRejectAction
+ | ApprovalFlowSetCustomFieldAction
+ | ApprovalFlowSetCustomTypeAction
/**
* This update action allows an [Associate](ctp:api:type:Associate) to approve an Approval Flow. The process takes into account all [Associate Roles](ctp:api:type:AssociateRole) held by the Associate, aligning with the matched [Approval Rules](ctp:api:type:ApprovalRule) and their respective approver hierarchies.
*
@@ -225,3 +234,36 @@ export interface ApprovalFlowRejectAction {
*/
readonly reason?: string
}
+export interface ApprovalFlowSetCustomFieldAction {
+ readonly action: 'setCustomField'
+ /**
+ * Name of the [Custom Field](ctp:api:type:CustomFields).
+ *
+ *
+ */
+ readonly name: string
+ /**
+ * If `value` is absent or `null`, this field will be removed if it exists.
+ * Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
+ * If `value` is provided, it is set for the field defined by `name`.
+ *
+ *
+ */
+ readonly value?: any
+}
+export interface ApprovalFlowSetCustomTypeAction {
+ readonly action: 'setCustomType'
+ /**
+ * Defines the [Type](ctp:api:type:Type) that extends the ApprovalFlow with [Custom Fields](ctp:api:type:CustomFields).
+ * If absent, any existing Type and Custom Fields are removed from the ApprovalFlow.
+ *
+ *
+ */
+ readonly type?: TypeResourceIdentifier
+ /**
+ * Sets the [Custom Fields](ctp:api:type:CustomFields) fields for the ApprovalFlow.
+ *
+ *
+ */
+ readonly fields?: FieldContainer
+}
diff --git a/packages/platform-sdk/src/generated/models/type.ts b/packages/platform-sdk/src/generated/models/type.ts
index 0243f7b27..6a54308c7 100644
--- a/packages/platform-sdk/src/generated/models/type.ts
+++ b/packages/platform-sdk/src/generated/models/type.ts
@@ -52,6 +52,7 @@ export interface CustomFieldLocalizedEnumValue {
*
*/
export type CustomFieldReferenceValue =
+ | 'approval-flow'
| 'associate-role'
| 'business-unit'
| 'cart'
@@ -268,6 +269,7 @@ export interface CustomFieldTimeType {
*/
export type ResourceTypeId =
| 'address'
+ | 'approval-flow'
| 'asset'
| 'associate-role'
| 'business-unit'
diff --git a/references.txt b/references.txt
index f43411f75..13a1c161a 100644
--- a/references.txt
+++ b/references.txt
@@ -214,3 +214,4 @@ d216fff1d56706c8f7cb20b8c9d10b917b8f7781
6fdddfe25400a00a9b38068eabe18331d216fc82
580c5cde461a20eb43322d6bb592ac2de30eb61f
abf2e5abe5909b6f2f44aa192852d2a12c5aa519
+d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
From d16cef439beb1e1f31b5bd1bbb7128f2ff15b495 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 07:26:53 +0000
Subject: [PATCH 09/28] build(codegen): updating SDK
---
.../src/generated/models/orders.ts | 2 +-
.../by-project-key-login-request-builder.ts | 2 +-
...-matching-cart-location-request-builder.ts | 2 +-
...hods-matching-orderedit-request-builder.ts | 2 +-
...roduct-selections-by-id-request-builder.ts | 2 +-
...t-selections-key-by-key-request-builder.ts | 2 +-
.../src/generated/models/business-unit.ts | 2 +-
.../platform-sdk/src/generated/models/cart.ts | 2 +-
.../src/generated/models/error.ts | 48 +++++-----
.../src/generated/models/message.ts | 88 +++++++++----------
.../src/generated/models/product-type.ts | 2 +-
.../src/generated/models/product.ts | 2 +-
references.txt | 1 +
13 files changed, 79 insertions(+), 78 deletions(-)
diff --git a/packages/importapi-sdk/src/generated/models/orders.ts b/packages/importapi-sdk/src/generated/models/orders.ts
index e34f4eb18..179cc8c4f 100644
--- a/packages/importapi-sdk/src/generated/models/orders.ts
+++ b/packages/importapi-sdk/src/generated/models/orders.ts
@@ -693,7 +693,7 @@ export interface ScoreShippingRateInput {
* The data representation for an Order to be imported that is persisted as an [Order](/../api/projects/orders#top) in the Project.
*
* In commercetools, you can import an Order using the
- * [Create Order by Import](/../api/projects/orders-import#create-order-by-import)
+ * [Create Order by Import](ctp:importapi:endpoint:/{projectKey}/orders/import:POST)
* endpoint method instead of creating it from a Cart.
*
* An OrderImport is a snapshot of an order at the time it was imported.
diff --git a/packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts b/packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts
index 553cb4eb5..a7e8a97f9 100644
--- a/packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts
@@ -21,7 +21,7 @@ export class ByProjectKeyLoginRequestBuilder {
/**
* Authenticates a global Customer not associated with a Store.
* For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
- * If the Customer is registered in a Store, use the [Authenticate (sign in) Customer in Store](/../api/projects/customers#authenticate-sign-in-customer-in-store) method.
+ * If the Customer is registered in a Store, use the [Authenticate (sign in) Customer in Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) method.
*
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
*
diff --git a/packages/platform-sdk/src/generated/client/matching-cart-location/by-project-key-shipping-methods-matching-cart-location-request-builder.ts b/packages/platform-sdk/src/generated/client/matching-cart-location/by-project-key-shipping-methods-matching-cart-location-request-builder.ts
index 1b45d510e..846fcd114 100644
--- a/packages/platform-sdk/src/generated/client/matching-cart-location/by-project-key-shipping-methods-matching-cart-location-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/matching-cart-location/by-project-key-shipping-methods-matching-cart-location-request-builder.ts
@@ -19,7 +19,7 @@ export class ByProjectKeyShippingMethodsMatchingCartLocationRequestBuilder {
}
) {}
/**
- * Retrieves all the ShippingMethods that can ship to the given [Location](/projects/zones#location)
+ * Retrieves all the ShippingMethods that can ship to the given [Location](ctp:api:type:Location)
* with a `predicate` that matches the given Cart.
* Each ShippingMethod contains exactly one ShippingRate with the flag `isMatching` set to `true`.
* This ShippingRate is used when the ShippingMethod is [added to the Cart](ctp:api:type:CartSetShippingMethodAction).
diff --git a/packages/platform-sdk/src/generated/client/matching-orderedit/by-project-key-shipping-methods-matching-orderedit-request-builder.ts b/packages/platform-sdk/src/generated/client/matching-orderedit/by-project-key-shipping-methods-matching-orderedit-request-builder.ts
index 226c2a47f..e52c5d466 100644
--- a/packages/platform-sdk/src/generated/client/matching-orderedit/by-project-key-shipping-methods-matching-orderedit-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/matching-orderedit/by-project-key-shipping-methods-matching-orderedit-request-builder.ts
@@ -19,7 +19,7 @@ export class ByProjectKeyShippingMethodsMatchingOrdereditRequestBuilder {
}
) {}
/**
- * Retrieves all the ShippingMethods that can ship to the given [Location](/../api/projects/zones#location) for an [OrderEdit](/../api/projects/order-edits).
+ * Retrieves all the ShippingMethods that can ship to the given [Location](ctp:api:type:Location) for an [OrderEdit](ctp:api:type:OrderEdit).
*
* If the OrderEdit preview cannot be generated, an [EditPreviewFailed](ctp:api:type:EditPreviewFailedError) error is returned.
*
diff --git a/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-by-id-request-builder.ts b/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-by-id-request-builder.ts
index 27c262a90..a6410e8bc 100644
--- a/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-by-id-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-by-id-request-builder.ts
@@ -104,7 +104,7 @@ export class ByProjectKeyProductSelectionsByIDRequestBuilder {
)
}
/**
- * Deletion will only succeed if the Product Selection is not assigned to any [Store](/../api/projects/stores#store).
+ * Deletion will only succeed if the Product Selection is not assigned to any [Store](ctp:api:type:Store).
*/
public delete(methodArgs: {
queryArgs: {
diff --git a/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-key-by-key-request-builder.ts b/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-key-by-key-request-builder.ts
index 1434f734d..954df70bc 100644
--- a/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-key-by-key-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/product-selections/by-project-key-product-selections-key-by-key-request-builder.ts
@@ -104,7 +104,7 @@ export class ByProjectKeyProductSelectionsKeyByKeyRequestBuilder {
)
}
/**
- * Deletion will only succeed if the Product Selection is not assigned to any [Store](/../api/projects/stores#store).
+ * Deletion will only succeed if the Product Selection is not assigned to any [Store](ctp:api:type:Store).
*/
public delete(methodArgs: {
queryArgs: {
diff --git a/packages/platform-sdk/src/generated/models/business-unit.ts b/packages/platform-sdk/src/generated/models/business-unit.ts
index 7f6e3ffa8..51ad0d322 100644
--- a/packages/platform-sdk/src/generated/models/business-unit.ts
+++ b/packages/platform-sdk/src/generated/models/business-unit.ts
@@ -1150,7 +1150,7 @@ export interface BusinessUnitSetCustomFieldAction {
export interface BusinessUnitSetCustomTypeAction {
readonly action: 'setCustomType'
/**
- * Defines the [Type](ctp:api:type:Type) that extends the BusinessUnit with [Custom Fields](/../api/projects/custom-fields).
+ * Defines the [Type](ctp:api:type:Type) that extends the BusinessUnit with [Custom Fields](ctp:api:type:CustomFields).
* If absent, any existing Type and Custom Fields are removed from the BusinessUnit.
*
*
diff --git a/packages/platform-sdk/src/generated/models/cart.ts b/packages/platform-sdk/src/generated/models/cart.ts
index 9b5ca2021..0bea8b543 100644
--- a/packages/platform-sdk/src/generated/models/cart.ts
+++ b/packages/platform-sdk/src/generated/models/cart.ts
@@ -1607,7 +1607,7 @@ export interface MethodTaxedPrice {
readonly taxedPrice?: TaxedItemPrice
}
/**
- * Used for [replicating an existing Cart](/../api/projects/carts#replicate-cart) or Order.
+ * Used for [replicating an existing Cart](ctp:api:endpoint:/{projectKey}/carts/replicate:POST) or Order.
*
*/
export interface ReplicaCartDraft {
diff --git a/packages/platform-sdk/src/generated/models/error.ts b/packages/platform-sdk/src/generated/models/error.ts
index 6f9ecfe7d..2b9383f31 100644
--- a/packages/platform-sdk/src/generated/models/error.ts
+++ b/packages/platform-sdk/src/generated/models/error.ts
@@ -179,7 +179,7 @@ export interface AssociateMissingPermissionError {
/**
* Returned when the `name` of the [AttributeDefinition](ctp:api:type:AttributeDefinition) conflicts with an existing Attribute.
*
- * The error is returned as a failed response to the [Create ProductType](/../api/projects/productTypes#create-producttype) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
+ * The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
*
*/
export interface AttributeDefinitionAlreadyExistsError {
@@ -213,7 +213,7 @@ export interface AttributeDefinitionAlreadyExistsError {
/**
* Returned when the `type` is different for an AttributeDefinition using the same `name` in multiple Product Types.
*
- * The error is returned as a failed response to the [Create ProductType](/../api/projects/productTypes#create-producttype) request.
+ * The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request.
*
*/
export interface AttributeDefinitionTypeConflictError {
@@ -574,7 +574,7 @@ export interface DuplicatePriceScopeError {
* Returned when the given Price scope conflicts with the Price scope of an existing Standalone Price.
* Every Standalone Price associated with the same SKU must have a distinct combination of currency, country, Customer Group, Channel, and validity periods (`validFrom` and `validUntil`).
*
- * The error is returned as a failed response to the [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * The error is returned as a failed response to the [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface DuplicateStandalonePriceScopeError {
@@ -658,7 +658,7 @@ export interface DuplicateVariantValuesError {
/**
* Returned when a preview to find an appropriate Shipping Method for an OrderEdit could not be generated.
*
- * The error is returned as a failed response to the [Get Shipping Methods for an OrderEdit](/../api/projects/shippingMethods#for-an-orderedit) request.
+ * The error is returned as a failed response to the [Get Shipping Methods for an OrderEdit](ctp:api:endpoint:/{projectKey}/shipping-methods/matching-orderedit:GET) request.
*
*/
export interface EditPreviewFailedError {
@@ -1041,8 +1041,8 @@ export interface InternalConstraintViolatedError {
*
* The error is returned as a failed response to:
*
- * - [Authenticate a global Customer (Sign-in)](/../api/projects/customers#authenticate-sign-in-customer) and [Authenticate Customer (Sign-in) in a Store](/../api/projects/customers#authenticate-sign-in-customer-in-store) requests on Customers.
- * - [Authenticating Customer (Sign-in)](/../api/projects/me-profile#authenticate-sign-in-customer) and [Authenticate Customer (Sign-in) in a Store](/../api/projects/me-profile#authenticate-sign-in-customer-in-store) requests on My Customer Profile.
+ * - [Authenticate a global Customer (Sign-in)](ctp:api:endpoint:/{projectKey}/login:POST) and [Authenticate Customer (Sign-in) in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) requests on Customers.
+ * - [Authenticating Customer (Sign-in)](ctp:api:endpoint:/{projectKey}/me/login:POST) and [Authenticate Customer (Sign-in) in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/login:POST) requests on My Customer Profile.
*
*/
export interface InvalidCredentialsError {
@@ -1060,8 +1060,8 @@ export interface InvalidCredentialsError {
*
* The error is returned as a failed response to:
*
- * - [Change Customer Password](/../api/projects/customers#change-password-of-customer) and [Change Customer Password in a Store](/../api/projects/customers#change-password-of-customer-in-store) requests on Customers.
- * - [Change Customer Password](/../api/projects/me-profile#change-password-of-customer) and [Change Customer Password in a Store](/../api/projects/me-profile#change-password-of-customer-in-store) requests on My Customer Profile.
+ * - [Change Customer Password](ctp:api:endpoint:/{projectKey}/customers/password:POST) and [Change Customer Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) requests on Customers.
+ * - [Change Customer Password](ctp:api:endpoint:/{projectKey}/me/password:POST) and [Change Customer Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/password:POST) requests on My Customer Profile.
*
*/
export interface InvalidCurrentPasswordError {
@@ -1343,12 +1343,12 @@ export interface MaxStoreReferencesReachedError {
* Returned when one of the following states occur:
*
* - [Channel](ctp:api:type:Channel) is added or set on a [Store](ctp:api:type:Store) with missing Channel `roles`.
- * - [Standalone Price](/../api/projects/standalone-prices#create-standaloneprice) references a Channel that does not contain the `ProductDistribution` role.
+ * - [Standalone Price](ctp:api:type:StandalonePrice) references a Channel that does not contain the `ProductDistribution` role.
*
* The error is returned as a failed response to:
*
* - [Add Distribution Channel](ctp:api:type:StoreAddDistributionChannelAction), [Set Distribution Channel](ctp:api:type:StoreSetDistributionChannelsAction), [Add Supply Channel](ctp:api:type:StoreAddSupplyChannelAction), and [Set Supply Channel](ctp:api:type:StoreSetSupplyChannelsAction) update actions.
- * - [Create a Standalone Price](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * - [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface MissingRoleOnChannelError {
@@ -1429,7 +1429,7 @@ export interface MoneyOverflowError {
/**
* Returned when a Product Discount could not be found that could be applied to the Price of a Product Variant.
*
- * The error is returned as a failed response to the [Get Matching ProductDiscount](/../api/projects/productDiscounts#get-matching-productdiscount) request.
+ * The error is returned as a failed response to the [Get Matching ProductDiscount](ctp:api:endpoint:/{projectKey}/product-discounts/matching:POST) request.
*
*/
export interface NoMatchingProductDiscountFoundError {
@@ -1506,7 +1506,7 @@ export interface OverCapacityError {
* Returned when a given Price validity period conflicts with an existing one.
* Every Standalone Price associated with the same SKU and with the same combination of currency, country, Customer Group, and Channel, must have non-overlapping validity periods (`validFrom` and `validUntil`).
*
- * The error is returned as a failed response to the [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * The error is returned as a failed response to the [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface OverlappingStandalonePriceValidityError {
@@ -2095,7 +2095,7 @@ export interface GraphQLAssociateMissingPermissionError {
/**
* Returned when the `name` of the [AttributeDefinition](ctp:api:type:AttributeDefinition) conflicts with an existing Attribute.
*
- * The error is returned as a failed response to the [Create ProductType](/../api/projects/productTypes#create-producttype) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
+ * The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request or [Change AttributeDefinition Name](ctp:api:type:ProductTypeChangeAttributeNameAction) update action.
*
*/
export interface GraphQLAttributeDefinitionAlreadyExistsError {
@@ -2123,7 +2123,7 @@ export interface GraphQLAttributeDefinitionAlreadyExistsError {
/**
* Returned when the `type` is different for an AttributeDefinition using the same `name` in multiple Product Types.
*
- * The error is returned as a failed response to the [Create ProductType](/../api/projects/productTypes#create-producttype) request.
+ * The error is returned as a failed response to the [Create ProductType](ctp:api:endpoint:/{projectKey}/product-types:POST) request.
*
*/
export interface GraphQLAttributeDefinitionTypeConflictError {
@@ -2401,7 +2401,7 @@ export interface GraphQLDuplicatePriceScopeError {
* Returned when the given Price scope conflicts with the Price scope of an existing Standalone Price.
* Every Standalone Price associated with the same SKU must have a distinct combination of currency, country, Customer Group, Channel, and validity periods (`validFrom` and `validUntil`).
*
- * The error is returned as a failed response to the [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * The error is returned as a failed response to the [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface GraphQLDuplicateStandalonePriceScopeError {
@@ -2473,7 +2473,7 @@ export interface GraphQLDuplicateVariantValuesError {
/**
* Returned when a preview to find an appropriate Shipping Method for an OrderEdit could not be generated.
*
- * The error is returned as a failed response to the [Get Shipping Methods for an OrderEdit](/../api/projects/shippingMethods#for-an-orderedit) request.
+ * The error is returned as a failed response to the [Get Shipping Methods for an OrderEdit](ctp:api:endpoint:/{projectKey}/shipping-methods/matching-orderedit:GET) request.
*
*/
export interface GraphQLEditPreviewFailedError {
@@ -2698,8 +2698,8 @@ export interface GraphQLInternalConstraintViolatedError {
*
* The error is returned as a failed response to:
*
- * - [Authenticate a global Customer (Sign-in)](/../api/projects/customers#authenticate-sign-in-customer) and [Authenticate Customer (Sign-in) in a Store](/../api/projects/customers#authenticate-sign-in-customer-in-store) requests on Customers.
- * - [Authenticating Customer (Sign-in)](/../api/projects/me-profile#authenticate-sign-in-customer) and [Authenticate Customer (Sign-in) in a Store](/../api/projects/me-profile#authenticate-sign-in-customer-in-store) requests on My Customer Profile.
+ * - [Authenticate a global Customer (Sign-in)](ctp:api:endpoint:/{projectKey}/login:POST) and [Authenticate Customer (Sign-in) in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/login:POST) requests on Customers.
+ * - [Authenticating Customer (Sign-in)](ctp:api:endpoint:/{projectKey}/me/login:POST) and [Authenticate Customer (Sign-in) in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/login:POST) requests on My Customer Profile.
*
*/
export interface GraphQLInvalidCredentialsError {
@@ -2711,8 +2711,8 @@ export interface GraphQLInvalidCredentialsError {
*
* The error is returned as a failed response to:
*
- * - [Change Customer Password](/../api/projects/customers#change-password-of-customer) and [Change Customer Password in a Store](/../api/projects/customers#change-password-of-customer-in-store) requests on Customers.
- * - [Change Customer Password](/../api/projects/me-profile#change-password-of-customer) and [Change Customer Password in a Store](/../api/projects/me-profile#change-password-of-customer-in-store) requests on My Customer Profile.
+ * - [Change Customer Password](ctp:api:endpoint:/{projectKey}/customers/password:POST) and [Change Customer Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) requests on Customers.
+ * - [Change Customer Password](ctp:api:endpoint:/{projectKey}/me/password:POST) and [Change Customer Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/me/password:POST) requests on My Customer Profile.
*
*/
export interface GraphQLInvalidCurrentPasswordError {
@@ -2916,12 +2916,12 @@ export interface GraphQLMaxStoreReferencesReachedError {
* Returned when one of the following states occur:
*
* - [Channel](ctp:api:type:Channel) is added or set on a [Store](ctp:api:type:Store) with missing Channel `roles`.
- * - [Standalone Price](/../api/projects/standalone-prices#create-standaloneprice) references a Channel that does not contain the `ProductDistribution` role.
+ * - [Standalone Price](ctp:api:type:StandalonePrice) references a Channel that does not contain the `ProductDistribution` role.
*
* The error is returned as a failed response to:
*
* - [Add Distribution Channel](ctp:api:type:StoreAddDistributionChannelAction), [Set Distribution Channel](ctp:api:type:StoreSetDistributionChannelsAction), [Add Supply Channel](ctp:api:type:StoreAddSupplyChannelAction), and [Set Supply Channel](ctp:api:type:StoreSetSupplyChannelsAction) update actions.
- * - [Create a Standalone Price](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * - [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface GraphQLMissingRoleOnChannelError {
@@ -2984,7 +2984,7 @@ export interface GraphQLMoneyOverflowError {
/**
* Returned when a Product Discount could not be found that could be applied to the Price of a Product Variant.
*
- * The error is returned as a failed response to the [Get Matching ProductDiscount](/../api/projects/productDiscounts#get-matching-productdiscount) request.
+ * The error is returned as a failed response to the [Get Matching ProductDiscount](ctp:api:endpoint:/{projectKey}/product-discounts/matching:POST) request.
*
*/
export interface GraphQLNoMatchingProductDiscountFoundError {
@@ -3038,7 +3038,7 @@ export interface GraphQLOverCapacityError {
* Returned when a given Price validity period conflicts with an existing one.
* Every Standalone Price associated with the same SKU and with the same combination of currency, country, Customer Group, and Channel, must have non-overlapping validity periods (`validFrom` and `validUntil`).
*
- * The error is returned as a failed response to the [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * The error is returned as a failed response to the [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface GraphQLOverlappingStandalonePriceValidityError {
diff --git a/packages/platform-sdk/src/generated/models/message.ts b/packages/platform-sdk/src/generated/models/message.ts
index 8b3a702b4..460381722 100644
--- a/packages/platform-sdk/src/generated/models/message.ts
+++ b/packages/platform-sdk/src/generated/models/message.ts
@@ -1306,7 +1306,7 @@ export interface AssociateRoleBuyerAssignableChangedMessage {
readonly buyerAssignable: boolean
}
/**
- * Generated after a successful [Create AssociateRole](/projects/associate-roles#create-associaterole) request.
+ * Generated after a successful [Create AssociateRole](ctp:api:endpoint:/{projectKey}/associate-roles:POST) request.
*
*/
export interface AssociateRoleCreatedMessage {
@@ -2868,7 +2868,7 @@ export interface BusinessUnitContactEmailSetMessage {
readonly contactEmail?: string
}
/**
- * Generated after a successful [Create BusinessUnit](/projects/business-units#create-businessunit) request.
+ * Generated after a successful [Create BusinessUnit](ctp:api:endpoint:/{projectKey}/business-units:POST) request.
*
*/
export interface BusinessUnitCreatedMessage {
@@ -4168,7 +4168,7 @@ export interface BusinessUnitStoresSetMessage {
readonly stores: StoreKeyReference[]
}
/**
- * Generated after a successful [Create Category](/../api/projects/categories#create-category) request.
+ * Generated after a successful [Create Category](ctp:api:endpoint:/{projectKey}/categories:POST) request.
*
*/
export interface CategoryCreatedMessage {
@@ -4968,7 +4968,7 @@ export interface CustomerCompanyNameSetMessage {
readonly companyName?: string
}
/**
- * Generated after a successful [Create Customer](/../api/projects/customers#create-sign-up-customer) request.
+ * Generated after a successful [Create Customer](ctp:api:endpoint:/{projectKey}/customers:POST) request.
*
*/
export interface CustomerCreatedMessage {
@@ -5616,7 +5616,7 @@ export interface CustomerEmailChangedMessage {
readonly email: string
}
/**
- * Generated after a successful [Create email token for Customer](/../api/projects/customers#create-email-token-for-customer) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference).
+ * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference).
*
*/
export interface CustomerEmailTokenCreatedMessage {
@@ -5692,7 +5692,7 @@ export interface CustomerEmailTokenCreatedMessage {
readonly expiresAt: string
}
/**
- * Generated after a successful [Verify Customer's Email](/../api/projects/customers#verify-email-of-customer) request.
+ * Generated after a successful [Verify Customer's Email](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) request.
*
*/
export interface CustomerEmailVerifiedMessage {
@@ -6339,7 +6339,7 @@ export interface CustomerLastNameSetMessage {
readonly lastName?: string
}
/**
- * Generated after a successful [Create password reset token for Customer](/../api/projects/customers#create-password-reset-token-for-customer) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference).
+ * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference).
*
*/
export interface CustomerPasswordTokenCreatedMessage {
@@ -6415,7 +6415,7 @@ export interface CustomerPasswordTokenCreatedMessage {
readonly expiresAt: string
}
/**
- * Generated after a successful [Reset Customer's Password](/../api/projects/customers#reset-password-of-customer), [Reset Customer's Password in a Store](/../api/projects/customers#reset-password-of-customer-in-store), [Change Customer's Password](/../api/projects/customers#change-password-of-customer), or [Change Customer's Password in a Store](/../api/projects/customers#change-password-of-customer-in-store) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint.
+ * Generated after a successful [Reset Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST), [Reset Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST), [Change Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password:POST), or [Change Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint.
*
*/
export interface CustomerPasswordUpdatedMessage {
@@ -6478,7 +6478,7 @@ export interface CustomerPasswordUpdatedMessage {
*/
readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
/**
- * Whether the Customer's password was updated during the [Reset password](/../api/projects/customers#password-reset-of-customer) or [Change password](/../api/projects/customers#change-password-of-customer) flow.
+ * Whether the Customer's password was updated during the [Reset password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST) or [Change password](ctp:api:endpoint:/{projectKey}/customers/password:POST) flow.
*
*
*/
@@ -6555,7 +6555,7 @@ export interface CustomerTitleSetMessage {
readonly title?: string
}
/**
- * Generated after a successful [Create InventoryEntry](/../api/projects/inventory#create-inventoryentry) request.
+ * Generated after a successful [Create InventoryEntry](ctp:api:endpoint:/{projectKey}/inventory:POST) request.
*
*/
export interface InventoryEntryCreatedMessage {
@@ -6702,7 +6702,7 @@ export interface InventoryEntryDeletedMessage {
}
/**
* Generated after a successful [Add Quantity](ctp:api:type:InventoryEntryAddQuantityAction), [Remove Quantity](ctp:api:type:InventoryEntryRemoveQuantityAction) or [Change Quantity](ctp:api:type:InventoryEntryChangeQuantityAction) update action.
- * Inventory changes as a result of [Order creation](/../api/projects/orders#create-order) do not trigger this message.
+ * Inventory changes as a result of [Order creation](ctp:api:endpoint:/{projectKey}/orders:POST) do not trigger this message.
*
*/
export interface InventoryEntryQuantitySetMessage {
@@ -7524,7 +7524,7 @@ export interface OrderBillingAddressSetMessage {
readonly oldAddress?: Address
}
/**
- * Generated after a successful [Create Order](/../api/projects/orders#create-order) request.
+ * Generated after a successful [Create Order](ctp:api:endpoint:/{projectKey}/orders:POST) request.
*
*/
export interface OrderCreatedMessage {
@@ -10613,7 +10613,7 @@ export interface ParcelTrackingDataUpdatedMessage {
readonly shippingKey?: string
}
/**
- * Generated after a successful [Create Payment](/../api/projects/payments#create-payment) request.
+ * Generated after a successful [Create Payment](ctp:api:endpoint:/{projectKey}/payments:POST) request.
*
*/
export interface PaymentCreatedMessage {
@@ -11121,7 +11121,7 @@ export interface ProductAddedToCategoryMessage {
readonly staged: boolean
}
/**
- * Generated after a successful [Create Product](/../api/projects/products#create-product) request.
+ * Generated after a successful [Create Product](ctp:api:endpoint:/{projectKey}/products:POST) request.
*
*/
export interface ProductCreatedMessage {
@@ -12291,7 +12291,7 @@ export interface ProductRevertedStagedChangesMessage {
readonly removedImageUrls: string[]
}
/**
- * Generated after a successful [Create Product Selection](/../api/projects/product-selections#create-productselection) request.
+ * Generated after a successful [Create Product Selection](ctp:api:endpoint:/{projectKey}/product-selections:POST) request.
*
*/
export interface ProductSelectionCreatedMessage {
@@ -13174,7 +13174,7 @@ export interface ProductVariantDeletedMessage {
readonly removedImageUrls: string[]
}
/**
- * Generated after a successful [Create Quote](/../api/projects/quotes#create-quote) request.
+ * Generated after a successful [Create Quote](ctp:api:endpoint:/{projectKey}/quotes:POST) request.
*
*/
export interface QuoteCreatedMessage {
@@ -13454,7 +13454,7 @@ export interface QuoteRenegotiationRequestedMessage {
readonly buyerComment?: string
}
/**
- * Generated after a successful [Create QuoteRequest](/../api/projects/quote-requests#create-quoterequest) request.
+ * Generated after a successful [Create QuoteRequest](ctp:api:endpoint:/{projectKey}/quote-requests:POST) request.
*
*/
export interface QuoteRequestCreatedMessage {
@@ -14120,7 +14120,7 @@ export interface ReturnInfoSetMessage {
readonly returnInfo?: ReturnInfo[]
}
/**
- * Generated after a successful [Create Review](/../api/projects/reviews#create-review) request.
+ * Generated after a successful [Create Review](ctp:api:endpoint:/{projectKey}/reviews:POST) request.
*
*/
export interface ReviewCreatedMessage {
@@ -14378,7 +14378,7 @@ export interface ReviewStateTransitionMessage {
readonly force: boolean
}
/**
- * Generated after a successful [Create StagedQuote](/../api/projects/staged-quotes#create-stagedquote) request.
+ * Generated after a successful [Create StagedQuote](ctp:api:endpoint:/{projectKey}/staged-quotes:POST) request.
*
*/
export interface StagedQuoteCreatedMessage {
@@ -14886,7 +14886,7 @@ export interface StandalonePriceActiveChangedMessage {
readonly oldActive: boolean
}
/**
- * Generated after a successful [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * Generated after a successful [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface StandalonePriceCreatedMessage {
@@ -15999,7 +15999,7 @@ export interface StoreCountriesChangedMessage {
readonly removedCountries?: StoreCountry[]
}
/**
- * Generated after a successful [Create Store](/../api/projects/stores#create-store) request.
+ * Generated after a successful [Create Store](ctp:api:endpoint:/{projectKey}/stores:POST) request.
*
*/
export interface StoreCreatedMessage {
@@ -16105,7 +16105,7 @@ export interface StoreCreatedMessage {
readonly custom?: CustomFields
}
/**
- * Generated after a successful [Delete Store](/../api/projects/quote-requests#delete-quoterequest) request.
+ * Generated after a successful [Delete Store](/../api/projects/stores#delete-store) request.
*
*/
export interface StoreDeletedMessage {
@@ -17052,7 +17052,7 @@ export interface AssociateRoleBuyerAssignableChangedMessagePayload {
readonly buyerAssignable: boolean
}
/**
- * Generated after a successful [Create AssociateRole](/projects/associate-roles#create-associaterole) request.
+ * Generated after a successful [Create AssociateRole](ctp:api:endpoint:/{projectKey}/associate-roles:POST) request.
*
*/
export interface AssociateRoleCreatedMessagePayload {
@@ -17360,7 +17360,7 @@ export interface BusinessUnitContactEmailSetMessagePayload {
readonly contactEmail?: string
}
/**
- * Generated after a successful [Create BusinessUnit](/projects/business-units#create-businessunit) request.
+ * Generated after a successful [Create BusinessUnit](ctp:api:endpoint:/{projectKey}/business-units:POST) request.
*
*/
export interface BusinessUnitCreatedMessagePayload {
@@ -17634,7 +17634,7 @@ export interface BusinessUnitStoresSetMessagePayload {
readonly stores: StoreKeyReference[]
}
/**
- * Generated after a successful [Create Category](/../api/projects/categories#create-category) request.
+ * Generated after a successful [Create Category](ctp:api:endpoint:/{projectKey}/categories:POST) request.
*
*/
export interface CategoryCreatedMessagePayload {
@@ -17807,7 +17807,7 @@ export interface CustomerCompanyNameSetMessagePayload {
readonly companyName?: string
}
/**
- * Generated after a successful [Create Customer](/../api/projects/customers#create-sign-up-customer) request.
+ * Generated after a successful [Create Customer](ctp:api:endpoint:/{projectKey}/customers:POST) request.
*
*/
export interface CustomerCreatedMessagePayload {
@@ -17942,7 +17942,7 @@ export interface CustomerEmailChangedMessagePayload {
readonly email: string
}
/**
- * Generated after a successful [Create email token for Customer](/../api/projects/customers#create-email-token-for-customer) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference).
+ * Generated after a successful [Create email token for Customer](ctp:api:endpoint:/{projectKey}/customers/email-token:POST) request. The `resource` property of the Message is a [CustomerEmailTokenReference](ctp:api:type:CustomerEmailTokenReference).
*
*/
export interface CustomerEmailTokenCreatedMessagePayload {
@@ -17961,7 +17961,7 @@ export interface CustomerEmailTokenCreatedMessagePayload {
readonly expiresAt: string
}
/**
- * Generated after a successful [Verify Customer's Email](/../api/projects/customers#verify-email-of-customer) request.
+ * Generated after a successful [Verify Customer's Email](ctp:api:endpoint:/{projectKey}/customers/email/confirm:POST) request.
*
*/
export interface CustomerEmailVerifiedMessagePayload {
@@ -18095,7 +18095,7 @@ export interface CustomerLastNameSetMessagePayload {
readonly lastName?: string
}
/**
- * Generated after a successful [Create password reset token for Customer](/../api/projects/customers#create-password-reset-token-for-customer) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference).
+ * Generated after a successful [Create password reset token for Customer](ctp:api:endpoint:/{projectKey}/customers/password-token:POST) request. The `resource` property of the Message is a [CustomerPasswordTokenReference](ctp:api:type:CustomerPasswordTokenReference).
*
*/
export interface CustomerPasswordTokenCreatedMessagePayload {
@@ -18114,13 +18114,13 @@ export interface CustomerPasswordTokenCreatedMessagePayload {
readonly expiresAt: string
}
/**
- * Generated after a successful [Reset Customer's Password](/../api/projects/customers#reset-password-of-customer), [Reset Customer's Password in a Store](/../api/projects/customers#reset-password-of-customer-in-store), [Change Customer's Password](/../api/projects/customers#change-password-of-customer), or [Change Customer's Password in a Store](/../api/projects/customers#change-password-of-customer-in-store) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint.
+ * Generated after a successful [Reset Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST), [Reset Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password/reset:POST), [Change Customer's Password](ctp:api:endpoint:/{projectKey}/customers/password:POST), or [Change Customer's Password in a Store](ctp:api:endpoint:/{projectKey}/in-store/key={storeKey}/customers/password:POST) request. This Message is also produced during equivalent requests to the [My Customer Profile](/../api/projects/me-profile) endpoint.
*
*/
export interface CustomerPasswordUpdatedMessagePayload {
readonly type: 'CustomerPasswordUpdated'
/**
- * Whether the Customer's password was updated during the [Reset password](/../api/projects/customers#password-reset-of-customer) or [Change password](/../api/projects/customers#change-password-of-customer) flow.
+ * Whether the Customer's password was updated during the [Reset password](ctp:api:endpoint:/{projectKey}/customers/password/reset:POST) or [Change password](ctp:api:endpoint:/{projectKey}/customers/password:POST) flow.
*
*
*/
@@ -18140,7 +18140,7 @@ export interface CustomerTitleSetMessagePayload {
readonly title?: string
}
/**
- * Generated after a successful [Create InventoryEntry](/../api/projects/inventory#create-inventoryentry) request.
+ * Generated after a successful [Create InventoryEntry](ctp:api:endpoint:/{projectKey}/inventory:POST) request.
*
*/
export interface InventoryEntryCreatedMessagePayload {
@@ -18173,7 +18173,7 @@ export interface InventoryEntryDeletedMessagePayload {
}
/**
* Generated after a successful [Add Quantity](ctp:api:type:InventoryEntryAddQuantityAction), [Remove Quantity](ctp:api:type:InventoryEntryRemoveQuantityAction) or [Change Quantity](ctp:api:type:InventoryEntryChangeQuantityAction) update action.
- * Inventory changes as a result of [Order creation](/../api/projects/orders#create-order) do not trigger this message.
+ * Inventory changes as a result of [Order creation](ctp:api:endpoint:/{projectKey}/orders:POST) do not trigger this message.
*
*/
export interface InventoryEntryQuantitySetMessagePayload {
@@ -18463,7 +18463,7 @@ export interface OrderBillingAddressSetMessagePayload {
readonly oldAddress?: Address
}
/**
- * Generated after a successful [Create Order](/../api/projects/orders#create-order) request.
+ * Generated after a successful [Create Order](ctp:api:endpoint:/{projectKey}/orders:POST) request.
*
*/
export interface OrderCreatedMessagePayload {
@@ -19329,7 +19329,7 @@ export interface ParcelTrackingDataUpdatedMessagePayload {
readonly shippingKey?: string
}
/**
- * Generated after a successful [Create Payment](/../api/projects/payments#create-payment) request.
+ * Generated after a successful [Create Payment](ctp:api:endpoint:/{projectKey}/payments:POST) request.
*
*/
export interface PaymentCreatedMessagePayload {
@@ -19438,7 +19438,7 @@ export interface ProductAddedToCategoryMessagePayload {
readonly staged: boolean
}
/**
- * Generated after a successful [Create Product](/../api/projects/products#create-product) request.
+ * Generated after a successful [Create Product](ctp:api:endpoint:/{projectKey}/products:POST) request.
*
*/
export interface ProductCreatedMessagePayload {
@@ -19768,7 +19768,7 @@ export interface ProductRevertedStagedChangesMessagePayload {
readonly removedImageUrls: string[]
}
/**
- * Generated after a successful [Create Product Selection](/../api/projects/product-selections#create-productselection) request.
+ * Generated after a successful [Create Product Selection](ctp:api:endpoint:/{projectKey}/product-selections:POST) request.
*
*/
export interface ProductSelectionCreatedMessagePayload {
@@ -19967,7 +19967,7 @@ export interface ProductVariantDeletedMessagePayload {
readonly removedImageUrls: string[]
}
/**
- * Generated after a successful [Create Quote](/../api/projects/quotes#create-quote) request.
+ * Generated after a successful [Create Quote](ctp:api:endpoint:/{projectKey}/quotes:POST) request.
*
*/
export interface QuoteCreatedMessagePayload {
@@ -20019,7 +20019,7 @@ export interface QuoteRenegotiationRequestedMessagePayload {
readonly buyerComment?: string
}
/**
- * Generated after a successful [Create QuoteRequest](/../api/projects/quote-requests#create-quoterequest) request.
+ * Generated after a successful [Create QuoteRequest](ctp:api:endpoint:/{projectKey}/quote-requests:POST) request.
*
*/
export interface QuoteRequestCreatedMessagePayload {
@@ -20172,7 +20172,7 @@ export interface ReturnInfoSetMessagePayload {
readonly returnInfo?: ReturnInfo[]
}
/**
- * Generated after a successful [Create Review](/../api/projects/reviews#create-review) request.
+ * Generated after a successful [Create Review](ctp:api:endpoint:/{projectKey}/reviews:POST) request.
*
*/
export interface ReviewCreatedMessagePayload {
@@ -20268,7 +20268,7 @@ export interface ShoppingListStoreSetMessagePayload {
readonly store: StoreKeyReference
}
/**
- * Generated after a successful [Create StagedQuote](/../api/projects/staged-quotes#create-stagedquote) request.
+ * Generated after a successful [Create StagedQuote](ctp:api:endpoint:/{projectKey}/staged-quotes:POST) request.
*
*/
export interface StagedQuoteCreatedMessagePayload {
@@ -20377,7 +20377,7 @@ export interface StandalonePriceActiveChangedMessagePayload {
readonly oldActive: boolean
}
/**
- * Generated after a successful [Create StandalonePrice](/../api/projects/standalone-prices#create-standaloneprice) request.
+ * Generated after a successful [Create StandalonePrice](ctp:api:endpoint:/{projectKey}/standalone-prices:POST) request.
*
*/
export interface StandalonePriceCreatedMessagePayload {
@@ -20635,7 +20635,7 @@ export interface StoreCountriesChangedMessagePayload {
readonly removedCountries?: StoreCountry[]
}
/**
- * Generated after a successful [Create Store](/../api/projects/stores#create-store) request.
+ * Generated after a successful [Create Store](ctp:api:endpoint:/{projectKey}/stores:POST) request.
*
*/
export interface StoreCreatedMessagePayload {
@@ -20684,7 +20684,7 @@ export interface StoreCreatedMessagePayload {
readonly custom?: CustomFields
}
/**
- * Generated after a successful [Delete Store](/../api/projects/quote-requests#delete-quoterequest) request.
+ * Generated after a successful [Delete Store](/../api/projects/stores#delete-store) request.
*
*/
export interface StoreDeletedMessagePayload {
diff --git a/packages/platform-sdk/src/generated/models/product-type.ts b/packages/platform-sdk/src/generated/models/product-type.ts
index 603b1bc05..5b7e93290 100644
--- a/packages/platform-sdk/src/generated/models/product-type.ts
+++ b/packages/platform-sdk/src/generated/models/product-type.ts
@@ -70,7 +70,7 @@ export interface AttributeDefinition {
*
* Which exact features are available with this flag depends on the specific [AttributeType](ctp:api:type:AttributeType).
* The maximum size of a searchable field is **restricted** by the [Field content size limit](/../api/limits#field-content-size).
- * This constraint is enforced at both [Product creation](/../api/projects/products#create-product) and [Product update](/../api/projects/products#update-product).
+ * This constraint is enforced at both [Product creation](ctp:api:endpoint:/{projectKey}/products:POST) and [Product update](/../api/projects/products#update-product).
* If the length of the input exceeds the maximum size, an [InvalidField](ctp:api:type:InvalidFieldError) error is returned.
*
*/
diff --git a/packages/platform-sdk/src/generated/models/product.ts b/packages/platform-sdk/src/generated/models/product.ts
index c600b257b..b7920d5a9 100644
--- a/packages/platform-sdk/src/generated/models/product.ts
+++ b/packages/platform-sdk/src/generated/models/product.ts
@@ -2351,7 +2351,7 @@ export interface ProductTransitionStateAction {
readonly force?: boolean
}
/**
- * Removes the current [projection](/../api/projects/productProjections#current--staged) of the Product. The staged projection is unaffected. To retrieve unpublished Products, the `staged` parameter must be set to `false` when [querying](/projects/productProjections#query-productprojections)/[searching](/projects/products-search#product-projection-search) Product Projections. Produces the [ProductUnpublished](ctp:api:type:ProductUnpublishedMessage) Message.
+ * Removes the current [projection](/../api/projects/productProjections#current--staged) of the Product. The staged projection is unaffected. To retrieve unpublished Products, the `staged` parameter must be set to `false` when [querying](ctp:api:endpoint:/{projectKey}/product-projections:GET)/[searching](/projects/products-search#product-projection-search) Product Projections. Produces the [ProductUnpublished](ctp:api:type:ProductUnpublishedMessage) Message.
*
* Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using [Remove Price](ctp:api:type:ProductRemovePriceAction) for Embedded Prices or [Delete StandalonePrice](/projects/standalone-prices#delete-standaloneprice) for Standalone Prices.
*
diff --git a/references.txt b/references.txt
index 13a1c161a..166008373 100644
--- a/references.txt
+++ b/references.txt
@@ -215,3 +215,4 @@ d216fff1d56706c8f7cb20b8c9d10b917b8f7781
580c5cde461a20eb43322d6bb592ac2de30eb61f
abf2e5abe5909b6f2f44aa192852d2a12c5aa519
d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
+281ab8a36f5fd144e39212855c2991eaeb29407a
From 2cd301cd62456109df232dec2416dcf7f2fc20f6 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 09:25:14 +0000
Subject: [PATCH 10/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 166008373..e44592cca 100644
--- a/references.txt
+++ b/references.txt
@@ -216,3 +216,4 @@ d216fff1d56706c8f7cb20b8c9d10b917b8f7781
abf2e5abe5909b6f2f44aa192852d2a12c5aa519
d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
281ab8a36f5fd144e39212855c2991eaeb29407a
+5804c065e8051fa2b49be3dc0e9393bc280a7bdc
From 06fd202ce22ab80c07fc204df3335469706fac99 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Fri, 12 Jan 2024 13:06:26 +0000
Subject: [PATCH 11/28] build(codegen): updating SDK
---
changes.md | 10 +
...ey-cart-discounts-by-id-request-builder.ts | 3 +
...rt-discounts-key-by-key-request-builder.ts | 3 +
...ject-key-cart-discounts-request-builder.ts | 3 +
...ey-cart-discounts-by-id-request-builder.ts | 2 +
...rt-discounts-key-by-key-request-builder.ts | 2 +
...tore-key-cart-discounts-request-builder.ts | 2 +
.../src/generated/models/cart-discount.ts | 6 +
.../src/generated/models/message.ts | 414 ++++++++++++++++++
references.txt | 1 +
10 files changed, 446 insertions(+)
diff --git a/changes.md b/changes.md
index 8deb4d0b5..bb47c0bc9 100644
--- a/changes.md
+++ b/changes.md
@@ -18,6 +18,16 @@
- added type `ApprovalFlowSetCustomFieldAction`
- added type `ApprovalFlowSetCustomTypeAction`
+- added type `CartDiscountCreatedMessage`
+- added type `CartDiscountDeletedMessage`
+- added type `CartDiscountStoreAddedMessage`
+- added type `CartDiscountStoreRemovedMessage`
+- added type `CartDiscountStoresSetMessage`
+- added type `CartDiscountCreatedMessagePayload`
+- added type `CartDiscountDeletedMessagePayload`
+- added type `CartDiscountStoreAddedMessagePayload`
+- added type `CartDiscountStoreRemovedMessagePayload`
+- added type `CartDiscountStoresSetMessagePayload`
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-by-id-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-by-id-request-builder.ts
index 308c27c28..9a8c2d898 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-by-id-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-by-id-request-builder.ts
@@ -89,6 +89,9 @@ export class ByProjectKeyCartDiscountsByIDRequestBuilder {
this.args.executeRequest
)
}
+ /**
+ * Deleting a Cart Discount produces the [CartDiscountDeleted](ctp:api:type:CartDiscountDeletedMessage) Message.
+ */
public delete(methodArgs: {
queryArgs: {
version: number
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-key-by-key-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-key-by-key-request-builder.ts
index 0b4a4bfe0..84e4d547e 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-key-by-key-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-key-by-key-request-builder.ts
@@ -89,6 +89,9 @@ export class ByProjectKeyCartDiscountsKeyByKeyRequestBuilder {
this.args.executeRequest
)
}
+ /**
+ * Deleting a Cart Discount produces the [CartDiscountDeleted](ctp:api:type:CartDiscountDeletedMessage) Message.
+ */
public delete(methodArgs: {
queryArgs: {
version: number
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-request-builder.ts
index 84edab8e7..735e06041 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-cart-discounts-request-builder.ts
@@ -103,6 +103,9 @@ export class ByProjectKeyCartDiscountsRequestBuilder {
this.args.executeRequest
)
}
+ /**
+ * Creating a Cart Discount produces the [CartDiscountCreated](ctp:api:type:CartDiscountCreatedMessage) Message.
+ */
public post(methodArgs: {
queryArgs?: {
expand?: string | string[]
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-by-id-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-by-id-request-builder.ts
index 08dd26941..ee67d02b6 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-by-id-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-by-id-request-builder.ts
@@ -100,6 +100,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDRequestBuilder {
/**
* To delete a CartDiscount, specify the `manage_cart_discounts:{projectKey}:{storeKey}` scope for all Stores associated with the CartDiscount.
*
+ * Deleting a Cart Discount produces the [CartDiscountDeleted](ctp:api:type:CartDiscountDeletedMessage) Message.
+ *
*/
public delete(methodArgs: {
queryArgs: {
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-key-by-key-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-key-by-key-request-builder.ts
index 644dda588..c5c18a183 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-key-by-key-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-key-by-key-request-builder.ts
@@ -100,6 +100,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyRequestBuilder
/**
* To delete a CartDiscount, specify the `manage_cart_discounts:{projectKey}:{storeKey}` scope for all Stores associated with the CartDiscount.
*
+ * Deleting a Cart Discount produces the [CartDiscountDeleted](ctp:api:type:CartDiscountDeletedMessage) Message.
+ *
*/
public delete(methodArgs: {
queryArgs: {
diff --git a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-request-builder.ts b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-request-builder.ts
index f497f42d6..48736ea79 100644
--- a/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-request-builder.ts
+++ b/packages/platform-sdk/src/generated/client/cart-discounts/by-project-key-in-store-key-by-store-key-cart-discounts-request-builder.ts
@@ -109,6 +109,8 @@ export class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsRequestBuilder {
/**
* When using the endpoint, the Store specified in the path and the Stores specified in the payload's `stores` field are added to the CartDiscount.
*
+ * Creating a Cart Discount produces the [CartDiscountCreated](ctp:api:type:CartDiscountCreatedMessage) Message.
+ *
*/
public post(methodArgs: {
queryArgs?: {
diff --git a/packages/platform-sdk/src/generated/models/cart-discount.ts b/packages/platform-sdk/src/generated/models/cart-discount.ts
index 43620f74e..662123989 100644
--- a/packages/platform-sdk/src/generated/models/cart-discount.ts
+++ b/packages/platform-sdk/src/generated/models/cart-discount.ts
@@ -646,6 +646,8 @@ export type StackingMode = 'Stacking' | 'StopAfterThisDiscount' | string
/**
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
*
+ * This action generates a [CartDiscountStoreAdded](ctp:api:type:CartDiscountStoreAddedMessage) Message.
+ *
*/
export interface CartDiscountAddStoreAction {
readonly action: 'addStore'
@@ -747,6 +749,8 @@ export interface CartDiscountChangeValueAction {
/**
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
*
+ * This action generates a [CartDiscountStoreRemoved](ctp:api:type:CartDiscountStoreRemovedMessage) Message.
+ *
*/
export interface CartDiscountRemoveStoreAction {
readonly action: 'removeStore'
@@ -811,6 +815,8 @@ export interface CartDiscountSetKeyAction {
/**
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
*
+ * This action generates a [CartDiscountStoresSet](ctp:api:type:CartDiscountStoresSetMessage) Message.
+ *
*/
export interface CartDiscountSetStoresAction {
readonly action: 'setStores'
diff --git a/packages/platform-sdk/src/generated/models/message.ts b/packages/platform-sdk/src/generated/models/message.ts
index 460381722..bd1d72834 100644
--- a/packages/platform-sdk/src/generated/models/message.ts
+++ b/packages/platform-sdk/src/generated/models/message.ts
@@ -32,6 +32,7 @@ import {
ShippingRateInput,
TaxedItemPrice,
} from './cart'
+import { CartDiscount } from './cart-discount'
import { Category, CategoryReference } from './category'
import { ChannelReference } from './channel'
import {
@@ -168,6 +169,11 @@ export type Message =
| BusinessUnitStoreModeChangedMessage
| BusinessUnitStoreRemovedMessage
| BusinessUnitStoresSetMessage
+ | CartDiscountCreatedMessage
+ | CartDiscountDeletedMessage
+ | CartDiscountStoreAddedMessage
+ | CartDiscountStoreRemovedMessage
+ | CartDiscountStoresSetMessage
| CategoryCreatedMessage
| CategorySlugChangedMessage
| CustomLineItemStateTransitionMessage
@@ -4167,6 +4173,350 @@ export interface BusinessUnitStoresSetMessage {
*/
readonly stores: StoreKeyReference[]
}
+/**
+ * Generated after a successful [Create CartDiscount](ctp:api:endpoint:/{projectKey}/cart-discounts:POST) request.
+ *
+ */
+export interface CartDiscountCreatedMessage {
+ readonly type: 'CartDiscountCreated'
+ /**
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ *
+ */
+ readonly id: string
+ /**
+ * Version of a resource. In case of Messages, this is always `1`.
+ *
+ */
+ readonly version: number
+ /**
+ * Date and time (UTC) the Message was generated.
+ *
+ */
+ readonly createdAt: string
+ /**
+ * Value of `createdAt`.
+ *
+ */
+ readonly lastModifiedAt: string
+ /**
+ * Value of `createdBy`.
+ *
+ *
+ */
+ readonly lastModifiedBy?: LastModifiedBy
+ /**
+ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked).
+ *
+ *
+ */
+ readonly createdBy?: CreatedBy
+ /**
+ * Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
+ * `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
+ *
+ *
+ */
+ readonly sequenceNumber: number
+ /**
+ * [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resource: Reference
+ /**
+ * Version of the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resourceVersion: number
+ /**
+ * User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
+ *
+ *
+ */
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
+ /**
+ * The [Cart Discount](ctp:api:type:CartDiscount) that was created.
+ *
+ *
+ */
+ readonly cartDiscount: CartDiscount
+}
+/**
+ * Generated after a successful [Delete CartDiscount](ctp:api:endpoint:/{projectKey}/cart-discounts/{id}:DELETE) request.
+ *
+ */
+export interface CartDiscountDeletedMessage {
+ readonly type: 'CartDiscountDeleted'
+ /**
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ *
+ */
+ readonly id: string
+ /**
+ * Version of a resource. In case of Messages, this is always `1`.
+ *
+ */
+ readonly version: number
+ /**
+ * Date and time (UTC) the Message was generated.
+ *
+ */
+ readonly createdAt: string
+ /**
+ * Value of `createdAt`.
+ *
+ */
+ readonly lastModifiedAt: string
+ /**
+ * Value of `createdBy`.
+ *
+ *
+ */
+ readonly lastModifiedBy?: LastModifiedBy
+ /**
+ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked).
+ *
+ *
+ */
+ readonly createdBy?: CreatedBy
+ /**
+ * Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
+ * `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
+ *
+ *
+ */
+ readonly sequenceNumber: number
+ /**
+ * [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resource: Reference
+ /**
+ * Version of the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resourceVersion: number
+ /**
+ * User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
+ *
+ *
+ */
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
+}
+/**
+ * Generated after a successful [Add Store](ctp:api:type:CartDiscountAddStoreAction) update action.
+ *
+ */
+export interface CartDiscountStoreAddedMessage {
+ readonly type: 'CartDiscountStoreAdded'
+ /**
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ *
+ */
+ readonly id: string
+ /**
+ * Version of a resource. In case of Messages, this is always `1`.
+ *
+ */
+ readonly version: number
+ /**
+ * Date and time (UTC) the Message was generated.
+ *
+ */
+ readonly createdAt: string
+ /**
+ * Value of `createdAt`.
+ *
+ */
+ readonly lastModifiedAt: string
+ /**
+ * Value of `createdBy`.
+ *
+ *
+ */
+ readonly lastModifiedBy?: LastModifiedBy
+ /**
+ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked).
+ *
+ *
+ */
+ readonly createdBy?: CreatedBy
+ /**
+ * Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
+ * `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
+ *
+ *
+ */
+ readonly sequenceNumber: number
+ /**
+ * [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resource: Reference
+ /**
+ * Version of the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resourceVersion: number
+ /**
+ * User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
+ *
+ *
+ */
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
+ /**
+ * The [Store](ctp:api:type:Store) that was added to the [Cart Discount](ctp:api:type:CartDiscount).
+ *
+ *
+ */
+ readonly store: StoreKeyReference
+}
+/**
+ * Generated after a successful [Remove Store](ctp:api:type:CartDiscountRemoveStoreAction) update action.
+ *
+ */
+export interface CartDiscountStoreRemovedMessage {
+ readonly type: 'CartDiscountStoreRemoved'
+ /**
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ *
+ */
+ readonly id: string
+ /**
+ * Version of a resource. In case of Messages, this is always `1`.
+ *
+ */
+ readonly version: number
+ /**
+ * Date and time (UTC) the Message was generated.
+ *
+ */
+ readonly createdAt: string
+ /**
+ * Value of `createdAt`.
+ *
+ */
+ readonly lastModifiedAt: string
+ /**
+ * Value of `createdBy`.
+ *
+ *
+ */
+ readonly lastModifiedBy?: LastModifiedBy
+ /**
+ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked).
+ *
+ *
+ */
+ readonly createdBy?: CreatedBy
+ /**
+ * Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
+ * `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
+ *
+ *
+ */
+ readonly sequenceNumber: number
+ /**
+ * [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resource: Reference
+ /**
+ * Version of the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resourceVersion: number
+ /**
+ * User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
+ *
+ *
+ */
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
+ /**
+ * The [Store](ctp:api:type:Store) that was removed from the [Cart Discount](ctp:api:type:CartDiscount).
+ *
+ *
+ */
+ readonly store: StoreKeyReference
+}
+/**
+ * Generated after a successful [Set Stores](ctp:api:type:CartDiscountSetStoresAction) update action.
+ *
+ */
+export interface CartDiscountStoresSetMessage {
+ readonly type: 'CartDiscountStoresSet'
+ /**
+ * Unique identifier of the Message. Can be used to track which Messages have been processed.
+ *
+ */
+ readonly id: string
+ /**
+ * Version of a resource. In case of Messages, this is always `1`.
+ *
+ */
+ readonly version: number
+ /**
+ * Date and time (UTC) the Message was generated.
+ *
+ */
+ readonly createdAt: string
+ /**
+ * Value of `createdAt`.
+ *
+ */
+ readonly lastModifiedAt: string
+ /**
+ * Value of `createdBy`.
+ *
+ *
+ */
+ readonly lastModifiedBy?: LastModifiedBy
+ /**
+ * Present on resources created after 1 February 2019 except for [events not tracked](/../api/general-concepts#events-tracked).
+ *
+ *
+ */
+ readonly createdBy?: CreatedBy
+ /**
+ * Message number in relation to other Messages for a given resource. The `sequenceNumber` of the next Message for the resource is the successor of the `sequenceNumber` of the current Message. Meaning, the `sequenceNumber` of the next Message equals the `sequenceNumber` of the current Message + 1.
+ * `sequenceNumber` can be used to ensure that Messages are processed in the correct order for a particular resource.
+ *
+ *
+ */
+ readonly sequenceNumber: number
+ /**
+ * [Reference](ctp:api:type:Reference) to the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resource: Reference
+ /**
+ * Version of the resource on which the change or action was performed.
+ *
+ *
+ */
+ readonly resourceVersion: number
+ /**
+ * User-provided identifiers of the resource, such as `key` or `externalId`. Only present if the resource has such identifiers.
+ *
+ *
+ */
+ readonly resourceUserProvidedIdentifiers?: UserProvidedIdentifiers
+ /**
+ * [Stores](ctp:api:type:Store) of the [Cart Discount](ctp:api:type:CartDiscount) after the [Set Stores](ctp:api:type:CartDiscountSetStoresAction) update action.
+ *
+ *
+ */
+ readonly stores: StoreKeyReference[]
+}
/**
* Generated after a successful [Create Category](ctp:api:endpoint:/{projectKey}/categories:POST) request.
*
@@ -16654,6 +17004,11 @@ export type MessagePayload =
| BusinessUnitStoreModeChangedMessagePayload
| BusinessUnitStoreRemovedMessagePayload
| BusinessUnitStoresSetMessagePayload
+ | CartDiscountCreatedMessagePayload
+ | CartDiscountDeletedMessagePayload
+ | CartDiscountStoreAddedMessagePayload
+ | CartDiscountStoreRemovedMessagePayload
+ | CartDiscountStoresSetMessagePayload
| CategoryCreatedMessagePayload
| CategorySlugChangedMessagePayload
| CustomLineItemStateTransitionMessagePayload
@@ -17633,6 +17988,65 @@ export interface BusinessUnitStoresSetMessagePayload {
*/
readonly stores: StoreKeyReference[]
}
+/**
+ * Generated after a successful [Create CartDiscount](ctp:api:endpoint:/{projectKey}/cart-discounts:POST) request.
+ *
+ */
+export interface CartDiscountCreatedMessagePayload {
+ readonly type: 'CartDiscountCreated'
+ /**
+ * The [Cart Discount](ctp:api:type:CartDiscount) that was created.
+ *
+ *
+ */
+ readonly cartDiscount: CartDiscount
+}
+/**
+ * Generated after a successful [Delete CartDiscount](ctp:api:endpoint:/{projectKey}/cart-discounts/{id}:DELETE) request.
+ *
+ */
+export interface CartDiscountDeletedMessagePayload {
+ readonly type: 'CartDiscountDeleted'
+}
+/**
+ * Generated after a successful [Add Store](ctp:api:type:CartDiscountAddStoreAction) update action.
+ *
+ */
+export interface CartDiscountStoreAddedMessagePayload {
+ readonly type: 'CartDiscountStoreAdded'
+ /**
+ * The [Store](ctp:api:type:Store) that was added to the [Cart Discount](ctp:api:type:CartDiscount).
+ *
+ *
+ */
+ readonly store: StoreKeyReference
+}
+/**
+ * Generated after a successful [Remove Store](ctp:api:type:CartDiscountRemoveStoreAction) update action.
+ *
+ */
+export interface CartDiscountStoreRemovedMessagePayload {
+ readonly type: 'CartDiscountStoreRemoved'
+ /**
+ * The [Store](ctp:api:type:Store) that was removed from the [Cart Discount](ctp:api:type:CartDiscount).
+ *
+ *
+ */
+ readonly store: StoreKeyReference
+}
+/**
+ * Generated after a successful [Set Stores](ctp:api:type:CartDiscountSetStoresAction) update action.
+ *
+ */
+export interface CartDiscountStoresSetMessagePayload {
+ readonly type: 'CartDiscountStoresSet'
+ /**
+ * [Stores](ctp:api:type:Store) of the [Cart Discount](ctp:api:type:CartDiscount) after the [Set Stores](ctp:api:type:CartDiscountSetStoresAction) update action.
+ *
+ *
+ */
+ readonly stores: StoreKeyReference[]
+}
/**
* Generated after a successful [Create Category](ctp:api:endpoint:/{projectKey}/categories:POST) request.
*
diff --git a/references.txt b/references.txt
index e44592cca..a77263eef 100644
--- a/references.txt
+++ b/references.txt
@@ -217,3 +217,4 @@ abf2e5abe5909b6f2f44aa192852d2a12c5aa519
d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
281ab8a36f5fd144e39212855c2991eaeb29407a
5804c065e8051fa2b49be3dc0e9393bc280a7bdc
+05300c0ea84527a9f8ce73ac1f319c9e6a9f46cb
From c3ec54cd387a6a03964c63bc5e15910220264d93 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 17 Jan 2024 10:16:46 +0000
Subject: [PATCH 12/28] build(codegen): updating SDK
---
changes.md | 56 +++++++++++++++++++++++++-------------------------
references.txt | 1 +
2 files changed, 29 insertions(+), 28 deletions(-)
diff --git a/changes.md b/changes.md
index bb47c0bc9..40bfab92e 100644
--- a/changes.md
+++ b/changes.md
@@ -1,16 +1,10 @@
**Api changes**
-Added QueryParameter(s)
+Removed Type(s)
-- added query parameter `expand` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `sort` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `limit` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `offset` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `withTotal` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `where` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `/^var[.][a-zA-Z0-9]+$/` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `expand` to method `post /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- :warning: removed type `NotEnabledError`
+- :warning: removed type `GraphQLNotEnabledError`
@@ -31,16 +25,9 @@
-Removed Type(s)
-
-- :warning: removed type `NotEnabledError`
-- :warning: removed type `GraphQLNotEnabledError`
-
-
-
-Added Property(s)
+Changed MethodResponseBody(s)
-- added property `custom` to type `ApprovalFlow`
+- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse`
@@ -54,23 +41,26 @@
-Changed MethodResponseBody(s)
+Added QueryParameter(s)
-- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse`
+- added query parameter `expand` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `sort` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `limit` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `offset` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `withTotal` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `where` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `/^var[.][a-zA-Z0-9]+$/` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
+- added query parameter `expand` to method `post /{projectKey}/in-store/key={storeKey}/cart-discounts`
-**History changes**
-
-Added Type(s)
+Added Property(s)
-- added type `AttributeLocalizedEnumValue`
-- added type `AttributePlainEnumValue`
-- added type `ChannelRoleEnum`
-- added type `StateRoleEnum`
-- added type `StateTypeEnum`
+- added property `custom` to type `ApprovalFlow`
+**History changes**
+
Removed Type(s)
@@ -79,6 +69,16 @@
- :warning: removed type `StateType`
+
+Added Type(s)
+
+- added type `AttributeLocalizedEnumValue`
+- added type `AttributePlainEnumValue`
+- added type `ChannelRoleEnum`
+- added type `StateRoleEnum`
+- added type `StateTypeEnum`
+
+
Removed Property(s)
diff --git a/references.txt b/references.txt
index a77263eef..74d3c4116 100644
--- a/references.txt
+++ b/references.txt
@@ -218,3 +218,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
281ab8a36f5fd144e39212855c2991eaeb29407a
5804c065e8051fa2b49be3dc0e9393bc280a7bdc
05300c0ea84527a9f8ce73ac1f319c9e6a9f46cb
+47e18782ed2049ecdae7413ff7df9c3a796b8132
From a2f283e467882e872418392fc0e843351ea53357 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 17 Jan 2024 13:27:27 +0000
Subject: [PATCH 13/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/customer.ts | 8 ++++++--
packages/platform-sdk/src/generated/models/me.ts | 4 ++--
.../platform-sdk/src/generated/models/standalone-price.ts | 2 +-
references.txt | 1 +
4 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/packages/platform-sdk/src/generated/models/customer.ts b/packages/platform-sdk/src/generated/models/customer.ts
index f64ad8bfc..e553c336d 100644
--- a/packages/platform-sdk/src/generated/models/customer.ts
+++ b/packages/platform-sdk/src/generated/models/customer.ts
@@ -1216,6 +1216,10 @@ export interface CustomerSetExternalIdAction {
*/
readonly externalId?: string
}
+/**
+ * Setting the first name of the Customer produces the [CustomeFirstNameSet](ctp:api:type:CustomerFirstNameSetMessage) Message.
+ *
+ */
export interface CustomerSetFirstNameAction {
readonly action: 'setFirstName'
/**
@@ -1235,7 +1239,7 @@ export interface CustomerSetKeyAction {
readonly key?: string
}
/**
- * Setting the last name of the Customer produces the [CustomerLastNameSetMessage](ctp:api:type:CustomerLastNameSetMessage).
+ * Setting the last name of the Customer produces the [CustomerLastNameSet](ctp:api:type:CustomerLastNameSetMessage) Message.
*
*/
export interface CustomerSetLastNameAction {
@@ -1290,7 +1294,7 @@ export interface CustomerSetStoresAction {
readonly stores?: StoreResourceIdentifier[]
}
/**
- * Setting the title of the Customer produces the [CustomerTitleSetMessage](ctp:api:type:CustomerTitleSetMessage).
+ * Setting the title of the Customer produces the [CustomerTitleSet](ctp:api:type:CustomerTitleSetMessage) Message.
*
*/
export interface CustomerSetTitleAction {
diff --git a/packages/platform-sdk/src/generated/models/me.ts b/packages/platform-sdk/src/generated/models/me.ts
index 6b75a00be..b36af31c5 100644
--- a/packages/platform-sdk/src/generated/models/me.ts
+++ b/packages/platform-sdk/src/generated/models/me.ts
@@ -2158,7 +2158,7 @@ export interface MyCustomerSetDefaultShippingAddressAction {
readonly addressKey?: string
}
/**
- * Setting the first name of the Customer produces the [CustomerFirstNameSetMessage](ctp:api:type:CustomerFirstNameSetMessage).
+ * Setting the first name of the Customer produces the [CustomerFirstNameSet](ctp:api:type:CustomerFirstNameSetMessage) Message.
*
*/
export interface MyCustomerSetFirstNameAction {
@@ -2172,7 +2172,7 @@ export interface MyCustomerSetFirstNameAction {
readonly firstName?: string
}
/**
- * Setting the last name of the Customer produces the [CustomerLastNameSetMessage](ctp:api:type:CustomerLastNameSetMessage).
+ * Setting the last name of the Customer produces the [CustomerLastNameSet](ctp:api:type:CustomerLastNameSetMessage) Message.
*
*/
export interface MyCustomerSetLastNameAction {
diff --git a/packages/platform-sdk/src/generated/models/standalone-price.ts b/packages/platform-sdk/src/generated/models/standalone-price.ts
index 6f852452d..dbd77b4e3 100644
--- a/packages/platform-sdk/src/generated/models/standalone-price.ts
+++ b/packages/platform-sdk/src/generated/models/standalone-price.ts
@@ -386,7 +386,7 @@ export interface StandalonePriceApplyStagedChangesAction {
readonly action: 'applyStagedChanges'
}
/**
- * Updating the value of a [StandalonePrice](ctp:api:type:StandalonePrice) produces the [StandalonePriceActiveChangedMessage](ctp:api:type:StandalonePriceActiveChangedMessage).
+ * Updating the value of a [StandalonePrice](ctp:api:type:StandalonePrice) produces the [StandalonePriceActiveChanged](ctp:api:type:StandalonePriceActiveChangedMessage) Message.
*
*/
export interface StandalonePriceChangeActiveAction {
diff --git a/references.txt b/references.txt
index 74d3c4116..94abc9a7d 100644
--- a/references.txt
+++ b/references.txt
@@ -219,3 +219,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
5804c065e8051fa2b49be3dc0e9393bc280a7bdc
05300c0ea84527a9f8ce73ac1f319c9e6a9f46cb
47e18782ed2049ecdae7413ff7df9c3a796b8132
+14cae25763d9bd24ec49dc1a4698532d5a21a7ef
From c1a3d6d993c5231cec3ab8d91802208c03e7d1cd Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 18 Jan 2024 08:44:45 +0000
Subject: [PATCH 14/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 94abc9a7d..b866d3959 100644
--- a/references.txt
+++ b/references.txt
@@ -220,3 +220,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
05300c0ea84527a9f8ce73ac1f319c9e6a9f46cb
47e18782ed2049ecdae7413ff7df9c3a796b8132
14cae25763d9bd24ec49dc1a4698532d5a21a7ef
+de74b7108b22564877be0b8f52e66b3febc1760f
From e71b1bb214a1369e86087e5bc0db6767515d14f6 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 08:58:07 +0000
Subject: [PATCH 15/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index b866d3959..6da03664e 100644
--- a/references.txt
+++ b/references.txt
@@ -221,3 +221,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
47e18782ed2049ecdae7413ff7df9c3a796b8132
14cae25763d9bd24ec49dc1a4698532d5a21a7ef
de74b7108b22564877be0b8f52e66b3febc1760f
+de74b7108b22564877be0b8f52e66b3febc1760f
From 0d71d031a18ba67b519220422d914c7b88f659ef Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 22 Jan 2024 16:39:19 +0000
Subject: [PATCH 16/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/me.ts | 1 -
references.txt | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/platform-sdk/src/generated/models/me.ts b/packages/platform-sdk/src/generated/models/me.ts
index b36af31c5..bfe4ba1e3 100644
--- a/packages/platform-sdk/src/generated/models/me.ts
+++ b/packages/platform-sdk/src/generated/models/me.ts
@@ -1329,7 +1329,6 @@ export interface MyCartAddItemShippingAddressAction {
/**
* If the Cart contains a [LineItem](ctp:api:type:LineItem) for a Product Variant with the same [LineItemMode](ctp:api:type:LineItemMode), [Custom Fields](/../api/projects/custom-fields), supply and distribution channel, then only the quantity of the existing Line Item is increased.
* If [LineItem](ctp:api:type:LineItem) `shippingDetails` is set, it is merged. All addresses will be present afterwards and, for address keys present in both shipping details, the quantity will be summed up.
- * A new Line Item is added when the `externalPrice` or `externalTotalPrice` is set in this update action.
* The [LineItem](ctp:api:type:LineItem) price is set as described in [LineItem Price selection](ctp:api:type:LineItemPriceSelection).
*
* If the Tax Rate is not set, a [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError) error is returned.
diff --git a/references.txt b/references.txt
index 6da03664e..f7afb205d 100644
--- a/references.txt
+++ b/references.txt
@@ -222,3 +222,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
14cae25763d9bd24ec49dc1a4698532d5a21a7ef
de74b7108b22564877be0b8f52e66b3febc1760f
de74b7108b22564877be0b8f52e66b3febc1760f
+477146620493d849e6dd23e6faee889be5b0836a
From c967777a57ef92fe1d094def04c390be800eb1e2 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 23 Jan 2024 17:04:31 +0000
Subject: [PATCH 17/28] build(codegen): updating SDK
---
.../importapi-sdk/src/generated/models/importsummaries.ts | 3 +++
...-project-key-import-containers-request-builder.test.ts | 8 ++++----
...ontainer-key-import-operations-request-builder.test.ts | 8 ++++----
references.txt | 1 +
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/packages/importapi-sdk/src/generated/models/importsummaries.ts b/packages/importapi-sdk/src/generated/models/importsummaries.ts
index 5702910ce..d98132c65 100644
--- a/packages/importapi-sdk/src/generated/models/importsummaries.ts
+++ b/packages/importapi-sdk/src/generated/models/importsummaries.ts
@@ -22,6 +22,9 @@ export interface ImportSummary {
*/
readonly total: number
}
+/**
+ * The number of resources in each [Processing State](/processing-state#processingstate).
+ */
export interface OperationStates {
/**
* The number of resources in the `processing` state.
diff --git a/packages/importapi-sdk/test/generated/client/import-containers/by-project-key-import-containers-request-builder.test.ts b/packages/importapi-sdk/test/generated/client/import-containers/by-project-key-import-containers-request-builder.test.ts
index 006f55b78..53597148a 100644
--- a/packages/importapi-sdk/test/generated/client/import-containers/by-project-key-import-containers-request-builder.test.ts
+++ b/packages/importapi-sdk/test/generated/client/import-containers/by-project-key-import-containers-request-builder.test.ts
@@ -21,19 +21,19 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
},
{
method: 'get',
- uri: '/test_projectKey/import-containers?limit=0.26748633',
+ uri: '/test_projectKey/import-containers?limit=7',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.importContainers()
- .get({ queryArgs: { limit: 0.26748633 } }),
+ .get({ queryArgs: { limit: 7 } }),
},
{
method: 'get',
- uri: '/test_projectKey/import-containers?offset=0.7475848',
+ uri: '/test_projectKey/import-containers?offset=3',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.importContainers()
- .get({ queryArgs: { offset: 0.7475848 } }),
+ .get({ queryArgs: { offset: 3 } }),
},
{
method: 'get',
diff --git a/packages/importapi-sdk/test/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.test.ts b/packages/importapi-sdk/test/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.test.ts
index ba8d31794..5be1ea074 100644
--- a/packages/importapi-sdk/test/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.test.ts
+++ b/packages/importapi-sdk/test/generated/client/import-operations/by-project-key-import-containers-by-import-container-key-import-operations-request-builder.test.ts
@@ -13,7 +13,7 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
return [
{
method: 'get',
- uri: '/test_projectKey/import-containers/test_importContainerKey/import-operations?limit=0.26748633',
+ uri: '/test_projectKey/import-containers/test_importContainerKey/import-operations?limit=7',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.importContainers()
@@ -21,11 +21,11 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
importContainerKey: 'test_importContainerKey',
})
.importOperations()
- .get({ queryArgs: { limit: 0.26748633 } }),
+ .get({ queryArgs: { limit: 7 } }),
},
{
method: 'get',
- uri: '/test_projectKey/import-containers/test_importContainerKey/import-operations?offset=0.7475848',
+ uri: '/test_projectKey/import-containers/test_importContainerKey/import-operations?offset=3',
request: apiRoot
.withProjectKeyValue({ projectKey: 'test_projectKey' })
.importContainers()
@@ -33,7 +33,7 @@ export function getRequestsWithMethodParameters(): RequestWithMethod[] {
importContainerKey: 'test_importContainerKey',
})
.importOperations()
- .get({ queryArgs: { offset: 0.7475848 } }),
+ .get({ queryArgs: { offset: 3 } }),
},
{
method: 'get',
diff --git a/references.txt b/references.txt
index f7afb205d..f793f41d7 100644
--- a/references.txt
+++ b/references.txt
@@ -223,3 +223,4 @@ d54ef63fe5ba7eac24c714f805b0a0dbe4315fb7
de74b7108b22564877be0b8f52e66b3febc1760f
de74b7108b22564877be0b8f52e66b3febc1760f
477146620493d849e6dd23e6faee889be5b0836a
+b29097130599fc8a4f618beb7a276feaea4e31a6
From 1504e1981153ac95e99529de487605b4a09a8d1b Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 24 Jan 2024 09:45:31 +0000
Subject: [PATCH 18/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/common.ts | 4 ++--
packages/platform-sdk/src/generated/models/error.ts | 4 ++--
packages/platform-sdk/src/generated/models/order.ts | 4 ++--
references.txt | 1 +
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/packages/platform-sdk/src/generated/models/common.ts b/packages/platform-sdk/src/generated/models/common.ts
index 58c477b1d..800912ced 100644
--- a/packages/platform-sdk/src/generated/models/common.ts
+++ b/packages/platform-sdk/src/generated/models/common.ts
@@ -65,7 +65,7 @@ import {
InventoryEntryResourceIdentifier,
} from './inventory'
import { Message } from './message'
-import { Order, OrderReference } from './order'
+import { OrderReference, _Order } from './order'
import {
OrderEdit,
OrderEditReference,
@@ -543,7 +543,7 @@ export type _BaseResource =
| Extension
| InventoryEntry
| Message
- | Order
+ | _Order
| OrderEdit
| Payment
| Product
diff --git a/packages/platform-sdk/src/generated/models/error.ts b/packages/platform-sdk/src/generated/models/error.ts
index 2b9383f31..1186ec93e 100644
--- a/packages/platform-sdk/src/generated/models/error.ts
+++ b/packages/platform-sdk/src/generated/models/error.ts
@@ -998,7 +998,7 @@ export interface FeatureRemovedError {
readonly message: string
}
/**
- * Returned when a server-side problem occurs.
+ * Returned when a server-side problem occurs before or after data persistence. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.
*
* If you encounter this error, report it using the [Support Portal](https://support.commercetools.com).
*
@@ -2672,7 +2672,7 @@ export interface GraphQLFeatureRemovedError {
[key: string]: any
}
/**
- * Returned when a server-side problem occurs.
+ * Returned when a server-side problem occurs before or after data persistence. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.
*
* If you encounter this error, report it using the [Support Portal](https://support.commercetools.com).
*
diff --git a/packages/platform-sdk/src/generated/models/order.ts b/packages/platform-sdk/src/generated/models/order.ts
index 9798c5bdf..1cb1d77a1 100644
--- a/packages/platform-sdk/src/generated/models/order.ts
+++ b/packages/platform-sdk/src/generated/models/order.ts
@@ -1353,8 +1353,8 @@ export interface OrderReference {
export interface OrderSearchQuery {}
export type _OrderSearchQuery =
| OrderSearchQuery
- | OrderSearchCompoundExpression
- | OrderSearchQueryExpression
+ | _OrderSearchCompoundExpression
+ | _OrderSearchQueryExpression
export interface OrderSearchCompoundExpression extends OrderSearchQuery {}
export type _OrderSearchCompoundExpression =
| OrderSearchCompoundExpression
diff --git a/references.txt b/references.txt
index f793f41d7..2945facc7 100644
--- a/references.txt
+++ b/references.txt
@@ -224,3 +224,4 @@ de74b7108b22564877be0b8f52e66b3febc1760f
de74b7108b22564877be0b8f52e66b3febc1760f
477146620493d849e6dd23e6faee889be5b0836a
b29097130599fc8a4f618beb7a276feaea4e31a6
+bd1f09f643bdb7b0840feca64b19caa6e55d766a
From e2bcef49ce66625aa327cad5c1b7826ca8289b31 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 24 Jan 2024 15:18:36 +0000
Subject: [PATCH 19/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 2945facc7..50ce50eb1 100644
--- a/references.txt
+++ b/references.txt
@@ -225,3 +225,4 @@ de74b7108b22564877be0b8f52e66b3febc1760f
477146620493d849e6dd23e6faee889be5b0836a
b29097130599fc8a4f618beb7a276feaea4e31a6
bd1f09f643bdb7b0840feca64b19caa6e55d766a
+c640bc7c38e111f9df252979cc5c2ab22568a3d8
From f9b0f4a3376ce53964983673576ecfaa87418d5f Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 25 Jan 2024 08:46:23 +0000
Subject: [PATCH 20/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/cart.ts | 10 ++++++----
packages/platform-sdk/src/generated/models/message.ts | 6 ++++--
references.txt | 1 +
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/packages/platform-sdk/src/generated/models/cart.ts b/packages/platform-sdk/src/generated/models/cart.ts
index 0bea8b543..8ba640fb7 100644
--- a/packages/platform-sdk/src/generated/models/cart.ts
+++ b/packages/platform-sdk/src/generated/models/cart.ts
@@ -734,7 +734,8 @@ export interface CustomLineItem {
*/
readonly taxedPrice?: TaxedItemPrice
/**
- * Taxed price of the Shipping Method that is automatically set after `perMethodTaxRate` is set.
+ * Total taxed prices based on the quantity of the Custom Line Item assigned to each [Shipping Method](ctp:api:type:ShippingMethod). Only applicable for Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Automatically set after `perMethodTaxRate` is set.
*
*/
readonly taxedPricePortions: MethodTaxedPrice[]
@@ -1365,7 +1366,8 @@ export interface LineItem {
*/
readonly taxedPrice?: TaxedItemPrice
/**
- * Taxed price of the Shipping Method that is automatically set after `perMethodTaxRate` is set.
+ * Total taxed prices based on the quantity of Line Item assigned to each [Shipping Method](ctp:api:type:ShippingMethod). Only applicable for Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Automatically set after `perMethodTaxRate` is set.
*
*/
readonly taxedPricePortions: MethodTaxedPrice[]
@@ -1594,13 +1596,13 @@ export interface MethodTaxRate {
}
export interface MethodTaxedPrice {
/**
- * User-defined unique identifier of the Shipping Method in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * User-defined unique identifier of the [Shipping Method](ctp:api:type:ShippingMethod) in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
*
*
*/
readonly shippingMethodKey: string
/**
- * Taxed price for the Shipping Method.
+ * Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by `shippingMethodKey`.
*
*
*/
diff --git a/packages/platform-sdk/src/generated/models/message.ts b/packages/platform-sdk/src/generated/models/message.ts
index bd1d72834..1b5e33575 100644
--- a/packages/platform-sdk/src/generated/models/message.ts
+++ b/packages/platform-sdk/src/generated/models/message.ts
@@ -9492,7 +9492,8 @@ export interface OrderLineItemDiscountSetMessage {
*/
readonly taxedPrice?: TaxedItemPrice
/**
- * Taxed price of the Shipping Methods in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Total taxed prices based on the quantity of Line Item assigned to each [Shipping Method](ctp:api:type:ShippingMethod). Only applicable for Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Automatically set after `perMethodTaxRate` is set.
*
*
*/
@@ -19298,7 +19299,8 @@ export interface OrderLineItemDiscountSetMessagePayload {
*/
readonly taxedPrice?: TaxedItemPrice
/**
- * Taxed price of the Shipping Methods in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Total taxed prices based on the quantity of Line Item assigned to each [Shipping Method](ctp:api:type:ShippingMethod). Only applicable for Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ * Automatically set after `perMethodTaxRate` is set.
*
*
*/
diff --git a/references.txt b/references.txt
index 50ce50eb1..cf8ba7094 100644
--- a/references.txt
+++ b/references.txt
@@ -226,3 +226,4 @@ de74b7108b22564877be0b8f52e66b3febc1760f
b29097130599fc8a4f618beb7a276feaea4e31a6
bd1f09f643bdb7b0840feca64b19caa6e55d766a
c640bc7c38e111f9df252979cc5c2ab22568a3d8
+8242aca6c3e58147ce99c6a1dbd08e35818b1563
From 919edbe784a714fcbcaf75a56bb9ea7cda13dcec Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Thu, 25 Jan 2024 14:52:03 +0000
Subject: [PATCH 21/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index cf8ba7094..bbfc32806 100644
--- a/references.txt
+++ b/references.txt
@@ -227,3 +227,4 @@ b29097130599fc8a4f618beb7a276feaea4e31a6
bd1f09f643bdb7b0840feca64b19caa6e55d766a
c640bc7c38e111f9df252979cc5c2ab22568a3d8
8242aca6c3e58147ce99c6a1dbd08e35818b1563
+2e6876d6e80db67518bc18caed1e630372cae607
From c0c5691b930cc3d44167e94b9df794c4e1e87362 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Fri, 26 Jan 2024 09:00:34 +0000
Subject: [PATCH 22/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index bbfc32806..550a4bb69 100644
--- a/references.txt
+++ b/references.txt
@@ -228,3 +228,4 @@ bd1f09f643bdb7b0840feca64b19caa6e55d766a
c640bc7c38e111f9df252979cc5c2ab22568a3d8
8242aca6c3e58147ce99c6a1dbd08e35818b1563
2e6876d6e80db67518bc18caed1e630372cae607
+455326d83ec0750dfaec9afc7ec640f15412a68f
From 138b026aec687a60ed8b735b23706e58a99e919e Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Fri, 26 Jan 2024 10:34:13 +0000
Subject: [PATCH 23/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/cart.ts | 3 ++-
packages/platform-sdk/src/generated/models/order.ts | 1 +
.../platform-sdk/src/generated/models/shipping-method.ts | 6 +++---
references.txt | 1 +
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/packages/platform-sdk/src/generated/models/cart.ts b/packages/platform-sdk/src/generated/models/cart.ts
index 8ba640fb7..aa9044193 100644
--- a/packages/platform-sdk/src/generated/models/cart.ts
+++ b/packages/platform-sdk/src/generated/models/cart.ts
@@ -436,6 +436,7 @@ export interface CartDraft {
readonly billingAddress?: _BaseAddress
/**
* Shipping address for a Cart with `Single` [ShippingMode](ctp:api:type:ShippingMode). Determines eligible [ShippingMethod](ctp:api:type:ShippingMethod) rates and Tax Rates of Line Items.
+ * Must be one of the `itemShippingAddresses` when that field is also provided.
*
*
*/
@@ -1265,7 +1266,7 @@ export interface ItemShippingTarget {
/**
* User-defined unique identifier of the Shipping Method in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
*
- * It connects Line Item quantities with individual shipping addresses.
+ * It connects Line Item or Custom Line Item quantities with individual Shipping Methods.
*
*/
readonly shippingMethodKey?: string
diff --git a/packages/platform-sdk/src/generated/models/order.ts b/packages/platform-sdk/src/generated/models/order.ts
index 1cb1d77a1..fea69a0e6 100644
--- a/packages/platform-sdk/src/generated/models/order.ts
+++ b/packages/platform-sdk/src/generated/models/order.ts
@@ -2398,6 +2398,7 @@ export interface OrderRemoveDeliveryAction {
}
/**
* An address can only be removed if it is not referenced in any [ItemShippingTarget](ctp:api:type:ItemShippingTarget) of the Cart.
+ * In such case, change the Line Item shipping address to a different `addressKey` first using the [Set LineItemShippingDetails](ctp:api:type:OrderSetLineItemShippingDetailsAction) update action, before you remove the obsolete address.
*
*/
export interface OrderRemoveItemShippingAddressAction {
diff --git a/packages/platform-sdk/src/generated/models/shipping-method.ts b/packages/platform-sdk/src/generated/models/shipping-method.ts
index dbd2cd72d..5ae44f3cc 100644
--- a/packages/platform-sdk/src/generated/models/shipping-method.ts
+++ b/packages/platform-sdk/src/generated/models/shipping-method.ts
@@ -295,7 +295,7 @@ export interface ShippingRate {
*/
readonly price: TypedMoney
/**
- * Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.
+ * [Free shipping](/../shipping-delivery-overview#free-shipping) is applied if the sum of the (Custom) Line Item Prices reaches the specified value.
*
*/
readonly freeAbove?: TypedMoney
@@ -320,7 +320,7 @@ export interface ShippingRateDraft {
*/
readonly price: _Money
/**
- * Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.
+ * [Free shipping](/../shipping-delivery-overview#free-shipping) is applied if the sum of the (Custom) Line Item Prices reaches the specified value.
*
*/
readonly freeAbove?: _Money
@@ -367,7 +367,7 @@ export interface CartClassificationTier {
export interface CartScoreTier {
readonly type: 'CartScore'
/**
- * Abstract value for categorizing a Cart. The range starts at `0`. The default price covers `0`, tiers start at `1`. See [Using Tiered Shipping Rates](/../tutorials/shipping-rate) for details and examples.
+ * Abstract value for categorizing a Cart. The range starts at `0`. The default price covers `0`, tiers start at `1`. See [Tiered shipping rates](/../api/shipping-delivery-overview#tiered-shipping-rates) for details and examples.
*
*
*/
diff --git a/references.txt b/references.txt
index 550a4bb69..849435c73 100644
--- a/references.txt
+++ b/references.txt
@@ -229,3 +229,4 @@ c640bc7c38e111f9df252979cc5c2ab22568a3d8
8242aca6c3e58147ce99c6a1dbd08e35818b1563
2e6876d6e80db67518bc18caed1e630372cae607
455326d83ec0750dfaec9afc7ec640f15412a68f
+bbed21a27bf83c8ac16f323969d71a8855623523
From 4775463d586984755bd63d6dec67da3c75e87828 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 30 Jan 2024 13:13:53 +0000
Subject: [PATCH 24/28] build(codegen): updating SDK
---
changes.md | 1 +
packages/platform-sdk/src/generated/models/me.ts | 7 +++++++
references.txt | 1 +
3 files changed, 9 insertions(+)
diff --git a/changes.md b/changes.md
index 40bfab92e..c1d49fcaa 100644
--- a/changes.md
+++ b/changes.md
@@ -57,6 +57,7 @@
Added Property(s)
- added property `custom` to type `ApprovalFlow`
+- added property `shippingMode` to type `MyCartDraft`
**History changes**
diff --git a/packages/platform-sdk/src/generated/models/me.ts b/packages/platform-sdk/src/generated/models/me.ts
index bfe4ba1e3..cc8ff8e0d 100644
--- a/packages/platform-sdk/src/generated/models/me.ts
+++ b/packages/platform-sdk/src/generated/models/me.ts
@@ -17,6 +17,7 @@ import {
InventoryMode,
ItemShippingDetailsDraft,
ItemShippingTarget,
+ ShippingMode,
TaxMode,
} from './cart'
import { ChannelResourceIdentifier } from './channel'
@@ -180,6 +181,12 @@ export interface MyCartDraft {
*
*/
readonly itemShippingAddresses?: BaseAddress[]
+ /**
+ * - If set to `Single`, only a single Shipping Method can be added to the Cart.
+ * - If set to `Multiple`, multiple Shipping Methods can be added to the Cart.
+ *
+ */
+ readonly shippingMode?: ShippingMode
/**
* `code` of the existing [DiscountCodes](ctp:api:type:DiscountCode) to add to the Cart.
*
diff --git a/references.txt b/references.txt
index 849435c73..981ea9f36 100644
--- a/references.txt
+++ b/references.txt
@@ -230,3 +230,4 @@ c640bc7c38e111f9df252979cc5c2ab22568a3d8
2e6876d6e80db67518bc18caed1e630372cae607
455326d83ec0750dfaec9afc7ec640f15412a68f
bbed21a27bf83c8ac16f323969d71a8855623523
+e3a178953d3d929a58092a0c86d666fee6400c75
From 966dded332e3fff0dbe9897a34919e1a4ae09e4f Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 30 Jan 2024 14:17:19 +0000
Subject: [PATCH 25/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 981ea9f36..2c0857b5b 100644
--- a/references.txt
+++ b/references.txt
@@ -231,3 +231,4 @@ c640bc7c38e111f9df252979cc5c2ab22568a3d8
455326d83ec0750dfaec9afc7ec640f15412a68f
bbed21a27bf83c8ac16f323969d71a8855623523
e3a178953d3d929a58092a0c86d666fee6400c75
+d10443de67d8c8e684b4e63415b5720fc3bcf169
From becc8d64be740de651e81b45f297c9c381bf47e3 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Tue, 30 Jan 2024 17:04:55 +0000
Subject: [PATCH 26/28] build(codegen): updating SDK
---
references.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/references.txt b/references.txt
index 2c0857b5b..b0e66fc5e 100644
--- a/references.txt
+++ b/references.txt
@@ -232,3 +232,4 @@ c640bc7c38e111f9df252979cc5c2ab22568a3d8
bbed21a27bf83c8ac16f323969d71a8855623523
e3a178953d3d929a58092a0c86d666fee6400c75
d10443de67d8c8e684b4e63415b5720fc3bcf169
+886f8d7e51ee9afd3dea683e0b6ed042eec469f1
From 9f4534e0e42c944734be64157b8f596340f4889d Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 31 Jan 2024 10:46:41 +0000
Subject: [PATCH 27/28] build(codegen): updating SDK
---
changes.md | 1 +
packages/platform-sdk/src/generated/models/cart.ts | 6 ++++++
references.txt | 1 +
3 files changed, 8 insertions(+)
diff --git a/changes.md b/changes.md
index c1d49fcaa..dff7525fb 100644
--- a/changes.md
+++ b/changes.md
@@ -57,6 +57,7 @@
Added Property(s)
- added property `custom` to type `ApprovalFlow`
+- added property `perMethodExternalTaxRate` to type `CartAddLineItemAction`
- added property `shippingMode` to type `MyCartDraft`
diff --git a/packages/platform-sdk/src/generated/models/cart.ts b/packages/platform-sdk/src/generated/models/cart.ts
index aa9044193..5a65f68c0 100644
--- a/packages/platform-sdk/src/generated/models/cart.ts
+++ b/packages/platform-sdk/src/generated/models/cart.ts
@@ -2259,6 +2259,12 @@ export interface CartAddLineItemAction {
*
*/
readonly externalTaxRate?: ExternalTaxRateDraft
+ /**
+ * Sets the external Tax Rates for individual Shipping Methods, if the Cart has the `External` [TaxMode](ctp:api:type:TaxMode) and `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
+ *
+ *
+ */
+ readonly perMethodExternalTaxRate?: MethodExternalTaxRateDraft[]
/**
* Inventory mode specific to the Line Item only, and valid for the entire `quantity` of the Line Item.
* Set only if the inventory mode should be different from the `inventoryMode` specified on the [Cart](ctp:api:type:Cart).
diff --git a/references.txt b/references.txt
index b0e66fc5e..acca26580 100644
--- a/references.txt
+++ b/references.txt
@@ -233,3 +233,4 @@ bbed21a27bf83c8ac16f323969d71a8855623523
e3a178953d3d929a58092a0c86d666fee6400c75
d10443de67d8c8e684b4e63415b5720fc3bcf169
886f8d7e51ee9afd3dea683e0b6ed042eec469f1
+5b5166eedb28e48364c82c3fcf2d795983fe9fa8
From ba3a5266e31ba01808531d36f20772ba3720984c Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Wed, 31 Jan 2024 13:52:56 +0000
Subject: [PATCH 28/28] build(codegen): updating SDK
---
packages/platform-sdk/src/generated/models/category.ts | 4 ++--
references.txt | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/packages/platform-sdk/src/generated/models/category.ts b/packages/platform-sdk/src/generated/models/category.ts
index 5c1518748..f87da7a0c 100644
--- a/packages/platform-sdk/src/generated/models/category.ts
+++ b/packages/platform-sdk/src/generated/models/category.ts
@@ -91,7 +91,7 @@ export interface Category extends BaseResource {
*/
readonly parent?: CategoryReference
/**
- * Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree.
+ * Decimal value between 0 and 1. Frontend applications can use this value for ordering Categories within the same level in the category tree.
*
*
*/
@@ -168,7 +168,7 @@ export interface CategoryDraft {
*/
readonly parent?: CategoryResourceIdentifier
/**
- * Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree.
+ * Decimal value between 0 and 1. Frontend applications can use this value for ordering Categories within the same level in the category tree.
* If not set, a random value will be assigned.
*
*
diff --git a/references.txt b/references.txt
index acca26580..f1efd85d3 100644
--- a/references.txt
+++ b/references.txt
@@ -234,3 +234,4 @@ e3a178953d3d929a58092a0c86d666fee6400c75
d10443de67d8c8e684b4e63415b5720fc3bcf169
886f8d7e51ee9afd3dea683e0b6ed042eec469f1
5b5166eedb28e48364c82c3fcf2d795983fe9fa8
+82856ccfbe173150763c81a98f37eb012ce30e86