Package com.stripe.param
Class InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder
java.lang.Object
com.stripe.param.InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder
- Enclosing class:
- InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData
-
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.setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).setDescription
(String description) An arbitrary string attached to the tax rate for your internal use only.setDisplayName
(String displayName) Required. The display name of the tax rate, which will be shown to users.setInclusive
(Boolean inclusive) Required. This specifies if the tax rate is inclusive or exclusive.setJurisdiction
(String jurisdiction) The jurisdiction for the tax rate.setPercentage
(BigDecimal percentage) Required. The statutory tax rate percent.ISO 3166-2 subdivision code, without country prefix.The high-level tax type, such asvat
orsales_tax
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCountry
Two-letter country code (ISO 3166-1 alpha-2). -
setDescription
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder setDescription(String description) An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. -
setDisplayName
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder setDisplayName(String displayName) Required. The display name of the tax rate, which will be shown to users. -
putExtraParam
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder putExtraParam(String key, Object value) 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. SeeInvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder putAllExtraParam(Map<String, Object> map) 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. SeeInvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.extraParams
for the field documentation. -
setInclusive
Required. This specifies if the tax rate is inclusive or exclusive. -
setJurisdiction
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder setJurisdiction(String jurisdiction) The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice. -
setPercentage
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder setPercentage(BigDecimal percentage) Required. The statutory tax rate percent. This field accepts decimal values between 0 and 100 inclusive with at most 4 decimal places. To accommodate fixed-amount taxes, set the percentage to zero. Stripe will not display zero percentages on the invoice unless theamount
of the tax is also zero. -
setState
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. -
setTaxType
public InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.Builder setTaxType(InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.TaxType taxType) The high-level tax type, such asvat
orsales_tax
.
-