package com.gxwebsoft.shop.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 查询个人核销记录
 *
 */
@Data
@Schema(name = "ShopOrderMyVerifyDto", description = "查询个人核销记录")
public class ShopOrderMyVerifyItemVO {

    @Schema(description = "订单号")
    private Integer orderId;

    @Schema(description = "订单类型 1-及时自配送 2-自提 3-预约自配送 4-发快递")
    private Integer orderType;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "订单总额")
    private BigDecimal totalPrice;

    @Schema(description = "实际付款")
    private BigDecimal payPrice;

    @Schema(description = "购买数量")
    @Min(value = 1, message = "购买数量必须大于0")
    private Integer totalNum;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "活动名称")
    private String activeName;

    @Schema(description = "支付方式：0余额支付，1微信支付，2支付宝支付，3银联支付，4现金支付，5POS机支付，6免费，7积分支付")
    private Integer payType;

    @Schema(description = "0未付款，1已付款")
    private Boolean payStatus;

    @Schema(description = "0未使用，1已完成，2已取消，3取消中，4退款申请中，5退款被拒绝，6退款成功，7客户端申请退款")
    private Integer orderStatus;

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "核销时间")
    private LocalDateTime verifyTime;

    @Schema(description = "核销人")
    private Integer verifyUser;

    @Schema(description = "推广核销佣金")
    private BigDecimal verifyMoney;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}

