Class AddCouponRequest

java.lang.Object
com.dzidzi.dto.coupon.AddCouponRequest

public class AddCouponRequest extends Object
AddCouponRequest represents the DTO request containing the objects used to create a new coupon.
  • Constructor Details

    • AddCouponRequest

      public AddCouponRequest()
    • AddCouponRequest

      @ConstructorProperties({"couponName","couponCode","percentage","couponAmount","description","startDate","endDate","assignedToRestaurants","forTest"}) public AddCouponRequest(String couponName, String couponCode, Double percentage, BigDecimal couponAmount, String description, Date startDate, Date endDate, List<UUID> assignedToRestaurants, boolean forTest)
      Creates a new AddCouponRequest instance.
      Parameters:
      couponName - The coupon name
      couponCode - The coupon code. If no code is specified, the platform generates the code.
      percentage - The coupon percentage
      couponAmount - The coupon amount
      description - The description of the coupon
      startDate - The start date of the coupon
      endDate - The end date of the coupon
      assignedToRestaurants - The restaurants to assign this coupon to, mostly used by restaurants with branches.
      forTest -
  • Method Details

    • builder

      public static AddCouponRequest.Builder builder()
    • getCouponName

      public String getCouponName()
      The coupon name
    • getCouponCode

      public String getCouponCode()
      The coupon code. If no code is specified, the platform generates the code.
    • getPercentage

      public Double getPercentage()
      The coupon percentage
    • getCouponAmount

      public BigDecimal getCouponAmount()
      The coupon amount
    • 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
    • getAssignedToRestaurants

      public List<UUID> getAssignedToRestaurants()
      The restaurants to assign this coupon to, mostly used by restaurants with branches.
    • isForTest

      public boolean isForTest()