Package com.stripe.param
Class InvoiceUpdateParams.PaymentSettings.Builder
java.lang.Object
com.stripe.param.InvoiceUpdateParams.PaymentSettings.Builder
- Enclosing class:
- InvoiceUpdateParams.PaymentSettings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `paymentMethodTypes` list.Add an element to `paymentMethodTypes` 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.setDefaultMandate
(EmptyParam defaultMandate) ID of the mandate to be used for this invoice.setDefaultMandate
(String defaultMandate) ID of the mandate to be used for this invoice.setPaymentMethodOptions
(InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions paymentMethodOptions) Payment-method-specific configuration to provide to the invoice’s PaymentIntent.setPaymentMethodTypes
(EmptyParam paymentMethodTypes) The list of payment method types (e.g.setPaymentMethodTypes
(List<InvoiceUpdateParams.PaymentSettings.PaymentMethodType> paymentMethodTypes) The list of payment method types (e.g.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDefaultMandate
ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. -
setDefaultMandate
ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set. -
putExtraParam
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. SeeInvoiceUpdateParams.PaymentSettings.extraParams
for the field documentation. -
putAllExtraParam
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. SeeInvoiceUpdateParams.PaymentSettings.extraParams
for the field documentation. -
setPaymentMethodOptions
public InvoiceUpdateParams.PaymentSettings.Builder setPaymentMethodOptions(InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions paymentMethodOptions) Payment-method-specific configuration to provide to the invoice’s PaymentIntent. -
addPaymentMethodType
public InvoiceUpdateParams.PaymentSettings.Builder addPaymentMethodType(InvoiceUpdateParams.PaymentSettings.PaymentMethodType element) Add an element to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.PaymentSettings.paymentMethodTypes
for the field documentation. -
addAllPaymentMethodType
public InvoiceUpdateParams.PaymentSettings.Builder addAllPaymentMethodType(List<InvoiceUpdateParams.PaymentSettings.PaymentMethodType> elements) Add all elements to `paymentMethodTypes` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeInvoiceUpdateParams.PaymentSettings.paymentMethodTypes
for the field documentation. -
setPaymentMethodTypes
public InvoiceUpdateParams.PaymentSettings.Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings. -
setPaymentMethodTypes
public InvoiceUpdateParams.PaymentSettings.Builder setPaymentMethodTypes(List<InvoiceUpdateParams.PaymentSettings.PaymentMethodType> paymentMethodTypes) The list of payment method types (e.g. card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
-