Package com.stripe.param.giftcards
Class TransactionCreateParams.Builder
java.lang.Object
com.stripe.param.giftcards.TransactionCreateParams.Builder
- Enclosing class:
- TransactionCreateParams
-
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.The amount of the transaction.setConfirm
(Boolean confirm) Whether this is a confirmed transaction.setCreatedBy
(TransactionCreateParams.CreatedBy createdBy) Related objects which created this transaction.setCurrency
(String currency) The currency of the transaction.setDescription
(String description) An arbitrary string attached to the object.setGiftCard
(String giftCard) The gift card to create a new transaction on.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 of the transaction. A negative amount deducts funds, and a positive amount adds funds. -
setConfirm
Whether this is a confirmed transaction. A confirmed transaction immediately deducts from/adds to theamount_available
on the gift card. Otherwise, it creates a held transaction that increments theamount_held
on the gift card. -
setCreatedBy
Related objects which created this transaction. -
setCurrency
The currency of the transaction. This must match the currency of the gift card. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
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. SeeTransactionCreateParams.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. SeeTransactionCreateParams.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. SeeTransactionCreateParams.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. SeeTransactionCreateParams.extraParams
for the field documentation. -
setGiftCard
The gift card to create a new transaction on. -
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. SeeTransactionCreateParams.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. SeeTransactionCreateParams.metadata
for the field documentation. -
setTransferGroup
A string that identifies this transaction as part of a group. See the Connect documentation for details.
-