package com.heyu.api.baidu.response.financial;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * https://console.bce.baidu.com/support/?_=1740575657628&timestamp=1740577959399#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E8%B4%A2%E5%8A%A1%E7%A5%A8%E6%8D%AEOCR&api=rest%2F2.0%2Focr%2Fv1%2Fair_ticket&method=post
 *
 * 飞机行程单识别
 */
@NoArgsConstructor
@Data
public class BSingleAirTicketResp extends BAirTicketResp {

    @JsonProperty("log_id")
    private Long logId;
    @JsonProperty("words_result_num")
    private Integer wordsResultNum;
    @JsonProperty("words_result")
    private WordsResultDTO wordsResult;

    @NoArgsConstructor
    @Data
    public static class WordsResultDTO {
        @JsonProperty("insurance")
        private String insurance;
        @JsonProperty("date")
        private String date;
        @JsonProperty("allow")
        private String allow;
        @JsonProperty("flight")
        private String flight;
        @JsonProperty("issued_by")
        private String issuedBy;
        @JsonProperty("starting_station")
        private String startingStation;
        @JsonProperty("fare")
        private String fare;
        @JsonProperty("endorsement")
        private String endorsement;
        @JsonProperty("ticket_rates")
        private String ticketRates;
        @JsonProperty("ck")
        private String ck;
        @JsonProperty("serial_number")
        private String serialNumber;
        @JsonProperty("ticket_number")
        private String ticketNumber;
        @JsonProperty("fuel_surcharge")
        private String fuelSurcharge;
        @JsonProperty("carrier")
        private String carrier;
        @JsonProperty("issued_date")
        private String issuedDate;
        @JsonProperty("other_tax")
        private String otherTax;
        @JsonProperty("fare_basis")
        private String fareBasis;
        @JsonProperty("id_num")
        private String idNum;
        @JsonProperty("destination_station")
        private String destinationStation;
        @JsonProperty("name")
        private String name;
        @JsonProperty("agent_code")
        private String agentCode;
        @JsonProperty("time")
        private String time;
        @JsonProperty("class")
        private String classX;
        @JsonProperty("dev_fund")
        private String devFund;
    }
}
