Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart in a BusinessUnit. The Cart must have a shipping address set before creating an Order. Creating an Order fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter.</p>
* <p>Creates an Order from a Cart in a BusinessUnit.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>If the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter, an InvalidOperation is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
* <li>DiscountCodeNonApplicable</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart in a BusinessUnit. The Cart must have a shipping address set before creating an Order. Creating an Order fails with an InvalidOperation if the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter.</p>
* <p>Creates an Order from a Cart in a BusinessUnit.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>If the Cart does not reference the same BusinessUnit as the <code>businessUnitKey</code> path parameter, an InvalidOperation is returned.</p>
* <p>Specific Error Codes:</p>
* <ul>
* <li>DiscountCodeNonApplicable</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

/**
* <p>Creates an Order from a Cart in a Store for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
* <p>The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>If the Cart's <code>customerId</code> does not match the customer:{id} scope, or the <code>anonymousId</code> does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>Specific Error Codes:</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

/**
* <p>Creates an Order from a Cart in a Store for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
* <p>The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>If the Cart's <code>customerId</code> does not match the customer:{id} scope, or the <code>anonymousId</code> does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>Specific Error Codes:</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart in a Store. Before you create an Order, the Cart must have a shipping address set. The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message. If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.</p>
* <p>Creates an Order from a Cart in a Store. The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
* <ul>
* <li>OutOfStock</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart in a Store. Before you create an Order, the Cart must have a shipping address set. The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message. If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Order by querying a unique identifier supplied during the creation request, such as the Order number.</p>
* <p>Creates an Order from a Cart in a Store. The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
* <ul>
* <li>OutOfStock</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@

/**
* <p>Creates an Order from a Cart for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
* <p>The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission. Creating an Order produces the OrderCreated Message.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>If the Cart's <code>customerId</code> does not match the customer:{id} scope, or the <code>anonymousId</code> does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@

/**
* <p>Creates an Order from a Cart for the Customer or anonymous user. The <code>customerId</code> or <code>anonymousId</code> field on the Order is automatically set based on the customer:{id} or anonymous_id:{id} scope.</p>
* <p>The Cart must have a shipping address set for taxes to be calculated. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission. Creating an Order produces the OrderCreated Message.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set. When creating B2B Orders, the Customer must have the <code>CreateMyOrdersFromMyCarts</code> Permission.</p>
* <p>If the Cart's <code>customerId</code> does not match the customer:{id} scope, or the <code>anonymousId</code> does not match the anonymous_id:{id} scope, a ResourceNotFound error is returned.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
* <ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart. Before you create an Order, the Cart must have a shipping address set. The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creates an Order from a Cart.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates an Order from a Cart. Before you create an Order, the Cart must have a shipping address set. The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creates an Order from a Cart.</p>
* <p>The Cart must have a shipping address and an active Shipping Method set.</p>
* <p>The shipping address is used for tax calculation for a Cart with <code>Platform</code> TaxMode.</p>
* <p>Creating an Order produces the OrderCreated Message.</p>
* <p>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.</p>
* <p>Specific Error Codes:</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface CartSetShippingMethodAction extends CartUpdateAction {

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @return shippingMethod
*/
@Valid
Expand All @@ -56,7 +56,7 @@ public interface CartSetShippingMethodAction extends CartUpdateAction {

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @param shippingMethod value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CartSetShippingMethodActionBuilder implements Builder<CartSetShippi

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @param builder function to build the shippingMethod value
* @return Builder
*/
Expand All @@ -46,7 +46,7 @@ public CartSetShippingMethodActionBuilder shippingMethod(

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @param builder function to build the shippingMethod value
* @return Builder
*/
Expand All @@ -60,7 +60,7 @@ public CartSetShippingMethodActionBuilder withShippingMethod(

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @param shippingMethod value to be set
* @return Builder
*/
Expand Down Expand Up @@ -110,7 +110,7 @@ public CartSetShippingMethodActionBuilder externalTaxRate(

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* @return shippingMethod
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public String getAction() {

/**
* <p>Value to set. If empty, any existing value is removed.</p>
* <p>If the referenced Shipping Method has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
* <p>If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an InvalidOperation error is returned.</p>
*/

public com.commercetools.api.models.shipping_method.ShippingMethodResourceIdentifier getShippingMethod() {
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,3 +415,4 @@ dd595db3882a9eef83a47515f013be37deae6bff
fcc6480a0c34dde0eb5c0a44b1b166a4fdc212fc
e68ca35e345e284ffc6281baa6fcfb56a3e93582
b1fc7dfd206272a7717ffe06bf9bdb40fc428a1d
2222db881c7a11c0c0e7a23d0b0165c1fe593281