package com.xinelu.applet.vo.logistics;

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

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description 快递鸟即时查询接口返回值实体类
 * @Author 纪寒
 * @Date 2022-11-01 15:21:32
 * @Version 1.0
 */
@NoArgsConstructor
@Data
public class SearchMonitorResultVO implements Serializable {
    private static final long serialVersionUID = -3109050110048632561L;

    @JsonProperty("EBusinessID")
    private String eBusinessID;

    @JsonProperty("ShipperCode")
    private String shipperCode;

    private String shipperName;

    @JsonProperty("Success")
    private Boolean success;

    @JsonProperty("LogisticCode")
    private String logisticCode;

    @JsonProperty("State")
    private String state;

    @JsonProperty("StateEx")
    private String stateEx;

    @JsonProperty("Location")
    private String location;

    @JsonProperty("Traces")
    private List<TracesDTO> traces;

    @NoArgsConstructor
    @Data
    public static class TracesDTO {

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonProperty("AcceptTime")
        private LocalDateTime acceptTime;

        @JsonProperty("AcceptStation")
        private String acceptStation;

        @JsonProperty("Location")
        private String location;

        @JsonProperty("Action")
        private String action;
    }
}
