Class StagedOrderImpl
- All Implemented Interfaces:
BaseResource
,Customizable<Order>
,DomainResource<Order>
,Identifiable<Order>
,StagedOrder
,Order
,OrderLike<Order>
,OrderMixin
,Referencable<Order>
,ResourceIdentifiable<Order>
,Versioned<Order>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Identifies carts and orders belonging to an anonymous session (the customer has not signed up/in yet).The Business Unit the Order belongs to.getCart()
Set when this order was created from a cart.This field will only be present if it was set for Order ImportA two-digit country code as per ISO 3166-1 alpha-2.Present on resources created after 1 February 2019 except for events not tracked.Custom Fields defined for the entitySet when the customer is set and the customer is a member of a customer group.getId()
Unique identifier of the Order.Contains addresses for orders with multiple shipping addresses.Deprecated.Present on resources created after 1 February 2019 except for events not tracked.String that uniquely identifies an order.One of the four predefined OrderStates.The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.getQuote()
Set when this order was created from a quote.Automatically filled when a line item with LineItemModeGiftLineItem
is removed from this order.Holds all shipping-related information per Shipping Method forMulti
ShippingMode.Holds all shipping-related information per Shipping Method.Custom Fields of the Shipping Method forSingle
ShippingMode.Set if the ShippingMethod is set.User-defined unique identifier of the Shipping Method withSingle
ShippingMode.Indicates whether one or multiple Shipping Methods are added to the Cart.Input used to select a ShippingRatePriceTier.getState()
This reference can point to a state in a custom workflow.getStore()
When calculating taxes fortaxedPrice
, the selected mode is used for calculating the price with LineItemLevel (horizontally) or UnitPriceLevel (vertically) calculation mode.The taxes are calculated based on the shipping address.Sum oftaxedPrice
of ShippingInfo across all Shipping Methods.When calculating taxes fortaxedPrice
, the selected mode is used for rouding.The current version of the order.int
hashCode()
void
setAnonymousId
(String anonymousId) Identifies carts and orders belonging to an anonymous session (the customer has not signed up/in yet).void
setBillingAddress
(Address billingAddress) set billingAddressvoid
setBusinessUnit
(BusinessUnitKeyReference businessUnit) The Business Unit the Order belongs to.void
setCart
(CartReference cart) Set when this order was created from a cart.void
setCompletedAt
(ZonedDateTime completedAt) This field will only be present if it was set for Order Importvoid
setCountry
(String country) A two-digit country code as per ISO 3166-1 alpha-2.void
setCreatedAt
(ZonedDateTime createdAt) set createdAtvoid
setCreatedBy
(CreatedBy createdBy) Present on resources created after 1 February 2019 except for events not tracked.void
setCustom
(CustomFields custom) set customvoid
setCustomerEmail
(String customerEmail) set customerEmailvoid
setCustomerGroup
(CustomerGroupReference customerGroup) Set when the customer is set and the customer is a member of a customer group.void
setCustomerId
(String customerId) set customerIdvoid
setCustomLineItems
(CustomLineItem... customLineItems) set customLineItemsvoid
setCustomLineItems
(List<CustomLineItem> customLineItems) set customLineItemsvoid
setDiscountCodes
(DiscountCodeInfo... discountCodes) set discountCodesvoid
setDiscountCodes
(List<DiscountCodeInfo> discountCodes) set discountCodesvoid
Unique identifier of the Order.void
setInventoryMode
(InventoryMode inventoryMode) set inventoryModevoid
setItemShippingAddresses
(Address... itemShippingAddresses) Contains addresses for orders with multiple shipping addresses.void
setItemShippingAddresses
(List<Address> itemShippingAddresses) Contains addresses for orders with multiple shipping addresses.void
setLastMessageSequenceNumber
(Long lastMessageSequenceNumber) Deprecated.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) set lastModifiedAtvoid
setLastModifiedBy
(LastModifiedBy lastModifiedBy) Present on resources created after 1 February 2019 except for events not tracked.void
setLineItems
(LineItem... lineItems) set lineItemsvoid
setLineItems
(List<LineItem> lineItems) set lineItemsvoid
set localevoid
setOrderNumber
(String orderNumber) String that uniquely identifies an order.void
setOrderState
(OrderState orderState) One of the four predefined OrderStates.void
setOrigin
(CartOrigin origin) set originvoid
setPaymentInfo
(PaymentInfo paymentInfo) set paymentInfovoid
setPaymentState
(PaymentState paymentState) set paymentStatevoid
setPurchaseOrderNumber
(String purchaseOrderNumber) The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.void
setQuote
(QuoteReference quote) Set when this order was created from a quote.void
setRefusedGifts
(CartDiscountReference... refusedGifts) Automatically filled when a line item with LineItemModeGiftLineItem
is removed from this order.void
setRefusedGifts
(List<CartDiscountReference> refusedGifts) Automatically filled when a line item with LineItemModeGiftLineItem
is removed from this order.void
setReturnInfo
(ReturnInfo... returnInfo) set returnInfovoid
setReturnInfo
(List<ReturnInfo> returnInfo) set returnInfovoid
setShipmentState
(ShipmentState shipmentState) set shipmentStatevoid
setShipping
(Shipping... shipping) Holds all shipping-related information per Shipping Method forMulti
ShippingMode.void
setShipping
(List<Shipping> shipping) Holds all shipping-related information per Shipping Method forMulti
ShippingMode.void
setShippingAddress
(Address shippingAddress) Holds all shipping-related information per Shipping Method.void
setShippingCustomFields
(CustomFields shippingCustomFields) Custom Fields of the Shipping Method forSingle
ShippingMode.void
setShippingInfo
(ShippingInfo shippingInfo) Set if the ShippingMethod is set.void
setShippingKey
(String shippingKey) User-defined unique identifier of the Shipping Method withSingle
ShippingMode.void
setShippingMode
(ShippingMode shippingMode) Indicates whether one or multiple Shipping Methods are added to the Cart.void
setShippingRateInput
(ShippingRateInput shippingRateInput) Input used to select a ShippingRatePriceTier.void
setState
(StateReference state) This reference can point to a state in a custom workflow.void
setStore
(StoreKeyReference store) set storevoid
setSyncInfo
(SyncInfo... syncInfo) set syncInfovoid
setSyncInfo
(List<SyncInfo> syncInfo) set syncInfovoid
setTaxCalculationMode
(TaxCalculationMode taxCalculationMode) When calculating taxes fortaxedPrice
, the selected mode is used for calculating the price with LineItemLevel (horizontally) or UnitPriceLevel (vertically) calculation mode.void
setTaxedPrice
(TaxedPrice taxedPrice) The taxes are calculated based on the shipping address.void
setTaxedShippingPrice
(TaxedPrice taxedShippingPrice) Sum oftaxedPrice
of ShippingInfo across all Shipping Methods.void
setTaxMode
(TaxMode taxMode) set taxModevoid
setTaxRoundingMode
(RoundingMode taxRoundingMode) When calculating taxes fortaxedPrice
, the selected mode is used for rouding.void
setTotalPrice
(TypedMoney totalPrice) set totalPricevoid
setVersion
(Long version) The current version of the order.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.OrderLike
calculateSubTotalPrice
Methods inherited from interface com.commercetools.api.models.order.OrderMixin
toReference, toResourceIdentifier
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrder
withStagedOrder
-
Constructor Details
-
StagedOrderImpl
public StagedOrderImpl()create empty instance
-
-
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 interfaceOrder
- Specified by:
getId
in interfaceOrderLike<Order>
- Specified by:
getId
in interfaceVersioned<Order>
- Returns:
- id
-
getVersion
The current version of the order.
- Specified by:
getVersion
in interfaceBaseResource
- Specified by:
getVersion
in interfaceDomainResource<Order>
- Specified by:
getVersion
in interfaceOrder
- Specified by:
getVersion
in interfaceOrderLike<Order>
- Specified by:
getVersion
in interfaceVersioned<Order>
- Returns:
- version
-
getCreatedAt
- Specified by:
getCreatedAt
in interfaceBaseResource
- Specified by:
getCreatedAt
in interfaceOrder
- Specified by:
getCreatedAt
in interfaceOrderLike<Order>
- Returns:
- createdAt
-
getLastModifiedAt
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Specified by:
getLastModifiedAt
in interfaceOrder
- Specified by:
getLastModifiedAt
in interfaceOrderLike<Order>
- Returns:
- lastModifiedAt
-
getLastModifiedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getLastModifiedBy
in interfaceOrder
- Specified by:
getLastModifiedBy
in interfaceOrderLike<Order>
- Returns:
- lastModifiedBy
-
getCreatedBy
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
getCreatedBy
in interfaceOrder
- Specified by:
getCreatedBy
in interfaceOrderLike<Order>
- Returns:
- createdBy
-
getCompletedAt
This field will only be present if it was set for Order Import
- Specified by:
getCompletedAt
in interfaceOrder
- Returns:
- completedAt
-
getOrderNumber
String that uniquely identifies an order. It can be used to create more human-readable (in contrast to ID) identifier for the order. It should be unique across a project. Once it's set it cannot be changed.
- Specified by:
getOrderNumber
in interfaceOrder
- Returns:
- orderNumber
-
getCustomerId
- Specified by:
getCustomerId
in interfaceOrder
- Specified by:
getCustomerId
in interfaceOrderLike<Order>
- Returns:
- customerId
-
getCustomerEmail
- Specified by:
getCustomerEmail
in interfaceOrder
- Specified by:
getCustomerEmail
in interfaceOrderLike<Order>
- Returns:
- customerEmail
-
getAnonymousId
Identifies carts and orders belonging to an anonymous session (the customer has not signed up/in yet).
- Specified by:
getAnonymousId
in interfaceOrder
- Specified by:
getAnonymousId
in interfaceOrderLike<Order>
- Returns:
- anonymousId
-
getBusinessUnit
The Business Unit the Order belongs to.
- Specified by:
getBusinessUnit
in interfaceOrder
- Returns:
- businessUnit
-
getStore
-
getLineItems
- Specified by:
getLineItems
in interfaceOrder
- Specified by:
getLineItems
in interfaceOrderLike<Order>
- Returns:
- lineItems
-
getCustomLineItems
- Specified by:
getCustomLineItems
in interfaceOrder
- Specified by:
getCustomLineItems
in interfaceOrderLike<Order>
- Returns:
- customLineItems
-
getTotalPrice
- Specified by:
getTotalPrice
in interfaceOrder
- Specified by:
getTotalPrice
in interfaceOrderLike<Order>
- Returns:
- totalPrice
-
getTaxedPrice
The taxes are calculated based on the shipping address.
- Specified by:
getTaxedPrice
in interfaceOrder
- Specified by:
getTaxedPrice
in interfaceOrderLike<Order>
- Returns:
- taxedPrice
-
getTaxedShippingPrice
Sum of
taxedPrice
of ShippingInfo across all Shipping Methods. ForPlatform
TaxMode, it is set automatically only if shipping address is set or Shipping Method is added to the Cart.- Specified by:
getTaxedShippingPrice
in interfaceOrder
- Returns:
- taxedShippingPrice
-
getShippingAddress
Holds all shipping-related information per Shipping Method.
For
Multi
ShippingMode, it is updated automatically after the Shipping Methods are added.- Specified by:
getShippingAddress
in interfaceOrder
- Specified by:
getShippingAddress
in interfaceOrderLike<Order>
- Returns:
- shippingAddress
-
getBillingAddress
- Specified by:
getBillingAddress
in interfaceOrder
- Specified by:
getBillingAddress
in interfaceOrderLike<Order>
- Returns:
- billingAddress
-
getShippingMode
Indicates whether one or multiple Shipping Methods are added to the Cart.
- Specified by:
getShippingMode
in interfaceOrder
- Returns:
- shippingMode
-
getShippingKey
User-defined unique identifier of the Shipping Method with
Single
ShippingMode.- Specified by:
getShippingKey
in interfaceOrder
- Returns:
- shippingKey
-
getShippingCustomFields
Custom Fields of the Shipping Method for
Single
ShippingMode.- Specified by:
getShippingCustomFields
in interfaceOrder
- Returns:
- shippingCustomFields
-
getShipping
Holds all shipping-related information per Shipping Method for
Multi
ShippingMode.It is updated automatically after the Shipping Method is added.
- Specified by:
getShipping
in interfaceOrder
- Returns:
- shipping
-
getTaxMode
- Specified by:
getTaxMode
in interfaceOrder
- Specified by:
getTaxMode
in interfaceOrderLike<Order>
- Returns:
- taxMode
-
getTaxRoundingMode
When calculating taxes for
taxedPrice
, the selected mode is used for rouding.- Specified by:
getTaxRoundingMode
in interfaceOrder
- Specified by:
getTaxRoundingMode
in interfaceOrderLike<Order>
- Returns:
- taxRoundingMode
-
getCustomerGroup
Set when the customer is set and the customer is a member of a customer group. Used for product variant price selection.
- Specified by:
getCustomerGroup
in interfaceOrder
- Specified by:
getCustomerGroup
in interfaceOrderLike<Order>
- Returns:
- customerGroup
-
getCountry
A two-digit country code as per ISO 3166-1 alpha-2. Used for product variant price selection.
- Specified by:
getCountry
in interfaceOrder
- Specified by:
getCountry
in interfaceOrderLike<Order>
- Returns:
- country
-
getOrderState
One of the four predefined OrderStates.
- Specified by:
getOrderState
in interfaceOrder
- Returns:
- orderState
-
getState
This reference can point to a state in a custom workflow.
-
getShipmentState
- Specified by:
getShipmentState
in interfaceOrder
- Returns:
- shipmentState
-
getPaymentState
- Specified by:
getPaymentState
in interfaceOrder
- Returns:
- paymentState
-
getShippingInfo
Set if the ShippingMethod is set.
- Specified by:
getShippingInfo
in interfaceOrder
- Specified by:
getShippingInfo
in interfaceOrderLike<Order>
- Returns:
- shippingInfo
-
getSyncInfo
- Specified by:
getSyncInfo
in interfaceOrder
- Returns:
- syncInfo
-
getReturnInfo
- Specified by:
getReturnInfo
in interfaceOrder
- Returns:
- returnInfo
-
getPurchaseOrderNumber
The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.
- Specified by:
getPurchaseOrderNumber
in interfaceOrder
- Returns:
- purchaseOrderNumber
-
getDiscountCodes
- Specified by:
getDiscountCodes
in interfaceOrder
- Specified by:
getDiscountCodes
in interfaceOrderLike<Order>
- Returns:
- discountCodes
-
getLastMessageSequenceNumber
Deprecated.Internal-only field.
- Specified by:
getLastMessageSequenceNumber
in interfaceOrder
- Returns:
- lastMessageSequenceNumber
-
getCart
Set when this order was created from a cart. The cart will have the state
Ordered
. -
getQuote
Set when this order was created from a quote.
-
getCustom
Description copied from interface:Customizable
Custom Fields defined for the entity
-
getPaymentInfo
- Specified by:
getPaymentInfo
in interfaceOrder
- Specified by:
getPaymentInfo
in interfaceOrderLike<Order>
- Returns:
- paymentInfo
-
getLocale
-
getInventoryMode
- Specified by:
getInventoryMode
in interfaceOrder
- Specified by:
getInventoryMode
in interfaceOrderLike<Order>
- Returns:
- inventoryMode
-
getOrigin
-
getTaxCalculationMode
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price with LineItemLevel (horizontally) or UnitPriceLevel (vertically) calculation mode.- Specified by:
getTaxCalculationMode
in interfaceOrder
- Specified by:
getTaxCalculationMode
in interfaceOrderLike<Order>
- Returns:
- taxCalculationMode
-
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 interfaceOrder
- Specified by:
getShippingRateInput
in interfaceOrderLike<Order>
- Returns:
- shippingRateInput
- If
-
getItemShippingAddresses
Contains addresses for orders with multiple shipping addresses.
- Specified by:
getItemShippingAddresses
in interfaceOrder
- Specified by:
getItemShippingAddresses
in interfaceOrderLike<Order>
- Returns:
- itemShippingAddresses
-
getRefusedGifts
Automatically filled when a line item with LineItemMode
GiftLineItem
is removed from this order.- Specified by:
getRefusedGifts
in interfaceOrder
- Specified by:
getRefusedGifts
in interfaceOrderLike<Order>
- Returns:
- refusedGifts
-
setId
Description copied from interface:Order
Unique identifier of the Order.
- Specified by:
setId
in interfaceBaseResource
- Specified by:
setId
in interfaceOrder
- Parameters:
id
- value to be set
-
setVersion
Description copied from interface:Order
The current version of the order.
- Specified by:
setVersion
in interfaceBaseResource
- Specified by:
setVersion
in interfaceOrder
- Parameters:
version
- value to be set
-
setCreatedAt
Description copied from interface:Order
set createdAt- Specified by:
setCreatedAt
in interfaceBaseResource
- Specified by:
setCreatedAt
in interfaceOrder
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Description copied from interface:Order
set lastModifiedAt- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Specified by:
setLastModifiedAt
in interfaceOrder
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
Description copied from interface:Order
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setLastModifiedBy
in interfaceOrder
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
Description copied from interface:Order
Present on resources created after 1 February 2019 except for events not tracked.
- Specified by:
setCreatedBy
in interfaceOrder
- Parameters:
createdBy
- value to be set
-
setCompletedAt
Description copied from interface:Order
This field will only be present if it was set for Order Import
- Specified by:
setCompletedAt
in interfaceOrder
- Parameters:
completedAt
- value to be set
-
setOrderNumber
Description copied from interface:Order
String that uniquely identifies an order. It can be used to create more human-readable (in contrast to ID) identifier for the order. It should be unique across a project. Once it's set it cannot be changed.
- Specified by:
setOrderNumber
in interfaceOrder
- Parameters:
orderNumber
- value to be set
-
setCustomerId
Description copied from interface:Order
set customerId- Specified by:
setCustomerId
in interfaceOrder
- Parameters:
customerId
- value to be set
-
setCustomerEmail
Description copied from interface:Order
set customerEmail- Specified by:
setCustomerEmail
in interfaceOrder
- Parameters:
customerEmail
- value to be set
-
setAnonymousId
Description copied from interface:Order
Identifies carts and orders belonging to an anonymous session (the customer has not signed up/in yet).
- Specified by:
setAnonymousId
in interfaceOrder
- Parameters:
anonymousId
- value to be set
-
setBusinessUnit
Description copied from interface:Order
The Business Unit the Order belongs to.
- Specified by:
setBusinessUnit
in interfaceOrder
- Parameters:
businessUnit
- value to be set
-
setStore
Description copied from interface:Order
set store -
setLineItems
Description copied from interface:Order
set lineItems- Specified by:
setLineItems
in interfaceOrder
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:Order
set lineItems- Specified by:
setLineItems
in interfaceOrder
- Parameters:
lineItems
- values to be set
-
setCustomLineItems
Description copied from interface:Order
set customLineItems- Specified by:
setCustomLineItems
in interfaceOrder
- Parameters:
customLineItems
- values to be set
-
setCustomLineItems
Description copied from interface:Order
set customLineItems- Specified by:
setCustomLineItems
in interfaceOrder
- Parameters:
customLineItems
- values to be set
-
setTotalPrice
Description copied from interface:Order
set totalPrice- Specified by:
setTotalPrice
in interfaceOrder
- Parameters:
totalPrice
- value to be set
-
setTaxedPrice
Description copied from interface:Order
The taxes are calculated based on the shipping address.
- Specified by:
setTaxedPrice
in interfaceOrder
- Parameters:
taxedPrice
- value to be set
-
setTaxedShippingPrice
Description copied from interface:Order
Sum of
taxedPrice
of ShippingInfo across all Shipping Methods. ForPlatform
TaxMode, it is set automatically only if shipping address is set or Shipping Method is added to the Cart.- Specified by:
setTaxedShippingPrice
in interfaceOrder
- Parameters:
taxedShippingPrice
- value to be set
-
setShippingAddress
Description copied from interface:Order
Holds all shipping-related information per Shipping Method.
For
Multi
ShippingMode, it is updated automatically after the Shipping Methods are added.- Specified by:
setShippingAddress
in interfaceOrder
- Parameters:
shippingAddress
- value to be set
-
setBillingAddress
Description copied from interface:Order
set billingAddress- Specified by:
setBillingAddress
in interfaceOrder
- Parameters:
billingAddress
- value to be set
-
setShippingMode
Description copied from interface:Order
Indicates whether one or multiple Shipping Methods are added to the Cart.
- Specified by:
setShippingMode
in interfaceOrder
- Parameters:
shippingMode
- value to be set
-
setShippingKey
Description copied from interface:Order
User-defined unique identifier of the Shipping Method with
Single
ShippingMode.- Specified by:
setShippingKey
in interfaceOrder
- Parameters:
shippingKey
- value to be set
-
setShippingCustomFields
Description copied from interface:Order
Custom Fields of the Shipping Method for
Single
ShippingMode.- Specified by:
setShippingCustomFields
in interfaceOrder
- Parameters:
shippingCustomFields
- value to be set
-
setShipping
Description copied from interface:Order
Holds all shipping-related information per Shipping Method for
Multi
ShippingMode.It is updated automatically after the Shipping Method is added.
- Specified by:
setShipping
in interfaceOrder
- Parameters:
shipping
- values to be set
-
setShipping
Description copied from interface:Order
Holds all shipping-related information per Shipping Method for
Multi
ShippingMode.It is updated automatically after the Shipping Method is added.
- Specified by:
setShipping
in interfaceOrder
- Parameters:
shipping
- values to be set
-
setTaxMode
Description copied from interface:Order
set taxMode- Specified by:
setTaxMode
in interfaceOrder
- Parameters:
taxMode
- value to be set
-
setTaxRoundingMode
Description copied from interface:Order
When calculating taxes for
taxedPrice
, the selected mode is used for rouding.- Specified by:
setTaxRoundingMode
in interfaceOrder
- Parameters:
taxRoundingMode
- value to be set
-
setCustomerGroup
Description copied from interface:Order
Set when the customer is set and the customer is a member of a customer group. Used for product variant price selection.
- Specified by:
setCustomerGroup
in interfaceOrder
- Parameters:
customerGroup
- value to be set
-
setCountry
Description copied from interface:Order
A two-digit country code as per ISO 3166-1 alpha-2. Used for product variant price selection.
- Specified by:
setCountry
in interfaceOrder
- Parameters:
country
- value to be set
-
setOrderState
Description copied from interface:Order
One of the four predefined OrderStates.
- Specified by:
setOrderState
in interfaceOrder
- Parameters:
orderState
- value to be set
-
setState
Description copied from interface:Order
This reference can point to a state in a custom workflow.
-
setShipmentState
Description copied from interface:Order
set shipmentState- Specified by:
setShipmentState
in interfaceOrder
- Parameters:
shipmentState
- value to be set
-
setPaymentState
Description copied from interface:Order
set paymentState- Specified by:
setPaymentState
in interfaceOrder
- Parameters:
paymentState
- value to be set
-
setShippingInfo
Description copied from interface:Order
Set if the ShippingMethod is set.
- Specified by:
setShippingInfo
in interfaceOrder
- Parameters:
shippingInfo
- value to be set
-
setSyncInfo
Description copied from interface:Order
set syncInfo- Specified by:
setSyncInfo
in interfaceOrder
- Parameters:
syncInfo
- values to be set
-
setSyncInfo
Description copied from interface:Order
set syncInfo- Specified by:
setSyncInfo
in interfaceOrder
- Parameters:
syncInfo
- values to be set
-
setReturnInfo
Description copied from interface:Order
set returnInfo- Specified by:
setReturnInfo
in interfaceOrder
- Parameters:
returnInfo
- values to be set
-
setReturnInfo
Description copied from interface:Order
set returnInfo- Specified by:
setReturnInfo
in interfaceOrder
- Parameters:
returnInfo
- values to be set
-
setPurchaseOrderNumber
Description copied from interface:Order
The Purchase Order Number is typically set by the Buyer on a QuoteRequest to track the purchase order during the quote and order flow.
- Specified by:
setPurchaseOrderNumber
in interfaceOrder
- Parameters:
purchaseOrderNumber
- value to be set
-
setDiscountCodes
Description copied from interface:Order
set discountCodes- Specified by:
setDiscountCodes
in interfaceOrder
- Parameters:
discountCodes
- values to be set
-
setDiscountCodes
Description copied from interface:Order
set discountCodes- Specified by:
setDiscountCodes
in interfaceOrder
- Parameters:
discountCodes
- values to be set
-
setLastMessageSequenceNumber
Deprecated.Description copied from interface:Order
Internal-only field.
- Specified by:
setLastMessageSequenceNumber
in interfaceOrder
- Parameters:
lastMessageSequenceNumber
- value to be set
-
setCart
Description copied from interface:Order
Set when this order was created from a cart. The cart will have the state
Ordered
. -
setQuote
Description copied from interface:Order
Set when this order was created from a quote.
-
setCustom
Description copied from interface:Order
set custom- Specified by:
setCustom
in interfaceCustomizable<Order>
- Specified by:
setCustom
in interfaceOrder
- Parameters:
custom
- value to be set
-
setPaymentInfo
Description copied from interface:Order
set paymentInfo- Specified by:
setPaymentInfo
in interfaceOrder
- Parameters:
paymentInfo
- value to be set
-
setLocale
Description copied from interface:Order
set locale -
setInventoryMode
Description copied from interface:Order
set inventoryMode- Specified by:
setInventoryMode
in interfaceOrder
- Parameters:
inventoryMode
- value to be set
-
setOrigin
Description copied from interface:Order
set origin -
setTaxCalculationMode
Description copied from interface:Order
When calculating taxes for
taxedPrice
, the selected mode is used for calculating the price with LineItemLevel (horizontally) or UnitPriceLevel (vertically) calculation mode.- Specified by:
setTaxCalculationMode
in interfaceOrder
- Parameters:
taxCalculationMode
- value to be set
-
setShippingRateInput
Description copied from interface:Order
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:
setShippingRateInput
in interfaceOrder
- Parameters:
shippingRateInput
- value to be set
- If
-
setItemShippingAddresses
Description copied from interface:Order
Contains addresses for orders with multiple shipping addresses.
- Specified by:
setItemShippingAddresses
in interfaceOrder
- Parameters:
itemShippingAddresses
- values to be set
-
setItemShippingAddresses
Description copied from interface:Order
Contains addresses for orders with multiple shipping addresses.
- Specified by:
setItemShippingAddresses
in interfaceOrder
- Parameters:
itemShippingAddresses
- values to be set
-
setRefusedGifts
Description copied from interface:Order
Automatically filled when a line item with LineItemMode
GiftLineItem
is removed from this order.- Specified by:
setRefusedGifts
in interfaceOrder
- Parameters:
refusedGifts
- values to be set
-
setRefusedGifts
Description copied from interface:Order
Automatically filled when a line item with LineItemMode
GiftLineItem
is removed from this order.- Specified by:
setRefusedGifts
in interfaceOrder
- Parameters:
refusedGifts
- values to be set
-
equals
-
hashCode
-