Class PromotionCode.Promotion

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PromotionCode.Promotion
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
PromotionCode

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

    • Promotion

      public Promotion()
  • 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)
    • getType

      public String getType()
      The type of promotion.

      Equal to coupon.

    • setType

      public void setType(String type)
      The type of promotion.

      Equal to coupon.

    • 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