Class StagedOrderAddCustomLineItemActionImpl
- All Implemented Interfaces:
CustomizableDraft<StagedOrderAddCustomLineItemAction>
,StagedOrderAddCustomLineItemAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,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
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddCustomLineItemAction
ADD_CUSTOM_LINE_ITEM
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The representation used when creating or updating a customizable data type with Custom Fields.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.getKey()
User-defined unique identifier of the Custom Line Item.getMoney()
Draft type that stores amounts only in cent precision for the specified currency.getName()
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.IfStandard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. IfExternal
, Cart Discounts are not considered on the Custom Line Item.getSlug()
ResourceIdentifier to a TaxCategory.int
hashCode()
void
setCustom
(CustomFieldsDraft custom) The representation used when creating or updating a customizable data type with Custom Fields.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
User-defined unique identifier of the Custom Line Item.void
Draft type that stores amounts only in cent precision for the specified currency.void
setName
(LocalizedString name) JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.void
setPriceMode
(CustomLineItemPriceMode priceMode) IfStandard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. IfExternal
, Cart Discounts are not considered on the Custom Line Item.void
setQuantity
(Long quantity) set quantityvoid
set slugvoid
setTaxCategory
(TaxCategoryResourceIdentifier taxCategory) ResourceIdentifier to a TaxCategory.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddCustomLineItemAction
withStagedOrderAddCustomLineItemAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderAddCustomLineItemActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getMoney
Draft type that stores amounts only in cent precision for the specified currency.
- Specified by:
getMoney
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- money
-
getName
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Specified by:
getName
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- name
-
getKey
User-defined unique identifier of the Custom Line Item.
- Specified by:
getKey
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- key
-
getQuantity
- Specified by:
getQuantity
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- quantity
-
getSlug
- Specified by:
getSlug
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- slug
-
getTaxCategory
ResourceIdentifier to a TaxCategory.
- Specified by:
getTaxCategory
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- taxCategory
-
getCustom
The representation used when creating or updating a customizable data type with Custom Fields.
- Specified by:
getCustom
in interfaceCustomizableDraft<StagedOrderAddCustomLineItemAction>
- Specified by:
getCustom
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- custom
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Specified by:
getExternalTaxRate
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- externalTaxRate
-
getPriceMode
- If
Standard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. - If
External
, Cart Discounts are not considered on the Custom Line Item.
- Specified by:
getPriceMode
in interfaceStagedOrderAddCustomLineItemAction
- Returns:
- priceMode
- If
-
setMoney
Description copied from interface:StagedOrderAddCustomLineItemAction
Draft type that stores amounts only in cent precision for the specified currency.
- Specified by:
setMoney
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
money
- value to be set
-
setName
Description copied from interface:StagedOrderAddCustomLineItemAction
JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.
- Specified by:
setName
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
name
- value to be set
-
setKey
Description copied from interface:StagedOrderAddCustomLineItemAction
User-defined unique identifier of the Custom Line Item.
- Specified by:
setKey
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
key
- value to be set
-
setQuantity
Description copied from interface:StagedOrderAddCustomLineItemAction
set quantity- Specified by:
setQuantity
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
quantity
- value to be set
-
setSlug
Description copied from interface:StagedOrderAddCustomLineItemAction
set slug- Specified by:
setSlug
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
slug
- value to be set
-
setTaxCategory
Description copied from interface:StagedOrderAddCustomLineItemAction
ResourceIdentifier to a TaxCategory.
- Specified by:
setTaxCategory
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
taxCategory
- value to be set
-
setCustom
Description copied from interface:StagedOrderAddCustomLineItemAction
The representation used when creating or updating a customizable data type with Custom Fields.
- Specified by:
setCustom
in interfaceCustomizableDraft<StagedOrderAddCustomLineItemAction>
- Specified by:
setCustom
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
custom
- value to be set
-
setExternalTaxRate
Description copied from interface:StagedOrderAddCustomLineItemAction
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Specified by:
setExternalTaxRate
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
externalTaxRate
- value to be set
-
setPriceMode
Description copied from interface:StagedOrderAddCustomLineItemAction
- If
Standard
, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item. - If
External
, Cart Discounts are not considered on the Custom Line Item.
- Specified by:
setPriceMode
in interfaceStagedOrderAddCustomLineItemAction
- Parameters:
priceMode
- value to be set
- If
-
equals
-
hashCode
-