package com.yami.shop.bean.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CancelOrderParam implements Serializable {

    @ApiModelProperty(value = "订单编号", required = true)
    @NotEmpty(message = "订单编号不能为空")
    private String orderNumber;

    @ApiModelProperty(value = "退款单类型（1:整单退款,2:单个物品退款）", required = true)
    @NotNull(message = "退款单类型不能为空")
    private Integer refundType;

    @ApiModelProperty(value = "申请类型(1:仅退款 2退款退货)", required = true)
    @NotNull(message = "申请类型不能为空")
    private Integer applyType;

    @ApiModelProperty(value = "货物状态(1:已收到货 0:未收到货)", required = true)
    @NotNull(message = "货物状态不能为空")
    private Boolean isReceiver;
}
