Interface StagedOrderAddLineItemAction
- All Superinterfaces:
CustomizableDraft<StagedOrderAddLineItemAction>
,ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderAddLineItemActionImpl
Example to create an instance using the builder pattern
StagedOrderAddLineItemAction stagedOrderAddLineItemAction = StagedOrderAddLineItemAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderAddLineItemAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderAddLineItemActionbuilder
(StagedOrderAddLineItemAction template) create builder for StagedOrderAddLineItemAction instancestatic StagedOrderAddLineItemAction
deepCopy
(StagedOrderAddLineItemAction template) factory method to create a deep copy of StagedOrderAddLineItemAction@Valid CustomFieldsDraft
The representation used when creating or updating a customizable data type with Custom Fields.@Valid ChannelResourceIdentifier
ResourceIdentifier to a Channel.@Valid Money
Draft type that stores amounts only in cent precision for the specified currency.@Valid ExternalTaxRateDraft
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.@Valid ExternalLineItemTotalPrice
getKey()
User-defined unique identifier of the LineItem.@Valid ItemShippingDetailsDraft
For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.getSku()
@Valid ChannelResourceIdentifier
ResourceIdentifier to a Channel.static StagedOrderAddLineItemAction
of()
factory methodstatic StagedOrderAddLineItemAction
of
(StagedOrderAddLineItemAction template) factory method to create a shallow copy StagedOrderAddLineItemActionvoid
setAddedAt
(ZonedDateTime addedAt) set addedAtvoid
setCustom
(CustomFieldsDraft custom) The representation used when creating or updating a customizable data type with Custom Fields.void
setDistributionChannel
(ChannelResourceIdentifier distributionChannel) ResourceIdentifier to a Channel.void
setExternalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.void
setExternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.void
setExternalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) set externalTotalPricevoid
User-defined unique identifier of the LineItem.void
setProductId
(String productId) set productIdvoid
setQuantity
(Long quantity) set quantityvoid
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.void
set skuvoid
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) ResourceIdentifier to a Channel.void
setVariantId
(Long variantId) set variantIdstatic com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddLineItemAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
ADD_LINE_ITEM
discriminator value for StagedOrderAddLineItemAction- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the LineItem.
- Returns:
- key
-
getCustom
The representation used when creating or updating a customizable data type with Custom Fields.
- Specified by:
getCustom
in interfaceCustomizableDraft<StagedOrderAddLineItemAction>
- Returns:
- custom
-
getDistributionChannel
ResourceIdentifier to a Channel.
- Returns:
- distributionChannel
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
getProductId
- Returns:
- productId
-
getVariantId
- Returns:
- variantId
-
getSku
- Returns:
- sku
-
getQuantity
- Returns:
- quantity
-
getAddedAt
- Returns:
- addedAt
-
getSupplyChannel
ResourceIdentifier to a Channel.
- Returns:
- supplyChannel
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
getExternalTotalPrice
- Returns:
- externalTotalPrice
-
getShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetails
-
setKey
User-defined unique identifier of the LineItem.
- Parameters:
key
- value to be set
-
setCustom
The representation used when creating or updating a customizable data type with Custom Fields.
- Specified by:
setCustom
in interfaceCustomizableDraft<StagedOrderAddLineItemAction>
- Parameters:
custom
- value to be set
-
setDistributionChannel
ResourceIdentifier to a Channel.
- Parameters:
distributionChannel
- value to be set
-
setExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- value to be set
-
setProductId
set productId- Parameters:
productId
- value to be set
-
setVariantId
set variantId- Parameters:
variantId
- value to be set
-
setSku
set sku- Parameters:
sku
- value to be set
-
setQuantity
set quantity- Parameters:
quantity
- value to be set
-
setAddedAt
set addedAt- Parameters:
addedAt
- value to be set
-
setSupplyChannel
ResourceIdentifier to a Channel.
- Parameters:
supplyChannel
- value to be set
-
setExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set
-
setExternalTotalPrice
set externalTotalPrice- Parameters:
externalTotalPrice
- value to be set
-
setShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetails
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderAddLineItemAction
-
of
factory method to create a shallow copy StagedOrderAddLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderAddLineItemAction deepCopy(@Nullable StagedOrderAddLineItemAction template) factory method to create a deep copy of StagedOrderAddLineItemAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddLineItemAction- Returns:
- builder
-
builder
create builder for StagedOrderAddLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddLineItemAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-