Package com.stripe.param.tax
Class CalculationCreateParams.ShippingCost.Builder
java.lang.Object
com.stripe.param.tax.CalculationCreateParams.ShippingCost.Builder
- Enclosing class:
- CalculationCreateParams.ShippingCost
-
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.A positive integer in the smallest currency unit representing the shipping charge.setShippingRate
(String shippingRate) Specifies whether theamount
includes taxes.setTaxCode
(String taxCode) The tax code used to calculate tax on shipping.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
A positive integer in the smallest currency unit representing the shipping charge. Iftax_behavior=inclusive
, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. -
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.ShippingCost.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.ShippingCost.extraParams
for the field documentation. -
setShippingRate
If provided, the shipping rate'samount
,tax_code
andtax_behavior
are used. If you provide a shipping rate, then you cannot pass theamount
,tax_code
, ortax_behavior
parameters. -
setTaxBehavior
public CalculationCreateParams.ShippingCost.Builder setTaxBehavior(CalculationCreateParams.ShippingCost.TaxBehavior taxBehavior) Specifies whether theamount
includes taxes. Iftax_behavior=inclusive
, then the amount includes taxes. Defaults toexclusive
. -
setTaxCode
The tax code used to calculate tax on shipping. If not provided, the default shipping tax code from your Tax Settings is used.
-