Package com.commercetools.api.models.me
Interface MyPaymentChangeAmountPlannedAction
- All Superinterfaces:
MyPaymentUpdateAction
,ResourceUpdateAction<MyPaymentUpdateAction>
Can be used to update the Payment if a customer changes the Cart, or adds or removes a CartDiscount during checkout.
Example to create an instance using the builder pattern
MyPaymentChangeAmountPlannedAction myPaymentChangeAmountPlannedAction = MyPaymentChangeAmountPlannedAction.builder()
.amount(amountBuilder -> amountBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyPaymentChangeAmountPlannedAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyPaymentChangeAmountPlannedActionbuilder
(MyPaymentChangeAmountPlannedAction template) create builder for MyPaymentChangeAmountPlannedAction instancedeepCopy
(MyPaymentChangeAmountPlannedAction template) factory method to create a deep copy of MyPaymentChangeAmountPlannedAction@NotNull @Valid Money
New value to set.of()
factory methodof
(MyPaymentChangeAmountPlannedAction template) factory method to create a shallow copy MyPaymentChangeAmountPlannedActionvoid
New value to set.static com.fasterxml.jackson.core.type.TypeReference<MyPaymentChangeAmountPlannedAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyPaymentUpdateAction
getAction, withMyPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_AMOUNT_PLANNED
discriminator value for MyPaymentChangeAmountPlannedAction- See Also:
-
-
Method Details
-
getAmount
New value to set.
- Returns:
- amount
-
setAmount
New value to set.
- Parameters:
amount
- value to be set
-
of
factory method- Returns:
- instance of MyPaymentChangeAmountPlannedAction
-
of
factory method to create a shallow copy MyPaymentChangeAmountPlannedAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyPaymentChangeAmountPlannedAction deepCopy(@Nullable MyPaymentChangeAmountPlannedAction template) factory method to create a deep copy of MyPaymentChangeAmountPlannedAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentChangeAmountPlannedAction- Returns:
- builder
-
builder
static MyPaymentChangeAmountPlannedActionBuilder builder(MyPaymentChangeAmountPlannedAction template) create builder for MyPaymentChangeAmountPlannedAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentChangeAmountPlannedAction
default <T> T withMyPaymentChangeAmountPlannedAction(Function<MyPaymentChangeAmountPlannedAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<MyPaymentChangeAmountPlannedAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-