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 SummaryModifier 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.BaseResourcewithBaseResourceMethods inherited from interface com.commercetools.api.models.CustomizableunwrapCustomizableMethods inherited from interface com.commercetools.api.models.DomainResourcegetMethods inherited from interface com.commercetools.api.models.order.OrderLikecalculateSubTotalPriceMethods inherited from interface com.commercetools.api.models.order.OrderMixintoReference, toResourceIdentifier
- 
Method Details- 
getIdUnique identifier of the Order. - Specified by:
- getIdin interface- BaseResource
- Specified by:
- getIdin interface- DomainResource<Order>
- Specified by:
- getIdin interface- Identifiable<Order>
- Specified by:
- getIdin interface- OrderLike<Order>
- Specified by:
- getIdin interface- Versioned<Order>
- Returns:
- id
 
- 
getVersionCurrent version of the Order. - Specified by:
- getVersionin interface- BaseResource
- Specified by:
- getVersionin interface- DomainResource<Order>
- Specified by:
- getVersionin interface- OrderLike<Order>
- Specified by:
- getVersionin interface- Versioned<Order>
- Returns:
- version
 
- 
getOrderNumberString getOrderNumber()User-defined identifier of the Order that is unique across a Project. - Returns:
- orderNumber
 
- 
getPurchaseOrderNumberString 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
 
- 
getCustomerIdString getCustomerId()idof the Customer that the Order belongs to.- Specified by:
- getCustomerIdin interface- OrderLike<Order>
- Returns:
- customerId
 
- 
getCustomerEmailString getCustomerEmail()Email address of the Customer that the Order belongs to. - Specified by:
- getCustomerEmailin interface- OrderLike<Order>
- Returns:
- customerEmail
 
- 
getCustomerGroupReference to the Customer Group of the Customer that the Order belongs to. Used for Line Item price selection. - Specified by:
- getCustomerGroupin interface- OrderLike<Order>
- Returns:
- customerGroup
 
- 
getAnonymousIdString getAnonymousId()Anonymous session associated with the Order. - Specified by:
- getAnonymousIdin interface- OrderLike<Order>
- Returns:
- anonymousId
 
- 
getBusinessUnitReference to a Business Unit the Order belongs to. Only available for B2B-enabled Projects. - Returns:
- businessUnit
 
- 
getStoreReference to a Store the Order belongs to. 
- 
getLineItemsLine Items that are part of the Order. - Specified by:
- getLineItemsin interface- OrderLike<Order>
- Returns:
- lineItems
 
- 
getCustomLineItemsCustom Line Items that are part of the Order. - Specified by:
- getCustomLineItemsin interface- OrderLike<Order>
- Returns:
- customLineItems
 
- 
getTotalPriceSum 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 interface- OrderLike<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 interface- OrderLike<Order>
- Returns:
- taxedPrice
 
- For 
- 
getTaxedShippingPriceSum of the taxedPricefield of ShippingInfo across all Shipping Methods.If a discount applies on totalPrice, this field holds the proportionally discounted value.- Returns:
- taxedShippingPrice
 
- 
getDiscountOnTotalPriceDiscounts that apply on the total price of the Order. - Returns:
- discountOnTotalPrice
 
- 
getPriceRoundingModeRoundingMode getPriceRoundingMode()Indicates how the total prices on LineItems and CustomLineItems are rounded when calculated. - Returns:
- priceRoundingMode
 
- 
getTaxModeTaxMode getTaxMode()Indicates how Tax Rates are set. - Specified by:
- getTaxModein interface- OrderLike<Order>
- Returns:
- taxMode
 
- 
getTaxRoundingModeRoundingMode getTaxRoundingMode()Indicates how monetary values are rounded when calculating taxes for taxedPrice.- Specified by:
- getTaxRoundingModein interface- OrderLike<Order>
- Returns:
- taxRoundingMode
 
- 
getTaxCalculationModeTaxCalculationMode getTaxCalculationMode()Indicates how taxes are calculated when calculating taxes for taxedPrice.- Specified by:
- getTaxCalculationModein interface- OrderLike<Order>
- Returns:
- taxCalculationMode
 
- 
getInventoryModeInventoryMode getInventoryMode()Indicates how stock quantities are tracked for Line Items in the Order. - Specified by:
- getInventoryModein interface- OrderLike<Order>
- Returns:
- inventoryMode
 
- 
getBillingAddressBilling address associated with the Order. - Specified by:
- getBillingAddressin interface- OrderLike<Order>
- Returns:
- billingAddress
 
