Package com.stripe.param
Class InvoiceAddLinesParams.Line.TaxAmount.Builder
java.lang.Object
com.stripe.param.InvoiceAddLinesParams.Line.TaxAmount.Builder
- Enclosing class:
- InvoiceAddLinesParams.Line.TaxAmount
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Required. The amount, in cents (or local equivalent), of the tax.setTaxableAmount
(Long taxableAmount) Required. The amount on which tax is calculated, in cents (or local equivalent).Required. Data to find or create a TaxRate object.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. The amount, in cents (or local equivalent), of the tax. -
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. SeeInvoiceAddLinesParams.Line.TaxAmount.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. SeeInvoiceAddLinesParams.Line.TaxAmount.extraParams
for the field documentation. -
setTaxRateData
public InvoiceAddLinesParams.Line.TaxAmount.Builder setTaxRateData(InvoiceAddLinesParams.Line.TaxAmount.TaxRateData taxRateData) Required. Data to find or create a TaxRate object.Stripe automatically creates or reuses a TaxRate object for each tax amount. If the
tax_rate_data
exactly matches a previous value, Stripe will reuse the TaxRate object. TaxRate objects created automatically by Stripe are immediately archived, do not appear in the line item’stax_rates
, and cannot be directly added to invoices, payments, or line items. -
setTaxableAmount
Required. The amount on which tax is calculated, in cents (or local equivalent).
-