
package com.tmerclub.cloud.api.order.vo;

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

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Pineapple
 * @date 2021/5/21 16:06
 */
@Data
public class OrderRefundProdEffectRespVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 商品id
     */
    @Schema(description = "商品id")
    private Long spuId;
    /**
     * 申请退款订单数
     */
    @Schema(description = "申请退款订单数")
    private Integer refundNum;

    /**
     * 申请退款人数
     */
    @Schema(description = "申请退款人数")
    private Integer refundPerson;
    /**
     * 成功退款订单数
     */
    @Schema(description = "成功退款订单数")
    private Integer refundSuccessNum;
    /**
     * 成功退款人数
     */
    @Schema(description = "成功退款人数")
    private Integer refundSuccessPerson;
    /**
     * 成功退款金额
     */
    @Schema(description = "成功退款金额")
    private Double refundSuccessAmount;
    /**
     * 退款率
     */
    @Schema(description = "退款率")
    private Double refundSuccessRate;

    public OrderRefundProdEffectRespVO() {
    }

    public OrderRefundProdEffectRespVO(Long spuId, Integer refundNum, Integer refundPerson, Integer refundSuccessNum, Integer refundSuccessPerson, Double refundSuccessAmount, Double refundSuccessRate) {
        this.spuId = spuId;
        this.refundNum = refundNum;
        this.refundPerson = refundPerson;
        this.refundSuccessNum = refundSuccessNum;
        this.refundSuccessPerson = refundSuccessPerson;
        this.refundSuccessAmount = refundSuccessAmount;
        this.refundSuccessRate = refundSuccessRate;
    }


    @Override
    public String toString() {
        return "OrderRefundProdEffectRespVO{" +
                ", spuId" + spuId +
                ", refundNum=" + refundNum +
                ", refundPerson=" + refundPerson +
                ", refundSuccessNum=" + refundSuccessNum +
                ", refundSuccessPerson=" + refundSuccessPerson +
                ", refundSuccessAmount=" + refundSuccessAmount +
                ", refundSuccessRate=" + refundSuccessRate +
                '}';
    }
}
