Skip to content

Commit 7a0b7cd

Browse files
committed
build(codegen): updating SDK
1 parent e0c1bb4 commit 7a0b7cd

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

lib/commercetools-api/docs/RequestBuilder.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,11 +2356,18 @@ $request = $builder
23562356
```
23572357
## `withProjectKey("projectKey")->carts()->replicate()->post(null)`
23582358

2359-
Creates a new Cart by replicating an existing Cart or Order. Can be useful in cases where a customer wants to cancel a recent order to make some changes or reorder a previous order.
2359+
Creates a new Cart by replicating an existing Cart or Order.
23602360

2361-
The replicated Cart preserves Customer information, Line Items and Custom Line Items, Custom Fields, Discount Codes, and other settings of the Cart or Order. If the Line Items become invalid, for example, due to removed Products or Prices, they are removed from the new Cart. If the Customer switches to another Customer Group, the new Cart is updated with the new value. It has up-to-date Tax Rates, Prices, and Line Item product data and is in `Active` [CartState](ctp:api:type:CartState).
2361+
The following applies to the new Cart:
23622362

2363-
The new Cart does not contain Payments or Deliveries. The [State](ctp:api:type:ItemState) of Line Items and Custom Line Items is reset to `initial`.
2363+
- It contains the same Customer information, Line Items and Custom Line Items, Custom Fields, Discount Codes, and other settings of the originating Cart or Order.
2364+
- If a Line Item becomes invalid, it is removed from the new Cart. A common reason for this is removed Products or Prices.
2365+
- Line items and Custom Line Items are reset to their initial [state](/projects/carts#itemstate).
2366+
- It contains no payments or delivery information.
2367+
- It contains up-to-date Tax Rates, Prices, and Line Item product data.
2368+
- The [CartState](/projects/carts#cartstate) is `Active`.
2369+
- If using the `customerGroup` field (for a single Customer Group) and the referenced Customer switched to another Customer Group, the new Cart is automatically updated to reflect the new group and corresponding prices.
2370+
- If using the `customerGroupAssignments` field (for multiple Customer Groups), the Cart no longer keeps a direct reference to a Customer Group. If a Customer’s group assignments change, the Cart and its Line Item prices are not updated automatically. Prices are only updated when the Cart is changed via a [direct update action](/projects/carts#update-actions).
23642371

23652372
Specific Error Codes:
23662373

@@ -4499,11 +4506,18 @@ $request = $builder
44994506
```
45004507
## `withProjectKey("projectKey")->inStoreKeyWithStoreKeyValue("storeKey")->carts()->replicate()->post(null)`
45014508

4502-
Creates a new Cart by replicating an existing Cart or Order. Can be useful in cases where a customer wants to cancel a recent order to make some changes or reorder a previous order.
4509+
Creates a new Cart in a [Store](ctp:api:type:Store) by replicating an existing Cart or Order.
45034510

4504-
The replicated Cart preserves Customer information, Line Items and Custom Line Items, Custom Fields, Discount Codes, and other settings of the Cart or Order. If the Line Items become invalid, for example, due to removed Products or Prices, they are removed from the new Cart. If the Customer switches to another Customer Group, the new Cart is updated with the new value. It has up-to-date Tax Rates, Prices, and Line Item product data and is in `Active` [CartState](ctp:api:type:CartState).
4511+
The following applies to the new Cart:
45054512

4506-
The new Cart does not contain payments or deliveries. The [State](ctp:api:type:ItemState) of Line Items and Custom Line Items is reset to `initial`.
4513+
- It contains the same Customer information, Line Items and Custom Line Items, Custom Fields, Discount Codes, and other settings of the originating Cart or Order.
4514+
- If a Line Item becomes invalid, it is removed from the new Cart. A common reason for this is removed Products or Prices.
4515+
- Line items and Custom Line Items are reset to their initial [state](/projects/carts#itemstate).
4516+
- It contains no payments or delivery information.
4517+
- It contains up-to-date Tax Rates, Prices, and Line Item product data.
4518+
- The [CartState](/projects/carts#cartstate) is `Active`.
4519+
- If using the `customerGroup` field (for a single Customer Group) and the referenced Customer switched to another Customer Group, the new Cart is automatically updated to reflect the new group and corresponding prices.
4520+
- If using the `customerGroupAssignments` field (for multiple Customer Groups), the Cart no longer keeps a direct reference to a Customer Group. If a Customer’s group assignments change, the Cart and its Line Item prices are not updated automatically. Prices are only updated when the Cart is changed via a [direct update action](/projects/carts#update-actions).
45074521

45084522
Specific Error Codes:
45094523

@@ -4866,7 +4880,7 @@ $request = $builder
48664880

48674881
Authenticates a Customer associated with a [Store](ctp:api:type:Store). For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
48684882

4869-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
4883+
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
48704884

48714885
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
48724886

@@ -5181,7 +5195,7 @@ If used with an optional [access token for an anonymous session](ctp:api:type:An
51815195
- If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
51825196
- If the Customer already has a Cart, the most recently modified anonymous cart is handled according to [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
51835197

5184-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
5198+
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
51855199

51865200
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
51875201

@@ -5644,7 +5658,7 @@ If used with an optional [access token for an anonymous session](ctp:api:type:An
56445658

56455659
If omitted in the request body, the [Customer](ctp:api:type:Customer) `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.
56465660

5647-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
5661+
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
56485662

56495663
Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message.
56505664

@@ -7120,7 +7134,7 @@ If the Customer is registered in a Store, use the [Authenticate (sign in) Custom
71207134

71217135
Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
71227136

7123-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
7137+
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
71247138

71257139
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
71267140

@@ -7577,7 +7591,7 @@ If used with an optional [access token for an anonymous session](ctp:api:type:An
75777591
- If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
75787592
- If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
75797593

7580-
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#cart-updates) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
7594+
A Cart returned in the [CustomerSignInResult](ctp:api:type:CustomerSignInResult) has any invalid Line Items removed and is [updated](/api/carts-orders-overview#update-a-cart) with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
75817595

75827596
If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
75837597

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,4 @@ d5b618e3078640150ff78fb3f4a81e24edba2d2d
434434
b6f85c31ff715e0814a996a7d64089bec3c721eb
435435
dad479066925f91fc733f038afb66c7919409a4c
436436
9cd3688bae17a610f6653fd5eccebe50937548c7
437+
9fb33bf8c33760d7d6d74e7b6e9ed233d1a83e24

0 commit comments

Comments
 (0)