Class Invoice.ShippingCost

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Invoice.ShippingCost
All Implemented Interfaces:
StripeActiveObject, StripeObjectInterface
Enclosing class:
Invoice

public static class Invoice.ShippingCost extends StripeObject implements StripeActiveObject
For more details about ShippingCost, please refer to the API Reference.
  • Constructor Details

    • ShippingCost

      public ShippingCost()
  • Method Details

    • getShippingRate

      public String getShippingRate()
      Get ID of expandable shippingRate object.
    • setShippingRate

      public void setShippingRate(String id)
    • getShippingRateObject

      public ShippingRate getShippingRateObject()
      Get expanded shippingRate.
    • setShippingRateObject

      public void setShippingRateObject(ShippingRate expandableObject)
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAmountSubtotal

      public Long getAmountSubtotal()
      Total shipping cost before any taxes are applied.
    • getAmountTax

      public Long getAmountTax()
      Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
    • getAmountTotal

      public Long getAmountTotal()
      Total shipping cost after taxes are applied.
    • getTaxes

      public List<Invoice.ShippingCost.Tax> getTaxes()
      The taxes applied to the shipping rate.
    • setAmountSubtotal

      public void setAmountSubtotal(Long amountSubtotal)
      Total shipping cost before any taxes are applied.
    • setAmountTax

      public void setAmountTax(Long amountTax)
      Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
    • setAmountTotal

      public void setAmountTotal(Long amountTotal)
      Total shipping cost after taxes are applied.
    • setTaxes

      public void setTaxes(List<Invoice.ShippingCost.Tax> taxes)
      The taxes applied to the shipping rate.
    • 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