Interface CartUpdateAction
- All Superinterfaces:
ResourceUpdateAction<CartUpdateAction>
- All Known Subinterfaces:
CartAddCustomLineItemAction
,CartAddCustomShippingMethodAction
,CartAddDiscountCodeAction
,CartAddItemShippingAddressAction
,CartAddLineItemAction
,CartAddPaymentAction
,CartAddShippingMethodAction
,CartAddShoppingListAction
,CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
,CartApplyDeltaToLineItemShippingDetailsTargetsAction
,CartChangeCustomLineItemMoneyAction
,CartChangeCustomLineItemPriceModeAction
,CartChangeCustomLineItemQuantityAction
,CartChangeLineItemQuantityAction
,CartChangeLineItemsOrderAction
,CartChangeTaxCalculationModeAction
,CartChangeTaxModeAction
,CartChangeTaxRoundingModeAction
,CartFreezeCartAction
,CartRecalculateAction
,CartRemoveCustomLineItemAction
,CartRemoveDiscountCodeAction
,CartRemoveItemShippingAddressAction
,CartRemoveLineItemAction
,CartRemovePaymentAction
,CartRemoveShippingMethodAction
,CartSetAnonymousIdAction
,CartSetBillingAddressAction
,CartSetBillingAddressCustomFieldAction
,CartSetBillingAddressCustomTypeAction
,CartSetBusinessUnitAction
,CartSetCartTotalTaxAction
,CartSetCountryAction
,CartSetCustomerEmailAction
,CartSetCustomerGroupAction
,CartSetCustomerIdAction
,CartSetCustomFieldAction
,CartSetCustomLineItemCustomFieldAction
,CartSetCustomLineItemCustomTypeAction
,CartSetCustomLineItemShippingDetailsAction
,CartSetCustomLineItemTaxAmountAction
,CartSetCustomLineItemTaxRateAction
,CartSetCustomShippingMethodAction
,CartSetCustomTypeAction
,CartSetDeleteDaysAfterLastModificationAction
,CartSetDirectDiscountsAction
,CartSetItemShippingAddressCustomFieldAction
,CartSetItemShippingAddressCustomTypeAction
,CartSetKeyAction
,CartSetLineItemCustomFieldAction
,CartSetLineItemCustomTypeAction
,CartSetLineItemDistributionChannelAction
,CartSetLineItemInventoryModeAction
,CartSetLineItemPriceAction
,CartSetLineItemShippingDetailsAction
,CartSetLineItemSupplyChannelAction
,CartSetLineItemTaxAmountAction
,CartSetLineItemTaxRateAction
,CartSetLineItemTotalPriceAction
,CartSetLocaleAction
,CartSetShippingAddressAction
,CartSetShippingAddressCustomFieldAction
,CartSetShippingAddressCustomTypeAction
,CartSetShippingCustomFieldAction
,CartSetShippingCustomTypeAction
,CartSetShippingMethodAction
,CartSetShippingMethodTaxAmountAction
,CartSetShippingMethodTaxRateAction
,CartSetShippingRateInputAction
,CartUnfreezeCartAction
,CartUpdateItemShippingAddressAction
CartUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
CartUpdateAction cartUpdateAction = CartUpdateAction.addCustomLineItemBuilder()
money(moneyBuilder -> moneyBuilder)
name(nameBuilder -> nameBuilder)
slug("{slug}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for addCustomLineItem subtypebuilder for addCustomShippingMethod subtypebuilder for addDiscountCode subtypebuilder for addItemShippingAddress subtypestatic CartAddLineItemActionBuilder
builder for addLineItem subtypestatic CartAddPaymentActionBuilder
builder for addPayment subtypebuilder for addShippingMethod subtypebuilder for addShoppingList subtypebuilder for applyDeltaToCustomLineItemShippingDetailsTargets subtypebuilder for applyDeltaToLineItemShippingDetailsTargets subtypebuilder for changeCustomLineItemMoney subtypebuilder for changeCustomLineItemPriceMode subtypebuilder for changeCustomLineItemQuantity subtypebuilder for changeLineItemQuantity subtypebuilder for changeLineItemsOrder subtypebuilder for changeTaxCalculationMode subtypebuilder for changeTaxMode subtypebuilder for changeTaxRoundingMode subtypestatic CartUpdateAction
deepCopy
(CartUpdateAction template) factory method to create a deep copy of CartUpdateActionstatic CartFreezeCartActionBuilder
builder for freezeCart subtype@NotNull String
static CartRecalculateActionBuilder
builder for recalculate subtypebuilder for removeCustomLineItem subtypebuilder for removeDiscountCode subtypebuilder for removeItemShippingAddress subtypebuilder for removeLineItem subtypebuilder for removePayment subtypebuilder for removeShippingMethod subtypebuilder for setAnonymousId subtypebuilder for setBillingAddress subtypebuilder for setBillingAddressCustomField subtypebuilder for setBillingAddressCustomType subtypebuilder for setBusinessUnit subtypebuilder for setCartTotalTax subtypestatic CartSetCountryActionBuilder
builder for setCountry subtypebuilder for setCustomerEmail subtypebuilder for setCustomerGroup subtypebuilder for setCustomerId subtypebuilder for setCustomField subtypebuilder for setCustomLineItemCustomField subtypebuilder for setCustomLineItemCustomType subtypebuilder for setCustomLineItemShippingDetails subtypebuilder for setCustomLineItemTaxAmount subtypebuilder for setCustomLineItemTaxRate subtypebuilder for setCustomShippingMethod subtypebuilder for setCustomType subtypebuilder for setDeleteDaysAfterLastModification subtypebuilder for setDirectDiscounts subtypebuilder for setItemShippingAddressCustomField subtypebuilder for setItemShippingAddressCustomType subtypestatic CartSetKeyActionBuilder
builder for setKey subtypebuilder for setLineItemCustomField subtypebuilder for setLineItemCustomType subtypebuilder for setLineItemDistributionChannel subtypebuilder for setLineItemInventoryMode subtypebuilder for setLineItemPrice subtypebuilder for setLineItemShippingDetails subtypebuilder for setLineItemSupplyChannel subtypebuilder for setLineItemTaxAmount subtypebuilder for setLineItemTaxRate subtypebuilder for setLineItemTotalPrice subtypestatic CartSetLocaleActionBuilder
builder for setLocale subtypebuilder for setShippingAddress subtypebuilder for setShippingAddressCustomField subtypebuilder for setShippingAddressCustomType subtypebuilder for setShippingCustomField subtypebuilder for setShippingCustomType subtypebuilder for setShippingMethod subtypebuilder for setShippingMethodTaxAmount subtypebuilder for setShippingMethodTaxRate subtypebuilder for setShippingRateInput subtypestatic com.fasterxml.jackson.core.type.TypeReference<CartUpdateAction>
gives a TypeReference for usage with Jackson DataBindbuilder for unfreezeCart subtypebuilder for updateItemShippingAddress subtypedefault <T> T
withCartUpdateAction
(Function<CartUpdateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of CartUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
addCustomLineItemBuilder
builder for addCustomLineItem subtype- Returns:
- builder
-
addCustomShippingMethodBuilder
builder for addCustomShippingMethod subtype- Returns:
- builder
-
addDiscountCodeBuilder
builder for addDiscountCode subtype- Returns:
- builder
-
addItemShippingAddressBuilder
builder for addItemShippingAddress subtype- Returns:
- builder
-
addLineItemBuilder
builder for addLineItem subtype- Returns:
- builder
-
addPaymentBuilder
builder for addPayment subtype- Returns:
- builder
-
addShippingMethodBuilder
builder for addShippingMethod subtype- Returns:
- builder
-
addShoppingListBuilder
builder for addShoppingList subtype- Returns:
- builder
-
applyDeltaToCustomLineItemShippingDetailsTargetsBuilder
static CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder applyDeltaToCustomLineItemShippingDetailsTargetsBuilder()builder for applyDeltaToCustomLineItemShippingDetailsTargets subtype- Returns:
- builder
-
applyDeltaToLineItemShippingDetailsTargetsBuilder
static CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder applyDeltaToLineItemShippingDetailsTargetsBuilder()builder for applyDeltaToLineItemShippingDetailsTargets subtype- Returns:
- builder
-
changeCustomLineItemMoneyBuilder
builder for changeCustomLineItemMoney subtype- Returns:
- builder
-
changeCustomLineItemPriceModeBuilder
builder for changeCustomLineItemPriceMode subtype- Returns:
- builder
-
changeCustomLineItemQuantityBuilder
builder for changeCustomLineItemQuantity subtype- Returns:
- builder
-
changeLineItemQuantityBuilder
builder for changeLineItemQuantity subtype- Returns:
- builder
-
changeLineItemsOrderBuilder
builder for changeLineItemsOrder subtype- Returns:
- builder
-
changeTaxCalculationModeBuilder
builder for changeTaxCalculationMode subtype- Returns:
- builder
-
changeTaxModeBuilder
builder for changeTaxMode subtype- Returns:
- builder
-
changeTaxRoundingModeBuilder
builder for changeTaxRoundingMode subtype- Returns:
- builder
-
freezeCartBuilder
builder for freezeCart subtype- Returns:
- builder
-
recalculateBuilder
builder for recalculate subtype- Returns:
- builder
-
removeCustomLineItemBuilder
builder for removeCustomLineItem subtype- Returns:
- builder
-
removeDiscountCodeBuilder
builder for removeDiscountCode subtype- Returns:
- builder
-
removeItemShippingAddressBuilder
builder for removeItemShippingAddress subtype- Returns:
- builder
-
removeLineItemBuilder
builder for removeLineItem subtype- Returns:
- builder
-
removePaymentBuilder
builder for removePayment subtype- Returns:
- builder
-
removeShippingMethodBuilder
builder for removeShippingMethod subtype- Returns:
- builder
-
setAnonymousIdBuilder
builder for setAnonymousId subtype- Returns:
- builder
-
setBillingAddressBuilder
builder for setBillingAddress subtype- Returns:
- builder
-
setBillingAddressCustomFieldBuilder
builder for setBillingAddressCustomField subtype- Returns:
- builder
-
setBillingAddressCustomTypeBuilder
builder for setBillingAddressCustomType subtype- Returns:
- builder
-
setBusinessUnitBuilder
builder for setBusinessUnit subtype- Returns:
- builder
-
setCartTotalTaxBuilder
builder for setCartTotalTax subtype- Returns:
- builder
-
setCountryBuilder
builder for setCountry subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomLineItemCustomFieldBuilder
builder for setCustomLineItemCustomField subtype- Returns:
- builder
-
setCustomLineItemCustomTypeBuilder
builder for setCustomLineItemCustomType subtype- Returns:
- builder
-
setCustomLineItemShippingDetailsBuilder
builder for setCustomLineItemShippingDetails subtype- Returns:
- builder
-
setCustomLineItemTaxAmountBuilder
builder for setCustomLineItemTaxAmount subtype- Returns:
- builder
-
setCustomLineItemTaxRateBuilder
builder for setCustomLineItemTaxRate subtype- Returns:
- builder
-
setCustomShippingMethodBuilder
builder for setCustomShippingMethod subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setCustomerEmailBuilder
builder for setCustomerEmail subtype- Returns:
- builder
-
setCustomerGroupBuilder
builder for setCustomerGroup subtype- Returns:
- builder
-
setCustomerIdBuilder
builder for setCustomerId subtype- Returns:
- builder
-
setDeleteDaysAfterLastModificationBuilder
static CartSetDeleteDaysAfterLastModificationActionBuilder setDeleteDaysAfterLastModificationBuilder()builder for setDeleteDaysAfterLastModification subtype- Returns:
- builder
-
setDirectDiscountsBuilder
builder for setDirectDiscounts subtype- Returns:
- builder
-
setItemShippingAddressCustomFieldBuilder
static CartSetItemShippingAddressCustomFieldActionBuilder setItemShippingAddressCustomFieldBuilder()builder for setItemShippingAddressCustomField subtype- Returns:
- builder
-
setItemShippingAddressCustomTypeBuilder
builder for setItemShippingAddressCustomType subtype- Returns:
- builder
-
setKeyBuilder
builder for setKey subtype- Returns:
- builder
-
setLineItemCustomFieldBuilder
builder for setLineItemCustomField subtype- Returns:
- builder
-
setLineItemCustomTypeBuilder
builder for setLineItemCustomType subtype- Returns:
- builder
-
setLineItemDistributionChannelBuilder
builder for setLineItemDistributionChannel subtype- Returns:
- builder
-
setLineItemInventoryModeBuilder
builder for setLineItemInventoryMode subtype- Returns:
- builder
-
setLineItemPriceBuilder
builder for setLineItemPrice subtype- Returns:
- builder
-
setLineItemShippingDetailsBuilder
builder for setLineItemShippingDetails subtype- Returns:
- builder
-
setLineItemSupplyChannelBuilder
builder for setLineItemSupplyChannel subtype- Returns:
- builder
-
setLineItemTaxAmountBuilder
builder for setLineItemTaxAmount subtype- Returns:
- builder
-
setLineItemTaxRateBuilder
builder for setLineItemTaxRate subtype- Returns:
- builder
-
setLineItemTotalPriceBuilder
builder for setLineItemTotalPrice subtype- Returns:
- builder
-
setLocaleBuilder
builder for setLocale subtype- Returns:
- builder
-
setShippingAddressBuilder
builder for setShippingAddress subtype- Returns:
- builder
-
setShippingAddressCustomFieldBuilder
builder for setShippingAddressCustomField subtype- Returns:
- builder
-
setShippingAddressCustomTypeBuilder
builder for setShippingAddressCustomType subtype- Returns:
- builder
-
setShippingCustomFieldBuilder
builder for setShippingCustomField subtype- Returns:
- builder
-
setShippingCustomTypeBuilder
builder for setShippingCustomType subtype- Returns:
- builder
-
setShippingMethodBuilder
builder for setShippingMethod subtype- Returns:
- builder
-
setShippingMethodTaxAmountBuilder
builder for setShippingMethodTaxAmount subtype- Returns:
- builder
-
setShippingMethodTaxRateBuilder
builder for setShippingMethodTaxRate subtype- Returns:
- builder
-
setShippingRateInputBuilder
builder for setShippingRateInput subtype- Returns:
- builder
-
unfreezeCartBuilder
builder for unfreezeCart subtype- Returns:
- builder
-
updateItemShippingAddressBuilder
builder for updateItemShippingAddress subtype- Returns:
- builder
-
withCartUpdateAction
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
-