package com.hzs.retail.sale.param;

import com.hzs.common.domain.member.base.CuMember;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 新零售升级订单入参
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RetailOrderUpgradeParam extends RetailOrderParam implements Serializable {

    /**
     * 升级编号
     */
    @NotEmpty(message = "升级编号不能为空")
    @Size(max = 20, message = "升级编号不能超过20位")
    private String upgradeMemberCode;

    /**
     * 升级会员
     */
    private CuMember upgradeMember;

}
