From 945cf2a4f154d803705c1c3bd5914cd8c390f4a2 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 2 Aug 2024 09:18:30 +0000 Subject: [PATCH 1/3] build(codegen): updating SDK --- .../com/commercetools/api/models/cart/LineItemPriceMode.java | 2 +- references.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemPriceMode.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemPriceMode.java index 5e8f972a15..f7d90a66a5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemPriceMode.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/LineItemPriceMode.java @@ -23,7 +23,7 @@ public interface LineItemPriceMode extends JsonEnum {
The Line Item price is set externally. Cart Discounts can apply to Line Items with this price mode. All update actions that change the quantity of a Line Item with this price mode require the externalPrice
field to be given.
The Line Item price with the total is set externally. Cart Discounts are deactivated for Line Items with this price mode, despite a matching CartDiscountLineItemsTarget or MultiBuyLineItemsTarget. Although a Line Item with this price mode has both price
and totalPrice
set externally, only totalPrice
is used to calculate the total price of a Cart. All update actions that change the quantity of a Line Item with this price mode can set the new price with the externalTotal
field. If the externalTotal
field is not given in the update actions, the external price is unset and the price mode is set to Platform
.
The Line Item price with the total is set externally. Cart Discounts are deactivated for Line Items with this price mode, despite a matching CartDiscountLineItemsTarget or MultiBuyLineItemsTarget. Although a Line Item with this price mode has both price
and totalPrice
set externally, only totalPrice
is used to calculate the total price of a Cart. All update actions that change the quantity of a Line Item with this price mode can set the new price with the externalTotalPrice
field. If the externalTotalPrice
field is not given in the update actions, the external price is unset and the price mode is set to Platform
.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.
* *Checks if a Cart exists for a given id
. Returns a 200 OK
status if the Cart exists or a 404 Not Found
otherwise.
Checks if a Cart exists for a given id
. Returns a 200 OK
status if the Cart exists or a ResourceNotFound error otherwise.
Updates a Cart in the Store specified by storeKey
. If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
Updates a Cart in the Store specified by storeKey
. If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Updates a Cart in the Store specified by storeKey
. If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
Updates a Cart in the Store specified by storeKey
. If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Retrieves the most recently modified active Cart of a Customer with CartOrigin Customer
. If no active Cart exists, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.
* *Checks if a Cart of a Customer exists. Returns a 200 OK
status if the Cart exists or a 404 Not Found
otherwise.
Checks if a Cart of a Customer exists. Returns a 200 OK
status if the Cart exists or a ResourceNotFound error otherwise.
Checks if a Cart exists for a given Query Predicate. Returns a 200 OK
status if any Carts match the Query Predicate or a 404 Not Found
otherwise.
Checks if a Cart exists for a given Query Predicate. Returns a 200 OK
status if any Carts match the Query Predicate or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.
* *Checks if a Cart exists for a given key
. Returns a 200 OK
status if the Cart exists or a 404 Not Found
otherwise.
Checks if a Cart exists for a given key
. Returns a 200 OK
status if the Cart exists or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Checks if a Customer exists for a given Query Predicate. Returns a 200 OK
status if any Customers match the Query Predicate or a 404 Not Found
otherwise.
Checks if a Customer exists for a given Query Predicate. Returns a 200 OK
status if any Customers match the Query Predicate or a ResourceNotFound error otherwise.
Retrieves the Customer's most recently modified active Cart in the Store specified by the storeKey
path parameter.
Retrieves the Customer's most recently modified active Cart in a Store. Returns a 200 OK
status if successful.
Carts with Merchant
or Quote
CartOrigin are ignored.
If no active Cart exists, this method returns a ResourceNotFound error.
+ *A ResourceNotFound error is returned in the following scenarios:
+ *store
specified, or the store
field references a different Store.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if an active Cart exists. Returns a 200 OK
status if an active Cart exists or a 404 Not Found
otherwise.
Checks if an active Cart exists in a Store. Returns 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *store
specified, or the store
field references a different Store.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Deletes the Cart for a given id
in a Store. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not belong to a Store, or the Cart's store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Deletes the Cart for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
field references a different Store.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Returns a Cart for a given id
in a Store. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not belong to a Store, or the Cart's store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Returns a Cart for a given id
in a Store. Returns a 200 OK
status if the Cart exists.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
field references a different Store.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Updates the Cart for a given id
in a Store. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not belong to a Store, or the Cart's store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Updates the Cart for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
field references a different Store.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Updates the Cart for a given id
in a Store. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not belong to a Store, or the Cart's store
field references a different Store, this method returns a ResourceNotFound error.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Updates the Cart for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
field references a different Store.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId
or anonymousId
. Returns a 200 OK
status if any Carts match these conditions, or a 404 Not Found
otherwise.
Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId
or anonymousId
. Returns a 200 OK
status if any Carts match these conditions, or a ResourceNotFound error otherwise.
Creates a Cart in the specified Store for a given customerId
or anonymousId
.
Creates a Cart in a Store for the Customer or anonymous user. The customerId
or anonymousId
field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The store
field in the created Cart is set to the Store specified by the storeKey
path parameter.
Specific Error Codes:
*Creates a Cart in the specified Store for a given customerId
or anonymousId
.
Creates a Cart in a Store for the Customer or anonymous user. The customerId
or anonymousId
field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The store
field in the created Cart is set to the Store specified by the storeKey
path parameter.
Specific Error Codes:
*If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
Returns an Order for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
specified, or the store
field references a different Store.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if an Order exists for a given id
. Returns a 200 OK
status if the My Order exists or a 404 Not Found
otherwise.
Checks if an Order exists for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.store
specified, or the store
field references a different Store.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Returns all Orders in a Store that match a given Query Predicate and contain either a customerId
that matches the customer_id:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK
status if any Orders match the Query Predicate or a 404 Not Found
otherwise.
Checks if an Order exists for a given Query Predicate in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *store
is specified, or the store
field references a different Store.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Creates an Order in a Store from a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission.
If the Cart's customerId
does not match the customer:{id} scope, or the anonymousId
does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.
Creating an Order produces the OrderCreated Message.
*Specific Error Codes:
*Creates an Order in a Store from a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission.
If the Cart's customerId
does not match the customer:{id} scope, or the anonymousId
does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.
Creating an Order produces the OrderCreated Message.
*Specific Error Codes:
*If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Deletes the ShoppingList for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
in a Store.id
but does not have a store
specified, or the store
field references a different Store.id
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Returns a ShoppingList for a given id
in a Store. Returns 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
in a Store.id
but does not have a store
specified, or the store
field references a different Store.id
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.Checks if a ShoppingList exists for a given id
. Returns a 200 OK
status if the ShoppingList exists or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
in a Store.id
but does not have a store
specified, or the store
field references a different Store.id
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Updates a ShoppingList for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
in a Store.id
but does not have a store
specified, or the store
field references a different Store.id
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Updates a ShoppingList for a given id
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
in a Store.id
but does not have a store
specified, or the store
field references a different Store.id
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.Returns ShoppingLists that match the given Query Predicate in a Store. Returns 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *store
specified, or the store
field references a different Store.anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK
status if any ShoppingLists match the Query Predicate or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for the given Query Predicate in a Store. Returns 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *store
specified, or the store
field references a different Store.anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Deletes the ShoppingList for a given key
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *key
in a Store.key
but does not have a store
specified, or the store
field references a different Store.key
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Returns a ShoppingList for a given key
in a Store. Returns 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *key
in a Store.key
but does not have a store
specified, or the store
field references a different Store.key
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.Checks if a ShoppingList exists for a given key
. Returns a 200 OK
status if the ShoppingList exists or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for a given key
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *key
in a Store.key
but does not have a store
specified, or the store
field references a different Store.key
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Updates a ShoppingList for a given key
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *key
in a Store.key
but does not have a store
specified, or the store
field references a different Store.key
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.If a ShoppingList exists in a Project but does not have the store
field, or the store
field references a different Store, the ResourceNotFound error is returned.
Updates a ShoppingList for a given key
in a Store. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *key
in a Store.key
but does not have a store
specified, or the store
field references a different Store.key
in a Store but does not contain either an anonymousId
that matches the anonymous_id:{id} scope, or a customer
with id
value that matches the customer:{id} scope.Creates a ShoppingList in a Store for a Customer or anonymous user. The customer
or anonymousId
field on the ShoppingList is automatically set based on the given customer:{id} or anonymous_id:{id} scope.
When using this endpoint, the store
field of a ShoppingList is always set to the Store specified in the path parameter.
Creates a ShoppingList in a Store for a Customer or anonymous user. The customer
or anonymousId
field on the ShoppingList is automatically set based on the given customer:{id} or anonymous_id:{id} scope.
When using this endpoint, the store
field of a ShoppingList is always set to the Store specified in the path parameter.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Deleting an Order produces the OrderDeleted Message.
* *If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Checks if an Order exists for a given id
. Returns a 200 OK
status if the Order exists or a 404 Not Found
otherwise.
Checks if an Order exists for a given id
. Returns a 200 OK
status if the Order exists or a ResourceNotFound error otherwise.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK
status if any Orders match the Query Predicate or a 404 Not Found
otherwise.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK
status if any Orders match the Query Predicate or a ResourceNotFound error otherwise.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Deleting an Order produces the OrderDeleted Message.
* *If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Checks if an Order exists for a given orderNumber
. Returns a 200 OK
status if the Order exists or a 404 Not Found
otherwise.
Checks if an Order exists for a given orderNumber
. Returns a 200 OK
status if the Order exists or a ResourceNotFound error otherwise.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have the store
field, or the store
field references a different Store, this method returns a ResourceNotFound error.
If the Order exists in the Project but does not have a store
specified, or the store
field references a different Store, this method returns a ResourceNotFound error.
Checks if a QuoteRequest exists for a given id
. Returns a 200 OK
status if the QuoteRequest exists or a 404 Not Found
otherwise.
Checks if a QuoteRequest exists for a given id
. Returns a 200 OK
status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK
status if any QuoteRequests match the Query Predicate or a 404 Not Found
otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK
status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.
Checks if a QuoteRequest exists for a given key
. Returns a 200 OK
status if the QuoteRequest exists or a 404 Not Found
otherwise.
Checks if a QuoteRequest exists for a given key
. Returns a 200 OK
status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given id
. Returns a 200 OK
status if the Quote exists or a 404 Not Found
otherwise.
Checks if a Quote exists for a given id
. Returns a 200 OK
status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK
status if any Quotes match the Query Predicate or a 404 Not Found
otherwise.
Checks if a Quote exists for a given Query Predicate. Returns a 200 OK
status if any Quotes match the Query Predicate or a ResourceNotFound error otherwise.
Checks if a Quote exists for a given key
. Returns a 200 OK
status if the Quote exists or a 404 Not Found
otherwise.
Checks if a Quote exists for a given key
. Returns a 200 OK
status if the Quote exists or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists for a given id
. Returns a 200 OK
status if the ShoppingList exists or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for a given id
. Returns a 200 OK
status if the ShoppingList exists or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK
status if any ShoppingLists match the Query Predicate or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK
status if any ShoppingLists match the Query Predicate or a ResourceNotFound error otherwise.
Checks if a ShoppingList exists for a given key
. Returns a 200 OK
status if the ShoppingList exists or a 404 Not Found
otherwise.
Checks if a ShoppingList exists for a given key
. Returns a 200 OK
status if the ShoppingList exists or a ResourceNotFound error otherwise.
Checks if a StagedQuote exists for a given id
. Returns a 200 OK
status if the StagedQuote exists or a 404 Not Found
otherwise.
Checks if a StagedQuote exists for a given id
. Returns a 200 OK
status if the StagedQuote exists or a ResourceNotFound error otherwise.
Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK
status if any StagedQuotes match the Query Predicate or a 404 Not Found
otherwise.
Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK
status if any StagedQuotes match the Query Predicate or a ResourceNotFound error otherwise.
Checks if a StagedQuote exists for a given key
. Returns a 200 OK
status if the StagedQuote exists or a 404 Not Found
otherwise.
Checks if a StagedQuote exists for a given key
. Returns a 200 OK
status if the StagedQuote exists or a ResourceNotFound error otherwise.
Retrieves the Customer's most recently modified active Cart. Carts with Merchant
or Quote
CartOrigin are ignored.
If no active Cart exists, this method returns a ResourceNotFound error.
+ *Retrieves the Customer's most recently modified active Cart. Returns a 200 OK
status if successful.
Carts with Merchant
or Quote
CartOrigin are ignored.
A ResourceNotFound error is returned in the following scenarios:
+ *customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if an active Cart exists. Returns a 200 OK
status if an active Cart exists or a 404 Not Found
otherwise.
Checks if an active Cart exists. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Deletes the Cart for a given id
. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Deletes the Cart for a given id
. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Returns a Cart for a given id
. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Returns a Cart for a given id
. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if a Cart exists for a given id
. Returns a 200 OK
status if the Cart exists, or a 404 Not Found
otherwise.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Checks if a Cart exists for a given id
. Returns a 200 OK
status if the Cart exists.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Updates the Cart for a given id
. Returns a 200 OK
status if the Cart exists, or a 404 Not Found
otherwise.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Updates the Cart for a given id
. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Updates the Cart for a given id
. Returns a 200 OK
status if the Cart exists, or a 404 Not Found
otherwise.
If the Cart exists in the Project but does not have a matching customerId
or anonymousId
, this method returns a ResourceNotFound error.
Updates the Cart for a given id
. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if a Cart exists that matches a given Query Predicate and contains either a matching customerId
or anonymousId
. Returns a 200 OK
status if the Cart exists, or a 404 Not Found
otherwise.
Checks if a Cart exists that matches a given Query Predicate and contains either a matching customerId
or anonymousId
. Returns a 200 OK
status if the Cart exists, or a ResourceNotFound error otherwise.
{@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .carts()
- * .withKey("{key}")
- * .delete()
- * .withVersion(version)
- * .execute()
- * }
- * {@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .carts()
- * .withKey("{key}")
- * .get()
- * .execute()
- * }
- * Checks if a Cart exists for a given key
. Returns a 200 OK
status if the Cart exists or a 404 Not Found
otherwise.
{@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .carts()
- * .withKey("{key}")
- * .head()
- * .execute()
- * }
- * {@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .carts()
- * .withKey("{key}")
- * .post(null)
- * .execute()
- * }
- * {@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .carts()
- * .withKey("{key}")
- * .post("")
- * .execute()
- * }
- * Creates a Cart for a given customerId
or anonymousId
.
Creates a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.
Specific Error Codes:
*Creates a Cart for a given customerId
or anonymousId
.
Creates a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Cart is automatically set based on the customer:{id} or anonymous_id:{id} scope.
Specific Error Codes:
*id
. Returns a 200 OK
status if successful.
+ * A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Checks if an Order exists for a given id
. Returns a 200 OK
status if the Order exists or a 404 Not Found
otherwise.
Checks if an Order exists for a given id
. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *id
.customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.Returns all Orders that match a given Query Predicate.
+ *A ResourceNotFound error is returned in the following scenarios:
+ *customerId
that matches the customer:{id} scope, or anonymousId
that matches the anonymous_id:{id} scope.Checks if an Order exists for a given Query Predicate. Returns a 200 OK
status if any Orders match the Query Predicate or a 404 Not Found
otherwise.
Checks if an Order exists for a given Query Predicate. Returns a 200 OK
status if successful.
A ResourceNotFound error is returned in the following scenarios:
+ *customerId
that matches the customer:{id} scope, or an anonymousId
that matches the anonymous_id:{id} scope.The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission.
Creating an Order produces the OrderCreated Message.
+ *Creates an Order from a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission. Creating an Order produces the OrderCreated Message.
If the Cart's customerId
does not match the customer:{id} scope, or the anonymousId
does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
*Specific Error Codes:
*The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission.
Creating an Order produces the OrderCreated Message.
+ *Creates an Order from a Cart for the Customer or anonymous user. The customerId
or anonymousId
field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.
The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the CreateMyOrdersFromMyCarts
Permission. Creating an Order produces the OrderCreated Message.
If the Cart's customerId
does not match the customer:{id} scope, or the anonymousId
does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.
If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.
*Specific Error Codes:
*{@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .quoteRequests()
- * .withId("{ID}")
- * .delete()
- * .withVersion(version)
- * .execute()
- * }
- * Checks if my QuoteRequest exists for a given id
. Returns a 200 OK
status if the QuoteRequest exists or a 404 Not Found
otherwise.
Checks if a QuoteRequest exists for a given id
. Returns a 200 OK
status if the QuoteRequest exists or a ResourceNotFound error otherwise.
Returns all Quote Requests that match a given Query Predicate. Returns a 200 OK
status if successful.
Checks if my QuoteRequest exists for a given Query Predicate. Returns a 200 OK
status if any QuoteRequests match the Query Predicate or a 404 Not Found
otherwise.
Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK
status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.
{@code
- * CompletableFuture> result = apiRoot
- * .withProjectKey("{projectKey}")
- * .me()
- * .quoteRequests()
- * .withKey("{key}")
- * .delete()
- * .withVersion(version)
- * .execute()
- * }
- *