package com.fs.hisStore.param;

import com.fs.hisStore.vo.FsStoreProductAttrValueVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class FsStoreOrderCreateUserParam implements Serializable
{
    private Long companyId;
    private Long companyUserId;
    @NotNull(message = "会员不能为空")
    private Long userId;
    @NotNull(message = "地址不能为空")
    private Long addressId;
    @Size(max = 200,message = "备注长度超过了限制")
    @ApiModelProperty(value = "备注")
    private String mark;
    @NotNull(message = "商品不能为空")
    private List<FsStoreProductAttrValueVO> products;
    @NotNull(message = "付款方式不能为空")
    private Integer payType;
    private Long paymentId;
    private BigDecimal payPrice; //改价 订单总价
    private Long customerId;
    private BigDecimal amount; //货到付款代收金额
    private Integer orderType; //订单类型
    private Integer orderMedium; //媒体来源
    private Long couponUserId; //优惠券ID
    private Long deductionCouponUserId; //立减金优惠券用户ID
}
