
package com.tmerclub.cloud.api.delivery.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author tmerclub
 */
@Data
public class DeliveryInfoVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "物流公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String companyName;

    @Schema(description = "物流公司官网", requiredMode = Schema.RequiredMode.REQUIRED)
    private String companyHomeUrl;

    @Schema(description = "物流订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dvyFlowId;

    @Schema(description = "物流状态 0:没有记录 1:已揽收 2:运输途中 201:达到目的城市 3:已签收 4:问题件", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer state;

    @Schema(description = "查询出的物流信息", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<DeliveryItemInfoVO> Traces;


    @Override
    public String toString() {
        return "DeliveryVO{" +
                "companyName='" + companyName + '\'' +
                ", companyHomeUrl='" + companyHomeUrl + '\'' +
                ", dvyFlowId='" + dvyFlowId + '\'' +
                ", state=" + state +
                ", Traces=" + Traces +
                '}';
    }
}
