public static class PaymentIntentCreateParams.PaymentMethodData.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PaymentIntentCreateParams.PaymentMethodData |
build()
Finalize and obtain parameter instance from this builder.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
setAlipay(PaymentIntentCreateParams.PaymentMethodData.Alipay alipay)
If this is an
Alipay PaymentMethod, this hash contains details about the Alipay
payment method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setAuBecsDebit(PaymentIntentCreateParams.PaymentMethodData.AuBecsDebit auBecsDebit)
If this is an
au_becs_debit PaymentMethod, this hash contains details about the
bank account. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setBacsDebit(PaymentIntentCreateParams.PaymentMethodData.BacsDebit bacsDebit)
If this is a
bacs_debit PaymentMethod, this hash contains details about the Bacs
Direct Debit bank account. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setBancontact(PaymentIntentCreateParams.PaymentMethodData.Bancontact bancontact)
If this is a
bancontact PaymentMethod, this hash contains details about the
Bancontact payment method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setBillingDetails(PaymentIntentCreateParams.PaymentMethodData.BillingDetails billingDetails)
Billing information associated with the PaymentMethod that may be used or required by
particular types of payment methods.
|
PaymentIntentCreateParams.PaymentMethodData.Builder |
setEps(PaymentIntentCreateParams.PaymentMethodData.Eps eps)
If this is an
eps PaymentMethod, this hash contains details about the EPS payment
method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setFpx(PaymentIntentCreateParams.PaymentMethodData.Fpx fpx)
If this is an
fpx PaymentMethod, this hash contains details about the FPX payment
method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setGiropay(PaymentIntentCreateParams.PaymentMethodData.Giropay giropay)
If this is a
giropay PaymentMethod, this hash contains details about the Giropay
payment method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setIdeal(PaymentIntentCreateParams.PaymentMethodData.Ideal ideal)
If this is an
ideal PaymentMethod, this hash contains details about the iDEAL
payment method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setInteracPresent(PaymentIntentCreateParams.PaymentMethodData.InteracPresent interacPresent)
If this is an
interac_present PaymentMethod, this hash contains details about the
Interac Present payment method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setP24(PaymentIntentCreateParams.PaymentMethodData.P24 p24)
If this is a
p24 PaymentMethod, this hash contains details about the P24 payment
method. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setSepaDebit(PaymentIntentCreateParams.PaymentMethodData.SepaDebit sepaDebit)
If this is a
sepa_debit PaymentMethod, this hash contains details about the SEPA
debit bank account. |
PaymentIntentCreateParams.PaymentMethodData.Builder |
setType(PaymentIntentCreateParams.PaymentMethodData.Type type)
The type of the PaymentMethod.
|
public PaymentIntentCreateParams.PaymentMethodData build()
public PaymentIntentCreateParams.PaymentMethodData.Builder setAlipay(PaymentIntentCreateParams.PaymentMethodData.Alipay alipay)
Alipay
PaymentMethod, this hash contains details about the Alipay
payment method.public PaymentIntentCreateParams.PaymentMethodData.Builder setAuBecsDebit(PaymentIntentCreateParams.PaymentMethodData.AuBecsDebit auBecsDebit)
au_becs_debit
PaymentMethod, this hash contains details about the
bank account.public PaymentIntentCreateParams.PaymentMethodData.Builder setBacsDebit(PaymentIntentCreateParams.PaymentMethodData.BacsDebit bacsDebit)
bacs_debit
PaymentMethod, this hash contains details about the Bacs
Direct Debit bank account.public PaymentIntentCreateParams.PaymentMethodData.Builder setBancontact(PaymentIntentCreateParams.PaymentMethodData.Bancontact bancontact)
bancontact
PaymentMethod, this hash contains details about the
Bancontact payment method.public PaymentIntentCreateParams.PaymentMethodData.Builder setBillingDetails(PaymentIntentCreateParams.PaymentMethodData.BillingDetails billingDetails)
public PaymentIntentCreateParams.PaymentMethodData.Builder setEps(PaymentIntentCreateParams.PaymentMethodData.Eps eps)
eps
PaymentMethod, this hash contains details about the EPS payment
method.public PaymentIntentCreateParams.PaymentMethodData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
PaymentIntentCreateParams.PaymentMethodData.extraParams
for the field documentation.public PaymentIntentCreateParams.PaymentMethodData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
PaymentIntentCreateParams.PaymentMethodData.extraParams
for the field
documentation.public PaymentIntentCreateParams.PaymentMethodData.Builder setFpx(PaymentIntentCreateParams.PaymentMethodData.Fpx fpx)
fpx
PaymentMethod, this hash contains details about the FPX payment
method.public PaymentIntentCreateParams.PaymentMethodData.Builder setGiropay(PaymentIntentCreateParams.PaymentMethodData.Giropay giropay)
giropay
PaymentMethod, this hash contains details about the Giropay
payment method.public PaymentIntentCreateParams.PaymentMethodData.Builder setIdeal(PaymentIntentCreateParams.PaymentMethodData.Ideal ideal)
ideal
PaymentMethod, this hash contains details about the iDEAL
payment method.public PaymentIntentCreateParams.PaymentMethodData.Builder setInteracPresent(PaymentIntentCreateParams.PaymentMethodData.InteracPresent interacPresent)
interac_present
PaymentMethod, this hash contains details about the
Interac Present payment method.public PaymentIntentCreateParams.PaymentMethodData.Builder putMetadata(java.lang.String key, java.lang.String value)
PaymentIntentCreateParams.PaymentMethodData.metadata
for the field documentation.public PaymentIntentCreateParams.PaymentMethodData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
PaymentIntentCreateParams.PaymentMethodData.metadata
for the field
documentation.public PaymentIntentCreateParams.PaymentMethodData.Builder setP24(PaymentIntentCreateParams.PaymentMethodData.P24 p24)
p24
PaymentMethod, this hash contains details about the P24 payment
method.public PaymentIntentCreateParams.PaymentMethodData.Builder setSepaDebit(PaymentIntentCreateParams.PaymentMethodData.SepaDebit sepaDebit)
sepa_debit
PaymentMethod, this hash contains details about the SEPA
debit bank account.public PaymentIntentCreateParams.PaymentMethodData.Builder setType(PaymentIntentCreateParams.PaymentMethodData.Type type)