You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/customers/by-project-key-customers-request-builder.ts
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -207,9 +207,6 @@ export class ByProjectKeyCustomersRequestBuilder {
207
207
)
208
208
}
209
209
/**
210
-
* If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).
211
-
* Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
212
-
*
213
210
* Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/customers/by-project-key-in-store-key-by-store-key-customers-request-builder.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -195,10 +195,10 @@ export class ByProjectKeyInStoreKeyByStoreKeyCustomersRequestBuilder {
195
195
/**
196
196
* When using this endpoint, if omitted, the Customer `stores` field is set to the [Store](ctp:api:type:Store) specified in the path parameter.
197
197
*
198
-
* If the `anonymousCart` field is set on the [CustomerDraft](ctp:api:type:CustomerDraft), then the newly created Customer will be assigned to that [Cart](ctp:api:type:Cart).
199
-
* Similarly, if the `anonymousId` field is set, the Customer will be set on all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList) and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
200
198
* If a Cart with a `store` field specified, the `store` field must reference the same [Store](ctp:api:type:Store) specified in the `{storeKey}` path parameter.
201
199
*
200
+
* If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
201
+
*
202
202
* Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message. Simultaneously creating two Customers with the same email address can return a [LockedField](ctp:api:type:LockedFieldError) error.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/login/by-project-key-in-store-key-by-store-key-login-request-builder.ts
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,9 @@ export class ByProjectKeyInStoreKeyByStoreKeyLoginRequestBuilder {
20
20
}
21
21
){}
22
22
/**
23
-
* 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).
23
+
* Authenticates a Customer associated with a [Store](ctp:api:type:Store).
24
24
*
25
-
* 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).
26
-
*
27
-
* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
25
+
* If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
28
26
*
29
27
* If the Customer exists in the Project but the `stores` field references a different [Store](ctp:api:type:Store), this method returns an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/login/by-project-key-in-store-key-by-store-key-me-login-request-builder.ts
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,6 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeLoginRequestBuilder {
28
28
* - If the Customer does not have a Cart, the most recently modified anonymous cart becomes the Customer's Cart.
29
29
* - If the Customer already has a Cart, the most recently modified anonymous cart is handled according to [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
30
30
*
31
-
* 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).
32
-
*
33
31
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/login/by-project-key-login-request-builder.ts
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,13 +19,9 @@ export class ByProjectKeyLoginRequestBuilder {
19
19
}
20
20
){}
21
21
/**
22
-
* Authenticates a global Customer not associated with a Store.
23
-
* For more information, see [Global versus Store-specific Customers](/../api/customers-overview#global-versus-store-specific-customers).
24
-
* 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.
22
+
* Authenticates a global Customer.
25
23
*
26
-
* Triggers [Cart merge during sign-in](/../api/customers-overview#cart-merge-during-sign-in).
27
-
*
28
-
* 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).
24
+
* If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
29
25
*
30
26
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/login/by-project-key-me-login-request-builder.ts
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,6 @@ export class ByProjectKeyMeLoginRequestBuilder {
26
26
* - If the Customer does not have a Cart yet, the most recently modified anonymous cart becomes the Customer's Cart.
27
27
* - If the Customer already has a Cart, the most recently modified anonymous cart is handled in accordance with [AnonymousCartSignInMode](ctp:api:type:AnonymousCartSignInMode).
28
28
*
29
-
* 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).
30
-
*
31
29
* If an account with the given credentials is not found, an [InvalidCredentials](ctp:api:type:InvalidCredentialsError) error is returned.
Copy file name to clipboardExpand all lines: packages/platform-sdk/src/generated/client/signup/by-project-key-in-store-key-by-store-key-me-signup-request-builder.ts
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,11 @@ export class ByProjectKeyInStoreKeyByStoreKeyMeSignupRequestBuilder {
21
21
}
22
22
){}
23
23
/**
24
-
*
25
24
* If used with an optional [access token for an anonymous session](ctp:api:type:AnonymousSession), all Orders and Carts that belong to the `anonymousId` are assigned to the newly created Customer.
26
25
*
27
26
* 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.
28
27
*
29
-
* 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).
28
+
* If the Customer has multiple active Carts, the anonymous Cart is [merged](/../api/customers-overview#cart-merge-during-sign-in-and-sign-up) into the most recently modified active Cart.
30
29
*
31
30
* Creating a Customer produces the [CustomerCreated](ctp:api:type:CustomerCreatedMessage) Message.
* Identifies a [Cart](ctp:api:type:Cart) that will be assigned to the new Customer.
386
+
* Assigns the Customer to the specified Cart.
387
387
*
388
388
*
389
389
*/
390
390
readonlyanonymousCart?: CartResourceIdentifier
391
391
/**
392
-
* Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.
392
+
* Assigns the Customer to all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList), and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
393
+
*
394
+
* If `anonymousCart` is provided, this value must match the `anonymousId` of the anonymous [Cart](ctp:api:type:Cart); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
* If empty, the Customer does not have a Cart assigned.
673
+
*
674
+
* The Cart is recalculated to remove invalid Line Items and apply the latest prices, taxes, and discounts.
675
+
* During these updates, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
676
+
*
677
+
* For more information, see [Cart updates](/../api/carts-orders-overview#update-a-cart).
* If both `anonymousCart` and `anonymousId` are provided, the `anonymousId` on the CustomerSignin must match that of the anonymous [Cart](ctp:api:type:Cart).
711
-
* Otherwise a [400 Bad Request](ctp:api:type:InvalidOperationError) `Invalid Operation` error is returned with the message:
712
-
* "Cart with the ID cart-id does not have the expected anonymousId.".
716
+
* Assigns the Customer to all [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [ShoppingLists](ctp:api:type:ShoppingList), and [Payments](ctp:api:type:Payment) with the same `anonymousId`.
717
+
*
718
+
* If `anonymousCart` is provided, this value must match the `anonymousId` of the anonymous [Cart](ctp:api:type:Cart); otherwise, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
0 commit comments