|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 马士基点对点查询船期回执
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKAPISearchPoint2PointScheduleResultDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 回执代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int code { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 回执消息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string msg { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 回执代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<MSKAPISearchPoint2PointScheduleResultDataDto> data { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MSKAPISearchPoint2PointScheduleResultDataDto
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierProductId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierProductSequenceId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品的生效日期,格式为YYYY-MM-DD
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string productValidFromDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品的截止日期,格式为YYYY-MM-DD
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string productValidToDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品从原产地到目的地的链接数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string numberOfProductLinks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品从原产地到目的地的链接数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<MSKAPISearchTransportSchedules> transportSchedules { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路线的详细信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKAPISearchTransportSchedules
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出发时间, ISO格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Nullable<DateTime> departureDateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 到达时间, ISO格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Nullable<DateTime> arrivalDateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路线相关数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchFacilities facilities { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 头程船信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKDepartureVessel firstDepartureVessel { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过的时间,以分钟为单位
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string transitTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The details for the individual schedule
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<MSKTransportLegInfo> transportLegs { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 承运人代码(MAEU, SEAU, SEJJ, MCPU, MAEI)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string vesselOperatorCarrierCode { get; set; }
|
|
|
|
|
|
|
|
|
|
//以下的字段是自己添加的不是船期返回的信息
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品id
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierProductId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierProductSequenceId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品的生效日期,格式为YYYY-MM-DD
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string productValidFromDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品的截止日期,格式为YYYY-MM-DD
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string productValidToDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品从原产地到目的地的链接数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string numberOfProductLinks { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船期MD5
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string MD5 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主键ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long PId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地rkst代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originRkstCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地geoID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originGeoId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地五子码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originUnLocCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地城市名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originCityName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地区名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originRegionName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 起运地国家名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string originCountryName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地rkst代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationRkstCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地geoID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationGeoId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地五子码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationUnLocCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地城市名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationCityName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地区名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationRegionName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地国家名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string destinationCountryName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路线相关数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKAPISearchFacilities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出发地港口信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchFacilitiesCityInfo collectionOrigin { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地港口信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchFacilitiesCityInfo deliveryDestination { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 城市信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKAPISearchFacilitiesCityInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 城市名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string cityName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 地点的GEO ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierSiteGeoID { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 地点的名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string locationName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 国家代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string countryCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 位置类型
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string locationType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 五字码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UNLocationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 区代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UNRegionCode{ get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 头程船信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKDepartureVessel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// IMO
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string vesselIMONumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船名代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierVesselCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string vesselName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class MSKTransportLegInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出发时间, ISO格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Nullable<DateTime> departureDateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 到达时间, ISO格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Nullable<DateTime> arrivalDateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路线相关数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKTransportLegInfoFacilities facilities { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 航运信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchTransportInfo transport { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MSKTransportLegInfoFacilities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 出发地港口信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchFacilitiesCityInfo startLocation { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 目的地港口信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchFacilitiesCityInfo endLocation { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MSKAPISearchTransportInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 运输方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string transportMode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public MSKAPISearchVesselInfo vessel { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 贸易航线名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierTradeLaneName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 航次代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierDepartureVoyageNumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicator that defines the link as a port call offered as an inducement
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string inducementLinkFlag { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierServiceCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 服务代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierServiceName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 航行方向
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string linkDirection { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// RKST system Carrier Code as defined by A.P. Moller-Maersk A/S for the scheduled carrier
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Describes the type of route link
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string routingType { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class MSKAPISearchVesselInfo
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// IMO号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string vesselIMONumber { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 内部船舶代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string carrierVesselCode { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 船名
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string vesselName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|