Interface RecurringPaymentConfiguration
public interface RecurringPaymentConfiguration
Determines how the Orders generated by a RecurringOrder are paid for. It is only evaluated on recurring Carts, that is Carts with the RecurringOrder CartOrigin.
Example to create an instance using the builder pattern
RecurringPaymentConfiguration recurringPaymentConfiguration = RecurringPaymentConfiguration.builder()
.paymentStrategy(PaymentStrategy.CHECKOUT)
.plusPaymentAllocations(paymentAllocationsBuilder -> paymentAllocationsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringPaymentConfigurationbuilder(RecurringPaymentConfiguration template) create builder for RecurringPaymentConfiguration instancecopyDeep()deepCopy(RecurringPaymentConfiguration template) factory method to create a deep copy of RecurringPaymentConfiguration@NotNull @Valid List<RecurringPaymentAllocation>Payment Methods charged for the Orders generated by the RecurringOrder, 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(RecurringPaymentConfiguration template) factory method to create a shallow copy RecurringPaymentConfigurationvoidsetPaymentAllocations(RecurringPaymentAllocation... paymentAllocations) Payment Methods charged for the Orders generated by the RecurringOrder, and the share of the Order total charged to each of them.voidsetPaymentAllocations(List<RecurringPaymentAllocation> paymentAllocations) Payment Methods charged for the Orders generated by the RecurringOrder, 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<RecurringPaymentConfiguration>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 RecurringOrder, 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 RecurringOrder, 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 RecurringOrder, and the share of the Order total charged to each of them.
- Parameters:
paymentAllocations- values to be set
-
of
factory method- Returns:
- instance of RecurringPaymentConfiguration
-
of
factory method to create a shallow copy RecurringPaymentConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringPaymentConfiguration copyDeep() -
deepCopy
@Nullable static RecurringPaymentConfiguration deepCopy(@Nullable RecurringPaymentConfiguration template) factory method to create a deep copy of RecurringPaymentConfiguration- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringPaymentConfiguration- Returns:
- builder
-
builder
create builder for RecurringPaymentConfiguration instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringPaymentConfiguration
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
-