Class Calculation.ShippingCost

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

public static class Calculation.ShippingCost extends StripeObject
The value of the tax ID.
  • 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<Calculation.ShippingCost.TaxBreakdown> getTaxBreakdown()
      Detailed account of taxes relevant to shipping cost.
    • 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<Calculation.ShippingCost.TaxBreakdown> taxBreakdown)
      Detailed account of taxes relevant to shipping cost.
    • 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