Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder
- Enclosing class:
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions
public static class PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllSupportedType
(List<PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.SupportedType> elements) Add all elements to `supportedTypes` list.addSupportedType
(PaymentIntentUpdateParams.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
(PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.AmountType amountType) Required. One offixed
ormaximum
.setDescription
(EmptyParam description) A description of the mandate or subscription that is meant to be displayed to the customer.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
(EmptyParam reference) Required. Unique identifier for the mandate or subscription.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 PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmount(Long amount) Required. Amount to be charged for future payments. -
setAmountType
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setAmountType(PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setDescription(String description) A description of the mandate or subscription that is meant to be displayed to the customer. -
setDescription
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setDescription(EmptyParam description) A description of the mandate or subscription that is meant to be displayed to the customer. -
setEndDate
public PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation. -
setInterval
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setInterval(PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Interval interval) Required. Specifies payment frequency. One ofday
,week
,month
,year
, orsporadic
. -
setIntervalCount
public PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setReference(String reference) Required. Unique identifier for the mandate or subscription. -
setReference
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder setReference(EmptyParam reference) Required. Unique identifier for the mandate or subscription. -
setStartDate
public PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder addSupportedType(PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation. -
addAllSupportedType
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Builder addAllSupportedType(List<PaymentIntentUpdateParams.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. SeePaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.supportedTypes
for the field documentation.
-