package com.jeequan.jeepay.core.entity;

import com.jeequan.jeepay.core.model.BaseModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * TODO
 * 订单统计
 * @author crystal
 * @date 2024/3/14 16:24
 */
@Data
@Accessors(chain = true)
public class PayOrderCount extends BaseModel {

    /**
     * 总金额
     */
    private Long totalAmt;

    /**
     * 总笔数
     */
    private Long totalNum;

    /**
     * 交易手续费
     */
    private Long totalFeeAmt;

    /**
     * 成功交易金额
     */
    private Long totalSuccAmt;

    /**
     * 成功交易笔数
     */
    private Long totalSuccNum;


    /**
     * 失败交易金额
     */
    private Long totalFailAmt;

    /**
     * 失败交易笔数
     */
    private Long totalFailNum;

    /**
     * 入账金额
     */
    private Long totalEntryAmt;

    /**
     * 实付金额
     */
    private Long totalFinalAmt;

    /**
     * 优惠金额
     */
    private Long totalDiscountAmt;

    /**
     * 补贴金额
     */
    private Long totalMarketAmt;

    /**
     * 垫资手续费
     */
    private Long totalCashFee;

    /**
     * 退款金额
     */
    private Long totalRefundAmt;

    /**
     * 退款手续费
     */
    private Long totalRefundFeeAmt;

    /**
     * 退款笔数
     */
    private Long totalRefundNum;

    /**
     * 扩展分账金额
     */
    private Long totalExtDivAmt;

    /**
     * 成功率
     */
    private BigDecimal succRate;

    private String applyId;

    private String mchFullName;

    private String mchShortName;

    private Date createdAt;

    private String groupDate;

    /**
     * 用户号
     */
    private String mchNo;
    /**
     * 用户名
     */
    private String mchName;

    private String agentNo;

    private String agentName;


    private String storeId;

    private String storeName;


    private String wayCode;


    private Long agentProfit;


    private String deviceType;

    private String deviceNo;
    
    private String deviceName;

    private String provider;



    private String isvNo;

    private String isvName;


    private String ifCode;

    private String ifName;


    private String wayType;

//    private String typeName;


    private Byte qrcType;


    private Long calBaseAmount;

    private Long calProfitAmount;

    private Long calFeeAmount;

    private String name;

    private Long totalWxSuccAmt;

    private Long totalZfbSuccAmt;

    private Long totalWxSuccNum;

    private Long totalZfbSuccNum;

    private Long totalWxAmt;

    private Long totalWxNum;

    private Long totalZfbAmt;

    private Long totalZfbNum;

    private String routeId;

    /**
     * 微信成功率
     */
    private BigDecimal wxRate;

    /**
     * 支付宝成功率
     */
    private BigDecimal zfbRate;
}
