Package com.stripe.param
Class PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder
java.lang.Object
com.stripe.param.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder
- Enclosing class:
- PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions
public static class PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Amount that will be collected.setAmountType
(PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType amountType) The type of amount that will be collected.setEndDate
(String endDate) Date, in YYYY-MM-DD format, after which payments will not be collected.setPaymentSchedule
(PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule paymentSchedule) The periodicity at which payments will be collected.setPaymentsPerPeriod
(Long paymentsPerPeriod) The number of payments that will be made during a payment period.The purpose for which payments are made.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setAmount(Long amount) Amount that will be collected. It is required whenamount_type
isfixed
. -
setAmountType
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setAmountType(PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType amountType) The type of amount that will be collected. The amount charged must be exact or up to the value ofamount
param forfixed
ormaximum
type respectively. -
setEndDate
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setEndDate(String endDate) Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. -
putExtraParam
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.extraParams
for the field documentation. -
setPaymentSchedule
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPaymentSchedule(PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule paymentSchedule) The periodicity at which payments will be collected. -
setPaymentsPerPeriod
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPaymentsPerPeriod(Long paymentsPerPeriod) The number of payments that will be made during a payment period. Defaults to 1 except for whenpayment_schedule
isadhoc
. In that case, it defaults to no limit. -
setPurpose
public PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPurpose(PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) The purpose for which payments are made. Defaults to retail.
-