Package com.stripe.param
Class PaymentMethodCreateParams
- java.lang.Object
-
- com.stripe.net.ApiRequestParams
-
- com.stripe.param.PaymentMethodCreateParams
-
public class PaymentMethodCreateParams extends ApiRequestParams
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaymentMethodCreateParams.AcssDebit
static class
PaymentMethodCreateParams.AfterpayClearpay
Transit number of the customer's bank.static class
PaymentMethodCreateParams.Alipay
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.AuBecsDebit
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.BacsDebit
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.Bancontact
Sort code of the bank account.static class
PaymentMethodCreateParams.BillingDetails
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.Boleto
State, county, province, or region.static class
PaymentMethodCreateParams.Builder
static class
PaymentMethodCreateParams.CardDetails
The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers).static class
PaymentMethodCreateParams.Eps
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.Fpx
static class
PaymentMethodCreateParams.Giropay
static class
PaymentMethodCreateParams.Grabpay
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.Ideal
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.InteracPresent
static class
PaymentMethodCreateParams.Klarna
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.Oxxo
The four-digit year of birth.static class
PaymentMethodCreateParams.P24
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.SepaDebit
static class
PaymentMethodCreateParams.Sofort
IBAN of the bank account.static class
PaymentMethodCreateParams.Token
The card number, as a string without any separators.static class
PaymentMethodCreateParams.Type
Add all map key/value pairs to `extraParams` map.static class
PaymentMethodCreateParams.WechatPay
-
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentMethodCreateParams.Builder
builder()
PaymentMethodCreateParams.AcssDebit
getAcssDebit()
If this is anacss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method.PaymentMethodCreateParams.AfterpayClearpay
getAfterpayClearpay()
If this is anAfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method.PaymentMethodCreateParams.Alipay
getAlipay()
If this is anAlipay
PaymentMethod, this hash contains details about the Alipay payment method.PaymentMethodCreateParams.AuBecsDebit
getAuBecsDebit()
If this is anau_becs_debit
PaymentMethod, this hash contains details about the bank account.PaymentMethodCreateParams.BacsDebit
getBacsDebit()
If this is abacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.PaymentMethodCreateParams.Bancontact
getBancontact()
If this is abancontact
PaymentMethod, this hash contains details about the Bancontact payment method.PaymentMethodCreateParams.BillingDetails
getBillingDetails()
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.PaymentMethodCreateParams.Boleto
getBoleto()
If this is aboleto
PaymentMethod, this hash contains details about the Boleto payment method.java.lang.Object
getCard()
If this is acard
PaymentMethod, this hash contains the user's card details.java.lang.String
getCustomer()
TheCustomer
to whom the original PaymentMethod is attached.PaymentMethodCreateParams.Eps
getEps()
If this is aneps
PaymentMethod, this hash contains details about the EPS payment method.java.util.List<java.lang.String>
getExpand()
Specifies which fields in the response should be expanded.java.util.Map<java.lang.String,java.lang.Object>
getExtraParams()
Map of extra parameters for custom features not available in this client library.PaymentMethodCreateParams.Fpx
getFpx()
If this is anfpx
PaymentMethod, this hash contains details about the FPX payment method.PaymentMethodCreateParams.Giropay
getGiropay()
If this is agiropay
PaymentMethod, this hash contains details about the Giropay payment method.PaymentMethodCreateParams.Grabpay
getGrabpay()
If this is agrabpay
PaymentMethod, this hash contains details about the GrabPay payment method.PaymentMethodCreateParams.Ideal
getIdeal()
If this is anideal
PaymentMethod, this hash contains details about the iDEAL payment method.PaymentMethodCreateParams.InteracPresent
getInteracPresent()
If this is aninterac_present
PaymentMethod, this hash contains details about the Interac Present payment method.PaymentMethodCreateParams.Klarna
getKlarna()
If this is aklarna
PaymentMethod, this hash contains details about the Klarna payment method.java.util.Map<java.lang.String,java.lang.String>
getMetadata()
Set of key-value pairs that you can attach to an object.PaymentMethodCreateParams.Oxxo
getOxxo()
If this is anoxxo
PaymentMethod, this hash contains details about the OXXO payment method.PaymentMethodCreateParams.P24
getP24()
If this is ap24
PaymentMethod, this hash contains details about the P24 payment method.java.lang.String
getPaymentMethod()
The PaymentMethod to share.PaymentMethodCreateParams.SepaDebit
getSepaDebit()
If this is asepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account.PaymentMethodCreateParams.Sofort
getSofort()
If this is asofort
PaymentMethod, this hash contains details about the SOFORT payment method.PaymentMethodCreateParams.Type
getType()
The type of the PaymentMethod.PaymentMethodCreateParams.WechatPay
getWechatPay()
If this is anwechat_pay
PaymentMethod, this hash contains details about the wechat_pay payment method.-
Methods inherited from class com.stripe.net.ApiRequestParams
toMap
-
-
-
-
Method Detail
-
builder
public static PaymentMethodCreateParams.Builder builder()
-
getAcssDebit
public PaymentMethodCreateParams.AcssDebit getAcssDebit()
If this is anacss_debit
PaymentMethod, this hash contains details about the ACSS Debit payment method.
-
getAfterpayClearpay
public PaymentMethodCreateParams.AfterpayClearpay getAfterpayClearpay()
If this is anAfterpayClearpay
PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
-
getAlipay
public PaymentMethodCreateParams.Alipay getAlipay()
If this is anAlipay
PaymentMethod, this hash contains details about the Alipay payment method.
-
getAuBecsDebit
public PaymentMethodCreateParams.AuBecsDebit getAuBecsDebit()
If this is anau_becs_debit
PaymentMethod, this hash contains details about the bank account.
-
getBacsDebit
public PaymentMethodCreateParams.BacsDebit getBacsDebit()
If this is abacs_debit
PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
-
getBancontact
public PaymentMethodCreateParams.Bancontact getBancontact()
If this is abancontact
PaymentMethod, this hash contains details about the Bancontact payment method.
-
getBillingDetails
public PaymentMethodCreateParams.BillingDetails getBillingDetails()
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
-
getBoleto
public PaymentMethodCreateParams.Boleto getBoleto()
If this is aboleto
PaymentMethod, this hash contains details about the Boleto payment method.
-
getCard
public java.lang.Object getCard()
If this is acard
PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with formatcard: {token: "tok_visa"}
. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly.
-
getCustomer
public java.lang.String getCustomer()
TheCustomer
to whom the original PaymentMethod is attached.
-
getEps
public PaymentMethodCreateParams.Eps getEps()
If this is aneps
PaymentMethod, this hash contains details about the EPS payment method.
-
getExpand
public java.util.List<java.lang.String> getExpand()
Specifies which fields in the response should be expanded.
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
-
getFpx
public PaymentMethodCreateParams.Fpx getFpx()
If this is anfpx
PaymentMethod, this hash contains details about the FPX payment method.
-
getGiropay
public PaymentMethodCreateParams.Giropay getGiropay()
If this is agiropay
PaymentMethod, this hash contains details about the Giropay payment method.
-
getGrabpay
public PaymentMethodCreateParams.Grabpay getGrabpay()
If this is agrabpay
PaymentMethod, this hash contains details about the GrabPay payment method.
-
getIdeal
public PaymentMethodCreateParams.Ideal getIdeal()
If this is anideal
PaymentMethod, this hash contains details about the iDEAL payment method.
-
getInteracPresent
public PaymentMethodCreateParams.InteracPresent getInteracPresent()
If this is aninterac_present
PaymentMethod, this hash contains details about the Interac Present payment method.
-
getKlarna
public PaymentMethodCreateParams.Klarna getKlarna()
If this is aklarna
PaymentMethod, this hash contains details about the Klarna payment method.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
.
-
getOxxo
public PaymentMethodCreateParams.Oxxo getOxxo()
If this is anoxxo
PaymentMethod, this hash contains details about the OXXO payment method.
-
getP24
public PaymentMethodCreateParams.P24 getP24()
If this is ap24
PaymentMethod, this hash contains details about the P24 payment method.
-
getPaymentMethod
public java.lang.String getPaymentMethod()
The PaymentMethod to share.
-
getSepaDebit
public PaymentMethodCreateParams.SepaDebit getSepaDebit()
If this is asepa_debit
PaymentMethod, this hash contains details about the SEPA debit bank account.
-
getSofort
public PaymentMethodCreateParams.Sofort getSofort()
If this is asofort
PaymentMethod, this hash contains details about the SOFORT payment method.
-
getType
public PaymentMethodCreateParams.Type getType()
The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
-
getWechatPay
public PaymentMethodCreateParams.WechatPay getWechatPay()
If this is anwechat_pay
PaymentMethod, this hash contains details about the wechat_pay payment method.
-
-