Package com.stripe.param
Class SourceCreateParams.Builder
java.lang.Object
com.stripe.param.SourceCreateParams.Builder
- Enclosing class:
- SourceCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.Amount associated with the source.setCurrency(String currency) Three-letter ISO code for the currency associated with the source.setCustomer(String customer) TheCustomerto whom the original source is attached to.The authenticationflowof the source to create.setMandate(SourceCreateParams.Mandate mandate) Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status.setOriginalSource(String originalSource) The source to share.setOwner(SourceCreateParams.Owner owner) Information about the owner of the payment instrument that may be used or required by particular source types.setReceiver(SourceCreateParams.Receiver receiver) Optional parameters for the receiver flow.setRedirect(SourceCreateParams.Redirect redirect) Parameters required for the redirect flow.setSourceOrder(SourceCreateParams.SourceOrder sourceOrder) Information about the items and shipping associated with the source.setStatementDescriptor(String statementDescriptor) An arbitrary string to be displayed on your customer's statement.An optional token used to create the source.Thetypeof the source to create.setUsage(SourceCreateParams.Usage usage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Amount associated with the source. This is the amount for which the source will be chargeable once ready. Required forsingle_usesources. Not supported forreceivertype sources, where charge amount may not be specified until funds land. -
setCurrency
Three-letter ISO code for the currency associated with the source. This is the currency for which the source will be chargeable once ready. -
setCustomer
TheCustomerto whom the original source is attached to. Must be set when the original source is not aSource(e.g.,Card). -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSourceCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSourceCreateParams.expandfor the field documentation. -
putExtraParam
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. SeeSourceCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeSourceCreateParams.extraParamsfor the field documentation. -
setFlow
The authenticationflowof the source to create.flowis one ofredirect,receiver,code_verification,none. It is generally inferred unless a type supports multiple flows. -
setMandate
Information about a mandate possibility attached to a source object (generally for bank debits) as well as its acceptance status. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSourceCreateParams.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSourceCreateParams.metadatafor the field documentation. -
setOriginalSource
The source to share. -
setOwner
Information about the owner of the payment instrument that may be used or required by particular source types. -
setReceiver
Optional parameters for the receiver flow. Can be set only if the source is a receiver (flowisreceiver). -
setRedirect
Parameters required for the redirect flow. Required if the source is authenticated by a redirect (flowisredirect). -
setSourceOrder
Information about the items and shipping associated with the source. Required for transactional credit (for example Klarna) sources before you can charge it. -
setStatementDescriptor
An arbitrary string to be displayed on your customer's statement. As an example, if your website isRunCluband the item you're charging for is a race ticket, you may want to specify astatement_descriptorofRunClub 5K race ticket.While many payment types will display this information, some may not display it at all. -
setToken
An optional token used to create the source. When passed, token properties will override source parameters. -
setType
Thetypeof the source to create. Required unlesscustomerandoriginal_sourceare specified (see the Cloning card Sources guide) -
setUsage
-