package com.yn.bftl.thirdparty.modules.unionpay.vo.base;

import com.yn.bftl.common.modules.order.enums.UnionpayAppTradeStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * 银联响应VO
 *
 * @author huabiao
 * @create 2022/9/6  10:45
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UnionpayResponseVo", description = "银联响应VO")
public class UnionpayResponseVO {

    @ApiModelProperty(value = "平台错误码")
    private String errCode;

    @ApiModelProperty(value = "平台错误信息")
    private String errMsg;

    @ApiModelProperty(value = "APP请求报文")
    private Map<String, Object> appPayRequest;

    @ApiModelProperty("交易状态")
    private UnionpayAppTradeStatus status;

    @ApiModelProperty("支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty("交易金额")
    private Long totalAmount;

    @ApiModelProperty("退款ID")
    private String refundOrderId;

    @ApiModelProperty("退款金额")
    private Long refundAmount;

    @ApiModelProperty("平台流水号")
    private String seqId;
}
