Package com.stripe.param
Class InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder
java.lang.Object
com.stripe.param.InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder
- Enclosing class:
- InvoiceLineItemUpdateParams.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
(EmptyParam country) Two-letter country code (ISO 3166-1 alpha-2).setCountry
(String country) Two-letter country code (ISO 3166-1 alpha-2).setDescription
(EmptyParam description) An arbitrary string attached to the tax rate for your internal use only.setDescription
(String description) An arbitrary string attached to the tax rate for your internal use only.setDisplayName
(EmptyParam displayName) Required. The display name of the tax rate, which will be shown to users.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
(EmptyParam jurisdiction) The jurisdiction for the tax rate.setJurisdiction
(String jurisdiction) The jurisdiction for the tax rate.setPercentage
(BigDecimal percentage) Required. The statutory tax rate percent.setState
(EmptyParam state) ISO 3166-2 subdivision code, without country prefix.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). -
setCountry
Two-letter country code (ISO 3166-1 alpha-2). -
setDescription
An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. -
setDescription
public InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder setDescription(EmptyParam description) An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. -
setDisplayName
Required. The display name of the tax rate, which will be shown to users. -
setDisplayName
public InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder setDisplayName(EmptyParam displayName) Required. The display name of the tax rate, which will be shown to users. -
putExtraParam
public InvoiceLineItemUpdateParams.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. SeeInvoiceLineItemUpdateParams.TaxAmount.TaxRateData.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceLineItemUpdateParams.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. SeeInvoiceLineItemUpdateParams.TaxAmount.TaxRateData.extraParams
for the field documentation. -
setInclusive
Required. This specifies if the tax rate is inclusive or exclusive. -
setJurisdiction
public InvoiceLineItemUpdateParams.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. -
setJurisdiction
public InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder setJurisdiction(EmptyParam 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 InvoiceLineItemUpdateParams.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. -
setState
ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. -
setTaxType
public InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.Builder setTaxType(InvoiceLineItemUpdateParams.TaxAmount.TaxRateData.TaxType taxType) The high-level tax type, such asvat
orsales_tax
.
-