package com.izouma.dingdong.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "优惠券", description = "优惠券")
public class CouponDTO {
    @ApiModelProperty(value = "优惠券名称", name = "name")
    private String name;

    @ApiModelProperty(value = "规格", name = "rule")
    private String rule;

    private LocalDate startDate;

    private LocalDate endDate;

    //商家发的优惠券
    private String merchantName;

    //优惠券描述
    private String description;

    @ApiModelProperty(value = "金额", name = "amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "满额", name = "fullAmount")
    private BigDecimal fullAmount;
}
