package com.bonus.canteen.core.account.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class AccTradeVo {
    private Long userId;
    private Long deptId;
    private Long orderNo;//商户订单号, 商户网站订单系统中唯一订单号，必填
    private String orderName;//订单名称, 必填
    private BigDecimal paymentAmount;//付款金额, 必填
    private String productDesc;//商品描述
    private Long amount; //金额（单位：分）
    private Long tradeType;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date tradeTime;
    private Long tradeState;
    private Long payType;
    private Integer payState; //是否付款  true - 已付 false-未付
    private String thirdTradeNo; //三方，支付宝交易号
    private String failReason;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateTime;
}