Package com.stripe.model.tax
Class Transaction.ShippingCost
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.tax.Transaction.ShippingCost
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Transaction
State/province as an ISO 3166-2
subdivision code, without country prefix. Example: "NY" or "TX".
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The shipping amount in the smallest currency unit.The amount of tax calculated for shipping, in the smallest currency unit.The ID of an existing ShippingRate.Specifies whether theamount
includes taxes.Detailed account of taxes relevant to shipping cost.The tax code ID used for shipping.int
hashCode()
void
The shipping amount in the smallest currency unit.void
setAmountTax
(Long amountTax) The amount of tax calculated for shipping, in the smallest currency unit.void
setShippingRate
(String shippingRate) The ID of an existing ShippingRate.void
setTaxBehavior
(String taxBehavior) Specifies whether theamount
includes taxes.void
setTaxBreakdown
(List<Transaction.ShippingCost.TaxBreakdown> taxBreakdown) Detailed account of taxes relevant to shipping cost.void
setTaxCode
(String taxCode) The tax code ID used for shipping.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ShippingCost
public ShippingCost()
-
-
Method Details
-
getAmount
The shipping amount in the smallest currency unit. Iftax_behavior=inclusive
, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. -
getAmountTax
The amount of tax calculated for shipping, in the smallest currency unit. -
getShippingRate
The ID of an existing ShippingRate. -
getTaxBehavior
Specifies whether theamount
includes taxes. Iftax_behavior=inclusive
, then the amount includes taxes.One of
exclusive
, orinclusive
. -
getTaxBreakdown
Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.) -
getTaxCode
The tax code ID used for shipping. -
setAmount
The shipping amount in the smallest currency unit. Iftax_behavior=inclusive
, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. -
setAmountTax
The amount of tax calculated for shipping, in the smallest currency unit. -
setShippingRate
The ID of an existing ShippingRate. -
setTaxBehavior
Specifies whether theamount
includes taxes. Iftax_behavior=inclusive
, then the amount includes taxes.One of
exclusive
, orinclusive
. -
setTaxBreakdown
Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.) -
setTaxCode
The tax code ID used for shipping. -
equals
-
canEqual
-
hashCode
public int hashCode()
-