Class OrderImportImpl
- All Implemented Interfaces:
OrderImport
,io.vrap.rmf.base.client.ModelBase
The data representation for an Order to be imported that is persisted as an Order in the Project.
In commercetools, you can import an Order using the Create Order by Import endpoint method instead of creating it from a Cart.
An OrderImport is a snapshot of an order at the time it was imported.
-
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
Maps toOrder.billingAddress
.Maps toOrder.completedAt
.Maps toOrder.country
.Maps toOrder.custom
.Maps toOrder.customerEmail
.Maps toOrder.customerGroup
.Maps toOrder.customLineItems
Maps toOrder.inventoryMode
.Maps toOrder.itemShippingAddresses
.Maps toOrder.lineItems
.Maps toOrder.orderNumber
, String that uniquely identifies an order.Maps toOrder.orderState
.Maps toOrder.origin
.Maps toOrder.paymentState
.Maps toOrder.shipmentState
.Maps toOrder.shippingAddress
.Maps toOrder.shippingInfo
.getState()
Reference to a State in a custom workflow.getStore()
Reference to the Store in which the Order is associated.Maps toOrder.taxCalculationMode
.Maps toOrder.taxedPrice
.Maps toOrder.taxRoundingMode
.Maps toOrder.totalPrice
.int
hashCode()
void
setBillingAddress
(Address billingAddress) Maps toOrder.billingAddress
.void
setCompletedAt
(ZonedDateTime completedAt) Maps toOrder.completedAt
.void
setCountry
(String country) Maps toOrder.country
.void
Maps toOrder.custom
.void
setCustomer
(CustomerKeyReference customer) set customervoid
setCustomerEmail
(String customerEmail) Maps toOrder.customerEmail
.void
setCustomerGroup
(CustomerGroupKeyReference customerGroup) Maps toOrder.customerGroup
.void
setCustomLineItems
(CustomLineItemDraft... customLineItems) Maps toOrder.customLineItems
void
setCustomLineItems
(List<CustomLineItemDraft> customLineItems) Maps toOrder.customLineItems
void
setInventoryMode
(InventoryMode inventoryMode) Maps toOrder.inventoryMode
.void
setItemShippingAddresses
(Address... itemShippingAddresses) Maps toOrder.itemShippingAddresses
.void
setItemShippingAddresses
(List<Address> itemShippingAddresses) Maps toOrder.itemShippingAddresses
.void
setLineItems
(LineItemImportDraft... lineItems) Maps toOrder.lineItems
.void
setLineItems
(List<LineItemImportDraft> lineItems) Maps toOrder.lineItems
.void
setOrderNumber
(String orderNumber) Maps toOrder.orderNumber
, String that uniquely identifies an order.void
setOrderState
(OrderState orderState) Maps toOrder.orderState
.void
setOrigin
(CartOrigin origin) Maps toOrder.origin
.void
setPaymentState
(PaymentState paymentState) Maps toOrder.paymentState
.void
setShipmentState
(ShipmentState shipmentState) Maps toOrder.shipmentState
.void
setShippingAddress
(Address shippingAddress) Maps toOrder.shippingAddress
.void
setShippingInfo
(ShippingInfoImportDraft shippingInfo) Maps toOrder.shippingInfo
.void
setState
(StateKeyReference state) Reference to a State in a custom workflow.void
setStore
(StoreKeyReference store) Reference to the Store in which the Order is associated.void
setTaxCalculationMode
(TaxCalculationMode taxCalculationMode) Maps toOrder.taxCalculationMode
.void
setTaxedPrice
(TaxedPrice taxedPrice) Maps toOrder.taxedPrice
.void
setTaxRoundingMode
(RoundingMode taxRoundingMode) Maps toOrder.taxRoundingMode
.void
setTotalPrice
(TypedMoney totalPrice) Maps toOrder.totalPrice
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.importapi.models.orders.OrderImport
withOrderImport
-
Constructor Details
-
OrderImportImpl
public OrderImportImpl()create empty instance
-
-
Method Details
-
getOrderNumber
Maps to
Order.orderNumber
, String that uniquely identifies an order. It should be unique across a project. Once it's set it cannot be changed.- Specified by:
getOrderNumber
in interfaceOrderImport
- Returns:
- orderNumber
-
getCustomer
- Specified by:
getCustomer
in interfaceOrderImport
- Returns:
- customer
-
getCustomerEmail
Maps to
Order.customerEmail
.- Specified by:
getCustomerEmail
in interfaceOrderImport
- Returns:
- customerEmail
-
getLineItems
Maps to
Order.lineItems
.- Specified by:
getLineItems
in interfaceOrderImport
- Returns:
- lineItems
-
getCustomLineItems
Maps to
Order.customLineItems
- Specified by:
getCustomLineItems
in interfaceOrderImport
- Returns:
- customLineItems
-
getTotalPrice
Maps to
Order.totalPrice
.- Specified by:
getTotalPrice
in interfaceOrderImport
- Returns:
- totalPrice
-
getTaxedPrice
Maps to
Order.taxedPrice
.- Specified by:
getTaxedPrice
in interfaceOrderImport
- Returns:
- taxedPrice
-
getShippingAddress
Maps to
Order.shippingAddress
.- Specified by:
getShippingAddress
in interfaceOrderImport
- Returns:
- shippingAddress
-
getBillingAddress
Maps to
Order.billingAddress
.- Specified by:
getBillingAddress
in interfaceOrderImport
- Returns:
- billingAddress
-
getCustomerGroup
Maps to
Order.customerGroup
.- Specified by:
getCustomerGroup
in interfaceOrderImport
- Returns:
- customerGroup
-
getCountry
Maps to
Order.country
.- Specified by:
getCountry
in interfaceOrderImport
- Returns:
- country
-
getOrderState
Maps to
Order.orderState
.- Specified by:
getOrderState
in interfaceOrderImport
- Returns:
- orderState
-
getShipmentState
Maps to
Order.shipmentState
.- Specified by:
getShipmentState
in interfaceOrderImport
- Returns:
- shipmentState
-
getPaymentState
Maps to
Order.paymentState
.- Specified by:
getPaymentState
in interfaceOrderImport
- Returns:
- paymentState
-
getShippingInfo
Maps to
Order.shippingInfo
.- Specified by:
getShippingInfo
in interfaceOrderImport
- Returns:
- shippingInfo
-
getCompletedAt
Maps to
Order.completedAt
.- Specified by:
getCompletedAt
in interfaceOrderImport
- Returns:
- completedAt
-
getCustom
Maps to
Order.custom
.- Specified by:
getCustom
in interfaceOrderImport
- Returns:
- custom
-
getInventoryMode
Maps to
Order.inventoryMode
.- Specified by:
getInventoryMode
in interfaceOrderImport
- Returns:
- inventoryMode
-
getTaxRoundingMode
Maps to
Order.taxRoundingMode
.- Specified by:
getTaxRoundingMode
in interfaceOrderImport
- Returns:
- taxRoundingMode
-
getTaxCalculationMode
Maps to
Order.taxCalculationMode
.- Specified by:
getTaxCalculationMode
in interfaceOrderImport
- Returns:
- taxCalculationMode
-
getOrigin
Maps to
Order.origin
.- Specified by:
getOrigin
in interfaceOrderImport
- Returns:
- origin
-
getItemShippingAddresses
Maps to
Order.itemShippingAddresses
.- Specified by:
getItemShippingAddresses
in interfaceOrderImport
- Returns:
- itemShippingAddresses
-
getStore
Reference to the Store in which the Order is associated. If referenced Store does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Store exists.- Specified by:
getStore
in interfaceOrderImport
- Returns:
- store
-
getState
Reference to a State in a custom workflow.
- Specified by:
getState
in interfaceOrderImport
- Returns:
- state
-
setOrderNumber
Description copied from interface:OrderImport
Maps to
Order.orderNumber
, String that uniquely identifies an order. It should be unique across a project. Once it's set it cannot be changed.- Specified by:
setOrderNumber
in interfaceOrderImport
- Parameters:
orderNumber
- value to be set
-
setCustomer
Description copied from interface:OrderImport
set customer- Specified by:
setCustomer
in interfaceOrderImport
- Parameters:
customer
- value to be set
-
setCustomerEmail
Description copied from interface:OrderImport
Maps to
Order.customerEmail
.- Specified by:
setCustomerEmail
in interfaceOrderImport
- Parameters:
customerEmail
- value to be set
-
setLineItems
Description copied from interface:OrderImport
Maps to
Order.lineItems
.- Specified by:
setLineItems
in interfaceOrderImport
- Parameters:
lineItems
- values to be set
-
setLineItems
Description copied from interface:OrderImport
Maps to
Order.lineItems
.- Specified by:
setLineItems
in interfaceOrderImport
- Parameters:
lineItems
- values to be set
-
setCustomLineItems
Description copied from interface:OrderImport
Maps to
Order.customLineItems
- Specified by:
setCustomLineItems
in interfaceOrderImport
- Parameters:
customLineItems
- values to be set
-
setCustomLineItems
Description copied from interface:OrderImport
Maps to
Order.customLineItems
- Specified by:
setCustomLineItems
in interfaceOrderImport
- Parameters:
customLineItems
- values to be set
-
setTotalPrice
Description copied from interface:OrderImport
Maps to
Order.totalPrice
.- Specified by:
setTotalPrice
in interfaceOrderImport
- Parameters:
totalPrice
- value to be set
-
setTaxedPrice
Description copied from interface:OrderImport
Maps to
Order.taxedPrice
.- Specified by:
setTaxedPrice
in interfaceOrderImport
- Parameters:
taxedPrice
- value to be set
-
setShippingAddress
Description copied from interface:OrderImport
Maps to
Order.shippingAddress
.- Specified by:
setShippingAddress
in interfaceOrderImport
- Parameters:
shippingAddress
- value to be set
-
setBillingAddress
Description copied from interface:OrderImport
Maps to
Order.billingAddress
.- Specified by:
setBillingAddress
in interfaceOrderImport
- Parameters:
billingAddress
- value to be set
-
setCustomerGroup
Description copied from interface:OrderImport
Maps to
Order.customerGroup
.- Specified by:
setCustomerGroup
in interfaceOrderImport
- Parameters:
customerGroup
- value to be set
-
setCountry
Description copied from interface:OrderImport
Maps to
Order.country
.- Specified by:
setCountry
in interfaceOrderImport
- Parameters:
country
- value to be set
-
setOrderState
Description copied from interface:OrderImport
Maps to
Order.orderState
.- Specified by:
setOrderState
in interfaceOrderImport
- Parameters:
orderState
- value to be set
-
setShipmentState
Description copied from interface:OrderImport
Maps to
Order.shipmentState
.- Specified by:
setShipmentState
in interfaceOrderImport
- Parameters:
shipmentState
- value to be set
-
setPaymentState
Description copied from interface:OrderImport
Maps to
Order.paymentState
.- Specified by:
setPaymentState
in interfaceOrderImport
- Parameters:
paymentState
- value to be set
-
setShippingInfo
Description copied from interface:OrderImport
Maps to
Order.shippingInfo
.- Specified by:
setShippingInfo
in interfaceOrderImport
- Parameters:
shippingInfo
- value to be set
-
setCompletedAt
Description copied from interface:OrderImport
Maps to
Order.completedAt
.- Specified by:
setCompletedAt
in interfaceOrderImport
- Parameters:
completedAt
- value to be set
-
setCustom
Description copied from interface:OrderImport
Maps to
Order.custom
.- Specified by:
setCustom
in interfaceOrderImport
- Parameters:
custom
- value to be set
-
setInventoryMode
Description copied from interface:OrderImport
Maps to
Order.inventoryMode
.- Specified by:
setInventoryMode
in interfaceOrderImport
- Parameters:
inventoryMode
- value to be set
-
setTaxRoundingMode
Description copied from interface:OrderImport
Maps to
Order.taxRoundingMode
.- Specified by:
setTaxRoundingMode
in interfaceOrderImport
- Parameters:
taxRoundingMode
- value to be set
-
setTaxCalculationMode
Description copied from interface:OrderImport
Maps to
Order.taxCalculationMode
.- Specified by:
setTaxCalculationMode
in interfaceOrderImport
- Parameters:
taxCalculationMode
- value to be set
-
setOrigin
Description copied from interface:OrderImport
Maps to
Order.origin
.- Specified by:
setOrigin
in interfaceOrderImport
- Parameters:
origin
- value to be set
-
setItemShippingAddresses
Description copied from interface:OrderImport
Maps to
Order.itemShippingAddresses
.- Specified by:
setItemShippingAddresses
in interfaceOrderImport
- Parameters:
itemShippingAddresses
- values to be set
-
setItemShippingAddresses
Description copied from interface:OrderImport
Maps to
Order.itemShippingAddresses
.- Specified by:
setItemShippingAddresses
in interfaceOrderImport
- Parameters:
itemShippingAddresses
- values to be set
-
setStore
Description copied from interface:OrderImport
Reference to the Store in which the Order is associated. If referenced Store does not exist, the
state
of the ImportOperation will be set tounresolved
until the necessary Store exists.- Specified by:
setStore
in interfaceOrderImport
- Parameters:
store
- value to be set
-
setState
Description copied from interface:OrderImport
Reference to a State in a custom workflow.
- Specified by:
setState
in interfaceOrderImport
- Parameters:
state
- value to be set
-
equals
-
hashCode
-