Package com.commercetools.api.models.me
Interface MyCartUpdateAction
- All Superinterfaces:
ResourceUpdateAction<MyCartUpdateAction>
- All Known Subinterfaces:
MyCartAddDiscountCodeAction
,MyCartAddItemShippingAddressAction
,MyCartAddLineItemAction
,MyCartAddPaymentAction
,MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
,MyCartChangeLineItemQuantityAction
,MyCartChangeLineItemsOrderAction
,MyCartChangeTaxModeAction
,MyCartRecalculateAction
,MyCartRemoveDiscountCodeAction
,MyCartRemoveItemShippingAddressAction
,MyCartRemoveLineItemAction
,MyCartRemovePaymentAction
,MyCartSetBillingAddressAction
,MyCartSetBusinessUnitAction
,MyCartSetCountryAction
,MyCartSetCustomerEmailAction
,MyCartSetCustomFieldAction
,MyCartSetCustomTypeAction
,MyCartSetDeleteDaysAfterLastModificationAction
,MyCartSetLineItemCustomFieldAction
,MyCartSetLineItemCustomTypeAction
,MyCartSetLineItemDistributionChannelAction
,MyCartSetLineItemShippingDetailsAction
,MyCartSetLineItemSupplyChannelAction
,MyCartSetLocaleAction
,MyCartSetShippingAddressAction
,MyCartSetShippingMethodAction
,MyCartUpdateItemShippingAddressAction
MyCartUpdateAction
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
MyCartUpdateAction myCartUpdateAction = MyCartUpdateAction.addDiscountCodeBuilder()
code("{code}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for addDiscountCode subtypebuilder for addItemShippingAddress subtypebuilder for addLineItem subtypebuilder for addPayment subtypebuilder for applyDeltaToLineItemShippingDetailsTargets subtypebuilder for changeLineItemQuantity subtypebuilder for changeLineItemsOrder subtypebuilder for changeTaxMode subtypestatic MyCartUpdateAction
deepCopy
(MyCartUpdateAction template) factory method to create a deep copy of MyCartUpdateAction@NotNull String
builder for recalculate subtypebuilder for removeDiscountCode subtypebuilder for removeItemShippingAddress subtypebuilder for removeLineItem subtypebuilder for removePayment subtypebuilder for setBillingAddress subtypebuilder for setBusinessUnit subtypebuilder for setCountry subtypebuilder for setCustomerEmail subtypebuilder for setCustomField subtypebuilder for setCustomType subtypebuilder for setDeleteDaysAfterLastModification subtypebuilder for setLineItemCustomField subtypebuilder for setLineItemCustomType subtypebuilder for setLineItemDistributionChannel subtypebuilder for setLineItemShippingDetails subtypebuilder for setLineItemSupplyChannel subtypestatic MyCartSetLocaleActionBuilder
builder for setLocale subtypebuilder for setShippingAddress subtypebuilder for setShippingMethod subtypestatic com.fasterxml.jackson.core.type.TypeReference<MyCartUpdateAction>
gives a TypeReference for usage with Jackson DataBindbuilder for updateItemShippingAddress subtypedefault <T> T
withMyCartUpdateAction
(Function<MyCartUpdateAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- Returns:
- action
-
deepCopy
factory method to create a deep copy of MyCartUpdateAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
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
-
applyDeltaToLineItemShippingDetailsTargetsBuilder
static MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder applyDeltaToLineItemShippingDetailsTargetsBuilder()builder for applyDeltaToLineItemShippingDetailsTargets subtype- Returns:
- builder
-
changeLineItemQuantityBuilder
builder for changeLineItemQuantity subtype- Returns:
- builder
-
changeLineItemsOrderBuilder
builder for changeLineItemsOrder subtype- Returns:
- builder
-
changeTaxModeBuilder
builder for changeTaxMode subtype- Returns:
- builder
-
recalculateBuilder
builder for recalculate 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
-
setBillingAddressBuilder
builder for setBillingAddress subtype- Returns:
- builder
-
setBusinessUnitBuilder
builder for setBusinessUnit subtype- Returns:
- builder
-
setCountryBuilder
builder for setCountry subtype- Returns:
- builder
-
setCustomFieldBuilder
builder for setCustomField subtype- Returns:
- builder
-
setCustomTypeBuilder
builder for setCustomType subtype- Returns:
- builder
-
setCustomerEmailBuilder
builder for setCustomerEmail subtype- Returns:
- builder
-
setDeleteDaysAfterLastModificationBuilder
static MyCartSetDeleteDaysAfterLastModificationActionBuilder setDeleteDaysAfterLastModificationBuilder()builder for setDeleteDaysAfterLastModification subtype- Returns:
- builder
-
setLineItemCustomFieldBuilder
builder for setLineItemCustomField subtype- Returns:
- builder
-
setLineItemCustomTypeBuilder
builder for setLineItemCustomType subtype- Returns:
- builder
-
setLineItemDistributionChannelBuilder
builder for setLineItemDistributionChannel subtype- Returns:
- builder
-
setLineItemShippingDetailsBuilder
builder for setLineItemShippingDetails subtype- Returns:
- builder
-
setLineItemSupplyChannelBuilder
builder for setLineItemSupplyChannel subtype- Returns:
- builder
-
setLocaleBuilder
builder for setLocale subtype- Returns:
- builder
-
setShippingAddressBuilder
builder for setShippingAddress subtype- Returns:
- builder
-
setShippingMethodBuilder
builder for setShippingMethod subtype- Returns:
- builder
-
updateItemShippingAddressBuilder
builder for updateItemShippingAddress subtype- Returns:
- builder
-
withMyCartUpdateAction
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
-