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 RetailOrderOtherParam extends RetailOrderParam implements Serializable {

    /**
     * 购买会员编号
     */
    @NotEmpty(message = "购买会员编号不能为空")
    @Size(max = 20, message = "购买会员编号不能超过20位")
    private String buyMemberCode;

    /**
     * 购买会员
     */
    private CuMember buyMember;

}
