Package com.dzidzi.dto.coupon
Class AddCouponRequest.Builder
java.lang.Object
com.dzidzi.dto.coupon.AddCouponRequest.Builder
- Enclosing class:
AddCouponRequest
-
Method Summary
Modifier and TypeMethodDescriptionassignedToRestaurants(List<UUID> assignedToRestaurants) The restaurants to assign this coupon to, mostly used by restaurants with branches.build()couponAmount(BigDecimal couponAmount) The coupon amountcouponCode(String couponCode) The coupon code.couponName(String couponName) The coupon namedescription(String description) The description of the couponThe end date of the couponforTest(boolean forTest) percentage(Double percentage) The coupon percentageThe start date of the coupontoString()
-
Method Details
-
couponName
The coupon name- Returns:
this.
-
couponCode
The coupon code. If no code is specified, the platform generates the code.- Returns:
this.
-
percentage
The coupon percentage- Returns:
this.
-
couponAmount
The coupon amount- Returns:
this.
-
description
The description of the coupon- Returns:
this.
-
startDate
The start date of the coupon- Returns:
this.
-
endDate
The end date of the coupon- Returns:
this.
-
assignedToRestaurants
The restaurants to assign this coupon to, mostly used by restaurants with branches.- Returns:
this.
-
forTest
- Returns:
this.
-
build
-
toString
-