package com.starry.admin.modules.order.module.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ApiModel(value = "订单撤销参数", description = "撤销已完成订单的请求参数")
public class PlayOrderRevocationVo {

    @NotBlank(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单ID", required = true)
    private String orderId;

    @ApiModelProperty(value = "是否退还顾客余额")
    private boolean refundToCustomer;

    @ApiModelProperty(value = "退款金额，未填写则默认订单实付金额")
    private BigDecimal refundAmount;

    @ApiModelProperty(value = "撤销原因")
    private String refundReason;

    @ApiModelProperty(value = "是否扣回店员收益")
    private boolean deductClerkEarnings;

    @ApiModelProperty(value = "扣回金额，未填写则默认按本单收益全额扣回")
    private BigDecimal deductAmount;
}
