Interface RecurringPaymentConfigurationDraft
- All Superinterfaces:
Draft<RecurringPaymentConfigurationDraft>
public interface RecurringPaymentConfigurationDraft
extends Draft<RecurringPaymentConfigurationDraft>
Draft type that stores the data to create a RecurringPaymentConfiguration.
Example to create an instance using the builder pattern
RecurringPaymentConfigurationDraft recurringPaymentConfigurationDraft = RecurringPaymentConfigurationDraft.builder()
.paymentStrategy(PaymentStrategy.CHECKOUT)
.plusPaymentAllocations(paymentAllocationsBuilder -> paymentAllocationsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringPaymentConfigurationDraftbuilder(RecurringPaymentConfigurationDraft template) create builder for RecurringPaymentConfigurationDraft instancecopyDeep()deepCopy(RecurringPaymentConfigurationDraft template) factory method to create a deep copy of RecurringPaymentConfigurationDraft@NotNull @Valid List<PaymentAllocationDraft>Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.@NotNull PaymentStrategyDetermines how payment is collected for the Orders generated by the Recurring Order.of()factory methodof(RecurringPaymentConfigurationDraft template) factory method to create a shallow copy RecurringPaymentConfigurationDraftvoidsetPaymentAllocations(PaymentAllocationDraft... paymentAllocations) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.voidsetPaymentAllocations(List<PaymentAllocationDraft> paymentAllocations) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.voidsetPaymentStrategy(PaymentStrategy paymentStrategy) Determines how payment is collected for the Orders generated by the Recurring Order.static tools.jackson.core.type.TypeReference<RecurringPaymentConfigurationDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getPaymentStrategy
Determines how payment is collected for the Orders generated by the Recurring Order.
- Returns:
- paymentStrategy
-
getPaymentAllocations
Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Returns:
- paymentAllocations
-
setPaymentStrategy
Determines how payment is collected for the Orders generated by the Recurring Order.
- Parameters:
paymentStrategy- value to be set
-
setPaymentAllocations
Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
paymentAllocations- values to be set
-
setPaymentAllocations
Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
paymentAllocations- values to be set
-
of
factory method- Returns:
- instance of RecurringPaymentConfigurationDraft
-
of
factory method to create a shallow copy RecurringPaymentConfigurationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringPaymentConfigurationDraft copyDeep() -
deepCopy
@Nullable static RecurringPaymentConfigurationDraft deepCopy(@Nullable RecurringPaymentConfigurationDraft template) factory method to create a deep copy of RecurringPaymentConfigurationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringPaymentConfigurationDraft- Returns:
- builder
-
builder
static RecurringPaymentConfigurationDraftBuilder builder(RecurringPaymentConfigurationDraft template) create builder for RecurringPaymentConfigurationDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringPaymentConfigurationDraft
default <T> T withRecurringPaymentConfigurationDraft(Function<RecurringPaymentConfigurationDraft, T> helper) 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
-