package com.ruoyi.newwxpay.refund;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
public class WxMinRefundRequest {

    /**
     * 微信订单号
     */
    @NotBlank(message = "微信订单号不能为空")
    private String transactionId;
    /**
     * 商家本地系统的退款单号
     */
    @NotBlank(message = "商家本地系统的退款单号不能为空")
    private String outRefundNo;
    /**
     * 订单总金额
     */
    @NotNull(message = "订单总金额不能为空")
    private BigDecimal total;
    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空")
    private BigDecimal refund;
}
