Class LineItemImportDraftImpl
- All Implemented Interfaces:
LineItemImportDraft
,io.vrap.rmf.base.client.Draft<LineItemImportDraft>
,io.vrap.rmf.base.client.ModelBase
Represents an individual Line Item in an Order. A line item is a snapshot of a product at the time it was added to the order.
You cannot create an Order that includes line item operations that do not exist in the Project or have been deleted. Products and Product Variants referenced by a line item must already exist in the Project.
-
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
Custom Fields for this Line Item.Maps toLineItem.distributionChannel
.getName()
Maps toLineItem.name
.getPrice()
Maps toLineItem.price
.Maps toLineItem.productId
.Maps toLineItem.quantity
.Maps to LineItem.shippingDetails.getState()
Maps toLineItem.supplyChannel
.Maps toLineItem.taxRate
.Maps toProductVariantImportDraft
.int
hashCode()
void
Custom Fields for this Line Item.void
setDistributionChannel
(ChannelKeyReference distributionChannel) Maps toLineItem.distributionChannel
.void
setName
(LocalizedString name) Maps toLineItem.name
.void
setPrice
(LineItemPrice price) Maps toLineItem.price
.void
setProduct
(ProductKeyReference product) Maps toLineItem.productId
.void
setQuantity
(Double quantity) Maps toLineItem.quantity
.void
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) Maps to LineItem.shippingDetails.void
set statevoid
set statevoid
setSupplyChannel
(ChannelKeyReference supplyChannel) Maps toLineItem.supplyChannel
.void
setTaxRate
(TaxRate taxRate) Maps toLineItem.taxRate
.void
Maps toProductVariantImportDraft
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.orders.LineItemImportDraft
withLineItemImportDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
LineItemImportDraftImpl
public LineItemImportDraftImpl()create empty instance
-
-
Method Details
-
getProduct
Maps to
LineItem.productId
.- Specified by:
getProduct
in interfaceLineItemImportDraft
- Returns:
- product
-
getName
Maps to
LineItem.name
.- Specified by:
getName
in interfaceLineItemImportDraft
- Returns:
- name
-
getVariant
Maps to
ProductVariantImportDraft
.- Specified by:
getVariant
in interfaceLineItemImportDraft
- Returns:
- variant
-
getPrice
Maps to
LineItem.price
.- Specified by:
getPrice
in interfaceLineItemImportDraft
- Returns:
- price
-
getQuantity
Maps to
LineItem.quantity
.- Specified by:
getQuantity
in interfaceLineItemImportDraft
- Returns:
- quantity
-
getState
- Specified by:
getState
in interfaceLineItemImportDraft
- Returns:
- state
-
getSupplyChannel
Maps to
LineItem.supplyChannel
. The Reference to the Supply Channel with which the LineItem is associated. If referenced Supply Channel does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Supply Channel is created.- Specified by:
getSupplyChannel
in interfaceLineItemImportDraft
- Returns:
- supplyChannel
-
getDistributionChannel
Maps to
LineItem.distributionChannel
. The Reference to the Distribution Channel with which the LineItem is associated. If referenced CustomerGroup does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Distribution Channel is created.- Specified by:
getDistributionChannel
in interfaceLineItemImportDraft
- Returns:
- distributionChannel
-
getTaxRate
Maps to
LineItem.taxRate
.- Specified by:
getTaxRate
in interfaceLineItemImportDraft
- Returns:
- taxRate
-
getShippingDetails
Maps to LineItem.shippingDetails.
- Specified by:
getShippingDetails
in interfaceLineItemImportDraft
- Returns:
- shippingDetails
-
getCustom
Custom Fields for this Line Item.
- Specified by:
getCustom
in interfaceLineItemImportDraft
- Returns:
- custom
-
setProduct
Description copied from interface:LineItemImportDraft
Maps to
LineItem.productId
.- Specified by:
setProduct
in interfaceLineItemImportDraft
- Parameters:
product
- value to be set
-
setName
Description copied from interface:LineItemImportDraft
Maps to
LineItem.name
.- Specified by:
setName
in interfaceLineItemImportDraft
- Parameters:
name
- value to be set
-
setVariant
Description copied from interface:LineItemImportDraft
Maps to
ProductVariantImportDraft
.- Specified by:
setVariant
in interfaceLineItemImportDraft
- Parameters:
variant
- value to be set
-
setPrice
Description copied from interface:LineItemImportDraft
Maps to
LineItem.price
.- Specified by:
setPrice
in interfaceLineItemImportDraft
- Parameters:
price
- value to be set
-
setQuantity
Description copied from interface:LineItemImportDraft
Maps to
LineItem.quantity
.- Specified by:
setQuantity
in interfaceLineItemImportDraft
- Parameters:
quantity
- value to be set
-
setState
Description copied from interface:LineItemImportDraft
set state- Specified by:
setState
in interfaceLineItemImportDraft
- Parameters:
state
- values to be set
-
setState
Description copied from interface:LineItemImportDraft
set state- Specified by:
setState
in interfaceLineItemImportDraft
- Parameters:
state
- values to be set
-
setSupplyChannel
Description copied from interface:LineItemImportDraft
Maps to
LineItem.supplyChannel
. The Reference to the Supply Channel with which the LineItem is associated. If referenced Supply Channel does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Supply Channel is created.- Specified by:
setSupplyChannel
in interfaceLineItemImportDraft
- Parameters:
supplyChannel
- value to be set
-
setDistributionChannel
Description copied from interface:LineItemImportDraft
Maps to
LineItem.distributionChannel
. The Reference to the Distribution Channel with which the LineItem is associated. If referenced CustomerGroup does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Distribution Channel is created.- Specified by:
setDistributionChannel
in interfaceLineItemImportDraft
- Parameters:
distributionChannel
- value to be set
-
setTaxRate
Description copied from interface:LineItemImportDraft
Maps to
LineItem.taxRate
.- Specified by:
setTaxRate
in interfaceLineItemImportDraft
- Parameters:
taxRate
- value to be set
-
setShippingDetails
Description copied from interface:LineItemImportDraft
Maps to LineItem.shippingDetails.
- Specified by:
setShippingDetails
in interfaceLineItemImportDraft
- Parameters:
shippingDetails
- value to be set
-
setCustom
Description copied from interface:LineItemImportDraft
Custom Fields for this Line Item.
- Specified by:
setCustom
in interfaceLineItemImportDraft
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-