package com.jeequan.jeepay.pay.ctrl.channel.alipay.model.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/*
* 支付宝SPI  查单接口返回对象
*
* @author zx
*
* @date 2023/3/7 10:35
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class AlipaySpiPayOrderQueryResponse extends SpiBaseResponse {

    /** 商家外部订单号 **/
    @JSONField(name = "merchant_order_no")
    private String merchantOrderNo;

    /** ISV 订单号 **/
    @JSONField(name = "isv_order_no")
    private String isvOrderNo;

    /** 微信、支付宝等第三方支付交易号 **/
    @JSONField(name = "channel_order_no")
    private String channelOrderNo;

    /** 支付通道类型，001：支付宝，002：微信  100：自动识别类型等 **/
    @JSONField(name = "channel_type")
    private String channelType;

    /** 收银终端设备序列号，sn **/
    @JSONField(name = "terminal_id")
    private String terminalId;

    /** 订单状态 **/
    @JSONField(name = "order_state")
    private String orderState;

    /** 支付成功时间 **/
    @JSONField(name = "pay_time")
    private String payTime;

    /** 订单金额 **/
    @JSONField(name = "total_amount")
    private String totalAmount;

    /** 实付金额 **/
    @JSONField(name = "receipt_amount")
    private String receiptAmount;

    /** 用户支付金额 **/
    @JSONField(name = "buyer_pay_amount")
    private String buyerPayAmount;

    /** 支付宝用户ID **/
    @JSONField(name = "buyer_user_id")
    private String buyerUserId;

    /** 支付宝登录账户 **/
    @JSONField(name = "buyer_account_name")
    private String buyerAccountName;

    /** 支付请求参数原样返回 **/
    @JSONField(name = "attach_params")
    private String attachParams;

}
