public class PaymentMethodCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
PaymentMethodCreateParams.BillingDetails |
static class |
PaymentMethodCreateParams.Builder |
static class |
PaymentMethodCreateParams.CardDetails
Add all map key/value pairs to `extraParams` map.
|
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.
|
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static PaymentMethodCreateParams.Builder |
builder() |
PaymentMethodCreateParams.BillingDetails |
getBillingDetails()
Billing information associated with the PaymentMethod that may be used or required by
particular types of payment methods.
|
java.lang.Object |
getCard()
If this is a `card` PaymentMethod, this hash contains the user's card details.
|
java.lang.String |
getCustomer()
The `Customer` to whom the original PaymentMethod is attached.
|
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.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getPaymentMethod()
The PaymentMethod to share.
|
PaymentMethodCreateParams.Type |
getType()
The type of the PaymentMethod.
|
toMap
public static PaymentMethodCreateParams.Builder builder()
public PaymentMethodCreateParams.BillingDetails getBillingDetails()
public java.lang.Object getCard()
public java.lang.String getCustomer()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.lang.String getPaymentMethod()
public PaymentMethodCreateParams.Type getType()