Class Session.ShippingCost

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

public static class Session.ShippingCost extends StripeObject
  • 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)
    • getAmountSubtotal

      public Long getAmountSubtotal()
      Total shipping cost before any discounts or 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 discounts and taxes are applied.
    • getTaxes

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

      public void setAmountSubtotal(Long amountSubtotal)
      Total shipping cost before any discounts or 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 discounts and taxes are applied.
    • setTaxes

      public void setTaxes(List<Session.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