package com.jeequan.jeepay.core.model.openapi.biz.cashier;

import com.alibaba.fastjson.JSONObject;
import com.jeequan.jeepay.core.entity.PayOrder;
import com.jeequan.jeepay.core.model.openapi.biz.PayResultResp;
import com.jeequan.jeepay.core.model.rqrs.msg.ChannelAppletPayMsg;
import com.jeequan.jeepay.core.model.rqrs.payorder.payway.ChannelCashierOrderRS;
import lombok.Data;

/**
 * TODO
 *
 * @author crystal
 * @date 2024/4/23 10:45
 */
@Data
public class CashierBizResp extends PayResultResp {

    private JSONObject payInfo;
    /**
     * 小程序支付参数
     */
    private ChannelAppletPayMsg liteInfo;


    public CashierBizResp(PayOrder order, String payUrl, ChannelAppletPayMsg liteInfo) {
        super(order);
        JSONObject payInfo =  new JSONObject();
        payInfo.put("payUrl",payUrl);
        this.payInfo = payInfo;
        this.liteInfo = liteInfo;
    }
}