- 
getShippingAddressShipping address associated with the Order. Determines eligible ShippingMethod rates and Tax Rates of Line Items. - Specified by:
- getShippingAddressin interface- OrderLike<Order>
- Returns:
- shippingAddress
 
- 
getShippingModeIndicates whether there can be one or multiple Shipping Methods. - Returns:
- shippingMode
 
- 
getShippingKeyString getShippingKey()keyof the ShippingMethod forSingleShippingMode.- Returns:
- shippingKey
 
- 
getShippingInfoShipping-related information for SingleShippingMode. Automatically set when a Shipping Method is set.- Specified by:
- getShippingInfoin interface- OrderLike<Order>
- Returns:
- shippingInfo
 
- 
getShippingRateInputInput 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 interface- OrderLike<Order>
- Returns:
- shippingRateInput
 
- If 
- 
getShippingCustomFieldsCustom Fields of the Shipping Method for SingleShippingMode.- Specified by:
- getShippingCustomFieldsin interface- OrderLike<Order>
- Returns:
- shippingCustomFields
 
- 
getShippingShipping-related information for MultipleShippingMode. Updated automatically each time a new Shipping Method is added.- Returns:
- shipping
 
- 
getItemShippingAddressesAdditional 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 interface- OrderLike<Order>
- Returns:
- itemShippingAddresses
 
- 
getDiscountCodesDiscount Codes added to the Order. An Order that has directDiscountscannot havediscountCodes.- Specified by:
- getDiscountCodesin interface- OrderLike<Order>
- Returns:
- discountCodes
 
- 
getDirectDiscountsDirect Discounts added to the Order. An Order that has discountCodescannot havedirectDiscounts.- Returns:
- directDiscounts
 
- 
getRefusedGiftsAutomatically set when a Line Item with GiftLineItemLineItemMode is removed from the Order.- Specified by:
- getRefusedGiftsin interface- OrderLike<Order>
- Returns:
- refusedGifts
 
- 
getPaymentInfoPayment information related to the Order. - Specified by:
- getPaymentInfoin interface- OrderLike<Order>
- Returns:
- paymentInfo
 
- 
getCountryString getCountry()Used for Line Item price selection. - Specified by:
- getCountryin interface- OrderLike<Order>
- Returns:
- country
 
- 
getLocaleString getLocale()Languages of the Order. Can only contain languages supported by the Project. 
- 
getOriginIndicates the origin of the Cart from which the Order was created. 
- 
getCartReference to the Cart for an Order created from Cart. The referenced Cart will have the OrderedCartState.- Returns:
- cart
 
- 
getQuoteReference to the Quote for an Order created from Quote. - Returns:
- quote
 
- 
getRecurringOrderReference to the RecurringOrder that generated this Order. - Returns:
- recurringOrder
 
- 
getOrderStateCurrent status of the Order. - Returns:
- orderState
 
- 
getShipmentStateShipmentState getShipmentState()Shipment status of the Order. - Returns:
- shipmentState
 
- 
getPaymentStatePaymentState getPaymentState()Payment status of the Order. - Returns:
- paymentState
 
- 
getStateState of the Order. This reference can point to a State in a custom workflow. - Returns:
- state
 
- 
getSyncInfoContains synchronization activity information of the Order (like export or import). Can only be set with Update SyncInfo update action. - Returns:
- syncInfo
 
- 
getReturnInfoContains information regarding the returns associated with the Order. - Returns:
- returnInfo
 
- 
getDiscountTypeCombinationIndicates if a combination of discount types can apply on an Order. - Returns:
- discountTypeCombination
 
- 
getLastMessageSequenceNumberDeprecated.Internal-only field. - Returns:
- lastMessageSequenceNumber
 
- 
getCustomCustom Fields of the Order. 
- 
getCompletedAtZonedDateTime getCompletedAt()User-defined date and time (UTC) of the Order. Present only on an Order created using Order Import. - Returns:
- completedAt
 
- 
getCreatedAtDate and time (UTC) the Order was initially created. - Specified by:
- getCreatedAtin interface- BaseResource
- Specified by:
- getCreatedAtin interface- OrderLike<Order>
- Returns:
- createdAt
 
- 
getLastModifiedAtDate and time (UTC) the Order was last updated. - Specified by:
- getLastModifiedAtin interface- BaseResource
- Specified by:
- getLastModifiedAtin interface- OrderLike<Order>
- Returns:
- lastModifiedAt
 
