master
wufan 2 months ago
parent 6a59c0ebd0
commit 091a68d186

@ -0,0 +1,51 @@
using System;
using TradeManageNew.APIClients.FedexApi.Services;
namespace TradeManageNew.APIClients.FedexApi
{
public class FedexAPIClient
{
public FedexAPIClient(FedexCredential credential)
{
if (credential is null)
{
throw new Exception("凭证信息不能为空,请检查");
}
if (string.IsNullOrEmpty(credential.ClientId))
{
throw new Exception("ClientId不能为空请检查");
}
if (string.IsNullOrEmpty(credential.ClientSecret))
{
throw new Exception("ClientSecret不能为空请检查");
}
Credential = credential;
Ship = new ShipService(credential);
RatesAndTransitTimes = new RatesAndTransitTimesService(credential);
}
public readonly FedexCredential Credential;
#region Ship
/// <summary>
/// 官方API文档 https://developer.fedex.com.cn/api/en-us/catalog/ship/v1/docs.html
/// </summary>
public ShipService Ship { get; }
#endregion
#region RatesAndTransitTimes
/// <summary>
/// 官方API文档 https://developer.fedex.com.cn/api/en-us/catalog/rate/v1/docs.html
/// </summary>
public RatesAndTransitTimesService RatesAndTransitTimes { get; }
#endregion
}
}

@ -0,0 +1,67 @@
namespace TradeManageNew.APIClients.FedexApi
{
public static class FedexAPIClientMisc
{
/// <summary>
/// 沙箱环境地址
/// </summary>
public const string SANDBOX_URL = "https://apis-sandbox.fedex.com";
/// <summary>
/// 生产环境地址
/// </summary>
public const string PRODUCTION_URL = "https://apis.fedex.com";
/// <summary>
/// 设置西部仓库账户沙箱环境凭证
/// </summary>
/// <param name="credential"></param>
public static FedexCredential SetWestSandBoxCredential(this FedexCredential credential)
{
credential.ClientId = "l7c3eeb4b319e94d329c6a29cd7cb4ca60";
credential.ClientSecret = "82ab698a91244d9d80038d56b7502222";
credential.AccountNumber = "740561073";
return credential;
}
/// <summary>
/// 设置西部仓库账户正式环境凭证
/// </summary>
/// <param name="credential"></param>
public static FedexCredential SetWestProductionCredential(this FedexCredential credential)
{
credential.ClientId = "l79b85927590ba4f9aa4435b6711c6a4e5";
credential.ClientSecret = "9c81856004734312b4eea86652c89d12";
credential.AccountNumber = "910845691";
return credential;
}
/// <summary>
/// 设置东部仓库账户沙箱环境凭证
/// </summary>
/// <param name="credential"></param>
public static FedexCredential SetEastSandBoxCredential(this FedexCredential credential)
{
credential.ClientId = "l7eca17acbff47442c8771431483457104";
credential.ClientSecret = "ab05476bb62242e5bbef5ab87bfd0168";
credential.AccountNumber = "740561073";
return credential;
}
/// <summary>
/// 设置东部仓库账户正式环境凭证
/// </summary>
/// <param name="credential"></param>
public static FedexCredential SetEastProductionCredential(this FedexCredential credential)
{
credential.ClientId = "l72a19b2aaee2e43b5b2eae3bd8f1055a0";
credential.ClientSecret = "7db3f2d302b44f298e7766c781abbd73";
credential.AccountNumber = "896756010";
return credential;
}
}
}

@ -0,0 +1,36 @@
namespace TradeManageNew.APIClients.FedexApi
{
public class FedexCredential
{
public string ClientId { get; set; }
public string ClientSecret { get; set; }
public string ChildKey { get; set; }
public string ChildSecret { get; set; }
public string AccountNumber { get; set; }
public string Host { get; set; }
public bool IsDebugMode { get; set; }
/// <summary>
/// 是否把返回结果读取为字符串
/// <para>默认不读取,直接流接收</para>
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// 初始化凭证信息
/// </summary>
/// <param name="isDebugMode">是否测试模式</param>
public FedexCredential(bool isDebugMode = false)
{
IsDebugMode = isDebugMode;
Host = isDebugMode ? FedexAPIClientMisc.SANDBOX_URL : FedexAPIClientMisc.PRODUCTION_URL;
}
}
}

@ -0,0 +1,63 @@
namespace TradeManageNew.APIClients.FedexApi.Models
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class ErrorResponse
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: bc95c0e4-b33e-42a2-80d2-334282b5d37a
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
/// <summary>
/// Indicates error details when suspicious files, potential exploits and viruses are found while scanning files, directories and user accounts. This includes code, message and error parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError> Errors { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class CXSError
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: NOT.FOUND.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// List of parameters which indicates the properties of the alert message.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the API error alert message.&lt;br&gt;Example: We are unable to process this request. Please try again later or contact FedEx Customer Service.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Message { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class Parameter
{
/// <summary>
/// Indicates the error option to be applied.
/// </summary>
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Value { get; set; }
/// <summary>
/// Indicates the value associated with the key.
/// </summary>
[Newtonsoft.Json.JsonProperty("key", Required = Newtonsoft.Json.Required.Default,
NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Key { get; set; }
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models
{
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class FedexAPIException : System.Exception
{
public int StatusCode { get; private set; }
public string Response { get; private set; }
public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public FedexAPIException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException)
: base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException)
{
StatusCode = statusCode;
Response = response;
Headers = headers;
}
public override string ToString()
{
return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString());
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class FedexAPIException<TResult> : FedexAPIException
{
public TResult Result { get; private set; }
public FedexAPIException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException)
: base(message, statusCode, response, headers, innerException)
{
Result = result;
}
}
}

@ -0,0 +1,16 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is the Account number details.&lt;br&gt;&lt;i&gt;Note:&lt;ul&gt;&lt;li&gt;If the paymentType is Sender, then the account number is optional in shippingChargesPayment.&lt;/li&gt;&lt;li&gt;In case if this is shipping account number, do use the account number used for creating Auth Token.&lt;/li&gt;&lt;/ul&gt;
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema",
"14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public class AccountNumber
{
/// <summary>
/// This is the account number. Maximum Length is 9. &lt;br&gt;Example: Your account number
/// </summary>
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Value { get; set; }
}
}

