Class Coupon


public class Coupon extends CouponEntityApi
Represents a coupon of the api.
  • Constructor Details

  • Method Details

    • getCouponCode

      public String getCouponCode()
      The coupon number
    • getDescription

      public String getDescription()
      The description of the coupon
    • getStartDate

      public Date getStartDate()
      The start date of the coupon
    • getEndDate

      public Date getEndDate()
      The end date of the coupon
    • getCreatedOn

      public long getCreatedOn()
      The date and time the coupon was created
    • isActive

      public boolean isActive()
      The validity of the coupon
    • getCreatedBy

      public CreatorEntity getCreatedBy()
      The CreatorEntity of the user who created the coupon
    • getModifiedOn

      public long getModifiedOn()
      The date and time modified
    • getModifiedBy

      public CreatorEntity getModifiedBy()
      The CreatorEntity of the user who modified the coupon
    • getCouponType

      public CouponType getCouponType()
    • getRestaurantsAppliedTo

      public List<UUID> getRestaurantsAppliedTo()
      The restaurantIds this coupon is applied to.
    • setCreatedBy

      public void setCreatedBy(CreatorEntity createdBy)
      The CreatorEntity of the user who created the coupon
    • setModifiedBy

      public void setModifiedBy(CreatorEntity modifiedBy)
      The CreatorEntity of the user who modified the coupon
    • setRestaurantsAppliedTo

      public void setRestaurantsAppliedTo(List<UUID> restaurantsAppliedTo)
      The restaurantIds this coupon is applied to.