Class OrderFromCartDraftImpl
- All Implemented Interfaces:
OrderFromCartDraft
,io.vrap.rmf.base.client.Draft<OrderFromCartDraft>
,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
getCart()
ResourceIdentifier to the Cart from which the Order is created.Custom Fields for the Order.getId()
Deprecated.User-defined identifier for the Order that is unique across a Project.Current status for the Order.Payment status for the Order.User-defined identifier for a purchase Order.Shipment status for the Order.getState()
State for the Order in a custom workflow.version
of the Cart from which the Order is created.int
hashCode()
void
ResourceIdentifier to the Cart from which the Order is created.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Order.void
Deprecated.void
setOrderNumber
(String orderNumber) User-defined identifier for the Order that is unique across a Project.void
setOrderState
(OrderState orderState) Current status for the Order.void
setPaymentState
(PaymentState paymentState) Payment status for the Order.void
setPurchaseOrderNumber
(String purchaseOrderNumber) User-defined identifier for a purchase Order.void
setShipmentState
(ShipmentState shipmentState) Shipment status for the Order.void
setState
(StateResourceIdentifier state) State for the Order in a custom workflow.void
setVersion
(Long version) version
of the Cart from which the Order is created.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.api.models.order.OrderFromCartDraft
withOrderFromCartDraft
-
Constructor Details
-
OrderFromCartDraftImpl
public OrderFromCartDraftImpl()create empty instance
-
-
Method Details
-
getId
Deprecated.id
of the Cart used to create the Order.- Specified by:
getId
in interfaceOrderFromCartDraft
- Returns:
- id
-
getCart
ResourceIdentifier to the Cart from which the Order is created.
This field is required, but is marked as optional for backwards compatibility reasons.
- Specified by:
getCart
in interfaceOrderFromCartDraft
- Returns:
- cart
-
getVersion
version
of the Cart from which the Order is created.- Specified by:
getVersion
in interfaceOrderFromCartDraft
- Returns:
- version
-
getOrderNumber
User-defined identifier for the Order that is unique across a Project. Once set, the value cannot be changed.
- Specified by:
getOrderNumber
in interfaceOrderFromCartDraft
- Returns:
- orderNumber
-
getPurchaseOrderNumber
User-defined identifier for 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.
- Specified by:
getPurchaseOrderNumber
in interfaceOrderFromCartDraft
- Returns:
- purchaseOrderNumber
-
getPaymentState
Payment status for the Order.
- Specified by:
getPaymentState
in interfaceOrderFromCartDraft
- Returns:
- paymentState
-
getShipmentState
Shipment status for the Order.
- Specified by:
getShipmentState
in interfaceOrderFromCartDraft
- Returns:
- shipmentState
-
getOrderState
Current status for the Order.
- Specified by:
getOrderState
in interfaceOrderFromCartDraft
- Returns:
- orderState
-
getState
State for the Order in a custom workflow.
- Specified by:
getState
in interfaceOrderFromCartDraft
- Returns:
- state
-
getCustom
Custom Fields for the Order. The Custom Fields' type must match the Custom Fields' type in the referenced Cart.
- If empty, the Custom Fields on the referenced Cart are added to the Order automatically.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced Cart and added to the Order.
- Specified by:
getCustom
in interfaceOrderFromCartDraft
- Returns:
- custom
-
setId
Deprecated.Description copied from interface:OrderFromCartDraft
id
of the Cart used to create the Order.- Specified by:
setId
in interfaceOrderFromCartDraft
- Parameters:
id
- value to be set
-
setCart
Description copied from interface:OrderFromCartDraft
ResourceIdentifier to the Cart from which the Order is created.
This field is required, but is marked as optional for backwards compatibility reasons.
- Specified by:
setCart
in interfaceOrderFromCartDraft
- Parameters:
cart
- value to be set
-
setVersion
Description copied from interface:OrderFromCartDraft
version
of the Cart from which the Order is created.- Specified by:
setVersion
in interfaceOrderFromCartDraft
- Parameters:
version
- value to be set
-
setOrderNumber
Description copied from interface:OrderFromCartDraft
User-defined identifier for the Order that is unique across a Project. Once set, the value cannot be changed.
- Specified by:
setOrderNumber
in interfaceOrderFromCartDraft
- Parameters:
orderNumber
- value to be set
-
setPurchaseOrderNumber
Description copied from interface:OrderFromCartDraft
User-defined identifier for 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.
- Specified by:
setPurchaseOrderNumber
in interfaceOrderFromCartDraft
- Parameters:
purchaseOrderNumber
- value to be set
-
setPaymentState
Description copied from interface:OrderFromCartDraft
Payment status for the Order.
- Specified by:
setPaymentState
in interfaceOrderFromCartDraft
- Parameters:
paymentState
- value to be set
-
setShipmentState
Description copied from interface:OrderFromCartDraft
Shipment status for the Order.
- Specified by:
setShipmentState
in interfaceOrderFromCartDraft
- Parameters:
shipmentState
- value to be set
-
setOrderState
Description copied from interface:OrderFromCartDraft
Current status for the Order.
- Specified by:
setOrderState
in interfaceOrderFromCartDraft
- Parameters:
orderState
- value to be set
-
setState
Description copied from interface:OrderFromCartDraft
State for the Order in a custom workflow.
- Specified by:
setState
in interfaceOrderFromCartDraft
- Parameters:
state
- value to be set
-
setCustom
Description copied from interface:OrderFromCartDraft
Custom Fields for the Order. The Custom Fields' type must match the Custom Fields' type in the referenced Cart.
- If empty, the Custom Fields on the referenced Cart are added to the Order automatically.
- If specified, the Custom Fields are merged with the Custom Fields on the referenced Cart and added to the Order.
- Specified by:
setCustom
in interfaceOrderFromCartDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-