Package com.stripe.param
Class PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Builder
java.lang.Object
com.stripe.param.PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Builder
- Enclosing class:
- PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments
public static class PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.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.setEnabled
(Boolean enabled) Setting to true enables installments for this PaymentIntent.setPlan
(EmptyParam plan) The selected installment plan to use for this payment attempt.The selected installment plan to use for this payment attempt.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEnabled
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Builder setEnabled(Boolean enabled) Setting to true enables installments for this PaymentIntent. This will cause the response to contain a list of available installment plans. Setting to false will prevent any selected plan from applying to a charge. -
putExtraParam
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.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.Installments.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.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.Installments.extraParams
for the field documentation. -
setPlan
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Builder setPlan(PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Plan plan) The selected installment plan to use for this payment attempt. This parameter can only be provided during confirmation. -
setPlan
public PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Builder setPlan(EmptyParam plan) The selected installment plan to use for this payment attempt. This parameter can only be provided during confirmation.
-