Interface CartAddRecurringPaymentAllocationAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Adds a RecurringPaymentAllocation to the paymentAllocations of the RecurringPaymentConfiguration.
Example to create an instance using the builder pattern
CartAddRecurringPaymentAllocationAction cartAddRecurringPaymentAllocationAction = CartAddRecurringPaymentAllocationAction.builder()
.id("{id}")
.paymentMethod(paymentMethodBuilder -> paymentMethodBuilder)
.allocation(allocationBuilder -> allocationBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartAddRecurringPaymentAllocationAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartAddRecurringPaymentAllocationActioncreate builder for CartAddRecurringPaymentAllocationAction instancecopyDeep()factory method to create a deep copy of CartAddRecurringPaymentAllocationAction@NotNull @Valid AllocationDraftShare of the Order total charged to thepaymentMethod.@NotNull StringgetId()Unique identifier of the new RecurringPaymentAllocation within the RecurringPaymentConfiguration.@NotNull @Valid PaymentMethodReferencePayment Method charged for this share of the Order total.of()factory methodof(CartAddRecurringPaymentAllocationAction template) factory method to create a shallow copy CartAddRecurringPaymentAllocationActionvoidsetAllocation(AllocationDraft allocation) Share of the Order total charged to thepaymentMethod.voidUnique identifier of the new RecurringPaymentAllocation within the RecurringPaymentConfiguration.voidsetPaymentMethod(PaymentMethodReference paymentMethod) Payment Method charged for this share of the Order total.static tools.jackson.core.type.TypeReference<CartAddRecurringPaymentAllocationAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartAddRecurringPaymentAllocationAction(Function<CartAddRecurringPaymentAllocationAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_RECURRING_PAYMENT_ALLOCATION
discriminator value for CartAddRecurringPaymentAllocationAction- See Also:
-
-
Method Details
-
getId
Unique identifier of the new RecurringPaymentAllocation within the RecurringPaymentConfiguration.
- Returns:
- id
-
getPaymentMethod
Payment Method charged for this share of the Order total.
- Returns:
- paymentMethod
-
getAllocation
Share of the Order total charged to the
paymentMethod.- Returns:
- allocation
-
setId
Unique identifier of the new RecurringPaymentAllocation within the RecurringPaymentConfiguration.
- Parameters:
id- value to be set
-
setPaymentMethod
Payment Method charged for this share of the Order total.
- Parameters:
paymentMethod- value to be set
-
setAllocation
Share of the Order total charged to the
paymentMethod.- Parameters:
allocation- value to be set
-
of
factory method- Returns:
- instance of CartAddRecurringPaymentAllocationAction
-
of
factory method to create a shallow copy CartAddRecurringPaymentAllocationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartAddRecurringPaymentAllocationAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartAddRecurringPaymentAllocationAction deepCopy(@Nullable CartAddRecurringPaymentAllocationAction template) factory method to create a deep copy of CartAddRecurringPaymentAllocationAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartAddRecurringPaymentAllocationAction- Returns:
- builder
-
builder
static CartAddRecurringPaymentAllocationActionBuilder builder(CartAddRecurringPaymentAllocationAction template) create builder for CartAddRecurringPaymentAllocationAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartAddRecurringPaymentAllocationAction
default <T> T withCartAddRecurringPaymentAllocationAction(Function<CartAddRecurringPaymentAllocationAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<CartAddRecurringPaymentAllocationAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-