- 
getLastModifiedByIDs and references that last modified the Order. - Specified by:
- getLastModifiedByin interface- OrderLike<Order>
- Returns:
- lastModifiedBy
 
- 
getCreatedByIDs and references that created the Order. - Specified by:
- getCreatedByin interface- OrderLike<Order>
- Returns:
- createdBy
 
- 
setIdUnique identifier of the Order. - Specified by:
- setIdin interface- BaseResource
- Parameters:
- id- value to be set
 
- 
setVersionCurrent version of the Order. - Specified by:
- setVersionin interface- BaseResource
- Parameters:
- version- value to be set
 
- 
setOrderNumberUser-defined identifier of the Order that is unique across a Project. - Parameters:
- orderNumber- value to be set
 
- 
setPurchaseOrderNumberUser-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
 
- 
setCustomerIdidof the Customer that the Order belongs to.- Parameters:
- customerId- value to be set
 
- 
setCustomerEmailEmail address of the Customer that the Order belongs to. - Parameters:
- customerEmail- value to be set
 
- 
setCustomerGroupReference to the Customer Group of the Customer that the Order belongs to. Used for Line Item price selection. - Parameters:
- customerGroup- value to be set
 
- 
setAnonymousIdAnonymous session associated with the Order. - Parameters:
- anonymousId- value to be set
 
- 
setBusinessUnitReference to a Business Unit the Order belongs to. Only available for B2B-enabled Projects. - Parameters:
- businessUnit- value to be set
 
- 
setStoreReference to a Store the Order belongs to. - Parameters:
- store- value to be set
 
- 
setLineItemsLine Items that are part of the Order. - Parameters:
- lineItems- values to be set
 
- 
setLineItemsLine Items that are part of the Order. - Parameters:
- lineItems- values to be set
 
- 
setCustomLineItemsCustom Line Items that are part of the Order. - Parameters:
- customLineItems- values to be set
 
- 
setCustomLineItemsCustom Line Items that are part of the Order. - Parameters:
- customLineItems- values to be set
 
- 
setTotalPriceSum 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 
- 
setTaxedShippingPriceSum 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
 
- 
setDiscountOnTotalPriceDiscounts that apply on the total price of the Order. - Parameters:
- discountOnTotalPrice- value to be set
 
- 
setPriceRoundingModeIndicates how the total prices on LineItems and CustomLineItems are rounded when calculated. - Parameters:
- priceRoundingMode- value to be set
 
- 
setTaxModeIndicates how Tax Rates are set. - Parameters:
- taxMode- value to be set
 
- 
setTaxRoundingModeIndicates how monetary values are rounded when calculating taxes for taxedPrice.- Parameters:
- taxRoundingMode- value to be set
 
- 
setTaxCalculationModeIndicates how taxes are calculated when calculating taxes for taxedPrice.- Parameters:
- taxCalculationMode- value to be set
 
- 
setInventoryModeIndicates how stock quantities are tracked for Line Items in the Order. - Parameters:
- inventoryMode- value to be set
 
- 
setBillingAddressBilling address associated with the Order. - Parameters:
- billingAddress- value to be set
 
- 
setShippingAddressShipping address associated with the Order. Determines eligible ShippingMethod rates and Tax Rates of Line Items. - Parameters:
- shippingAddress- value to be set
 
- 
setShippingModeIndicates whether there can be one or multiple Shipping Methods. - Parameters:
- shippingMode- value to be set
 
- 
setShippingKeykeyof the ShippingMethod forSingleShippingMode.- Parameters:
- shippingKey- value to be set
 
- 
setShippingInfoShipping-related information for SingleShippingMode. Automatically set when a Shipping Method is set.- Parameters:
- shippingInfo- value to be set
 
- 
setShippingRateInputInput 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 
- 
setShippingCustomFieldsCustom Fields of the Shipping Method for SingleShippingMode.- Parameters:
- shippingCustomFields- value to be set
 
- 
setShippingShipping-related information for MultipleShippingMode. Updated automatically each time a new Shipping Method is added.- Parameters:
- shipping- values to be set
 
- 
setShippingShipping-related information for MultipleShippingMode. Updated automatically each time a new Shipping Method is added.- Parameters:
- shipping- values to be set
 
- 
setItemShippingAddressesAdditional 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
 
- 
setItemShippingAddressesAdditional 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
 
