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 OrderBuilderbuilder()builder factory method for Orderstatic OrderBuildercreate builder for Order instancecopyDeep()static Orderfactory method to create a deep copy of OrderAnonymous session associated with the Order.@Valid AddressBilling address associated with the Order.@Valid BusinessUnitKeyReferenceReference to a Business Unit the Order belongs to.@Valid CartReferencegetCart()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 ZonedDateTimeDate and time (UTC) the Order was initially created.@Valid CreatedByIDs and references that created the Order.@Valid CustomFieldsCustom Fields of the Order.Email address of the Customer that the Order belongs to.@Valid CustomerGroupReferenceReference to the Customer Group of the Customer that the Order belongs to.idof 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 DiscountOnTotalPriceDiscounts that apply on the total price of the Order.@Valid DiscountTypeCombinationIndicates if a combination of discount types can apply on an Order.@NotNull StringgetId()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 theshippingDetailsfield.Deprecated.@NotNull ZonedDateTimeDate and time (UTC) the Order was last updated.@Valid LastModifiedByIDs 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 OrderStateCurrent status of the Order.@NotNull CartOriginIndicates the origin of the Cart from which the Order was created.@Valid PaymentInfoPayment information related to the Order.Payment status of the Order.Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated.User-defined identifier of a purchase Order.@Valid QuoteReferencegetQuote()Reference to the Quote for an Order created from Quote.@Valid RecurringOrderReferenceReference to the RecurringOrder that generated this Order.@NotNull @Valid List<CartDiscountReference>@Valid List<ReturnInfo>Contains information regarding the returns associated with the Order.Shipment status of the Order.Shipping-related information forMultipleShippingMode.@Valid AddressShipping address associated with the Order.@Valid CustomFieldsCustom Fields of the Shipping Method forSingleShippingMode.@Valid ShippingInfoShipping-related information forSingleShippingMode.@NotNull ShippingModeIndicates whether there can be one or multiple Shipping Methods.@Valid ShippingRateInputInput used to select a ShippingRatePriceTier.@Valid StateReferencegetState()State of the Order.@Valid StoreKeyReferencegetStore()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 TaxedPriceForPlatformTaxMode, it is automatically set when a shipping address is set. ForExternalTaxMode, it is automatically set whenshippingAddressand external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.@Valid TaxedPriceSum of thetaxedPricefield of ShippingInfo across all Shipping Methods.Indicates how Tax Rates are set.Indicates how monetary values are rounded when calculating taxes fortaxedPrice.@NotNull @Valid CentPrecisionMoneySum of thetotalPricefield of all LineItems and CustomLineItems, and if available, thepricefield of ShippingInfo.@NotNull LongCurrent version of the Order.static Orderof()factory methodstatic Orderfactory method to create a shallow copy Orderstatic ReferenceTypeIdvoidsetAnonymousId(String anonymousId) Anonymous session associated with the Order.voidsetBillingAddress(Address billingAddress) Billing address associated with the Order.voidsetBusinessUnit(BusinessUnitKeyReference businessUnit) Reference to a Business Unit the Order belongs to.voidsetCart(CartReference cart) Reference to the Cart for an Order created from Cart.voidsetCompletedAt(ZonedDateTime completedAt) User-defined date and time (UTC) of the Order.voidsetCountry(String country) Used for Line Item price selection.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the Order was initially created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the Order.voidsetCustom(CustomFields custom) Custom Fields of the Order.voidsetCustomerEmail(String customerEmail) Email address of the Customer that the Order belongs to.voidsetCustomerGroup(CustomerGroupReference customerGroup) Reference to the Customer Group of the Customer that the Order belongs to.voidsetCustomerId(String customerId) idof the Customer that the Order belongs to.voidsetCustomLineItems(CustomLineItem... customLineItems) Custom Line Items that are part of the Order.voidsetCustomLineItems(List<CustomLineItem> customLineItems) Custom Line Items that are part of the Order.voidsetDirectDiscounts(DirectDiscount... directDiscounts) Direct Discounts added to the Order.voidsetDirectDiscounts(List<DirectDiscount> directDiscounts) Direct Discounts added to the Order.voidsetDiscountCodes(DiscountCodeInfo... discountCodes) Discount Codes added to the Order.voidsetDiscountCodes(List<DiscountCodeInfo> discountCodes) Discount Codes added to the Order.voidsetDiscountOnTotalPrice(DiscountOnTotalPrice discountOnTotalPrice) Discounts that apply on the total price of the Order.voidsetDiscountTypeCombination(DiscountTypeCombination discountTypeCombination) Indicates if a combination of discount types can apply on an Order.voidUnique identifier of the Order.voidsetInventoryMode(InventoryMode inventoryMode) Indicates how stock quantities are tracked for Line Items in the Order.voidsetItemShippingAddresses(Address... itemShippingAddresses) Additional shipping addresses of the Order as specified by LineItems using theshippingDetailsfield.voidsetItemShippingAddresses(List<Address> itemShippingAddresses) Additional shipping addresses of the Order as specified by LineItems using theshippingDetailsfield.voidsetLastMessageSequenceNumber(Long lastMessageSequenceNumber) Deprecated.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the Order was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the Order.voidsetLineItems(LineItem... lineItems) Line Items that are part of the Order.voidsetLineItems(List<LineItem> lineItems) Line Items that are part of the Order.voidLanguages of the Order.voidsetOrderNumber(String orderNumber) User-defined identifier of the Order that is unique across a Project.voidsetOrderState(OrderState orderState) Current status of the Order.voidsetOrigin(CartOrigin origin) Indicates the origin of the Cart from which the Order was created.voidsetPaymentInfo(PaymentInfo paymentInfo) Payment information related to the Order.voidsetPaymentState(PaymentState paymentState) Payment status of the Order.voidsetPriceRoundingMode(RoundingMode priceRoundingMode) Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated.voidsetPurchaseOrderNumber(String purchaseOrderNumber) User-defined identifier of a purchase Order.voidsetQuote(QuoteReference quote) Reference to the Quote for an Order created from Quote.voidsetRecurringOrder(RecurringOrderReference recurringOrder) Reference to the RecurringOrder that generated this Order.voidsetRefusedGifts(CartDiscountReference... refusedGifts) voidsetRefusedGifts(List<CartDiscountReference> refusedGifts) voidsetReturnInfo(ReturnInfo... returnInfo) Contains information regarding the returns associated with the Order.voidsetReturnInfo(List<ReturnInfo> returnInfo) Contains information regarding the returns associated with the Order.voidsetShipmentState(ShipmentState shipmentState) Shipment status of the Order.voidsetShipping(Shipping... shipping) Shipping-related information forMultipleShippingMode.voidsetShipping(List<Shipping> shipping) Shipping-related information forMultipleShippingMode.voidsetShippingAddress(Address shippingAddress) Shipping address associated with the Order.voidsetShippingCustomFields(CustomFields shippingCustomFields) Custom Fields of the Shipping Method forSingleShippingMode.voidsetShippingInfo(ShippingInfo shippingInfo) Shipping-related information forSingleShippingMode.voidsetShippingKey(String shippingKey) voidsetShippingMode(ShippingMode shippingMode) Indicates whether there can be one or multiple Shipping Methods.voidsetShippingRateInput(ShippingRateInput shippingRateInput) Input used to select a ShippingRatePriceTier.voidsetState(StateReference state) State of the Order.voidsetStore(StoreKeyReference store) Reference to a Store the Order belongs to.voidsetSyncInfo(SyncInfo... syncInfo) Contains synchronization activity information of the Order (like export or import).voidsetSyncInfo(List<SyncInfo> syncInfo) Contains synchronization activity information of the Order (like export or import).voidsetTaxCalculationMode(TaxCalculationMode taxCalculationMode) Indicates how taxes are calculated when calculating taxes fortaxedPrice.voidsetTaxedPrice(TaxedPrice taxedPrice) ForPlatformTaxMode, it is automatically set when a shipping address is set. ForExternalTaxMode, it is automatically set whenshippingAddressand external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.voidsetTaxedShippingPrice(TaxedPrice taxedShippingPrice) Sum of thetaxedPricefield of ShippingInfo across all Shipping Methods.voidsetTaxMode(TaxMode taxMode) Indicates how Tax Rates are set.voidsetTaxRoundingMode(RoundingMode taxRoundingMode) Indicates how monetary values are rounded when calculating taxes fortaxedPrice.voidsetTotalPrice(CentPrecisionMoney totalPrice) Sum of thetotalPricefield of all LineItems and CustomLineItems, and if available, thepricefield of ShippingInfo.voidsetVersion(Long version) Current version of the Order.static com.fasterxml.jackson.core.type.TypeReference<Order>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.order.OrderLike
calculateSubTotalPriceMethods inherited from interface com.commercetools.api.models.order.OrderMixin
toReference, toResourceIdentifier
-
Method Details
-
getId
Unique identifier of the Order.
- Specified by:
getIdin interfaceBaseResource- Specified by:
getIdin interfaceDomainResource<Order>- Specified by:
getIdin interfaceIdentifiable<Order>- Specified by:
getIdin interfaceOrderLike<Order>- Specified by:
getIdin interfaceVersioned<Order>- Returns:
- id
-
getVersion
Current version of the Order.
- Specified by:
getVersionin interfaceBaseResource- Specified by:
getVersionin interfaceDomainResource<Order>- Specified by:
getVersionin interfaceOrderLike<Order>- Specified by:
getVersionin 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()idof the Customer that the Order belongs to.- Specified by:
getCustomerIdin interfaceOrderLike<Order>- Returns:
- customerId
-
getCustomerEmail
String getCustomerEmail()Email address of the Customer that the Order belongs to.
- Specified by:
getCustomerEmailin 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:
getCustomerGroupin interfaceOrderLike<Order>- Returns:
- customerGroup
-
getAnonymousId
String getAnonymousId()Anonymous session associated with the Order.
- Specified by:
getAnonymousIdin interfaceOrderLike<Order>- Returns:
- anonymousId
-
getBusinessUnit
Reference to a Business Unit the Order belongs to. Only available for B2B-enabled Projects.
- Returns:
- businessUnit
-
getStore
Reference to a Store the Order belongs to.
-
getLineItems
Line Items that are part of the Order.
- Specified by:
getLineItemsin interfaceOrderLike<Order>- Returns:
- lineItems
-
getCustomLineItems
Custom Line Items that are part of the Order.
- Specified by:
getCustomLineItemsin interfaceOrderLike<Order>- Returns:
- customLineItems
-
getTotalPrice
Sum of the
totalPricefield of all LineItems and CustomLineItems, and if available, thepricefield of ShippingInfo. If a discount applies ontotalPrice, this field holds the discounted value.Taxes are included if TaxRate
includedInPriceistruefor each price.- Specified by:
getTotalPricein interfaceOrderLike<Order>- Returns:
- totalPrice
-
getTaxedPrice
- For
PlatformTaxMode, it is automatically set when a shipping address is set. - For
ExternalTaxMode, it is automatically set whenshippingAddressand 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 proportionally discounted value.- Specified by:
getTaxedPricein interfaceOrderLike<Order>- Returns:
- taxedPrice
- For
-
getTaxedShippingPrice
Sum of the
taxedPricefield of ShippingInfo across all Shipping Methods.If a discount applies on
totalPrice, this field holds the proportionally discounted value.- Returns:
- taxedShippingPrice
-
getDiscountOnTotalPrice
Discounts that apply on the total price of the Order.
- Returns:
- discountOnTotalPrice
-
getPriceRoundingMode
RoundingMode getPriceRoundingMode()Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated.
- Returns:
- priceRoundingMode
-
getTaxMode
TaxMode getTaxMode()Indicates how Tax Rates are set.
- Specified by:
getTaxModein interfaceOrderLike<Order>- Returns:
- taxMode
-
getTaxRoundingMode
RoundingMode getTaxRoundingMode()Indicates how monetary values are rounded when calculating taxes for
taxedPrice.- Specified by:
getTaxRoundingModein interfaceOrderLike<Order>- Returns:
- taxRoundingMode
-
getTaxCalculationMode
TaxCalculationMode getTaxCalculationMode()Indicates how taxes are calculated when calculating taxes for
taxedPrice.- Specified by:
getTaxCalculationModein interfaceOrderLike<Order>- Returns:
- taxCalculationMode
-
getInventoryMode
InventoryMode getInventoryMode()Indicates how stock quantities are tracked for Line Items in the Order.
- Specified by:
getInventoryModein interfaceOrderLike<Order>- Returns:
- inventoryMode
-
getBillingAddress
Billing address associated with the Order.
- Specified by:
getBillingAddressin interfaceOrderLike<Order>- Returns:
- billingAddress
-
getShippingAddress
Shipping address associated with the Order. Determines eligible ShippingMethod rates and Tax Rates of Line Items.
- Specified by:
getShippingAddressin interfaceOrderLike<Order>- Returns:
- shippingAddress
-
getShippingMode
Indicates whether there can be one or multiple Shipping Methods.
- Returns:
- shippingMode
-
getShippingKey
String getShippingKey()keyof the ShippingMethod forSingleShippingMode.- Returns:
- shippingKey
-
getShippingInfo
Shipping-related information for
SingleShippingMode. Automatically set when a Shipping Method is set.- Specified by:
getShippingInfoin interfaceOrderLike<Order>- Returns:
- shippingInfo
-
getShippingRateInput
Input used to select a ShippingRatePriceTier. The data type of this field depends on the
shippingRateInputType.typeconfigured in the Project:- If
CartClassification, it is ClassificationShippingRateInput. - If
CartScore, it is ScoreShippingRateInput. - If
CartValue, it cannot be used.
- Specified by:
getShippingRateInputin interfaceOrderLike<Order>- Returns:
- shippingRateInput
- If
-
getShippingCustomFields
Custom Fields of the Shipping Method for
SingleShippingMode.- Specified by:
getShippingCustomFieldsin interfaceOrderLike<Order>- Returns:
- shippingCustomFields
-
getShipping
Shipping-related information for
MultipleShippingMode. 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
shippingDetailsfield. Eligible Shipping Methods or applicable Tax Rates are determined by the address inshippingAddress, and notitemShippingAddresses.- Specified by:
getItemShippingAddressesin interfaceOrderLike<Order>- Returns:
- itemShippingAddresses
-
getDiscountCodes
Discount Codes added to the Order. An Order that has
directDiscountscannot havediscountCodes.- Specified by:
getDiscountCodesin interfaceOrderLike<Order>- Returns:
- discountCodes
-
getDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodescannot havedirectDiscounts.- Returns:
- directDiscounts
-
getRefusedGifts
Automatically set when a Line Item with
GiftLineItemLineItemMode is removed from the Order.- Specified by:
getRefusedGiftsin interfaceOrderLike<Order>- Returns:
- refusedGifts
-
getPaymentInfo
Payment information related to the Order.
- Specified by:
getPaymentInfoin interfaceOrderLike<Order>- Returns:
- paymentInfo
-
getCountry
String getCountry()Used for Line Item price selection.
- Specified by:
getCountryin 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
OrderedCartState.- Returns:
- cart
-
getQuote
Reference to the Quote for an Order created from Quote.
- Returns:
- quote
-
getRecurringOrder
Reference to the RecurringOrder that generated this Order.
- Returns:
- recurringOrder
-
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
-
getDiscountTypeCombination
Indicates if a combination of discount types can apply on an Order.
- Returns:
- discountTypeCombination
-
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:
getCreatedAtin interfaceBaseResource- Specified by:
getCreatedAtin interfaceOrderLike<Order>- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Order was last updated.
- Specified by:
getLastModifiedAtin interfaceBaseResource- Specified by:
getLastModifiedAtin interfaceOrderLike<Order>- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the Order.
- Specified by:
getLastModifiedByin interfaceOrderLike<Order>- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the Order.
- Specified by:
getCreatedByin interfaceOrderLike<Order>- Returns:
- createdBy
-
setId
Unique identifier of the Order.
- Specified by:
setIdin interfaceBaseResource- Parameters:
id- value to be set
-
setVersion
Current version of the Order.
- Specified by:
setVersionin 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
idof 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. Only available for B2B-enabled Projects.
- 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
totalPricefield of all LineItems and CustomLineItems, and if available, thepricefield of ShippingInfo. If a discount applies ontotalPrice, this field holds the discounted value.Taxes are included if TaxRate
includedInPriceistruefor each price.- Parameters:
totalPrice- value to be set
-
setTaxedPrice
- For
PlatformTaxMode, it is automatically set when a shipping address is set. - For
ExternalTaxMode, it is automatically set whenshippingAddressand 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 proportionally discounted value.- Parameters:
taxedPrice- value to be set
- For
-
setTaxedShippingPrice
Sum of the
taxedPricefield of ShippingInfo across all Shipping Methods.If a discount applies on
totalPrice, this field holds the proportionally discounted value.- Parameters:
taxedShippingPrice- value to be set
-
setDiscountOnTotalPrice
Discounts that apply on the total price of the Order.
- Parameters:
discountOnTotalPrice- value to be set
-
setPriceRoundingMode
Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated.
- Parameters:
priceRoundingMode- 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
keyof the ShippingMethod forSingleShippingMode.- Parameters:
shippingKey- value to be set
-
setShippingInfo
Shipping-related information for
SingleShippingMode. 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.typeconfigured 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
SingleShippingMode.- Parameters:
shippingCustomFields- value to be set
-
setShipping
Shipping-related information for
MultipleShippingMode. Updated automatically each time a new Shipping Method is added.- Parameters:
shipping- values to be set
-
setShipping
Shipping-related information for
MultipleShippingMode. 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
shippingDetailsfield. 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
shippingDetailsfield. 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
directDiscountscannot havediscountCodes.- Parameters:
discountCodes- values to be set
-
setDiscountCodes
Discount Codes added to the Order. An Order that has
directDiscountscannot havediscountCodes.- Parameters:
discountCodes- values to be set
-
setDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodescannot havedirectDiscounts.- Parameters:
directDiscounts- values to be set
-
setDirectDiscounts
Direct Discounts added to the Order. An Order that has
discountCodescannot havedirectDiscounts.- Parameters:
directDiscounts- values to be set
-
setRefusedGifts
Automatically set when a Line Item with
GiftLineItemLineItemMode is removed from the Order.- Parameters:
refusedGifts- values to be set
-
setRefusedGifts
Automatically set when a Line Item with
GiftLineItemLineItemMode 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
OrderedCartState.- Parameters:
cart- value to be set
-
setQuote
Reference to the Quote for an Order created from Quote.
- Parameters:
quote- value to be set
-
setRecurringOrder
Reference to the RecurringOrder that generated this Order.
- Parameters:
recurringOrder- 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
-
setDiscountTypeCombination
Indicates if a combination of discount types can apply on an Order.
- Parameters:
discountTypeCombination- value to be set
-
setLastMessageSequenceNumber
Deprecated.Internal-only field.
- Parameters:
lastMessageSequenceNumber- value to be set
-
setCustom
Custom Fields of the Order.
- Specified by:
setCustomin 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:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the Order was last updated.
- Specified by:
setLastModifiedAtin 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
-
copyDeep
Order copyDeep()- Specified by:
copyDeepin interfaceBaseResource
-
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
-