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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentChangeAmountPlannedAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentChangeAmountPlannedActionbuilder(PaymentChangeAmountPlannedAction template) create builder for PaymentChangeAmountPlannedAction instancecopyDeep()deepCopy(PaymentChangeAmountPlannedAction template) factory method to create a deep copy of PaymentChangeAmountPlannedAction@NotNull @Valid MoneyNew value to set.of()factory methodof(PaymentChangeAmountPlannedAction template) factory method to create a shallow copy PaymentChangeAmountPlannedActionvoidNew value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentChangeAmountPlannedAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods 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
-
copyDeep
PaymentChangeAmountPlannedAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
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
-