You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
4.5 KiB
C#

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