Class RecurringPaymentConfigurationDraftBuilder
- All Implemented Interfaces:
Builder<RecurringPaymentConfigurationDraft>
Example to create an instance using the builder pattern
RecurringPaymentConfigurationDraft recurringPaymentConfigurationDraft = RecurringPaymentConfigurationDraft.builder()
.paymentStrategy(PaymentStrategy.CHECKOUT)
.plusPaymentAllocations(paymentAllocationsBuilder -> paymentAllocationsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPayment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.build()builds RecurringPaymentConfigurationDraft with checking for non-null required valuesbuilds RecurringPaymentConfigurationDraft without checking for non-null required valuesPayment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.Determines how payment is collected for the Orders generated by the Recurring Order.of()factory method for an instance of RecurringPaymentConfigurationDraftBuilderof(RecurringPaymentConfigurationDraft template) create builder for RecurringPaymentConfigurationDraft instancepaymentAllocations(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.paymentAllocations(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.paymentStrategy(PaymentStrategy paymentStrategy) Determines how payment is collected for the Orders generated by the Recurring Order.plusPaymentAllocations(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.plusPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraftBuilder> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.withPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraftBuilder> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
-
Constructor Details
-
RecurringPaymentConfigurationDraftBuilder
public RecurringPaymentConfigurationDraftBuilder()
-
-
Method Details
-
paymentStrategy
Determines how payment is collected for the Orders generated by the Recurring Order.
- Parameters:
paymentStrategy- value to be set- Returns:
- Builder
-
paymentAllocations
public RecurringPaymentConfigurationDraftBuilder paymentAllocations(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.
- Parameters:
paymentAllocations- value to be set- Returns:
- Builder
-
paymentAllocations
public RecurringPaymentConfigurationDraftBuilder paymentAllocations(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.
- Parameters:
paymentAllocations- value to be set- Returns:
- Builder
-
plusPaymentAllocations
public RecurringPaymentConfigurationDraftBuilder plusPaymentAllocations(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.
- Parameters:
paymentAllocations- value to be set- Returns:
- Builder
-
plusPaymentAllocations
public RecurringPaymentConfigurationDraftBuilder plusPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraftBuilder> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
builder- function to build the paymentAllocations value- Returns:
- Builder
-
withPaymentAllocations
public RecurringPaymentConfigurationDraftBuilder withPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraftBuilder> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
builder- function to build the paymentAllocations value- Returns:
- Builder
-
addPaymentAllocations
public RecurringPaymentConfigurationDraftBuilder addPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraft> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
builder- function to build the paymentAllocations value- Returns:
- Builder
-
setPaymentAllocations
public RecurringPaymentConfigurationDraftBuilder setPaymentAllocations(Function<PaymentAllocationDraftBuilder, PaymentAllocationDraft> builder) Payment Methods charged for the Orders generated by the Recurring Order, and the share of the Order total charged to each of them.
- Parameters:
builder- function to build the paymentAllocations value- Returns:
- Builder
-
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
-
build
builds RecurringPaymentConfigurationDraft with checking for non-null required values- Specified by:
buildin interfaceBuilder<RecurringPaymentConfigurationDraft>- Returns:
- RecurringPaymentConfigurationDraft
-
buildUnchecked
builds RecurringPaymentConfigurationDraft without checking for non-null required values- Returns:
- RecurringPaymentConfigurationDraft
-
of
factory method for an instance of RecurringPaymentConfigurationDraftBuilder- Returns:
- builder
-
of
public static RecurringPaymentConfigurationDraftBuilder of(RecurringPaymentConfigurationDraft template) create builder for RecurringPaymentConfigurationDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-