package cn.pluss.platform.yt;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 * 圆通返回参数封装
 * @author crystal
 * @date 2022/3/31 11:27
 */
@Data
@NoArgsConstructor
public class YtLogisticsResponse {

    private String logisticProviderID;

    private String txLogisticID;

    private Boolean success;

    private String reason;

    public YtLogisticsResponse(String logisticProviderID, String txLogisticID, Boolean success, String reason) {
        this.logisticProviderID = logisticProviderID;
        this.txLogisticID = txLogisticID;
        this.success = success;
        this.reason = reason;
    }

    public static YtLogisticsResponse build(String logisticProviderID, String txLogisticID, boolean success, String reason){
        return new YtLogisticsResponse(logisticProviderID,txLogisticID,success,reason);
    }
}
