package com.cpop.jambox.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author DB
 * @version 1.0.0
 * @since 2023-12-21 17:15
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "OncePlaceOrderBo对象", description = "一次性支付参数")
public class OncePlaceOrderBo {

    /**
     * 品牌id
     */
    @NotBlank(message = "品牌id不能为空")
    @ApiModelProperty(value = "品牌id",required = true)
    private String brandCloudId;

    /**
     * 校区id
     */
    @NotBlank(message = "校区id不能为空")
    @ApiModelProperty(value = "校区id",required = true)
    private String storeCloudId;

    /**
     * 客户名
     */
    @NotBlank(message = "客户名不能为空")
    @ApiModelProperty(value = "客户名",required = true)
    private String customerName;

    /**
     * 客户电话
     */
    @NotBlank(message = "客户电话不能为空")
    @ApiModelProperty(value = "客户电话",required = true)
    private String customerPhone;

    /**
     * 云id
     */
    @NotBlank(message = "云订单id不能为空")
    @ApiModelProperty(value = "云订单id",required = true)
    private String orderCloudId;

    /**
     * 总金额
     */
    @NotNull(message = "总金额不能为空")
    @ApiModelProperty(value = "总金额",required = true)
    private BigDecimal totalAmount;

    /**
     * 总支付金额
     */
    @NotNull(message = "总支付金额不能为空")
    @ApiModelProperty(value = "总支付金额",required = true)
    private BigDecimal totalPayAmount;

    /**
     * openId
     */
    @ApiModelProperty("openId")
    private String openId;

    /**
     * 订单名
     */
    @ApiModelProperty("订单内容(课卡名/商品名)")
    private String orderContent;

}
