package com.yc.ship.module.trade.controller.admin.order.vo.refund;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

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

@Schema(description = "退款 Request VO")
@Data
public class TradeRefundAmountReqVO {

    @Schema(description =  "订单ID", example = "")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @Schema(description = "退款金额", example = "")
    @NotNull(message = "退款金额不能为空")
    private BigDecimal refundAmount;

    @Schema(description = "申请理由", example = "")
    @NotBlank(message = "申请理由不能为空")
    @Length(max = 120)
    private String reason;
}
