Class Session.Discount

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

public static class Session.Discount extends StripeObject
For more details about Discount, please refer to the API Reference.
  • Constructor Details

    • Discount

      public Discount()
  • Method Details

    • getCoupon

      public String getCoupon()
      Get ID of expandable coupon object.
    • setCoupon

      public void setCoupon(String id)
    • getCouponObject

      public Coupon getCouponObject()
      Get expanded coupon.
    • setCouponObject

      public void setCouponObject(Coupon expandableObject)
    • getPromotionCode

      public String getPromotionCode()
      Get ID of expandable promotionCode object.
    • setPromotionCode

      public void setPromotionCode(String id)
    • getPromotionCodeObject

      public PromotionCode getPromotionCodeObject()
      Get expanded promotionCode.
    • setPromotionCodeObject

      public void setPromotionCodeObject(PromotionCode expandableObject)
    • 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