Package com.stripe.param
Class PayoutCreateParams.Builder
java.lang.Object
com.stripe.param.PayoutCreateParams.Builder
- Enclosing class:
- PayoutCreateParams
-
Constructor Summary
-
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.Required. A positive integer in cents representing how much to payout.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.setDescription
(String description) An arbitrary string attached to the object.setDestination
(String destination) The ID of a bank account or a card to send the payout to.setMethod
(PayoutCreateParams.Method method) The method used to send this payout, which isstandard
orinstant
.setSourceType
(PayoutCreateParams.SourceType sourceType) The balance type of your Stripe balance to draw this payout from.setStatementDescriptor
(String statementDescriptor) A string that displays on the recipient's bank or card statement (up to 22 characters).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. A positive integer in cents representing how much to payout. -
setCurrency
Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setDestination
The ID of a bank account or a card to send the payout to. If you don't provide a destination, we use the default external account for the specified currency. -
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. SeePayoutCreateParams.expand
for 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. SeePayoutCreateParams.expand
for 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. SeePayoutCreateParams.extraParams
for 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. SeePayoutCreateParams.extraParams
for the field documentation. -
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. SeePayoutCreateParams.metadata
for 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. SeePayoutCreateParams.metadata
for the field documentation. -
setMethod
The method used to send this payout, which isstandard
orinstant
. We supportinstant
for payouts to debit cards and bank accounts in certain countries. Learn more about bank support for Instant Payouts. -
setSourceType
The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One ofbank_account
,card
, orfpx
. -
setStatementDescriptor
A string that displays on the recipient's bank or card statement (up to 22 characters). Astatement_descriptor
that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all.
-