Package com.stripe.param.tax
Class CalculationCreateParams.Builder
java.lang.Object
com.stripe.param.tax.CalculationCreateParams.Builder
- Enclosing class:
- CalculationCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLineItem
(List<CalculationCreateParams.LineItem> elements) 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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.setCustomer
(String customer) The ID of an existing customer to use for this calculation.setCustomerDetails
(CalculationCreateParams.CustomerDetails customerDetails) Details about the customer, including address and tax IDs.setShipFromDetails
(CalculationCreateParams.ShipFromDetails shipFromDetails) Details about the address from which the goods are being shipped.setShippingCost
(CalculationCreateParams.ShippingCost shippingCost) Shipping cost details to be used for the calculation.setTaxDate
(Long taxDate) Timestamp of date at which the tax rules and rates in effect applies for the calculation.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCustomer
The ID of an existing customer to use for this calculation. If provided, the customer's address and tax IDs are copied tocustomer_details
. -
setCustomerDetails
public CalculationCreateParams.Builder setCustomerDetails(CalculationCreateParams.CustomerDetails customerDetails) Details about the customer, including address and tax IDs. -
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. SeeCalculationCreateParams.expand
for 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. SeeCalculationCreateParams.expand
for 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. SeeCalculationCreateParams.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. SeeCalculationCreateParams.extraParams
for the field documentation. -
addLineItem
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. SeeCalculationCreateParams.lineItems
for the field documentation. -
addAllLineItem
public CalculationCreateParams.Builder addAllLineItem(List<CalculationCreateParams.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. SeeCalculationCreateParams.lineItems
for the field documentation. -
setShipFromDetails
public CalculationCreateParams.Builder setShipFromDetails(CalculationCreateParams.ShipFromDetails shipFromDetails) Details about the address from which the goods are being shipped. -
setShippingCost
public CalculationCreateParams.Builder setShippingCost(CalculationCreateParams.ShippingCost shippingCost) Shipping cost details to be used for the calculation. -
setTaxDate
Timestamp of date at which the tax rules and rates in effect applies for the calculation. Measured in seconds since the Unix epoch. Can be up to 48 hours in the past, and up to 48 hours in the future.
-