Package com.stripe.param.tax
Class TransactionCreateReversalParams.Builder
java.lang.Object
com.stripe.param.tax.TransactionCreateReversalParams.Builder
- Enclosing class:
- TransactionCreateReversalParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add all elements to `lineItems` list.Add an element to `expand` list.Add an element to `lineItems` 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.setFlatAmount(Long flatAmount) A flat amount to reverse across the entire transaction, in the smallest currency unit in negative.Required. Ifpartial, the provided line item or shipping cost amounts are reversed.setOriginalTransaction(String originalTransaction) Required. The ID of the Transaction to partially or fully reverse.setReference(String reference) Required. A custom identifier for this reversal, such asmyOrder_123-refund_1, which must be unique across all transactions.setShippingCost(TransactionCreateReversalParams.ShippingCost shippingCost) The shipping cost to reverse.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. SeeTransactionCreateReversalParams.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. SeeTransactionCreateReversalParams.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. SeeTransactionCreateReversalParams.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. SeeTransactionCreateReversalParams.extraParamsfor the field documentation. -
setFlatAmount
A flat amount to reverse across the entire transaction, in the smallest currency unit in negative. This value represents the total amount to refund from the transaction, including taxes. -
addLineItem
public TransactionCreateReversalParams.Builder addLineItem(TransactionCreateReversalParams.LineItem element) Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTransactionCreateReversalParams.lineItemsfor the field documentation. -
addAllLineItem
public TransactionCreateReversalParams.Builder addAllLineItem(List<TransactionCreateReversalParams.LineItem> elements) Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTransactionCreateReversalParams.lineItemsfor 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. SeeTransactionCreateReversalParams.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. SeeTransactionCreateReversalParams.metadatafor the field documentation. -
setMode
Required. Ifpartial, the provided line item or shipping cost amounts are reversed. Iffull, the original transaction is fully reversed. -
setOriginalTransaction
Required. The ID of the Transaction to partially or fully reverse. -
setReference
Required. A custom identifier for this reversal, such asmyOrder_123-refund_1, which must be unique across all transactions. The reference helps identify this reversal transaction in exported tax reports. -
setShippingCost
public TransactionCreateReversalParams.Builder setShippingCost(TransactionCreateReversalParams.ShippingCost shippingCost) The shipping cost to reverse.
-