Package com.stripe.param.checkout
Class SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder
- Enclosing class:
- SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions
public static class SessionCreateParams.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.setAmount(EmptyParam amount) Amount that will be collected.Amount that will be collected.The type of amount that will be collected.setAmountType(EmptyParam amountType) The type of amount that will be collected.setEndDate(EmptyParam endDate) Date, in YYYY-MM-DD format, after which payments will not be collected.setEndDate(String endDate) Date, in YYYY-MM-DD format, after which payments will not be collected.setPaymentSchedule(SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule paymentSchedule) The periodicity at which payments will be collected.setPaymentSchedule(EmptyParam paymentSchedule) The periodicity at which payments will be collected.setPaymentsPerPeriod(EmptyParam paymentsPerPeriod) The number of payments that will be made during a payment period.setPaymentsPerPeriod(Long paymentsPerPeriod) The number of payments that will be made during a payment period.The purpose for which payments are made.setPurpose(EmptyParam purpose) The purpose for which payments are made.setStartDate(EmptyParam startDate) Date, in YYYY-MM-DD format, from which payments will be collected.setStartDate(String startDate) Date, in YYYY-MM-DD format, from which payments will be collected.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Amount that will be collected. It is required whenamount_typeisfixed. -
setAmount
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setAmount(EmptyParam amount) Amount that will be collected. It is required whenamount_typeisfixed. -
setAmountType
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setAmountType(SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType amountType) The type of amount that will be collected. The amount charged must be exact or up to the value ofamountparam forfixedormaximumtype respectively. Defaults tomaximum. -
setAmountType
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setAmountType(EmptyParam amountType) The type of amount that will be collected. The amount charged must be exact or up to the value ofamountparam forfixedormaximumtype respectively. Defaults tomaximum. -
setEndDate
public SessionCreateParams.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. -
setEndDate
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setEndDate(EmptyParam endDate) Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. -
putExtraParam
public SessionCreateParams.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. SeeSessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.extraParamsfor the field documentation. -
putAllExtraParam
public SessionCreateParams.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. SeeSessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.extraParamsfor the field documentation. -
setPaymentSchedule
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPaymentSchedule(SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule paymentSchedule) The periodicity at which payments will be collected. Defaults toadhoc. -
setPaymentSchedule
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPaymentSchedule(EmptyParam paymentSchedule) The periodicity at which payments will be collected. Defaults toadhoc. -
setPaymentsPerPeriod
public SessionCreateParams.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_scheduleisadhoc. In that case, it defaults to no limit. -
setPaymentsPerPeriod
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPaymentsPerPeriod(EmptyParam paymentsPerPeriod) The number of payments that will be made during a payment period. Defaults to 1 except for whenpayment_scheduleisadhoc. In that case, it defaults to no limit. -
setPurpose
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPurpose(SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose purpose) The purpose for which payments are made. Has a default value based on your merchant category code. -
setPurpose
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setPurpose(EmptyParam purpose) The purpose for which payments are made. Has a default value based on your merchant category code. -
setStartDate
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setStartDate(String startDate) Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. -
setStartDate
public SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Builder setStartDate(EmptyParam startDate) Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
-