Interface Order
- All Superinterfaces:
BaseResource
,Customizable<Order>
,DomainResource<Order>
,Identifiable<Order>
,OrderLike<Order>
,OrderMixin
,Referencable<Order>
,ResourceIdentifiable<Order>
,Versioned<Order>
- All Known Subinterfaces:
StagedOrder
Example to create an instance using the builder pattern
Order order = Order.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.plusLineItems(lineItemsBuilder -> lineItemsBuilder)
.plusCustomLineItems(customLineItemsBuilder -> customLineItemsBuilder)
.totalPrice(totalPriceBuilder -> totalPriceBuilder)
.shippingMode(ShippingMode.SINGLE)
.plusShipping(shippingBuilder -> shippingBuilder)
.plusRefusedGifts(refusedGiftsBuilder -> refusedGiftsBuilder)
.origin(CartOrigin.CUSTOMER)
.orderState(OrderState.OPEN)
.plusSyncInfo(syncInfoBuilder -> syncInfoBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderBuilder
builder()
builder factory method for Orderstatic OrderBuilder
create builder for Order instancestatic Order
factory method to create a deep copy of OrderAnonymous session associated with the Order.@Valid Address
Billing address associated with the Order.@Valid BusinessUnitKeyReference
Reference to a Business Unit the Order belongs to.@Valid CartReference
getCart()
Reference to the Cart for an Order created from Cart.User-defined date and time (UTC) of the Order.Used for Line Item price selection.@NotNull ZonedDateTime
Date and time (UTC) the Order was initially created.@Valid CreatedBy
IDs and references that created the Order.@Valid CustomFields
Custom Fields of the Order.Email address of the Customer that the Order belongs to.@Valid CustomerGroupReference
Reference to the Customer Group of the Customer that the Order belongs to.id
of the Customer that the Order belongs to.@NotNull @Valid List<CustomLineItem>
Custom Line Items that are part of the Order.@Valid List<DirectDiscount>
Direct Discounts added to the Order.@Valid List<DiscountCodeInfo>
Discount Codes added to the Order.@Valid DiscountOnTotalPrice
Discounts that apply on the total price of the Order.@NotNull String
getId()
Unique identifier of the Order.Indicates how stock quantities are tracked for Line Items in the Order.Additional shipping addresses of the Order as specified by LineItems using theshippingDetails
field.Deprecated.@NotNull ZonedDateTime
Date and time (UTC) the Order was last updated.@Valid LastModifiedBy
IDs and references that last modified the Order.Line Items that are part of the Order.Languages of the Order.User-defined identifier of the Order that is unique across a Project.@NotNull OrderState
Current status of the Order.@NotNull CartOrigin
Indicates the origin of the Cart from which the Order was created.@Valid PaymentInfo
Payment information related to the Order.Payment status of the Order.User-defined identifier of a purchase Order.@Valid QuoteReference
getQuote()
Reference to the Quote for an Order created from Quote.@NotNull @Valid List<CartDiscountReference>
Automatically set when a Line Item withGiftLineItem
LineItemMode is removed from the Order.@Valid List<ReturnInfo>
Contains information regarding the returns associated with the Order.Shipment status of the Order.Shipping-related information forMultiple
ShippingMode.@Valid Address
Shipping address associated with the Order.@Valid CustomFields
Custom Fields of the Shipping Method forSingle
ShippingMode.@Valid ShippingInfo
Shipping-related information forSingle
ShippingMode.key
of the ShippingMethod forSingle
ShippingMode.@NotNull ShippingMode
Indicates whether there can be one or multiple Shipping Methods.@Valid ShippingRateInput
Input used to select a ShippingRatePriceTier.@Valid StateReference
getState()
State of the Order.@Valid StoreKeyReference
getStore()
Reference to a Store the Order belongs to.Contains synchronization activity information of the Order (like export or import).Indicates how taxes are calculated when calculating taxes fortaxedPrice
.@Valid TaxedPrice
ForPlatform
TaxMode, it is automatically set when a shipping address is set. ForExternal
TaxMode, it is automatically set whenshippingAddress
and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.@Valid TaxedPrice
Sum of thetaxedPrice
field of ShippingInfo across all Shipping Methods.Indicates how Tax Rates are set.Indicates how monetary values are rounded when calculating taxes fortaxedPrice
.@NotNull @Valid TypedMoney
Sum of thetotalPrice
field of all LineItems and CustomLineItems, and if available, theprice
field of ShippingInfo.@NotNull Long
Current version of the Order.static Order
of()
factory methodstatic Order
factory method to create a shallow copy Orderstatic ReferenceTypeId
void
setAnonymousId
(String anonymousId) Anonymous session associated with the Order.void
setBillingAddress
(Address billingAddress) Billing address associated with the Order.void
setBusinessUnit
(BusinessUnitKeyReference businessUnit) Reference to a Business Unit the Order belongs to.void
setCart
(CartReference cart) Reference to the Cart for an Order created from Cart.void
setCompletedAt
(ZonedDateTime completedAt) User-defined date and time (UTC) of the Order.void
setCountry
(String country) Used for Line Item price selection.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Order was initially created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the Order.void
setCustom
(CustomFields custom) Custom Fields of the Order.void
setCustomerEmail
(String customerEmail) Email address of the Customer that the Order belongs to.void
setCustomerGroup
(CustomerGroupReference customerGroup) Reference to the Customer Group of the Customer that the Order belongs to.void
setCustomerId
(String customerId) id
of the Customer that the Order belongs to.void
setCustomLineItems
(CustomLineItem... customLineItems) Custom Line Items that are part of the Order.void
setCustomLineItems
(List<CustomLineItem> customLineItems) Custom Line Items that are part of the Order.void
setDirectDiscounts
(DirectDiscount... directDiscounts) Direct Discounts added to the Order.void
setDirectDiscounts
(List<DirectDiscount> directDiscounts) Direct Discounts added to the Order.void
setDiscountCodes
(DiscountCodeInfo... discountCodes) Discount Codes added to the Order.void
setDiscountCodes
(List<DiscountCodeInfo> discountCodes) Discount Codes added to the Order.void
setDiscountOnTotalPrice
(DiscountOnTotalPrice discountOnTotalPrice) Discounts that apply on the total price of the Order.void
Unique identifier of the Order.void
setInventoryMode
(InventoryMode inventoryMode) Indicates how stock quantities are tracked for Line Items in the Order.void
setItemShippingAddresses
(Address... itemShippingAddresses) Additional shipping addresses of the Order as specified by LineItems using theshippingDetails
field.void
setItemShippingAddresses
(List<Address> itemShippingAddresses) Additional shipping addresses of the Order as specified by LineItems using theshippingDetails
field.void
setLastMessageSequenceNumber
(Long lastMessageSequenceNumber) Deprecated.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Order was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the Order.void
setLineItems
(LineItem... lineItems) Line Items that are part of the Order.void
setLineItems
(List<LineItem> lineItems) Line Items that are part of the Order.void
Languages of the Order.void
setOrderNumber
(String orderNumber) User-defined identifier of the Order that is unique across a Project.void
setOrderState
(OrderState orderState) Current status of the Order.void
setOrigin
(CartOrigin origin) Indicates the origin of the Cart from which the Order was created.void
setPaymentInfo
(PaymentInfo paymentInfo) Payment information related to the Order.void
setPaymentState
(PaymentState paymentState) Payment status of the Order.void
setPurchaseOrderNumber
(String purchaseOrderNumber) User-defined identifier of a purchase Order.void
setQuote
(QuoteReference quote) Reference to the Quote for an Order created from Quote.void
setRefusedGifts
(CartDiscountReference... refusedGifts) Automatically set when a Line Item withGiftLineItem
LineItemMode is removed from the Order.void
setRefusedGifts
(List<CartDiscountReference> refusedGifts) Automatically set when a Line Item withGiftLineItem
LineItemMode is removed from the Order.void
setReturnInfo
(ReturnInfo... returnInfo) Contains information regarding the returns associated with the Order.void
setReturnInfo
(List<ReturnInfo> returnInfo) Contains information regarding the returns associated with the Order.void
setShipmentState
(ShipmentState shipmentState) Shipment status of the Order.void
setShipping
(Shipping... shipping) Shipping-related information forMultiple
ShippingMode.void
setShipping
(List<Shipping> shipping) Shipping-related information forMultiple
ShippingMode.void
setShippingAddress
(Address shippingAddress) Shipping address associated with the Order.void
setShippingCustomFields
(CustomFields shippingCustomFields) Custom Fields of the Shipping Method forSingle
ShippingMode.void
setShippingInfo
(ShippingInfo shippingInfo) Shipping-related information forSingle
ShippingMode.void
setShippingKey
(String shippingKey) key
of the ShippingMethod forSingle
ShippingMode.void
setShippingMode
(ShippingMode shippingMode) Indicates whether there can be one or multiple Shipping Methods.void
setShippingRateInput
(ShippingRateInput shippingRateInput) Input used to select a ShippingRatePriceTier.void
setState
(StateReference state) State of the Order.void
setStore
(StoreKeyReference store) Reference to a Store the Order belongs to.void
setSyncInfo
(SyncInfo... syncInfo) Contains synchronization activity information of the Order (like export or import).void
setSyncInfo
(List<SyncInfo> syncInfo) Contains synchronization activity information of the Order (like export or import).void
setTaxCalculationMode
(TaxCalculationMode taxCalculationMode) Indicates how taxes are calculated when calculating taxes fortaxedPrice
.void
setTaxedPrice
(TaxedPrice taxedPrice) ForPlatform
TaxMode, it is automatically set when a shipping address is set. ForExternal
TaxMode, it is automatically set whenshippingAddress
and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.void
setTaxedShippingPrice
(TaxedPrice taxedShippingPrice) Sum of thetaxedPrice
field of ShippingInfo across all Shipping Methods.void
setTaxMode
(TaxMode taxMode) Indicates how Tax Rates are set.void
setTaxRoundingMode
(RoundingMode taxRoundingMode) Indicates how monetary values are rounded when calculating taxes fortaxedPrice
.void
setTotalPrice
(TypedMoney totalPrice) Sum of thetotalPrice
field of all LineItems and CustomLineItems, and if available, theprice
field of ShippingInfo.void
setVersion
(Long version) Current version of the Order.static com.fasterxml.jackson.core.type.TypeReference<Order>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.order.OrderLike
calculateSubTotalPrice
Methods inherited from interface com.commercetools.api.models.order.OrderMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the Order.
- Specified by:
getId
in interfaceBaseResource
- Specified by:
getId
in interfaceDomainResource<Order>
- Specified by:
getId
in interfaceIdentifiable<Order>
- Specified by:
getId
in interfaceOrderLike<Order>
- Specified by:
getId
in interfaceVersioned<Order>
- Returns:
- id
-
getVersion
Current version of the Order.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Order>
- Specified by:
getVersion
in interfaceOrderLike<Order>
- Specified by:
getVersion
in interfaceVersioned<Order>
- Returns:
- version
-
getOrderNumber
String getOrderNumber()User-defined identifier of the Order that is unique across a Project.
- Returns:
- orderNumber
-
getPurchaseOrderNumber
String getPurchaseOrderNumber()User-defined identifier of a purchase Order.
It is typically set by the Buyer and can be used with Quotes to track the purchase Order during the quote and order flow.
- Returns:
- purchaseOrderNumber
-
getCustomerId
String getCustomerId()id
of the Customer that the Order belongs to.- Specified by:
getCustomerId
in interfaceOrderLike<Order>
- Returns:
- customerId
-
getCustomerEmail
String getCustomerEmail()Email address of the Customer that the Order belongs to.
- Specified by:
getCustomerEmail
in interfaceOrderLike<Order>
- Returns:
- customerEmail
-
getCustomerGroup
Reference to the Customer Group of the Customer that the Order belongs to. Used for Line Item price selection.
- Specified by:
getCustomerGroup
in interfaceOrderLike<Order>
- Returns:
- customerGroup
-
getAnonymousId
String getAnonymousId()Anonymous session associated with the Order.
- Specified by:
getAnonymousId
in interfaceOrderLike<Order>
- Returns:
- anonymousId
-
getBusinessUnit
Reference to a Business Unit the Order belongs to.
- Returns:
- businessUnit
-
getStore
Reference to a Store the Order belongs to.
-
getLineItems
Line Items that are part of the Order.
- Specified by:
getLineItems
in interfaceOrderLike<Order>
- Returns:
- lineItems
-
getCustomLineItems
Custom Line Items that are part of the Order.
- Specified by:
getCustomLineItems
in interfaceOrderLike<Order>
- Returns:
- customLineItems
-
getTotalPrice
Sum of the
totalPrice
field of all LineItems and CustomLineItems, and if available, theprice
field of ShippingInfo. If a discount applies ontotalPrice
, this field holds the discounted value.Taxes are included if TaxRate
includedInPrice
istrue
for each price.- Specified by:
getTotalPrice
in interfaceOrderLike<Order>
- Returns:
- totalPrice
-
getTaxedPrice
- For
Platform
TaxMode, it is automatically set when a shipping address is set. - For
External
TaxMode, it is automatically set whenshippingAddress
and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.
If a discount applies on
totalPrice
, this field holds the discounted values.- Specified by:
getTaxedPrice
in interfaceOrderLike<Order>
- Returns:
- taxedPrice
- For
-
getTaxedShippingPrice
Sum of the
taxedPrice
field of ShippingInfo across all Shipping Methods.- Returns:
- taxedShippingPrice
-
getDiscountOnTotalPrice
Discounts that apply on the total price of the Order.
- Returns:
- discountOnTotalPrice
-
getTaxMode
TaxMode getTaxMode()Indicates how Tax Rates are set.
- Specified by:
getTaxMode
in interfaceOrderLike<Order>
- Returns:
- taxMode
-
getTaxRoundingMode
RoundingMode getTaxRoundingMode()Indicates how monetary values are rounded when calculating taxes for
taxedPrice
.- Specified by:
getTaxRoundingMode
in interfaceOrderLike<Order>
- Returns:
- taxRoundingMode
-
getTaxCalculationMode
TaxCalculationMode getTaxCalculationMode()Indicates how taxes are calculated when calculating taxes for
taxedPrice
.- Specified by:
getTaxCalculationMode
in interfaceOrderLike<Order>
- Returns:
- taxCalculationMode
-
getInventoryMode
InventoryMode getInventoryMode()Indicates how stock quantities are tracked for Line Items in the Order.
- Specified by:
getInventoryMode
in interfaceOrderLike<Order>
- Returns:
- inventoryMode
-
getBillingAddress
Billing address associated with the Order.
- Specified by:
getBillingAddress
in interfaceOrderLike<Order>
- Returns:
- billingAddress
-
getShippingAddress
Shipping address associated with the Order. Determines eligible ShippingMethod rates and Tax Rates of Line Items.
- Specified by:
getShippingAddress
in interfaceOrderLike<Order>
- Returns:
- shippingAddress
-
getShippingMode
Indicates whether there can be one or multiple Shipping Methods.
- Returns:
- shippingMode
-
getShippingKey
String getShippingKey()key
of the ShippingMethod forSingle
ShippingMode.- Returns:
- shippingKey
-
getShippingInfo
Shipping-related information for
Single
ShippingMode. Automatically set when a Shipping Method is set.- Specified by:
getShippingInfo
in interfaceOrderLike<Order>
- Returns:
- shippingInfo
-
getShippingRateInput
Input used to select a ShippingRatePriceTier. The data type of this field depends on the
shippingRateInputType.type
configured in the Project:- If
CartClassification
, it is ClassificationShippingRateInput. - If
CartScore
, it is ScoreShippingRateInput. - If
CartValue
, it cannot be used.
- Specified by:
getShippingRateInput
in interfaceOrderLike<Order>
- Returns:
- shippingRateInput
- If
-
getShippingCustomFields
Custom Fields of the Shipping Method for
Single
ShippingMode.- Specified by:
getShippingCustomFields
in interfaceOrderLike<Order>
- Returns:
- shippingCustomFields
-
getShipping
Shipping-related information for
Multiple
ShippingMode. Updated automatically each time a new Shipping Method is added.- Returns:
- shipping
-
getItemShippingAddresses
Additional shipping addresses of the Order as specified by LineItems using the
shippingDetails
field. Eligible Shipping Methods or applicable Tax Rates are determined by the address inshippingAddress
, and notitemShippingAddresses
.- Specified by:
getItemShippingAddresses
in interfaceOrderLike<Order>
- Returns:
- itemShippingAddresses
-
getDiscountCodes
Discount Codes added to the Order. An Order that has
directDiscounts
cannot havediscountCodes
.- Specified by:
getDiscountCodes
in interfaceOrderLike<Order>
- Returns:
- discountCodes
-
getDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodes
cannot havedirectDiscounts
.- Returns:
- directDiscounts
-
getRefusedGifts
Automatically set when a Line Item with
GiftLineItem
LineItemMode is removed from the Order.- Specified by:
getRefusedGifts
in interfaceOrderLike<Order>
- Returns:
- refusedGifts
-
getPaymentInfo
Payment information related to the Order.
- Specified by:
getPaymentInfo
in interfaceOrderLike<Order>
- Returns:
- paymentInfo
-
getCountry
String getCountry()Used for Line Item price selection.
- Specified by:
getCountry
in interfaceOrderLike<Order>
- Returns:
- country
-
getLocale
String getLocale()Languages of the Order. Can only contain languages supported by the Project.
-
getOrigin
Indicates the origin of the Cart from which the Order was created.
-
getCart
Reference to the Cart for an Order created from Cart. The referenced Cart will have the
Ordered
CartState.- Returns:
- cart
-
getQuote
Reference to the Quote for an Order created from Quote.
- Returns:
- quote
-
getOrderState
Current status of the Order.
- Returns:
- orderState
-
getShipmentState
ShipmentState getShipmentState()Shipment status of the Order.
- Returns:
- shipmentState
-
getPaymentState
PaymentState getPaymentState()Payment status of the Order.
- Returns:
- paymentState
-
getState
State of the Order. This reference can point to a State in a custom workflow.
- Returns:
- state
-
getSyncInfo
Contains synchronization activity information of the Order (like export or import). Can only be set with Update SyncInfo update action.
- Returns:
- syncInfo
-
getReturnInfo
Contains information regarding the returns associated with the Order.
- Returns:
- returnInfo
-
getLastMessageSequenceNumber
Deprecated.Internal-only field.
- Returns:
- lastMessageSequenceNumber
-
getCustom
Custom Fields of the Order.
-
getCompletedAt
ZonedDateTime getCompletedAt()User-defined date and time (UTC) of the Order. Present only on an Order created using Order Import.
- Returns:
- completedAt
-
getCreatedAt
Date and time (UTC) the Order was initially created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceOrderLike<Order>
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Order was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceOrderLike<Order>
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the Order.
- Specified by:
getLastModifiedBy
in interfaceOrderLike<Order>
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the Order.
- Specified by:
getCreatedBy
in interfaceOrderLike<Order>
- Returns:
- createdBy
-
setId
Unique identifier of the Order.
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setVersion
Current version of the Order.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setOrderNumber
User-defined identifier of the Order that is unique across a Project.
- Parameters:
orderNumber
- value to be set
-
setPurchaseOrderNumber
User-defined identifier of a purchase Order.
It is typically set by the Buyer and can be used with Quotes to track the purchase Order during the quote and order flow.
- Parameters:
purchaseOrderNumber
- value to be set
-
setCustomerId
id
of the Customer that the Order belongs to.- Parameters:
customerId
- value to be set
-
setCustomerEmail
Email address of the Customer that the Order belongs to.
- Parameters:
customerEmail
- value to be set
-
setCustomerGroup
Reference to the Customer Group of the Customer that the Order belongs to. Used for Line Item price selection.
- Parameters:
customerGroup
- value to be set
-
setAnonymousId
Anonymous session associated with the Order.
- Parameters:
anonymousId
- value to be set
-
setBusinessUnit
Reference to a Business Unit the Order belongs to.
- Parameters:
businessUnit
- value to be set
-
setStore
Reference to a Store the Order belongs to.
- Parameters:
store
- value to be set
-
setLineItems
Line Items that are part of the Order.
- Parameters:
lineItems
- values to be set
-
setLineItems
Line Items that are part of the Order.
- Parameters:
lineItems
- values to be set
-
setCustomLineItems
Custom Line Items that are part of the Order.
- Parameters:
customLineItems
- values to be set
-
setCustomLineItems
Custom Line Items that are part of the Order.
- Parameters:
customLineItems
- values to be set
-
setTotalPrice
Sum of the
totalPrice
field of all LineItems and CustomLineItems, and if available, theprice
field of ShippingInfo. If a discount applies ontotalPrice
, this field holds the discounted value.Taxes are included if TaxRate
includedInPrice
istrue
for each price.- Parameters:
totalPrice
- value to be set
-
setTaxedPrice
- For
Platform
TaxMode, it is automatically set when a shipping address is set. - For
External
TaxMode, it is automatically set whenshippingAddress
and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.
If a discount applies on
totalPrice
, this field holds the discounted values.- Parameters:
taxedPrice
- value to be set
- For
-
setTaxedShippingPrice
Sum of the
taxedPrice
field of ShippingInfo across all Shipping Methods.- Parameters:
taxedShippingPrice
- value to be set
-
setDiscountOnTotalPrice
Discounts that apply on the total price of the Order.
- Parameters:
discountOnTotalPrice
- value to be set
-
setTaxMode
Indicates how Tax Rates are set.
- Parameters:
taxMode
- value to be set
-
setTaxRoundingMode
Indicates how monetary values are rounded when calculating taxes for
taxedPrice
.- Parameters:
taxRoundingMode
- value to be set
-
setTaxCalculationMode
Indicates how taxes are calculated when calculating taxes for
taxedPrice
.- Parameters:
taxCalculationMode
- value to be set
-
setInventoryMode
Indicates how stock quantities are tracked for Line Items in the Order.
- Parameters:
inventoryMode
- value to be set
-
setBillingAddress
Billing address associated with the Order.
- Parameters:
billingAddress
- value to be set
-
setShippingAddress
Shipping address associated with the Order. Determines eligible ShippingMethod rates and Tax Rates of Line Items.
- Parameters:
shippingAddress
- value to be set
-
setShippingMode
Indicates whether there can be one or multiple Shipping Methods.
- Parameters:
shippingMode
- value to be set
-
setShippingKey
key
of the ShippingMethod forSingle
ShippingMode.- Parameters:
shippingKey
- value to be set
-
setShippingInfo
Shipping-related information for
Single
ShippingMode. Automatically set when a Shipping Method is set.- Parameters:
shippingInfo
- value to be set
-
setShippingRateInput
Input used to select a ShippingRatePriceTier. The data type of this field depends on the
shippingRateInputType.type
configured in the Project:- If
CartClassification
, it is ClassificationShippingRateInput. - If
CartScore
, it is ScoreShippingRateInput. - If
CartValue
, it cannot be used.
- Parameters:
shippingRateInput
- value to be set
- If
-
setShippingCustomFields
Custom Fields of the Shipping Method for
Single
ShippingMode.- Parameters:
shippingCustomFields
- value to be set
-
setShipping
Shipping-related information for
Multiple
ShippingMode. Updated automatically each time a new Shipping Method is added.- Parameters:
shipping
- values to be set
-
setShipping
Shipping-related information for
Multiple
ShippingMode. Updated automatically each time a new Shipping Method is added.- Parameters:
shipping
- values to be set
-
setItemShippingAddresses
Additional shipping addresses of the Order as specified by LineItems using the
shippingDetails
field. Eligible Shipping Methods or applicable Tax Rates are determined by the address inshippingAddress
, and notitemShippingAddresses
.- Parameters:
itemShippingAddresses
- values to be set
-
setItemShippingAddresses
Additional shipping addresses of the Order as specified by LineItems using the
shippingDetails
field. Eligible Shipping Methods or applicable Tax Rates are determined by the address inshippingAddress
, and notitemShippingAddresses
.- Parameters:
itemShippingAddresses
- values to be set
-
setDiscountCodes
Discount Codes added to the Order. An Order that has
directDiscounts
cannot havediscountCodes
.- Parameters:
discountCodes
- values to be set
-
setDiscountCodes
Discount Codes added to the Order. An Order that has
directDiscounts
cannot havediscountCodes
.- Parameters:
discountCodes
- values to be set
-
setDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodes
cannot havedirectDiscounts
.- Parameters:
directDiscounts
- values to be set
-
setDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodes
cannot havedirectDiscounts
.- Parameters:
directDiscounts
- values to be set
-
setRefusedGifts
Automatically set when a Line Item with
GiftLineItem
LineItemMode is removed from the Order.- Parameters:
refusedGifts
- values to be set
-
setRefusedGifts
Automatically set when a Line Item with
GiftLineItem
LineItemMode is removed from the Order.- Parameters:
refusedGifts
- values to be set
-
setPaymentInfo
Payment information related to the Order.
- Parameters:
paymentInfo
- value to be set
-
setCountry
Used for Line Item price selection.
- Parameters:
country
- value to be set
-
setLocale
Languages of the Order. Can only contain languages supported by the Project.
- Parameters:
locale
- value to be set
-
setOrigin
Indicates the origin of the Cart from which the Order was created.
- Parameters:
origin
- value to be set
-
setCart
Reference to the Cart for an Order created from Cart. The referenced Cart will have the
Ordered
CartState.- Parameters:
cart
- value to be set
-
setQuote
Reference to the Quote for an Order created from Quote.
- Parameters:
quote
- value to be set
-
setOrderState
Current status of the Order.
- Parameters:
orderState
- value to be set
-
setShipmentState
Shipment status of the Order.
- Parameters:
shipmentState
- value to be set
-
setPaymentState
Payment status of the Order.
- Parameters:
paymentState
- value to be set
-
setState
State of the Order. This reference can point to a State in a custom workflow.
- Parameters:
state
- value to be set
-
setSyncInfo
Contains synchronization activity information of the Order (like export or import). Can only be set with Update SyncInfo update action.
- Parameters:
syncInfo
- values to be set
-
setSyncInfo
Contains synchronization activity information of the Order (like export or import). Can only be set with Update SyncInfo update action.
- Parameters:
syncInfo
- values to be set
-
setReturnInfo
Contains information regarding the returns associated with the Order.
- Parameters:
returnInfo
- values to be set
-
setReturnInfo
Contains information regarding the returns associated with the Order.
- Parameters:
returnInfo
- values to be set
-
setLastMessageSequenceNumber
Deprecated.Internal-only field.
- Parameters:
lastMessageSequenceNumber
- value to be set
-
setCustom
Custom Fields of the Order.
- Specified by:
setCustom
in interfaceCustomizable<Order>
- Parameters:
custom
- value to be set
-
setCompletedAt
User-defined date and time (UTC) of the Order. Present only on an Order created using Order Import.
- Parameters:
completedAt
- value to be set
-
setCreatedAt
Date and time (UTC) the Order was initially created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) the Order was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
IDs and references that last modified the Order.
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
IDs and references that created the Order.
- Parameters:
createdBy
- value to be set
-
of
factory method- Returns:
- instance of Order
-
of
factory method to create a shallow copy Order- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of Order- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Order- Returns:
- builder
-
builder
create builder for Order instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrder
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
referenceTypeId
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-