Package com.stripe.param
Class ChargeCaptureParams.Builder
java.lang.Object
com.stripe.param.ChargeCaptureParams.Builder
- Enclosing class:
- ChargeCaptureParams
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.The amount to capture, which must be less than or equal to the original amount.setApplicationFee
(Long applicationFee) An application fee to add on to this charge.setApplicationFeeAmount
(Long applicationFeeAmount) An application fee amount to add on to this charge, which must be less than or equal to the original amount.setReceiptEmail
(String receiptEmail) The email address to send this charge's receipt to.setStatementDescriptor
(String statementDescriptor) For a non-card charge, text that appears on the customer's statement as the statement descriptor.setStatementDescriptorSuffix
(String statementDescriptorSuffix) Provides information about a card charge.setTransferData
(ChargeCaptureParams.TransferData transferData) An optional dictionary including the account to automatically transfer to as part of a destination charge.setTransferGroup
(String transferGroup) A string that identifies this transaction as part of a group.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
The amount to capture, which must be less than or equal to the original amount. Any additional amount will be automatically refunded. -
setApplicationFee
An application fee to add on to this charge. -
setApplicationFeeAmount
An application fee amount to add on to this charge, which must be less than or equal to the original amount. -
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. SeeChargeCaptureParams.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. SeeChargeCaptureParams.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. SeeChargeCaptureParams.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. SeeChargeCaptureParams.extraParams
for the field documentation. -
setReceiptEmail
The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode. -
setStatementDescriptor
For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see the Statement Descriptor docs.For a card charge, this value is ignored unless you don't specify a
statement_descriptor_suffix
, in which case this value is used as the suffix. -
setStatementDescriptorSuffix
Provides information about a card charge. Concatenated to the account's statement descriptor prefix to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor. -
setTransferData
An optional dictionary including the account to automatically transfer to as part of a destination charge. See the Connect documentation for details. -
setTransferGroup
A string that identifies this transaction as part of a group.transfer_group
may only be provided if it has not been set. See the Connect documentation for details.
-