Class Transaction.ShippingCost

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.tax.Transaction.ShippingCost
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Transaction

public static class Transaction.ShippingCost extends StripeObject
State/province as an ISO 3166-2 subdivision code, without country prefix. Example: "NY" or "TX".
  • Constructor Details

    • ShippingCost

      public ShippingCost()
  • Method Details

    • getAmount

      public Long getAmount()
      The shipping amount in the smallest currency unit. If tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
    • getAmountTax

      public Long getAmountTax()
      The amount of tax calculated for shipping, in the smallest currency unit.
    • getShippingRate

      public String getShippingRate()
      The ID of an existing ShippingRate.
    • getTaxBehavior

      public String getTaxBehavior()
      Specifies whether the amount includes taxes. If tax_behavior=inclusive, then the amount includes taxes.

      One of exclusive, or inclusive.

    • getTaxBreakdown

      public List<Transaction.ShippingCost.TaxBreakdown> 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

      public String getTaxCode()
      The tax code ID used for shipping.
    • setAmount

      public void setAmount(Long amount)
      The shipping amount in the smallest currency unit. If tax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.
    • setAmountTax

      public void setAmountTax(Long amountTax)
      The amount of tax calculated for shipping, in the smallest currency unit.
    • setShippingRate

      public void setShippingRate(String shippingRate)
      The ID of an existing ShippingRate.
    • setTaxBehavior

      public void setTaxBehavior(String taxBehavior)
      Specifies whether the amount includes taxes. If tax_behavior=inclusive, then the amount includes taxes.

      One of exclusive, or inclusive.

    • setTaxBreakdown

      public void setTaxBreakdown(List<Transaction.ShippingCost.TaxBreakdown> taxBreakdown)
      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

      public void setTaxCode(String taxCode)
      The tax code ID used for shipping.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object