@ -0,0 +1,49 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is detailed information on physical location. May be used as an actual physical address (place to which one could go), or as a container of address parts which should be handled as a unit (such as a city-state-ZIP combination within the U.S.).
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Address
{
/// <summary>
/// This is a placeholder for City Name. &lt;br&gt; Example: Beverly Hills
/// </summary>
[Newtonsoft.Json.JsonProperty("city", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string City { get; set; }
/// <summary>
/// This is a placeholder for State or Province code.State code is required for US, CA, PR and not required for other countries. Conditional. Max length is 2. &lt;br&gt; Example: CA &lt;br&gt;&lt;a onclick='loadDocReference("canadaprovincecodes")'&gt;Click here to see State Or Province Code&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("stateOrProvinceCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string StateOrProvinceCode { get; set; }
/// <summary>
/// Indicate the Postal code. This is optional for non postal-aware countries. Maximum length is 10.&lt;br&gt; Example: 65247&lt;br&gt;&lt;a onclick='loadDocReference("postalawarecountries")'&gt;Click here to see Postal aware countries&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("postalCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PostalCode { get; set; }
/// <summary>
/// This is the two-letter country code. Maximum length is 2.&lt;br&gt;Example: US&lt;br&gt;&lt;a onclick='loadDocReference("countrycodes")'&gt;Click here to see Country Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("countryCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryCode { get; set; }
/// <summary>
/// Indicate whether this address is residential (as opposed to commercial). &lt;br&gt; Valid values are TRUE and FALSE.
/// </summary>
[Newtonsoft.Json.JsonProperty("residential", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? Residential { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,49 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is detailed information on physical location. May be used as an actual physical address (place to which one could go), or as a container of address parts which should be handled as a unit (such as a city-state-ZIP combination within the US). Country code is required. Postal code is required for postal aware countries. State or province code is mandatory for Puerto Rico.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Address_1
{
/// <summary>
/// Specify name of city, town, etc.&lt;br&gt; Example: Beverly Hills
/// </summary>
[Newtonsoft.Json.JsonProperty("city", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string City { get; set; }
/// <summary>
/// Specify State or province code. Maximum length is 2.State code is required for US, CA, PR and not required for other countries. Conditional. Max length is 2.&lt;br&gt; Example: CA &lt;br&gt;&lt;a onclick='loadDocReference("canadaprovincecodes")'&gt;Click here to see State Or Province Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("stateOrProvinceCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string StateOrProvinceCode { get; set; }
/// <summary>
/// Specify the postal code. This is optional for non postal- aware countries. Maximum length is 10.&lt;br&gt; Example: 65247&lt;br&gt;&lt;a onclick='loadDocReference("postalawarecountries")'&gt;Click here to see Postal aware countries&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("postalCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PostalCode { get; set; }
/// <summary>
/// The two-letter country code. Maximum length is 2.&lt;br&gt;Example: US&lt;br&gt;&lt;a onclick='loadDocReference("countrycodes")'&gt;Click here to see Country Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("countryCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryCode { get; set; }
/// <summary>
/// Indicate whether this address is residential (as opposed to commercial).
/// </summary>
[Newtonsoft.Json.JsonProperty("residential", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? Residential { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,39 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is detailed information on physical location. May be used as an actual physical address (place to which one could go), or as a container of address parts which should be handled as a unit (such as a city-state-ZIP combination within the U.S.).
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Address_2
{
/// <summary>
/// This is a placeholder for City Name. &lt;br&gt; Example: Beverly Hills
/// </summary>
[Newtonsoft.Json.JsonProperty("city", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string City { get; set; }
/// <summary>
/// This is a placeholder for State or Province code. State code is required for US, CA, PR and not required for other countries. Conditional. Max length is 2 .&lt;br&gt; Example: CA &lt;br&gt;&lt;a onclick='loadDocReference("canadaprovincecodes")'&gt;Click here to see State Or Province Code&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("stateOrProvinceCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string StateOrProvinceCode { get; set; }
/// <summary>
/// Indicate the Postal code. This is optional for non postal-aware countries. Maximum length is 10.&lt;br&gt; Example: 65247&lt;br&gt;&lt;a onclick='loadDocReference("postalawarecountries")'&gt;Click here to see Postal aware countries&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("postalCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PostalCode { get; set; }
/// <summary>
/// This is the two-letter country code. Maximum length is 2.&lt;br&gt;Example: US&lt;br&gt;&lt;a onclick='loadDocReference("countrycodes")'&gt;Click here to see Country Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("countryCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryCode { get; set; }
/// <summary>
/// Indicate whether this address is residential (as opposed to commercial).
/// </summary>
[Newtonsoft.Json.JsonProperty("residential", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? Residential { get; set; }
}
}

@ -0,0 +1,33 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicate the alcohol shipment details. This object is mandatory if alcohol special service is selected.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AlcoholDetail
{
/// <summary>
/// Specify the recipient type for the alcohol shipment.
/// </summary>
[Newtonsoft.Json.JsonProperty("alcoholRecipientType", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public AlcoholDetailAlcoholRecipientType AlcoholRecipientType { get; set; }
/// <summary>
/// Specify the shipper entity type. &lt;br&gt;Example: Fulfillment house, Retailer or a Winery.
/// </summary>
[Newtonsoft.Json.JsonProperty("shipperAgreementType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string ShipperAgreementType { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum AlcoholDetailAlcoholRecipientType
{
[System.Runtime.Serialization.EnumMember(Value = @"LICENSEE")]
LICENSEE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"CONSUMER")]
CONSUMER = 1,
}
}

@ -0,0 +1,38 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies the alerts.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Alert
{
/// <summary>
/// Specifies the alert code.
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies the alert type.
/// </summary>
[Newtonsoft.Json.JsonProperty("alertType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public AlertType? AlertType { get; set; }
/// <summary>
/// Specifies the alert message.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum AlertType
{
[System.Runtime.Serialization.EnumMember(Value = @"NOTE")]
NOTE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"WARNING")]
WARNING = 1,
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Alternate_Currency_Rate_Quote
{
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,34 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AncillaryFeesAndTaxes
{
/// <summary>
/// Specifies the list of ancillary fees And Taxes
/// </summary>
[Newtonsoft.Json.JsonProperty("amount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? Amount { get; set; }
/// <summary>
/// Identifies the amount of the shipment-level fees and taxes that are not based on transportation charges or commodity-level estimated duties and taxes.
/// </summary>
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Description { get; set; }
/// <summary>
/// Identifies the total amount of the shipment-level fees and taxes that are not based on transportation charges or commodity-level estimated duties and taxes.
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Type { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,24 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Anonymous
{
[Newtonsoft.Json.JsonProperty("phoneNumber", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string PhoneNumber { get; set; }
[Newtonsoft.Json.JsonProperty("phoneNumberCountryCode", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string PhoneNumberCountryCode { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,43 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is the response object for a rate quote request.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BaseProcessOutputVO
{
/// <summary>
/// This object will hold the rate and shipment data returned for a request.
/// </summary>
[Newtonsoft.Json.JsonProperty("rateReplyDetails", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<RateReplyDetail> RateReplyDetails { get; set; }
/// <summary>
/// The date on which the rate is quoted.&lt;br&gt; Example: 2019-09-18
/// </summary>
[Newtonsoft.Json.JsonProperty("quoteDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string QuoteDate { get; set; }
/// <summary>
/// Specifies the encoded form of the rate. &lt;br&gt; Example: false
/// </summary>
[Newtonsoft.Json.JsonProperty("isEncoded", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? IsEncoded { get; set; }
/// <summary>
/// The alert code, alert type, and alert message obtained when a rate quote is requested.
/// </summary>
[Newtonsoft.Json.JsonProperty("alerts", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Alert> Alerts { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,40 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Describe the attributes of a battery or cell that are used for classification purposes. Typically this structure would be used to allow customers to declare batteries or cells for which full dangerous goods documentation and procedures are not required.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BatteryClassificationDetail
{
/// <summary>
/// Describes the material composition of the battery or cell. Example: LITHIUM_METAL
/// </summary>
[Newtonsoft.Json.JsonProperty("material", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public BatteryClassificationDetailMaterial? Material { get; set; }
/// <summary>
/// Specify the regulation specific classification for the battery or cell.
/// </summary>
[Newtonsoft.Json.JsonProperty("regulatorySubType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public BatteryClassificationDetailRegulatorySubType? RegulatorySubType { get; set; }
/// <summary>
/// Indicate the packing arrangement of the battery or cell with respect to other items within the same package. Example: CONTAINED_IN_EQUIPMENT
/// </summary>
[Newtonsoft.Json.JsonProperty("packing", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public BatteryClassificationDetailPacking? Packing { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum BatteryClassificationDetailMaterial
{
[System.Runtime.Serialization.EnumMember(Value = @"LITHIUM_METAL")]
LITHIUM_METAL = 0,
[System.Runtime.Serialization.EnumMember(Value = @"LITHIUM_ION")]
LITHIUM_ION = 1,
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum BatteryClassificationDetailPacking
{
[System.Runtime.Serialization.EnumMember(Value = @"CONTAINED_IN_EQUIPMENT")]
CONTAINED_IN_EQUIPMENT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"PACKED_WITH_EQUIPMENT")]
PACKED_WITH_EQUIPMENT = 1,
}
}

@ -0,0 +1,11 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum BatteryClassificationDetailRegulatorySubType
{
[System.Runtime.Serialization.EnumMember(Value = @"IATA_SECTION_II")]
IATA_SECTION_II = 0,
}
}

@ -0,0 +1,8 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BillingWeight : Weight
{
}
}

@ -0,0 +1,33 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// These are Broker Detail for the rate quote.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BrokerDetail
{
[Newtonsoft.Json.JsonProperty("broker", Required = Newtonsoft.Json.Required.Always)]
public BrokerDetailBroker Broker { get; set; }
/// <summary>
/// This is Broker Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public BrokerDetailType Type { get; set; }
[Newtonsoft.Json.JsonProperty("brokerAddress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Brokeraddress BrokerAddress { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,21 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BrokerDetailBroker : Party
{
/// <summary>
/// These are Broker address details.
/// </summary>
[Newtonsoft.Json.JsonProperty("address", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public object Address { get; set; }
/// <summary>
/// These are broker contact details such as Name, Email, PhoneNumber.
/// </summary>
[Newtonsoft.Json.JsonProperty("contact", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public object Contact { get; set; }
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BrokerDetailBroker_RateReply : Party
{
/// <summary>
/// These are Broker address details.
/// </summary>
[Newtonsoft.Json.JsonProperty("address", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public object Address { get; set; }
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum BrokerDetailType
{
[System.Runtime.Serialization.EnumMember(Value = @"EXPORT")]
EXPORT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"IMPORT")]
IMPORT = 1,
}
}

@ -0,0 +1,33 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// These are Broker Detail for the rate quote.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class BrokerDetail_RateReply
{
[Newtonsoft.Json.JsonProperty("broker", Required = Newtonsoft.Json.Required.Always)]
public BrokerDetailBroker_RateReply Broker { get; set; }
/// <summary>
/// This is Broker Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public BrokerDetail_RateReplyType Type { get; set; }
[Newtonsoft.Json.JsonProperty("brokerAddress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Brokeraddress BrokerAddress { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum BrokerDetail_RateReplyType
{
[System.Runtime.Serialization.EnumMember(Value = @"EXPORT")]
EXPORT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"IMPORT")]
IMPORT = 1,
}
}

@ -0,0 +1,79 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This is the broker address used for this shipment.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Brokeraddress
{
/// <summary>
/// This is the combination of number, street name, etc. &lt;br&gt;Note: At least one line is required and streetlines more than 3 will be ignored. Empty lines should not be included. Maximum Length per line is 35.&lt;br&gt;Example: [10 FedEx Parkway, Suite 302, .etc.]
/// </summary>
[Newtonsoft.Json.JsonProperty("streetLines", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> StreetLines { get; set; }
/// <summary>
/// This is city name.&lt;br&gt; Example: Beverly Hills
/// </summary>
[Newtonsoft.Json.JsonProperty("city", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string City { get; set; }
/// <summary>
/// This is the state Or Province Code. State code is required for US, CA, PR and not required for other countries. Conditional. Max length is 2.&lt;br&gt; Example: CA&lt;br&gt;&lt;a onclick='loadDocReference("canadaprovincecodes")'&gt;Click here to see State Or Province Code&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("stateOrProvinceCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string StateOrProvinceCode { get; set; }
/// <summary>
/// This is the postal code. &lt;br&gt; Example: 90210&lt;br&gt;&lt;a onclick='loadDocReference("postalawarecountries")'&gt;Click here to see Postal aware countries&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("postalCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PostalCode { get; set; }
/// <summary>
/// This is the country code.&lt;br&gt;US&lt;br&gt;&lt;a onclick='loadDocReference("countrycodes")'&gt;Click here to see Country Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("countryCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryCode { get; set; }
/// <summary>
/// Indicate whether this address is residential (as opposed to commercial). &lt;br&gt; Valid values are TRUE and FALSE.
/// </summary>
[Newtonsoft.Json.JsonProperty("residential", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? Residential { get; set; }
/// <summary>
/// Specify the classification of the address. &lt;br&gt; Example: residential
/// </summary>
[Newtonsoft.Json.JsonProperty("classification", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Classification { get; set; }
/// <summary>
/// Specify the geographic coordinates.&lt;br&gt; Example: geographicCoordinates
/// </summary>
[Newtonsoft.Json.JsonProperty("geographicCoordinates", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string GeographicCoordinates { get; set; }
/// <summary>
/// Specify the urbanization code.
/// </summary>
[Newtonsoft.Json.JsonProperty("urbanizationCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string UrbanizationCode { get; set; }
/// <summary>
/// Specify the country name.&lt;br&gt; Example: India
/// </summary>
[Newtonsoft.Json.JsonProperty("countryName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryName { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,47 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// These are COD Transportation Charges Detail.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CODTransportationChargesDetail
{
/// <summary>
/// Specify COD Rate Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("rateType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CODTransportationChargesDetailRateType? RateType { get; set; }
/// <summary>
/// Specify whether the rate applied on bundle or indiividual package.
/// </summary>
[Newtonsoft.Json.JsonProperty("rateLevelType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CODTransportationChargesDetailRateLevelType? RateLevelType { get; set; }
/// <summary>
/// Specify whether the charges applied on current or all packages.
/// </summary>
[Newtonsoft.Json.JsonProperty("chargeLevelType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CODTransportationChargesDetailChargeLevelType? ChargeLevelType { get; set; }
/// <summary>
/// Specify the Charges Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("chargeType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CODTransportationChargesDetailChargeType? ChargeType { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CODTransportationChargesDetailChargeLevelType
{
[System.Runtime.Serialization.EnumMember(Value = @"CURRENT_PACKAGE")]
CURRENT_PACKAGE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"SUM_OF_PACKAGES")]
SUM_OF_PACKAGES = 1,
}
}

@ -0,0 +1,20 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CODTransportationChargesDetailChargeType
{
[System.Runtime.Serialization.EnumMember(Value = @"COD_SURCHARGE")]
COD_SURCHARGE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"NET_CHARGE")]
NET_CHARGE = 1,
[System.Runtime.Serialization.EnumMember(Value = @"NET_FREIGHT")]
NET_FREIGHT = 2,
[System.Runtime.Serialization.EnumMember(Value = @"TOTAL_CUSTOMER_CHARGE")]
TOTAL_CUSTOMER_CHARGE = 3,
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CODTransportationChargesDetailRateLevelType
{
[System.Runtime.Serialization.EnumMember(Value = @"BUNDLED_RATE")]
BUNDLED_RATE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"INDIVIDUAL_PACKAGE_RATE")]
INDIVIDUAL_PACKAGE_RATE = 1,
}
}

@ -0,0 +1,35 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CODTransportationChargesDetailRateType
{
[System.Runtime.Serialization.EnumMember(Value = @"ACCOUNT")]
ACCOUNT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"ACTUAL")]
ACTUAL = 1,
[System.Runtime.Serialization.EnumMember(Value = @"CURRENT")]
CURRENT = 2,
[System.Runtime.Serialization.EnumMember(Value = @"CUSTOM")]
CUSTOM = 3,
[System.Runtime.Serialization.EnumMember(Value = @"LIST")]
LIST = 4,
[System.Runtime.Serialization.EnumMember(Value = @"INCENTIVE")]
INCENTIVE = 5,
[System.Runtime.Serialization.EnumMember(Value = @"PREFERRED")]
PREFERRED = 6,
[System.Runtime.Serialization.EnumMember(Value = @"PREFERRED_INCENTIVE")]
PREFERRED_INCENTIVE = 7,
[System.Runtime.Serialization.EnumMember(Value = @"PREFERRED_CURRENCY")]
PREFERRED_CURRENCY = 8,
}
}

@ -0,0 +1,34 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example:&lt;br&gt;ACCOUNT.NUMBER.MISMATCH&lt;br&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// List of parameters which indicates the properties of the alert message.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of error alert message.&lt;br&gt;Example: When payment Type is SENDER, ShippingChargesPayment Payor AccountNumber should match the shipper account number.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError401
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: NOT.AUTHORIZED.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies list of parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of API error alert message.&lt;br&gt;Example: Access token expired. Please modify your request and try again.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError403
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: FORBIDDEN.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies list of parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of API error alert message.&lt;br&gt;Example: We could not authorize your credentials. Please check your permissions and try again
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError404
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: NOT.FOUND.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies list of parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of API error alert message.&lt;br&gt;Example: The resource you requested is no longer available. Please modify your request and try again.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError500
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: INTERNAL.SERVER.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies list of parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of API error alert message.&lt;br&gt;Example: We encountered an unexpected error and are working to resolve the issue. We apologize for any inconvenience. Please check back at a later time.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CXSError503
{
/// <summary>
/// Indicates the error code.&lt;br&gt;Example: SERVICE.UNAVAILABLE.ERROR
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// Specifies list of parameters.
/// </summary>
[Newtonsoft.Json.JsonProperty("parameterList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<Parameter> ParameterList { get; set; }
/// <summary>
/// Indicates the description of API error alert message.&lt;br&gt;Example: The service is currently unavailable and we are working to resolve the issue. We apologize for any inconvenience. Please check back at a later time.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public object Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,26 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// The Commercial Invoice element is required for electronic upload of CI data. It will serve to create/transmit an electronic Commercial Invoice through the FedEx system.&lt;br&gt;Customers are responsible for printing their own Commercial Invoice.&lt;br&gt;If you would like FedEx to generate a Commercial Invoice and transmit it to Customs for clearance purposes, you need to specify that in the 'ETDDetail/RequesteDocumentCopies' element.&lt;br&gt; Support consists of a Maximum of 99 commodity line items.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CommercialInvoice
{
/// <summary>
/// The reason for the shipment. Note: SOLD is not a valid purpose for a Proforma Invoice.
/// </summary>
[Newtonsoft.Json.JsonProperty("shipmentPurpose", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CommercialInvoiceShipmentPurpose? ShipmentPurpose { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,35 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CommercialInvoiceShipmentPurpose
{
[System.Runtime.Serialization.EnumMember(Value = @"GIFT")]
GIFT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"NOT_SOLD")]
NOT_SOLD = 1,
[System.Runtime.Serialization.EnumMember(Value = @"PERSONAL_EFFECTS")]
PERSONAL_EFFECTS = 2,
[System.Runtime.Serialization.EnumMember(Value = @"REPAIR_AND_RETURN")]
REPAIR_AND_RETURN = 3,
[System.Runtime.Serialization.EnumMember(Value = @"SAMPLE")]
SAMPLE = 4,
[System.Runtime.Serialization.EnumMember(Value = @"SOLD")]
SOLD = 5,
[System.Runtime.Serialization.EnumMember(Value = @"COMMERCIAL")]
COMMERCIAL = 6,
[System.Runtime.Serialization.EnumMember(Value = @"RETURN_AND_REPAIR")]
RETURN_AND_REPAIR = 7,
[System.Runtime.Serialization.EnumMember(Value = @"PERSONAL_USE")]
PERSONAL_USE = 8,
}
}

@ -0,0 +1,78 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// The delivery commitment details
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Commit
{
/// <summary>
/// Code indicating the number of transit days.&lt;br&gt; Example: EIGHTEEN_DAYS
/// </summary>
[Newtonsoft.Json.JsonProperty("daysInTransit", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CommitDaysInTransit? DaysInTransit { get; set; }
/// <summary>
/// Indicates if there is a guaranteed delivery option applied to the rate. This is for freight rates only.&lt;br&gt; Valid values&lt;br&gt;GUARANTEED_MORNING - guaranteed delivery on morning of date specified.&lt;br&gt;GUARANTEED_CLOSE_OF_BUSINESS - guaranteed delivery on date specified by close of day&lt;br&gt; Example: GUARANTEED_MORNING
/// </summary>
[Newtonsoft.Json.JsonProperty("guaranteedType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public CommitGuaranteedType? GuaranteedType { get; set; }
/// <summary>
/// CommitTime for SmartPost shipments.
/// </summary>
[Newtonsoft.Json.JsonProperty("smartPostCommitTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string SmartPostCommitTime { get; set; }
[Newtonsoft.Json.JsonProperty("dateDetail", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public DateDetail DateDetail { get; set; }
[Newtonsoft.Json.JsonProperty("delayDetails", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public DelayDetail DelayDetails { get; set; }
/// <summary>
/// Specifies the saturdayDelivery.
/// </summary>
[Newtonsoft.Json.JsonProperty("saturdayDelivery", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? SaturdayDelivery { get; set; }
/// <summary>
/// Specifies the alternate names of commodities.
/// </summary>
[Newtonsoft.Json.JsonProperty("alternativeCommodityNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> AlternativeCommodityNames { get; set; }
[Newtonsoft.Json.JsonProperty("transitDays", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public TransitDays TransitDays { get; set; }
/// <summary>
/// This is an informational message to inform client Deliverydate is unavailable. If commitTimestamp and transitTime are unavailable, then this is populated in the response in the client language.&lt;br&gt;Example: Deliverydate unavailable
/// </summary>
[Newtonsoft.Json.JsonProperty("label", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Label { get; set; }
/// <summary>
/// Messages concerning the ability to provide an accurate delivery commitment on an International commit quote. These could be messages providing information about why a commitment could not be returned or a successful message. &lt;br&gt; Example: Message
/// </summary>
[Newtonsoft.Json.JsonProperty("commitMessageDetails", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CommitMessageDetails { get; set; }
/// <summary>
/// The Commodity applicable to this commitment.&lt;br&gt; Example: DOCUMENTS
/// </summary>
[Newtonsoft.Json.JsonProperty("commodityName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CommodityName { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,74 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CommitDaysInTransit
{
[System.Runtime.Serialization.EnumMember(Value = @"EIGHT_DAYS")]
EIGHT_DAYS = 0,
[System.Runtime.Serialization.EnumMember(Value = @"EIGHTEEN_DAYS")]
EIGHTEEN_DAYS = 1,
[System.Runtime.Serialization.EnumMember(Value = @"ELEVEN_DAYS")]
ELEVEN_DAYS = 2,
[System.Runtime.Serialization.EnumMember(Value = @"FIFTEEN_DAYS")]
FIFTEEN_DAYS = 3,
[System.Runtime.Serialization.EnumMember(Value = @"FIVE_DAYS")]
FIVE_DAYS = 4,
[System.Runtime.Serialization.EnumMember(Value = @"FOUR_DAYS")]
FOUR_DAYS = 5,
[System.Runtime.Serialization.EnumMember(Value = @"FOURTEEN_DAYS")]
FOURTEEN_DAYS = 6,
[System.Runtime.Serialization.EnumMember(Value = @"NINE_DAYS")]
NINE_DAYS = 7,
[System.Runtime.Serialization.EnumMember(Value = @"NINETEEN_DAYS")]
NINETEEN_DAYS = 8,
[System.Runtime.Serialization.EnumMember(Value = @"ONE_DAY")]
ONE_DAY = 9,
[System.Runtime.Serialization.EnumMember(Value = @"SEVEN_DAYS")]
SEVEN_DAYS = 10,
[System.Runtime.Serialization.EnumMember(Value = @"SEVENTEEN_DAYS")]
SEVENTEEN_DAYS = 11,
[System.Runtime.Serialization.EnumMember(Value = @"SIX_DAYS")]
SIX_DAYS = 12,
[System.Runtime.Serialization.EnumMember(Value = @"SIXTEEN_DAYS")]
SIXTEEN_DAYS = 13,
[System.Runtime.Serialization.EnumMember(Value = @"TEN_DAYS")]
TEN_DAYS = 14,
[System.Runtime.Serialization.EnumMember(Value = @"THIRTEEN_DAYS")]
THIRTEEN_DAYS = 15,
[System.Runtime.Serialization.EnumMember(Value = @"THREE_DAYS")]
THREE_DAYS = 16,
[System.Runtime.Serialization.EnumMember(Value = @"TWELVE_DAYS")]
TWELVE_DAYS = 17,
[System.Runtime.Serialization.EnumMember(Value = @"TWENTY_DAYS")]
TWENTY_DAYS = 18,
[System.Runtime.Serialization.EnumMember(Value = @"TWO_DAYS")]
TWO_DAYS = 19,
[System.Runtime.Serialization.EnumMember(Value = @"SMARTPOST_TRANSIT_DAYS")]
SMARTPOST_TRANSIT_DAYS = 20,
[System.Runtime.Serialization.EnumMember(Value = @"UNKNOWN")]
UNKNOWN = 21,
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum CommitGuaranteedType
{
[System.Runtime.Serialization.EnumMember(Value = @"GUARANTEED_MORNING")]
GUARANTEED_MORNING = 0,
[System.Runtime.Serialization.EnumMember(Value = @"GUARANTEED_CLOSE_OF_BUSINESS")]
GUARANTEED_CLOSE_OF_BUSINESS = 1,
}
}

@ -0,0 +1,79 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Commodity
{
/// <summary>
/// Indicate the description of the dutiable packages.&lt;br&gt; Maximum Length is 450. &lt;br&gt; Example: DOCUMENTS &lt;br&gt;&lt;a onclick='loadDocReference("vaguecommoditydescriptions")'&gt;Click here to see Vague commodity descriptions&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Description { get; set; }
/// <summary>
/// Specify the Total weight of this commodity. This element is used to estimate duties and taxes.
/// </summary>
[Newtonsoft.Json.JsonProperty("weight", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Weight_2 Weight { get; set; }
/// <summary>
/// Specify the total number of units (using quantityUnits as the unit of measure) of this commodity present in the shipment. This element is used to estimate duties and taxes. &lt;br&gt;Example: 1
/// </summary>
[Newtonsoft.Json.JsonProperty("quantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? Quantity { get; set; }
/// <summary>
/// Specify the required Customs value for this commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("customsValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Money CustomsValue { get; set; }
[Newtonsoft.Json.JsonProperty("unitPrice", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public UnitPrice UnitPrice { get; set; }
/// <summary>
/// Specifies the number of pieces for this commodity.&lt;br&gt;Example: 10
/// </summary>
[Newtonsoft.Json.JsonProperty("numberOfPieces", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? NumberOfPieces { get; set; }
/// <summary>
/// This is a manufacturing country. Maximum field Length is 4&lt;br&gt; Example: IN
/// </summary>
[Newtonsoft.Json.JsonProperty("countryOfManufacture", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CountryOfManufacture { get; set; }
/// <summary>
/// Indicate quantiy unit used. Used to estimate duties and taxes &lt;br&gt; Example: PCS&lt;br&gt;&lt;a onclick='loadDocReference("harmonizedsystemcodeunitofmeasure-table1")'&gt;click here to see Commodity Unit Measures&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("quantityUnits", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string QuantityUnits { get; set; }
/// <summary>
/// Indicate the Commodity name&lt;br&gt;Example: DOCUMENTS
/// </summary>
[Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Name { get; set; }
/// <summary>
/// This is to specify the Harmonized Tariff System (HTS) code to meet U.S. and foreign governments' customs requirements. These are mainly used to estimate the duties and taxes.&lt;br&gt;Example: A six digit code for Almonds fresh or dried is 080211. The HTS code for pistachios in shell is 080251. The HTS code for fish is HS203.&lt;br&gt;To research the classification for your commodity, use the FedEx Global Trade Manager online at &lt;a href='http://www.fedex.com/gtm' target='_blank'&gt;fedex.com/gtm&lt;/a&gt;. You can find the commodities and its respective codes by logging into FedEx and selecting harmonized code option. You will find country-specific information to determine whether your commodity is considered to be a document or non-document for your destination. &lt;br&gt;For additional information about harmonized code, refer to &lt;a href='https://www.usitc.gov/documents/hts_external_guide.pdf' target='_blank'&gt;harmonized code&lt;/a&gt;.
/// </summary>
[Newtonsoft.Json.JsonProperty("harmonizedCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string HarmonizedCode { get; set; }
/// <summary>
/// Specify the part number if any. Example: P1
/// </summary>
[Newtonsoft.Json.JsonProperty("partNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PartNumber { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,55 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates the contact details.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Contact
{
/// <summary>
/// Specifies contact name.&lt;br&gt;Note: Recommended Length is 70. There's no specific validation for the length.&lt;br&gt; Example: John Taylor
/// </summary>
[Newtonsoft.Json.JsonProperty("personName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PersonName { get; set; }
/// <summary>
/// Specifies contact email address. Maximum length is 80. &lt;br&gt; Example: sample@company.com
/// </summary>
[Newtonsoft.Json.JsonProperty("emailAddress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string EmailAddress { get; set; }
/// <summary>
/// Specifies contact phone number. Maximum length is 15. &lt;br&gt; Example: 1234567890
/// </summary>
[Newtonsoft.Json.JsonProperty("phoneNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PhoneNumber { get; set; }
/// <summary>
/// Specifies contact phone extension. Maximum length is 6. &lt;br&gt; Example: 1234
/// </summary>
[Newtonsoft.Json.JsonProperty("phoneExtension", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PhoneExtension { get; set; }
/// <summary>
/// Specifies contact fax number. Maximum length is 15. &lt;br&gt; Example: 1234567890
/// </summary>
[Newtonsoft.Json.JsonProperty("faxNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FaxNumber { get; set; }
/// <summary>
/// Specifies contact company name. Maximum length is 35.
/// </summary>
[Newtonsoft.Json.JsonProperty("companyName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CompanyName { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specify the contact and address details of a location.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ContactAndAddress
{
[Newtonsoft.Json.JsonProperty("contact", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Contact_2 Contact { get; set; }
[Newtonsoft.Json.JsonProperty("address", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Address_1 Address { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,55 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicate the contact details.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Contact_2
{
/// <summary>
/// Specify contact name.&lt;br&gt;Note: Recommended Length is 70. There's no specific validation for the length.&lt;br&gt; Example: John Taylor
/// </summary>
[Newtonsoft.Json.JsonProperty("personName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PersonName { get; set; }
/// <summary>
/// Specify contact email address. Maximum length is 80. &lt;br&gt; Example: sample@company.com
/// </summary>
[Newtonsoft.Json.JsonProperty("emailAddress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string EmailAddress { get; set; }
/// <summary>
/// Specify contact phone number. Maximum length is 15. &lt;br&gt; Example: 1234567890
/// </summary>
[Newtonsoft.Json.JsonProperty("phoneNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PhoneNumber { get; set; }
/// <summary>
/// Specify contact phone extension. Maximum length is 6. &lt;br&gt; Example: 1234
/// </summary>
[Newtonsoft.Json.JsonProperty("phoneExtension", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PhoneExtension { get; set; }
/// <summary>
/// Specify contact fax number. Maximum length is 15. &lt;br&gt; Example: 1234567890
/// </summary>
[Newtonsoft.Json.JsonProperty("faxNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FaxNumber { get; set; }
/// <summary>
/// Specify contact company name. Maximum length is 35.
/// </summary>
[Newtonsoft.Json.JsonProperty("companyName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CompanyName { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,37 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies the currency exchange performed on financial amounts for this rate.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CurrencyExchangeRate
{
/// <summary>
/// The currency code for the original (converted FROM) currency.
/// </summary>
[Newtonsoft.Json.JsonProperty("fromCurrency", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FromCurrency { get; set; }
/// <summary>
/// The currency code for the final (converted INTO) currency.
/// </summary>
[Newtonsoft.Json.JsonProperty("intoCurrency", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string IntoCurrency { get; set; }
/// <summary>
/// Multiplier used to convert fromCurrency units to intoCurrency units.
/// </summary>
[Newtonsoft.Json.JsonProperty("rate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? Rate { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This the Customer Message returned in the reply.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class CustomerMessage
{
/// <summary>
/// This is a message code.&lt;br&gt; Example:SERVICE.TYPE.INTERNATIONAL.MESSAGE
/// </summary>
[Newtonsoft.Json.JsonProperty("code", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Code { get; set; }
/// <summary>
/// This is a message description.&lt;br&gt; Example: Rate does not include duties &amp; taxes, clearance entry fees or other import fees. The payor of duties/taxes/fees will be responsible for any applicable Clearance Entry Fees
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,63 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Dangerous Goods Container
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DangerousGoodsContainer
{
/// <summary>
/// Specify the shipper name(offeror) or contact number. Required on all shipping papers.
/// </summary>
[Newtonsoft.Json.JsonProperty("offeror", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Offeror { get; set; }
/// <summary>
/// Specify the kinds and quantities of all hazardous commodities in the current container.
/// </summary>
[Newtonsoft.Json.JsonProperty("hazardousCommodities", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<HazardousCommodityContent> HazardousCommodities { get; set; }
/// <summary>
/// Indicate the number of containers.
/// </summary>
[Newtonsoft.Json.JsonProperty("numberOfContainers", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? NumberOfContainers { get; set; }
/// <summary>
/// Indicate the type of container.
/// </summary>
[Newtonsoft.Json.JsonProperty("containerType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string ContainerType { get; set; }
[Newtonsoft.Json.JsonProperty("emergencyContactNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public PhoneNumber EmergencyContactNumber { get; set; }
[Newtonsoft.Json.JsonProperty("packaging", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityPackagingDetail Packaging { get; set; }
/// <summary>
/// Indicate the packing type used.
/// </summary>
[Newtonsoft.Json.JsonProperty("packingType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public DangerousGoodsContainerPackingType? PackingType { get; set; }
/// <summary>
/// Indicate the packaging type of the container used to package the radioactive materials.
/// </summary>
[Newtonsoft.Json.JsonProperty("radioactiveContainerClass", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public DangerousGoodsContainerRadioactiveContainerClass? RadioactiveContainerClass { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,11 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum DangerousGoodsContainerPackingType
{
[System.Runtime.Serialization.EnumMember(Value = @"ALL_PACKED_IN_ONE")]
ALL_PACKED_IN_ONE = 0,
}
}

@ -0,0 +1,32 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum DangerousGoodsContainerRadioactiveContainerClass
{
[System.Runtime.Serialization.EnumMember(Value = @"EXCEPTED_PACKAGE")]
EXCEPTED_PACKAGE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"INDUSTRIAL_IP1")]
INDUSTRIAL_IP1 = 1,
[System.Runtime.Serialization.EnumMember(Value = @"INDUSTRIAL_IP2")]
INDUSTRIAL_IP2 = 2,
[System.Runtime.Serialization.EnumMember(Value = @"INDUSTRIAL_IP3")]
INDUSTRIAL_IP3 = 3,
[System.Runtime.Serialization.EnumMember(Value = @"TYPE_A")]
TYPE_A = 4,
[System.Runtime.Serialization.EnumMember(Value = @"TYPE_B_M")]
TYPE_B_M = 5,
[System.Runtime.Serialization.EnumMember(Value = @"TYPE_B_U")]
TYPE_B_U = 6,
[System.Runtime.Serialization.EnumMember(Value = @"TYPE_C")]
TYPE_C = 7,
}
}

@ -0,0 +1,45 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Use this object to specify Dangerous Goods shipment Detail.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DangerousGoodsDetail
{
/// <summary>
/// Indicate the Dangerous Goods Accessibility Type.&lt;br&gt; Inaccessible means it does not have to be accessible on the aircraft. Accessible means it must be fully accessible on the aircraft, and is more strictly controlled.
/// </summary>
[Newtonsoft.Json.JsonProperty("accessibility", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public DangerousGoodsDetailAccessibility? Accessibility { get; set; }
/// <summary>
/// Specify the special handling requested for the package.&lt;br&gt; Example: BATTERY
/// </summary>
[Newtonsoft.Json.JsonProperty("options", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public System.Collections.Generic.ICollection<Options> Options { get; set; }
/// <summary>
/// Indicate one or more containers used to pack dangerous goods commodities.
/// </summary>
[Newtonsoft.Json.JsonProperty("containers", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<DangerousGoodsContainer> Containers { get; set; }
/// <summary>
/// The hazardous package shipment regulation type.
/// </summary>
[Newtonsoft.Json.JsonProperty("regulation", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public DangerousGoodsDetailRegulation? Regulation { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum DangerousGoodsDetailAccessibility
{
[System.Runtime.Serialization.EnumMember(Value = @"ACCESSIBLE")]
ACCESSIBLE = 0,
[System.Runtime.Serialization.EnumMember(Value = @"INACCESSIBLE")]
INACCESSIBLE = 1,
}
}

@ -0,0 +1,20 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum DangerousGoodsDetailRegulation
{
[System.Runtime.Serialization.EnumMember(Value = @"ADR")]
ADR = 0,
[System.Runtime.Serialization.EnumMember(Value = @"DOT")]
DOT = 1,
[System.Runtime.Serialization.EnumMember(Value = @"IATA")]
IATA = 2,
[System.Runtime.Serialization.EnumMember(Value = @"ORMD")]
ORMD = 3,
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// These are date and time details.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DateDetail
{
/// <summary>
/// specific day of week in short format&lt;br&gt;Example: MON, TUE
/// </summary>
[Newtonsoft.Json.JsonProperty("dayOfWeek", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string DayOfWeek { get; set; }
/// <summary>
/// This is expected delivery date in format [YYYY-MM-DDTHH:mm:ss]&lt;br&gt;Example: 2020-07-16T10:30:00
/// </summary>
[Newtonsoft.Json.JsonProperty("dayFormat", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string DayFormat { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,55 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Information about why a shipment delivery is delayed and at what level
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DelayDetail
{
/// <summary>
/// delay date. format [YYYY-MM-DD]
/// </summary>
[Newtonsoft.Json.JsonProperty("date", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Date { get; set; }
/// <summary>
/// The delay day of the week
/// </summary>
[Newtonsoft.Json.JsonProperty("dayOfWeek", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string DayOfWeek { get; set; }
/// <summary>
/// The attribute of the shipment that caused the delay(e.g. Country, City, LocationId, Zip, service area, special handling)
/// </summary>
[Newtonsoft.Json.JsonProperty("level", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Level { get; set; }
/// <summary>
/// The point in transit where the delay is occurring (e.g. Origin, Destination, Broker location)
/// </summary>
[Newtonsoft.Json.JsonProperty("point", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Point { get; set; }
/// <summary>
/// The reason for the delay (e.g. holiday, weekend, etc.).
/// </summary>
[Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Type { get; set; }
/// <summary>
/// The name of the holiday in that country that is causing the delay.
/// </summary>
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Description { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,22 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicate the Delivery On Invoice Acceptance detail. Recipient is required for Delivery On Invoice Special service.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DeliveryOnInvoiceAcceptanceDetail
{
[Newtonsoft.Json.JsonProperty("recipient", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public DeliveryOnInvoiceAcceptanceDetailRecipient Recipient { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,13 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DeliveryOnInvoiceAcceptanceDetailRecipient : Party_2
{
[Newtonsoft.Json.JsonProperty("address", Required = Newtonsoft.Json.Required.Always)]
public DeliveryOnInvoiceAcceptanceDetailRecipient_address Address { get; set; }
[Newtonsoft.Json.JsonProperty("contact", Required = Newtonsoft.Json.Required.Always)]
public DeliveryOnInvoiceAcceptanceDetailRecipient_contact Contact { get; set; }
}
}

@ -0,0 +1,29 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DeliveryOnInvoiceAcceptanceDetailRecipient_address
{
/// <summary>
/// This is the combination of number, street name, etc. &lt;br&gt;Note: At least one line is required and streetlines more than 3 will be ignored. Empty lines should not be included. Maximum Length per line is 35.&lt;br&gt;Example: [10 FedEx Parkway, Suite 302, .etc.]
/// </summary>
[Newtonsoft.Json.JsonProperty("streetLines", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> StreetLines { get; set; }
/// <summary>
/// The two-letter country code. &lt;br&gt;Maximum length is 2.&lt;br&gt;Example: US&lt;br&gt;&lt;a onclick='loadDocReference("countrycodes")'&gt;Click here to see Country Codes&lt;/a&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("countryCode", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string CountryCode { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,43 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class DeliveryOnInvoiceAcceptanceDetailRecipient_contact
{
/// <summary>
/// This is a placeholder for company name. Maximum length is 35.
/// </summary>
[Newtonsoft.Json.JsonProperty("companyName", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string CompanyName { get; set; }
/// <summary>
/// This is a placeholder for Fax number. Maximum length is 15.
/// </summary>
[Newtonsoft.Json.JsonProperty("faxNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string FaxNumber { get; set; }
/// <summary>
/// This is a placeholder for contact person's name. Maximum Length is 70.
/// </summary>
[Newtonsoft.Json.JsonProperty("personName", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string PersonName { get; set; }
/// <summary>
/// This is a placeholder for phone number associated with this contact. Maximum length is 15.
/// </summary>
[Newtonsoft.Json.JsonProperty("phoneNumber", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string PhoneNumber { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,44 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicate the dimensions of the package.&lt;br&gt; Following conditions will apply: &lt;ul&gt;&lt;li&gt;Dimensions are optional but when added, then all three dimensions must be indicated.&lt;/li&gt;&lt;li&gt;Dimensions are required with YOUR_PACKAGING package type.&lt;/li&gt;&lt;/ul&gt;Note: The Maximum/minimum dimension values varies based on the services and the packaging types. Refer &lt;a href="https://www.fedex.com/en-us/service-guide.html" target="_blank"&gt;FedEx Service Guide&lt;/a&gt; for service details related to DIM Weighting for FedEx Express and oversize conditions for FedEx Express and FedEx Ground.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Dimensions_1
{
/// <summary>
/// Indicate the length of the package. No implied decimal places. Maximum value: 999 &lt;br&gt; Example: 20
/// </summary>
[Newtonsoft.Json.JsonProperty("length", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? Length { get; set; }
/// <summary>
/// Indicate the width of the package. No implied decimal places. Maximum value: 999 &lt;br&gt; Example: 10
/// </summary>
[Newtonsoft.Json.JsonProperty("width", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? Width { get; set; }
/// <summary>
/// Indicate the height of the package. No implied decimal places. Maximum value: 999 &lt;br&gt; Example: 10
/// </summary>
[Newtonsoft.Json.JsonProperty("height", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? Height { get; set; }
/// <summary>
/// Indicate the unit of measure for the provided dimensions.&lt;br&gt;Valid Values are:&lt;ul&gt;&lt;li&gt;IN - Inches&lt;/li&gt;&lt;li&gt;CM - Centimeters&lt;/li&gt;&lt;/ul&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("units", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public Dimensions_1Units? Units { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum Dimensions_1Units
{
[System.Runtime.Serialization.EnumMember(Value = @"CM")]
CM = 0,
[System.Runtime.Serialization.EnumMember(Value = @"IN")]
IN = 1,
}
}

@ -0,0 +1,32 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies Printed Reference.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EMailNotificationDetail_PrintedReference
{
/// <summary>
/// Indicates the printed reference type.
/// </summary>
[Newtonsoft.Json.JsonProperty("printedReferenceType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public EMailNotificationDetail_PrintedReferencePrintedReferenceType? PrintedReferenceType { get; set; }
/// <summary>
/// Specifies printed reference value.
/// </summary>
[Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Value { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,29 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum EMailNotificationDetail_PrintedReferencePrintedReferenceType
{
[System.Runtime.Serialization.EnumMember(Value = @"BILL_OF_LADING")]
BILL_OF_LADING = 0,
[System.Runtime.Serialization.EnumMember(Value = @"CONSIGNEE_ID_NUMBER")]
CONSIGNEE_ID_NUMBER = 1,
[System.Runtime.Serialization.EnumMember(Value = @"INTERLINE_PRO_NUMBER")]
INTERLINE_PRO_NUMBER = 2,
[System.Runtime.Serialization.EnumMember(Value = @"PO_NUMBER")]
PO_NUMBER = 3,
[System.Runtime.Serialization.EnumMember(Value = @"SHIPPER_ID_NUMBER")]
SHIPPER_ID_NUMBER = 4,
[System.Runtime.Serialization.EnumMember(Value = @"SHIPPER_ID1_NUMBER")]
SHIPPER_ID1_NUMBER = 5,
[System.Runtime.Serialization.EnumMember(Value = @"SHIPPER_ID2_NUMBER")]
SHIPPER_ID2_NUMBER = 6,
}
}

@ -0,0 +1,28 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// estimated duties and tax charge
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EdtCharge
{
[Newtonsoft.Json.JsonProperty("edtTaxDetail", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public EdtTaxDetail EdtTaxDetail { get; set; }
/// <summary>
/// This is to specify the Harmonized Tariff System (HTS) code to meet U.S. and foreign governments' customs requirements. These are mainly used to estimate the duties and taxes.&lt;br&gt;Example: A six digit code for Almonds fresh or dried is 080211. The HTS code for pistachios in shell is 080251. The HTS code for fish is HS203.&lt;br&gt;To research the classification for your commodity, use the FedEx Global Trade Manager online at &lt;a href='http://www.fedex.com/gtm' target='_blank'&gt;fedex.com/gtm&lt;/a&gt;. You can find the commodities and its respective codes by logging into FedEx and selecting harmonized code option. You will find country-specific information to determine whether your commodity is considered to be a document or non-document for your destination. &lt;br&gt;For additional information about harmonized code, refer to &lt;a href='https://www.usitc.gov/documents/hts_external_guide.pdf' target='_blank'&gt;harmonized code&lt;/a&gt;.
/// </summary>
[Newtonsoft.Json.JsonProperty("harmonizedCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string HarmonizedCode { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,61 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies the Estimated duties and taxes detail.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EdtTaxDetail
{
/// <summary>
/// Specifies the Estimated duties and taxes type. &lt;br&gt; Example: TaxType
/// </summary>
[Newtonsoft.Json.JsonProperty("edtTaxType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string EdtTaxType { get; set; }
/// <summary>
/// Specifies the amount for the estimated duties and taxes type.&lt;br&gt; Example: 785.12
/// </summary>
[Newtonsoft.Json.JsonProperty("amount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? Amount { get; set; }
/// <summary>
/// Specifies the Estimated duties and taxes taxable Value.&lt;br&gt; Example: 562.23
/// </summary>
[Newtonsoft.Json.JsonProperty("taxableValue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? TaxableValue { get; set; }
/// <summary>
/// Indicates the name for the Etd tax.
/// </summary>
[Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Name { get; set; }
/// <summary>
/// Indicates the description for the Etd tax.
/// </summary>
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Description { get; set; }
/// <summary>
/// Indicates the formula.
/// </summary>
[Newtonsoft.Json.JsonProperty("formula", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Formula { get; set; }
/// <summary>
/// Specifies the Estimated duties and taxes effective date. Format [YYYY-MM-DD].&lt;br&gt; Example: 2019-12-06
/// </summary>
[Newtonsoft.Json.JsonProperty("effectiveDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string EffectiveDate { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Describes specific information about the email label shipment.&lt;ul&gt;&lt;li&gt;Message: Content of the email message&lt;/li&gt;&lt;li&gt;Recipients: EMailRecipient&lt;/li&gt;&lt;li&gt;emailAddress - email address of the recipient&lt;/li&gt;&lt;li&gt;role - role type of the recipient&lt;/li&gt;&lt;li&gt;optionsRequested&lt;/li&gt;&lt;li&gt;localization&lt;/li&gt;
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EmailLabelDetail
{
/// <summary>
/// Describes specific information about the list of email label shipment reipients.
/// </summary>
[Newtonsoft.Json.JsonProperty("recipients", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<EmailRecipient> Recipients { get; set; }
/// <summary>
/// customer specified message to be included in the email to the end-user.
/// </summary>
[Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Message { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,62 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Data specifying the recipient(s) of notifications related to the movement of the shipment. At a minimnum an EmailnotificationRecipientType, at least one NoficationEventType, and an EmailAddress are required.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EmailNotificationRecipient
{
/// <summary>
/// Identifies the email address associated with this contact.
/// </summary>
[Newtonsoft.Json.JsonProperty("emailAddress", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string EmailAddress { get; set; }
/// <summary>
/// Specifies notification event type.
/// </summary>
[Newtonsoft.Json.JsonProperty("notificationEventType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public System.Collections.Generic.ICollection<NotificationEventType> NotificationEventType { get; set; }
[Newtonsoft.Json.JsonProperty("smsDetail", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public SmsDetail SmsDetail { get; set; }
/// <summary>
/// Specifies Notification Format Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("notificationFormatType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public EmailNotificationRecipientNotificationFormatType? NotificationFormatType { get; set; }
/// <summary>
/// Required Email Notification Recipient Type.
/// </summary>
[Newtonsoft.Json.JsonProperty("emailNotificationRecipientType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public EmailNotificationRecipientType? EmailNotificationRecipientType { get; set; }
/// <summary>
/// Specifies the type of the notification received.
/// </summary>
[Newtonsoft.Json.JsonProperty("notificationType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public EmailNotificationRecipientNotificationType? NotificationType { get; set; }
/// <summary>
/// Specify the locale details.&lt;br&gt;Example: 'en_US'&lt;br&gt;&lt;a onclick='loadDocReference("locales")'&gt;Click here to see the list of available locales&lt;br&gt;&lt;/a&gt;&lt;br&gt;Note: If the locale is left blank or an invalid locale is entered, an error message is returned in response.
/// </summary>
[Newtonsoft.Json.JsonProperty("locale", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Locale { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum EmailNotificationRecipientNotificationFormatType
{
[System.Runtime.Serialization.EnumMember(Value = @"HTML")]
HTML = 0,
[System.Runtime.Serialization.EnumMember(Value = @"TEXT")]
TEXT = 1,
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum EmailNotificationRecipientNotificationType
{
[System.Runtime.Serialization.EnumMember(Value = @"EMAIL")]
EMAIL = 0,
[System.Runtime.Serialization.EnumMember(Value = @"SMS_TEXT_MESSAGE")]
SMS_TEXT_MESSAGE = 1,
}
}

@ -0,0 +1,29 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum EmailNotificationRecipientType
{
[System.Runtime.Serialization.EnumMember(Value = @"BROKER")]
BROKER = 0,
[System.Runtime.Serialization.EnumMember(Value = @"OTHER")]
OTHER = 1,
[System.Runtime.Serialization.EnumMember(Value = @"RECIPIENT")]
RECIPIENT = 2,
[System.Runtime.Serialization.EnumMember(Value = @"SHIPPER")]
SHIPPER = 3,
[System.Runtime.Serialization.EnumMember(Value = @"THIRD_PARTY")]
THIRD_PARTY = 4,
[System.Runtime.Serialization.EnumMember(Value = @"OTHER1")]
OTHER1 = 5,
[System.Runtime.Serialization.EnumMember(Value = @"OTHER2")]
OTHER2 = 6,
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Indicates how the email notifications for the pending shipment need to be processed.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EmailOptionsRequested
{
/// <summary>
/// Specifies the options.
/// </summary>
[Newtonsoft.Json.JsonProperty("options", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public System.Collections.Generic.ICollection<options2> Options { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,39 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Use this object to specify the recipient email information.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class EmailRecipient
{
/// <summary>
/// This is the placeholder for Email address of the end-user to be notified of the return label. Maximum length is 200 characters.
/// </summary>
[Newtonsoft.Json.JsonProperty("emailAddress", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string EmailAddress { get; set; }
[Newtonsoft.Json.JsonProperty("optionsRequested", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public EmailOptionsRequested OptionsRequested { get; set; }
/// <summary>
/// Specifies the role of the recipient to the pending shipment.
/// </summary>
[Newtonsoft.Json.JsonProperty("role", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public EmailRecipientRole? Role { get; set; }
[Newtonsoft.Json.JsonProperty("locale", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Locale Locale { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum EmailRecipientRole
{
[System.Runtime.Serialization.EnumMember(Value = @"SHIPMENT_COMPLETOR")]
SHIPMENT_COMPLETOR = 0,
[System.Runtime.Serialization.EnumMember(Value = @"SHIPMENT_INITIATOR")]
SHIPMENT_INITIATOR = 1,
}
}

@ -0,0 +1,34 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
/// <summary>
/// This element allows you to assign a unique identifier to your transaction. This element is also returned in the reply and helps you match the request to the reply. &lt;br&gt; Example: AnyCo_order123456789
/// </summary>
[Newtonsoft.Json.JsonProperty("customerTransactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CustomerTransactionId { get; set; }
/// <summary>
/// Indicates error alert when suspicious files, potential exploits and viruses found while scanning files , directories and user accounts. This includes code, message and parameter.
/// </summary>
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO401
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError401> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO403
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError403> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO404
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError404> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO500
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
/// <summary>
/// This element allows you to assign a unique identifier to your transaction. This element is also returned in the reply and helps you match the request to the reply. &lt;br&gt; Example: AnyCo_order123456789
/// </summary>
[Newtonsoft.Json.JsonProperty("customerTransactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CustomerTransactionId { get; set; }
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError500> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,25 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class ErrorResponseVO503
{
/// <summary>
/// The transaction ID is a special set of numbers that defines each transaction.&lt;br&gt;Example: 624deea6-b709-470c-8c39-4b5511281492
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TransactionId { get; set; }
[Newtonsoft.Json.JsonProperty("errors", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<CXSError503> Errors { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Express_Freight_Rate_Quote
{
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Express_Freight_Saturday_Pickup_Rate_Quote
{
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class FDGSamplePayloadRateResourceDetailsIntraEurope
{
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Ground_Home_Delivery_Appointment_Delivery_Rate_Quote
{
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,34 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Documents the kind and quantity of an individual hazardous commodity in a package.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityContent
{
[Newtonsoft.Json.JsonProperty("quantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityQuantityDetail Quantity { get; set; }
/// <summary>
/// Specifies the inner receptacles within the container.
/// </summary>
[Newtonsoft.Json.JsonProperty("innerReceptacles", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<HazardousCommodityInnerReceptacleDetail> InnerReceptacles { get; set; }
[Newtonsoft.Json.JsonProperty("options", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityOptionDetail Options { get; set; }
[Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityDescription Description { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,95 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Identifies and describes an individual hazardous commodity.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityDescription
{
/// <summary>
/// In conjunction with the regulatory identifier, this field uniquely identifies a specific hazardous materials commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("sequenceNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? SequenceNumber { get; set; }
/// <summary>
/// Indicates any special processing options to be applied to the description of the dangerous goods commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("processingOptions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public System.Collections.Generic.ICollection<ProcessingOptions> ProcessingOptions { get; set; }
/// <summary>
/// Specifies the hazardous material subsidiary classes.
/// </summary>
[Newtonsoft.Json.JsonProperty("subsidiaryClasses", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.ICollection<string> SubsidiaryClasses { get; set; }
/// <summary>
/// Specifies the DOT diamond hazard label type. This element can also include limited quantity or exemption number.
/// </summary>
[Newtonsoft.Json.JsonProperty("labelText", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string LabelText { get; set; }
/// <summary>
/// Specify the technical name for the hazardous commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("technicalName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string TechnicalName { get; set; }
[Newtonsoft.Json.JsonProperty("packingDetails", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityPackingDetail PackingDetails { get; set; }
/// <summary>
/// Information related to quantity limitations and operator or state variations as may be applicable to the dangerous goods commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("authorization", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Authorization { get; set; }
/// <summary>
/// The element specifies the reportable quantity of the hazardous material.
/// </summary>
[Newtonsoft.Json.JsonProperty("reportableQuantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? ReportableQuantity { get; set; }
/// <summary>
/// Indicates the percentage.
/// </summary>
[Newtonsoft.Json.JsonProperty("percentage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? Percentage { get; set; }
/// <summary>
/// Specifies the ID of label text.
/// </summary>
[Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Id { get; set; }
/// <summary>
/// Identifies IATA packing group for a hazardous commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("packingGroup", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public HazardousCommodityDescriptionPackingGroup? PackingGroup { get; set; }
/// <summary>
/// The proper shipping name as defined by the regulation.&lt;br&gt;The name can also include qualifying words.
/// </summary>
[Newtonsoft.Json.JsonProperty("properShippingName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string ProperShippingName { get; set; }
/// <summary>
/// Specify hazard class for commodity.
/// </summary>
[Newtonsoft.Json.JsonProperty("hazardClass", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string HazardClass { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,20 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum HazardousCommodityDescriptionPackingGroup
{
[System.Runtime.Serialization.EnumMember(Value = @"DEFAULT")]
DEFAULT = 0,
[System.Runtime.Serialization.EnumMember(Value = @"I")]
I = 1,
[System.Runtime.Serialization.EnumMember(Value = @"II")]
II = 2,
[System.Runtime.Serialization.EnumMember(Value = @"III")]
III = 3,
}
}

@ -0,0 +1,22 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// This describes information about the inner receptacles for the hazardous commodity in a particular dangerous goods container.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityInnerReceptacleDetail
{
[Newtonsoft.Json.JsonProperty("quantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public HazardousCommodityQuantityDetail Quantity { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,32 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Customer-provided specifications for handling individual commodities.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityOptionDetail
{
/// <summary>
/// Specifies how the customer wishes the label text to be handled for this commodity in this package.
/// </summary>
[Newtonsoft.Json.JsonProperty("labelTextOption", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public HazardousCommodityOptionDetailLabelTextOption? LabelTextOption { get; set; }
/// <summary>
/// Text used in labeling the commodity under control of the labelTextOption field.
/// </summary>
[Newtonsoft.Json.JsonProperty("customerSuppliedLabelText", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string CustomerSuppliedLabelText { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,17 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum HazardousCommodityOptionDetailLabelTextOption
{
[System.Runtime.Serialization.EnumMember(Value = @"APPEND")]
APPEND = 0,
[System.Runtime.Serialization.EnumMember(Value = @"OVERRIDE")]
OVERRIDE = 1,
[System.Runtime.Serialization.EnumMember(Value = @"STANDARD")]
STANDARD = 2,
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Identifies number and type of packaging units for hazardous commodities.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityPackagingDetail
{
/// <summary>
/// Indicate the number and type of packaging units for dangerous goods.
/// </summary>
[Newtonsoft.Json.JsonProperty("count", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public int? Count { get; set; }
/// <summary>
/// Specify the unit of the package.
/// </summary>
[Newtonsoft.Json.JsonProperty("units", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Units { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,31 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies documentation and limits for validation of an individual packing group/category.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityPackingDetail
{
/// <summary>
/// Indicates the coded specification for how commodity is to be packed.
/// </summary>
[Newtonsoft.Json.JsonProperty("packingInstructions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string PackingInstructions { get; set; }
/// <summary>
/// Indicates the shipment is packaged/documented for movement ONLY on cargo aircraft.
/// </summary>
[Newtonsoft.Json.JsonProperty("cargoAircraftOnly", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public bool? CargoAircraftOnly { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,38 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Specifies Hazardous Commodity Quantity Detail.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HazardousCommodityQuantityDetail
{
/// <summary>
/// Specifies type of a quantity unit.
/// </summary>
[Newtonsoft.Json.JsonProperty("quantityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public HazardousCommodityQuantityDetailQuantityType? QuantityType { get; set; }
/// <summary>
/// Specifies amount details.
/// </summary>
[Newtonsoft.Json.JsonProperty("amount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public double? Amount { get; set; }
/// <summary>
/// Specify unit details.
/// </summary>
[Newtonsoft.Json.JsonProperty("units", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Units { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,14 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum HazardousCommodityQuantityDetailQuantityType
{
[System.Runtime.Serialization.EnumMember(Value = @"GROSS")]
GROSS = 0,
[System.Runtime.Serialization.EnumMember(Value = @"NET")]
NET = 1,
}
}

@ -0,0 +1,36 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// Use this object to specify required information for a shipment to be held at destination FedEx location. &lt;br&gt;&lt;br&gt;&lt;i&gt;Note: This object HoldAtLocationDetail is &lt;b&gt;REQUIRED&lt;/b&gt;, when HOLD_AT_LOCATION is chosen in the specialServiceTypes.&lt;/i&gt;
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HoldAtLocationDetail
{
/// <summary>
/// This is an alphanumeric identifier used for Location/Facility Identification.&lt;br&gt;&lt;br&gt;Example: YBZA&lt;br&gt;&lt;br&gt;Note: &lt;i&gt;&lt;ul&gt;&lt;li&gt;For HAL Shipment, Location ID is &lt;b&gt;REQUIRED&lt;/b&gt; to ensure packages are delivered to the right location.&lt;/li&gt;&lt;li&gt;Use endpoint [&lt;b&gt;Find Location&lt;/b&gt;] in [&lt;b&gt;Location Search API&lt;/b&gt;], to find the correct location ID for your shipment.&lt;/li&gt;&lt;/ul&gt;&lt;/i&gt;
/// </summary>
[Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string LocationId { get; set; }
[Newtonsoft.Json.JsonProperty("locationContactAndAddress", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public ContactAndAddress LocationContactAndAddress { get; set; }
/// <summary>
/// Specify the Location Type.&lt;br&gt; Example: FEDEX_ONSITE
/// </summary>
[Newtonsoft.Json.JsonProperty("locationType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public HoldAtLocationDetailLocationType? LocationType { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

@ -0,0 +1,29 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum HoldAtLocationDetailLocationType
{
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_AUTHORIZED_SHIP_CENTER")]
FEDEX_AUTHORIZED_SHIP_CENTER = 0,
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_OFFICE")]
FEDEX_OFFICE = 1,
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_SELF_SERVICE_LOCATION")]
FEDEX_SELF_SERVICE_LOCATION = 2,
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_STAFFED")]
FEDEX_STAFFED = 3,
[System.Runtime.Serialization.EnumMember(Value = @"RETAIL_ALLICANCE_LOCATION")]
RETAIL_ALLICANCE_LOCATION = 4,
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_GROUND_TERMINAL")]
FEDEX_GROUND_TERMINAL = 5,
[System.Runtime.Serialization.EnumMember(Value = @"FEDEX_ONSITE")]
FEDEX_ONSITE = 6,
}
}

@ -0,0 +1,34 @@
namespace TradeManageNew.APIClients.FedexApi.Models.RatesAndTransitTimes
{
/// <summary>
/// These are Special service elements for FedEx Ground Home Delivery shipments. If selected, element homedeliveryPremiumType is mandatory.
/// <br/>
/// <br/>
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.1.0.0 (NJsonSchema v11.0.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class HomeDeliveryPremiumDetail
{
/// <summary>
/// This is shipment date. Both the date and time portions of the string are expected to be used. The date should not be a past date or a date more than 10 days in the future. The time is the local time of the shipment based on the shipper's time zone.&lt;br&gt;Formats: YYYY-MM-DD, YYYY-MM-DD HH:MM:SS &lt;br&gt; Example: 2024-06-14 19:23:51
/// </summary>
[Newtonsoft.Json.JsonProperty("shipTimestamp", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string ShipTimestamp { get; set; }
/// <summary>
/// This is Home Delivery Premium Type. It allows to specify additional premimum service options for the home delivery shipment. Can specify Evening delivery or a Date certain, or can specify appointment for the delivery.
/// </summary>
[Newtonsoft.Json.JsonProperty("homedeliveryPremiumType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public HomeDeliveryPremiumDetailHomedeliveryPremiumType? HomedeliveryPremiumType { get; set; }
private System.Collections.Generic.IDictionary<string, object> _additionalProperties;
[Newtonsoft.Json.JsonExtensionData]
public System.Collections.Generic.IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save