Interface PaymentChangeAmountPlannedAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
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
PaymentChangeAmountPlannedAction paymentChangeAmountPlannedAction = PaymentChangeAmountPlannedAction.builder()
.amount(amountBuilder -> amountBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentChangeAmountPlannedAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentChangeAmountPlannedActionbuilder
(PaymentChangeAmountPlannedAction template) create builder for PaymentChangeAmountPlannedAction instancedeepCopy
(PaymentChangeAmountPlannedAction template) factory method to create a deep copy of PaymentChangeAmountPlannedAction@NotNull @Valid Money
New value to set.of()
factory methodof
(PaymentChangeAmountPlannedAction template) factory method to create a shallow copy PaymentChangeAmountPlannedActionvoid
New value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentChangeAmountPlannedAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
CHANGE_AMOUNT_PLANNED
discriminator value for PaymentChangeAmountPlannedAction- 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 PaymentChangeAmountPlannedAction
-
of
factory method to create a shallow copy PaymentChangeAmountPlannedAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentChangeAmountPlannedAction deepCopy(@Nullable PaymentChangeAmountPlannedAction template) factory method to create a deep copy of PaymentChangeAmountPlannedAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentChangeAmountPlannedAction- Returns:
- builder
-
builder
create builder for PaymentChangeAmountPlannedAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentChangeAmountPlannedAction
default <T> T withPaymentChangeAmountPlannedAction(Function<PaymentChangeAmountPlannedAction, 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<PaymentChangeAmountPlannedAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-