public class SourceCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SourceCreateParams.Builder |
static class |
SourceCreateParams.Flow
State, county, province, or region.
|
static class |
SourceCreateParams.Mandate |
static class |
SourceCreateParams.Owner |
static class |
SourceCreateParams.Receiver
State, county, province, or region.
|
static class |
SourceCreateParams.Redirect |
static class |
SourceCreateParams.SourceOrder
The URL you provide to redirect the customer back to you after they authenticated their
payment.
|
static class |
SourceCreateParams.Usage |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SourceCreateParams.Builder |
builder() |
java.lang.Long |
getAmount()
Amount associated with the source.
|
java.lang.String |
getCurrency()
Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) associated with
the source.
|
java.lang.String |
getCustomer()
The `Customer` to whom the original source is attached to.
|
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.
|
SourceCreateParams.Flow |
getFlow()
The authentication `flow` of the source to create.
|
SourceCreateParams.Mandate |
getMandate()
Information about a mandate possibility attached to a source object (generally for bank debits)
as well as its acceptance status.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getOriginalSource()
The source to share.
|
SourceCreateParams.Owner |
getOwner()
Information about the owner of the payment instrument that may be used or required by
particular source types.
|
SourceCreateParams.Receiver |
getReceiver()
Optional parameters for the receiver flow.
|
SourceCreateParams.Redirect |
getRedirect()
Parameters required for the redirect flow.
|
SourceCreateParams.SourceOrder |
getSourceOrder()
Information about the items and shipping associated with the source.
|
java.lang.String |
getStatementDescriptor()
An arbitrary string to be displayed on your customer's statement.
|
java.lang.String |
getToken()
An optional token used to create the source.
|
java.lang.String |
getType()
The `type` of the source to create.
|
SourceCreateParams.Usage |
getUsage() |
toMap
public static SourceCreateParams.Builder builder()
public java.lang.Long getAmount()
public java.lang.String getCurrency()
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 SourceCreateParams.Flow getFlow()
public SourceCreateParams.Mandate getMandate()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.lang.String getOriginalSource()
public SourceCreateParams.Owner getOwner()
public SourceCreateParams.Receiver getReceiver()
public SourceCreateParams.Redirect getRedirect()
public SourceCreateParams.SourceOrder getSourceOrder()
public java.lang.String getStatementDescriptor()
public java.lang.String getToken()
public java.lang.String getType()
public SourceCreateParams.Usage getUsage()