Package com.stripe.param
Class PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder
- Enclosing class:
- PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions
public static class PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedType
(List<PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.SupportedType> elements) Add all elements to `supportedTypes` list.addSupportedType
(PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.SupportedType element) Add an element to `supportedTypes` list.build()
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.Required. Amount to be charged for future payments.setAmountType
(PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType amountType) Required. One offixed
ormaximum
.setDescription
(String description) A description of the mandate or subscription that is meant to be displayed to the customer.setEndDate
(Long endDate) End date of the mandate or subscription.Required. Specifies payment frequency.setIntervalCount
(Long intervalCount) The number of intervals between payments.setReference
(String reference) Required. Unique identifier for the mandate or subscription.setStartDate
(Long startDate) Required. Start date of the mandate or subscription.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmount(Long amount) Required. Amount to be charged for future payments. -
setAmountType
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmountType(PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType amountType) Required. One offixed
ormaximum
. Iffixed
, theamount
param refers to the exact amount to be charged in future payments. Ifmaximum
, the amount charged can be up to the value passed for theamount
param. -
setDescription
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setDescription(String description) A description of the mandate or subscription that is meant to be displayed to the customer. -
setEndDate
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setEndDate(Long endDate) End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date. -
putExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Card.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.PaymentMethodOptions.Card.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. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation. -
setInterval
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setInterval(PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Interval interval) Required. Specifies payment frequency. One ofday
,week
,month
,year
, orsporadic
. -
setIntervalCount
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setIntervalCount(Long intervalCount) The number of intervals between payments. For example,interval=month
andinterval_count=3
indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional wheninterval=sporadic
. -
setReference
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setReference(String reference) Required. Unique identifier for the mandate or subscription. -
setStartDate
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setStartDate(Long startDate) Required. Start date of the mandate or subscription. Start date should not be lesser than yesterday. -
addSupportedType
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder addSupportedType(PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.SupportedType element) Add an element to `supportedTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation. -
addAllSupportedType
public PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder addAllSupportedType(List<PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.SupportedType> elements) Add all elements to `supportedTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeePaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation.
-