package com.yc.ship.module.marketing.api.coupon.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "RPC 服务 - 优惠券 Response DTO")
@Data
public class CouponRespDto {
    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19248")
    private Long id;

    @Schema(description = "优惠券名称", example = "张三")
    private String name;

    @Schema(description = "优惠券类型", example = "1")
    private Integer type;

    @Schema(description = "使用渠道")
    private Integer useChannel;


    @Schema(description = "使用说明", example = "你说的对")
    private String description;

    @Schema(description = "门槛费（满减的满金额）")
    private BigDecimal basic;

    @Schema(description = "金额，折扣")
    private BigDecimal quota;

    @Schema(description = "最大减免")
    private BigDecimal maximum;

    @Schema(description = "是否多券同用")
    private Integer multiple;

    @Schema(description = "有效开始时间")
    private LocalDateTime effectiveStart;

    @Schema(description = "有效结束时间")
    private LocalDateTime effectiveEnd;

    @Schema(description = "动态有效时长（分钟数）")
    private Integer effectiveTime;
    @Schema(description = "优惠金额")
    private BigDecimal amount;

    @Schema(description = "发放用户组类型")
    private Integer deliverUserGroupType;

    @Schema(description = "优惠券码ID")
    private Long couponCodeId;
}
