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


import com.fasterxml.jackson.annotation.JsonProperty;
import com.heyu.api.baidu.response.BBaseResp;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/***
 * https://console.bce.baidu.com/support/?_=1740575657628&timestamp=1740579392235#/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%2Fonline_taxi_itinerary&method=post
 *网约车行程单识别
 *
 *
 *
 */
@NoArgsConstructor
@Data
public class BOnlineTaxiItineraryResp extends BBaseResp {


    @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("TotalFare")
        private String totalFare;
        @JsonProperty("EndTime")
        private String endTime;
        @JsonProperty("Phone")
        private String phone;
        @JsonProperty("ServiceProvider")
        private String serviceProvider;
        @JsonProperty("StartTime")
        private String startTime;
        @JsonProperty("ApplicationDate")
        private String applicationDate;
        @JsonProperty("ItemId")
        private String itemId;
        @JsonProperty("items")
        private List<ItemsDTO> items;

        @NoArgsConstructor
        @Data
        public static class ItemsDTO {
            @JsonProperty("ItemId")
            private String itemId;
            @JsonProperty("StartPlace")
            private String startPlace;
            @JsonProperty("PickupTime")
            private String pickupTime;
            @JsonProperty("CarType")
            private String carType;
            @JsonProperty("City")
            private String city;
            @JsonProperty("Distance")
            private String distance;
            @JsonProperty("PickupDate")
            private String pickupDate;
            @JsonProperty("DestinationPlace")
            private String destinationPlace;
            @JsonProperty("Fare")
            private String fare;
        }
    }
}
