Package com.stripe.param
Class SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder
java.lang.Object
com.stripe.param.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder
public static class SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder
extends Object
-
Constructor Summary
-
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 to be charged for future payments.setAmountType
(SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.AmountType amountType) One offixed
ormaximum
.setDescription
(String description) A description of the mandate or subscription that is meant to be displayed to the customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder setAmount(Long amount) Amount to be charged for future payments. -
setAmountType
public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder setAmountType(SubscriptionCreateParams.PaymentSettings.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. -
setDescription
public SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.Builder setDescription(String description) A description of the mandate or subscription that is meant to be displayed to the customer. -
putExtraParam
public SubscriptionCreateParams.PaymentSettings.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. SeeSubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation. -
putAllExtraParam
public SubscriptionCreateParams.PaymentSettings.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. SeeSubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.extraParams
for the field documentation.
-