|
|
using Newtonsoft.Json;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
namespace djy.Model.IsfDto
|
|
|
{
|
|
|
public class Info
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 提单类型CODE
|
|
|
/// </summary>
|
|
|
public string blTypeCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 交货地代码
|
|
|
/// </summary>
|
|
|
public string deliveryHarbourCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 卸货港代码
|
|
|
/// </summary>
|
|
|
public string dischargeHarbourCode { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// HSTCode多个用英文逗号隔开
|
|
|
/// </summary>
|
|
|
public string hstCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 类型(1.ISF5 2.ISF10)
|
|
|
/// </summary>
|
|
|
public string infoType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 提单号
|
|
|
/// </summary>
|
|
|
public string masterBillNo { get; set; }
|
|
|
///// <summary>
|
|
|
///// 备注
|
|
|
///// </summary>
|
|
|
//public string memo { get; set; }
|
|
|
/// <summary>
|
|
|
/// 业务id
|
|
|
/// </summary>
|
|
|
public string refId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 贸易类型代码
|
|
|
/// </summary>
|
|
|
public string shipmentTypeCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// bond是否自有,infoType=2时(ISF10),需要提供,如果没提供,默认1;值是:1或者2;1表示“自有BOND”,2表示“使用CargoEDI的BOND”
|
|
|
/// </summary>
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
|
public string bondOwnCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// bond类型 infoType=2时(ISF10),需要提供,如果没提供,默认01;值是:01或者02或者03或者04或者16;01=ABI Entry - Importer or Broker;02=Custodian of Bonded Merchandise;03=AMS C-3 Bond / International Carrier;04=Foreign Trade Zone Operator;16=ISF Bond
|
|
|
/// </summary>
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
|
public string bondTypeCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 船东提单号
|
|
|
/// </summary>
|
|
|
public string shipMasterBillNo { get; set; }
|
|
|
}
|
|
|
public class CompanyList
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 地址
|
|
|
/// </summary>
|
|
|
public string address { get; set; }
|
|
|
/// <summary>
|
|
|
/// 城市
|
|
|
/// </summary>
|
|
|
public string city { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 公司ID
|
|
|
/// </summary>
|
|
|
public string companyId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 公司名称
|
|
|
/// </summary>
|
|
|
public string companyName { get; set; }
|
|
|
/// <summary>
|
|
|
/// 公司类型
|
|
|
/// </summary>
|
|
|
public string companyType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 国家代码
|
|
|
/// </summary>
|
|
|
public string countryCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// HSTCode多个用英文逗号隔开
|
|
|
/// </summary>
|
|
|
public string hstCode { get; set; }
|
|
|
/// <summary>
|
|
|
/// id类型代码
|
|
|
/// </summary>
|
|
|
public string idTypeCode { get; set; }
|
|
|
|
|
|
///// <summary>
|
|
|
///// 进出口类型(1.进口2.出口)
|
|
|
///// </summary>
|
|
|
//public string ieType { get; set; }
|
|
|
/// <summary>
|
|
|
/// 邮编
|
|
|
/// </summary>
|
|
|
public string postcode { get; set; }
|
|
|
/// <summary>
|
|
|
/// 省份
|
|
|
/// </summary>
|
|
|
public string province { get; set; }
|
|
|
/// <summary>
|
|
|
/// 省份代码
|
|
|
/// </summary>
|
|
|
public string provinceCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
public class IsfInfo
|
|
|
{
|
|
|
public List<CompanyList> companyList { get; set; }
|
|
|
public string format { get; set; }
|
|
|
|
|
|
public Info info { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 服务名称,值为:eportyun.manifest.isf.sendBill
|
|
|
/// </summary>
|
|
|
public string method { get; set; }
|
|
|
/// <summary>
|
|
|
/// 类型1.原始2.修改3.删除4.重发
|
|
|
/// </summary>
|
|
|
public int msgType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 加密
|
|
|
/// </summary>
|
|
|
public string sign { get; set; }
|
|
|
/// <summary>
|
|
|
/// 时间戳
|
|
|
/// </summary>
|
|
|
public string timestamp { get; set; }
|
|
|
/// <summary>
|
|
|
/// 用户id
|
|
|
/// </summary>
|
|
|
public string user_id { get; set; }
|
|
|
/// <summary>
|
|
|
/// 2.0
|
|
|
/// </summary>
|
|
|
public string version { get; set; }
|
|
|
}
|
|
|
|
|
|
}
|