Package com.stripe.param.tax
Class TransactionCreateReversalParams.LineItem.Builder
java.lang.Object
com.stripe.param.tax.TransactionCreateReversalParams.LineItem.Builder
- Enclosing class:
- TransactionCreateReversalParams.LineItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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. The amount to reverse, in the smallest currency unit in negative.setAmountTax
(Long amountTax) Required. The amount of tax to reverse, in the smallest currency unit in negative.setOriginalLineItem
(String originalLineItem) Required. Theid
of the line item to reverse in the original transaction.setQuantity
(Long quantity) The quantity reversed.setReference
(String reference)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. The amount to reverse, in the smallest currency unit in negative. -
setAmountTax
Required. The amount of tax to reverse, in the smallest currency unit in negative. -
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.LineItem.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. SeeTransactionCreateReversalParams.LineItem.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. SeeTransactionCreateReversalParams.LineItem.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. SeeTransactionCreateReversalParams.LineItem.metadata
for the field documentation. -
setOriginalLineItem
public TransactionCreateReversalParams.LineItem.Builder setOriginalLineItem(String originalLineItem) Required. Theid
of the line item to reverse in the original transaction. -
setQuantity
The quantity reversed. Appears in tax exports, but does not affect the amount of tax reversed. -
setReference
-