package com.erp.aftersale.dto.request;

import lombok.Data;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AfterSaleCreateRequest {

    /** 原订单ID */
    private Long orderId;

    /** 售后类型: refund/return/exchange/repair */
    private String type;

    /** 售后原因 */
    private String reason;

    /** 详细原因 */
    private String reasonDetail;

    /** 客户描述 */
    private String description;

    /** 申请退款金额 */
    private BigDecimal applyAmount;

    /** 运费退款金额 */
    private BigDecimal freightRefund = BigDecimal.ZERO;

    /** 申请售后的商品明细 */
    private List<AfterSaleItemRequest> items;

    /** 图片凭证URL列表 */
    private List<String> images;

    @Data
    public static class AfterSaleItemRequest {
        private Long orderItemId;
        private Long productId;
        private Long skuId;
        private Integer applyQuantity;
        private BigDecimal applyAmount;
    }
}
