package com.fs.store.param;

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

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

@Data
public class FsStoreOrderCreateParam implements Serializable
{
    private Long companyId;
    private Long companyUserId;
    private Long userId;
    @ApiModelProperty(value = "orderKey")
    @NotNull(message = "orderKey不能为空")
    private String orderKey;
    @ApiModelProperty(value = "地址ID")
    @NotNull(message = "地址不能为空")
    private Long addressId;

    @ApiModelProperty(value = "来源")
    private String from;

    @Size(max = 200,message = "长度超过了限制")
    @ApiModelProperty(value = "备注")
    private String mark;

    @NotBlank(message="请选择支付方式")
    @ApiModelProperty(value = "支付方式")
    private String payType;

    @ApiModelProperty(value = "使用积分 1使用")
    private Integer useIntegral;
    private BigDecimal payPrice;
    private Long paymentId;

    @ApiModelProperty(value = "优惠券")
    private Long couponUserId;

    private Long tuiUserId;

    private String createOrderKey;

    //订单创建类型 1普通订单 2套餐订单 3制单
    private Integer orderCreateType;

}
