package org.dromara.mall.trade.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.mall.trade.domain.MallAfterSale;

/**
 * 售后申请业务对象 mall_after_sale
 *
 * @author pengles
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MallAfterSale.class, reverseConvertGenerate = false)
public class MallAfterSaleBo extends BaseEntity {

    /**
     * 售后ID
     */
    private Long id;

    /**
     * 售后单号
     */
    private String afterSaleNo;

    /**
     * 订单ID
     */
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 订单明细ID
     */
    @NotNull(message = "订单明细ID不能为空")
    private Long orderItemId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 售后类型(0退款 1退货 2换货)
     */
    @NotNull(message = "售后类型不能为空")
    private Integer type;

    /**
     * 申请原因
     */
    @NotBlank(message = "申请原因不能为空")
    private String reason;

    /**
     * 问题描述
     */
    private String description;

    /**
     * 凭证图片(JSON数组)
     */
    private String images;

    /**
     * 退款金额(分)
     */
    private Integer refundAmount;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 状态(0待审核 1已同意 2已拒绝 3待退货 4待收货 5已完成 6已取消)
     */
    private Integer status;

    /**
     * 拒绝原因
     */
    private String refuseReason;

    /**
     * 退款单号
     */
    private String refundOrderNo;

    /**
     * 物流公司
     */
    private String logisticsCompany;

    /**
     * 物流单号
     */
    private String logisticsNo;

}
