package com.jeequan.jeepay.thirdparty.channel.lklspay.model;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;

import java.util.UUID;

/**
 * TODO
 * 拉卡拉结算信息请求参数封装
 * @author crystal
 * @date 2023/12/7 11:16
 */
@Data
public class LklSettleReq {

    private Long timestamp;

    private String ver;

    private String reqId;

    private JSONObject reqData;

    public LklSettleReq(JSONObject bizData) {
        this.timestamp = System.currentTimeMillis();
        this.reqId = DateUtil.format(new DateTime(), DatePattern.PURE_DATETIME_MS_PATTERN);
        this.ver = "1.0.0";
        this.reqData = bizData;
    }
}
