CustomReception.java 2.9 KB
package com.tianbo.analysis.model;

import lombok.Data;

@Data
public class CustomReception {
    //回执报头
    private String messageID;
    private String functionCode;
    private String messageType;
    private String senderID;
    private String receiverID;
    private String sendTime;
    private String version;

    //一般业务回执
    private String flightNo;
    private String flightDate;
    private String wayBillMaster;
    private String wayBillSecond;
    private String responseCode;
    private String responseText;

    //国际转运回执
    private String importFlightDate;
    private String importFlightNo;
    private String importWaybillMaster;
    private String exportFlightDate;
    private String exportFlightNo;
    private String exportWaybillMaster;

    public  CustomReception(String messageType,
                            String flightNo,
                            String flightDate,
                            String wayBillMaster,
                            String wayBillSecond,
                            String responseCode,
                            String responseText,
                            String messageID,
                            String sendTime,
                            String senderID,
                            String receiverID,
                            String version,
                            String functionCode){
        this.messageType = messageType;
        this.flightNo = flightNo;
        this.flightDate = flightDate;
        this.wayBillMaster = wayBillMaster;
        this.wayBillSecond = wayBillSecond;
        this.responseCode = responseCode;
        this.responseText = responseText;
        this.messageID = messageID;
        this.sendTime = sendTime;
        this.senderID =senderID;
        this.receiverID = receiverID;
        this.version = version;
        this.functionCode = functionCode;
    }

    public  CustomReception(String messageType,
                            String importFlightNo,
                            String importFlightDate,
                            String importWaybillMaster,
                            String transResponseCode,
                            String transResponseText,
                            String messageID,
                            String sendTime,
                            String senderID,
                            String receiverID,
                            String version,
                            String functionCode){
        this.messageType = messageType;
        this.importFlightNo = importFlightNo;
        this.importFlightDate = importFlightDate;
        this.importWaybillMaster = importWaybillMaster;
        this.responseCode = transResponseCode;
        this.responseText = transResponseText;
        this.messageID = messageID;
        this.sendTime = sendTime;
        this.senderID =senderID;
        this.receiverID = receiverID;
        this.version = version;
        this.functionCode = functionCode;
    }
}