Interface PaymentAllocationDraft
- All Superinterfaces:
Draft<PaymentAllocationDraft>
Draft type that stores the data to create a RecurringPaymentAllocation.
Example to create an instance using the builder pattern
PaymentAllocationDraft paymentAllocationDraft = PaymentAllocationDraft.builder()
.id("{id}")
.paymentMethod(paymentMethodBuilder -> paymentMethodBuilder)
.allocation(allocationBuilder -> allocationBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentAllocationDraftbuilder(PaymentAllocationDraft template) create builder for PaymentAllocationDraft instancecopyDeep()static PaymentAllocationDraftdeepCopy(PaymentAllocationDraft template) factory method to create a deep copy of PaymentAllocationDraft@NotNull @Valid AllocationDraftShare of the Order total charged to thepaymentMethod.@NotNull StringgetId()Unique identifier of the resulting RecurringPaymentAllocation within the RecurringPaymentConfiguration.@NotNull @Valid PaymentMethodReferencePayment Method charged for this share of the Order total.static PaymentAllocationDraftof()factory methodstatic PaymentAllocationDraftof(PaymentAllocationDraft template) factory method to create a shallow copy PaymentAllocationDraftvoidsetAllocation(AllocationDraft allocation) Share of the Order total charged to thepaymentMethod.voidUnique identifier of the resulting RecurringPaymentAllocation within the RecurringPaymentConfiguration.voidsetPaymentMethod(PaymentMethodReference paymentMethod) Payment Method charged for this share of the Order total.static tools.jackson.core.type.TypeReference<PaymentAllocationDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getId
Unique identifier of the resulting 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 resulting 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 PaymentAllocationDraft
-
of
factory method to create a shallow copy PaymentAllocationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentAllocationDraft copyDeep() -
deepCopy
factory method to create a deep copy of PaymentAllocationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentAllocationDraft- Returns:
- builder
-
builder
create builder for PaymentAllocationDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentAllocationDraft
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
-