Interface RecurringPaymentAllocation
public interface RecurringPaymentAllocation
Assigns a share of the Order total to a specific PaymentMethod.
Example to create an instance using the builder pattern
RecurringPaymentAllocation recurringPaymentAllocation = RecurringPaymentAllocation.builder()
.id("{id}")
.paymentMethod(paymentMethodBuilder -> paymentMethodBuilder)
.allocation(allocationBuilder -> allocationBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringPaymentAllocationbuilder(RecurringPaymentAllocation template) create builder for RecurringPaymentAllocation instancecopyDeep()static RecurringPaymentAllocationdeepCopy(RecurringPaymentAllocation template) factory method to create a deep copy of RecurringPaymentAllocation@NotNull @Valid AllocationShare of the Order total charged to thepaymentMethod.@NotNull StringgetId()Unique identifier of the RecurringPaymentAllocation within the RecurringPaymentConfiguration.@NotNull @Valid PaymentMethodReferencePayment Method charged for this share of the Order total.static RecurringPaymentAllocationof()factory methodstatic RecurringPaymentAllocationof(RecurringPaymentAllocation template) factory method to create a shallow copy RecurringPaymentAllocationvoidsetAllocation(Allocation allocation) Share of the Order total charged to thepaymentMethod.voidUnique identifier of the RecurringPaymentAllocation within the RecurringPaymentConfiguration.voidsetPaymentMethod(PaymentMethodReference paymentMethod) Payment Method charged for this share of the Order total.static tools.jackson.core.type.TypeReference<RecurringPaymentAllocation>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Unique identifier of the RecurringPaymentAllocation within the RecurringPaymentConfiguration. Use it to remove the allocation with the Remove RecurringPaymentAllocation update action.
- 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 RecurringPaymentAllocation within the RecurringPaymentConfiguration. Use it to remove the allocation with the Remove RecurringPaymentAllocation update action.
- 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 RecurringPaymentAllocation
-
of
factory method to create a shallow copy RecurringPaymentAllocation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringPaymentAllocation copyDeep() -
deepCopy
factory method to create a deep copy of RecurringPaymentAllocation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringPaymentAllocation- Returns:
- builder
-
builder
create builder for RecurringPaymentAllocation instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringPaymentAllocation
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
-