- 
setDiscountCodesDiscount Codes added to the Order. An Order that has directDiscountscannot havediscountCodes.- Parameters:
- discountCodes- values to be set
 
- 
setDiscountCodesDiscount Codes added to the Order. An Order that has directDiscountscannot havediscountCodes.- Parameters:
- discountCodes- values to be set
 
- 
setDirectDiscountsDirect Discounts added to the Order. An Order that has discountCodescannot havedirectDiscounts.- Parameters:
- directDiscounts- values to be set
 
- 
setDirectDiscountsDirect Discounts added to the Order. An Order that has discountCodescannot havedirectDiscounts.- Parameters:
- directDiscounts- values to be set
 
- 
setRefusedGiftsAutomatically set when a Line Item with GiftLineItemLineItemMode is removed from the Order.- Parameters:
- refusedGifts- values to be set
 
- 
setRefusedGiftsAutomatically set when a Line Item with GiftLineItemLineItemMode is removed from the Order.- Parameters:
- refusedGifts- values to be set
 
- 
setPaymentInfoPayment information related to the Order. - Parameters:
- paymentInfo- value to be set
 
- 
setCountryUsed for Line Item price selection. - Parameters:
- country- value to be set
 
- 
setLocaleLanguages of the Order. Can only contain languages supported by the Project. - Parameters:
- locale- value to be set
 
- 
setOriginIndicates the origin of the Cart from which the Order was created. - Parameters:
- origin- value to be set
 
- 
setCartReference to the Cart for an Order created from Cart. The referenced Cart will have the OrderedCartState.- Parameters:
- cart- value to be set
 
- 
setQuoteReference to the Quote for an Order created from Quote. - Parameters:
- quote- value to be set
 
- 
setRecurringOrderReference to the RecurringOrder that generated this Order. - Parameters:
- recurringOrder- value to be set
 
- 
setOrderStateCurrent status of the Order. - Parameters:
- orderState- value to be set
 
- 
setShipmentStateShipment status of the Order. - Parameters:
- shipmentState- value to be set
 
- 
setPaymentStatePayment status of the Order. - Parameters:
- paymentState- value to be set
 
- 
setStateState of the Order. This reference can point to a State in a custom workflow. - Parameters:
- state- value to be set
 
- 
setSyncInfoContains 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
 
- 
setSyncInfoContains 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
 
- 
setReturnInfoContains information regarding the returns associated with the Order. - Parameters:
- returnInfo- values to be set
 
- 
setReturnInfoContains information regarding the returns associated with the Order. - Parameters:
- returnInfo- values to be set
 
- 
setDiscountTypeCombinationIndicates if a combination of discount types can apply on an Order. - Parameters:
- discountTypeCombination- value to be set
 
- 
setLastMessageSequenceNumberDeprecated.Internal-only field. - Parameters:
- lastMessageSequenceNumber- value to be set
 
- 
setCustomCustom Fields of the Order. - Specified by:
- setCustomin interface- Customizable<Order>
- Parameters:
- custom- value to be set
 
- 
setCompletedAtUser-defined date and time (UTC) of the Order. Present only on an Order created using Order Import. - Parameters:
- completedAt- value to be set
 
- 
setCreatedAtDate and time (UTC) the Order was initially created. - Specified by:
- setCreatedAtin interface- BaseResource
- Parameters:
- createdAt- value to be set
 
- 
setLastModifiedAtDate and time (UTC) the Order was last updated. - Specified by:
- setLastModifiedAtin interface- BaseResource
- Parameters:
- lastModifiedAt- value to be set
 
- 
setLastModifiedByIDs and references that last modified the Order. - Parameters:
- lastModifiedBy- value to be set
 
- 
setCreatedByIDs and references that created the Order. - Parameters:
- createdBy- value to be set
 
- 
offactory method- Returns:
- instance of Order
 
- 
offactory method to create a shallow copy Order- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
copyDeepOrder copyDeep()- Specified by:
- copyDeepin interface- BaseResource
 
- 
deepCopyfactory method to create a deep copy of Order- Parameters:
- template- instance to be copied
- Returns:
- copy instance
 
- 
builderbuilder factory method for Order- Returns:
- builder
 
- 
buildercreate builder for Order instance- Parameters:
- template- instance with prefilled values for the builder
- Returns:
- builder
 
- 
withOrderaccessor map function- Type Parameters:
- T- mapped type
- Parameters:
- helper- function to map the object
- Returns:
- mapped value
 
- 
referenceTypeId
- 
typeReferencegives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
 
 
-