public class CouponAvailableTime extends Object
| Modifier and Type | Field and Description |
|---|---|
private OffsetDateTime |
availableBeginTime
批次开始时间 rfc 3339 yyyy-MM-ddTHH:mm:ss+TIMEZONE
|
private Integer |
availableDayAfterReceive
生效后N天内有效
|
private OffsetDateTime |
availableEndTime
批次结束时间 rfc 3339 yyyy-MM-ddTHH:mm:ss+TIMEZONE
|
private AvailableWeek |
availableWeek
固定周期有效时间段
|
private List<IrregularyAvaliableTimeItem> |
irregularyAvaliableTime
无规律的有效时间段
|
private Integer |
waitDaysAfterReceive
领取后N天开始生效
|
| Constructor and Description |
|---|
CouponAvailableTime(Integer waitDaysAfterReceive,
Integer availableDayAfterReceive,
OffsetDateTime availableBeginTime,
OffsetDateTime availableEndTime,
AvailableWeek availableWeek,
List<IrregularyAvaliableTimeItem> irregularyAvaliableTime)
Instantiates a new Coupon available time.
|
CouponAvailableTime(OffsetDateTime availableBeginTime,
OffsetDateTime availableEndTime)
Instantiates a new Coupon available time.
|
| Modifier and Type | Method and Description |
|---|---|
CouponAvailableTime |
availableDayAfterReceive(Integer availableDayAfterReceive)
Available day after receive coupon available time.
|
CouponAvailableTime |
availableWeek(AvailableWeek availableWeek)
Available week coupon available time.
|
CouponAvailableTime |
irregularyAvaliableTime(List<IrregularyAvaliableTimeItem> irregularyAvaliableTime)
Irregulary avaliable time coupon available time.
|
CouponAvailableTime |
waitDaysAfterReceive(Integer waitDaysAfterReceive)
Wait days after receive coupon available time.
|
private Integer waitDaysAfterReceive
日期区间内,用户领券后需等待x天开始生效。例如领券后当天开始生效则无需填写,领券后第2天开始生效填1,以此类推……
用户在有效期开始前领取商家券,则从有效期第1天开始计算天数,用户在有效期内领取商家券,则从领取当天开始计算天数。无论用户何时领取商家券,商家券在活动有效期结束后均不可用。
需配合availableDayAfterReceive 一同填写,不可单独填写。
private Integer availableDayAfterReceive
日期区间内,券生效后x天内有效。例如生效当天内有效填1,生效后2天内有效填2,以此类推……
注意,用户在有效期开始前领取商家券,则从有效期第1天开始计算天数,用户在有效期内领取商家券,则从领取当天开始计算天数,无论用户何时领取商家券,商家券在活动有效期结束后均不可用。
可配合waitDaysAfterReceive一同填写,也可单独填写。单独填写时,有效期内领券后立即生效,生效后x天内有效。
private final OffsetDateTime availableBeginTime
private final OffsetDateTime availableEndTime
private AvailableWeek availableWeek
private List<IrregularyAvaliableTimeItem> irregularyAvaliableTime
public CouponAvailableTime(OffsetDateTime availableBeginTime, OffsetDateTime availableEndTime)
availableBeginTime - the available begin timeavailableEndTime - the available end timeCouponAvailableTime(Integer waitDaysAfterReceive, Integer availableDayAfterReceive, OffsetDateTime availableBeginTime, OffsetDateTime availableEndTime, AvailableWeek availableWeek, List<IrregularyAvaliableTimeItem> irregularyAvaliableTime)
waitDaysAfterReceive - the wait days after receiveavailableDayAfterReceive - the available day after receiveavailableBeginTime - the available begin timeavailableEndTime - the available end timeavailableWeek - the available weekirregularyAvaliableTime - the irregulary avaliable timepublic CouponAvailableTime waitDaysAfterReceive(Integer waitDaysAfterReceive)
waitDaysAfterReceive - the wait days after receivepublic CouponAvailableTime availableDayAfterReceive(Integer availableDayAfterReceive)
availableDayAfterReceive - the available day after receivepublic CouponAvailableTime availableWeek(AvailableWeek availableWeek)
availableWeek - the available weekpublic CouponAvailableTime irregularyAvaliableTime(List<IrregularyAvaliableTimeItem> irregularyAvaliableTime)
irregularyAvaliableTime - the irregulary avaliable timeCopyright © 2023. All rights reserved.