package cn.freemud.management.entities.dto.response.pay;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author Clover.z
 * @version 1.0.0
 * @since 1.0.0
 */
@NoArgsConstructor
@Data
public class AgentPayQueryResp {
    private Integer code;
    private DataDTO data;
    private String msg;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        private String ebCode;
        private String fmTradeNo;
        private String transId;
        private String platformTradeNo;
        private String outOrderNo;
        private Integer payAmount;
        private String endTransTradeNo;
        private Integer mcouponAmount;
        private Integer pcouponAmount;
        private String status;
        private String ver;
        private String openId;
        private String transCurrency;
        private String tradeTime;
        private String platformMchId;
    }

    public boolean isOk() {
        return Objects.equals(code, 100);
    }
}
