package cn.common.interaction.req.wx.wxpay;

import cn.common.common.validation.NotEmpty;
import lombok.Data;

import java.io.*;
import java.math.BigDecimal;
import java.util.HashMap;

/**
 * @author Singer create by Singer email:singer-coder@qq.com
 * @packageName cn.common.interaction.req.wx.wxpay
 * @Description: 微信支付下单请求对象
 * @date 2021-02-04
 */
@Data
public class WxOrderReq implements Serializable {


    private static final long serialVersionUID = 3433220696931879850L;


    /**
      * 订单物品类型 activity 后台系统API article 文章 curriculum 课程 goods 商品
      */
    @NotEmpty(message = "订单物品类型->不可为空")
    private String orderType;


    /**
     * 是否免费
     */
    @NotEmpty(message = "是否免费->不可为空")
    private Boolean freeStatus;

    /**
     * 订单物品的主键ID
     */
    @NotEmpty(message = "订单物品的ID->不可为空")
    private String itemId;


    /**
     * 订单总金额
     */
    @NotEmpty(message = "订单总金额->不可为空")
    private BigDecimal totalAmount;

    /**
     * 物品描述
     */
    @NotEmpty(message = "物品描述->不可为空")
    private String description;

    /**
     * 订单备注
     */
    private HashMap<String,String> orderRemark;

}
