Package com.stripe.param
Class SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder
- java.lang.Object
-
- com.stripe.param.SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder
-
- Enclosing class:
- SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions
public static class SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions build()
Finalize and obtain parameter instance from this builder.
-
setAmount
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmount(java.lang.Long amount)
Amount to be charged for future payments.
-
setAmountType
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmountType(SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType amountType)
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.
-
setCurrency
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setCurrency(java.lang.String currency)
Currency in which future payments will be charged. Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setDescription
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setDescription(java.lang.String description)
A description of the mandate or subscription that is meant to be displayed to the customer.
-
setEndDate
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setEndDate(java.lang.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 SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder putExtraParam(java.lang.String key, java.lang.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. SeeSetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation.
-
putAllExtraParam
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeeSetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation.
-
setInterval
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setInterval(SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Interval interval)
Specifies payment frequency. One ofday
,week
,month
,year
, orsporadic
.
-
setIntervalCount
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setIntervalCount(java.lang.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 SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setReference(java.lang.String reference)
Unique identifier for the mandate or subscription.
-
setStartDate
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder setStartDate(java.lang.Long startDate)
Start date of the mandate or subscription. Start date should not be lesser than yesterday.
-
addSupportedType
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder addSupportedType(SetupIntentCreateParams.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. SeeSetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation.
-
addAllSupportedType
public SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Builder addAllSupportedType(java.util.List<SetupIntentCreateParams.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. SeeSetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation.
-
-