commit a04d35d20a5e52493fe1b704d18d2871a35b54d7 Author: wufan Date: Wed Oct 16 09:09:00 2024 +0800 :white_check_mark: init diff --git a/Amazon.SellingPartnerApi.API.sln b/Amazon.SellingPartnerApi.API.sln new file mode 100644 index 0000000..4d89486 --- /dev/null +++ b/Amazon.SellingPartnerApi.API.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.SellingPartnerApi.API", "Amazon.SellingPartnerApi.API\Amazon.SellingPartnerApi.API.csproj", "{98A60C7A-A4E6-469F-8C01-CCEEC9EAADC5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.SellingPartnerApiSDK", "Amazon.SellingPartnerApiSDK\Amazon.SellingPartnerApiSDK.csproj", "{D49574FB-A390-40F6-A8FA-4D603E5463D8}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Amazon.SellingPartnerApi.Tests", "Amazon.SellingPartnerApi.Tests\Amazon.SellingPartnerApi.Tests.csproj", "{847B41F6-4062-4394-ADBF-FD2973A1B18B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {98A60C7A-A4E6-469F-8C01-CCEEC9EAADC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {98A60C7A-A4E6-469F-8C01-CCEEC9EAADC5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {98A60C7A-A4E6-469F-8C01-CCEEC9EAADC5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {98A60C7A-A4E6-469F-8C01-CCEEC9EAADC5}.Release|Any CPU.Build.0 = Release|Any CPU + {D49574FB-A390-40F6-A8FA-4D603E5463D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D49574FB-A390-40F6-A8FA-4D603E5463D8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D49574FB-A390-40F6-A8FA-4D603E5463D8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D49574FB-A390-40F6-A8FA-4D603E5463D8}.Release|Any CPU.Build.0 = Release|Any CPU + {847B41F6-4062-4394-ADBF-FD2973A1B18B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {847B41F6-4062-4394-ADBF-FD2973A1B18B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {847B41F6-4062-4394-ADBF-FD2973A1B18B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {847B41F6-4062-4394-ADBF-FD2973A1B18B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Amazon.SellingPartnerApi.API/Amazon.SellingPartnerApi.API.csproj b/Amazon.SellingPartnerApi.API/Amazon.SellingPartnerApi.API.csproj new file mode 100644 index 0000000..83c5ed4 --- /dev/null +++ b/Amazon.SellingPartnerApi.API/Amazon.SellingPartnerApi.API.csproj @@ -0,0 +1,17 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + diff --git a/Amazon.SellingPartnerApi.API/Controllers/ShippingV2Controller.cs b/Amazon.SellingPartnerApi.API/Controllers/ShippingV2Controller.cs new file mode 100644 index 0000000..4c2e8ae --- /dev/null +++ b/Amazon.SellingPartnerApi.API/Controllers/ShippingV2Controller.cs @@ -0,0 +1,62 @@ +using Amazon.SellingPartnerApiSDK; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2; +using Amazon.SellingPartnerApiSDK.Misc; +using Microsoft.AspNetCore.Mvc; + +namespace Amazon.SellingPartnerApi.API.Controllers; + +[ApiController] +[Route("[controller]")] +public class ShippingV2Controller : ControllerBase +{ + private const string ClientId = "amzn1.application-oa2-client.e3dae1dc1e094e52bb22fb41a6ddc181"; + + private const string ClientSecret = + "amzn1.oa2-cs.v1.a063c5aae6acc6d3ee13a1dd11a4fb58c8fd896147316eddd62f74c9423cc6d1"; + + private const string RefreshToken = + "Atzr|IwEBIISWmK12dl1Ilk0_3ibdFb8qTmlVEQ8V8o64kI7tm9KkR6gYI-V57QxO78Dcag4we5Yai9NWwMEOpETg_QhS8yi0gqPvC5bH0-8IxAPUNogcSPpeuQ4ISYD6Uv1GwSOb21MKtPbaM-vCB1wzkqhnvnefJG9NaTPnGaryOT6Htg_zOjqon8ZfZqG5fSNBGSCBJ2W_AdZ7jqPXfwbwrnulyWojcL8rAQ79qv2-p87fLvWCRA5w10MViyyoOD9h3Qbj6BDDWNcYHFE-1sr9E9Q5FOVusiFzW8cAgIvO9furWF2FfviECQpn-jH-PTvipjpw4Cw"; + + private AmazonCredential BuildAmazonCredential() + { + var credential = new AmazonCredential( + ClientId, + ClientSecret, + RefreshToken, + MarketPlace.US.Id + ) + { + IsDebugMode = true, + MaxThrottledRetryCount = 1 + }; + + return credential; + } + + private AmazonConnection CreateAmazonConnection() + { + var credential = BuildAmazonCredential(); + + return new AmazonConnection(credential); + } + + [HttpPost("rates")] + public async Task GetRatesAsync(GetRatesRequest request) + { + var amazonConnection = CreateAmazonConnection(); + + var rates = await amazonConnection.ShippingV2.GetRatesAsync(request); + + return rates; + } + + [HttpPost("purchase-shipment")] + public async Task PurchaseShipmentAsync(PurchaseShipmentRequest request) + { + var amazonConnection = CreateAmazonConnection(); + + var purchaseShipment = await amazonConnection.ShippingV2.PurchaseShipmentAsync(request); + + return purchaseShipment; + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApi.API/Program.cs b/Amazon.SellingPartnerApi.API/Program.cs new file mode 100644 index 0000000..eb3dc42 --- /dev/null +++ b/Amazon.SellingPartnerApi.API/Program.cs @@ -0,0 +1,44 @@ +var builder = WebApplication.CreateBuilder(args); + +// Add services to the container. +builder.Services.AddCors(options => +{ + options.AddPolicy("AllowAll", builder => + { + builder.AllowAnyOrigin() + .AllowAnyMethod() + .AllowAnyHeader(); + }); +}); +builder.Services.AddControllers(); +// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle +builder.Services.AddEndpointsApiExplorer(); +builder.Services.AddSwaggerGen(); +builder.Services.ConfigureSwaggerGen(options => +{ + options.CustomSchemaIds(x => x.FullName); +}); + +// 读取 Kestrel 配置 +builder.WebHost.ConfigureKestrel(options => +{ + options.Configure(builder.Configuration.GetSection("Kestrel")); +}); + +var app = builder.Build(); + +// Configure the HTTP request pipeline. +app.UseCors("AllowAll"); +if (app.Environment.IsDevelopment()) +{ + app.UseSwagger(); + app.UseSwaggerUI(); +} + +app.UseHttpsRedirection(); + +app.UseAuthorization(); + +app.MapControllers(); + +app.Run(); \ No newline at end of file diff --git a/Amazon.SellingPartnerApi.API/Properties/launchSettings.json b/Amazon.SellingPartnerApi.API/Properties/launchSettings.json new file mode 100644 index 0000000..ace82dc --- /dev/null +++ b/Amazon.SellingPartnerApi.API/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:53428", + "sslPort": 44395 + } + }, + "profiles": { + "Amazon.SellingPartnerApi.API": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "http://localhost:7093", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/Amazon.SellingPartnerApi.API/appsettings.Development.json b/Amazon.SellingPartnerApi.API/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/Amazon.SellingPartnerApi.API/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/Amazon.SellingPartnerApi.API/appsettings.json b/Amazon.SellingPartnerApi.API/appsettings.json new file mode 100644 index 0000000..b38f79c --- /dev/null +++ b/Amazon.SellingPartnerApi.API/appsettings.json @@ -0,0 +1,16 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*", + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://0.0.0.0:7093" + } + } + } +} diff --git a/Amazon.SellingPartnerApi.Tests/Amazon.SellingPartnerApi.Tests.csproj b/Amazon.SellingPartnerApi.Tests/Amazon.SellingPartnerApi.Tests.csproj new file mode 100644 index 0000000..e8acfc8 --- /dev/null +++ b/Amazon.SellingPartnerApi.Tests/Amazon.SellingPartnerApi.Tests.csproj @@ -0,0 +1,27 @@ + + + + net6.0 + enable + enable + + false + true + + + + + + + + + + + + + + + + + + diff --git a/Amazon.SellingPartnerApi.Tests/SampleShippingV2Tests.cs b/Amazon.SellingPartnerApi.Tests/SampleShippingV2Tests.cs new file mode 100644 index 0000000..487d7b7 --- /dev/null +++ b/Amazon.SellingPartnerApi.Tests/SampleShippingV2Tests.cs @@ -0,0 +1,220 @@ +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2; +using Newtonsoft.Json; +using Xunit.Abstractions; + +namespace Amazon.SellingPartnerApi.Tests; + +public class SampleShippingV2Tests : SampleTestsBase +{ + private readonly ITestOutputHelper _testOutputHelper; + + public SampleShippingV2Tests(ITestOutputHelper testOutputHelper) + { + this._testOutputHelper = testOutputHelper; + } + + [Fact] + public async Task Should_Get_Rates() + { + var amazonConnection = CreateAmazonConnection(); + + var getRatesRequest = new GetRatesRequest + { + ShipTo = new Address + { + Name = "Robert", + AddressLine1 = "E. O'Neal Jr 32 Winding Vale Rd Poplarville, MS", + StateOrRegion = "MS", + City = "Poplarville", + CountryCode = "US", + PostalCode = "39470", + }, + ShipFrom = new Address + { + Name = "EDDIE", + AddressLine1 = "11190 White Birch Dr, Suite 100,CA,Rancho Cucamonga,91730", + StateOrRegion = "CA", + City = "Rancho Cucamonga", + CountryCode = "US", + PostalCode = "91730", + }, + Packages = new PackageList() + { + new Package + { + Dimensions = new Dimensions + { + Unit = DimensionsUnitEnum.INCH, + Length = 20, + Width = 20, + Height = 20 + }, + Weight = new Weight + { + Unit = WeightUnitEnum.POUND, + Value = 20 + }, + InsuredValue = new Currency + { + Value = 200, + Unit = "USD" + }, + PackageClientReferenceId = "111-0844329-0173888", + IsHazmat = false, + Items = new ItemList + { + new Item + { + // ItemValue = new Currency + // { + // Value = 200, + // Unit = "USD" + // }, + Quantity = 1, + Weight = new Weight + { + Unit = WeightUnitEnum.POUND, + Value = 20 + }, + // LiquidVolume = new LiquidVolume + // { + // Unit = LiquidVolume.UnitEnum.ML, + // Value = 2000 + // }, + } + } + } + }, + ChannelDetails = new ChannelDetails() + { + ChannelType = ChannelType.EXTERNAL + }, + }; + + try + { + var rates = await amazonConnection.ShippingV2.GetRatesAsync(getRatesRequest); + + _testOutputHelper.WriteLine(JsonConvert.SerializeObject(rates)); + } + catch (AmazonException e) + { + _testOutputHelper.WriteLine(JsonConvert.SerializeObject(e.Response.Content)); + } + } + + [Fact] + public async Task Should_Get_PurchaseShipment() + { + var amazonConnection = CreateAmazonConnection(); + + var purchaseShipmentRequest = new PurchaseShipmentRequest + { + RequestToken = "amzn1.rq.96860495585299.100", + RateId = "bdb4af907b215d71836ac5473581cf4094a9384c874e63c7252d6dcb8309212d1728552328767", + RequestedDocumentSpecification = new RequestedDocumentSpecification + { + Format = DocumentFormat.PDF, + Size = new DocumentSize + { + Unit = DocumentSizeUnitEnum.INCH, + Width = 4, + Length = 6 + }, + PageLayout = "DEFAULT", + NeedFileJoining = false, + RequestedDocumentTypes = new List() { DocumentType.LABEL } + }, + }; + + var purchaseShipment = await amazonConnection.ShippingV2.PurchaseShipmentAsync(purchaseShipmentRequest); + + _testOutputHelper.WriteLine(JsonConvert.SerializeObject(purchaseShipment)); + } + + [Fact] + public async Task Should_Get_OneClickShipment() + { + var amazonConnection = CreateAmazonConnection(); + + var oneClickShipmentRequest = new OneClickShipmentRequest + { + ShipTo = new Address + { + Name = "Robert", + AddressLine1 = "E. O'Neal Jr 32 Winding Vale Rd Poplarville, MS", + StateOrRegion = "MS", + City = "Poplarville", + CountryCode = "US", + PostalCode = "39470", + }, + ShipFrom = new Address + { + Name = "EDDIE", + AddressLine1 = "11190 White Birch Dr, Suite 100,CA,Rancho Cucamonga,91730", + StateOrRegion = "CA", + City = "Rancho Cucamonga", + CountryCode = "US", + PostalCode = "91730", + }, + Packages = new PackageList() + { + new Package + { + Dimensions = new Dimensions + { + Unit = DimensionsUnitEnum.INCH, + Length = 20, + Width = 20, + Height = 20 + }, + Weight = new Weight + { + Unit = WeightUnitEnum.POUND, + Value = 20 + }, + InsuredValue = new Currency + { + Value = 200, + Unit = "USD" + }, + PackageClientReferenceId = "111-0844329-0173888", + IsHazmat = false, + Items = new ItemList + { + new Item + { + ItemValue = new Currency + { + Value = 200, + Unit = "USD" + }, + Quantity = 1, + Weight = new Weight + { + Unit = WeightUnitEnum.POUND, + Value = 20 + }, + LiquidVolume = new LiquidVolume + { + Unit = LiquidVolumeUnitEnum.ML, + Value = 2000 + }, + } + } + } + }, + ValueAddedServicesDetails = null, + TaxDetails = null, + ChannelDetails = new ChannelDetails() + { + ChannelType = ChannelType.EXTERNAL + }, + LabelSpecifications = null, + ServiceSelection = null, + ShipperInstruction = null, + DestinationAccessPointDetails = null + }; + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApi.Tests/SampleTestsBase.cs b/Amazon.SellingPartnerApi.Tests/SampleTestsBase.cs new file mode 100644 index 0000000..31fc742 --- /dev/null +++ b/Amazon.SellingPartnerApi.Tests/SampleTestsBase.cs @@ -0,0 +1,37 @@ +using Amazon.SellingPartnerApiSDK; +using Amazon.SellingPartnerApiSDK.Misc; + +namespace Amazon.SellingPartnerApi.Tests; + +public class SampleTestsBase +{ + private const string ClientId = "amzn1.application-oa2-client.e3dae1dc1e094e52bb22fb41a6ddc181"; + + private const string ClientSecret = + "amzn1.oa2-cs.v1.a063c5aae6acc6d3ee13a1dd11a4fb58c8fd896147316eddd62f74c9423cc6d1"; + + private const string RefreshToken = + "Atzr|IwEBIISWmK12dl1Ilk0_3ibdFb8qTmlVEQ8V8o64kI7tm9KkR6gYI-V57QxO78Dcag4we5Yai9NWwMEOpETg_QhS8yi0gqPvC5bH0-8IxAPUNogcSPpeuQ4ISYD6Uv1GwSOb21MKtPbaM-vCB1wzkqhnvnefJG9NaTPnGaryOT6Htg_zOjqon8ZfZqG5fSNBGSCBJ2W_AdZ7jqPXfwbwrnulyWojcL8rAQ79qv2-p87fLvWCRA5w10MViyyoOD9h3Qbj6BDDWNcYHFE-1sr9E9Q5FOVusiFzW8cAgIvO9furWF2FfviECQpn-jH-PTvipjpw4Cw"; + + private AmazonCredential BuildAmazonCredential() + { + var credential = new AmazonCredential( + ClientId, + ClientSecret, + RefreshToken, + MarketPlace.US.Id + ) + { + IsDebugMode = true + }; + + return credential; + } + + protected AmazonConnection CreateAmazonConnection() + { + var credential = BuildAmazonCredential(); + + return new AmazonConnection(credential); + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApi.Tests/Using.cs b/Amazon.SellingPartnerApi.Tests/Using.cs new file mode 100644 index 0000000..a611174 --- /dev/null +++ b/Amazon.SellingPartnerApi.Tests/Using.cs @@ -0,0 +1 @@ +global using Xunit; \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Amazon.SellingPartnerApiSDK.csproj b/Amazon.SellingPartnerApiSDK/Amazon.SellingPartnerApiSDK.csproj new file mode 100644 index 0000000..ef02e36 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Amazon.SellingPartnerApiSDK.csproj @@ -0,0 +1,20 @@ + + + + netstandard2.0 + + + + + + + + + + + + + + + + diff --git a/Amazon.SellingPartnerApiSDK/AmazonConnection.cs b/Amazon.SellingPartnerApiSDK/AmazonConnection.cs new file mode 100644 index 0000000..99b13bb --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonConnection.cs @@ -0,0 +1,38 @@ +using System; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions; +using Amazon.SellingPartnerApiSDK.Misc; +using Amazon.SellingPartnerApiSDK.Services; + +namespace Amazon.SellingPartnerApiSDK +{ + public class AmazonConnection + { + private AmazonCredential Credentials { get; set; } + + public MarketPlace GetCurrentMarketplace => Credentials.MarketPlace; + + public string GetCurrentSellerId => Credentials.SellerId; + + private readonly UnauthorizedAccessException _noCredentials = + new UnauthorizedAccessException("Amazon凭据信息不存在,无法请求API!"); + + #region ShippingV2 + + private readonly ShippingV2Service _shippingV2; + + public ShippingV2Service ShippingV2 => this._shippingV2 ?? throw _noCredentials; + + #endregion + + public AmazonConnection(AmazonCredential credentials) + { + this.Credentials = credentials ?? + throw new AmazonUnauthorizedException( + "Amazon凭据信息不存在,无法请求API!"); + + _shippingV2 = new ShippingV2Service(this.Credentials); + + AmazonCredential.DebugMode = Credentials.IsDebugMode; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonCredential.cs b/Amazon.SellingPartnerApiSDK/AmazonCredential.cs new file mode 100644 index 0000000..4672dd8 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonCredential.cs @@ -0,0 +1,106 @@ +using System.Collections.Generic; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token; +using Amazon.SellingPartnerApiSDK.Misc; +using static Amazon.SellingPartnerApiSDK.Misc.Constants; + +namespace Amazon.SellingPartnerApiSDK +{ + public class AmazonCredential + { + /// + /// Amazon Credential + /// + /// ClientId + /// ClientSecret + /// RefreshToken + /// + /// + /// + public AmazonCredential( + string clientId, + string clientSecret, + string refreshToken, + string marketPlaceId, + string sellerId = null, + string proxyAddress = null + ) + { + if (string.IsNullOrEmpty(clientId)) + throw new AmazonInvalidInputException("无效输入, ClientId不能为空!"); + if (string.IsNullOrEmpty(clientSecret)) + throw new AmazonInvalidInputException("无效输入, ClientSecret不能为空!"); + if (string.IsNullOrEmpty(refreshToken)) + throw new AmazonInvalidInputException("无效输入, RefreshToken不能为空!"); + if (string.IsNullOrEmpty(marketPlaceId)) + throw new AmazonInvalidInputException("无效输入, MarketPlaceId不能为空!"); + ClientId = clientId; + ClientSecret = clientSecret; + RefreshToken = refreshToken; + MarketPlace = MarketPlace.GetMarketPlaceById(marketPlaceId); + SellerId = sellerId; + ProxyAddress = proxyAddress; + CacheTokenData = new CacheTokenData(); + } + + /// + /// LAW ClientId + /// + public string ClientId { get; set; } + + /// + /// LAW ClientSecret + /// + public string ClientSecret { get; set; } + + /// + /// LWA RefreshToken + /// + public string RefreshToken { get; set; } + + /// + /// 市场 + /// + public MarketPlace MarketPlace { get; set; } + + private CacheTokenData CacheTokenData { get; } + + /// + /// 是否启用速率限制 + /// + public bool IsActiveLimitRate { get; set; } = true; + + /// + /// 环境 + /// + public Constants.Environments Environment { get; set; } = Constants.Environments.Production; + + /// + /// 最大重试次数 + /// + public int MaxThrottledRetryCount { get; set; } = 3; + + /// + /// 是否启用调试模式 + /// + public bool IsDebugMode { get; set; } + + public string SellerId { get; set; } + public string ProxyAddress { get; set; } + public static bool DebugMode { get; set; } + + + internal Dictionary UsagePlansTimings { get; set; } = + RateLimitsDefinitions.RateLimitsTime(); + + public TokenResponse GetToken(CacheTokenData.TokenDataType tokenDataType) + { + return CacheTokenData.GetToken(tokenDataType); + } + + public void SetToken(CacheTokenData.TokenDataType tokenDataType, TokenResponse token) + { + CacheTokenData.SetToken(tokenDataType, token); + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Exceptions/AmazonException.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Exceptions/AmazonException.cs new file mode 100644 index 0000000..ae91f6f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Exceptions/AmazonException.cs @@ -0,0 +1,91 @@ +using System; +using System.Net; +using RestSharp; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions +{ + public class AmazonException : Exception + { + public ExceptionResponse Response { get; set; } + + public AmazonException(string msg, RestResponse response = null) : base(msg) + { + if (response != null) + { + Response = new ExceptionResponse(); + Response.Content = response.Content; + Response.ResponseCode = response.StatusCode; + } + } + } + + public class AmazonNotFoundException : AmazonException + { + public AmazonNotFoundException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonUnauthorizedException : AmazonException + { + public AmazonUnauthorizedException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonInvalidInputException : AmazonException + { + public string Details { get; set; } + + public AmazonInvalidInputException(string msg, string details = null, RestResponse response = null) : base(msg, response) + { + this.Details = details; + //this.Data["Details"] = details; + } + } + + public class AmazonQuotaExceededException : AmazonException + { + public AmazonQuotaExceededException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonInvalidSignatureException : AmazonException + { + public AmazonInvalidSignatureException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonInternalErrorException : AmazonException + { + public AmazonInternalErrorException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonBadRequestException : AmazonException + { + public AmazonBadRequestException(string msg, RestResponse response = null) : base(msg, response) + { + } + } + + public class AmazonProcessingReportDeserializeException : AmazonException + { + public string ReportContent { get; set; } + + public AmazonProcessingReportDeserializeException(string msg, string reportContent, + RestResponse response = null) : base(msg, response) + { + ReportContent = reportContent; + } + } + + public class ExceptionResponse + { + public string Content { get; set; } + public HttpStatusCode? ResponseCode { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPoint.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPoint.cs new file mode 100644 index 0000000..4461252 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPoint.cs @@ -0,0 +1,286 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Access point details + /// + [DataContract] + public partial class AccessPoint : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="type", EmitDefaultValue=false)] + public AccessPointType? Type { get; set; } + /// + /// Defines AssistanceType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AssistanceTypeEnum + { + + /// + /// Enum STAFFASSISTED for value: STAFF_ASSISTED + /// + [EnumMember(Value = "STAFF_ASSISTED")] + STAFFASSISTED = 1, + + /// + /// Enum SELFASSISTED for value: SELF_ASSISTED + /// + [EnumMember(Value = "SELF_ASSISTED")] + SELFASSISTED = 2 + } + + /// + /// Gets or Sets AssistanceType + /// + [DataMember(Name="assistanceType", EmitDefaultValue=false)] + public AssistanceTypeEnum? AssistanceType { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// accessPointId. + /// Name of entity (store/hub etc) where this access point is located. + /// Timezone of access point. + /// type. + /// accessibilityAttributes. + /// address. + /// exceptionOperatingHours. + /// assistanceType. + /// The score of access point, based on proximity to postal code and sorting preference. This can be used to sort access point results on shipper's end.. + /// standardOperatingHours. + public AccessPoint(AccessPointId accessPointId = default(AccessPointId), string name = default(string), string timezone = default(string), AccessPointType? type = default(AccessPointType?), AccessibilityAttributes accessibilityAttributes = default(AccessibilityAttributes), Address address = default(Address), List exceptionOperatingHours = default(List), AssistanceTypeEnum? assistanceType = default(AssistanceTypeEnum?), string score = default(string), DayOfWeekTimeMap standardOperatingHours = default(DayOfWeekTimeMap)) + { + this.AccessPointId = accessPointId; + this.Name = name; + this.Timezone = timezone; + this.Type = type; + this.AccessibilityAttributes = accessibilityAttributes; + this.Address = address; + this.ExceptionOperatingHours = exceptionOperatingHours; + this.AssistanceType = assistanceType; + this.Score = score; + this.StandardOperatingHours = standardOperatingHours; + } + + /// + /// Gets or Sets AccessPointId + /// + [DataMember(Name="accessPointId", EmitDefaultValue=false)] + public AccessPointId AccessPointId { get; set; } + + /// + /// Name of entity (store/hub etc) where this access point is located + /// + /// Name of entity (store/hub etc) where this access point is located + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// Timezone of access point + /// + /// Timezone of access point + [DataMember(Name="timezone", EmitDefaultValue=false)] + public string Timezone { get; set; } + + + /// + /// Gets or Sets AccessibilityAttributes + /// + [DataMember(Name="accessibilityAttributes", EmitDefaultValue=false)] + public AccessibilityAttributes AccessibilityAttributes { get; set; } + + /// + /// Gets or Sets Address + /// + [DataMember(Name="address", EmitDefaultValue=false)] + public Address Address { get; set; } + + /// + /// Gets or Sets ExceptionOperatingHours + /// + [DataMember(Name="exceptionOperatingHours", EmitDefaultValue=false)] + public List ExceptionOperatingHours { get; set; } + + + /// + /// The score of access point, based on proximity to postal code and sorting preference. This can be used to sort access point results on shipper's end. + /// + /// The score of access point, based on proximity to postal code and sorting preference. This can be used to sort access point results on shipper's end. + [DataMember(Name="score", EmitDefaultValue=false)] + public string Score { get; set; } + + /// + /// Gets or Sets StandardOperatingHours + /// + [DataMember(Name="standardOperatingHours", EmitDefaultValue=false)] + public DayOfWeekTimeMap StandardOperatingHours { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPoint {\n"); + sb.Append(" AccessPointId: ").Append(AccessPointId).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Timezone: ").Append(Timezone).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" AccessibilityAttributes: ").Append(AccessibilityAttributes).Append("\n"); + sb.Append(" Address: ").Append(Address).Append("\n"); + sb.Append(" ExceptionOperatingHours: ").Append(ExceptionOperatingHours).Append("\n"); + sb.Append(" AssistanceType: ").Append(AssistanceType).Append("\n"); + sb.Append(" Score: ").Append(Score).Append("\n"); + sb.Append(" StandardOperatingHours: ").Append(StandardOperatingHours).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPoint); + } + + /// + /// Returns true if AccessPoint instances are equal + /// + /// Instance of AccessPoint to be compared + /// Boolean + public bool Equals(AccessPoint input) + { + if (input == null) + return false; + + return + ( + this.AccessPointId == input.AccessPointId || + (this.AccessPointId != null && + this.AccessPointId.Equals(input.AccessPointId)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Timezone == input.Timezone || + (this.Timezone != null && + this.Timezone.Equals(input.Timezone)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.AccessibilityAttributes == input.AccessibilityAttributes || + (this.AccessibilityAttributes != null && + this.AccessibilityAttributes.Equals(input.AccessibilityAttributes)) + ) && + ( + this.Address == input.Address || + (this.Address != null && + this.Address.Equals(input.Address)) + ) && + ( + this.ExceptionOperatingHours == input.ExceptionOperatingHours || + this.ExceptionOperatingHours != null && + this.ExceptionOperatingHours.SequenceEqual(input.ExceptionOperatingHours) + ) && + ( + this.AssistanceType == input.AssistanceType || + (this.AssistanceType != null && + this.AssistanceType.Equals(input.AssistanceType)) + ) && + ( + this.Score == input.Score || + (this.Score != null && + this.Score.Equals(input.Score)) + ) && + ( + this.StandardOperatingHours == input.StandardOperatingHours || + (this.StandardOperatingHours != null && + this.StandardOperatingHours.Equals(input.StandardOperatingHours)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccessPointId != null) + hashCode = hashCode * 59 + this.AccessPointId.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Timezone != null) + hashCode = hashCode * 59 + this.Timezone.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.AccessibilityAttributes != null) + hashCode = hashCode * 59 + this.AccessibilityAttributes.GetHashCode(); + if (this.Address != null) + hashCode = hashCode * 59 + this.Address.GetHashCode(); + if (this.ExceptionOperatingHours != null) + hashCode = hashCode * 59 + this.ExceptionOperatingHours.GetHashCode(); + if (this.AssistanceType != null) + hashCode = hashCode * 59 + this.AssistanceType.GetHashCode(); + if (this.Score != null) + hashCode = hashCode * 59 + this.Score.GetHashCode(); + if (this.StandardOperatingHours != null) + hashCode = hashCode * 59 + this.StandardOperatingHours.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointDetails.cs new file mode 100644 index 0000000..22bab8d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointDetails.cs @@ -0,0 +1,108 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// AccessPointDetails + /// + [DataContract] + public partial class AccessPointDetails : IEquatable, IValidatableObject + { + /// + /// Gets or Sets AccessPointId + /// + [DataMember(Name="accessPointId", EmitDefaultValue=false)] + public string AccessPointId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPointDetails {\n"); + sb.Append(" AccessPointId: ").Append(AccessPointId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPointDetails); + } + + /// + /// Returns true if AccessPointDetails instances are equal + /// + /// Instance of AccessPointDetails to be compared + /// Boolean + public bool Equals(AccessPointDetails input) + { + if (input == null) + return false; + + return + ( + this.AccessPointId == input.AccessPointId || + (this.AccessPointId != null && + this.AccessPointId.Equals(input.AccessPointId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccessPointId != null) + hashCode = hashCode * 59 + this.AccessPointId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointId.cs new file mode 100644 index 0000000..cd7a7bb --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Unique identifier for the access point + /// + [DataContract] + public partial class AccessPointId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AccessPointId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPointId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPointId); + } + + /// + /// Returns true if AccessPointId instances are equal + /// + /// Instance of AccessPointId to be compared + /// Boolean + public bool Equals(AccessPointId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointList.cs new file mode 100644 index 0000000..a24a7f4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// List of relevant Access points requested by shipper. These access points are sorted by proximity to postal code, and are limited to 40. We have internally defined a radius value to render relevant results. + /// + [DataContract] + public partial class AccessPointList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AccessPointList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPointList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPointList); + } + + /// + /// Returns true if AccessPointList instances are equal + /// + /// Instance of AccessPointList to be compared + /// Boolean + public bool Equals(AccessPointList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointType.cs new file mode 100644 index 0000000..7be9f92 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointType.cs @@ -0,0 +1,76 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The type of access point, like counter (HELIX), lockers, etc. + /// + /// The type of access point, like counter (HELIX), lockers, etc. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum AccessPointType + { + + /// + /// Enum HELIX for value: HELIX + /// + [EnumMember(Value = "HELIX")] + HELIX = 1, + + /// + /// Enum CAMPUSLOCKER for value: CAMPUS_LOCKER + /// + [EnumMember(Value = "CAMPUS_LOCKER")] + CAMPUSLOCKER = 2, + + /// + /// Enum OMNILOCKER for value: OMNI_LOCKER + /// + [EnumMember(Value = "OMNI_LOCKER")] + OMNILOCKER = 3, + + /// + /// Enum ODINLOCKER for value: ODIN_LOCKER + /// + [EnumMember(Value = "ODIN_LOCKER")] + ODINLOCKER = 4, + + /// + /// Enum DOBBYLOCKER for value: DOBBY_LOCKER + /// + [EnumMember(Value = "DOBBY_LOCKER")] + DOBBYLOCKER = 5, + + /// + /// Enum CORELOCKER for value: CORE_LOCKER + /// + [EnumMember(Value = "CORE_LOCKER")] + CORELOCKER = 6, + + /// + /// Enum _3P for value: 3P + /// + [EnumMember(Value = "3P")] + _3P = 7, + + /// + /// Enum CAMPUSROOM for value: CAMPUS_ROOM + /// + [EnumMember(Value = "CAMPUS_ROOM")] + CAMPUSROOM = 8 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointsMap.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointsMap.cs new file mode 100644 index 0000000..1e8c399 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessPointsMap.cs @@ -0,0 +1,104 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Map of type of access point to list of access points + /// + [DataContract] + public partial class AccessPointsMap : Dictionary, IEquatable, + IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AccessPointsMap() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessPointsMap {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessPointsMap); + } + + /// + /// Returns true if AccessPointsMap instances are equal + /// + /// Instance of AccessPointsMap to be compared + /// Boolean + public bool Equals(AccessPointsMap input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessibilityAttributes.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessibilityAttributes.cs new file mode 100644 index 0000000..7cbaa00 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AccessibilityAttributes.cs @@ -0,0 +1,135 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Defines the accessibility details of the access point. + /// + [DataContract] + public partial class AccessibilityAttributes : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The approximate distance of access point from input postalCode's centroid.. + /// The approximate (static) drive time from input postal code's centroid.. + public AccessibilityAttributes(string distance = default(string), int? driveTime = default(int?)) + { + this.Distance = distance; + this.DriveTime = driveTime; + } + + /// + /// The approximate distance of access point from input postalCode's centroid. + /// + /// The approximate distance of access point from input postalCode's centroid. + [DataMember(Name="distance", EmitDefaultValue=false)] + public string Distance { get; set; } + + /// + /// The approximate (static) drive time from input postal code's centroid. + /// + /// The approximate (static) drive time from input postal code's centroid. + [DataMember(Name="driveTime", EmitDefaultValue=false)] + public int? DriveTime { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AccessibilityAttributes {\n"); + sb.Append(" Distance: ").Append(Distance).Append("\n"); + sb.Append(" DriveTime: ").Append(DriveTime).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AccessibilityAttributes); + } + + /// + /// Returns true if AccessibilityAttributes instances are equal + /// + /// Instance of AccessibilityAttributes to be compared + /// Boolean + public bool Equals(AccessibilityAttributes input) + { + if (input == null) + return false; + + return + ( + this.Distance == input.Distance || + (this.Distance != null && + this.Distance.Equals(input.Distance)) + ) && + ( + this.DriveTime == input.DriveTime || + (this.DriveTime != null && + this.DriveTime.Equals(input.DriveTime)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Distance != null) + hashCode = hashCode * 59 + this.Distance.GetHashCode(); + if (this.DriveTime != null) + hashCode = hashCode * 59 + this.DriveTime.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AdditionalAddressNotes.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AdditionalAddressNotes.cs new file mode 100644 index 0000000..f34abeb --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AdditionalAddressNotes.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Address notes to re-attempt delivery with. + /// + [DataContract] + public partial class AdditionalAddressNotes : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AdditionalAddressNotes() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AdditionalAddressNotes {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AdditionalAddressNotes); + } + + /// + /// Returns true if AdditionalAddressNotes instances are equal + /// + /// Instance of AdditionalAddressNotes to be compared + /// Boolean + public bool Equals(AdditionalAddressNotes input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Address.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Address.cs new file mode 100644 index 0000000..975244f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Address.cs @@ -0,0 +1,336 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The address. + /// + [DataContract] + public partial class Address : IEquatable
, IValidatableObject + { + /// + /// The name of the person, business or institution at the address. + /// + /// The name of the person, business or institution at the address. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The first line of the address. + /// + /// The first line of the address. + [DataMember(Name="addressLine1", EmitDefaultValue=false)] + public string AddressLine1 { get; set; } + + /// + /// Additional address information, if required. + /// + /// Additional address information, if required. + [DataMember(Name="addressLine2", EmitDefaultValue=false)] + public string AddressLine2 { get; set; } + + /// + /// Additional address information, if required. + /// + /// Additional address information, if required. + [DataMember(Name="addressLine3", EmitDefaultValue=false)] + public string AddressLine3 { get; set; } + + /// + /// The name of the business or institution associated with the address. + /// + /// The name of the business or institution associated with the address. + [DataMember(Name="companyName", EmitDefaultValue=false)] + public string CompanyName { get; set; } + + /// + /// Gets or Sets StateOrRegion + /// + [DataMember(Name="stateOrRegion", EmitDefaultValue=false)] + public string StateOrRegion { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name="city", EmitDefaultValue=false)] + public string City { get; set; } + + /// + /// Gets or Sets CountryCode + /// + [DataMember(Name="countryCode", EmitDefaultValue=false)] + public string CountryCode { get; set; } + + /// + /// Gets or Sets PostalCode + /// + [DataMember(Name="postalCode", EmitDefaultValue=false)] + public string PostalCode { get; set; } + + /// + /// The email address of the contact associated with the address. + /// + /// The email address of the contact associated with the address. + [DataMember(Name="email", EmitDefaultValue=false)] + public string Email { get; set; } + + /// + /// The phone number of the person, business or institution located at that address, including the country calling code. + /// + /// The phone number of the person, business or institution located at that address, including the country calling code. + [DataMember(Name="phoneNumber", EmitDefaultValue=false)] + public string PhoneNumber { get; set; } + + /// + /// Gets or Sets Geocode + /// + [DataMember(Name="geocode", EmitDefaultValue=false)] + public Geocode Geocode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Address {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n"); + sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n"); + sb.Append(" AddressLine3: ").Append(AddressLine3).Append("\n"); + sb.Append(" CompanyName: ").Append(CompanyName).Append("\n"); + sb.Append(" StateOrRegion: ").Append(StateOrRegion).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" PhoneNumber: ").Append(PhoneNumber).Append("\n"); + sb.Append(" Geocode: ").Append(Geocode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Address); + } + + /// + /// Returns true if Address instances are equal + /// + /// Instance of Address to be compared + /// Boolean + public bool Equals(Address input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.AddressLine1 == input.AddressLine1 || + (this.AddressLine1 != null && + this.AddressLine1.Equals(input.AddressLine1)) + ) && + ( + this.AddressLine2 == input.AddressLine2 || + (this.AddressLine2 != null && + this.AddressLine2.Equals(input.AddressLine2)) + ) && + ( + this.AddressLine3 == input.AddressLine3 || + (this.AddressLine3 != null && + this.AddressLine3.Equals(input.AddressLine3)) + ) && + ( + this.CompanyName == input.CompanyName || + (this.CompanyName != null && + this.CompanyName.Equals(input.CompanyName)) + ) && + ( + this.StateOrRegion == input.StateOrRegion || + (this.StateOrRegion != null && + this.StateOrRegion.Equals(input.StateOrRegion)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.PostalCode == input.PostalCode || + (this.PostalCode != null && + this.PostalCode.Equals(input.PostalCode)) + ) && + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.PhoneNumber == input.PhoneNumber || + (this.PhoneNumber != null && + this.PhoneNumber.Equals(input.PhoneNumber)) + ) && + ( + this.Geocode == input.Geocode || + (this.Geocode != null && + this.Geocode.Equals(input.Geocode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.AddressLine1 != null) + hashCode = hashCode * 59 + this.AddressLine1.GetHashCode(); + if (this.AddressLine2 != null) + hashCode = hashCode * 59 + this.AddressLine2.GetHashCode(); + if (this.AddressLine3 != null) + hashCode = hashCode * 59 + this.AddressLine3.GetHashCode(); + if (this.CompanyName != null) + hashCode = hashCode * 59 + this.CompanyName.GetHashCode(); + if (this.StateOrRegion != null) + hashCode = hashCode * 59 + this.StateOrRegion.GetHashCode(); + if (this.City != null) + hashCode = hashCode * 59 + this.City.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.PostalCode != null) + hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); + if (this.Email != null) + hashCode = hashCode * 59 + this.Email.GetHashCode(); + if (this.PhoneNumber != null) + hashCode = hashCode * 59 + this.PhoneNumber.GetHashCode(); + if (this.Geocode != null) + hashCode = hashCode * 59 + this.Geocode.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Name (string) maxLength + if(this.Name != null && this.Name.Length > 50) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be less than 50.", new [] { "Name" }); + } + + // Name (string) minLength + if(this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + + // AddressLine1 (string) maxLength + if(this.AddressLine1 != null && this.AddressLine1.Length > 60) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine1, length must be less than 60.", new [] { "AddressLine1" }); + } + + // AddressLine1 (string) minLength + if(this.AddressLine1 != null && this.AddressLine1.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine1, length must be greater than 1.", new [] { "AddressLine1" }); + } + + // AddressLine2 (string) maxLength + if(this.AddressLine2 != null && this.AddressLine2.Length > 60) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine2, length must be less than 60.", new [] { "AddressLine2" }); + } + + // AddressLine2 (string) minLength + if(this.AddressLine2 != null && this.AddressLine2.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine2, length must be greater than 1.", new [] { "AddressLine2" }); + } + + // AddressLine3 (string) maxLength + if(this.AddressLine3 != null && this.AddressLine3.Length > 60) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine3, length must be less than 60.", new [] { "AddressLine3" }); + } + + // AddressLine3 (string) minLength + if(this.AddressLine3 != null && this.AddressLine3.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AddressLine3, length must be greater than 1.", new [] { "AddressLine3" }); + } + + // Email (string) maxLength + if(this.Email != null && this.Email.Length > 64) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, length must be less than 64.", new [] { "Email" }); + } + + // PhoneNumber (string) maxLength + if(this.PhoneNumber != null && this.PhoneNumber.Length > 20) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be less than 20.", new [] { "PhoneNumber" }); + } + + // PhoneNumber (string) minLength + if(this.PhoneNumber != null && this.PhoneNumber.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PhoneNumber, length must be greater than 1.", new [] { "PhoneNumber" }); + } + + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AlternateLegTrackingId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AlternateLegTrackingId.cs new file mode 100644 index 0000000..cb2aed6 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AlternateLegTrackingId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The carrier generated reverse identifier for a returned package in a purchased shipment. + /// + [DataContract] + public partial class AlternateLegTrackingId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AlternateLegTrackingId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AlternateLegTrackingId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AlternateLegTrackingId); + } + + /// + /// Returns true if AlternateLegTrackingId instances are equal + /// + /// Instance of AlternateLegTrackingId to be compared + /// Boolean + public bool Equals(AlternateLegTrackingId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonOrderDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonOrderDetails.cs new file mode 100644 index 0000000..2087f5c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonOrderDetails.cs @@ -0,0 +1,110 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Amazon order information. This is required if the shipment source channel is Amazon. + /// + [DataContract] + public partial class AmazonOrderDetails : IEquatable, IValidatableObject + { + /// + /// The Amazon order ID associated with the Amazon order fulfilled by this shipment. + /// + /// The Amazon order ID associated with the Amazon order fulfilled by this shipment. + [DataMember(Name="orderId", EmitDefaultValue=false)] + public string OrderId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AmazonOrderDetails {\n"); + sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AmazonOrderDetails); + } + + /// + /// Returns true if AmazonOrderDetails instances are equal + /// + /// Instance of AmazonOrderDetails to be compared + /// Boolean + public bool Equals(AmazonOrderDetails input) + { + if (input == null) + return false; + + return + ( + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.OrderId != null) + hashCode = hashCode * 59 + this.OrderId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonShipmentDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonShipmentDetails.cs new file mode 100644 index 0000000..60551bf --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AmazonShipmentDetails.cs @@ -0,0 +1,110 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Amazon shipment information. + /// + [DataContract] + public partial class AmazonShipmentDetails : IEquatable, IValidatableObject + { + /// + /// This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID. + /// + /// This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID. + [DataMember(Name="shipmentId", EmitDefaultValue=false)] + public string ShipmentId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AmazonShipmentDetails {\n"); + sb.Append(" ShipmentId: ").Append(ShipmentId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AmazonShipmentDetails); + } + + /// + /// Returns true if AmazonShipmentDetails instances are equal + /// + /// Instance of AmazonShipmentDetails to be compared + /// Boolean + public bool Equals(AmazonShipmentDetails input) + { + if (input == null) + return false; + + return + ( + this.ShipmentId == input.ShipmentId || + (this.ShipmentId != null && + this.ShipmentId.Equals(input.ShipmentId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipmentId != null) + hashCode = hashCode * 59 + this.ShipmentId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroup.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroup.cs new file mode 100644 index 0000000..1056c9a --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroup.cs @@ -0,0 +1,156 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The value-added services available for purchase with a shipping service offering. + /// + [DataContract] + public partial class AvailableValueAddedServiceGroup : IEquatable, IValidatableObject + { + /// + /// The type of the value-added service group. + /// + /// The type of the value-added service group. + [DataMember(Name="groupId", EmitDefaultValue=false)] + public string GroupId { get; set; } + + /// + /// The name of the value-added service group. + /// + /// The name of the value-added service group. + [DataMember(Name="groupDescription", EmitDefaultValue=false)] + public string GroupDescription { get; set; } + + /// + /// When true, one or more of the value-added services listed must be specified. + /// + /// When true, one or more of the value-added services listed must be specified. + [DataMember(Name="isRequired", EmitDefaultValue=false)] + public bool? IsRequired { get; set; } + + /// + /// A list of optional value-added services available for purchase with a shipping service offering. + /// + /// A list of optional value-added services available for purchase with a shipping service offering. + [DataMember(Name="valueAddedServices", EmitDefaultValue=false)] + public List ValueAddedServices { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AvailableValueAddedServiceGroup {\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" GroupDescription: ").Append(GroupDescription).Append("\n"); + sb.Append(" IsRequired: ").Append(IsRequired).Append("\n"); + sb.Append(" ValueAddedServices: ").Append(ValueAddedServices).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AvailableValueAddedServiceGroup); + } + + /// + /// Returns true if AvailableValueAddedServiceGroup instances are equal + /// + /// Instance of AvailableValueAddedServiceGroup to be compared + /// Boolean + public bool Equals(AvailableValueAddedServiceGroup input) + { + if (input == null) + return false; + + return + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.GroupDescription == input.GroupDescription || + (this.GroupDescription != null && + this.GroupDescription.Equals(input.GroupDescription)) + ) && + ( + this.IsRequired == input.IsRequired || + (this.IsRequired != null && + this.IsRequired.Equals(input.IsRequired)) + ) && + ( + this.ValueAddedServices == input.ValueAddedServices || + this.ValueAddedServices != null && + this.ValueAddedServices.SequenceEqual(input.ValueAddedServices) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.GroupId != null) + hashCode = hashCode * 59 + this.GroupId.GetHashCode(); + if (this.GroupDescription != null) + hashCode = hashCode * 59 + this.GroupDescription.GetHashCode(); + if (this.IsRequired != null) + hashCode = hashCode * 59 + this.IsRequired.GetHashCode(); + if (this.ValueAddedServices != null) + hashCode = hashCode * 59 + this.ValueAddedServices.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroupList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroupList.cs new file mode 100644 index 0000000..4142930 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/AvailableValueAddedServiceGroupList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of value-added services available for a shipping service offering. + /// + [DataContract] + public partial class AvailableValueAddedServiceGroupList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public AvailableValueAddedServiceGroupList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class AvailableValueAddedServiceGroupList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as AvailableValueAddedServiceGroupList); + } + + /// + /// Returns true if AvailableValueAddedServiceGroupList instances are equal + /// + /// Instance of AvailableValueAddedServiceGroupList to be compared + /// Boolean + public bool Equals(AvailableValueAddedServiceGroupList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Benefits.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Benefits.cs new file mode 100644 index 0000000..d258fdd --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Benefits.cs @@ -0,0 +1,123 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Benefits that are included and excluded for each shipping offer. Benefits represents services provided by Amazon (eg. CLAIMS_PROTECTED, etc.) when sellers purchase shipping through Amazon. Benefit details will be made available for any shipment placed on or after January 1st 2024 00:00 UTC. + /// + [DataContract] + public partial class Benefits : IEquatable, IValidatableObject + { + /// + /// Gets or Sets IncludedBenefits + /// + [DataMember(Name="includedBenefits", EmitDefaultValue=false)] + public IncludedBenefits IncludedBenefits { get; set; } + + /// + /// Gets or Sets ExcludedBenefits + /// + [DataMember(Name="excludedBenefits", EmitDefaultValue=false)] + public ExcludedBenefits ExcludedBenefits { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Benefits {\n"); + sb.Append(" IncludedBenefits: ").Append(IncludedBenefits).Append("\n"); + sb.Append(" ExcludedBenefits: ").Append(ExcludedBenefits).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Benefits); + } + + /// + /// Returns true if Benefits instances are equal + /// + /// Instance of Benefits to be compared + /// Boolean + public bool Equals(Benefits input) + { + if (input == null) + return false; + + return + ( + this.IncludedBenefits == input.IncludedBenefits || + (this.IncludedBenefits != null && + this.IncludedBenefits.Equals(input.IncludedBenefits)) + ) && + ( + this.ExcludedBenefits == input.ExcludedBenefits || + (this.ExcludedBenefits != null && + this.ExcludedBenefits.Equals(input.ExcludedBenefits)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.IncludedBenefits != null) + hashCode = hashCode * 59 + this.IncludedBenefits.GetHashCode(); + if (this.ExcludedBenefits != null) + hashCode = hashCode * 59 + this.ExcludedBenefits.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResponse.cs new file mode 100644 index 0000000..63539a6 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResponse.cs @@ -0,0 +1,117 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Response schema for the cancelShipment operation. + /// + [DataContract] + public partial class CancelShipmentResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// payload. + public CancelShipmentResponse(CancelShipmentResult payload = default(CancelShipmentResult)) + { + this.Payload = payload; + } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public CancelShipmentResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CancelShipmentResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CancelShipmentResponse); + } + + /// + /// Returns true if CancelShipmentResponse instances are equal + /// + /// Instance of CancelShipmentResponse to be compared + /// Boolean + public bool Equals(CancelShipmentResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResult.cs new file mode 100644 index 0000000..f6f04e4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CancelShipmentResult.cs @@ -0,0 +1,104 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the cancelShipment operation. + /// + [DataContract] + public partial class CancelShipmentResult : Dictionary, IEquatable, + IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public CancelShipmentResult() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CancelShipmentResult {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CancelShipmentResult); + } + + /// + /// Returns true if CancelShipmentResult instances are equal + /// + /// Instance of CancelShipmentResult to be compared + /// Boolean + public bool Equals(CancelShipmentResult input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Carrier.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Carrier.cs new file mode 100644 index 0000000..7c7881f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Carrier.cs @@ -0,0 +1,123 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Carrier Related Info + /// + [DataContract] + public partial class Carrier : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Carrier {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Carrier); + } + + /// + /// Returns true if Carrier instances are equal + /// + /// Instance of Carrier to be compared + /// Boolean + public bool Equals(Carrier input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierId.cs new file mode 100644 index 0000000..7eb328f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The carrier identifier for the offering, provided by the carrier. + /// + [DataContract] + public partial class CarrierId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public CarrierId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CarrierId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CarrierId); + } + + /// + /// Returns true if CarrierId instances are equal + /// + /// Instance of CarrierId to be compared + /// Boolean + public bool Equals(CarrierId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierName.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierName.cs new file mode 100644 index 0000000..106a12f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CarrierName.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The carrier name for the offering. + /// + [DataContract] + public partial class CarrierName : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public CarrierName() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CarrierName {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CarrierName); + } + + /// + /// Returns true if CarrierName instances are equal + /// + /// Instance of CarrierName to be compared + /// Boolean + public bool Equals(CarrierName input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelDetails.cs new file mode 100644 index 0000000..4811f58 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelDetails.cs @@ -0,0 +1,137 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Shipment source channel related information. + /// + [DataContract] + public partial class ChannelDetails : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ChannelType + /// + [DataMember(Name="channelType", EmitDefaultValue=false)] + public ChannelType ChannelType { get; set; } + + /// + /// Gets or Sets AmazonOrderDetails + /// + [DataMember(Name="amazonOrderDetails", EmitDefaultValue=false)] + public AmazonOrderDetails AmazonOrderDetails { get; set; } + + /// + /// Gets or Sets AmazonShipmentDetails + /// + [DataMember(Name="amazonShipmentDetails", EmitDefaultValue=false)] + public AmazonShipmentDetails AmazonShipmentDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChannelDetails {\n"); + sb.Append(" ChannelType: ").Append(ChannelType).Append("\n"); + sb.Append(" AmazonOrderDetails: ").Append(AmazonOrderDetails).Append("\n"); + sb.Append(" AmazonShipmentDetails: ").Append(AmazonShipmentDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChannelDetails); + } + + /// + /// Returns true if ChannelDetails instances are equal + /// + /// Instance of ChannelDetails to be compared + /// Boolean + public bool Equals(ChannelDetails input) + { + if (input == null) + return false; + + return + ( + this.ChannelType == input.ChannelType || + (this.ChannelType != null && + this.ChannelType.Equals(input.ChannelType)) + ) && + ( + this.AmazonOrderDetails == input.AmazonOrderDetails || + (this.AmazonOrderDetails != null && + this.AmazonOrderDetails.Equals(input.AmazonOrderDetails)) + ) && + ( + this.AmazonShipmentDetails == input.AmazonShipmentDetails || + (this.AmazonShipmentDetails != null && + this.AmazonShipmentDetails.Equals(input.AmazonShipmentDetails)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ChannelType != null) + hashCode = hashCode * 59 + this.ChannelType.GetHashCode(); + if (this.AmazonOrderDetails != null) + hashCode = hashCode * 59 + this.AmazonOrderDetails.GetHashCode(); + if (this.AmazonShipmentDetails != null) + hashCode = hashCode * 59 + this.AmazonShipmentDetails.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelType.cs new file mode 100644 index 0000000..59e7a7f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChannelType.cs @@ -0,0 +1,40 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The shipment source channel type. + /// + /// The shipment source channel type. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum ChannelType + { + + /// + /// Enum AMAZON for value: AMAZON + /// + [EnumMember(Value = "AMAZON")] + AMAZON = 1, + + /// + /// Enum EXTERNAL for value: EXTERNAL + /// + [EnumMember(Value = "EXTERNAL")] + EXTERNAL = 2 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeComponent.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeComponent.cs new file mode 100644 index 0000000..16b3b9e --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeComponent.cs @@ -0,0 +1,142 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The type and amount of a charge applied on a package. + /// + [DataContract] + public partial class ChargeComponent : IEquatable, IValidatableObject + { + /// + /// The type of charge. + /// + /// The type of charge. + [DataMember(Name = "chargeType", EmitDefaultValue = false)] + public ChargeTypeEnum? ChargeType { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "amount", EmitDefaultValue = false)] + public Currency Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChargeComponent {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" ChargeType: ").Append(ChargeType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChargeComponent); + } + + /// + /// Returns true if ChargeComponent instances are equal + /// + /// Instance of ChargeComponent to be compared + /// Boolean + public bool Equals(ChargeComponent input) + { + if (input == null) + return false; + + return + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ) && + ( + this.ChargeType == input.ChargeType || + (this.ChargeType != null && + this.ChargeType.Equals(input.ChargeType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + if (this.ChargeType != null) + hashCode = hashCode * 59 + this.ChargeType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + /// + /// The type of charge. + /// + /// The type of charge. + [JsonConverter(typeof(StringEnumConverter))] + public enum ChargeTypeEnum + { + /// + /// Enum TAX for value: TAX + /// + [EnumMember(Value = "TAX")] TAX = 1, + + /// + /// Enum DISCOUNT for value: DISCOUNT + /// + [EnumMember(Value = "DISCOUNT")] DISCOUNT = 2 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeList.cs new file mode 100644 index 0000000..a6c4e88 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ChargeList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of charges based on the shipping service charges applied on a package. + /// + [DataContract] + public partial class ChargeList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ChargeList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ChargeList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ChargeList); + } + + /// + /// Returns true if ChargeList instances are equal + /// + /// Instance of ChargeList to be compared + /// Boolean + public bool Equals(ChargeList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/City.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/City.cs new file mode 100644 index 0000000..80cb327 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/City.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The city or town where the person, business or institution is located. + /// + [DataContract] + public partial class City : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public City() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class City {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as City); + } + + /// + /// Returns true if City instances are equal + /// + /// Instance of City to be compared + /// Boolean + public bool Equals(City input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetail.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetail.cs new file mode 100644 index 0000000..e512b56 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetail.cs @@ -0,0 +1,146 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Client Reference Details + /// + [DataContract] + public partial class ClientReferenceDetail : IEquatable, IValidatableObject + { + /// + /// Client Reference type. + /// + /// Client Reference type. + [DataMember(Name = "clientReferenceType", EmitDefaultValue = false)] + public ClientReferenceTypeEnum ClientReferenceType { get; set; } + + /// + /// The Client Reference Id. + /// + /// The Client Reference Id. + [DataMember(Name = "clientReferenceId", EmitDefaultValue = false)] + public string ClientReferenceId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientReferenceDetail {\n"); + sb.Append(" ClientReferenceType: ").Append(ClientReferenceType).Append("\n"); + sb.Append(" ClientReferenceId: ").Append(ClientReferenceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientReferenceDetail); + } + + /// + /// Returns true if ClientReferenceDetail instances are equal + /// + /// Instance of ClientReferenceDetail to be compared + /// Boolean + public bool Equals(ClientReferenceDetail input) + { + if (input == null) + return false; + + return + ( + this.ClientReferenceType == input.ClientReferenceType || + (this.ClientReferenceType != null && + this.ClientReferenceType.Equals(input.ClientReferenceType)) + ) && + ( + this.ClientReferenceId == input.ClientReferenceId || + (this.ClientReferenceId != null && + this.ClientReferenceId.Equals(input.ClientReferenceId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClientReferenceType != null) + hashCode = hashCode * 59 + this.ClientReferenceType.GetHashCode(); + if (this.ClientReferenceId != null) + hashCode = hashCode * 59 + this.ClientReferenceId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Client Reference type. + /// + /// Client Reference type. + [JsonConverter(typeof(StringEnumConverter))] + public enum ClientReferenceTypeEnum + { + /// + /// Enum IntegratorShipperId for value: IntegratorShipperId + /// + [EnumMember(Value = "IntegratorShipperId")] + IntegratorShipperId = 1, + + /// + /// Enum IntegratorMerchantId for value: IntegratorMerchantId + /// + [EnumMember(Value = "IntegratorMerchantId")] + IntegratorMerchantId = 2 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetails.cs new file mode 100644 index 0000000..725b4a9 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ClientReferenceDetails.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Object to pass additional information about the MCI Integrator shipperType: List of ClientReferenceDetail + /// + [DataContract] + public partial class ClientReferenceDetails : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ClientReferenceDetails() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ClientReferenceDetails {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientReferenceDetails); + } + + /// + /// Returns true if ClientReferenceDetails instances are equal + /// + /// Instance of ClientReferenceDetails to be compared + /// Boolean + public bool Equals(ClientReferenceDetails input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CollectOnDelivery.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CollectOnDelivery.cs new file mode 100644 index 0000000..ed2532d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CollectOnDelivery.cs @@ -0,0 +1,109 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The amount to collect on delivery. + /// + [DataContract] + public partial class CollectOnDelivery : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Amount + /// + [DataMember(Name = "amount", EmitDefaultValue = false)] + public Currency Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CollectOnDelivery {\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CollectOnDelivery); + } + + /// + /// Returns true if CollectOnDelivery instances are equal + /// + /// Instance of CollectOnDelivery to be compared + /// Boolean + public bool Equals(CollectOnDelivery input) + { + if (input == null) + return false; + + return + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Contents.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Contents.cs new file mode 100644 index 0000000..524431d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Contents.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A Base64 encoded string of the file contents. + /// + [DataContract] + public partial class Contents : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public Contents() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Contents {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Contents); + } + + /// + /// Returns true if Contents instances are equal + /// + /// Instance of Contents to be compared + /// Boolean + public bool Equals(Contents input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CountryCode.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CountryCode.cs new file mode 100644 index 0000000..e5ae37b --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/CountryCode.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The two digit country code. Follows ISO 3166-1 alpha-2 format. + /// + [DataContract] + public partial class CountryCode : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public CountryCode() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class CountryCode {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CountryCode); + } + + /// + /// Returns true if CountryCode instances are equal + /// + /// Instance of CountryCode to be compared + /// Boolean + public bool Equals(CountryCode input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Currency.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Currency.cs new file mode 100644 index 0000000..9e8ad85 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Currency.cs @@ -0,0 +1,137 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The monetary value in the currency indicated, in ISO 4217 standard format. + /// + [DataContract] + public partial class Currency : IEquatable, IValidatableObject + { + /// + /// The monetary value. + /// + /// The monetary value. + [DataMember(Name="value", EmitDefaultValue=false)] + public decimal? Value { get; set; } + + /// + /// The ISO 4217 format 3-character currency code. + /// + /// The ISO 4217 format 3-character currency code. + [DataMember(Name="unit", EmitDefaultValue=false)] + public string Unit { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Currency {\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append(" Unit: ").Append(Unit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Currency); + } + + /// + /// Returns true if Currency instances are equal + /// + /// Instance of Currency to be compared + /// Boolean + public bool Equals(Currency input) + { + if (input == null) + return false; + + return + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ) && + ( + this.Unit == input.Unit || + (this.Unit != null && + this.Unit.Equals(input.Unit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + if (this.Unit != null) + hashCode = hashCode * 59 + this.Unit.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Unit (string) maxLength + if(this.Unit != null && this.Unit.Length > 3) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Unit, length must be less than 3.", new [] { "Unit" }); + } + + // Unit (string) minLength + if(this.Unit != null && this.Unit.Length < 3) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Unit, length must be greater than 3.", new [] { "Unit" }); + } + + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DangerousGoodsDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DangerousGoodsDetails.cs new file mode 100644 index 0000000..d55f223 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DangerousGoodsDetails.cs @@ -0,0 +1,283 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Details related to any dangerous goods/items that are being shipped. + /// + [DataContract] + public partial class DangerousGoodsDetails : IEquatable, IValidatableObject + { + /// + /// The specific packaging group of the item being shipped. + /// + /// The specific packaging group of the item being shipped. + [DataMember(Name = "packingGroup", EmitDefaultValue = false)] + public PackingGroupEnum? PackingGroup { get; set; } + + /// + /// The specific packing instruction of the item being shipped. + /// + /// The specific packing instruction of the item being shipped. + [DataMember(Name = "packingInstruction", EmitDefaultValue = false)] + public PackingInstructionEnum? PackingInstruction { get; set; } + + /// + /// The specific UNID of the item being shipped. + /// + /// The specific UNID of the item being shipped. + [DataMember(Name = "unitedNationsRegulatoryId", EmitDefaultValue = false)] + public string UnitedNationsRegulatoryId { get; set; } + + /// + /// The specific regulatory class of the item being shipped. + /// + /// The specific regulatory class of the item being shipped. + [DataMember(Name = "transportationRegulatoryClass", EmitDefaultValue = false)] + public string TransportationRegulatoryClass { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DangerousGoodsDetails {\n"); + sb.Append(" UnitedNationsRegulatoryId: ").Append(UnitedNationsRegulatoryId).Append("\n"); + sb.Append(" TransportationRegulatoryClass: ").Append(TransportationRegulatoryClass).Append("\n"); + sb.Append(" PackingGroup: ").Append(PackingGroup).Append("\n"); + sb.Append(" PackingInstruction: ").Append(PackingInstruction).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DangerousGoodsDetails); + } + + /// + /// Returns true if DangerousGoodsDetails instances are equal + /// + /// Instance of DangerousGoodsDetails to be compared + /// Boolean + public bool Equals(DangerousGoodsDetails input) + { + if (input == null) + return false; + + return + ( + this.UnitedNationsRegulatoryId == input.UnitedNationsRegulatoryId || + (this.UnitedNationsRegulatoryId != null && + this.UnitedNationsRegulatoryId.Equals(input.UnitedNationsRegulatoryId)) + ) && + ( + this.TransportationRegulatoryClass == input.TransportationRegulatoryClass || + (this.TransportationRegulatoryClass != null && + this.TransportationRegulatoryClass.Equals(input.TransportationRegulatoryClass)) + ) && + ( + this.PackingGroup == input.PackingGroup || + (this.PackingGroup != null && + this.PackingGroup.Equals(input.PackingGroup)) + ) && + ( + this.PackingInstruction == input.PackingInstruction || + (this.PackingInstruction != null && + this.PackingInstruction.Equals(input.PackingInstruction)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UnitedNationsRegulatoryId != null) + hashCode = hashCode * 59 + this.UnitedNationsRegulatoryId.GetHashCode(); + if (this.TransportationRegulatoryClass != null) + hashCode = hashCode * 59 + this.TransportationRegulatoryClass.GetHashCode(); + if (this.PackingGroup != null) + hashCode = hashCode * 59 + this.PackingGroup.GetHashCode(); + if (this.PackingInstruction != null) + hashCode = hashCode * 59 + this.PackingInstruction.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + // UnitedNationsRegulatoryId (string) pattern + Regex regexUnitedNationsRegulatoryId = new Regex(@"^(UN)[0-9]{4}$", RegexOptions.CultureInvariant); + if (false == regexUnitedNationsRegulatoryId.Match(this.UnitedNationsRegulatoryId).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for UnitedNationsRegulatoryId, must match a pattern of " + + regexUnitedNationsRegulatoryId, new[] { "UnitedNationsRegulatoryId" }); + } + + // TransportationRegulatoryClass (string) pattern + Regex regexTransportationRegulatoryClass = new Regex(@"^[1-9](\\.[1-9])?$", RegexOptions.CultureInvariant); + if (false == regexTransportationRegulatoryClass.Match(this.TransportationRegulatoryClass).Success) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult( + "Invalid value for TransportationRegulatoryClass, must match a pattern of " + + regexTransportationRegulatoryClass, new[] { "TransportationRegulatoryClass" }); + } + + yield break; + } + } + + /// + /// The specific packaging group of the item being shipped. + /// + /// The specific packaging group of the item being shipped. + [JsonConverter(typeof(StringEnumConverter))] + public enum PackingGroupEnum + { + /// + /// Enum I for value: I + /// + [EnumMember(Value = "I")] I = 1, + + /// + /// Enum II for value: II + /// + [EnumMember(Value = "II")] II = 2, + + /// + /// Enum III for value: III + /// + [EnumMember(Value = "III")] III = 3 + } + + /// + /// The specific packing instruction of the item being shipped. + /// + /// The specific packing instruction of the item being shipped. + [JsonConverter(typeof(StringEnumConverter))] + public enum PackingInstructionEnum + { + /// + /// Enum PI965SECTIONIA for value: PI965_SECTION_IA + /// + [EnumMember(Value = "PI965_SECTION_IA")] + PI965SECTIONIA = 1, + + /// + /// Enum PI965SECTIONIB for value: PI965_SECTION_IB + /// + [EnumMember(Value = "PI965_SECTION_IB")] + PI965SECTIONIB = 2, + + /// + /// Enum PI965SECTIONII for value: PI965_SECTION_II + /// + [EnumMember(Value = "PI965_SECTION_II")] + PI965SECTIONII = 3, + + /// + /// Enum PI966SECTIONI for value: PI966_SECTION_I + /// + [EnumMember(Value = "PI966_SECTION_I")] + PI966SECTIONI = 4, + + /// + /// Enum PI966SECTIONII for value: PI966_SECTION_II + /// + [EnumMember(Value = "PI966_SECTION_II")] + PI966SECTIONII = 5, + + /// + /// Enum PI967SECTIONI for value: PI967_SECTION_I + /// + [EnumMember(Value = "PI967_SECTION_I")] + PI967SECTIONI = 6, + + /// + /// Enum PI967SECTIONII for value: PI967_SECTION_II + /// + [EnumMember(Value = "PI967_SECTION_II")] + PI967SECTIONII = 7, + + /// + /// Enum PI968SECTIONIA for value: PI968_SECTION_IA + /// + [EnumMember(Value = "PI968_SECTION_IA")] + PI968SECTIONIA = 8, + + /// + /// Enum PI968SECTIONIB for value: PI968_SECTION_IB + /// + [EnumMember(Value = "PI968_SECTION_IB")] + PI968SECTIONIB = 9, + + /// + /// Enum PI969SECTIONI for value: PI969_SECTION_I + /// + [EnumMember(Value = "PI969_SECTION_I")] + PI969SECTIONI = 10, + + /// + /// Enum PI969SECTIONII for value: PI969_SECTION_II + /// + [EnumMember(Value = "PI969_SECTION_II")] + PI969SECTIONII = 11, + + /// + /// Enum PI970SECTIONI for value: PI970_SECTION_I + /// + [EnumMember(Value = "PI970_SECTION_I")] + PI970SECTIONI = 12, + + /// + /// Enum PI970SECTIONII for value: PI970_SECTION_II + /// + [EnumMember(Value = "PI970_SECTION_II")] + PI970SECTIONII = 13 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DateRange.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DateRange.cs new file mode 100644 index 0000000..95efffc --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DateRange.cs @@ -0,0 +1,135 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Date Range for query the results. + /// + [DataContract] + public partial class DateRange : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Start Date for query .. + /// end date for query.. + public DateRange(string startDate = default(string), string endDate = default(string)) + { + this.StartDate = startDate; + this.EndDate = endDate; + } + + /// + /// Start Date for query . + /// + /// Start Date for query . + [DataMember(Name="startDate", EmitDefaultValue=false)] + public string StartDate { get; set; } + + /// + /// end date for query. + /// + /// end date for query. + [DataMember(Name="endDate", EmitDefaultValue=false)] + public string EndDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DateRange {\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DateRange); + } + + /// + /// Returns true if DateRange instances are equal + /// + /// Instance of DateRange to be compared + /// Boolean + public bool Equals(DateRange input) + { + if (input == null) + return false; + + return + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.EndDate != null) + hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DayOfWeekTimeMap.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DayOfWeekTimeMap.cs new file mode 100644 index 0000000..ae21b69 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DayOfWeekTimeMap.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Map of day of the week to operating hours of that day + /// + [DataContract] + public partial class DayOfWeekTimeMap : Dictionary, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public DayOfWeekTimeMap() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DayOfWeekTimeMap {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DayOfWeekTimeMap); + } + + /// + /// Returns true if DayOfWeekTimeMap instances are equal + /// + /// Instance of DayOfWeekTimeMap to be compared + /// Boolean + public bool Equals(DayOfWeekTimeMap input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DetailCodes.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DetailCodes.cs new file mode 100644 index 0000000..49a2114 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DetailCodes.cs @@ -0,0 +1,190 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of codes used to provide additional shipment information. + /// + /// A list of codes used to provide additional shipment information. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum DetailCodes + { + + /// + /// Enum BusinessClosed for value: BusinessClosed + /// + [EnumMember(Value = "BusinessClosed")] + BusinessClosed = 1, + + /// + /// Enum CustomerUnavailable for value: CustomerUnavailable + /// + [EnumMember(Value = "CustomerUnavailable")] + CustomerUnavailable = 2, + + /// + /// Enum PaymentNotReady for value: PaymentNotReady + /// + [EnumMember(Value = "PaymentNotReady")] + PaymentNotReady = 3, + + /// + /// Enum OtpNotAvailable for value: OtpNotAvailable + /// + [EnumMember(Value = "OtpNotAvailable")] + OtpNotAvailable = 4, + + /// + /// Enum DeliveryAttempted for value: DeliveryAttempted + /// + [EnumMember(Value = "DeliveryAttempted")] + DeliveryAttempted = 5, + + /// + /// Enum UnableToAccess for value: UnableToAccess + /// + [EnumMember(Value = "UnableToAccess")] + UnableToAccess = 6, + + /// + /// Enum UnableToContactRecipient for value: UnableToContactRecipient + /// + [EnumMember(Value = "UnableToContactRecipient")] + UnableToContactRecipient = 7, + + /// + /// Enum DeliveredToBehindWheelieBin for value: DeliveredToBehindWheelieBin + /// + [EnumMember(Value = "DeliveredToBehindWheelieBin")] + DeliveredToBehindWheelieBin = 8, + + /// + /// Enum DeliveredToPorch for value: DeliveredToPorch + /// + [EnumMember(Value = "DeliveredToPorch")] + DeliveredToPorch = 9, + + /// + /// Enum DeliveredToGarage for value: DeliveredToGarage + /// + [EnumMember(Value = "DeliveredToGarage")] + DeliveredToGarage = 10, + + /// + /// Enum DeliveredToGarden for value: DeliveredToGarden + /// + [EnumMember(Value = "DeliveredToGarden")] + DeliveredToGarden = 11, + + /// + /// Enum DeliveredToGreenhouse for value: DeliveredToGreenhouse + /// + [EnumMember(Value = "DeliveredToGreenhouse")] + DeliveredToGreenhouse = 12, + + /// + /// Enum DeliveredToMailSlot for value: DeliveredToMailSlot + /// + [EnumMember(Value = "DeliveredToMailSlot")] + DeliveredToMailSlot = 13, + + /// + /// Enum DeliveredToMailRoom for value: DeliveredToMailRoom + /// + [EnumMember(Value = "DeliveredToMailRoom")] + DeliveredToMailRoom = 14, + + /// + /// Enum DeliveredToNeighbor for value: DeliveredToNeighbor + /// + [EnumMember(Value = "DeliveredToNeighbor")] + DeliveredToNeighbor = 15, + + /// + /// Enum DeliveredToRearDoor for value: DeliveredToRearDoor + /// + [EnumMember(Value = "DeliveredToRearDoor")] + DeliveredToRearDoor = 16, + + /// + /// Enum DeliveredToReceptionist for value: DeliveredToReceptionist + /// + [EnumMember(Value = "DeliveredToReceptionist")] + DeliveredToReceptionist = 17, + + /// + /// Enum DeliveredToShed for value: DeliveredToShed + /// + [EnumMember(Value = "DeliveredToShed")] + DeliveredToShed = 18, + + /// + /// Enum Signed for value: Signed + /// + [EnumMember(Value = "Signed")] + Signed = 19, + + /// + /// Enum Damaged for value: Damaged + /// + [EnumMember(Value = "Damaged")] + Damaged = 20, + + /// + /// Enum IncorrectItems for value: IncorrectItems + /// + [EnumMember(Value = "IncorrectItems")] + IncorrectItems = 21, + + /// + /// Enum NotRequired for value: NotRequired + /// + [EnumMember(Value = "NotRequired")] + NotRequired = 22, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 23, + + /// + /// Enum CancelledByRecipient for value: CancelledByRecipient + /// + [EnumMember(Value = "CancelledByRecipient")] + CancelledByRecipient = 24, + + /// + /// Enum AddressNotFound for value: AddressNotFound + /// + [EnumMember(Value = "AddressNotFound")] + AddressNotFound = 25, + + /// + /// Enum HazmatShipment for value: HazmatShipment + /// + [EnumMember(Value = "HazmatShipment")] + HazmatShipment = 26, + + /// + /// Enum Undeliverable for value: Undeliverable + /// + [EnumMember(Value = "Undeliverable")] + Undeliverable = 27 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dimensions.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dimensions.cs new file mode 100644 index 0000000..3418513 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dimensions.cs @@ -0,0 +1,176 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A set of measurements for a three-dimensional object. + /// + [DataContract] + public partial class Dimensions : IEquatable, IValidatableObject + { + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [DataMember(Name = "unit", EmitDefaultValue = false)] + public DimensionsUnitEnum Unit { get; set; } + + /// + /// The length of the package. + /// + /// The length of the package. + [DataMember(Name = "length", EmitDefaultValue = false)] + public decimal? Length { get; set; } + + /// + /// The width of the package. + /// + /// The width of the package. + [DataMember(Name = "width", EmitDefaultValue = false)] + public decimal? Width { get; set; } + + /// + /// The height of the package. + /// + /// The height of the package. + [DataMember(Name = "height", EmitDefaultValue = false)] + public decimal? Height { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Dimensions {\n"); + sb.Append(" Length: ").Append(Length).Append("\n"); + sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append(" Height: ").Append(Height).Append("\n"); + sb.Append(" Unit: ").Append(Unit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Dimensions); + } + + /// + /// Returns true if Dimensions instances are equal + /// + /// Instance of Dimensions to be compared + /// Boolean + public bool Equals(Dimensions input) + { + if (input == null) + return false; + + return + ( + this.Length == input.Length || + (this.Length != null && + this.Length.Equals(input.Length)) + ) && + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.Height == input.Height || + (this.Height != null && + this.Height.Equals(input.Height)) + ) && + ( + this.Unit == input.Unit || + (this.Unit != null && + this.Unit.Equals(input.Unit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Length != null) + hashCode = hashCode * 59 + this.Length.GetHashCode(); + if (this.Width != null) + hashCode = hashCode * 59 + this.Width.GetHashCode(); + if (this.Height != null) + hashCode = hashCode * 59 + this.Height.GetHashCode(); + if (this.Unit != null) + hashCode = hashCode * 59 + this.Unit.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [JsonConverter(typeof(StringEnumConverter))] + public enum DimensionsUnitEnum + { + /// + /// Enum INCH for value: INCH + /// + [EnumMember(Value = "INCH")] INCH = 1, + + /// + /// Enum CENTIMETER for value: CENTIMETER + /// + [EnumMember(Value = "CENTIMETER")] CENTIMETER = 2 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DirectFulfillmentItemIdentifiers.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DirectFulfillmentItemIdentifiers.cs new file mode 100644 index 0000000..acfb541 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DirectFulfillmentItemIdentifiers.cs @@ -0,0 +1,125 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Item identifiers for an item in a direct fulfillment shipment. + /// + [DataContract] + public partial class DirectFulfillmentItemIdentifiers : IEquatable, IValidatableObject + { + /// + /// A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped. + /// + /// A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated for direct fulfillment multi-piece shipments. It is required if a vendor wants to change the configuration of the packages in which the purchase order is shipped. + [DataMember(Name="lineItemID", EmitDefaultValue=false)] + public string LineItemID { get; set; } + + /// + /// A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1. + /// + /// A unique identifier for an item provided by the client for a direct fulfillment shipment. This is only populated if a single line item has multiple pieces. Defaults to 1. + [DataMember(Name="pieceNumber", EmitDefaultValue=false)] + public string PieceNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DirectFulfillmentItemIdentifiers {\n"); + sb.Append(" LineItemID: ").Append(LineItemID).Append("\n"); + sb.Append(" PieceNumber: ").Append(PieceNumber).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DirectFulfillmentItemIdentifiers); + } + + /// + /// Returns true if DirectFulfillmentItemIdentifiers instances are equal + /// + /// Instance of DirectFulfillmentItemIdentifiers to be compared + /// Boolean + public bool Equals(DirectFulfillmentItemIdentifiers input) + { + if (input == null) + return false; + + return + ( + this.LineItemID == input.LineItemID || + (this.LineItemID != null && + this.LineItemID.Equals(input.LineItemID)) + ) && + ( + this.PieceNumber == input.PieceNumber || + (this.PieceNumber != null && + this.PieceNumber.Equals(input.PieceNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LineItemID != null) + hashCode = hashCode * 59 + this.LineItemID.GetHashCode(); + if (this.PieceNumber != null) + hashCode = hashCode * 59 + this.PieceNumber.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentFormat.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentFormat.cs new file mode 100644 index 0000000..4b262d4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentFormat.cs @@ -0,0 +1,46 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The file format of the document. + /// + /// The file format of the document. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum DocumentFormat + { + + /// + /// Enum PDF for value: PDF + /// + [EnumMember(Value = "PDF")] + PDF = 1, + + /// + /// Enum PNG for value: PNG + /// + [EnumMember(Value = "PNG")] + PNG = 2, + + /// + /// Enum ZPL for value: ZPL + /// + [EnumMember(Value = "ZPL")] + ZPL = 3 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentSize.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentSize.cs new file mode 100644 index 0000000..a4353d3 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentSize.cs @@ -0,0 +1,160 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The size dimensions of the label. + /// + [DataContract] + public partial class DocumentSize : IEquatable, IValidatableObject + { + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [DataMember(Name = "unit", EmitDefaultValue = false)] + public DocumentSizeUnitEnum Unit { get; set; } + + /// + /// The width of the document measured in the units specified. + /// + /// The width of the document measured in the units specified. + [DataMember(Name = "width", EmitDefaultValue = false)] + public decimal? Width { get; set; } + + /// + /// The length of the document measured in the units specified. + /// + /// The length of the document measured in the units specified. + [DataMember(Name = "length", EmitDefaultValue = false)] + public decimal? Length { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class DocumentSize {\n"); + sb.Append(" Width: ").Append(Width).Append("\n"); + sb.Append(" Length: ").Append(Length).Append("\n"); + sb.Append(" Unit: ").Append(Unit).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as DocumentSize); + } + + /// + /// Returns true if DocumentSize instances are equal + /// + /// Instance of DocumentSize to be compared + /// Boolean + public bool Equals(DocumentSize input) + { + if (input == null) + return false; + + return + ( + this.Width == input.Width || + (this.Width != null && + this.Width.Equals(input.Width)) + ) && + ( + this.Length == input.Length || + (this.Length != null && + this.Length.Equals(input.Length)) + ) && + ( + this.Unit == input.Unit || + (this.Unit != null && + this.Unit.Equals(input.Unit)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Width != null) + hashCode = hashCode * 59 + this.Width.GetHashCode(); + if (this.Length != null) + hashCode = hashCode * 59 + this.Length.GetHashCode(); + if (this.Unit != null) + hashCode = hashCode * 59 + this.Unit.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [JsonConverter(typeof(StringEnumConverter))] + public enum DocumentSizeUnitEnum + { + /// + /// Enum INCH for value: INCH + /// + [EnumMember(Value = "INCH")] INCH = 1, + + /// + /// Enum CENTIMETER for value: CENTIMETER + /// + [EnumMember(Value = "CENTIMETER")] CENTIMETER = 2 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentType.cs new file mode 100644 index 0000000..76ce920 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/DocumentType.cs @@ -0,0 +1,52 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The type of shipping document. + /// + /// The type of shipping document. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum DocumentType + { + + /// + /// Enum PACKSLIP for value: PACKSLIP + /// + [EnumMember(Value = "PACKSLIP")] + PACKSLIP = 1, + + /// + /// Enum LABEL for value: LABEL + /// + [EnumMember(Value = "LABEL")] + LABEL = 2, + + /// + /// Enum RECEIPT for value: RECEIPT + /// + [EnumMember(Value = "RECEIPT")] + RECEIPT = 3, + + /// + /// Enum CUSTOMFORM for value: CUSTOM_FORM + /// + [EnumMember(Value = "CUSTOM_FORM")] + CUSTOMFORM = 4 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dpi.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dpi.cs new file mode 100644 index 0000000..08c23b3 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Dpi.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document. + /// + [DataContract] + public partial class Dpi : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public Dpi() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Dpi {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Dpi); + } + + /// + /// Returns true if Dpi instances are equal + /// + /// Instance of Dpi to be compared + /// Boolean + public bool Equals(Dpi input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Error.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Error.cs new file mode 100644 index 0000000..72e82fc --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Error.cs @@ -0,0 +1,174 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Error response returned when the request is unsuccessful. + /// + [DataContract] + public partial class Error : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected Error() { } + /// + /// Initializes a new instance of the class. + /// + /// An error code that identifies the type of error that occurred. (required). + /// A message that describes the error condition. (required). + /// Additional details that can help the caller understand or fix the issue.. + public Error(string code = default(string), string message = default(string), string details = default(string)) + { + // to ensure "code" is required (not null) + if (code == null) + { + throw new InvalidDataException("code is a required property for Error and cannot be null"); + } + else + { + this.Code = code; + } + // to ensure "message" is required (not null) + if (message == null) + { + throw new InvalidDataException("message is a required property for Error and cannot be null"); + } + else + { + this.Message = message; + } + this.Details = details; + } + + /// + /// An error code that identifies the type of error that occurred. + /// + /// An error code that identifies the type of error that occurred. + [DataMember(Name="code", EmitDefaultValue=false)] + public string Code { get; set; } + + /// + /// A message that describes the error condition. + /// + /// A message that describes the error condition. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Additional details that can help the caller understand or fix the issue. + /// + /// Additional details that can help the caller understand or fix the issue. + [DataMember(Name="details", EmitDefaultValue=false)] + public string Details { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Error {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append(" Details: ").Append(Details).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Error); + } + + /// + /// Returns true if Error instances are equal + /// + /// Instance of Error to be compared + /// Boolean + public bool Equals(Error input) + { + if (input == null) + return false; + + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ) && + ( + this.Details == input.Details || + (this.Details != null && + this.Details.Equals(input.Details)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + if (this.Details != null) + hashCode = hashCode * 59 + this.Details.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ErrorList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ErrorList.cs new file mode 100644 index 0000000..ef96aff --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ErrorList.cs @@ -0,0 +1,132 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of error responses returned when a request is unsuccessful. + /// + [DataContract] + public partial class ErrorList : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected ErrorList() { } + /// + /// Initializes a new instance of the class. + /// + /// errors (required). + public ErrorList(List errors = default(List)) + { + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new InvalidDataException("errors is a required property for ErrorList and cannot be null"); + } + else + { + this.Errors = errors; + } + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name="errors", EmitDefaultValue=false)] + public List Errors { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ErrorList {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ErrorList); + } + + /// + /// Returns true if ErrorList instances are equal + /// + /// Instance of ErrorList to be compared + /// Boolean + public bool Equals(ErrorList input) + { + if (input == null) + return false; + + return + ( + this.Errors == input.Errors || + this.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Errors != null) + hashCode = hashCode * 59 + this.Errors.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Event.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Event.cs new file mode 100644 index 0000000..d725b0e --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Event.cs @@ -0,0 +1,188 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A tracking event. + /// + [DataContract] + public partial class Event : IEquatable, IValidatableObject + { + /// + /// Gets or Sets EventCode + /// + [DataMember(Name="eventCode", EmitDefaultValue=false)] + public EventCode EventCode { get; set; } + /// + /// Gets or Sets ShipmentType + /// + [DataMember(Name="shipmentType", EmitDefaultValue=false)] + public ShipmentType? ShipmentType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected Event() { } + /// + /// Initializes a new instance of the class. + /// + /// eventCode (required). + /// location. + /// The ISO 8601 formatted timestamp of the event. (required). + /// shipmentType. + public Event(EventCode eventCode = default(EventCode), Location location = default(Location), DateTime? eventTime = default(DateTime?), ShipmentType? shipmentType = default(ShipmentType?)) + { + // to ensure "eventCode" is required (not null) + if (eventCode == null) + { + throw new InvalidDataException("eventCode is a required property for Event and cannot be null"); + } + else + { + this.EventCode = eventCode; + } + // to ensure "eventTime" is required (not null) + if (eventTime == null) + { + throw new InvalidDataException("eventTime is a required property for Event and cannot be null"); + } + else + { + this.EventTime = eventTime; + } + this.Location = location; + this.ShipmentType = shipmentType; + } + + + /// + /// Gets or Sets Location + /// + [DataMember(Name="location", EmitDefaultValue=false)] + public Location Location { get; set; } + + /// + /// The ISO 8601 formatted timestamp of the event. + /// + /// The ISO 8601 formatted timestamp of the event. + [DataMember(Name="eventTime", EmitDefaultValue=false)] + public DateTime? EventTime { get; set; } + + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Event {\n"); + sb.Append(" EventCode: ").Append(EventCode).Append("\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); + sb.Append(" EventTime: ").Append(EventTime).Append("\n"); + sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Event); + } + + /// + /// Returns true if Event instances are equal + /// + /// Instance of Event to be compared + /// Boolean + public bool Equals(Event input) + { + if (input == null) + return false; + + return + ( + this.EventCode == input.EventCode || + (this.EventCode != null && + this.EventCode.Equals(input.EventCode)) + ) && + ( + this.Location == input.Location || + (this.Location != null && + this.Location.Equals(input.Location)) + ) && + ( + this.EventTime == input.EventTime || + (this.EventTime != null && + this.EventTime.Equals(input.EventTime)) + ) && + ( + this.ShipmentType == input.ShipmentType || + (this.ShipmentType != null && + this.ShipmentType.Equals(input.ShipmentType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EventCode != null) + hashCode = hashCode * 59 + this.EventCode.GetHashCode(); + if (this.Location != null) + hashCode = hashCode * 59 + this.Location.GetHashCode(); + if (this.EventTime != null) + hashCode = hashCode * 59 + this.EventTime.GetHashCode(); + if (this.ShipmentType != null) + hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/EventCode.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/EventCode.cs new file mode 100644 index 0000000..1ae5ab7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/EventCode.cs @@ -0,0 +1,106 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The tracking event type. + /// + /// The tracking event type. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum EventCode + { + + /// + /// Enum ReadyForReceive for value: ReadyForReceive + /// + [EnumMember(Value = "ReadyForReceive")] + ReadyForReceive = 1, + + /// + /// Enum PickupDone for value: PickupDone + /// + [EnumMember(Value = "PickupDone")] + PickupDone = 2, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 3, + + /// + /// Enum Departed for value: Departed + /// + [EnumMember(Value = "Departed")] + Departed = 4, + + /// + /// Enum DeliveryAttempted for value: DeliveryAttempted + /// + [EnumMember(Value = "DeliveryAttempted")] + DeliveryAttempted = 5, + + /// + /// Enum Lost for value: Lost + /// + [EnumMember(Value = "Lost")] + Lost = 6, + + /// + /// Enum OutForDelivery for value: OutForDelivery + /// + [EnumMember(Value = "OutForDelivery")] + OutForDelivery = 7, + + /// + /// Enum ArrivedAtCarrierFacility for value: ArrivedAtCarrierFacility + /// + [EnumMember(Value = "ArrivedAtCarrierFacility")] + ArrivedAtCarrierFacility = 8, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 9, + + /// + /// Enum Undeliverable for value: Undeliverable + /// + [EnumMember(Value = "Undeliverable")] + Undeliverable = 10, + + /// + /// Enum PickupCancelled for value: PickupCancelled + /// + [EnumMember(Value = "PickupCancelled")] + PickupCancelled = 11, + + /// + /// Enum ReturnInitiated for value: ReturnInitiated + /// + [EnumMember(Value = "ReturnInitiated")] + ReturnInitiated = 12, + + /// + /// Enum AvailableForPickup for value: AvailableForPickup + /// + [EnumMember(Value = "AvailableForPickup")] + AvailableForPickup = 13 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExceptionOperatingHours.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExceptionOperatingHours.cs new file mode 100644 index 0000000..02a97fe --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExceptionOperatingHours.cs @@ -0,0 +1,133 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Defines exceptions to standard operating hours for certain date ranges. + /// + [DataContract] + public partial class ExceptionOperatingHours : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// dateRange. + /// operatingHours. + public ExceptionOperatingHours(DateRange dateRange = default(DateRange), OperatingHours operatingHours = default(OperatingHours)) + { + this.DateRange = dateRange; + this.OperatingHours = operatingHours; + } + + /// + /// Gets or Sets DateRange + /// + [DataMember(Name="dateRange", EmitDefaultValue=false)] + public DateRange DateRange { get; set; } + + /// + /// Gets or Sets OperatingHours + /// + [DataMember(Name="operatingHours", EmitDefaultValue=false)] + public OperatingHours OperatingHours { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExceptionOperatingHours {\n"); + sb.Append(" DateRange: ").Append(DateRange).Append("\n"); + sb.Append(" OperatingHours: ").Append(OperatingHours).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExceptionOperatingHours); + } + + /// + /// Returns true if ExceptionOperatingHours instances are equal + /// + /// Instance of ExceptionOperatingHours to be compared + /// Boolean + public bool Equals(ExceptionOperatingHours input) + { + if (input == null) + return false; + + return + ( + this.DateRange == input.DateRange || + (this.DateRange != null && + this.DateRange.Equals(input.DateRange)) + ) && + ( + this.OperatingHours == input.OperatingHours || + (this.OperatingHours != null && + this.OperatingHours.Equals(input.OperatingHours)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DateRange != null) + hashCode = hashCode * 59 + this.DateRange.GetHashCode(); + if (this.OperatingHours != null) + hashCode = hashCode * 59 + this.OperatingHours.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefit.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefit.cs new file mode 100644 index 0000000..4147227 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefit.cs @@ -0,0 +1,123 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Object representing an excluded benefit that is excluded for an ShippingOffering/Rate. + /// + [DataContract] + public partial class ExcludedBenefit : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Benefit + /// + [DataMember(Name="benefit", EmitDefaultValue=false)] + public string Benefit { get; set; } + + /// + /// Gets or Sets ReasonCodes + /// + [DataMember(Name="reasonCodes", EmitDefaultValue=false)] + public ExcludedBenefitReasonCodes ReasonCodes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExcludedBenefit {\n"); + sb.Append(" Benefit: ").Append(Benefit).Append("\n"); + sb.Append(" ReasonCodes: ").Append(ReasonCodes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExcludedBenefit); + } + + /// + /// Returns true if ExcludedBenefit instances are equal + /// + /// Instance of ExcludedBenefit to be compared + /// Boolean + public bool Equals(ExcludedBenefit input) + { + if (input == null) + return false; + + return + ( + this.Benefit == input.Benefit || + (this.Benefit != null && + this.Benefit.Equals(input.Benefit)) + ) && + ( + this.ReasonCodes == input.ReasonCodes || + (this.ReasonCodes != null && + this.ReasonCodes.Equals(input.ReasonCodes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Benefit != null) + hashCode = hashCode * 59 + this.Benefit.GetHashCode(); + if (this.ReasonCodes != null) + hashCode = hashCode * 59 + this.ReasonCodes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefitReasonCodes.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefitReasonCodes.cs new file mode 100644 index 0000000..13f1a9d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefitReasonCodes.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// List of reasons (eg. LATE_DELIVERY_RISK, etc.) indicating why a benefit is excluded for a shipping offer. + /// + [DataContract] + public partial class ExcludedBenefitReasonCodes : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ExcludedBenefitReasonCodes() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExcludedBenefitReasonCodes {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExcludedBenefitReasonCodes); + } + + /// + /// Returns true if ExcludedBenefitReasonCodes instances are equal + /// + /// Instance of ExcludedBenefitReasonCodes to be compared + /// Boolean + public bool Equals(ExcludedBenefitReasonCodes input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefits.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefits.cs new file mode 100644 index 0000000..b5fd076 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ExcludedBenefits.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of excluded benefit. Refer to the ExcludeBenefit object for further documentation + /// + [DataContract] + public partial class ExcludedBenefits : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ExcludedBenefits() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ExcludedBenefits {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ExcludedBenefits); + } + + /// + /// Returns true if ExcludedBenefits instances are equal + /// + /// Instance of ExcludedBenefits to be compared + /// Boolean + public bool Equals(ExcludedBenefits input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Geocode.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Geocode.cs new file mode 100644 index 0000000..a00e7b7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Geocode.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Defines the latitude and longitude of the access point. + /// + [DataContract] + public partial class Geocode : IEquatable, IValidatableObject + { + /// + /// The latitude of access point. + /// + /// The latitude of access point. + [DataMember(Name="latitude", EmitDefaultValue=false)] + public string Latitude { get; set; } + + /// + /// The longitude of access point. + /// + /// The longitude of access point. + [DataMember(Name="longitude", EmitDefaultValue=false)] + public string Longitude { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Geocode {\n"); + sb.Append(" Latitude: ").Append(Latitude).Append("\n"); + sb.Append(" Longitude: ").Append(Longitude).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Geocode); + } + + /// + /// Returns true if Geocode instances are equal + /// + /// Instance of Geocode to be compared + /// Boolean + public bool Equals(Geocode input) + { + if (input == null) + return false; + + return + ( + this.Latitude == input.Latitude || + (this.Latitude != null && + this.Latitude.Equals(input.Latitude)) + ) && + ( + this.Longitude == input.Longitude || + (this.Longitude != null && + this.Longitude.Equals(input.Longitude)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Latitude != null) + hashCode = hashCode * 59 + this.Latitude.GetHashCode(); + if (this.Longitude != null) + hashCode = hashCode * 59 + this.Longitude.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResponse.cs new file mode 100644 index 0000000..674b752 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResponse.cs @@ -0,0 +1,117 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the GetAccessPoints operation. + /// + [DataContract] + public partial class GetAccessPointsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// payload. + public GetAccessPointsResponse(GetAccessPointsResult payload = default(GetAccessPointsResult)) + { + this.Payload = payload; + } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public GetAccessPointsResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetAccessPointsResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetAccessPointsResponse); + } + + /// + /// Returns true if GetAccessPointsResponse instances are equal + /// + /// Instance of GetAccessPointsResponse to be compared + /// Boolean + public bool Equals(GetAccessPointsResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResult.cs new file mode 100644 index 0000000..ac2a6c4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAccessPointsResult.cs @@ -0,0 +1,131 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the GetAccessPoints API. + /// + [DataContract] + public partial class GetAccessPointsResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected GetAccessPointsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// accessPointsMap (required). + public GetAccessPointsResult(AccessPointsMap accessPointsMap = default(AccessPointsMap)) + { + // to ensure "accessPointsMap" is required (not null) + if (accessPointsMap == null) + { + throw new InvalidDataException("accessPointsMap is a required property for GetAccessPointsResult and cannot be null"); + } + else + { + this.AccessPointsMap = accessPointsMap; + } + } + + /// + /// Gets or Sets AccessPointsMap + /// + [DataMember(Name="accessPointsMap", EmitDefaultValue=false)] + public AccessPointsMap AccessPointsMap { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetAccessPointsResult {\n"); + sb.Append(" AccessPointsMap: ").Append(AccessPointsMap).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetAccessPointsResult); + } + + /// + /// Returns true if GetAccessPointsResult instances are equal + /// + /// Instance of GetAccessPointsResult to be compared + /// Boolean + public bool Equals(GetAccessPointsResult input) + { + if (input == null) + return false; + + return + ( + this.AccessPointsMap == input.AccessPointsMap || + (this.AccessPointsMap != null && + this.AccessPointsMap.Equals(input.AccessPointsMap)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AccessPointsMap != null) + hashCode = hashCode * 59 + this.AccessPointsMap.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResponse.cs new file mode 100644 index 0000000..d5c3a86 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResponse.cs @@ -0,0 +1,117 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the getAdditionalInputs operation. + /// + [DataContract] + public partial class GetAdditionalInputsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// payload. + public GetAdditionalInputsResponse(GetAdditionalInputsResult payload = default(GetAdditionalInputsResult)) + { + this.Payload = payload; + } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public GetAdditionalInputsResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetAdditionalInputsResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetAdditionalInputsResponse); + } + + /// + /// Returns true if GetAdditionalInputsResponse instances are equal + /// + /// Instance of GetAdditionalInputsResponse to be compared + /// Boolean + public bool Equals(GetAdditionalInputsResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResult.cs new file mode 100644 index 0000000..eebd41f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetAdditionalInputsResult.cs @@ -0,0 +1,104 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The JSON schema to use to provide additional inputs when required to purchase a shipping offering. + /// + [DataContract] + public partial class GetAdditionalInputsResult : Dictionary, IEquatable, + IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public GetAdditionalInputsResult() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetAdditionalInputsResult {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetAdditionalInputsResult); + } + + /// + /// Returns true if GetAdditionalInputsResult instances are equal + /// + /// Instance of GetAdditionalInputsResult to be compared + /// Boolean + public bool Equals(GetAdditionalInputsResult input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesRequest.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesRequest.cs new file mode 100644 index 0000000..270def1 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesRequest.cs @@ -0,0 +1,268 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The request schema for the getRates operation. When the channelType is Amazon, the shipTo address is not required and will be ignored. + /// + [DataContract] + public partial class GetRatesRequest : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ShipmentType + /// + [DataMember(Name = "shipmentType", EmitDefaultValue = false)] + public ShipmentType? ShipmentType { get; set; } + + /// + /// The ship to address. + /// + /// The ship to address. + [DataMember(Name = "shipTo", EmitDefaultValue = false)] + public Address ShipTo { get; set; } + + /// + /// The ship from address. + /// + /// The ship from address. + [DataMember(Name = "shipFrom", EmitDefaultValue = false)] + public Address ShipFrom { get; set; } + + /// + /// The return to address. + /// + /// The return to address. + [DataMember(Name = "returnTo", EmitDefaultValue = false)] + public Address ReturnTo { get; set; } + + /// + /// The ship date and time (the requested pickup). This defaults to the current date and time. + /// + /// The ship date and time (the requested pickup). This defaults to the current date and time. + [DataMember(Name = "shipDate", EmitDefaultValue = false)] + public DateTime? ShipDate { get; set; } + + /// + /// This field describe shipper instruction. + /// + /// This field describe shipper instruction. + [DataMember(Name = "shipperInstruction", EmitDefaultValue = false)] + public ShipperInstruction ShipperInstruction { get; set; } + + /// + /// Gets or Sets Packages + /// + [DataMember(Name = "packages", EmitDefaultValue = false)] + public PackageList Packages { get; set; } + + /// + /// Gets or Sets ValueAddedServices + /// + [DataMember(Name = "valueAddedServices", EmitDefaultValue = false)] + public ValueAddedServiceDetails ValueAddedServices { get; set; } + + /// + /// Gets or Sets TaxDetails + /// + [DataMember(Name = "taxDetails", EmitDefaultValue = false)] + public TaxDetailList TaxDetails { get; set; } + + /// + /// Gets or Sets ChannelDetails + /// + [DataMember(Name = "channelDetails", EmitDefaultValue = false)] + public ChannelDetails ChannelDetails { get; set; } + + /// + /// Gets or Sets ClientReferenceDetails + /// + [DataMember(Name = "clientReferenceDetails", EmitDefaultValue = false)] + public ClientReferenceDetails ClientReferenceDetails { get; set; } + + /// + /// Gets or Sets DestinationAccessPointDetails + /// + [DataMember(Name = "destinationAccessPointDetails", EmitDefaultValue = false)] + public AccessPointDetails DestinationAccessPointDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetRatesRequest {\n"); + sb.Append(" ShipTo: ").Append(ShipTo).Append("\n"); + sb.Append(" ShipFrom: ").Append(ShipFrom).Append("\n"); + sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); + sb.Append(" ShipDate: ").Append(ShipDate).Append("\n"); + sb.Append(" ShipperInstruction: ").Append(ShipperInstruction).Append("\n"); + sb.Append(" Packages: ").Append(Packages).Append("\n"); + sb.Append(" ValueAddedServices: ").Append(ValueAddedServices).Append("\n"); + sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); + sb.Append(" ChannelDetails: ").Append(ChannelDetails).Append("\n"); + sb.Append(" ClientReferenceDetails: ").Append(ClientReferenceDetails).Append("\n"); + sb.Append(" ShipmentType: ").Append(ShipmentType).Append("\n"); + sb.Append(" DestinationAccessPointDetails: ").Append(DestinationAccessPointDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetRatesRequest); + } + + /// + /// Returns true if GetRatesRequest instances are equal + /// + /// Instance of GetRatesRequest to be compared + /// Boolean + public bool Equals(GetRatesRequest input) + { + if (input == null) + return false; + + return + ( + this.ShipTo == input.ShipTo || + (this.ShipTo != null && + this.ShipTo.Equals(input.ShipTo)) + ) && + ( + this.ShipFrom == input.ShipFrom || + (this.ShipFrom != null && + this.ShipFrom.Equals(input.ShipFrom)) + ) && + ( + this.ReturnTo == input.ReturnTo || + (this.ReturnTo != null && + this.ReturnTo.Equals(input.ReturnTo)) + ) && + ( + this.ShipDate == input.ShipDate || + (this.ShipDate != null && + this.ShipDate.Equals(input.ShipDate)) + ) && + ( + this.ShipperInstruction == input.ShipperInstruction || + (this.ShipperInstruction != null && + this.ShipperInstruction.Equals(input.ShipperInstruction)) + ) && + ( + this.Packages == input.Packages || + (this.Packages != null && + this.Packages.Equals(input.Packages)) + ) && + ( + this.ValueAddedServices == input.ValueAddedServices || + (this.ValueAddedServices != null && + this.ValueAddedServices.Equals(input.ValueAddedServices)) + ) && + ( + this.TaxDetails == input.TaxDetails || + (this.TaxDetails != null && + this.TaxDetails.Equals(input.TaxDetails)) + ) && + ( + this.ChannelDetails == input.ChannelDetails || + (this.ChannelDetails != null && + this.ChannelDetails.Equals(input.ChannelDetails)) + ) && + ( + this.ClientReferenceDetails == input.ClientReferenceDetails || + (this.ClientReferenceDetails != null && + this.ClientReferenceDetails.Equals(input.ClientReferenceDetails)) + ) && + ( + this.ShipmentType == input.ShipmentType || + (this.ShipmentType != null && + this.ShipmentType.Equals(input.ShipmentType)) + ) && + ( + this.DestinationAccessPointDetails == input.DestinationAccessPointDetails || + (this.DestinationAccessPointDetails != null && + this.DestinationAccessPointDetails.Equals(input.DestinationAccessPointDetails)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipTo != null) + hashCode = hashCode * 59 + this.ShipTo.GetHashCode(); + if (this.ShipFrom != null) + hashCode = hashCode * 59 + this.ShipFrom.GetHashCode(); + if (this.ReturnTo != null) + hashCode = hashCode * 59 + this.ReturnTo.GetHashCode(); + if (this.ShipDate != null) + hashCode = hashCode * 59 + this.ShipDate.GetHashCode(); + if (this.ShipperInstruction != null) + hashCode = hashCode * 59 + this.ShipperInstruction.GetHashCode(); + if (this.Packages != null) + hashCode = hashCode * 59 + this.Packages.GetHashCode(); + if (this.ValueAddedServices != null) + hashCode = hashCode * 59 + this.ValueAddedServices.GetHashCode(); + if (this.TaxDetails != null) + hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); + if (this.ChannelDetails != null) + hashCode = hashCode * 59 + this.ChannelDetails.GetHashCode(); + if (this.ClientReferenceDetails != null) + hashCode = hashCode * 59 + this.ClientReferenceDetails.GetHashCode(); + if (this.ShipmentType != null) + hashCode = hashCode * 59 + this.ShipmentType.GetHashCode(); + if (this.DestinationAccessPointDetails != null) + hashCode = hashCode * 59 + this.DestinationAccessPointDetails.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResponse.cs new file mode 100644 index 0000000..2b82ff0 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResponse.cs @@ -0,0 +1,108 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the getRates operation. + /// + [DataContract] + public partial class GetRatesResponse : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public GetRatesResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetRatesResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetRatesResponse); + } + + /// + /// Returns true if GetRatesResponse instances are equal + /// + /// Instance of GetRatesResponse to be compared + /// Boolean + public bool Equals(GetRatesResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResult.cs new file mode 100644 index 0000000..bcba7c7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetRatesResult.cs @@ -0,0 +1,137 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the getRates operation. + /// + [DataContract] + public partial class GetRatesResult : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RequestToken + /// + [DataMember(Name="requestToken", EmitDefaultValue=false)] + public string RequestToken { get; set; } + + /// + /// Gets or Sets Rates + /// + [DataMember(Name="rates", EmitDefaultValue=false)] + public RateList Rates { get; set; } + + /// + /// Gets or Sets IneligibleRates + /// + [DataMember(Name="ineligibleRates", EmitDefaultValue=false)] + public IneligibleRateList IneligibleRates { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetRatesResult {\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); + sb.Append(" Rates: ").Append(Rates).Append("\n"); + sb.Append(" IneligibleRates: ").Append(IneligibleRates).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetRatesResult); + } + + /// + /// Returns true if GetRatesResult instances are equal + /// + /// Instance of GetRatesResult to be compared + /// Boolean + public bool Equals(GetRatesResult input) + { + if (input == null) + return false; + + return + ( + this.RequestToken == input.RequestToken || + (this.RequestToken != null && + this.RequestToken.Equals(input.RequestToken)) + ) && + ( + this.Rates == input.Rates || + (this.Rates != null && + this.Rates.Equals(input.Rates)) + ) && + ( + this.IneligibleRates == input.IneligibleRates || + (this.IneligibleRates != null && + this.IneligibleRates.Equals(input.IneligibleRates)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestToken != null) + hashCode = hashCode * 59 + this.RequestToken.GetHashCode(); + if (this.Rates != null) + hashCode = hashCode * 59 + this.Rates.GetHashCode(); + if (this.IneligibleRates != null) + hashCode = hashCode * 59 + this.IneligibleRates.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResponse.cs new file mode 100644 index 0000000..4e4d8ff --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResponse.cs @@ -0,0 +1,117 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the the getShipmentDocuments operation. + /// + [DataContract] + public partial class GetShipmentDocumentsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// payload. + public GetShipmentDocumentsResponse(GetShipmentDocumentsResult payload = default(GetShipmentDocumentsResult)) + { + this.Payload = payload; + } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public GetShipmentDocumentsResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetShipmentDocumentsResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetShipmentDocumentsResponse); + } + + /// + /// Returns true if GetShipmentDocumentsResponse instances are equal + /// + /// Instance of GetShipmentDocumentsResponse to be compared + /// Boolean + public bool Equals(GetShipmentDocumentsResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResult.cs new file mode 100644 index 0000000..6ddc2ae --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetShipmentDocumentsResult.cs @@ -0,0 +1,171 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the getShipmentDocuments operation. + /// + [DataContract] + public partial class GetShipmentDocumentsResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected GetShipmentDocumentsResult() { } + /// + /// Initializes a new instance of the class. + /// + /// shipmentId (required). + /// packageDocumentDetail (required). + /// benefits. + public GetShipmentDocumentsResult(ShipmentId shipmentId = default(ShipmentId), PackageDocumentDetail packageDocumentDetail = default(PackageDocumentDetail), Benefits benefits = default(Benefits)) + { + // to ensure "shipmentId" is required (not null) + if (shipmentId == null) + { + throw new InvalidDataException("shipmentId is a required property for GetShipmentDocumentsResult and cannot be null"); + } + else + { + this.ShipmentId = shipmentId; + } + // to ensure "packageDocumentDetail" is required (not null) + if (packageDocumentDetail == null) + { + throw new InvalidDataException("packageDocumentDetail is a required property for GetShipmentDocumentsResult and cannot be null"); + } + else + { + this.PackageDocumentDetail = packageDocumentDetail; + } + this.Benefits = benefits; + } + + /// + /// Gets or Sets ShipmentId + /// + [DataMember(Name="shipmentId", EmitDefaultValue=false)] + public ShipmentId ShipmentId { get; set; } + + /// + /// Gets or Sets PackageDocumentDetail + /// + [DataMember(Name="packageDocumentDetail", EmitDefaultValue=false)] + public PackageDocumentDetail PackageDocumentDetail { get; set; } + + /// + /// Gets or Sets Benefits + /// + [DataMember(Name="benefits", EmitDefaultValue=false)] + public Benefits Benefits { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetShipmentDocumentsResult {\n"); + sb.Append(" ShipmentId: ").Append(ShipmentId).Append("\n"); + sb.Append(" PackageDocumentDetail: ").Append(PackageDocumentDetail).Append("\n"); + sb.Append(" Benefits: ").Append(Benefits).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetShipmentDocumentsResult); + } + + /// + /// Returns true if GetShipmentDocumentsResult instances are equal + /// + /// Instance of GetShipmentDocumentsResult to be compared + /// Boolean + public bool Equals(GetShipmentDocumentsResult input) + { + if (input == null) + return false; + + return + ( + this.ShipmentId == input.ShipmentId || + (this.ShipmentId != null && + this.ShipmentId.Equals(input.ShipmentId)) + ) && + ( + this.PackageDocumentDetail == input.PackageDocumentDetail || + (this.PackageDocumentDetail != null && + this.PackageDocumentDetail.Equals(input.PackageDocumentDetail)) + ) && + ( + this.Benefits == input.Benefits || + (this.Benefits != null && + this.Benefits.Equals(input.Benefits)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipmentId != null) + hashCode = hashCode * 59 + this.ShipmentId.GetHashCode(); + if (this.PackageDocumentDetail != null) + hashCode = hashCode * 59 + this.PackageDocumentDetail.GetHashCode(); + if (this.Benefits != null) + hashCode = hashCode * 59 + this.Benefits.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResponse.cs new file mode 100644 index 0000000..f147f5f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResponse.cs @@ -0,0 +1,117 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the getTracking operation. + /// + [DataContract] + public partial class GetTrackingResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// payload. + public GetTrackingResponse(GetTrackingResult payload = default(GetTrackingResult)) + { + this.Payload = payload; + } + + /// + /// Gets or Sets Payload + /// + [DataMember(Name="payload", EmitDefaultValue=false)] + public GetTrackingResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetTrackingResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetTrackingResponse); + } + + /// + /// Returns true if GetTrackingResponse instances are equal + /// + /// Instance of GetTrackingResponse to be compared + /// Boolean + public bool Equals(GetTrackingResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResult.cs new file mode 100644 index 0000000..6e42158 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/GetTrackingResult.cs @@ -0,0 +1,230 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the getTracking operation. + /// + [DataContract] + public partial class GetTrackingResult : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected GetTrackingResult() { } + /// + /// Initializes a new instance of the class. + /// + /// trackingId (required). + /// alternateLegTrackingId (required). + /// A list of tracking events. (required). + /// The date and time by which the shipment is promised to be delivered. (required). + /// summary (required). + public GetTrackingResult(TrackingId trackingId = default(TrackingId), AlternateLegTrackingId alternateLegTrackingId = default(AlternateLegTrackingId), List eventHistory = default(List), DateTime? promisedDeliveryDate = default(DateTime?), TrackingSummary summary = default(TrackingSummary)) + { + // to ensure "trackingId" is required (not null) + if (trackingId == null) + { + throw new InvalidDataException("trackingId is a required property for GetTrackingResult and cannot be null"); + } + else + { + this.TrackingId = trackingId; + } + // to ensure "alternateLegTrackingId" is required (not null) + if (alternateLegTrackingId == null) + { + throw new InvalidDataException("alternateLegTrackingId is a required property for GetTrackingResult and cannot be null"); + } + else + { + this.AlternateLegTrackingId = alternateLegTrackingId; + } + // to ensure "eventHistory" is required (not null) + if (eventHistory == null) + { + throw new InvalidDataException("eventHistory is a required property for GetTrackingResult and cannot be null"); + } + else + { + this.EventHistory = eventHistory; + } + // to ensure "promisedDeliveryDate" is required (not null) + if (promisedDeliveryDate == null) + { + throw new InvalidDataException("promisedDeliveryDate is a required property for GetTrackingResult and cannot be null"); + } + else + { + this.PromisedDeliveryDate = promisedDeliveryDate; + } + // to ensure "summary" is required (not null) + if (summary == null) + { + throw new InvalidDataException("summary is a required property for GetTrackingResult and cannot be null"); + } + else + { + this.Summary = summary; + } + } + + /// + /// Gets or Sets TrackingId + /// + [DataMember(Name="trackingId", EmitDefaultValue=false)] + public TrackingId TrackingId { get; set; } + + /// + /// Gets or Sets AlternateLegTrackingId + /// + [DataMember(Name="alternateLegTrackingId", EmitDefaultValue=false)] + public AlternateLegTrackingId AlternateLegTrackingId { get; set; } + + /// + /// A list of tracking events. + /// + /// A list of tracking events. + [DataMember(Name="eventHistory", EmitDefaultValue=false)] + public List EventHistory { get; set; } + + /// + /// The date and time by which the shipment is promised to be delivered. + /// + /// The date and time by which the shipment is promised to be delivered. + [DataMember(Name="promisedDeliveryDate", EmitDefaultValue=false)] + public DateTime? PromisedDeliveryDate { get; set; } + + /// + /// Gets or Sets Summary + /// + [DataMember(Name="summary", EmitDefaultValue=false)] + public TrackingSummary Summary { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class GetTrackingResult {\n"); + sb.Append(" TrackingId: ").Append(TrackingId).Append("\n"); + sb.Append(" AlternateLegTrackingId: ").Append(AlternateLegTrackingId).Append("\n"); + sb.Append(" EventHistory: ").Append(EventHistory).Append("\n"); + sb.Append(" PromisedDeliveryDate: ").Append(PromisedDeliveryDate).Append("\n"); + sb.Append(" Summary: ").Append(Summary).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as GetTrackingResult); + } + + /// + /// Returns true if GetTrackingResult instances are equal + /// + /// Instance of GetTrackingResult to be compared + /// Boolean + public bool Equals(GetTrackingResult input) + { + if (input == null) + return false; + + return + ( + this.TrackingId == input.TrackingId || + (this.TrackingId != null && + this.TrackingId.Equals(input.TrackingId)) + ) && + ( + this.AlternateLegTrackingId == input.AlternateLegTrackingId || + (this.AlternateLegTrackingId != null && + this.AlternateLegTrackingId.Equals(input.AlternateLegTrackingId)) + ) && + ( + this.EventHistory == input.EventHistory || + this.EventHistory != null && + this.EventHistory.SequenceEqual(input.EventHistory) + ) && + ( + this.PromisedDeliveryDate == input.PromisedDeliveryDate || + (this.PromisedDeliveryDate != null && + this.PromisedDeliveryDate.Equals(input.PromisedDeliveryDate)) + ) && + ( + this.Summary == input.Summary || + (this.Summary != null && + this.Summary.Equals(input.Summary)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TrackingId != null) + hashCode = hashCode * 59 + this.TrackingId.GetHashCode(); + if (this.AlternateLegTrackingId != null) + hashCode = hashCode * 59 + this.AlternateLegTrackingId.GetHashCode(); + if (this.EventHistory != null) + hashCode = hashCode * 59 + this.EventHistory.GetHashCode(); + if (this.PromisedDeliveryDate != null) + hashCode = hashCode * 59 + this.PromisedDeliveryDate.GetHashCode(); + if (this.Summary != null) + hashCode = hashCode * 59 + this.Summary.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IncludedBenefits.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IncludedBenefits.cs new file mode 100644 index 0000000..0d7cbfc --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IncludedBenefits.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of included benefits. + /// + [DataContract] + public partial class IncludedBenefits : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public IncludedBenefits() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IncludedBenefits {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IncludedBenefits); + } + + /// + /// Returns true if IncludedBenefits instances are equal + /// + /// Instance of IncludedBenefits to be compared + /// Boolean + public bool Equals(IncludedBenefits input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReason.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReason.cs new file mode 100644 index 0000000..acb9034 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReason.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The reason why a shipping service offering is ineligible. + /// + [DataContract] + public partial class IneligibilityReason : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Code + /// + [DataMember(Name="code", EmitDefaultValue=false)] + public IneligibilityReasonCode Code { get; set; } + + /// + /// The ineligibility reason. + /// + /// The ineligibility reason. + [DataMember(Name="message", EmitDefaultValue=false)] + public string Message { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IneligibilityReason {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IneligibilityReason); + } + + /// + /// Returns true if IneligibilityReason instances are equal + /// + /// Instance of IneligibilityReason to be compared + /// Boolean + public bool Equals(IneligibilityReason input) + { + if (input == null) + return false; + + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + hashCode = hashCode * 59 + this.Code.GetHashCode(); + if (this.Message != null) + hashCode = hashCode * 59 + this.Message.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReasonCode.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReasonCode.cs new file mode 100644 index 0000000..e4beda5 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibilityReasonCode.cs @@ -0,0 +1,88 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Reasons that make a shipment service offering ineligible. + /// + /// Reasons that make a shipment service offering ineligible. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum IneligibilityReasonCode + { + + /// + /// Enum NOCOVERAGE for value: NO_COVERAGE + /// + [EnumMember(Value = "NO_COVERAGE")] + NOCOVERAGE = 1, + + /// + /// Enum PICKUPSLOTRESTRICTION for value: PICKUP_SLOT_RESTRICTION + /// + [EnumMember(Value = "PICKUP_SLOT_RESTRICTION")] + PICKUPSLOTRESTRICTION = 2, + + /// + /// Enum UNSUPPORTEDVAS for value: UNSUPPORTED_VAS + /// + [EnumMember(Value = "UNSUPPORTED_VAS")] + UNSUPPORTEDVAS = 3, + + /// + /// Enum VASCOMBINATIONRESTRICTION for value: VAS_COMBINATION_RESTRICTION + /// + [EnumMember(Value = "VAS_COMBINATION_RESTRICTION")] + VASCOMBINATIONRESTRICTION = 4, + + /// + /// Enum SIZERESTRICTIONS for value: SIZE_RESTRICTIONS + /// + [EnumMember(Value = "SIZE_RESTRICTIONS")] + SIZERESTRICTIONS = 5, + + /// + /// Enum WEIGHTRESTRICTIONS for value: WEIGHT_RESTRICTIONS + /// + [EnumMember(Value = "WEIGHT_RESTRICTIONS")] + WEIGHTRESTRICTIONS = 6, + + /// + /// Enum LATEDELIVERY for value: LATE_DELIVERY + /// + [EnumMember(Value = "LATE_DELIVERY")] + LATEDELIVERY = 7, + + /// + /// Enum PROGRAMCONSTRAINTS for value: PROGRAM_CONSTRAINTS + /// + [EnumMember(Value = "PROGRAM_CONSTRAINTS")] + PROGRAMCONSTRAINTS = 8, + + /// + /// Enum TERMSANDCONDITIONSNOTACCEPTED for value: TERMS_AND_CONDITIONS_NOT_ACCEPTED + /// + [EnumMember(Value = "TERMS_AND_CONDITIONS_NOT_ACCEPTED")] + TERMSANDCONDITIONSNOTACCEPTED = 9, + + /// + /// Enum UNKNOWN for value: UNKNOWN + /// + [EnumMember(Value = "UNKNOWN")] + UNKNOWN = 10 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRate.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRate.cs new file mode 100644 index 0000000..e4415fa --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRate.cs @@ -0,0 +1,167 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Detailed information for an ineligible shipping service offering. + /// + [DataContract] + public partial class IneligibleRate : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ServiceId + /// + [DataMember(Name="serviceId", EmitDefaultValue=false)] + public string ServiceId { get; set; } + + /// + /// Gets or Sets ServiceName + /// + [DataMember(Name="serviceName", EmitDefaultValue=false)] + public string ServiceName { get; set; } + + /// + /// Gets or Sets CarrierName + /// + [DataMember(Name="carrierName", EmitDefaultValue=false)] + public string CarrierName { get; set; } + + /// + /// Gets or Sets CarrierId + /// + [DataMember(Name="carrierId", EmitDefaultValue=false)] + public string CarrierId { get; set; } + + /// + /// A list of reasons why a shipping service offering is ineligible. + /// + /// A list of reasons why a shipping service offering is ineligible. + [DataMember(Name="ineligibilityReasons", EmitDefaultValue=false)] + public List IneligibilityReasons { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IneligibleRate {\n"); + sb.Append(" ServiceId: ").Append(ServiceId).Append("\n"); + sb.Append(" ServiceName: ").Append(ServiceName).Append("\n"); + sb.Append(" CarrierName: ").Append(CarrierName).Append("\n"); + sb.Append(" CarrierId: ").Append(CarrierId).Append("\n"); + sb.Append(" IneligibilityReasons: ").Append(IneligibilityReasons).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IneligibleRate); + } + + /// + /// Returns true if IneligibleRate instances are equal + /// + /// Instance of IneligibleRate to be compared + /// Boolean + public bool Equals(IneligibleRate input) + { + if (input == null) + return false; + + return + ( + this.ServiceId == input.ServiceId || + (this.ServiceId != null && + this.ServiceId.Equals(input.ServiceId)) + ) && + ( + this.ServiceName == input.ServiceName || + (this.ServiceName != null && + this.ServiceName.Equals(input.ServiceName)) + ) && + ( + this.CarrierName == input.CarrierName || + (this.CarrierName != null && + this.CarrierName.Equals(input.CarrierName)) + ) && + ( + this.CarrierId == input.CarrierId || + (this.CarrierId != null && + this.CarrierId.Equals(input.CarrierId)) + ) && + ( + this.IneligibilityReasons == input.IneligibilityReasons || + this.IneligibilityReasons != null && + this.IneligibilityReasons.SequenceEqual(input.IneligibilityReasons) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ServiceId != null) + hashCode = hashCode * 59 + this.ServiceId.GetHashCode(); + if (this.ServiceName != null) + hashCode = hashCode * 59 + this.ServiceName.GetHashCode(); + if (this.CarrierName != null) + hashCode = hashCode * 59 + this.CarrierName.GetHashCode(); + if (this.CarrierId != null) + hashCode = hashCode * 59 + this.CarrierId.GetHashCode(); + if (this.IneligibilityReasons != null) + hashCode = hashCode * 59 + this.IneligibilityReasons.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRateList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRateList.cs new file mode 100644 index 0000000..01de08b --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/IneligibleRateList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of ineligible shipping service offerings. + /// + [DataContract] + public partial class IneligibleRateList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public IneligibleRateList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class IneligibleRateList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as IneligibleRateList); + } + + /// + /// Returns true if IneligibleRateList instances are equal + /// + /// Instance of IneligibleRateList to be compared + /// Boolean + public bool Equals(IneligibleRateList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/InvoiceDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/InvoiceDetails.cs new file mode 100644 index 0000000..9155b8f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/InvoiceDetails.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The invoice details for charges associated with the goods in the package. Only applies to certain regions. + /// + [DataContract] + public partial class InvoiceDetails : IEquatable, IValidatableObject + { + /// + /// The invoice number of the item. + /// + /// The invoice number of the item. + [DataMember(Name="invoiceNumber", EmitDefaultValue=false)] + public string InvoiceNumber { get; set; } + + /// + /// The invoice date of the item in ISO 8061 format. + /// + /// The invoice date of the item in ISO 8061 format. + [DataMember(Name="invoiceDate", EmitDefaultValue=false)] + public DateTime? InvoiceDate { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class InvoiceDetails {\n"); + sb.Append(" InvoiceNumber: ").Append(InvoiceNumber).Append("\n"); + sb.Append(" InvoiceDate: ").Append(InvoiceDate).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InvoiceDetails); + } + + /// + /// Returns true if InvoiceDetails instances are equal + /// + /// Instance of InvoiceDetails to be compared + /// Boolean + public bool Equals(InvoiceDetails input) + { + if (input == null) + return false; + + return + ( + this.InvoiceNumber == input.InvoiceNumber || + (this.InvoiceNumber != null && + this.InvoiceNumber.Equals(input.InvoiceNumber)) + ) && + ( + this.InvoiceDate == input.InvoiceDate || + (this.InvoiceDate != null && + this.InvoiceDate.Equals(input.InvoiceDate)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.InvoiceNumber != null) + hashCode = hashCode * 59 + this.InvoiceNumber.GetHashCode(); + if (this.InvoiceDate != null) + hashCode = hashCode * 59 + this.InvoiceDate.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Item.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Item.cs new file mode 100644 index 0000000..7a94622 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Item.cs @@ -0,0 +1,270 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// An item in a package. + /// + [DataContract] + public partial class Item : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ItemValue + /// + [DataMember(Name="itemValue", EmitDefaultValue=false)] + public Currency ItemValue { get; set; } + + /// + /// The product description of the item. + /// + /// The product description of the item. + [DataMember(Name="description", EmitDefaultValue=false)] + public string Description { get; set; } + + /// + /// A unique identifier for an item provided by the client. + /// + /// A unique identifier for an item provided by the client. + [DataMember(Name="itemIdentifier", EmitDefaultValue=false)] + public string ItemIdentifier { get; set; } + + /// + /// The number of units. This value is required. + /// + /// The number of units. This value is required. + [DataMember(Name="quantity", EmitDefaultValue=false)] + public int? Quantity { get; set; } + + /// + /// Gets or Sets Weight + /// + [DataMember(Name="weight", EmitDefaultValue=false)] + public Weight Weight { get; set; } + + /// + /// Gets or Sets LiquidVolume + /// + [DataMember(Name="liquidVolume", EmitDefaultValue=false)] + public LiquidVolume LiquidVolume { get; set; } + + /// + /// When true, the item qualifies as hazardous materials (hazmat). Defaults to false. + /// + /// When true, the item qualifies as hazardous materials (hazmat). Defaults to false. + [DataMember(Name="isHazmat", EmitDefaultValue=false)] + public bool? IsHazmat { get; set; } + + /// + /// Gets or Sets DangerousGoodsDetails + /// + [DataMember(Name="dangerousGoodsDetails", EmitDefaultValue=false)] + public DangerousGoodsDetails DangerousGoodsDetails { get; set; } + + /// + /// The product type of the item. + /// + /// The product type of the item. + [DataMember(Name="productType", EmitDefaultValue=false)] + public string ProductType { get; set; } + + /// + /// Gets or Sets InvoiceDetails + /// + [DataMember(Name="invoiceDetails", EmitDefaultValue=false)] + public InvoiceDetails InvoiceDetails { get; set; } + + /// + /// A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon. + /// + /// A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon. + [DataMember(Name="serialNumbers", EmitDefaultValue=false)] + public List SerialNumbers { get; set; } + + /// + /// Gets or Sets DirectFulfillmentItemIdentifiers + /// + [DataMember(Name="directFulfillmentItemIdentifiers", EmitDefaultValue=false)] + public DirectFulfillmentItemIdentifiers DirectFulfillmentItemIdentifiers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Item {\n"); + sb.Append(" ItemValue: ").Append(ItemValue).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ItemIdentifier: ").Append(ItemIdentifier).Append("\n"); + sb.Append(" Quantity: ").Append(Quantity).Append("\n"); + sb.Append(" Weight: ").Append(Weight).Append("\n"); + sb.Append(" LiquidVolume: ").Append(LiquidVolume).Append("\n"); + sb.Append(" IsHazmat: ").Append(IsHazmat).Append("\n"); + sb.Append(" DangerousGoodsDetails: ").Append(DangerousGoodsDetails).Append("\n"); + sb.Append(" ProductType: ").Append(ProductType).Append("\n"); + sb.Append(" InvoiceDetails: ").Append(InvoiceDetails).Append("\n"); + sb.Append(" SerialNumbers: ").Append(SerialNumbers).Append("\n"); + sb.Append(" DirectFulfillmentItemIdentifiers: ").Append(DirectFulfillmentItemIdentifiers).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Item); + } + + /// + /// Returns true if Item instances are equal + /// + /// Instance of Item to be compared + /// Boolean + public bool Equals(Item input) + { + if (input == null) + return false; + + return + ( + this.ItemValue == input.ItemValue || + (this.ItemValue != null && + this.ItemValue.Equals(input.ItemValue)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ItemIdentifier == input.ItemIdentifier || + (this.ItemIdentifier != null && + this.ItemIdentifier.Equals(input.ItemIdentifier)) + ) && + ( + this.Quantity == input.Quantity || + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) + ) && + ( + this.Weight == input.Weight || + (this.Weight != null && + this.Weight.Equals(input.Weight)) + ) && + ( + this.LiquidVolume == input.LiquidVolume || + (this.LiquidVolume != null && + this.LiquidVolume.Equals(input.LiquidVolume)) + ) && + ( + this.IsHazmat == input.IsHazmat || + (this.IsHazmat != null && + this.IsHazmat.Equals(input.IsHazmat)) + ) && + ( + this.DangerousGoodsDetails == input.DangerousGoodsDetails || + (this.DangerousGoodsDetails != null && + this.DangerousGoodsDetails.Equals(input.DangerousGoodsDetails)) + ) && + ( + this.ProductType == input.ProductType || + (this.ProductType != null && + this.ProductType.Equals(input.ProductType)) + ) && + ( + this.InvoiceDetails == input.InvoiceDetails || + (this.InvoiceDetails != null && + this.InvoiceDetails.Equals(input.InvoiceDetails)) + ) && + ( + this.SerialNumbers == input.SerialNumbers || + this.SerialNumbers != null && + this.SerialNumbers.SequenceEqual(input.SerialNumbers) + ) && + ( + this.DirectFulfillmentItemIdentifiers == input.DirectFulfillmentItemIdentifiers || + (this.DirectFulfillmentItemIdentifiers != null && + this.DirectFulfillmentItemIdentifiers.Equals(input.DirectFulfillmentItemIdentifiers)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ItemValue != null) + hashCode = hashCode * 59 + this.ItemValue.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ItemIdentifier != null) + hashCode = hashCode * 59 + this.ItemIdentifier.GetHashCode(); + if (this.Quantity != null) + hashCode = hashCode * 59 + this.Quantity.GetHashCode(); + if (this.Weight != null) + hashCode = hashCode * 59 + this.Weight.GetHashCode(); + if (this.LiquidVolume != null) + hashCode = hashCode * 59 + this.LiquidVolume.GetHashCode(); + if (this.IsHazmat != null) + hashCode = hashCode * 59 + this.IsHazmat.GetHashCode(); + if (this.DangerousGoodsDetails != null) + hashCode = hashCode * 59 + this.DangerousGoodsDetails.GetHashCode(); + if (this.ProductType != null) + hashCode = hashCode * 59 + this.ProductType.GetHashCode(); + if (this.InvoiceDetails != null) + hashCode = hashCode * 59 + this.InvoiceDetails.GetHashCode(); + if (this.SerialNumbers != null) + hashCode = hashCode * 59 + this.SerialNumbers.GetHashCode(); + if (this.DirectFulfillmentItemIdentifiers != null) + hashCode = hashCode * 59 + this.DirectFulfillmentItemIdentifiers.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ItemList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ItemList.cs new file mode 100644 index 0000000..c2bc1a4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ItemList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of items. + /// + [DataContract] + public partial class ItemList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ItemList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ItemList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ItemList); + } + + /// + /// Returns true if ItemList instances are equal + /// + /// Instance of ItemList to be compared + /// Boolean + public bool Equals(ItemList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/LiquidVolume.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/LiquidVolume.cs new file mode 100644 index 0000000..6c9318a --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/LiquidVolume.cs @@ -0,0 +1,169 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Liquid Volume. + /// + [DataContract] + public partial class LiquidVolume : IEquatable, IValidatableObject + { + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [DataMember(Name = "unit", EmitDefaultValue = false)] + public LiquidVolumeUnitEnum Unit { get; set; } + + /// + /// The measurement value. + /// + /// The measurement value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public decimal? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LiquidVolume {\n"); + sb.Append(" Unit: ").Append(Unit).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LiquidVolume); + } + + /// + /// Returns true if LiquidVolume instances are equal + /// + /// Instance of LiquidVolume to be compared + /// Boolean + public bool Equals(LiquidVolume input) + { + if (input == null) + return false; + + return + ( + this.Unit == input.Unit || + (this.Unit != null && + this.Unit.Equals(input.Unit)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Unit != null) + hashCode = hashCode * 59 + this.Unit.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [JsonConverter(typeof(StringEnumConverter))] + public enum LiquidVolumeUnitEnum + { + /// + /// Enum ML for value: ML + /// + [EnumMember(Value = "ML")] ML = 1, + + /// + /// Enum L for value: L + /// + [EnumMember(Value = "L")] L = 2, + + /// + /// Enum FLOZ for value: FL_OZ + /// + [EnumMember(Value = "FL_OZ")] FLOZ = 3, + + /// + /// Enum GAL for value: GAL + /// + [EnumMember(Value = "GAL")] GAL = 4, + + /// + /// Enum PT for value: PT + /// + [EnumMember(Value = "PT")] PT = 5, + + /// + /// Enum QT for value: QT + /// + [EnumMember(Value = "QT")] QT = 6, + + /// + /// Enum C for value: C + /// + [EnumMember(Value = "C")] C = 7 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Location.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Location.cs new file mode 100644 index 0000000..4b3d569 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Location.cs @@ -0,0 +1,165 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The location where the person, business or institution is located. + /// + [DataContract] + public partial class Location : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// stateOrRegion. + /// city. + /// countryCode. + /// postalCode. + public Location(StateOrRegion stateOrRegion = default(StateOrRegion), City city = default(City), CountryCode countryCode = default(CountryCode), PostalCode postalCode = default(PostalCode)) + { + this.StateOrRegion = stateOrRegion; + this.City = city; + this.CountryCode = countryCode; + this.PostalCode = postalCode; + } + + /// + /// Gets or Sets StateOrRegion + /// + [DataMember(Name="stateOrRegion", EmitDefaultValue=false)] + public StateOrRegion StateOrRegion { get; set; } + + /// + /// Gets or Sets City + /// + [DataMember(Name="city", EmitDefaultValue=false)] + public City City { get; set; } + + /// + /// Gets or Sets CountryCode + /// + [DataMember(Name="countryCode", EmitDefaultValue=false)] + public CountryCode CountryCode { get; set; } + + /// + /// Gets or Sets PostalCode + /// + [DataMember(Name="postalCode", EmitDefaultValue=false)] + public PostalCode PostalCode { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Location {\n"); + sb.Append(" StateOrRegion: ").Append(StateOrRegion).Append("\n"); + sb.Append(" City: ").Append(City).Append("\n"); + sb.Append(" CountryCode: ").Append(CountryCode).Append("\n"); + sb.Append(" PostalCode: ").Append(PostalCode).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Location); + } + + /// + /// Returns true if Location instances are equal + /// + /// Instance of Location to be compared + /// Boolean + public bool Equals(Location input) + { + if (input == null) + return false; + + return + ( + this.StateOrRegion == input.StateOrRegion || + (this.StateOrRegion != null && + this.StateOrRegion.Equals(input.StateOrRegion)) + ) && + ( + this.City == input.City || + (this.City != null && + this.City.Equals(input.City)) + ) && + ( + this.CountryCode == input.CountryCode || + (this.CountryCode != null && + this.CountryCode.Equals(input.CountryCode)) + ) && + ( + this.PostalCode == input.PostalCode || + (this.PostalCode != null && + this.PostalCode.Equals(input.PostalCode)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StateOrRegion != null) + hashCode = hashCode * 59 + this.StateOrRegion.GetHashCode(); + if (this.City != null) + hashCode = hashCode * 59 + this.City.GetHashCode(); + if (this.CountryCode != null) + hashCode = hashCode * 59 + this.CountryCode.GetHashCode(); + if (this.PostalCode != null) + hashCode = hashCode * 59 + this.PostalCode.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrAction.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrAction.cs new file mode 100644 index 0000000..58a3195 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrAction.cs @@ -0,0 +1,46 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The type of NDR action shipper wants to take for a particular shipment. + /// + /// The type of NDR action shipper wants to take for a particular shipment. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum NdrAction + { + + /// + /// Enum RESCHEDULE for value: RESCHEDULE + /// + [EnumMember(Value = "RESCHEDULE")] + RESCHEDULE = 1, + + /// + /// Enum REATTEMPT for value: REATTEMPT + /// + [EnumMember(Value = "REATTEMPT")] + REATTEMPT = 2, + + /// + /// Enum RTO for value: RTO + /// + [EnumMember(Value = "RTO")] + RTO = 3 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrRequestData.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrRequestData.cs new file mode 100644 index 0000000..41ea281 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NdrRequestData.cs @@ -0,0 +1,134 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Additional information required for the NDR action that has been filed. If the NDR Action is RESCHEDULE, rescheduleDate is a required field. Otherwise, if the NDR Action is REATTEMPT, additionalAddressNotes is a required field. + /// + [DataContract] + public partial class NdrRequestData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format. + /// additionalAddressNotes. + public NdrRequestData(DateTime? rescheduleDate = default(DateTime?), AdditionalAddressNotes additionalAddressNotes = default(AdditionalAddressNotes)) + { + this.RescheduleDate = rescheduleDate; + this.AdditionalAddressNotes = additionalAddressNotes; + } + + /// + /// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format + /// + /// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format + [DataMember(Name="rescheduleDate", EmitDefaultValue=false)] + public DateTime? RescheduleDate { get; set; } + + /// + /// Gets or Sets AdditionalAddressNotes + /// + [DataMember(Name="additionalAddressNotes", EmitDefaultValue=false)] + public AdditionalAddressNotes AdditionalAddressNotes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NdrRequestData {\n"); + sb.Append(" RescheduleDate: ").Append(RescheduleDate).Append("\n"); + sb.Append(" AdditionalAddressNotes: ").Append(AdditionalAddressNotes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NdrRequestData); + } + + /// + /// Returns true if NdrRequestData instances are equal + /// + /// Instance of NdrRequestData to be compared + /// Boolean + public bool Equals(NdrRequestData input) + { + if (input == null) + return false; + + return + ( + this.RescheduleDate == input.RescheduleDate || + (this.RescheduleDate != null && + this.RescheduleDate.Equals(input.RescheduleDate)) + ) && + ( + this.AdditionalAddressNotes == input.AdditionalAddressNotes || + (this.AdditionalAddressNotes != null && + this.AdditionalAddressNotes.Equals(input.AdditionalAddressNotes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RescheduleDate != null) + hashCode = hashCode * 59 + this.RescheduleDate.GetHashCode(); + if (this.AdditionalAddressNotes != null) + hashCode = hashCode * 59 + this.AdditionalAddressNotes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NeedFileJoining.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NeedFileJoining.cs new file mode 100644 index 0000000..60e8d95 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/NeedFileJoining.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false. + /// + [DataContract] + public partial class NeedFileJoining : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public NeedFileJoining() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class NeedFileJoining {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as NeedFileJoining); + } + + /// + /// Returns true if NeedFileJoining instances are equal + /// + /// Instance of NeedFileJoining to be compared + /// Boolean + public bool Equals(NeedFileJoining input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentRequest.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentRequest.cs new file mode 100644 index 0000000..62cb474 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentRequest.cs @@ -0,0 +1,268 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The request schema for the OneClickShipment operation. When the channelType is not Amazon, shipTo is required and when channelType is Amazon shipTo is ignored. + /// + [DataContract] + public partial class OneClickShipmentRequest : IEquatable, IValidatableObject + { + /// + /// The ship to address. + /// + /// The ship to address. + [DataMember(Name="shipTo", EmitDefaultValue=false)] + public Address ShipTo { get; set; } + + /// + /// The ship from address. + /// + /// The ship from address. + [DataMember(Name="shipFrom", EmitDefaultValue=false)] + public Address ShipFrom { get; set; } + + /// + /// The return to address. + /// + /// The return to address. + [DataMember(Name="returnTo", EmitDefaultValue=false)] + public Address ReturnTo { get; set; } + + /// + /// The ship date and time (the requested pickup). This defaults to the current date and time. + /// + /// The ship date and time (the requested pickup). This defaults to the current date and time. + [DataMember(Name="shipDate", EmitDefaultValue=false)] + public DateTime? ShipDate { get; set; } + + /// + /// Gets or Sets Packages + /// + [DataMember(Name="packages", EmitDefaultValue=false)] + public PackageList Packages { get; set; } + + /// + /// Gets or Sets ValueAddedServicesDetails + /// + [DataMember(Name="valueAddedServicesDetails", EmitDefaultValue=false)] + public OneClickShipmentValueAddedServiceDetails ValueAddedServicesDetails { get; set; } + + /// + /// Gets or Sets TaxDetails + /// + [DataMember(Name="taxDetails", EmitDefaultValue=false)] + public TaxDetailList TaxDetails { get; set; } + + /// + /// Gets or Sets ChannelDetails + /// + [DataMember(Name="channelDetails", EmitDefaultValue=false)] + public ChannelDetails ChannelDetails { get; set; } + + /// + /// Gets or Sets LabelSpecifications + /// + [DataMember(Name="labelSpecifications", EmitDefaultValue=false)] + public RequestedDocumentSpecification LabelSpecifications { get; set; } + + /// + /// Gets or Sets ServiceSelection + /// + [DataMember(Name="serviceSelection", EmitDefaultValue=false)] + public ServiceSelection ServiceSelection { get; set; } + + /// + /// Optional field for shipper instruction. + /// + /// Optional field for shipper instruction. + [DataMember(Name="shipperInstruction", EmitDefaultValue=false)] + public ShipperInstruction ShipperInstruction { get; set; } + + /// + /// Gets or Sets DestinationAccessPointDetails + /// + [DataMember(Name="destinationAccessPointDetails", EmitDefaultValue=false)] + public AccessPointDetails DestinationAccessPointDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneClickShipmentRequest {\n"); + sb.Append(" ShipTo: ").Append(ShipTo).Append("\n"); + sb.Append(" ShipFrom: ").Append(ShipFrom).Append("\n"); + sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); + sb.Append(" ShipDate: ").Append(ShipDate).Append("\n"); + sb.Append(" Packages: ").Append(Packages).Append("\n"); + sb.Append(" ValueAddedServicesDetails: ").Append(ValueAddedServicesDetails).Append("\n"); + sb.Append(" TaxDetails: ").Append(TaxDetails).Append("\n"); + sb.Append(" ChannelDetails: ").Append(ChannelDetails).Append("\n"); + sb.Append(" LabelSpecifications: ").Append(LabelSpecifications).Append("\n"); + sb.Append(" ServiceSelection: ").Append(ServiceSelection).Append("\n"); + sb.Append(" ShipperInstruction: ").Append(ShipperInstruction).Append("\n"); + sb.Append(" DestinationAccessPointDetails: ").Append(DestinationAccessPointDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneClickShipmentRequest); + } + + /// + /// Returns true if OneClickShipmentRequest instances are equal + /// + /// Instance of OneClickShipmentRequest to be compared + /// Boolean + public bool Equals(OneClickShipmentRequest input) + { + if (input == null) + return false; + + return + ( + this.ShipTo == input.ShipTo || + (this.ShipTo != null && + this.ShipTo.Equals(input.ShipTo)) + ) && + ( + this.ShipFrom == input.ShipFrom || + (this.ShipFrom != null && + this.ShipFrom.Equals(input.ShipFrom)) + ) && + ( + this.ReturnTo == input.ReturnTo || + (this.ReturnTo != null && + this.ReturnTo.Equals(input.ReturnTo)) + ) && + ( + this.ShipDate == input.ShipDate || + (this.ShipDate != null && + this.ShipDate.Equals(input.ShipDate)) + ) && + ( + this.Packages == input.Packages || + (this.Packages != null && + this.Packages.Equals(input.Packages)) + ) && + ( + this.ValueAddedServicesDetails == input.ValueAddedServicesDetails || + (this.ValueAddedServicesDetails != null && + this.ValueAddedServicesDetails.Equals(input.ValueAddedServicesDetails)) + ) && + ( + this.TaxDetails == input.TaxDetails || + (this.TaxDetails != null && + this.TaxDetails.Equals(input.TaxDetails)) + ) && + ( + this.ChannelDetails == input.ChannelDetails || + (this.ChannelDetails != null && + this.ChannelDetails.Equals(input.ChannelDetails)) + ) && + ( + this.LabelSpecifications == input.LabelSpecifications || + (this.LabelSpecifications != null && + this.LabelSpecifications.Equals(input.LabelSpecifications)) + ) && + ( + this.ServiceSelection == input.ServiceSelection || + (this.ServiceSelection != null && + this.ServiceSelection.Equals(input.ServiceSelection)) + ) && + ( + this.ShipperInstruction == input.ShipperInstruction || + (this.ShipperInstruction != null && + this.ShipperInstruction.Equals(input.ShipperInstruction)) + ) && + ( + this.DestinationAccessPointDetails == input.DestinationAccessPointDetails || + (this.DestinationAccessPointDetails != null && + this.DestinationAccessPointDetails.Equals(input.DestinationAccessPointDetails)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipTo != null) + hashCode = hashCode * 59 + this.ShipTo.GetHashCode(); + if (this.ShipFrom != null) + hashCode = hashCode * 59 + this.ShipFrom.GetHashCode(); + if (this.ReturnTo != null) + hashCode = hashCode * 59 + this.ReturnTo.GetHashCode(); + if (this.ShipDate != null) + hashCode = hashCode * 59 + this.ShipDate.GetHashCode(); + if (this.Packages != null) + hashCode = hashCode * 59 + this.Packages.GetHashCode(); + if (this.ValueAddedServicesDetails != null) + hashCode = hashCode * 59 + this.ValueAddedServicesDetails.GetHashCode(); + if (this.TaxDetails != null) + hashCode = hashCode * 59 + this.TaxDetails.GetHashCode(); + if (this.ChannelDetails != null) + hashCode = hashCode * 59 + this.ChannelDetails.GetHashCode(); + if (this.LabelSpecifications != null) + hashCode = hashCode * 59 + this.LabelSpecifications.GetHashCode(); + if (this.ServiceSelection != null) + hashCode = hashCode * 59 + this.ServiceSelection.GetHashCode(); + if (this.ShipperInstruction != null) + hashCode = hashCode * 59 + this.ShipperInstruction.GetHashCode(); + if (this.DestinationAccessPointDetails != null) + hashCode = hashCode * 59 + this.DestinationAccessPointDetails.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResponse.cs new file mode 100644 index 0000000..7c7aeec --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResponse.cs @@ -0,0 +1,108 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the OneClickShipment operation. + /// + [DataContract] + public partial class OneClickShipmentResponse : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Payload + /// + [DataMember(Name = "payload", EmitDefaultValue = false)] + public OneClickShipmentResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneClickShipmentResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneClickShipmentResponse); + } + + /// + /// Returns true if OneClickShipmentResponse instances are equal + /// + /// Instance of OneClickShipmentResponse to be compared + /// Boolean + public bool Equals(OneClickShipmentResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResult.cs new file mode 100644 index 0000000..85aeb19 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentResult.cs @@ -0,0 +1,179 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the OneClickShipment API. + /// + [DataContract] + public partial class OneClickShipmentResult : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ShipmentId + /// + [DataMember(Name="shipmentId", EmitDefaultValue=false)] + public string ShipmentId { get; set; } + + /// + /// Gets or Sets PackageDocumentDetails + /// + [DataMember(Name="packageDocumentDetails", EmitDefaultValue=false)] + public PackageDocumentDetailList PackageDocumentDetails { get; set; } + + /// + /// Gets or Sets Promise + /// + [DataMember(Name="promise", EmitDefaultValue=false)] + public Promise Promise { get; set; } + + /// + /// Gets or Sets Carrier + /// + [DataMember(Name="carrier", EmitDefaultValue=false)] + public Carrier Carrier { get; set; } + + /// + /// Gets or Sets Service + /// + [DataMember(Name="service", EmitDefaultValue=false)] + public Service Service { get; set; } + + /// + /// Gets or Sets TotalCharge + /// + [DataMember(Name="totalCharge", EmitDefaultValue=false)] + public Currency TotalCharge { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneClickShipmentResult {\n"); + sb.Append(" ShipmentId: ").Append(ShipmentId).Append("\n"); + sb.Append(" PackageDocumentDetails: ").Append(PackageDocumentDetails).Append("\n"); + sb.Append(" Promise: ").Append(Promise).Append("\n"); + sb.Append(" Carrier: ").Append(Carrier).Append("\n"); + sb.Append(" Service: ").Append(Service).Append("\n"); + sb.Append(" TotalCharge: ").Append(TotalCharge).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneClickShipmentResult); + } + + /// + /// Returns true if OneClickShipmentResult instances are equal + /// + /// Instance of OneClickShipmentResult to be compared + /// Boolean + public bool Equals(OneClickShipmentResult input) + { + if (input == null) + return false; + + return + ( + this.ShipmentId == input.ShipmentId || + (this.ShipmentId != null && + this.ShipmentId.Equals(input.ShipmentId)) + ) && + ( + this.PackageDocumentDetails == input.PackageDocumentDetails || + (this.PackageDocumentDetails != null && + this.PackageDocumentDetails.Equals(input.PackageDocumentDetails)) + ) && + ( + this.Promise == input.Promise || + (this.Promise != null && + this.Promise.Equals(input.Promise)) + ) && + ( + this.Carrier == input.Carrier || + (this.Carrier != null && + this.Carrier.Equals(input.Carrier)) + ) && + ( + this.Service == input.Service || + (this.Service != null && + this.Service.Equals(input.Service)) + ) && + ( + this.TotalCharge == input.TotalCharge || + (this.TotalCharge != null && + this.TotalCharge.Equals(input.TotalCharge)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipmentId != null) + hashCode = hashCode * 59 + this.ShipmentId.GetHashCode(); + if (this.PackageDocumentDetails != null) + hashCode = hashCode * 59 + this.PackageDocumentDetails.GetHashCode(); + if (this.Promise != null) + hashCode = hashCode * 59 + this.Promise.GetHashCode(); + if (this.Carrier != null) + hashCode = hashCode * 59 + this.Carrier.GetHashCode(); + if (this.Service != null) + hashCode = hashCode * 59 + this.Service.GetHashCode(); + if (this.TotalCharge != null) + hashCode = hashCode * 59 + this.TotalCharge.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedService.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedService.cs new file mode 100644 index 0000000..31240e6 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedService.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A value-added service to be applied to a shipping service purchase. + /// + [DataContract] + public partial class OneClickShipmentValueAddedService : IEquatable, IValidatableObject + { + /// + /// The identifier of the selected value-added service. + /// + /// The identifier of the selected value-added service. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// Gets or Sets Amount + /// + [DataMember(Name="amount", EmitDefaultValue=false)] + public Currency Amount { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneClickShipmentValueAddedService {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneClickShipmentValueAddedService); + } + + /// + /// Returns true if OneClickShipmentValueAddedService instances are equal + /// + /// Instance of OneClickShipmentValueAddedService to be compared + /// Boolean + public bool Equals(OneClickShipmentValueAddedService input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Amount == input.Amount || + (this.Amount != null && + this.Amount.Equals(input.Amount)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Amount != null) + hashCode = hashCode * 59 + this.Amount.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedServiceDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedServiceDetails.cs new file mode 100644 index 0000000..82185ca --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OneClickShipmentValueAddedServiceDetails.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The value-added services to be added to a shipping service purchase. + /// + [DataContract] + public partial class OneClickShipmentValueAddedServiceDetails : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public OneClickShipmentValueAddedServiceDetails() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneClickShipmentValueAddedServiceDetails {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneClickShipmentValueAddedServiceDetails); + } + + /// + /// Returns true if OneClickShipmentValueAddedServiceDetails instances are equal + /// + /// Instance of OneClickShipmentValueAddedServiceDetails to be compared + /// Boolean + public bool Equals(OneClickShipmentValueAddedServiceDetails input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OperatingHours.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OperatingHours.cs new file mode 100644 index 0000000..81d6ced --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/OperatingHours.cs @@ -0,0 +1,150 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The hours in which the access point shall remain operational + /// + [DataContract] + public partial class OperatingHours : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// closingTime. + /// openingTime. + /// midDayClosures. + public OperatingHours(TimeOfDay closingTime = default(TimeOfDay), TimeOfDay openingTime = default(TimeOfDay), List midDayClosures = default(List)) + { + this.ClosingTime = closingTime; + this.OpeningTime = openingTime; + this.MidDayClosures = midDayClosures; + } + + /// + /// Gets or Sets ClosingTime + /// + [DataMember(Name="closingTime", EmitDefaultValue=false)] + public TimeOfDay ClosingTime { get; set; } + + /// + /// Gets or Sets OpeningTime + /// + [DataMember(Name="openingTime", EmitDefaultValue=false)] + public TimeOfDay OpeningTime { get; set; } + + /// + /// Gets or Sets MidDayClosures + /// + [DataMember(Name="midDayClosures", EmitDefaultValue=false)] + public List MidDayClosures { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OperatingHours {\n"); + sb.Append(" ClosingTime: ").Append(ClosingTime).Append("\n"); + sb.Append(" OpeningTime: ").Append(OpeningTime).Append("\n"); + sb.Append(" MidDayClosures: ").Append(MidDayClosures).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OperatingHours); + } + + /// + /// Returns true if OperatingHours instances are equal + /// + /// Instance of OperatingHours to be compared + /// Boolean + public bool Equals(OperatingHours input) + { + if (input == null) + return false; + + return + ( + this.ClosingTime == input.ClosingTime || + (this.ClosingTime != null && + this.ClosingTime.Equals(input.ClosingTime)) + ) && + ( + this.OpeningTime == input.OpeningTime || + (this.OpeningTime != null && + this.OpeningTime.Equals(input.OpeningTime)) + ) && + ( + this.MidDayClosures == input.MidDayClosures || + this.MidDayClosures != null && + this.MidDayClosures.SequenceEqual(input.MidDayClosures) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ClosingTime != null) + hashCode = hashCode * 59 + this.ClosingTime.GetHashCode(); + if (this.OpeningTime != null) + hashCode = hashCode * 59 + this.OpeningTime.GetHashCode(); + if (this.MidDayClosures != null) + hashCode = hashCode * 59 + this.MidDayClosures.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Package.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Package.cs new file mode 100644 index 0000000..ba1befd --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Package.cs @@ -0,0 +1,209 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A package to be shipped through a shipping service offering. + /// + [DataContract] + public partial class Package : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Dimensions + /// + [DataMember(Name="dimensions", EmitDefaultValue=false)] + public Dimensions Dimensions { get; set; } + + /// + /// Gets or Sets Weight + /// + [DataMember(Name="weight", EmitDefaultValue=false)] + public Weight Weight { get; set; } + + /// + /// Gets or Sets InsuredValue + /// + [DataMember(Name="insuredValue", EmitDefaultValue=false)] + public Currency InsuredValue { get; set; } + + /// + /// When true, the package contains hazardous materials. Defaults to false. + /// + /// When true, the package contains hazardous materials. Defaults to false. + [DataMember(Name="isHazmat", EmitDefaultValue=false)] + public bool? IsHazmat { get; set; } + + /// + /// The seller name displayed on the label. + /// + /// The seller name displayed on the label. + [DataMember(Name="sellerDisplayName", EmitDefaultValue=false)] + public string SellerDisplayName { get; set; } + + /// + /// Gets or Sets Charges + /// + [DataMember(Name="charges", EmitDefaultValue=false)] + public ChargeList Charges { get; set; } + + /// + /// Gets or Sets PackageClientReferenceId + /// + [DataMember(Name="packageClientReferenceId", EmitDefaultValue=false)] + public string PackageClientReferenceId { get; set; } + + /// + /// Gets or Sets Items + /// + [DataMember(Name="items", EmitDefaultValue=false)] + public ItemList Items { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Package {\n"); + sb.Append(" Dimensions: ").Append(Dimensions).Append("\n"); + sb.Append(" Weight: ").Append(Weight).Append("\n"); + sb.Append(" InsuredValue: ").Append(InsuredValue).Append("\n"); + sb.Append(" IsHazmat: ").Append(IsHazmat).Append("\n"); + sb.Append(" SellerDisplayName: ").Append(SellerDisplayName).Append("\n"); + sb.Append(" Charges: ").Append(Charges).Append("\n"); + sb.Append(" PackageClientReferenceId: ").Append(PackageClientReferenceId).Append("\n"); + sb.Append(" Items: ").Append(Items).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Package); + } + + /// + /// Returns true if Package instances are equal + /// + /// Instance of Package to be compared + /// Boolean + public bool Equals(Package input) + { + if (input == null) + return false; + + return + ( + this.Dimensions == input.Dimensions || + (this.Dimensions != null && + this.Dimensions.Equals(input.Dimensions)) + ) && + ( + this.Weight == input.Weight || + (this.Weight != null && + this.Weight.Equals(input.Weight)) + ) && + ( + this.InsuredValue == input.InsuredValue || + (this.InsuredValue != null && + this.InsuredValue.Equals(input.InsuredValue)) + ) && + ( + this.IsHazmat == input.IsHazmat || + (this.IsHazmat != null && + this.IsHazmat.Equals(input.IsHazmat)) + ) && + ( + this.SellerDisplayName == input.SellerDisplayName || + (this.SellerDisplayName != null && + this.SellerDisplayName.Equals(input.SellerDisplayName)) + ) && + ( + this.Charges == input.Charges || + (this.Charges != null && + this.Charges.Equals(input.Charges)) + ) && + ( + this.PackageClientReferenceId == input.PackageClientReferenceId || + (this.PackageClientReferenceId != null && + this.PackageClientReferenceId.Equals(input.PackageClientReferenceId)) + ) && + ( + this.Items == input.Items || + (this.Items != null && + this.Items.Equals(input.Items)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Dimensions != null) + hashCode = hashCode * 59 + this.Dimensions.GetHashCode(); + if (this.Weight != null) + hashCode = hashCode * 59 + this.Weight.GetHashCode(); + if (this.InsuredValue != null) + hashCode = hashCode * 59 + this.InsuredValue.GetHashCode(); + if (this.IsHazmat != null) + hashCode = hashCode * 59 + this.IsHazmat.GetHashCode(); + if (this.SellerDisplayName != null) + hashCode = hashCode * 59 + this.SellerDisplayName.GetHashCode(); + if (this.Charges != null) + hashCode = hashCode * 59 + this.Charges.GetHashCode(); + if (this.PackageClientReferenceId != null) + hashCode = hashCode * 59 + this.PackageClientReferenceId.GetHashCode(); + if (this.Items != null) + hashCode = hashCode * 59 + this.Items.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageClientReferenceId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageClientReferenceId.cs new file mode 100644 index 0000000..6cc72d7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageClientReferenceId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation. + /// + [DataContract] + public partial class PackageClientReferenceId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PackageClientReferenceId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageClientReferenceId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageClientReferenceId); + } + + /// + /// Returns true if PackageClientReferenceId instances are equal + /// + /// Instance of PackageClientReferenceId to be compared + /// Boolean + public bool Equals(PackageClientReferenceId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocument.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocument.cs new file mode 100644 index 0000000..f968d79 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocument.cs @@ -0,0 +1,136 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A document related to a package. + /// + [DataContract] + public partial class PackageDocument : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Type + /// + [DataMember(Name="type", EmitDefaultValue=false)] + public DocumentType Type { get; set; } + /// + /// Gets or Sets Format + /// + [DataMember(Name="format", EmitDefaultValue=false)] + public DocumentFormat Format { get; set; } + + /// + /// Gets or Sets Contents + /// + [DataMember(Name="contents", EmitDefaultValue=false)] + public string Contents { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageDocument {\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Contents: ").Append(Contents).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageDocument); + } + + /// + /// Returns true if PackageDocument instances are equal + /// + /// Instance of PackageDocument to be compared + /// Boolean + public bool Equals(PackageDocument input) + { + if (input == null) + return false; + + return + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ) && + ( + this.Format == input.Format || + (this.Format != null && + this.Format.Equals(input.Format)) + ) && + ( + this.Contents == input.Contents || + (this.Contents != null && + this.Contents.Equals(input.Contents)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + if (this.Format != null) + hashCode = hashCode * 59 + this.Format.GetHashCode(); + if (this.Contents != null) + hashCode = hashCode * 59 + this.Contents.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetail.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetail.cs new file mode 100644 index 0000000..fce9f3f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetail.cs @@ -0,0 +1,137 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The post-purchase details of a package that will be shipped using a shipping service. + /// + [DataContract] + public partial class PackageDocumentDetail : IEquatable, IValidatableObject + { + /// + /// Gets or Sets PackageClientReferenceId + /// + [DataMember(Name = "packageClientReferenceId", EmitDefaultValue = false)] + public string PackageClientReferenceId { get; set; } + + /// + /// Gets or Sets PackageDocuments + /// + [DataMember(Name = "packageDocuments", EmitDefaultValue = false)] + public PackageDocumentList PackageDocuments { get; set; } + + /// + /// Gets or Sets TrackingId + /// + [DataMember(Name = "trackingId", EmitDefaultValue = false)] + public string TrackingId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageDocumentDetail {\n"); + sb.Append(" PackageClientReferenceId: ").Append(PackageClientReferenceId).Append("\n"); + sb.Append(" PackageDocuments: ").Append(PackageDocuments).Append("\n"); + sb.Append(" TrackingId: ").Append(TrackingId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageDocumentDetail); + } + + /// + /// Returns true if PackageDocumentDetail instances are equal + /// + /// Instance of PackageDocumentDetail to be compared + /// Boolean + public bool Equals(PackageDocumentDetail input) + { + if (input == null) + return false; + + return + ( + this.PackageClientReferenceId == input.PackageClientReferenceId || + (this.PackageClientReferenceId != null && + this.PackageClientReferenceId.Equals(input.PackageClientReferenceId)) + ) && + ( + this.PackageDocuments == input.PackageDocuments || + (this.PackageDocuments != null && + this.PackageDocuments.Equals(input.PackageDocuments)) + ) && + ( + this.TrackingId == input.TrackingId || + (this.TrackingId != null && + this.TrackingId.Equals(input.TrackingId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PackageClientReferenceId != null) + hashCode = hashCode * 59 + this.PackageClientReferenceId.GetHashCode(); + if (this.PackageDocuments != null) + hashCode = hashCode * 59 + this.PackageDocuments.GetHashCode(); + if (this.TrackingId != null) + hashCode = hashCode * 59 + this.TrackingId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetailList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetailList.cs new file mode 100644 index 0000000..4372a67 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentDetailList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of post-purchase details about a package that will be shipped using a shipping service. + /// + [DataContract] + public partial class PackageDocumentDetailList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PackageDocumentDetailList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageDocumentDetailList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageDocumentDetailList); + } + + /// + /// Returns true if PackageDocumentDetailList instances are equal + /// + /// Instance of PackageDocumentDetailList to be compared + /// Boolean + public bool Equals(PackageDocumentDetailList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentList.cs new file mode 100644 index 0000000..9e7453c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageDocumentList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of documents related to a package. + /// + [DataContract] + public partial class PackageDocumentList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PackageDocumentList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageDocumentList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageDocumentList); + } + + /// + /// Returns true if PackageDocumentList instances are equal + /// + /// Instance of PackageDocumentList to be compared + /// Boolean + public bool Equals(PackageDocumentList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageList.cs new file mode 100644 index 0000000..d5c9ee8 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PackageList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of packages to be shipped through a shipping service offering. + /// + [DataContract] + public partial class PackageList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PackageList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PackageList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PackageList); + } + + /// + /// Returns true if PackageList instances are equal + /// + /// Instance of PackageList to be compared + /// Boolean + public bool Equals(PackageList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PageLayout.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PageLayout.cs new file mode 100644 index 0000000..8954a9b --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PageLayout.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Indicates the position of the label on the paper. Should be the same value as returned in getRates response. + /// + [DataContract] + public partial class PageLayout : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PageLayout() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PageLayout {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PageLayout); + } + + /// + /// Returns true if PageLayout instances are equal + /// + /// Instance of PageLayout to be compared + /// Boolean + public bool Equals(PageLayout input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PaymentType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PaymentType.cs new file mode 100644 index 0000000..b460f45 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PaymentType.cs @@ -0,0 +1,40 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Payment type of the purchase. + /// + /// Payment type of the purchase. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum PaymentType + { + + /// + /// Enum THROUGHAMAZON for value: PAY_THROUGH_AMAZON + /// + [EnumMember(Value = "PAY_THROUGH_AMAZON")] + THROUGHAMAZON = 1, + + /// + /// Enum DIRECTTOCARRIER for value: PAY_DIRECT_TO_CARRIER + /// + [EnumMember(Value = "PAY_DIRECT_TO_CARRIER")] + DIRECTTOCARRIER = 2 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PostalCode.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PostalCode.cs new file mode 100644 index 0000000..100698c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PostalCode.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. + /// + [DataContract] + public partial class PostalCode : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PostalCode() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PostalCode {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PostalCode); + } + + /// + /// Returns true if PostalCode instances are equal + /// + /// Instance of PostalCode to be compared + /// Boolean + public bool Equals(PostalCode input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOption.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOption.cs new file mode 100644 index 0000000..53854f4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOption.cs @@ -0,0 +1,156 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The format options available for a label. + /// + [DataContract] + public partial class PrintOption : IEquatable, IValidatableObject + { + /// + /// A list of the supported DPI options for a document. + /// + /// A list of the supported DPI options for a document. + [DataMember(Name="supportedDPIs", EmitDefaultValue=false)] + public List SupportedDPIs { get; set; } + + /// + /// A list of the supported page layout options for a document. + /// + /// A list of the supported page layout options for a document. + [DataMember(Name="supportedPageLayouts", EmitDefaultValue=false)] + public List SupportedPageLayouts { get; set; } + + /// + /// A list of the supported needFileJoining boolean values for a document. + /// + /// A list of the supported needFileJoining boolean values for a document. + [DataMember(Name="supportedFileJoiningOptions", EmitDefaultValue=false)] + public List SupportedFileJoiningOptions { get; set; } + + /// + /// A list of the supported documented details. + /// + /// A list of the supported documented details. + [DataMember(Name="supportedDocumentDetails", EmitDefaultValue=false)] + public List SupportedDocumentDetails { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrintOption {\n"); + sb.Append(" SupportedDPIs: ").Append(SupportedDPIs).Append("\n"); + sb.Append(" SupportedPageLayouts: ").Append(SupportedPageLayouts).Append("\n"); + sb.Append(" SupportedFileJoiningOptions: ").Append(SupportedFileJoiningOptions).Append("\n"); + sb.Append(" SupportedDocumentDetails: ").Append(SupportedDocumentDetails).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrintOption); + } + + /// + /// Returns true if PrintOption instances are equal + /// + /// Instance of PrintOption to be compared + /// Boolean + public bool Equals(PrintOption input) + { + if (input == null) + return false; + + return + ( + this.SupportedDPIs == input.SupportedDPIs || + this.SupportedDPIs != null && + this.SupportedDPIs.SequenceEqual(input.SupportedDPIs) + ) && + ( + this.SupportedPageLayouts == input.SupportedPageLayouts || + this.SupportedPageLayouts != null && + this.SupportedPageLayouts.SequenceEqual(input.SupportedPageLayouts) + ) && + ( + this.SupportedFileJoiningOptions == input.SupportedFileJoiningOptions || + this.SupportedFileJoiningOptions != null && + this.SupportedFileJoiningOptions.SequenceEqual(input.SupportedFileJoiningOptions) + ) && + ( + this.SupportedDocumentDetails == input.SupportedDocumentDetails || + this.SupportedDocumentDetails != null && + this.SupportedDocumentDetails.SequenceEqual(input.SupportedDocumentDetails) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SupportedDPIs != null) + hashCode = hashCode * 59 + this.SupportedDPIs.GetHashCode(); + if (this.SupportedPageLayouts != null) + hashCode = hashCode * 59 + this.SupportedPageLayouts.GetHashCode(); + if (this.SupportedFileJoiningOptions != null) + hashCode = hashCode * 59 + this.SupportedFileJoiningOptions.GetHashCode(); + if (this.SupportedDocumentDetails != null) + hashCode = hashCode * 59 + this.SupportedDocumentDetails.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOptionList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOptionList.cs new file mode 100644 index 0000000..7f33322 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PrintOptionList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of the format options for a label. + /// + [DataContract] + public partial class PrintOptionList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public PrintOptionList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PrintOptionList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PrintOptionList); + } + + /// + /// Returns true if PrintOptionList instances are equal + /// + /// Instance of PrintOptionList to be compared + /// Boolean + public bool Equals(PrintOptionList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Promise.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Promise.cs new file mode 100644 index 0000000..29bf68e --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Promise.cs @@ -0,0 +1,122 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The time windows promised for pickup and delivery events. + /// + [DataContract] + public partial class Promise : IEquatable, IValidatableObject + { + /// + /// Gets or Sets DeliveryWindow + /// + [DataMember(Name="deliveryWindow", EmitDefaultValue=false)] + public TimeWindow DeliveryWindow { get; set; } + + /// + /// Gets or Sets PickupWindow + /// + [DataMember(Name="pickupWindow", EmitDefaultValue=false)] + public TimeWindow PickupWindow { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Promise {\n"); + sb.Append(" DeliveryWindow: ").Append(DeliveryWindow).Append("\n"); + sb.Append(" PickupWindow: ").Append(PickupWindow).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Promise); + } + + /// + /// Returns true if Promise instances are equal + /// + /// Instance of Promise to be compared + /// Boolean + public bool Equals(Promise input) + { + if (input == null) + return false; + + return + ( + this.DeliveryWindow == input.DeliveryWindow || + (this.DeliveryWindow != null && + this.DeliveryWindow.Equals(input.DeliveryWindow)) + ) && + ( + this.PickupWindow == input.PickupWindow || + (this.PickupWindow != null && + this.PickupWindow.Equals(input.PickupWindow)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryWindow != null) + hashCode = hashCode * 59 + this.DeliveryWindow.GetHashCode(); + if (this.PickupWindow != null) + hashCode = hashCode * 59 + this.PickupWindow.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentRequest.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentRequest.cs new file mode 100644 index 0000000..93554ae --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentRequest.cs @@ -0,0 +1,167 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The request schema for the purchaseShipment operation. + /// + [DataContract] + public partial class PurchaseShipmentRequest : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RequestToken + /// + [DataMember(Name = "requestToken", EmitDefaultValue = false)] + public string RequestToken { get; set; } + + /// + /// Gets or Sets RateId + /// + [DataMember(Name = "rateId", EmitDefaultValue = false)] + public string RateId { get; set; } + + /// + /// Gets or Sets RequestedDocumentSpecification + /// + [DataMember(Name = "requestedDocumentSpecification", EmitDefaultValue = false)] + public RequestedDocumentSpecification RequestedDocumentSpecification { get; set; } + + /// + /// Gets or Sets RequestedValueAddedServices + /// + [DataMember(Name = "requestedValueAddedServices", EmitDefaultValue = false)] + public RequestedValueAddedServiceList RequestedValueAddedServices { get; set; } + + /// + /// The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation. Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation. + /// + /// The additional inputs required to purchase a shipping offering, in JSON format. The JSON provided here must adhere to the JSON schema that is returned in the response to the getAdditionalInputs operation. Additional inputs are only required when indicated by the requiresAdditionalInputs property in the response to the getRates operation. + [DataMember(Name = "additionalInputs", EmitDefaultValue = false)] + public Dictionary AdditionalInputs { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PurchaseShipmentRequest {\n"); + sb.Append(" RequestToken: ").Append(RequestToken).Append("\n"); + sb.Append(" RateId: ").Append(RateId).Append("\n"); + sb.Append(" RequestedDocumentSpecification: ").Append(RequestedDocumentSpecification).Append("\n"); + sb.Append(" RequestedValueAddedServices: ").Append(RequestedValueAddedServices).Append("\n"); + sb.Append(" AdditionalInputs: ").Append(AdditionalInputs).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PurchaseShipmentRequest); + } + + /// + /// Returns true if PurchaseShipmentRequest instances are equal + /// + /// Instance of PurchaseShipmentRequest to be compared + /// Boolean + public bool Equals(PurchaseShipmentRequest input) + { + if (input == null) + return false; + + return + ( + this.RequestToken == input.RequestToken || + (this.RequestToken != null && + this.RequestToken.Equals(input.RequestToken)) + ) && + ( + this.RateId == input.RateId || + (this.RateId != null && + this.RateId.Equals(input.RateId)) + ) && + ( + this.RequestedDocumentSpecification == input.RequestedDocumentSpecification || + (this.RequestedDocumentSpecification != null && + this.RequestedDocumentSpecification.Equals(input.RequestedDocumentSpecification)) + ) && + ( + this.RequestedValueAddedServices == input.RequestedValueAddedServices || + (this.RequestedValueAddedServices != null && + this.RequestedValueAddedServices.Equals(input.RequestedValueAddedServices)) + ) && + ( + this.AdditionalInputs == input.AdditionalInputs || + this.AdditionalInputs != null && + this.AdditionalInputs.SequenceEqual(input.AdditionalInputs) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RequestToken != null) + hashCode = hashCode * 59 + this.RequestToken.GetHashCode(); + if (this.RateId != null) + hashCode = hashCode * 59 + this.RateId.GetHashCode(); + if (this.RequestedDocumentSpecification != null) + hashCode = hashCode * 59 + this.RequestedDocumentSpecification.GetHashCode(); + if (this.RequestedValueAddedServices != null) + hashCode = hashCode * 59 + this.RequestedValueAddedServices.GetHashCode(); + if (this.AdditionalInputs != null) + hashCode = hashCode * 59 + this.AdditionalInputs.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResponse.cs new file mode 100644 index 0000000..3bb1275 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResponse.cs @@ -0,0 +1,108 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The response schema for the purchaseShipment operation. + /// + [DataContract] + public partial class PurchaseShipmentResponse : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Payload + /// + [DataMember(Name = "payload", EmitDefaultValue = false)] + public PurchaseShipmentResult Payload { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PurchaseShipmentResponse {\n"); + sb.Append(" Payload: ").Append(Payload).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PurchaseShipmentResponse); + } + + /// + /// Returns true if PurchaseShipmentResponse instances are equal + /// + /// Instance of PurchaseShipmentResponse to be compared + /// Boolean + public bool Equals(PurchaseShipmentResponse input) + { + if (input == null) + return false; + + return + ( + this.Payload == input.Payload || + (this.Payload != null && + this.Payload.Equals(input.Payload)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Payload != null) + hashCode = hashCode * 59 + this.Payload.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResult.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResult.cs new file mode 100644 index 0000000..4e1831f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/PurchaseShipmentResult.cs @@ -0,0 +1,151 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The payload for the purchaseShipment operation. + /// + [DataContract] + public partial class PurchaseShipmentResult : IEquatable, IValidatableObject + { + /// + /// Gets or Sets ShipmentId + /// + [DataMember(Name = "shipmentId", EmitDefaultValue = false)] + public string ShipmentId { get; set; } + + /// + /// Gets or Sets PackageDocumentDetails + /// + [DataMember(Name = "packageDocumentDetails", EmitDefaultValue = false)] + public PackageDocumentDetailList PackageDocumentDetails { get; set; } + + /// + /// Gets or Sets Promise + /// + [DataMember(Name = "promise", EmitDefaultValue = false)] + public Promise Promise { get; set; } + + /// + /// Gets or Sets Benefits + /// + [DataMember(Name = "benefits", EmitDefaultValue = false)] + public Benefits Benefits { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PurchaseShipmentResult {\n"); + sb.Append(" ShipmentId: ").Append(ShipmentId).Append("\n"); + sb.Append(" PackageDocumentDetails: ").Append(PackageDocumentDetails).Append("\n"); + sb.Append(" Promise: ").Append(Promise).Append("\n"); + sb.Append(" Benefits: ").Append(Benefits).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PurchaseShipmentResult); + } + + /// + /// Returns true if PurchaseShipmentResult instances are equal + /// + /// Instance of PurchaseShipmentResult to be compared + /// Boolean + public bool Equals(PurchaseShipmentResult input) + { + if (input == null) + return false; + + return + ( + this.ShipmentId == input.ShipmentId || + (this.ShipmentId != null && + this.ShipmentId.Equals(input.ShipmentId)) + ) && + ( + this.PackageDocumentDetails == input.PackageDocumentDetails || + (this.PackageDocumentDetails != null && + this.PackageDocumentDetails.Equals(input.PackageDocumentDetails)) + ) && + ( + this.Promise == input.Promise || + (this.Promise != null && + this.Promise.Equals(input.Promise)) + ) && + ( + this.Benefits == input.Benefits || + (this.Benefits != null && + this.Benefits.Equals(input.Benefits)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ShipmentId != null) + hashCode = hashCode * 59 + this.ShipmentId.GetHashCode(); + if (this.PackageDocumentDetails != null) + hashCode = hashCode * 59 + this.PackageDocumentDetails.GetHashCode(); + if (this.Promise != null) + hashCode = hashCode * 59 + this.Promise.GetHashCode(); + if (this.Benefits != null) + hashCode = hashCode * 59 + this.Benefits.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Rate.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Rate.cs new file mode 100644 index 0000000..c7fbc0c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Rate.cs @@ -0,0 +1,293 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The details of a shipping service offering. + /// + [DataContract] + public partial class Rate : IEquatable, IValidatableObject + { + /// + /// Gets or Sets PaymentType + /// + [DataMember(Name="paymentType", EmitDefaultValue=false)] + public PaymentType? PaymentType { get; set; } + + /// + /// Gets or Sets RateId + /// + [DataMember(Name="rateId", EmitDefaultValue=false)] + public string RateId { get; set; } + + /// + /// Gets or Sets CarrierId + /// + [DataMember(Name="carrierId", EmitDefaultValue=false)] + public string CarrierId { get; set; } + + /// + /// Gets or Sets CarrierName + /// + [DataMember(Name="carrierName", EmitDefaultValue=false)] + public string CarrierName { get; set; } + + /// + /// Gets or Sets ServiceId + /// + [DataMember(Name="serviceId", EmitDefaultValue=false)] + public string ServiceId { get; set; } + + /// + /// Gets or Sets ServiceName + /// + [DataMember(Name="serviceName", EmitDefaultValue=false)] + public string ServiceName { get; set; } + + /// + /// Gets or Sets BilledWeight + /// + [DataMember(Name="billedWeight", EmitDefaultValue=false)] + public Weight BilledWeight { get; set; } + + /// + /// Gets or Sets TotalCharge + /// + [DataMember(Name="totalCharge", EmitDefaultValue=false)] + public Currency TotalCharge { get; set; } + + /// + /// Gets or Sets Promise + /// + [DataMember(Name="promise", EmitDefaultValue=false)] + public Promise Promise { get; set; } + + /// + /// Gets or Sets SupportedDocumentSpecifications + /// + [DataMember(Name="supportedDocumentSpecifications", EmitDefaultValue=false)] + public SupportedDocumentSpecificationList SupportedDocumentSpecifications { get; set; } + + /// + /// Gets or Sets AvailableValueAddedServiceGroups + /// + [DataMember(Name="availableValueAddedServiceGroups", EmitDefaultValue=false)] + public AvailableValueAddedServiceGroupList AvailableValueAddedServiceGroups { get; set; } + + /// + /// When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation. + /// + /// When true, indicates that additional inputs are required to purchase this shipment service. You must then call the getAdditionalInputs operation to return the JSON schema to use when providing the additional inputs to the purchaseShipment operation. + [DataMember(Name="requiresAdditionalInputs", EmitDefaultValue=false)] + public bool? RequiresAdditionalInputs { get; set; } + + /// + /// Gets or Sets RateItemList + /// + [DataMember(Name="rateItemList", EmitDefaultValue=false)] + public RateItemList RateItemList { get; set; } + + + /// + /// Gets or Sets Benefits + /// + [DataMember(Name="benefits", EmitDefaultValue=false)] + public Benefits Benefits { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Rate {\n"); + sb.Append(" RateId: ").Append(RateId).Append("\n"); + sb.Append(" CarrierId: ").Append(CarrierId).Append("\n"); + sb.Append(" CarrierName: ").Append(CarrierName).Append("\n"); + sb.Append(" ServiceId: ").Append(ServiceId).Append("\n"); + sb.Append(" ServiceName: ").Append(ServiceName).Append("\n"); + sb.Append(" BilledWeight: ").Append(BilledWeight).Append("\n"); + sb.Append(" TotalCharge: ").Append(TotalCharge).Append("\n"); + sb.Append(" Promise: ").Append(Promise).Append("\n"); + sb.Append(" SupportedDocumentSpecifications: ").Append(SupportedDocumentSpecifications).Append("\n"); + sb.Append(" AvailableValueAddedServiceGroups: ").Append(AvailableValueAddedServiceGroups).Append("\n"); + sb.Append(" RequiresAdditionalInputs: ").Append(RequiresAdditionalInputs).Append("\n"); + sb.Append(" RateItemList: ").Append(RateItemList).Append("\n"); + sb.Append(" PaymentType: ").Append(PaymentType).Append("\n"); + sb.Append(" Benefits: ").Append(Benefits).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Rate); + } + + /// + /// Returns true if Rate instances are equal + /// + /// Instance of Rate to be compared + /// Boolean + public bool Equals(Rate input) + { + if (input == null) + return false; + + return + ( + this.RateId == input.RateId || + (this.RateId != null && + this.RateId.Equals(input.RateId)) + ) && + ( + this.CarrierId == input.CarrierId || + (this.CarrierId != null && + this.CarrierId.Equals(input.CarrierId)) + ) && + ( + this.CarrierName == input.CarrierName || + (this.CarrierName != null && + this.CarrierName.Equals(input.CarrierName)) + ) && + ( + this.ServiceId == input.ServiceId || + (this.ServiceId != null && + this.ServiceId.Equals(input.ServiceId)) + ) && + ( + this.ServiceName == input.ServiceName || + (this.ServiceName != null && + this.ServiceName.Equals(input.ServiceName)) + ) && + ( + this.BilledWeight == input.BilledWeight || + (this.BilledWeight != null && + this.BilledWeight.Equals(input.BilledWeight)) + ) && + ( + this.TotalCharge == input.TotalCharge || + (this.TotalCharge != null && + this.TotalCharge.Equals(input.TotalCharge)) + ) && + ( + this.Promise == input.Promise || + (this.Promise != null && + this.Promise.Equals(input.Promise)) + ) && + ( + this.SupportedDocumentSpecifications == input.SupportedDocumentSpecifications || + (this.SupportedDocumentSpecifications != null && + this.SupportedDocumentSpecifications.Equals(input.SupportedDocumentSpecifications)) + ) && + ( + this.AvailableValueAddedServiceGroups == input.AvailableValueAddedServiceGroups || + (this.AvailableValueAddedServiceGroups != null && + this.AvailableValueAddedServiceGroups.Equals(input.AvailableValueAddedServiceGroups)) + ) && + ( + this.RequiresAdditionalInputs == input.RequiresAdditionalInputs || + (this.RequiresAdditionalInputs != null && + this.RequiresAdditionalInputs.Equals(input.RequiresAdditionalInputs)) + ) && + ( + this.RateItemList == input.RateItemList || + (this.RateItemList != null && + this.RateItemList.Equals(input.RateItemList)) + ) && + ( + this.PaymentType == input.PaymentType || + (this.PaymentType != null && + this.PaymentType.Equals(input.PaymentType)) + ) && + ( + this.Benefits == input.Benefits || + (this.Benefits != null && + this.Benefits.Equals(input.Benefits)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RateId != null) + hashCode = hashCode * 59 + this.RateId.GetHashCode(); + if (this.CarrierId != null) + hashCode = hashCode * 59 + this.CarrierId.GetHashCode(); + if (this.CarrierName != null) + hashCode = hashCode * 59 + this.CarrierName.GetHashCode(); + if (this.ServiceId != null) + hashCode = hashCode * 59 + this.ServiceId.GetHashCode(); + if (this.ServiceName != null) + hashCode = hashCode * 59 + this.ServiceName.GetHashCode(); + if (this.BilledWeight != null) + hashCode = hashCode * 59 + this.BilledWeight.GetHashCode(); + if (this.TotalCharge != null) + hashCode = hashCode * 59 + this.TotalCharge.GetHashCode(); + if (this.Promise != null) + hashCode = hashCode * 59 + this.Promise.GetHashCode(); + if (this.SupportedDocumentSpecifications != null) + hashCode = hashCode * 59 + this.SupportedDocumentSpecifications.GetHashCode(); + if (this.AvailableValueAddedServiceGroups != null) + hashCode = hashCode * 59 + this.AvailableValueAddedServiceGroups.GetHashCode(); + if (this.RequiresAdditionalInputs != null) + hashCode = hashCode * 59 + this.RequiresAdditionalInputs.GetHashCode(); + if (this.RateItemList != null) + hashCode = hashCode * 59 + this.RateItemList.GetHashCode(); + if (this.PaymentType != null) + hashCode = hashCode * 59 + this.PaymentType.GetHashCode(); + if (this.Benefits != null) + hashCode = hashCode * 59 + this.Benefits.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateId.cs new file mode 100644 index 0000000..63930a9 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// An identifier for the rate (shipment offering) provided by a shipping service provider. + /// + [DataContract] + public partial class RateId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public RateId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RateId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RateId); + } + + /// + /// Returns true if RateId instances are equal + /// + /// Instance of RateId to be compared + /// Boolean + public bool Equals(RateId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItem.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItem.cs new file mode 100644 index 0000000..99e29e1 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItem.cs @@ -0,0 +1,150 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Rate Item for shipping (base cost, transaction fee, confirmation, insurance, etc.) Data source definition: + /// + [DataContract] + public partial class RateItem : IEquatable, IValidatableObject + { + /// + /// Gets or Sets RateItemID + /// + [DataMember(Name="rateItemID", EmitDefaultValue=false)] + public RateItemID? RateItemID { get; set; } + /// + /// Gets or Sets RateItemType + /// + [DataMember(Name="rateItemType", EmitDefaultValue=false)] + public RateItemType? RateItemType { get; set; } + + /// + /// Gets or Sets RateItemCharge + /// + [DataMember(Name="rateItemCharge", EmitDefaultValue=false)] + public Currency RateItemCharge { get; set; } + + /// + /// Used for the localization. + /// + /// Used for the localization. + [DataMember(Name="rateItemNameLocalization", EmitDefaultValue=false)] + public string RateItemNameLocalization { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RateItem {\n"); + sb.Append(" RateItemID: ").Append(RateItemID).Append("\n"); + sb.Append(" RateItemType: ").Append(RateItemType).Append("\n"); + sb.Append(" RateItemCharge: ").Append(RateItemCharge).Append("\n"); + sb.Append(" RateItemNameLocalization: ").Append(RateItemNameLocalization).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RateItem); + } + + /// + /// Returns true if RateItem instances are equal + /// + /// Instance of RateItem to be compared + /// Boolean + public bool Equals(RateItem input) + { + if (input == null) + return false; + + return + ( + this.RateItemID == input.RateItemID || + (this.RateItemID != null && + this.RateItemID.Equals(input.RateItemID)) + ) && + ( + this.RateItemType == input.RateItemType || + (this.RateItemType != null && + this.RateItemType.Equals(input.RateItemType)) + ) && + ( + this.RateItemCharge == input.RateItemCharge || + (this.RateItemCharge != null && + this.RateItemCharge.Equals(input.RateItemCharge)) + ) && + ( + this.RateItemNameLocalization == input.RateItemNameLocalization || + (this.RateItemNameLocalization != null && + this.RateItemNameLocalization.Equals(input.RateItemNameLocalization)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.RateItemID != null) + hashCode = hashCode * 59 + this.RateItemID.GetHashCode(); + if (this.RateItemType != null) + hashCode = hashCode * 59 + this.RateItemType.GetHashCode(); + if (this.RateItemCharge != null) + hashCode = hashCode * 59 + this.RateItemCharge.GetHashCode(); + if (this.RateItemNameLocalization != null) + hashCode = hashCode * 59 + this.RateItemNameLocalization.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemID.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemID.cs new file mode 100644 index 0000000..8532693 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemID.cs @@ -0,0 +1,196 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Unique ID for the rateItem. + /// + /// Unique ID for the rateItem. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RateItemID + { + + /// + /// Enum BASERATE for value: BASE_RATE + /// + [EnumMember(Value = "BASE_RATE")] + BASERATE = 1, + + /// + /// Enum TRANSACTIONFEE for value: TRANSACTION_FEE + /// + [EnumMember(Value = "TRANSACTION_FEE")] + TRANSACTIONFEE = 2, + + /// + /// Enum ADULTSIGNATURECONFIRMATION for value: ADULT_SIGNATURE_CONFIRMATION + /// + [EnumMember(Value = "ADULT_SIGNATURE_CONFIRMATION")] + ADULTSIGNATURECONFIRMATION = 3, + + /// + /// Enum SIGNATURECONFIRMATION for value: SIGNATURE_CONFIRMATION + /// + [EnumMember(Value = "SIGNATURE_CONFIRMATION")] + SIGNATURECONFIRMATION = 4, + + /// + /// Enum NOCONFIRMATION for value: NO_CONFIRMATION + /// + [EnumMember(Value = "NO_CONFIRMATION")] + NOCONFIRMATION = 5, + + /// + /// Enum WAIVESIGNATURE for value: WAIVE_SIGNATURE + /// + [EnumMember(Value = "WAIVE_SIGNATURE")] + WAIVESIGNATURE = 6, + + /// + /// Enum IMPLIEDLIABILITY for value: IMPLIED_LIABILITY + /// + [EnumMember(Value = "IMPLIED_LIABILITY")] + IMPLIEDLIABILITY = 7, + + /// + /// Enum HIDDENPOSTAGE for value: HIDDEN_POSTAGE + /// + [EnumMember(Value = "HIDDEN_POSTAGE")] + HIDDENPOSTAGE = 8, + + /// + /// Enum DECLAREDVALUE for value: DECLARED_VALUE + /// + [EnumMember(Value = "DECLARED_VALUE")] + DECLAREDVALUE = 9, + + /// + /// Enum SUNDAYHOLIDAYDELIVERY for value: SUNDAY_HOLIDAY_DELIVERY + /// + [EnumMember(Value = "SUNDAY_HOLIDAY_DELIVERY")] + SUNDAYHOLIDAYDELIVERY = 10, + + /// + /// Enum DELIVERYCONFIRMATION for value: DELIVERY_CONFIRMATION + /// + [EnumMember(Value = "DELIVERY_CONFIRMATION")] + DELIVERYCONFIRMATION = 11, + + /// + /// Enum IMPORTDUTYCHARGE for value: IMPORT_DUTY_CHARGE + /// + [EnumMember(Value = "IMPORT_DUTY_CHARGE")] + IMPORTDUTYCHARGE = 12, + + /// + /// Enum VAT for value: VAT + /// + [EnumMember(Value = "VAT")] + VAT = 13, + + /// + /// Enum NOSATURDAYDELIVERY for value: NO_SATURDAY_DELIVERY + /// + [EnumMember(Value = "NO_SATURDAY_DELIVERY")] + NOSATURDAYDELIVERY = 14, + + /// + /// Enum INSURANCE for value: INSURANCE + /// + [EnumMember(Value = "INSURANCE")] + INSURANCE = 15, + + /// + /// Enum COD for value: COD + /// + [EnumMember(Value = "COD")] + COD = 16, + + /// + /// Enum FUELSURCHARGE for value: FUEL_SURCHARGE + /// + [EnumMember(Value = "FUEL_SURCHARGE")] + FUELSURCHARGE = 17, + + /// + /// Enum INSPECTIONCHARGE for value: INSPECTION_CHARGE + /// + [EnumMember(Value = "INSPECTION_CHARGE")] + INSPECTIONCHARGE = 18, + + /// + /// Enum DELIVERYAREASURCHARGE for value: DELIVERY_AREA_SURCHARGE + /// + [EnumMember(Value = "DELIVERY_AREA_SURCHARGE")] + DELIVERYAREASURCHARGE = 19, + + /// + /// Enum WAYBILLCHARGE for value: WAYBILL_CHARGE + /// + [EnumMember(Value = "WAYBILL_CHARGE")] + WAYBILLCHARGE = 20, + + /// + /// Enum AMAZONSPONSOREDDISCOUNT for value: AMAZON_SPONSORED_DISCOUNT + /// + [EnumMember(Value = "AMAZON_SPONSORED_DISCOUNT")] + AMAZONSPONSOREDDISCOUNT = 21, + + /// + /// Enum INTEGRATORSPONSOREDDISCOUNT for value: INTEGRATOR_SPONSORED_DISCOUNT + /// + [EnumMember(Value = "INTEGRATOR_SPONSORED_DISCOUNT")] + INTEGRATORSPONSOREDDISCOUNT = 22, + + /// + /// Enum OVERSIZESURCHARGE for value: OVERSIZE_SURCHARGE + /// + [EnumMember(Value = "OVERSIZE_SURCHARGE")] + OVERSIZESURCHARGE = 23, + + /// + /// Enum CONGESTIONCHARGE for value: CONGESTION_CHARGE + /// + [EnumMember(Value = "CONGESTION_CHARGE")] + CONGESTIONCHARGE = 24, + + /// + /// Enum RESIDENTIALSURCHARGE for value: RESIDENTIAL_SURCHARGE + /// + [EnumMember(Value = "RESIDENTIAL_SURCHARGE")] + RESIDENTIALSURCHARGE = 25, + + /// + /// Enum ADDITIONALSURCHARGE for value: ADDITIONAL_SURCHARGE + /// + [EnumMember(Value = "ADDITIONAL_SURCHARGE")] + ADDITIONALSURCHARGE = 26, + + /// + /// Enum SURCHARGE for value: SURCHARGE + /// + [EnumMember(Value = "SURCHARGE")] + SURCHARGE = 27, + + /// + /// Enum REBATE for value: REBATE + /// + [EnumMember(Value = "REBATE")] + REBATE = 28 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemList.cs new file mode 100644 index 0000000..5b363d8 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of RateItem + /// + [DataContract] + public partial class RateItemList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public RateItemList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RateItemList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RateItemList); + } + + /// + /// Returns true if RateItemList instances are equal + /// + /// Instance of RateItemList to be compared + /// Boolean + public bool Equals(RateItemList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemType.cs new file mode 100644 index 0000000..2ad0c95 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateItemType.cs @@ -0,0 +1,46 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Type of the rateItem. + /// + /// Type of the rateItem. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum RateItemType + { + + /// + /// Enum MANDATORY for value: MANDATORY + /// + [EnumMember(Value = "MANDATORY")] + MANDATORY = 1, + + /// + /// Enum OPTIONAL for value: OPTIONAL + /// + [EnumMember(Value = "OPTIONAL")] + OPTIONAL = 2, + + /// + /// Enum INCLUDED for value: INCLUDED + /// + [EnumMember(Value = "INCLUDED")] + INCLUDED = 3 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateList.cs new file mode 100644 index 0000000..a1a2da6 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RateList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of eligible shipping service offerings. + /// + [DataContract] + public partial class RateList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public RateList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RateList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RateList); + } + + /// + /// Returns true if RateList instances are equal + /// + /// Instance of RateList to be compared + /// Boolean + public bool Equals(RateList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestToken.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestToken.cs new file mode 100644 index 0000000..d871c99 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestToken.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A unique token generated to identify a getRates operation. + /// + [DataContract] + public partial class RequestToken : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public RequestToken() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequestToken {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequestToken); + } + + /// + /// Returns true if RequestToken instances are equal + /// + /// Instance of RequestToken to be compared + /// Boolean + public bool Equals(RequestToken input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedDocumentSpecification.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedDocumentSpecification.cs new file mode 100644 index 0000000..c75bd2f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedDocumentSpecification.cs @@ -0,0 +1,181 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The document specifications requested. For calls to the purchaseShipment operation, the shipment purchase fails if the specified document specifications are not among those returned in the response to the getRates operation. + /// + [DataContract] + public partial class RequestedDocumentSpecification : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Format + /// + [DataMember(Name = "format", EmitDefaultValue = false)] + public DocumentFormat Format { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name = "size", EmitDefaultValue = false)] + public DocumentSize Size { get; set; } + + /// + /// Gets or Sets Dpi + /// + [DataMember(Name = "dpi", EmitDefaultValue = false)] + public int Dpi { get; set; } + + /// + /// Gets or Sets PageLayout + /// + [DataMember(Name = "pageLayout", EmitDefaultValue = false)] + public string PageLayout { get; set; } + + /// + /// Gets or Sets NeedFileJoining + /// + [DataMember(Name = "needFileJoining", EmitDefaultValue = false)] + public bool NeedFileJoining { get; set; } + + /// + /// A list of the document types requested. + /// + /// A list of the document types requested. + [DataMember(Name = "requestedDocumentTypes", EmitDefaultValue = false)] + public List RequestedDocumentTypes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequestedDocumentSpecification {\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" Dpi: ").Append(Dpi).Append("\n"); + sb.Append(" PageLayout: ").Append(PageLayout).Append("\n"); + sb.Append(" NeedFileJoining: ").Append(NeedFileJoining).Append("\n"); + sb.Append(" RequestedDocumentTypes: ").Append(RequestedDocumentTypes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequestedDocumentSpecification); + } + + /// + /// Returns true if RequestedDocumentSpecification instances are equal + /// + /// Instance of RequestedDocumentSpecification to be compared + /// Boolean + public bool Equals(RequestedDocumentSpecification input) + { + if (input == null) + return false; + + return + ( + this.Format == input.Format || + (this.Format != null && + this.Format.Equals(input.Format)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.Dpi == input.Dpi || + (this.Dpi != null && + this.Dpi.Equals(input.Dpi)) + ) && + ( + this.PageLayout == input.PageLayout || + (this.PageLayout != null && + this.PageLayout.Equals(input.PageLayout)) + ) && + ( + this.NeedFileJoining == input.NeedFileJoining || + (this.NeedFileJoining != null && + this.NeedFileJoining.Equals(input.NeedFileJoining)) + ) && + ( + this.RequestedDocumentTypes == input.RequestedDocumentTypes || + this.RequestedDocumentTypes != null && + this.RequestedDocumentTypes.SequenceEqual(input.RequestedDocumentTypes) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Format != null) + hashCode = hashCode * 59 + this.Format.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.Dpi != null) + hashCode = hashCode * 59 + this.Dpi.GetHashCode(); + if (this.PageLayout != null) + hashCode = hashCode * 59 + this.PageLayout.GetHashCode(); + if (this.NeedFileJoining != null) + hashCode = hashCode * 59 + this.NeedFileJoining.GetHashCode(); + if (this.RequestedDocumentTypes != null) + hashCode = hashCode * 59 + this.RequestedDocumentTypes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedService.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedService.cs new file mode 100644 index 0000000..13d1527 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedService.cs @@ -0,0 +1,110 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A value-added service to be applied to a shipping service purchase. + /// + [DataContract] + public partial class RequestedValueAddedService : IEquatable, IValidatableObject + { + /// + /// The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation. + /// + /// The identifier of the selected value-added service. Must be among those returned in the response to the getRates operation. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequestedValueAddedService {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequestedValueAddedService); + } + + /// + /// Returns true if RequestedValueAddedService instances are equal + /// + /// Instance of RequestedValueAddedService to be compared + /// Boolean + public bool Equals(RequestedValueAddedService input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedServiceList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedServiceList.cs new file mode 100644 index 0000000..c4e0736 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/RequestedValueAddedServiceList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The value-added services to be added to a shipping service purchase. + /// + [DataContract] + public partial class RequestedValueAddedServiceList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public RequestedValueAddedServiceList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class RequestedValueAddedServiceList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as RequestedValueAddedServiceList); + } + + /// + /// Returns true if RequestedValueAddedServiceList instances are equal + /// + /// Instance of RequestedValueAddedServiceList to be compared + /// Boolean + public bool Equals(RequestedValueAddedServiceList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Service.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Service.cs new file mode 100644 index 0000000..d1716a2 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Service.cs @@ -0,0 +1,123 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Service Related Info + /// + [DataContract] + public partial class Service : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Service {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Service); + } + + /// + /// Returns true if Service instances are equal + /// + /// Instance of Service to be compared + /// Boolean + public bool Equals(Service input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceId.cs new file mode 100644 index 0000000..f42b9f1 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// An identifier for the shipping service. + /// + [DataContract] + public partial class ServiceId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ServiceId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ServiceId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServiceId); + } + + /// + /// Returns true if ServiceId instances are equal + /// + /// Instance of ServiceId to be compared + /// Boolean + public bool Equals(ServiceId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceIds.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceIds.cs new file mode 100644 index 0000000..11073ad --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceIds.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of ServiceId. + /// + [DataContract] + public partial class ServiceIds : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ServiceIds() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ServiceIds {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServiceIds); + } + + /// + /// Returns true if ServiceIds instances are equal + /// + /// Instance of ServiceIds to be compared + /// Boolean + public bool Equals(ServiceIds input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceName.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceName.cs new file mode 100644 index 0000000..f4c8490 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceName.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The name of the shipping service. + /// + [DataContract] + public partial class ServiceName : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ServiceName() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ServiceName {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServiceName); + } + + /// + /// Returns true if ServiceName instances are equal + /// + /// Instance of ServiceName to be compared + /// Boolean + public bool Equals(ServiceName input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceSelection.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceSelection.cs new file mode 100644 index 0000000..43d0182 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ServiceSelection.cs @@ -0,0 +1,110 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Service Selection Criteria. + /// + [DataContract] + public partial class ServiceSelection : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ServiceId + /// + [DataMember(Name="serviceId", EmitDefaultValue=false)] + public ServiceIds ServiceId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ServiceSelection {\n"); + sb.Append(" ServiceId: ").Append(ServiceId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ServiceSelection); + } + + /// + /// Returns true if ServiceSelection instances are equal + /// + /// Instance of ServiceSelection to be compared + /// Boolean + public bool Equals(ServiceSelection input) + { + if (input == null) + return false; + + return + ( + this.ServiceId == input.ServiceId || + (this.ServiceId != null && + this.ServiceId.Equals(input.ServiceId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ServiceId != null) + hashCode = hashCode * 59 + this.ServiceId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentId.cs new file mode 100644 index 0000000..8b6e437 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The unique shipment identifier provided by a shipping service. + /// + [DataContract] + public partial class ShipmentId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public ShipmentId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShipmentId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ShipmentId); + } + + /// + /// Returns true if ShipmentId instances are equal + /// + /// Instance of ShipmentId to be compared + /// Boolean + public bool Equals(ShipmentId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentType.cs new file mode 100644 index 0000000..01880e7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipmentType.cs @@ -0,0 +1,40 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Shipment type. + /// + /// Shipment type. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum ShipmentType + { + + /// + /// Enum FORWARD for value: FORWARD + /// + [EnumMember(Value = "FORWARD")] + FORWARD = 1, + + /// + /// Enum RETURNS for value: RETURNS + /// + [EnumMember(Value = "RETURNS")] + RETURNS = 2 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipperInstruction.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipperInstruction.cs new file mode 100644 index 0000000..7348bd7 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ShipperInstruction.cs @@ -0,0 +1,115 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The shipper instruction. + /// + [DataContract] + public partial class ShipperInstruction : IEquatable, IValidatableObject + { + /// + /// The delivery notes for the shipment + /// + /// The delivery notes for the shipment + [DataMember(Name="deliveryNotes", EmitDefaultValue=false)] + public string DeliveryNotes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ShipperInstruction {\n"); + sb.Append(" DeliveryNotes: ").Append(DeliveryNotes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ShipperInstruction); + } + + /// + /// Returns true if ShipperInstruction instances are equal + /// + /// Instance of ShipperInstruction to be compared + /// Boolean + public bool Equals(ShipperInstruction input) + { + if (input == null) + return false; + + return + ( + this.DeliveryNotes == input.DeliveryNotes || + (this.DeliveryNotes != null && + this.DeliveryNotes.Equals(input.DeliveryNotes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.DeliveryNotes != null) + hashCode = hashCode * 59 + this.DeliveryNotes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // DeliveryNotes (string) maxLength + if(this.DeliveryNotes != null && this.DeliveryNotes.Length > 256) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for DeliveryNotes, length must be less than 256.", new [] { "DeliveryNotes" }); + } + + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/StateOrRegion.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/StateOrRegion.cs new file mode 100644 index 0000000..a07c30d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/StateOrRegion.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The state, county or region where the person, business or institution is located. + /// + [DataContract] + public partial class StateOrRegion : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public StateOrRegion() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class StateOrRegion {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as StateOrRegion); + } + + /// + /// Returns true if StateOrRegion instances are equal + /// + /// Instance of StateOrRegion to be compared + /// Boolean + public bool Equals(StateOrRegion input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Status.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Status.cs new file mode 100644 index 0000000..955b2aa --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Status.cs @@ -0,0 +1,88 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The status of the package being shipped. + /// + /// The status of the package being shipped. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum Status + { + + /// + /// Enum PreTransit for value: PreTransit + /// + [EnumMember(Value = "PreTransit")] + PreTransit = 1, + + /// + /// Enum InTransit for value: InTransit + /// + [EnumMember(Value = "InTransit")] + InTransit = 2, + + /// + /// Enum Delivered for value: Delivered + /// + [EnumMember(Value = "Delivered")] + Delivered = 3, + + /// + /// Enum Lost for value: Lost + /// + [EnumMember(Value = "Lost")] + Lost = 4, + + /// + /// Enum OutForDelivery for value: OutForDelivery + /// + [EnumMember(Value = "OutForDelivery")] + OutForDelivery = 5, + + /// + /// Enum Rejected for value: Rejected + /// + [EnumMember(Value = "Rejected")] + Rejected = 6, + + /// + /// Enum Undeliverable for value: Undeliverable + /// + [EnumMember(Value = "Undeliverable")] + Undeliverable = 7, + + /// + /// Enum DeliveryAttempted for value: DeliveryAttempted + /// + [EnumMember(Value = "DeliveryAttempted")] + DeliveryAttempted = 8, + + /// + /// Enum PickupCancelled for value: PickupCancelled + /// + [EnumMember(Value = "PickupCancelled")] + PickupCancelled = 9, + + /// + /// Enum AwaitingCustomerPickup for value: AwaitingCustomerPickup + /// + [EnumMember(Value = "AwaitingCustomerPickup")] + AwaitingCustomerPickup = 10 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SubmitNdrFeedbackRequest.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SubmitNdrFeedbackRequest.cs new file mode 100644 index 0000000..c5fc864 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SubmitNdrFeedbackRequest.cs @@ -0,0 +1,171 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The request schema for the NdrFeedback operation + /// + [DataContract] + public partial class SubmitNdrFeedbackRequest : IEquatable, IValidatableObject + { + /// + /// Gets or Sets NdrAction + /// + [DataMember(Name="ndrAction", EmitDefaultValue=false)] + public NdrAction NdrAction { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected SubmitNdrFeedbackRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// trackingId (required). + /// ndrAction (required). + /// ndrRequestData. + public SubmitNdrFeedbackRequest(TrackingId trackingId = default(TrackingId), NdrAction ndrAction = default(NdrAction), NdrRequestData ndrRequestData = default(NdrRequestData)) + { + // to ensure "trackingId" is required (not null) + if (trackingId == null) + { + throw new InvalidDataException("trackingId is a required property for SubmitNdrFeedbackRequest and cannot be null"); + } + else + { + this.TrackingId = trackingId; + } + // to ensure "ndrAction" is required (not null) + if (ndrAction == null) + { + throw new InvalidDataException("ndrAction is a required property for SubmitNdrFeedbackRequest and cannot be null"); + } + else + { + this.NdrAction = ndrAction; + } + this.NdrRequestData = ndrRequestData; + } + + /// + /// Gets or Sets TrackingId + /// + [DataMember(Name="trackingId", EmitDefaultValue=false)] + public TrackingId TrackingId { get; set; } + + + /// + /// Gets or Sets NdrRequestData + /// + [DataMember(Name="ndrRequestData", EmitDefaultValue=false)] + public NdrRequestData NdrRequestData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SubmitNdrFeedbackRequest {\n"); + sb.Append(" TrackingId: ").Append(TrackingId).Append("\n"); + sb.Append(" NdrAction: ").Append(NdrAction).Append("\n"); + sb.Append(" NdrRequestData: ").Append(NdrRequestData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SubmitNdrFeedbackRequest); + } + + /// + /// Returns true if SubmitNdrFeedbackRequest instances are equal + /// + /// Instance of SubmitNdrFeedbackRequest to be compared + /// Boolean + public bool Equals(SubmitNdrFeedbackRequest input) + { + if (input == null) + return false; + + return + ( + this.TrackingId == input.TrackingId || + (this.TrackingId != null && + this.TrackingId.Equals(input.TrackingId)) + ) && + ( + this.NdrAction == input.NdrAction || + (this.NdrAction != null && + this.NdrAction.Equals(input.NdrAction)) + ) && + ( + this.NdrRequestData == input.NdrRequestData || + (this.NdrRequestData != null && + this.NdrRequestData.Equals(input.NdrRequestData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TrackingId != null) + hashCode = hashCode * 59 + this.TrackingId.GetHashCode(); + if (this.NdrAction != null) + hashCode = hashCode * 59 + this.NdrAction.GetHashCode(); + if (this.NdrRequestData != null) + hashCode = hashCode * 59 + this.NdrRequestData.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentDetail.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentDetail.cs new file mode 100644 index 0000000..3f32c54 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentDetail.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The supported document types for a service offering. + /// + [DataContract] + public partial class SupportedDocumentDetail : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Name + /// + [DataMember(Name="name", EmitDefaultValue=false)] + public DocumentType Name { get; set; } + + /// + /// When true, the supported document type is required. + /// + /// When true, the supported document type is required. + [DataMember(Name="isMandatory", EmitDefaultValue=false)] + public bool? IsMandatory { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SupportedDocumentDetail {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" IsMandatory: ").Append(IsMandatory).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SupportedDocumentDetail); + } + + /// + /// Returns true if SupportedDocumentDetail instances are equal + /// + /// Instance of SupportedDocumentDetail to be compared + /// Boolean + public bool Equals(SupportedDocumentDetail input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.IsMandatory == input.IsMandatory || + (this.IsMandatory != null && + this.IsMandatory.Equals(input.IsMandatory)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.IsMandatory != null) + hashCode = hashCode * 59 + this.IsMandatory.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecification.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecification.cs new file mode 100644 index 0000000..97597b9 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecification.cs @@ -0,0 +1,137 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Document specification that is supported for a service offering. + /// + [DataContract] + public partial class SupportedDocumentSpecification : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Format + /// + [DataMember(Name="format", EmitDefaultValue=false)] + public DocumentFormat Format { get; set; } + + /// + /// Gets or Sets Size + /// + [DataMember(Name="size", EmitDefaultValue=false)] + public DocumentSize Size { get; set; } + + /// + /// Gets or Sets PrintOptions + /// + [DataMember(Name="printOptions", EmitDefaultValue=false)] + public PrintOptionList PrintOptions { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SupportedDocumentSpecification {\n"); + sb.Append(" Format: ").Append(Format).Append("\n"); + sb.Append(" Size: ").Append(Size).Append("\n"); + sb.Append(" PrintOptions: ").Append(PrintOptions).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SupportedDocumentSpecification); + } + + /// + /// Returns true if SupportedDocumentSpecification instances are equal + /// + /// Instance of SupportedDocumentSpecification to be compared + /// Boolean + public bool Equals(SupportedDocumentSpecification input) + { + if (input == null) + return false; + + return + ( + this.Format == input.Format || + (this.Format != null && + this.Format.Equals(input.Format)) + ) && + ( + this.Size == input.Size || + (this.Size != null && + this.Size.Equals(input.Size)) + ) && + ( + this.PrintOptions == input.PrintOptions || + (this.PrintOptions != null && + this.PrintOptions.Equals(input.PrintOptions)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Format != null) + hashCode = hashCode * 59 + this.Format.GetHashCode(); + if (this.Size != null) + hashCode = hashCode * 59 + this.Size.GetHashCode(); + if (this.PrintOptions != null) + hashCode = hashCode * 59 + this.PrintOptions.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecificationList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecificationList.cs new file mode 100644 index 0000000..88ec32d --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/SupportedDocumentSpecificationList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of the document specifications supported for a shipment service offering. + /// + [DataContract] + public partial class SupportedDocumentSpecificationList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public SupportedDocumentSpecificationList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SupportedDocumentSpecificationList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SupportedDocumentSpecificationList); + } + + /// + /// Returns true if SupportedDocumentSpecificationList instances are equal + /// + /// Instance of SupportedDocumentSpecificationList to be compared + /// Boolean + public bool Equals(SupportedDocumentSpecificationList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetail.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetail.cs new file mode 100644 index 0000000..33948de --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetail.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Indicates the tax specifications associated with the shipment for customs compliance purposes in certain regions. + /// + [DataContract] + public partial class TaxDetail : IEquatable, IValidatableObject + { + /// + /// Gets or Sets TaxType + /// + [DataMember(Name="taxType", EmitDefaultValue=false)] + public TaxType TaxType { get; set; } + + /// + /// The shipper's tax registration number associated with the shipment for customs compliance purposes in certain regions. + /// + /// The shipper's tax registration number associated with the shipment for customs compliance purposes in certain regions. + [DataMember(Name="taxRegistrationNumber", EmitDefaultValue=false)] + public string TaxRegistrationNumber { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TaxDetail {\n"); + sb.Append(" TaxType: ").Append(TaxType).Append("\n"); + sb.Append(" TaxRegistrationNumber: ").Append(TaxRegistrationNumber).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TaxDetail); + } + + /// + /// Returns true if TaxDetail instances are equal + /// + /// Instance of TaxDetail to be compared + /// Boolean + public bool Equals(TaxDetail input) + { + if (input == null) + return false; + + return + ( + this.TaxType == input.TaxType || + (this.TaxType != null && + this.TaxType.Equals(input.TaxType)) + ) && + ( + this.TaxRegistrationNumber == input.TaxRegistrationNumber || + (this.TaxRegistrationNumber != null && + this.TaxRegistrationNumber.Equals(input.TaxRegistrationNumber)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.TaxType != null) + hashCode = hashCode * 59 + this.TaxType.GetHashCode(); + if (this.TaxRegistrationNumber != null) + hashCode = hashCode * 59 + this.TaxRegistrationNumber.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetailList.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetailList.cs new file mode 100644 index 0000000..1c77c47 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxDetailList.cs @@ -0,0 +1,103 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A list of tax detail information. + /// + [DataContract] + public partial class TaxDetailList : List, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public TaxDetailList() : base() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TaxDetailList {\n"); + sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TaxDetailList); + } + + /// + /// Returns true if TaxDetailList instances are equal + /// + /// Instance of TaxDetailList to be compared + /// Boolean + public bool Equals(TaxDetailList input) + { + if (input == null) + return false; + + return base.Equals(input); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = base.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxType.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxType.cs new file mode 100644 index 0000000..7adeb43 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TaxType.cs @@ -0,0 +1,34 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Indicates the type of tax. + /// + /// Indicates the type of tax. + + [JsonConverter(typeof(StringEnumConverter))] + + public enum TaxType + { + + /// + /// Enum GST for value: GST + /// + [EnumMember(Value = "GST")] + GST = 1 + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeOfDay.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeOfDay.cs new file mode 100644 index 0000000..7acadd4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeOfDay.cs @@ -0,0 +1,149 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Denotes time of the day, used for defining opening or closing time of access points + /// + [DataContract] + public partial class TimeOfDay : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// hourOfDay. + /// minuteOfHour. + /// secondOfMinute. + public TimeOfDay(int? hourOfDay = default(int?), int? minuteOfHour = default(int?), int? secondOfMinute = default(int?)) + { + this.HourOfDay = hourOfDay; + this.MinuteOfHour = minuteOfHour; + this.SecondOfMinute = secondOfMinute; + } + + /// + /// Gets or Sets HourOfDay + /// + [DataMember(Name="hourOfDay", EmitDefaultValue=false)] + public int? HourOfDay { get; set; } + + /// + /// Gets or Sets MinuteOfHour + /// + [DataMember(Name="minuteOfHour", EmitDefaultValue=false)] + public int? MinuteOfHour { get; set; } + + /// + /// Gets or Sets SecondOfMinute + /// + [DataMember(Name="secondOfMinute", EmitDefaultValue=false)] + public int? SecondOfMinute { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TimeOfDay {\n"); + sb.Append(" HourOfDay: ").Append(HourOfDay).Append("\n"); + sb.Append(" MinuteOfHour: ").Append(MinuteOfHour).Append("\n"); + sb.Append(" SecondOfMinute: ").Append(SecondOfMinute).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TimeOfDay); + } + + /// + /// Returns true if TimeOfDay instances are equal + /// + /// Instance of TimeOfDay to be compared + /// Boolean + public bool Equals(TimeOfDay input) + { + if (input == null) + return false; + + return + ( + this.HourOfDay == input.HourOfDay || + (this.HourOfDay != null && + this.HourOfDay.Equals(input.HourOfDay)) + ) && + ( + this.MinuteOfHour == input.MinuteOfHour || + (this.MinuteOfHour != null && + this.MinuteOfHour.Equals(input.MinuteOfHour)) + ) && + ( + this.SecondOfMinute == input.SecondOfMinute || + (this.SecondOfMinute != null && + this.SecondOfMinute.Equals(input.SecondOfMinute)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.HourOfDay != null) + hashCode = hashCode * 59 + this.HourOfDay.GetHashCode(); + if (this.MinuteOfHour != null) + hashCode = hashCode * 59 + this.MinuteOfHour.GetHashCode(); + if (this.SecondOfMinute != null) + hashCode = hashCode * 59 + this.SecondOfMinute.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeWindow.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeWindow.cs new file mode 100644 index 0000000..493d66f --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TimeWindow.cs @@ -0,0 +1,124 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The start and end time that specifies the time interval of an event. + /// + [DataContract] + public partial class TimeWindow : IEquatable, IValidatableObject + { + /// + /// The start time of the time window. + /// + /// The start time of the time window. + [DataMember(Name="start", EmitDefaultValue=false)] + public DateTime? Start { get; set; } + + /// + /// The end time of the time window. + /// + /// The end time of the time window. + [DataMember(Name="end", EmitDefaultValue=false)] + public DateTime? End { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TimeWindow {\n"); + sb.Append(" Start: ").Append(Start).Append("\n"); + sb.Append(" End: ").Append(End).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TimeWindow); + } + + /// + /// Returns true if TimeWindow instances are equal + /// + /// Instance of TimeWindow to be compared + /// Boolean + public bool Equals(TimeWindow input) + { + if (input == null) + return false; + + return + ( + this.Start == input.Start || + (this.Start != null && + this.Start.Equals(input.Start)) + ) && + ( + this.End == input.End || + (this.End != null && + this.End.Equals(input.End)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Start != null) + hashCode = hashCode * 59 + this.Start.GetHashCode(); + if (this.End != null) + hashCode = hashCode * 59 + this.End.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingDetailCodes.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingDetailCodes.cs new file mode 100644 index 0000000..f11a1ac --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingDetailCodes.cs @@ -0,0 +1,158 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// Contains detail codes that provide additional details related to the forward and return leg of the shipment. + /// + [DataContract] + public partial class TrackingDetailCodes : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + protected TrackingDetailCodes() { } + /// + /// Initializes a new instance of the class. + /// + /// Contains detail codes that provide additional details related to the forward leg of the shipment. (required). + /// Contains detail codes that provide additional details related to the return leg of the shipment. (required). + public TrackingDetailCodes(List forward = default(List), List returns = default(List)) + { + // to ensure "forward" is required (not null) + if (forward == null) + { + throw new InvalidDataException("forward is a required property for TrackingDetailCodes and cannot be null"); + } + else + { + this.Forward = forward; + } + // to ensure "returns" is required (not null) + if (returns == null) + { + throw new InvalidDataException("returns is a required property for TrackingDetailCodes and cannot be null"); + } + else + { + this.Returns = returns; + } + } + + /// + /// Contains detail codes that provide additional details related to the forward leg of the shipment. + /// + /// Contains detail codes that provide additional details related to the forward leg of the shipment. + [DataMember(Name="forward", EmitDefaultValue=false)] + public List Forward { get; set; } + + /// + /// Contains detail codes that provide additional details related to the return leg of the shipment. + /// + /// Contains detail codes that provide additional details related to the return leg of the shipment. + [DataMember(Name="returns", EmitDefaultValue=false)] + public List Returns { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrackingDetailCodes {\n"); + sb.Append(" Forward: ").Append(Forward).Append("\n"); + sb.Append(" Returns: ").Append(Returns).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingDetailCodes); + } + + /// + /// Returns true if TrackingDetailCodes instances are equal + /// + /// Instance of TrackingDetailCodes to be compared + /// Boolean + public bool Equals(TrackingDetailCodes input) + { + if (input == null) + return false; + + return + ( + this.Forward == input.Forward || + this.Forward != null && + this.Forward.SequenceEqual(input.Forward) + ) && + ( + this.Returns == input.Returns || + this.Returns != null && + this.Returns.SequenceEqual(input.Returns) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Forward != null) + hashCode = hashCode * 59 + this.Forward.GetHashCode(); + if (this.Returns != null) + hashCode = hashCode * 59 + this.Returns.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingId.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingId.cs new file mode 100644 index 0000000..a8eab54 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingId.cs @@ -0,0 +1,102 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The carrier generated identifier for a package in a purchased shipment. + /// + [DataContract] + public partial class TrackingId : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructor] + public TrackingId() + { + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrackingId {\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingId); + } + + /// + /// Returns true if TrackingId instances are equal + /// + /// Instance of TrackingId to be compared + /// Boolean + public bool Equals(TrackingId input) + { + if (input == null) + return false; + + return false; + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingSummary.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingSummary.cs new file mode 100644 index 0000000..83b96d2 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/TrackingSummary.cs @@ -0,0 +1,133 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A package status summary. + /// + [DataContract] + public partial class TrackingSummary : IEquatable, IValidatableObject + { + /// + /// Gets or Sets Status + /// + [DataMember(Name="status", EmitDefaultValue=false)] + public Status? Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// status. + /// trackingDetailCodes. + public TrackingSummary(Status? status = default(Status?), TrackingDetailCodes trackingDetailCodes = default(TrackingDetailCodes)) + { + this.Status = status; + this.TrackingDetailCodes = trackingDetailCodes; + } + + + /// + /// Gets or Sets TrackingDetailCodes + /// + [DataMember(Name="trackingDetailCodes", EmitDefaultValue=false)] + public TrackingDetailCodes TrackingDetailCodes { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TrackingSummary {\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" TrackingDetailCodes: ").Append(TrackingDetailCodes).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TrackingSummary); + } + + /// + /// Returns true if TrackingSummary instances are equal + /// + /// Instance of TrackingSummary to be compared + /// Boolean + public bool Equals(TrackingSummary input) + { + if (input == null) + return false; + + return + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.TrackingDetailCodes == input.TrackingDetailCodes || + (this.TrackingDetailCodes != null && + this.TrackingDetailCodes.Equals(input.TrackingDetailCodes)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Status != null) + hashCode = hashCode * 59 + this.Status.GetHashCode(); + if (this.TrackingDetailCodes != null) + hashCode = hashCode * 59 + this.TrackingDetailCodes.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedService.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedService.cs new file mode 100644 index 0000000..3c15fbb --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedService.cs @@ -0,0 +1,140 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A value-added service available for purchase with a shipment service offering. + /// + [DataContract] + public partial class ValueAddedService : IEquatable, IValidatableObject + { + /// + /// The identifier for the value-added service. + /// + /// The identifier for the value-added service. + [DataMember(Name="id", EmitDefaultValue=false)] + public string Id { get; set; } + + /// + /// The name of the value-added service. + /// + /// The name of the value-added service. + [DataMember(Name="name", EmitDefaultValue=false)] + public string Name { get; set; } + + /// + /// The cost of the value-added service. + /// + /// The cost of the value-added service. + [DataMember(Name="cost", EmitDefaultValue=false)] + public Currency Cost { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ValueAddedService {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Cost: ").Append(Cost).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValueAddedService); + } + + /// + /// Returns true if ValueAddedService instances are equal + /// + /// Instance of ValueAddedService to be compared + /// Boolean + public bool Equals(ValueAddedService input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Cost == input.Cost || + (this.Cost != null && + this.Cost.Equals(input.Cost)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Cost != null) + hashCode = hashCode * 59 + this.Cost.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedServiceDetails.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedServiceDetails.cs new file mode 100644 index 0000000..0ac5559 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/ValueAddedServiceDetails.cs @@ -0,0 +1,108 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// A collection of supported value-added services. + /// + [DataContract] + public partial class ValueAddedServiceDetails : IEquatable, IValidatableObject + { + /// + /// Gets or Sets CollectOnDelivery + /// + [DataMember(Name="collectOnDelivery", EmitDefaultValue=false)] + public CollectOnDelivery CollectOnDelivery { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ValueAddedServiceDetails {\n"); + sb.Append(" CollectOnDelivery: ").Append(CollectOnDelivery).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ValueAddedServiceDetails); + } + + /// + /// Returns true if ValueAddedServiceDetails instances are equal + /// + /// Instance of ValueAddedServiceDetails to be compared + /// Boolean + public bool Equals(ValueAddedServiceDetails input) + { + if (input == null) + return false; + + return + ( + this.CollectOnDelivery == input.CollectOnDelivery || + (this.CollectOnDelivery != null && + this.CollectOnDelivery.Equals(input.CollectOnDelivery)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CollectOnDelivery != null) + hashCode = hashCode * 59 + this.CollectOnDelivery.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Weight.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Weight.cs new file mode 100644 index 0000000..9dfb300 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/ShippingV2/Weight.cs @@ -0,0 +1,155 @@ +/* + * Amazon Shipping API + * + * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments. + * + * OpenAPI spec version: v2 + * + * Generated by: https://github.com/swagger-api/swagger-codegen.git + */ + +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2 +{ + /// + /// The weight in the units indicated. + /// + [DataContract] + public partial class Weight : IEquatable, IValidatableObject + { + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [DataMember(Name = "unit", EmitDefaultValue = false)] + public WeightUnitEnum Unit { get; set; } + + /// + /// The measurement value. + /// + /// The measurement value. + [DataMember(Name = "value", EmitDefaultValue = false)] + public decimal? Value { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class Weight {\n"); + sb.Append(" Unit: ").Append(Unit).Append("\n"); + sb.Append(" Value: ").Append(Value).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return JsonConvert.SerializeObject(this, Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as Weight); + } + + /// + /// Returns true if Weight instances are equal + /// + /// Instance of Weight to be compared + /// Boolean + public bool Equals(Weight input) + { + if (input == null) + return false; + + return + ( + this.Unit == input.Unit || + (this.Unit != null && + this.Unit.Equals(input.Unit)) + ) && + ( + this.Value == input.Value || + (this.Value != null && + this.Value.Equals(input.Value)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Unit != null) + hashCode = hashCode * 59 + this.Unit.GetHashCode(); + if (this.Value != null) + hashCode = hashCode * 59 + this.Value.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate( + ValidationContext validationContext) + { + yield break; + } + } + + + /// + /// The unit of measurement. + /// + /// The unit of measurement. + [JsonConverter(typeof(StringEnumConverter))] + public enum WeightUnitEnum + { + /// + /// Enum GRAM for value: GRAM + /// + [EnumMember(Value = "GRAM")] GRAM = 1, + + /// + /// Enum KILOGRAM for value: KILOGRAM + /// + [EnumMember(Value = "KILOGRAM")] KILOGRAM = 2, + + /// + /// Enum OUNCE for value: OUNCE + /// + [EnumMember(Value = "OUNCE")] OUNCE = 3, + + /// + /// Enum POUND for value: POUND + /// + [EnumMember(Value = "POUND")] POUND = 4 + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CacheTokenData.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CacheTokenData.cs new file mode 100644 index 0000000..75d01d2 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CacheTokenData.cs @@ -0,0 +1,70 @@ +using System; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token +{ + public class CacheTokenData + { + public enum TokenDataType + { + Normal, + PII, + Grantless + } + + protected TokenResponse NormalAccessToken { get; set; } + protected TokenResponse PIIAccessToken { get; set; } + protected TokenResponse GrantlessAccessToken { get; set; } + + + public TokenResponse GetToken(TokenDataType tokenDataType) + { + TokenResponse token; + switch (tokenDataType) + { + case TokenDataType.Normal: + token = NormalAccessToken; + break; + case TokenDataType.PII: + token = PIIAccessToken; + break; + case TokenDataType.Grantless: + token = GrantlessAccessToken; + break; + default: + token = (TokenResponse)null; + break; + } + + if (token == null) + return null; + var isExpired = IsTokenExpired(token.expires_in, token.date_Created); + return !isExpired ? token : null; + } + + public void SetToken(TokenDataType tokenDataType, TokenResponse token) + { + if (tokenDataType == TokenDataType.Normal) + { + NormalAccessToken = token; + } + else if (tokenDataType == TokenDataType.PII) + { + //目前暂无PIIAccessToken测试 + //PIIAccessToken=token; + } + else if (tokenDataType == TokenDataType.Grantless) + { + GrantlessAccessToken = token; + } + } + + + public static bool IsTokenExpired(int? expiresIn, DateTime? dateCreated) + { + if (dateCreated == null) + return false; + return DateTime.UtcNow.Subtract((DateTime)dateCreated).TotalSeconds > + expiresIn - 60; //提前60秒过期 + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenRequest.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenRequest.cs new file mode 100644 index 0000000..9e72af2 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenRequest.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token +{ + public class CreateRestrictedDataTokenRequest + { + public IList restrictedResources { get; set; } + + public string targetApplication { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenResponse.cs new file mode 100644 index 0000000..cc00320 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/CreateRestrictedDataTokenResponse.cs @@ -0,0 +1,8 @@ +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token +{ + public class CreateRestrictedDataTokenResponse + { + public string RestrictedDataToken { get; set; } + public int ExpiresIn { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/RestrictedResource.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/RestrictedResource.cs new file mode 100644 index 0000000..1f49d15 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/RestrictedResource.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token +{ + public class RestrictedResource + { + public string method { get; set; } + public string path { get; set; } + public IList dataElements { get; set; } + } + + public enum Method + { + GET, + PUT, + POST, + DELETE + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/TokenResponse.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/TokenResponse.cs new file mode 100644 index 0000000..2012275 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Models/Token/TokenResponse.cs @@ -0,0 +1,15 @@ +using System; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token +{ + public class TokenResponse + { + public string access_token { get; set; } + + public string refresh_token { get; set; } + + public string token_type { get; set; } + public int expires_in { get; set; } + public DateTime date_Created { get; set; } = DateTime.UtcNow; + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/BaseXML.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/BaseXML.cs new file mode 100644 index 0000000..7f75470 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/BaseXML.cs @@ -0,0 +1,28506 @@ +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + /// + /// Data here came from Amazon Base XSD + /// https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/amzn-base._TTH_.xsd + /// convert by website + /// http://dotnetsnip.com/xsd-to-csharp-class-converter + /// + public class BaseXML + { + /// + /// + /// + public partial class AddressType + { + + private string nameField; + + private string formalTitleField; + + private string givenNameField; + + private string familyNameField; + + private string addressFieldOneField; + + private string addressFieldTwoField; + + private string addressFieldThreeField; + + private string cityField; + + private string countyField; + + private string stateOrRegionField; + + private string postalCodeField; + + private string countryCodeField; + + private PhoneNumberType[] phoneNumberField; + + private bool isDefaultShippingField; + + private bool isDefaultShippingFieldSpecified; + + private bool isDefaultBillingField; + + private bool isDefaultBillingFieldSpecified; + + private bool isDefaultOneClickField; + + private bool isDefaultOneClickFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string FormalTitle + { + get + { + return this.formalTitleField; + } + set + { + this.formalTitleField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string GivenName + { + get + { + return this.givenNameField; + } + set + { + this.givenNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string FamilyName + { + get + { + return this.familyNameField; + } + set + { + this.familyNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldOne + { + get + { + return this.addressFieldOneField; + } + set + { + this.addressFieldOneField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldTwo + { + get + { + return this.addressFieldTwoField; + } + set + { + this.addressFieldTwoField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldThree + { + get + { + return this.addressFieldThreeField; + } + set + { + this.addressFieldThreeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string City + { + get + { + return this.cityField; + } + set + { + this.cityField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string County + { + get + { + return this.countyField; + } + set + { + this.countyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string StateOrRegion + { + get + { + return this.stateOrRegionField; + } + set + { + this.stateOrRegionField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string PostalCode + { + get + { + return this.postalCodeField; + } + set + { + this.postalCodeField = value; + } + } + + /// + public string CountryCode + { + get + { + return this.countryCodeField; + } + set + { + this.countryCodeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("PhoneNumber")] + public PhoneNumberType[] PhoneNumber + { + get + { + return this.phoneNumberField; + } + set + { + this.phoneNumberField = value; + } + } + + /// + public bool isDefaultShipping + { + get + { + return this.isDefaultShippingField; + } + set + { + this.isDefaultShippingField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isDefaultShippingSpecified + { + get + { + return this.isDefaultShippingFieldSpecified; + } + set + { + this.isDefaultShippingFieldSpecified = value; + } + } + + /// + public bool isDefaultBilling + { + get + { + return this.isDefaultBillingField; + } + set + { + this.isDefaultBillingField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isDefaultBillingSpecified + { + get + { + return this.isDefaultBillingFieldSpecified; + } + set + { + this.isDefaultBillingFieldSpecified = value; + } + } + + /// + public bool isDefaultOneClick + { + get + { + return this.isDefaultOneClickField; + } + set + { + this.isDefaultOneClickField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isDefaultOneClickSpecified + { + get + { + return this.isDefaultOneClickFieldSpecified; + } + set + { + this.isDefaultOneClickFieldSpecified = value; + } + } + } + + /// + public partial class PhoneNumberType + { + + private PhoneNumberTypeType typeField; + + private bool typeFieldSpecified; + + private string descriptionField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public PhoneNumberTypeType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool TypeSpecified + { + get + { + return this.typeFieldSpecified; + } + set + { + this.typeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string Description + { + get + { + return this.descriptionField; + } + set + { + this.descriptionField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum PhoneNumberTypeType + { + + /// + Voice, + + /// + Fax, + } + + /// + public partial class AddressTypeSupportNonCity + { + + private string nameField; + + private string addressFieldOneField; + + private string addressFieldTwoField; + + private string addressFieldThreeField; + + private string cityField; + + private string districtOrCountyField; + + private string countyField; + + private string stateOrRegionField; + + private string postalCodeField; + + private string countryCodeField; + + private string phoneNumberField; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldOne + { + get + { + return this.addressFieldOneField; + } + set + { + this.addressFieldOneField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldTwo + { + get + { + return this.addressFieldTwoField; + } + set + { + this.addressFieldTwoField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string AddressFieldThree + { + get + { + return this.addressFieldThreeField; + } + set + { + this.addressFieldThreeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string City + { + get + { + return this.cityField; + } + set + { + this.cityField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string DistrictOrCounty + { + get + { + return this.districtOrCountyField; + } + set + { + this.districtOrCountyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string County + { + get + { + return this.countyField; + } + set + { + this.countyField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string StateOrRegion + { + get + { + return this.stateOrRegionField; + } + set + { + this.stateOrRegionField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string PostalCode + { + get + { + return this.postalCodeField; + } + set + { + this.postalCodeField = value; + } + } + + /// + public string CountryCode + { + get + { + return this.countryCodeField; + } + set + { + this.countryCodeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string PhoneNumber + { + get + { + return this.phoneNumberField; + } + set + { + this.phoneNumberField = value; + } + } + } + + /// + public partial class EmailAddressType + { + + private EmailAddressTypePreferredFormat preferredFormatField; + + private bool preferredFormatFieldSpecified; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public EmailAddressTypePreferredFormat PreferredFormat + { + get + { + return this.preferredFormatField; + } + set + { + this.preferredFormatField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool PreferredFormatSpecified + { + get + { + return this.preferredFormatFieldSpecified; + } + set + { + this.preferredFormatFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum EmailAddressTypePreferredFormat + { + + /// + TextOnly, + + /// + HTML, + } + + /// + public partial class AmazonFees + { + + private AmazonFeesFee[] feeField; + + /// + [System.Xml.Serialization.XmlElementAttribute("Fee")] + public AmazonFeesFee[] Fee + { + get + { + return this.feeField; + } + set + { + this.feeField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class AmazonFeesFee + { + + private string typeField; + + private CurrencyAmount amountField; + + /// + public string Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public CurrencyAmount Amount + { + get + { + return this.amountField; + } + set + { + this.amountField = value; + } + } + } + + /// + public partial class CurrencyAmount + { + + private BaseCurrencyCode currencyField; + + private bool currencyFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BaseCurrencyCode currency + { + get + { + return this.currencyField; + } + set + { + this.currencyField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool currencySpecified + { + get + { + return this.currencyFieldSpecified; + } + set + { + this.currencyFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + /// The currency code. + /// + /// The currency code. + [JsonConverter(typeof(StringEnumConverter))] + public enum BaseCurrencyCode + { + + /// + /// Enum USD for value: USD + /// + [EnumMember(Value = "USD")] + USD = 1, + + /// + /// Enum GBP for value: GBP + /// + [EnumMember(Value = "GBP")] + GBP, + + /// + /// Enum EUR for value: EUR + /// + [EnumMember(Value = "EUR")] + EUR, + + /// + /// Enum JPY for value: JPY + /// + [EnumMember(Value = "JPY")] + JPY, + + /// + /// Enum CAD for value: CAD + /// + [EnumMember(Value = "CAD")] + CAD, + + /// + /// Enum CNY for value: CNY + /// + [EnumMember(Value = "CNY")] + CNY, + + /// + /// Enum INR for value: INR + /// + [EnumMember(Value = "INR")] + INR, + + /// + /// Enum MXN for value: MXN + /// + [EnumMember(Value = "MXN")] + MXN, + + /// + /// Enum BRL for value: BRL + /// + [EnumMember(Value = "BRL")] + BRL, + + /// + /// Enum AUD for value: AUD + /// + [EnumMember(Value = "AUD")] + AUD, + + /// + /// Enum TRY for value: TRY + /// + [EnumMember(Value = "TRY")] + TRY, + + /// + /// Enum SGD for value: SGD + /// + [EnumMember(Value = "SGD")] + SGD, + + /// + /// Enum SEK for value: SEK + /// + [EnumMember(Value = "SEK")] + SEK, + + /// + /// Enum PLN for value: PLN + /// + [EnumMember(Value = "PLN")] + PLN, + + /// + /// Enum AED for value: AED + /// + [EnumMember(Value = "AED")] + AED, + + /// + /// Enum SAR for value: SAR + /// + [EnumMember(Value = "SAR")] + SAR, + + /// + /// Enum EGP for value: EGP + /// + [EnumMember(Value = "EGP")] + EGP, + } + + /// + public partial class BuyerPrice + { + + private BuyerPriceComponent[] componentField; + + /// + [System.Xml.Serialization.XmlElementAttribute("Component")] + public BuyerPriceComponent[] Component + { + get + { + return this.componentField; + } + set + { + this.componentField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class BuyerPriceComponent + { + + private BuyerPriceComponentType typeField; + + private CurrencyAmount amountField; + + /// + public BuyerPriceComponentType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public CurrencyAmount Amount + { + get + { + return this.amountField; + } + set + { + this.amountField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum BuyerPriceComponentType + { + + /// + Principal, + + /// + Shipping, + + /// + CODFee, + + /// + Tax, + + /// + ShippingTax, + + /// + RestockingFee, + + /// + RestockingFeeTax, + + /// + GiftWrap, + + /// + GiftWrapTax, + + /// + Surcharge, + + /// + ReturnShipping, + + /// + Goodwill, + + /// + ExportCharge, + + /// + COD, + + /// + CODTax, + + /// + Other, + + /// + FreeReplacementReturnShipping, + + /// + VatExclusiveItemPrice, + + /// + VatExclusiveShippingPrice, + } + + /// + public partial class DirectPaymentType + { + + private DirectPaymentTypeComponent[] componentField; + + /// + [System.Xml.Serialization.XmlElementAttribute("Component")] + public DirectPaymentTypeComponent[] Component + { + get + { + return this.componentField; + } + set + { + this.componentField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class DirectPaymentTypeComponent + { + + private string typeField; + + private CurrencyAmount amountField; + + /// + public string Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public CurrencyAmount Amount + { + get + { + return this.amountField; + } + set + { + this.amountField = value; + } + } + } + + /// + public partial class PositiveCurrencyAmount + { + + private BaseCurrencyCode currencyField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BaseCurrencyCode currency + { + get + { + return this.currencyField; + } + set + { + this.currencyField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum GlobalCurrencyCode + { + + /// + AED, + + /// + ALL, + + /// + ARS, + + /// + ATS, + + /// + AUD, + + /// + BAM, + + /// + BEF, + + /// + BGN, + + /// + BHD, + + /// + BOB, + + /// + BRL, + + /// + BYR, + + /// + CAD, + + /// + CHF, + + /// + CLP, + + /// + CNY, + + /// + COP, + + /// + CRC, + + /// + CSD, + + /// + CZK, + + /// + DEM, + + /// + DKK, + + /// + DOP, + + /// + DZD, + + /// + EEK, + + /// + EGP, + + /// + ESP, + + /// + EUR, + + /// + FIM, + + /// + FRF, + + /// + GBP, + + /// + GRD, + + /// + GTQ, + + /// + HKD, + + /// + HNL, + + /// + HRK, + + /// + HUF, + + /// + IDR, + + /// + ILS, + + /// + INR, + + /// + IQD, + + /// + ISK, + + /// + ITL, + + /// + JOD, + + /// + JPY, + + /// + KRW, + + /// + KWD, + + /// + LBP, + + /// + LTL, + + /// + LUF, + + /// + LVL, + + /// + LYD, + + /// + MAD, + + /// + MKD, + + /// + MXN, + + /// + MYR, + + /// + NIO, + + /// + NOK, + + /// + NZD, + + /// + OMR, + + /// + PAB, + + /// + PEN, + + /// + PHP, + + /// + PLN, + + /// + PTE, + + /// + PYG, + + /// + QAR, + + /// + RON, + + /// + RSD, + + /// + RUB, + + /// + SAR, + + /// + SDG, + + /// + SEK, + + /// + SGD, + + /// + SKK, + + /// + SVC, + + /// + SYP, + + /// + THB, + + /// + TND, + + /// + TRY, + + /// + TWD, + + /// + UAH, + + /// + USD, + + /// + UYU, + + /// + VEF, + + /// + VND, + + /// + YER, + + /// + ZAR, + } + + /// + public enum EnergyUnitOfMeasure + { + + /// + BTU, + + /// + watts, + + /// + joules, + + /// + kilojoules, + } + + /// + public enum WaterResistantType + { + + /// + not_water_resistant, + + /// + water_resistant, + + /// + waterproof, + } + + /// + public enum AntennaTypeValues + { + + /// + @fixed, + + /// + @internal, + + /// + retractable, + } + + /// + public enum ModemTypeValues + { + + /// + analog_modem, + + /// + data_fax_voice, + + /// + isdn_modem, + + /// + cable, + + /// + data_modem, + + /// + network_modem, + + /// + cellular, + + /// + digital, + + /// + unknown_modem_type, + + /// + csu, + + /// + dsl, + + /// + voice, + + /// + data_fax, + + /// + dsu, + + /// + winmodem, + } + + /// + public enum DockingStationExternalInterfaceTypeValues + { + + /// + firewire_1600, + + /// + firewire_3200, + + /// + firewire_400, + + /// + firewire_800, + + /// + firewire_esata, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.0")] + usb10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.1")] + usb11, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb2.0")] + usb20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb3.0")] + usb30, + } + + /// + public enum RemovableMemoryValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_4_inch_audio")] + Item1_4_inch_audio, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2_5_mm_audio")] + Item2_5_mm_audio, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3.0_v_ttl")] + Item30_v_ttl, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3_5_floppy")] + Item3_5_floppy, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3_5_mm_audio")] + Item3_5_mm_audio, + + /// + ata, + + /// + ata_flash_card, + + /// + audio_video_port, + + /// + bluetooth, + + /// + built_in_flash_memory, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cd-r")] + cdr, + + /// + cd_rw, + + /// + cdr_drive, + + /// + compact_disc, + + /// + compact_flash_card, + + /// + compact_flash_type_i_or_ii, + + /// + compactflash_type_i, + + /// + compactflash_type_ii, + + /// + component_video, + + /// + composite_video, + + /// + d_sub, + + /// + dmi, + + /// + dssi, + + /// + dvd_r, + + /// + dvd_rw, + + /// + dvi_x_1, + + /// + dvi_x_2, + + /// + dvi_x_4, + + /// + eide, + + /// + eisa, + + /// + ethernet, + + /// + express_card, + + /// + fibre_channel, + + /// + firewire_1600, + + /// + firewire_3200, + + /// + firewire_400, + + /// + firewire_800, + + /// + firewire_esata, + + /// + game_port, + + /// + gbic, + + /// + hdmi, + + /// + headphone, + + /// + hp_hsc, + + /// + hp_pb, + + /// + hs_mmc, + + /// + ibm_microdrive, + + /// + ide, + + /// + ieee_1284, + + /// + ieee_1394, + + /// + infrared, + + /// + internal_w_removable_media, + + /// + iomega_clik_disk, + + /// + isa, + + /// + isp, + + /// + lanc, + + /// + mca, + + /// + media_card, + + /// + memory_stick, + + /// + memory_stick_duo, + + /// + memory_stick_micro, + + /// + memory_stick_pro, + + /// + memory_stick_pro_duo, + + /// + memory_stick_pro_hg_duo, + + /// + memory_stick_select, + + /// + memory_stick_xc, + + /// + memory_stick_xc_hg_micro, + + /// + memory_stick_xc_micro, + + /// + micard, + + /// + micro_sdhc, + + /// + micro_sdxc, + + /// + microsd, + + /// + mini_dvd, + + /// + mini_hdmi, + + /// + mini_pci, + + /// + mini_sdhc, + + /// + mini_sdxc, + + /// + minisd, + + /// + mmc_micro, + + /// + multimedia_card, + + /// + multimedia_card_mobile, + + /// + multimedia_card_plus, + + /// + multipronged_audio, + + /// + nubus, + + /// + parallel_interface, + + /// + pc_card, + + /// + pci, + + /// + pci_64, + + /// + pci_64_hot_plug, + + /// + pci_64_hot_plug_33_mhz, + + /// + pci_64_hot_plug_66_mhz, + + /// + pci_express_x4, + + /// + pci_express_x8, + + /// + pci_hot_plug, + + /// + pci_raid, + + /// + pci_x, + + /// + pci_x_1, + + /// + pci_x_100_mhz, + + /// + pci_x_133_mhz, + + /// + pci_x_16, + + /// + pci_x_16_gb, + + /// + pci_x_4, + + /// + pci_x_66_mhz, + + /// + pci_x_8, + + /// + pci_x_hot_plug, + + /// + pci_x_hot_plug_133_mhz, + + /// + pcmcia, + + /// + pcmcia_ii, + + /// + pcmcia_iii, + + /// + pictbridge, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ps/2")] + ps2, + + /// + radio_frequency, + + /// + rs_mmc, + + /// + s_video, + + /// + sas, + + /// + sata_1_5_gb, + + /// + sata_3_0_gb, + + /// + sata_6_0_gb, + + /// + sbus, + + /// + scsi, + + /// + sdhc, + + /// + sdio, + + /// + sdxc, + + /// + secure_digital, + + /// + secure_mmc, + + /// + serial_interface, + + /// + sim_card, + + /// + smartmedia_card, + + /// + solid_state_drive, + + /// + spd, + + /// + springboard_module, + + /// + ssfdc, + + /// + superdisk, + + /// + transflash, + + /// + unknown, + + /// + usb, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.0")] + usb10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.1")] + usb11, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb3.0")] + usb30, + + /// + usb_docking_station, + + /// + usb_streaming, + + /// + vga, + + /// + xd_picture_card, + + /// + xd_picture_card_h, + + /// + xd_picture_card_m, + + /// + xd_picture_card_m_plus, + } + + /// + public enum GraphicsRAMTypeValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("72_pin_edo_simm")] + Item72_pin_edo_simm, + + /// + ddr2_sdram, + + /// + ddr3_sdram, + + /// + ddr4_sdram, + + /// + ddr5_sdram, + + /// + ddr_dram, + + /// + ddr_sdram, + + /// + dimm, + + /// + dram, + + /// + edo_dram, + + /// + eeprom, + + /// + eprom, + + /// + fpm_dram, + + /// + fpm_ram, + + /// + gddr3, + + /// + gddr4, + + /// + gddr5, + + /// + l2_cache, + + /// + micro_dimm, + + /// + pc2_4200, + + /// + pc2_4300, + + /// + pc2_5300, + + /// + pc2_5400, + + /// + pc2_6000, + + /// + pc_100_sdram, + + /// + pc_1066, + + /// + pc_133_sdram, + + /// + pc_1600, + + /// + pc_2100_ddr, + + /// + pc_2700_ddr, + + /// + pc_3000, + + /// + pc_3200_ddr, + + /// + pc_3500_ddr, + + /// + pc_3700, + + /// + pc_4000_ddr, + + /// + pc_4200, + + /// + pc_4300, + + /// + pc_4400, + + /// + pc_66_sdram, + + /// + pc_800, + + /// + rambus, + + /// + rdram, + + /// + rimm, + + /// + sdram, + + /// + sgram, + + /// + shared, + + /// + simm, + + /// + sipp, + + /// + sldram, + + /// + sodimm, + + /// + sorimm, + + /// + sram, + + /// + unknown, + + /// + vram, + + /// + wram, + } + + /// + public enum HardDriveInterfaceTypeValues + { + + /// + ata, + + /// + ata100, + + /// + ata133, + + /// + ata_2, + + /// + ata_3, + + /// + ata_4, + + /// + ata_5, + + /// + atapi, + + /// + dma, + + /// + eide, + + /// + eio, + + /// + esata, + + /// + esdi, + + /// + ethernet, + + /// + ethernet_100base_t, + + /// + ethernet_100base_tx, + + /// + ethernet_10_100_1000, + + /// + ethernet_10base_t, + + /// + fast_scsi, + + /// + fast_wide_scsi, + + /// + fata, + + /// + fc_al, + + /// + fc_al_2, + + /// + fdd, + + /// + fibre_channel, + + /// + firewire, + + /// + ide, + + /// + ieee_1284, + + /// + ieee_1394b, + + /// + iscsi, + + /// + lvds, + + /// + pc_card, + + /// + pci_express_x16, + + /// + pci_express_x4, + + /// + pci_express_x8, + + /// + raid, + + /// + scsi, + + /// + serial_ata, + + /// + serial_ata150, + + /// + serial_ata300, + + /// + serial_ata600, + + /// + serial_scsi, + + /// + solid_state, + + /// + ssa, + + /// + st412, + + /// + ultra2_scsi, + + /// + ultra2_wide_scsi, + + /// + ultra3_scsi, + + /// + ultra_160_scsi, + + /// + ultra_320_scsi, + + /// + ultra_ata, + + /// + ultra_scsi, + + /// + ultra_wide_scsi, + + /// + unknown, + + /// + usb, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb_1.1")] + usb_11, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb_2.0")] + usb_20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb_2.0_3.0")] + usb_20_30, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb_3.0")] + usb_30, + } + + /// + public enum SupportedImageTypeValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("3f_tiff")] + Item3f_tiff, + + /// + bmp, + + /// + canon_raw, + + /// + eps, + + /// + exif, + + /// + flashpix_fpx, + + /// + gif, + + /// + jpeg, + + /// + pcx, + + /// + pgpf, + + /// + pict, + + /// + png, + + /// + psd, + + /// + raw, + + /// + tga, + + /// + tiff, + + /// + unknown, + + /// + wif, + + /// + wmf, + } + + /// + public enum HardwareInterfaceValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_4_inch_audio")] + Item1_4_inch_audio, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2_5_mm_audio")] + Item2_5_mm_audio, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3.0_v_ttl")] + Item30_v_ttl, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3_5_floppy")] + Item3_5_floppy, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3_5_mm_audio")] + Item3_5_mm_audio, + + /// + ata, + + /// + ata_flash_card, + + /// + audio_video_port, + + /// + bluetooth, + + /// + built_in_flash_memory, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cd-r")] + cdr, + + /// + cd_rw, + + /// + cdr_drive, + + /// + compact_disc, + + /// + compact_flash_card, + + /// + compact_flash_type_i_or_ii, + + /// + compactflash_type_i, + + /// + compactflash_type_ii, + + /// + component_video, + + /// + composite_video, + + /// + d_sub, + + /// + dmi, + + /// + dssi, + + /// + dvd_r, + + /// + dvd_rw, + + /// + dvi_x_1, + + /// + dvi_x_2, + + /// + dvi_x_4, + + /// + eide, + + /// + eisa, + + /// + ethernet, + + /// + express_card, + + /// + fibre_channel, + + /// + firewire_1600, + + /// + firewire_3200, + + /// + firewire_400, + + /// + firewire_800, + + /// + firewire_esata, + + /// + game_port, + + /// + gbic, + + /// + hdmi, + + /// + headphone, + + /// + hp_hsc, + + /// + hp_pb, + + /// + hs_mmc, + + /// + ibm_microdrive, + + /// + ide, + + /// + ieee_1284, + + /// + infrared, + + /// + internal_w_removable_media, + + /// + iomega_clik_disk, + + /// + isa, + + /// + isp, + + /// + lanc, + + /// + mca, + + /// + media_card, + + /// + memory_stick, + + /// + memory_stick_duo, + + /// + memory_stick_micro, + + /// + memory_stick_pro, + + /// + memory_stick_pro_duo, + + /// + memory_stick_pro_hg_duo, + + /// + memory_stick_select, + + /// + memory_stick_xc, + + /// + memory_stick_xc_hg_micro, + + /// + memory_stick_xc_micro, + + /// + micard, + + /// + micro_sdhc, + + /// + micro_sdxc, + + /// + microsd, + + /// + mini_dvd, + + /// + mini_hdmi, + + /// + mini_pci, + + /// + mini_sdhc, + + /// + mini_sdxc, + + /// + minisd, + + /// + mmc_micro, + + /// + multimedia_card, + + /// + multimedia_card_mobile, + + /// + multimedia_card_plus, + + /// + multipronged_audio, + + /// + nubus, + + /// + parallel_interface, + + /// + pc_card, + + /// + pci, + + /// + pci_64, + + /// + pci_64_hot_plug, + + /// + pci_64_hot_plug_33_mhz, + + /// + pci_64_hot_plug_66_mhz, + + /// + pci_express_x4, + + /// + pci_express_x8, + + /// + pci_hot_plug, + + /// + pci_raid, + + /// + pci_x, + + /// + pci_x_1, + + /// + pci_x_100_mhz, + + /// + pci_x_16, + + /// + pci_x_16_gb, + + /// + pci_x_4, + + /// + pci_x_66_mhz, + + /// + pci_x_8, + + /// + pci_x_hot_plug, + + /// + pci_x_hot_plug_133_mhz, + + /// + pcmcia, + + /// + pcmcia_ii, + + /// + pcmcia_iii, + + /// + pictbridge, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ps/2")] + ps2, + + /// + radio_frequency, + + /// + rs_mmc, + + /// + s_video, + + /// + sas, + + /// + sata_1_5_gb, + + /// + sata_3_0_gb, + + /// + sata_6_0_gb, + + /// + sbus, + + /// + scsi, + + /// + sdhc, + + /// + sdio, + + /// + sdxc, + + /// + secure_digital, + + /// + secure_mmc, + + /// + serial_interface, + + /// + sim_card, + + /// + smartmedia_card, + + /// + solid_state_drive, + + /// + spd, + + /// + springboard_module, + + /// + ssfdc, + + /// + superdisk, + + /// + transflash, + + /// + unknown, + + /// + usb, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.0")] + usb10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb1.1")] + usb11, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb2.0")] + usb20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("usb3.0")] + usb30, + + /// + usb_docking_station, + + /// + usb_streaming, + + /// + vga, + + /// + xd_picture_card, + + /// + xd_picture_card_h, + + /// + xd_picture_card_m, + + /// + xd_picture_card_m_plus, + + /// + ieee_1394, + + /// + pci_x_133_mhz, + } + + /// + public enum VideotapeRecordingSpeedType + { + + /// + unknown, + + /// + sp, + + /// + ep, + + /// + slp, + + /// + lp, + + /// + Unknown, + + /// + SP, + + /// + EP, + + /// + SLP, + + /// + LP, + } + + /// + public enum ThreeDTechnologyValues + { + + /// + active, + + /// + anaglyphic, + + /// + auto_stereoscopic, + + /// + passive, + } + + /// + public enum WirelessTypeValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.4_ghz_radio_frequency")] + Item24_ghz_radio_frequency, + + /// + [System.Xml.Serialization.XmlEnumAttribute("5.8_ghz_radio_frequency")] + Item58_ghz_radio_frequency, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_A")] + Item802_11_A, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_AB")] + Item802_11_AB, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_ABG")] + Item802_11_ABG, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_AG")] + Item802_11_AG, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_B")] + Item802_11_B, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_BGN")] + Item802_11_BGN, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_G")] + Item802_11_G, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_G_108Mbps")] + Item802_11_G_108Mbps, + + /// + [System.Xml.Serialization.XmlEnumAttribute("802_11_N")] + Item802_11_N, + + /// + [System.Xml.Serialization.XmlEnumAttribute("900_mhz_radio_frequency")] + Item900_mhz_radio_frequency, + + /// + bluetooth, + + /// + dect, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dect_6.0")] + dect_60, + + /// + infrared, + + /// + irda, + + /// + radio_frequency, + } + + /// + public enum ProcessorTypeValues + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("5x86")] + Item5x86, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68000")] + Item68000, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68030")] + Item68030, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68040")] + Item68040, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68328")] + Item68328, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68882")] + Item68882, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68ez328")] + Item68ez328, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68lc040")] + Item68lc040, + + /// + [System.Xml.Serialization.XmlEnumAttribute("6x86")] + Item6x86, + + /// + [System.Xml.Serialization.XmlEnumAttribute("6x86mx")] + Item6x86mx, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8031")] + Item8031, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8032")] + Item8032, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80386")] + Item80386, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486")] + Item80486, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486dx2")] + Item80486dx2, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486slc")] + Item80486slc, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486sx")] + Item80486sx, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c186")] + Item80c186, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c31")] + Item80c31, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c32")] + Item80c32, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c88")] + Item80c88, + + /// + alpha_21064a, + + /// + alpha_21164, + + /// + alpha_21164a, + + /// + alpha_21264, + + /// + alpha_21264a, + + /// + alpha_21264b, + + /// + alpha_21264c, + + /// + alpha_21264d, + + /// + alpha_21364, + + /// + alpha_ev7, + + /// + amd_a_series, + + /// + amd_c_series, + + /// + amd_e_series, + + /// + amd_v_series, + + /// + arm610, + + /// + arm710, + + /// + arm_7100, + + /// + arm710a, + + /// + arm710t, + + /// + arm7500fe, + + /// + athlon, + + /// + Athlon_2650e, + + /// + Athlon_2850e, + + /// + athlon_4, + + /// + athlon_64, + + /// + Athlon_64_2650, + + /// + Athlon_64_3500, + + /// + Athlon_64_4200_plus, + + /// + Athlon_64_4800_plus, + + /// + athlon_64_for_dtr, + + /// + athlon_64_fx, + + /// + Athlon_64_Single_Core_TF_20, + + /// + Athlon_64_TF_36, + + /// + athlon_64_x2, + + /// + Athlon_64_X2_3600_plus, + + /// + Athlon_64_X2_4000_plus, + + /// + Athlon_64_X2_4200_plus, + + /// + Athlon_64_X2_4450B, + + /// + Athlon_64_X2_4800, + + /// + Athlon_64_X2_5000_plus, + + /// + Athlon_64_X2_5050, + + /// + Athlon_64_X2_5200_plus, + + /// + Athlon_64_X2_5400_plus, + + /// + Athlon_64_X2_5600_plus, + + /// + Athlon_64_X2_6000_plus, + + /// + Athlon_64_X2_6400_plus, + + /// + Athlon_64_X2_Dual_Core_3800_plus, + + /// + Athlon_64_X2_Dual_Core_4400, + + /// + Athlon_64_X2_Dual_Core_4450, + + /// + Athlon_64_X2_Dual_Core_L310, + + /// + Athlon_64_X2_Dual_Core_TK_42, + + /// + Athlon_64_X2_QL_64_Dual_Core, + + /// + Athlon_Dual_Core_QL62A, + + /// + Athlon_II, + + /// + Athlon_II_170u, + + /// + Athlon_II_Dual_Core_240e, + + /// + Athlon_II_Dual_Core_245, + + /// + Athlon_II_Dual_Core_260, + + /// + Athlon_II_Dual_Core_260u, + + /// + Athlon_II_Dual_Core_M320, + + /// + Athlon_II_Dual_Core_P320, + + /// + Athlon_II_Dual_Core_P360, + + /// + Athlon_II_Neo_Single_Core_K125, + + /// + Athlon_II_Neo_X2_Dual_Core_K325, + + /// + Athlon_II_Neo_X2_Dual_Core_K625, + + /// + Athlon_II_Single_Core_160u, + + /// + Athlon_II_X2_B24, + + /// + Athlon_II_X2_Dual_Core_170u, + + /// + Athlon_II_X2_Dual_Core_215, + + /// + Athlon_II_X2_Dual_Core_235e, + + /// + Athlon_II_X2_Dual_Core_240, + + /// + Athlon_II_X2_Dual_Core_240e, + + /// + Athlon_II_X2_Dual_Core_245, + + /// + Athlon_II_X2_Dual_Core_250, + + /// + Athlon_II_X2_Dual_Core_250U, + + /// + Athlon_II_X2_Dual_Core_255, + + /// + Athlon_II_X2_Dual_Core_3250e, + + /// + Athlon_II_X2_Dual_Core_M300, + + /// + Athlon_II_X2_Dual_Core_M320, + + /// + Athlon_II_X2_Dual_Core_M340, + + /// + Athlon_II_X2_Dual_Core_M520, + + /// + Athlon_II_X2_Dual_Core_P320, + + /// + Athlon_II_X2_Dual_Core_P340, + + /// + Athlon_II_X2_Dual_Core_P360, + + /// + Athlon_II_X2_Dual_Core_QL_60, + + /// + Athlon_II_X2_Dual_Core_QL_62, + + /// + Athlon_II_X2_Dual_Core_TK_53, + + /// + Athlon_II_X2_Dual_Core_TK_57, + + /// + athlon_ii_x3, + + /// + Athlon_II_X3_Triple_Core_400E, + + /// + Athlon_II_X3_Triple_Core_425, + + /// + Athlon_II_X3_Triple_Core_435, + + /// + athlon_ii_x4, + + /// + Athlon_II_X4_Dual_Core_240e, + + /// + Athlon_II_X4_Quad_Core, + + /// + Athlon_II_X4_Quad_Core_600E, + + /// + Athlon_II_X4_Quad_Core_605e, + + /// + Athlon_II_X4_Quad_Core_615e, + + /// + Athlon_II_X4_Quad_Core_620, + + /// + Athlon_II_X4_Quad_Core_630, + + /// + Athlon_II_X4_Quad_Core_635, + + /// + Athlon_II_X4_Quad_Core_640, + + /// + Athlon_II_X4_Quad_Core_645, + + /// + Athlon_LE_1640, + + /// + athlon_mp, + + /// + Athlon_Neo_Single_Core_MV_40, + + /// + Athlon_Neo_X2_Dual_Core_L325, + + /// + Athlon_Neo_X2_Dual_Core_L335, + + /// + Athlon_X2_Dual_Core_4200_plus, + + /// + Athlon_X2_Dual_Core_5000, + + /// + Athlon_X2_Dual_Core_5000_plus, + + /// + Athlon_X2_Dual_Core_5400_plus, + + /// + Athlon_X2_Dual_Core_7550, + + /// + Athlon_X2_Dual_Core_7750, + + /// + Athlon_X2_Dual_Core_QL_66, + + /// + athlon_xp, + + /// + athlon_xp_m, + + /// + Atom_D410, + + /// + Atom_D425, + + /// + Atom_D510, + + /// + Atom_D525, + + /// + Atom_N230, + + /// + Atom_N270, + + /// + Atom_N280, + + /// + Atom_N330, + + /// + Atom_N470, + + /// + Atom_N475, + + /// + Atom_N550, + + /// + Atom_Silverthorne, + + /// + Atom_Z330, + + /// + Atom_Z515, + + /// + bulverde, + + /// + c167cr, + + /// + celeron, + + /// + Celeron_450, + + /// + Celeron_585, + + /// + Celeron_743, + + /// + Celeron_900, + + /// + Celeron_925, + + /// + Celeron_D_Processor_360, + + /// + Celeron_D_Processor_420, + + /// + Celeron_D_Processor_440, + + /// + Celeron_E1200, + + /// + Celeron_E1500, + + /// + Celeron_E3200, + + /// + Celeron_E3300, + + /// + Celeron_M_353, + + /// + Celeron_M_440, + + /// + Celeron_M_520, + + /// + Celeron_M_530, + + /// + Celeron_M_540, + + /// + Celeron_M_550, + + /// + Celeron_M_560, + + /// + Celeron_M_575, + + /// + Celeron_M_585, + + /// + Celeron_M_T1400, + + /// + Celeron_SU2300, + + /// + Celeron_T1500, + + /// + Celeron_T3000, + + /// + Celeron_T4500, + + /// + Core_2_Duo, + + /// + Core_2_Duo_E2200, + + /// + Core_2_Duo_E4000, + + /// + Core_2_Duo_E4300, + + /// + Core_2_Duo_E4400, + + /// + Core_2_Duo_E4500, + + /// + Core_2_Duo_E4600, + + /// + Core_2_Duo_E5500, + + /// + Core_2_Duo_E6300, + + /// + Core_2_Duo_E6400, + + /// + Core_2_Duo_E6420, + + /// + Core_2_Duo_E6600, + + /// + Core_2_Duo_E7200, + + /// + Core_2_Duo_E7300, + + /// + Core_2_Duo_E7400, + + /// + Core_2_Duo_E7500, + + /// + Core_2_Duo_E7600, + + /// + Core_2_Duo_E8400, + + /// + Core_2_Duo_E8500, + + /// + Core_2_Duo_L7500, + + /// + Core_2_Duo_P3750, + + /// + Core_2_Duo_P7350, + + /// + Core_2_Duo_P7370, + + /// + Core_2_Duo_P7450, + + /// + Core_2_Duo_P7550, + + /// + Core_2_Duo_P8400, + + /// + Core_2_Duo_P8600, + + /// + Core_2_Duo_P8700, + + /// + Core_2_Duo_P8800, + + /// + Core_2_Duo_P9500, + + /// + Core_2_Duo_P9600, + + /// + Core_2_Duo_SL7100, + + /// + Core_2_Duo_SL9300, + + /// + Core_2_Duo_SL9400, + + /// + Core_2_Duo_SL9600, + + /// + Core_2_Duo_SP9400, + + /// + Core_2_Duo_SU4100, + + /// + Core_2_Duo_SU7300, + + /// + Core_2_Duo_SU9300, + + /// + Core_2_Duo_SU9400, + + /// + Core_2_Duo_SU_9600, + + /// + Core_2_Duo_T2310, + + /// + Core_2_Duo_T2330, + + /// + Core_2_Duo_T2390, + + /// + Core_2_Duo_T2450, + + /// + Core_2_Duo_T4200, + + /// + Core_2_Duo_T5200, + + /// + Core_2_Duo_T5250, + + /// + Core_2_Duo_T5270, + + /// + Core_2_Duo_T5300, + + /// + Core_2_Duo_T5450, + + /// + Core_2_Duo_T5470, + + /// + Core_2_Duo_T5500, + + /// + Core_2_Duo_T5550, + + /// + Core_2_Duo_T5600, + + /// + Core_2_Duo_T5670, + + /// + Core_2_Duo_T5750, + + /// + Core_2_Duo_T5800, + + /// + Core_2_Duo_T5850, + + /// + Core_2_Duo_T5870, + + /// + Core_2_Duo_T6400, + + /// + Core_2_Duo__T6500, + + /// + Core_2_Duo_T6570, + + /// + Core_2_Duo_T6600, + + /// + Core_2_Duo_T6670, + + /// + Core_2_Duo_T7100, + + /// + Core_2_Duo_T7200, + + /// + Core_2_Duo_T7250, + + /// + Core_2_Duo_T7270, + + /// + Core_2_Duo_T7300, + + /// + Core_2_Duo_T7350, + + /// + Core_2_Duo_T7400, + + /// + Core_2_Duo_T7500, + + /// + Core_2_Duo_T7700, + + /// + Core_2_Duo_T8100, + + /// + Core_2_Duo_T8300, + + /// + Core_2_Duo_T8400, + + /// + Core_2_Duo_T8700, + + /// + Core_2_Duo_T9300, + + /// + Core_2_Duo_T9400, + + /// + Core_2_Duo_T9500, + + /// + Core_2_Duo_T9550, + + /// + Core_2_Duo_T9600, + + /// + Core_2_Duo_T9900, + + /// + Core_2_Duo_U1400, + + /// + Core_2_Duo_U2200, + + /// + Core_2_Duo_U7500, + + /// + Core_2_Duo_U7700, + + /// + Core_2_Quad_9600, + + /// + Core_2_Quad_Q6600, + + /// + Core_2_Quad_Q6700, + + /// + Core_2_Quad_Q8200, + + /// + Core_2_Quad_Q8200S, + + /// + Core_2_Quad_Q8300, + + /// + Core_2_Quad_Q8400, + + /// + Core_2_Quad_Q8400S, + + /// + Core_2_Quad_Q9000, + + /// + Core_2_Quad_Q9300, + + /// + Core_2_Quad_Q9400, + + /// + Core_2_Quad_Q9400S, + + /// + Core_2_Quad_Q9450, + + /// + Core_2_Quad_Q9500, + + /// + Core_2_Quad_Q9550, + + /// + Core_2_Solo_SU3500, + + /// + Core_Duo_1V_L2400, + + /// + Core_Duo_LV_L2400, + + /// + Core_Duo_T2250, + + /// + Core_Duo_T2400, + + /// + Core_Duo_U2400, + + /// + core_i3, + + /// + Core_i3_2330M, + + /// + Core_i3_330UM, + + /// + Core_i3_350M, + + /// + Core_i3_370M, + + /// + Core_i3_380M, + + /// + Core_i3_380UM, + + /// + Core_i3_520M, + + /// + Core_i3_530, + + /// + Core_i3_530M, + + /// + Core_i3_540, + + /// + Core_i3_540M, + + /// + Core_i3_550, + + /// + core_i5, + + /// + Core_i5_2300, + + /// + Core_i5_2520M, + + /// + Core_i5_2540M, + + /// + Core_i5_430M, + + /// + Core_i5_430UM, + + /// + Core_i5_450M, + + /// + Core_i5_460M, + + /// + Core_i5_470UM, + + /// + Core_i5_480M, + + /// + Core_i5_560M, + + /// + Core_i5_650, + + /// + Core_i5_655K, + + /// + Core_i5_660, + + /// + Core_i5_750, + + /// + Core_i5_760, + + /// + Core_i5__760, + + /// + core_i7, + + /// + Core_i7_2600, + + /// + Core_i7_2620QM, + + /// + Core_i7_2630QM, + + /// + Core_i7_2720QM, + + /// + Core_i7_2820QM, + + /// + Core_i7_4800MQ, + + /// + Core_i7_620LM, + + /// + Core_i7_620M, + + /// + Core_i7_640LM, + + /// + Core_i7_640M, + + /// + Core_i7_640UM, + + /// + Core_i7_680UM, + + /// + Core_i7_740QM, + + /// + Core_i7_860, + + /// + Core_i7_870, + + /// + Core_i7_875K, + + /// + Core_i7_920, + + /// + Core_i7_930, + + /// + Core_i7_940, + + /// + Core_i7_950, + + /// + Core_i7_960, + + /// + Core_i7_980, + + /// + Core_Solo_U1500, + + /// + crusoe_5800, + + /// + crusoe_tm3200, + + /// + crusoe_tm5500, + + /// + crusoe_tm5600, + + /// + C_Series_C_50, + + /// + cyrix_iii, + + /// + cyrix_mii, + + /// + duron, + + /// + eden, + + /// + eden_esp, + + /// + eden_esp_4000, + + /// + eden_esp_5000, + + /// + eden_esp_6000, + + /// + eden_esp_7000, + + /// + efficeon, + + /// + efficeon_tm8000, + + /// + efficeon_tm8600, + + /// + efficion_8800, + + /// + elansc300, + + /// + elansc310, + + /// + elansc400, + + /// + E_Series_Dual_Core_E_350, + + /// + E_Series_Processor_E_240, + + /// + extremecpu, + + /// + fx_series_eight_core_fx_8100, + + /// + fx_series_eight_core_fx_8120, + + /// + fx_series_eight_core_fx_8150, + + /// + fx_series_quad_core_fx_4100, + + /// + fx_series_quad_core_fx_4170, + + /// + fx_series_quad_core_fx_b4150, + + /// + fx_series_six_core_fx_6100, + + /// + fx_series_six_core_fx_6120, + + /// + g3, + + /// + g4, + + /// + g5, + + /// + geode_gx, + + /// + Geode_GX, + + /// + geode_gx1, + + /// + geode_gxlv, + + /// + geode_gxm, + + /// + geoden_x, + + /// + h8s, + + /// + handheld_engine_cxd2230ga, + + /// + handheld_engine_cxd2230ga_temp, + + /// + hitachi_sh3, + + /// + hypersparc, + + /// + intel_atom, + + /// + intel_atom_230, + + /// + intel_atom_330, + + /// + intel_atom_n270, + + /// + intel_atom_n280, + + /// + intel_atom_n450, + + /// + intel_atom_n455, + + /// + intel_atom_z520, + + /// + intel_atom_z530, + + /// + intel_celeron_d, + + /// + intel_centrino, + + /// + intel_centrino_2, + + /// + intel_core_2_duo, + + /// + intel_core_2_duo_mobile, + + /// + intel_core_2_extreme, + + /// + intel_core_2_quad, + + /// + intel_core_2_solo, + + /// + intel_core_duo, + + /// + intel_core_solo, + + /// + Intel_Mobile_CPU, + + /// + intel_pentium_4_ht, + + /// + intel_pentium_d, + + /// + intel_strongarm, + + /// + intel_xeon, + + /// + intel_xeon_mp, + + /// + intel_xscale_pxa250, + + /// + intel_xscale_pxa255, + + /// + intel_xscale_pxa263, + + /// + itanium, + + /// + itanium_2, + + /// + k5, + + /// + k6_2, + + /// + k6_2e, + + /// + k6_2_plus, + + /// + k6_3, + + /// + k6_iii_plus, + + /// + k6_mmx, + + /// + mc68328, + + /// + mc68ez328, + + /// + mc68sz328, + + /// + mc68vz328, + + /// + mc88110, + + /// + mediagx, + + /// + mediagxi, + + /// + mediagxlv, + + /// + mediagxm, + + /// + microsparc_ii, + + /// + microsparc_iiep, + + /// + mobile_athlon_4, + + /// + mobile_athlon_xp_m, + + /// + mobile_athon_64, + + /// + mobile_celeron, + + /// + mobile_duron, + + /// + mobile_k6_2_plus, + + /// + mobile_pentium_2, + + /// + mobile_pentium_3, + + /// + mobile_pentium_4, + + /// + mobile_pentium_4_ht, + + /// + mobile_sempron, + + /// + motorola_dragonball, + + /// + nec_mips, + + /// + none, + + /// + omap1710, + + /// + omap310, + + /// + omap311, + + /// + omap850, + + /// + opteron, + + /// + pa_7100lc, + + /// + pa_7200, + + /// + pa_7300lc, + + /// + pa_8000, + + /// + pa_8200, + + /// + pa_8500, + + /// + pa_8600, + + /// + pa_8700, + + /// + pa_8700_plus, + + /// + pa_8800, + + /// + pa_8900, + + /// + pentium, + + /// + pentium_2, + + /// + pentium_3, + + /// + pentium_3_xeon, + + /// + pentium_4, + + /// + pentium_4_extreme_edition, + + /// + Pentium_D_925, + + /// + Pentium_D_T2060, + + /// + pentium_dual_core, + + /// + Pentium_E2140, + + /// + Pentium_E2160, + + /// + Pentium_E2180, + + /// + Pentium_E2200, + + /// + Pentium_E2220, + + /// + Pentium_E3200, + + /// + Pentium_E4400, + + /// + Pentium_E5200, + + /// + Pentium_E5300, + + /// + Pentium_E5301, + + /// + Pentium_E5400, + + /// + Pentium_E5500, + + /// + Pentium_E5700, + + /// + Pentium_E5800, + + /// + Pentium_E6300, + + /// + Pentium_E6600, + + /// + Pentium_E6700, + + /// + Pentium_E7200, + + /// + Pentium_E7400, + + /// + Pentium_E8400, + + /// + Pentium_G6950, + + /// + pentium_iii_e, + + /// + pentium_iii_s, + + /// + pentium_ii_xeon, + + /// + pentium_m, + + /// + Pentium_M_738, + + /// + Pentium_M_778, + + /// + pentium_mmx, + + /// + Pentium_P6000, + + /// + Pentium_P6100, + + /// + Pentium_P6200, + + /// + pentium_pro, + + /// + Pentium_SU2700, + + /// + Pentium_SU4100, + + /// + Pentium_T2080, + + /// + Pentium_T2130, + + /// + Pentium_T2310, + + /// + Pentium_T2330, + + /// + Pentium_T2350, + + /// + Pentium_T2370, + + /// + Pentium_T2390, + + /// + Pentium_T3200, + + /// + Pentium_T3400, + + /// + Pentium_T4200, + + /// + Pentium_T4300, + + /// + Pentium_T4400, + + /// + Pentium_T4500, + + /// + Pentium_T6570, + + /// + Pentium_U5400, + + /// + Pentium_U5600, + + /// + pentium_xeon, + + /// + phenom_dual_core, + + /// + phenom_ii_x2, + + /// + Phenom_II_X2_Dual_Core_511, + + /// + Phenom_II_X2_Dual_Core_550, + + /// + Phenom_II_X2_Dual_Core_N620, + + /// + Phenom_II_X2_Dual_Core_N640, + + /// + Phenom_II_X2_Dual_Core_N650, + + /// + Phenom_II_X2_Dual_Core_N660, + + /// + phenom_ii_x3, + + /// + Phenom_II_X3_Triple_Core_8400, + + /// + Phenom_II_X3_Triple_Core_8450, + + /// + Phenom_II_X3_Triple_Core_8550, + + /// + Phenom_II_X3_Triple_Core_8650, + + /// + Phenom_II_X3_Triple_Core_B75, + + /// + Phenom_II_X3_Triple_Core_N830, + + /// + Phenom_II_X3_Triple_Core_N850, + + /// + Phenom_II_X3_Triple_Core_P820, + + /// + Phenom_II_X3_Triple_Core_P840, + + /// + Phenom_II_X3_Triple_Core_P860, + + /// + phenom_ii_x4, + + /// + Phenom_II_X4_Quad_Core_810, + + /// + Phenom_II_X4_Quad_Core_820, + + /// + Phenom_II_X4_Quad_Core_830, + + /// + Phenom_II_X4_Quad_Core_840T, + + /// + Phenom_II_X4_Quad_Core_910, + + /// + Phenom_II_X4_Quad_Core_9100E, + + /// + Phenom_II_X4_Quad_Core_9150, + + /// + Phenom_II_X4_Quad_Core_920, + + /// + Phenom_II_X4_Quad_Core_925, + + /// + Phenom_II_X4_Quad_Core_9350, + + /// + Phenom_II_X4_Quad_Core_945, + + /// + Phenom_II_X4_Quad_Core_9450, + + /// + Phenom_II_X4_Quad_Core_9500, + + /// + Phenom_II_X4_Quad_Core_955, + + /// + Phenom_II_X4_Quad_Core_9550, + + /// + Phenom_II_X4_Quad_Core_9600, + + /// + Phenom_II_X4_Quad_Core_965, + + /// + Phenom_II_X4_Quad_Core_9650, + + /// + Phenom_II_X4_Quad_Core_9750, + + /// + Phenom_II_X4_Quad_Core_9850, + + /// + Phenom_II_X4_Quad_Core_9950, + + /// + Phenom_II_X4_Quad_Core_N820, + + /// + Phenom_II_X4_Quad_Core_N930, + + /// + Phenom_II_X4_Quad_Core_N950, + + /// + Phenom_II_X4_Quad_Core_P920, + + /// + Phenom_II_X4_Quad_Core_P940, + + /// + Phenom_II_X4_Quad_Core_P960, + + /// + phenom_ii_x6, + + /// + Phenom_II_X6_Six_Core_1035T, + + /// + Phenom_II_X6_Six_Core_1045T, + + /// + Phenom_II_X6_Six_Core_1055T, + + /// + Phenom_II_X6_Six_Core_1090T, + + /// + phenom_quad_core, + + /// + phenom_triple_core, + + /// + power3, + + /// + power3_ii, + + /// + power4, + + /// + power4_plus, + + /// + power5, + + /// + powerpc, + + /// + powerpc_403, + + /// + powerpc_403ga, + + /// + powerpc_403_gcx, + + /// + powerpc_440gx, + + /// + powerpc_601, + + /// + powerpc_603, + + /// + powerpc_603e, + + /// + powerpc_603ev, + + /// + powerpc_604, + + /// + powerpc_604e, + + /// + powerpc_740_g3, + + /// + powerpc_750cx, + + /// + powerpc_750_g3, + + /// + powerpc_970, + + /// + powerpc_rs64, + + /// + powerpc_rs64_ii, + + /// + powerpc_rs64_iii, + + /// + powerpc_rs64_iv, + + /// + pr31700, + + /// + r10000, + + /// + r12000, + + /// + r12000a, + + /// + r14000, + + /// + r14000a, + + /// + r16000, + + /// + r16000a, + + /// + r16000b, + + /// + r3900, + + /// + r3910, + + /// + r3912, + + /// + r4000, + + /// + r4300, + + /// + r4310, + + /// + r4640, + + /// + r4700, + + /// + r5000, + + /// + r5230, + + /// + rm5231, + + /// + s3c2410, + + /// + s3c2440, + + /// + s3c2442, + + /// + sa_110, + + /// + sa_1100, + + /// + sa_1110, + + /// + sempron, + + /// + Sempron_140, + + /// + Sempron_3500_plus, + + /// + Sempron_3600_plus, + + /// + Sempron_LE_1250, + + /// + Sempron_LE_1300, + + /// + Sempron_M100, + + /// + Sempron_M120, + + /// + sh_4, + + /// + sh7709a, + + /// + sis550, + + /// + snapdragon, + + /// + sparc, + + /// + sparc64v, + + /// + sparc_ii, + + /// + supersparc, + + /// + supersparc_ii, + + /// + tegra, + + /// + tegra_2_0, + + /// + tegra_250, + + /// + tegra_3_0, + + /// + texas_instruments_omap1510, + + /// + tm_44, + + /// + tmpr3922au, + + /// + turbosparc, + + /// + turion_64, + + /// + turion_64_x2, + + /// + Turion_64_X2_Dual_Core_RM_70, + + /// + Turion_64_X2_Dual_Core_RM_72, + + /// + Turion_64_X2_Dual_Core_TL_52, + + /// + Turion_64_X2_Dual_Core_TL_56, + + /// + Turion_64_X2_Mobile, + + /// + Turion_64_X2_RM_74, + + /// + Turion_64_X2_TK_53, + + /// + Turion_64_X2_TK_55, + + /// + Turion_64_X2_TK_57, + + /// + Turion_64_X2_TK_58, + + /// + Turion_64_X2_TL_50, + + /// + Turion_64_X2_TL_57, + + /// + Turion_64_X2_TL_58, + + /// + Turion_64_X2_TL_60, + + /// + Turion_64_X2_TL_62, + + /// + Turion_64_X2_TL_64_Gold, + + /// + Turion_64_X2_TL_66, + + /// + Turion_64_X2_Ultra_ZM_82, + + /// + Turion_64_X2_Ultra_ZM_85, + + /// + Turion_64_X2_Ultra_ZM_87, + + /// + Turion_64_X2_ZM_72, + + /// + Turion_64_X2_ZM_74, + + /// + Turion_64_X2_ZM_80, + + /// + Turion_II_Neo_X2_Dual_Core_K625, + + /// + Turion_II_Neo_X2_Dual_Core_L625, + + /// + Turion_II_Ultra_X2_Dual_Core_M600, + + /// + Turion_II_Ultra_X2_Dual_Core_M620, + + /// + Turion_II_X2_Dual_Core_M300, + + /// + Turion_II_X2_Dual_Core_M500, + + /// + Turion_II_X2_Dual_Core_M520, + + /// + Turion_II_X2_Dual_Core_P520, + + /// + Turion_II_X2_Dual_Core_P540, + + /// + Turion_II_X2_Dual_Core_P560, + + /// + Turion_X2_Dual_Core_RM_75, + + /// + Turion_X2_Ultra_Dual_Core_ZM_85, + + /// + tx3922, + + /// + ultrasparc_i, + + /// + ultrasparc_ii, + + /// + ultrasparc_iie, + + /// + ultrasparc_iii, + + /// + ultrasparc_iii_cu, + + /// + ultrasparc_iiii, + + /// + ultrasparc_iii_plus, + + /// + ultrasparc_iis, + + /// + ultrasparc_iv, + + /// + ultrasparc_iv_plus, + + /// + ultrasparc_s400, + + /// + ultrasparc_t1, + + /// + unknown, + + /// + v25, + + /// + v30, + + /// + v30mx, + + /// + via_cyrix_c3, + + /// + vr4111, + + /// + vr4121, + + /// + vr4122, + + /// + vr4131, + + /// + vr4181, + + /// + vr4300, + + /// + V_Series_Single_Core_V105, + + /// + V_Series_Single_Core_V120, + + /// + V_Series_Single_Core_V140, + + /// + winchip_2, + + /// + winchip_c6, + + /// + Xeon, + + /// + Xeon_3000, + + /// + Xeon_3530, + + /// + Xeon_5000, + + /// + Xeon_5400, + + /// + Xeon_E5504, + + /// + Xeon_E5506, + + /// + Xeon_E5520, + + /// + Xeon_E5530, + + /// + Xeon_W3503, + + /// + Xeon_W5580, + + /// + Xeon_X5560, + + /// + xscale, + + /// + xscale_pxa260, + + /// + xscale_pxa261, + + /// + xscale_pxa262, + + /// + xscale_pxa270, + + /// + xscale_pxa272, + + /// + xscale_pxa901, + + /// + celeron_3865u, + + /// + ryzen_5_2600h, + + /// + core_i7_4810HQ, + + /// + xeon_silver_4116t, + + /// + xeon_silver_4116, + + /// + xeon_silver_4114t, + + /// + xeon_silver_4114, + + /// + xeon_silver_4112, + + /// + xeon_silver_4110, + + /// + xeon_silver_4109t, + + /// + xeon_silver_4108, + + /// + xeon_platinum_8180m, + + /// + xeon_platinum_8180, + + /// + xeon_platinum_8176m, + + /// + xeon_platinum_8176f, + + /// + xeon_platinum_8176, + + /// + xeon_platinum_8170m, + + /// + xeon_platinum_8170, + + /// + xeon_platinum_8168, + + /// + xeon_platinum_8164, + + /// + xeon_platinum_8160t, + + /// + xeon_platinum_8160m, + + /// + xeon_platinum_8160f, + + /// + xeon_platinum_8160, + + /// + xeon_platinum_8158, + + /// + xeon_platinum_8156, + + /// + xeon_platinum_8153, + + /// + xeon_gold_6154, + + /// + xeon_gold_6152, + + /// + xeon_gold_6150, + + /// + xeon_gold_6148f, + + /// + xeon_gold_6148, + + /// + xeon_gold_6146, + + /// + xeon_gold_6144, + + /// + xeon_gold_6142m, + + /// + xeon_gold_6142f, + + /// + xeon_gold_6142, + + /// + xeon_gold_6140m, + + /// + xeon_gold_6140, + + /// + xeon_gold_6138t, + + /// + xeon_gold_6138f, + + /// + xeon_gold_6138, + + /// + xeon_gold_6136, + + /// + xeon_gold_6134m, + + /// + xeon_gold_6134, + + /// + xeon_gold_6132, + + /// + xeon_gold_6130t, + + /// + xeon_gold_6130f, + + /// + xeon_gold_6130, + + /// + xeon_gold_6128, + + /// + xeon_gold_6126t, + + /// + xeon_gold_6126f, + + /// + xeon_gold_6126, + + /// + xeon_gold_5122, + + /// + xeon_gold_5120t, + + /// + xeon_gold_5120, + + /// + xeon_gold_5119t, + + /// + xeon_gold_5118, + + /// + xeon_gold_5115, + + /// + xeon_bronze_3106, + + /// + xeon_bronze_3104, + + /// + ryzen_threadripper_1950x, + + /// + ryzen_threadripper_1920x, + + /// + ryzen_threadripper_1900x, + + /// + ryzen_7_pro_2700u, + + /// + amd_ryzen_7_pro_1700x, + + /// + amd_ryzen_7_pro_1700, + + /// + ryzen_7_2700u, + + /// + amd_ryzen_7_1800x, + + /// + amd_ryzen_7_1700x, + + /// + amd_ryzen_7_1700, + + /// + amd_ryzen_5_pro_1600, + + /// + amd_ryzen_5_pro_1500, + + /// + ryzen_5_2500u, + + /// + ryzen_5_2400ge, + + /// + amd_ryzen_5_1600x, + + /// + amd_ryzen_5_1600, + + /// + amd_ryzen_5_1500x, + + /// + amd_ryzen_5_1400, + + /// + ryzen_3_pro_2300u, + + /// + amd_ryzen_3_pro_1300, + + /// + amd_ryzen_3_pro_1200, + + /// + ryzen_3_2300u, + + /// + ryzen_3_2200u, + + /// + ryzen_3_2200ge, + + /// + amd_ryzen_3_1300x, + + /// + amd_ryzen_3_1200, + + /// + pentium_gold_g5500t, + + /// + pentium_gold_g5400t, + + /// + core_i9_8950hk, + + /// + core_i9_7980xe, + + /// + core_i9_7960x, + + /// + core_i9_7940x, + + /// + core_i9_7920x, + + /// + core_i9_7900x, + + /// + core_i9_7820x, + + /// + core_i9_7800x, + + /// + core_i9_7740x, + + /// + core_i9_7640x, + + /// + core_i7_8750h, + + /// + core_i7_8700t, + + /// + core_i7_8700k, + + /// + core_i7_8700, + + /// + core_i7_8550u, + + /// + core_i5_8400t, + + /// + core_i5_8400, + + /// + core_i5_8300h, + + /// + core_i5_8250u, + + /// + core_i3_8300, + + /// + core_i3_8130u, + + /// + core_i3_8100, + + /// + pentium_gold_g5400, + + /// + pentium_gold_g5500, + + /// + pentium_gold_g5600, + + /// + ryzen_3_2200g, + + /// + ryzen_5_2400g, + + /// + core_i9, + + /// + amd_ryzen_1800x, + + /// + amd_ryzen_1700x, + + /// + amd_ryzen_1700, + + /// + amd_ryzen_1600x, + + /// + amd_ryzen_1600, + + /// + amd_ryzen_1500x, + + /// + amd_ryzen_1400, + + /// + amd_ryzen_7, + + /// + xeon_e3_1226v3, + + /// + core_i5_6402p, + + /// + core_i7_6600u, + + /// + celeron_n, + + /// + celeron_n3060, + + /// + atom_z8350, + + /// + apple_a8, + + /// + celeron_j3355, + + /// + celeron_j3455, + + /// + celeron_n3350, + + /// + celeron_n3450, + + /// + pentium_j4205, + + /// + pentium_n4200, + + /// + core_m_7y30, + + /// + core_i3_6157u, + + /// + core_i3_7100u, + + /// + core_i5_6350hq, + + /// + core_i5_7200u, + + /// + core_i5_7y54, + + /// + core_i7_7y75, + + /// + core_i7_6770hq, + + /// + core_i7_7500u, + + /// + core_i7_6800k, + + /// + core_i7_6850k, + + /// + core_i7_6900k, + + /// + core_i7_6950x, + + /// + xeon_e5_2650, + + /// + xeon_e5_2620, + + /// + xeon_e5_2600, + + /// + xeon_e5_2450, + + /// + xeon_e5_2407, + + /// + xeon_e5_2400, + + /// + xeon_e5_1650, + + /// + xeon_e5_1630v3, + + /// + xeon_e5_1620, + + /// + xeon_e5_1607, + + /// + xeon_e3_1271, + + /// + xeon_e3_1241, + + /// + xeon_e3_1231, + + /// + xeon_e3_1225, + + /// + xeon_e3_1220, + + /// + pentium_t7500, + + /// + pentium_t6670, + + /// + pentium_t6600, + + /// + pentium_t5750, + + /// + pentium_sl9300, + + /// + pentium_p8700, + + /// + pentium_p8600, + + /// + pentium_p7570, + + /// + pentium_other, + + /// + pentium_n3520, + + /// + pentium_n2930, + + /// + pentium_j2850, + + /// + pentium_g645t, + + /// + pentium_g3258, + + /// + pentium_g3240t, + + /// + pentium_g3220t, + + /// + pentium_g2130, + + /// + pentium_g2120, + + /// + pentium_e8500, + + /// + pentium_e7600, + + /// + pentium_e7500, + + /// + pentium_e6950, + + /// + pentium_d840, + + /// + pentium_d3400, + + /// + pentium_b987, + + /// + pentium_987, + + /// + pentium_967, + + /// + core_m_family, + + /// + core_i7_family, + + /// + core_i7_920xm, + + /// + core_i7_6700k, + + /// + core_i7_5960x, + + /// + core_i7_5930k, + + /// + core_i7_5820k, + + /// + core_i7_5600u, + + /// + core_i7_4970k, + + /// + core_i7_4930mx, + + /// + core_i7_4900mq, + + /// + core_i7_4770, + + /// + core_i7_4765t, + + /// + core_i7_4600u, + + /// + core_i7_4470s, + + /// + core_i7_3740qm, + + /// + core_i7_3687u, + + /// + core_i7_36517u, + + /// + core_i7_3635qm, + + /// + core_i7_3632qn, + + /// + core_i7_3630m, + + /// + core_i7_2760qm, + + /// + core_i7_2670m, + + /// + core_i7_2630q, + + /// + core_i7_2630m, + + /// + core_i5_family, + + /// + core_i5_6600k, + + /// + core_i5_5300u, + + /// + core_i5_4670s, + + /// + core_i5_4310u, + + /// + core_i5_4310m, + + /// + core_i5_4300u, + + /// + core_i5_3570s, + + /// + core_i5_3570, + + /// + core_i5_3470s, + + /// + core_i5_3470, + + /// + core_i5_3340, + + /// + core_i5_32320m, + + /// + core_i5_3200u, + + /// + core_i5_2550k, + + /// + core_i5_2410qm, + + /// + core_i5_2410, + + /// + core_i3_family, + + /// + core_i3_539, + + /// + core_i3_4350, + + /// + core_i3_4330t, + + /// + core_i3_4330, + + /// + core_i3_350um, + + /// + core_i3_3220t, + + /// + core_i3_2375m, + + /// + core_i3_2357u, + + /// + core_i3_2340m, + + /// + core_i3_2330, + + /// + core_i3_2227u, + + /// + core_i3_2125, + + /// + celeron_t1400, + + /// + celeron_n2930, + + /// + celeron_n2820, + + /// + celeron_n2810, + + /// + celeron_n2807, + + /// + celeron_n2806, + + /// + celeron_n2805, + + /// + celeron_j1850, + + /// + celeron_g465, + + /// + celeron_g1620t, + + /// + celeron_807, + + /// + celeron_1037u, + + /// + celeron_1005m, + + /// + celeron_1000m, + + /// + atom_z7345, + + /// + atom_z650, + + /// + atom_z3736f, + + /// + atom_x5_z8300, + + /// + atom_n2930, + + /// + atom_n2830, + + /// + atom_e3815, + + /// + atom_d2701, + + /// + atom_455, + + /// + apple_ci7, + + /// + apple_ci5, + + /// + apple_ci3, + + /// + apple_c2d, + + /// + pentium_g4520, + + /// + pentium_g4500t, + + /// + pentium_g4500, + + /// + pentium_g4400t, + + /// + pentium_g3900t, + + /// + pentium_g3900, + + /// + pentium_4405y, + + /// + core_m_6y57, + + /// + core_i7_6820hq, + + /// + core_i7_6567u, + + /// + core_i7_6560u, + + /// + core_i7_5675r, + + /// + core_i5_6440hq, + + /// + core_i5_6287u, + + /// + core_i5_6267u, + + /// + core_i5_6260u, + + /// + core_i3_6320, + + /// + core_i3_6300t, + + /// + core_i3_6300, + + /// + core_i3_6167u, + + /// + core_i3_6100t, + + /// + celeron_3855u, + + /// + intel_core_i3_6100, + + /// + intel_pentium_g4400, + + /// + intel_core_i5_6600, + + /// + intel_core_i5_6500, + + /// + atom_c3200_rk, + + /// + pentium_4405u, + + /// + core_m_6y30, + + /// + core_m_6y54, + + /// + core_m_6y75, + + /// + core_i3_6100h, + + /// + core_i3_6100u, + + /// + core_i5_6400t, + + /// + core_i5_6500t, + + /// + core_i5_6600t, + + /// + core_i5_6200u, + + /// + core_i5_6300hq, + + /// + core_i5_6400, + + /// + core_i5_6500, + + /// + core_i5_5350h, + + /// + core_i5_5675c, + + /// + core_i5_5575r, + + /// + core_i5_5675r, + + /// + core_i7_5775r, + + /// + core_i7_5775c, + + /// + core_i5_5750hq, + + /// + core_i5_6600, + + /// + core_i7_6700t, + + /// + core_i7_6500u, + + /// + core_i7_6700, + + /// + core_i7_6700hq, + + /// + core_i7_6820hk, + + /// + rockchip_rk3288, + + /// + amd_fx, + + /// + amd_a8, + + /// + amd_a6, + + /// + amd_a4, + + /// + intel_core_i7_5850hq, + + /// + intel_core_i7_5700hq, + + /// + intel_core_i7_5950hq, + + /// + intel_turbo_n2840, + + /// + amd_athlon_quad_core_5150, + + /// + a4_7210, + + /// + a6_7000, + + /// + a6_7310, + + /// + a6_7400k, + + /// + a6_8500p, + + /// + a6_8550, + + /// + a8_6410, + + /// + a8_7100, + + /// + a8_7200p, + + /// + a8_7410, + + /// + a8_7650k, + + /// + a8_8600p, + + /// + a8_8650, + + /// + a10_7300, + + /// + a10_7400p, + + /// + a10_7700k, + + /// + a10_8700p, + + /// + a10_8750, + + /// + athlon_x2_450, + + /// + athlon_x4_540, + + /// + athlon_x4_560, + + /// + athlon_x4_830, + + /// + athlon_x4_840, + + /// + athlon_x4_860k, + + /// + atom_c3130, + + /// + atom_c3230_rk, + + /// + atom_z2520, + + /// + atom_zZ8300, + + /// + atom_z8500, + + /// + atom_z8700, + + /// + celeron_3215u, + + /// + celeron_n3000, + + /// + celeron_n3050, + + /// + celeron_n3150, + + /// + core_i3_4170, + + /// + core_i3_4170t, + + /// + core_i3_4370t, + + /// + core_i3_5015u, + + /// + core_i3_5020u, + + /// + core_i5_4690k, + + /// + core_i7_4870hq, + + /// + e1_7010, + + /// + e2_6110, + + /// + e2_7110, + + /// + fx_8800p, + + /// + pentium_3825u, + + /// + pentium_g3260, + + /// + pentium_g3260t, + + /// + pentium_g3460t, + + /// + pentium_g3470, + + /// + pentium_n3700, + + /// + fx_4300, + + /// + core_i7_4790K, + + /// + bay_trail_t_z3735g, + + /// + pentium_n3540, + + /// + pentium_j2900, + + /// + pentium_g3460, + + /// + pentium_g3450t, + + /// + pentium_g3450, + + /// + pentium_g3250, + + /// + pentium_3805u, + + /// + pentium_3561y, + + /// + pentium_3560m, + + /// + pentium_2030m, + + /// + mediatek_mt8127, + + /// + core_m, + + /// + core_m_5y71, + + /// + core_m_5y70, + + /// + core_m_5y51, + + /// + core_m_5y31, + + /// + core_m_5y10c, + + /// + core_m_5y10a, + + /// + core_m_5y10, + + /// + core_i7_5557u, + + /// + core_i7_5550u, + + /// + core_i7_5500u, + + /// + core_i7_4790t, + + /// + core_i7_4790s, + + /// + core_i7_4785t, + + /// + core_i7_4771, + + /// + core_i7_4770r, + + /// + core_i7_4770hq, + + /// + core_i7_4722hq, + + /// + core_i7_4720hq, + + /// + core_i7_4712mq, + + /// + core_i7_4712hq, + + /// + core_i5_5287u, + + /// + core_i5_5257u, + + /// + core_i5_5250u, + + /// + core_i5_5200u, + + /// + core_i5_4690t, + + /// + core_i5_4690s, + + /// + core_i5_4690, + + /// + core_i5_4670r, + + /// + core_i5_4590t, + + /// + core_i5_4590s, + + /// + core_i5_4590, + + /// + core_i5_4570r, + + /// + core_i5_4460t, + + /// + core_i5_4460s, + + /// + core_i5_4308u, + + /// + core_i5_4278u, + + /// + core_i5_4260u, + + /// + core_i5_4220y, + + /// + core_i5_4210m, + + /// + core_i5_4210h, + + /// + core_i3_5157u, + + /// + core_i3_5010u, + + /// + core_i3_5005u, + + /// + core_i3_4370, + + /// + core_i3_4360t, + + /// + core_i3_4360, + + /// + core_i3_4160, + + /// + core_i3_4120u, + + /// + core_i3_4110m, + + /// + core_i3_4030y, + + /// + core_i3_4025u, + + /// + celeron_n2940, + + /// + celeron_n2840, + + /// + celeron_n2815, + + /// + celeron_n2808, + + /// + celeron_j1900, + + /// + celeron_j1800, + + /// + celeron_g1850, + + /// + celeron_g1840t, + + /// + celeron_g1840, + + /// + celeron_3205u, + + /// + celeron_2961y, + + /// + atom_z3795, + + /// + atom_z3785, + + /// + atom_z3775d, + + /// + atom_z3775, + + /// + atom_z3770d, + + /// + atom_z3745d, + + /// + atom_z3745, + + /// + atom_z3740d, + + /// + atom_z3735g, + + /// + atom_z3735f, + + /// + atom_z3735e, + + /// + atom_z3735d, + + /// + atom_z3580, + + /// + atom_z3560, + + /// + atom_z3480, + + /// + atom_z3460, + + /// + core_i7_4710MQ, + + /// + amd_a6_6400k, + + /// + core_i7_4810MQ, + + /// + core_i7_4860HQ, + + /// + atom_z3735, + + /// + quad_core_a8_6410, + + /// + Atom_z3635G, + + /// + arm_v7, + + /// + core_i7_4980HQ, + + /// + intel_core_i7_4810mq, + + /// + tegra_k1, + + /// + intel_bay_trail_m_n2830_dual_core, + + /// + intel_core_m, + + /// + a10_7850k, + + /// + a8_7600, + + /// + Core_i7_4790, + + /// + Core_i5_4460, + + /// + Core_i7_4710HQ, + + /// + Celeron_N2830_Dual_Core, + + /// + Core_i3_4160T, + + /// + Pentium_G3250T, + + /// + Core_i5_4570T, + + /// + FX_8300, + + /// + a10_7800, + + /// + cortex_a8, + + /// + Core_i3_4150T, + + /// + Pentium_G3240, + + /// + Core_i3_4150, + + /// + a33_arm_cortex_a7_quad_core, + + /// + quad_core_a8_6410_accelerated, + + /// + Celeron_N2830, + + /// + Pentium_N3530, + + /// + mxs, + + /// + mtk_8121, + + /// + E1_6010, + + /// + A4_6210, + + /// + Celeron_2957U, + + /// + Pentium_3558U, + + /// + Core_i3_4030U, + + /// + Core_i5_4210U, + + /// + Core_i7_4510U, + + /// + A6_6310, + + /// + MediaTek_MT8125, + + /// + phenom_x2, + + /// + phenom_x3, + + /// + phenom_x4, + + /// + celeron_d, + + /// + core_2_extreme, + + /// + core_2_quad, + + /// + core_2_solo, + + /// + core_duo, + + /// + core_i7_extreme, + + /// + core_solo, + + /// + pentium_d, + + /// + pentium_ii, + + /// + pentium_iii, + + /// + a_series, + + /// + athlon_ii_x2, + + /// + athlon_x2, + + /// + athlon_x4, + + /// + e_series, + + /// + fx_4_core, + + /// + fx_6_core, + + /// + fx_8_core, + + /// + cortex, + + /// + securcore, + + /// + celeron_m, + + /// + xeon_phi, + + /// + alpha, + + /// + exynos_5_octa_5800, + + /// + exynos_5_octa_5420, + + /// + Pentium_G3220, + + /// + Celeron_G1820, + + /// + A20, + + /// + A31, + + /// + A31s, + + /// + Core_i3_4130T, + + /// + Core_i3_4570T, + + /// + apple_a7, + + /// + A6_5350M, + + /// + T40_S_TEGRA_4_A15_Quad_Core, + + /// + SOC_PXA986_Dual_Core, + + /// + Pentium_N3510, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A8")] + Item1_2GHz_Cortex_A8, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A13")] + Item1_2GHz_Cortex_A13, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A9")] + Item1_2GHz_Cortex_A9, + + /// + Atom_Z3740, + + /// + Atom_Z2560, + + /// + Atom_Z2580, + + /// + Atom_Z3770, + + /// + Core_i7_4650U, + + /// + A4_1250, + + /// + Clover_Trail_Plus_Z2560, + + /// + Exynos_4412, + + /// + Intel_Core_i7_Extreme, + + /// + MT8317T, + + /// + A10_5757M, + + /// + A8_5557M, + + /// + Intel_Core_i7_4702MQ, + + /// + A13, + + /// + Core_i5_3340s, + + /// + Core_i5_4440s, + + /// + Pentium_G2030T, + + /// + Core_i5_3340M, + + /// + E1_2500, + + /// + A4_1200_Accelerated, + + /// + Exynos_5250, + + /// + Core_i7_4200U, + + /// + E1_2500_Accelerated_Processor, + + /// + amd_r_series, + + /// + Core_i7_4700MQ, + + /// + Celeron_2950M, + + /// + Celeron_2955U, + + /// + Core_i3_3229Y, + + /// + Core_i3_4000M, + + /// + Core_i3_4005U, + + /// + Core_i3_4010U, + + /// + Core_i3_4010Y, + + /// + Core_i3_4012Y, + + /// + Core_i3_4020Y, + + /// + Core_i3_4100M, + + /// + Core_i3_4100U, + + /// + Core_i3_4158U, + + /// + Core_i5_3339Y, + + /// + Core_i5_3439Y, + + /// + Core_i5_4200H, + + /// + Core_i5_4200M, + + /// + Core_i5_4200Y, + + /// + Core_i5_4202Y, + + /// + Core_i5_4210Y, + + /// + Core_i5_4250U, + + /// + Core_i5_4258U, + + /// + Core_i5_4288U, + + /// + Core_i7_3689Y, + + /// + Core_i7_4550U, + + /// + Core_i7_4558U, + + /// + Core_i7_4700HQ, + + /// + Core_i7_4702HQ, + + /// + Core_i7_4750HQ, + + /// + Core_i7_4820K, + + /// + Core_i7_4930K, + + /// + Core_i7_4960X, + + /// + Pentium_3550M, + + /// + Pentium_3556U, + + /// + Pentium_3560Y, + + /// + Rockchip_RK2928, + + /// + Rockchip_3188, + + /// + A4_5000, + + /// + A6_5200, + + /// + Core_i3_4130, + + /// + Core_i5_4440, + + /// + Pentium_Dual_Core_2030M, + + /// + Celeron_1017U, + + /// + Pentium_Dual_Core_2127U, + + /// + Pentium_2127U, + + /// + Intel_Celeron_G1610T, + + /// + Intel_Pentium_G2020T, + + /// + Intel_Core_i3_3240T, + + /// + ARMv7, + + /// + ARMv7_Dual_Core, + + /// + Celeron_887, + + /// + Core_i3_2348M, + + /// + Core_i5_4430S, + + /// + Core_i5_4570, + + /// + Core_i5_4570S, + + /// + Core_i5_4670, + + /// + Core_i5_4670K, + + /// + Core_i7_4702MQ, + + /// + Core_i7_4770K, + + /// + Core_i7_4770S, + + /// + E2_Series_Dual_Core_E2_2000, + + /// + E_Series_Dual_Core_E1_1500, + + /// + i5_4670k, + + /// + i7_4770K, + + /// + Intel_Celeron_G470, + + /// + Intel_Core_i5_3330S, + + /// + Intel_Core_i5_4200U, + + /// + Intel_Core_i7_4500U, + + /// + Intel_Pentium_G2020, + + /// + Pentium_2117U, + + /// + Pentium_2129Y, + + /// + AMD_Kabini_A6_5200M_Quad_Core, + + /// + AMD_Kabini_E1_2100, + + /// + AMD_Richland_A10_5750M, + + /// + AMD_Richland_A8_5550M, + + /// + Intel_Core_i3_3120M, + + /// + Intel_Pentium_2127U_ULV, + + /// + Intel_Pentium_Dual_Core_2020M, + + /// + Intel_Celeron_1007U, + + /// + Intel_PDC_G2030, + + /// + Intel_Core_i3_3130M, + + /// + Intel_Core_i3_3240, + + /// + Intel_Core_i5_4430, + + /// + Intel_Core_i7_4700MQ, + + /// + Intel_Core_i7_4770, + + /// + Mediatek_8317_Dual_Core, + + /// + Mediatek_8389_Quadcore, + + /// + Intel_Clover_Trail, + + /// + a_series_quad_core_a8_6500, + + /// + a_series_quad_core_a10_6700, + + /// + A10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("210")] + Item210, + + /// + GP33003, + + /// + Core_i5_3330M, + + /// + Snapdragon_QSD8250, + + /// + GEODE_LX_LX_800, + + /// + Celeron_220, + + /// + Pentium_D_840, + + /// + Core_2_Duo_E6320, + + /// + Sempron_SI_42, + + /// + Phenom_II_X2_B55, + + /// + Athlon_64_3000, + + /// + Pentium_M_755, + + /// + C7_M_764, + + /// + Pentium_G524, + + /// + Sempron_2200, + + /// + Pentium_M_773, + + /// + Athlon_64_Mobile_3000, + + /// + Turion_64_MK_36, + + /// + C7_M_770_VIA, + + /// + Sempron_2100, + + /// + Sempron_3000, + + /// + Athlon_64_3800, + + /// + Athlon_XP_3000, + + /// + Celeron_T1600, + + /// + Pentium_M_710, + + /// + Pentium_M_750, + + /// + Pentium_G550, + + /// + Athlon_II_X3_445AIIX3, + + /// + Celeron_M_410, + + /// + Core_2_Duo_T5900, + + /// + Turion_X2_Ultra_ZM_84, + + /// + Pentium_G570, + + /// + Celeron_M_340, + + /// + Pentium_M_735, + + /// + Pentium_D_820, + + /// + Turion_II_ULTRA_M660, + + /// + Pentium_M_740, + + /// + Turion_64_ML_34, + + /// + Athlon_64_LE_1660, + + /// + Athlon_64_LE_1600, + + /// + Athlon_II_X3_415E, + + /// + Celeron_M_330, + + /// + Sempron_M_3100, + + /// + Celeron_D_345, + + /// + Celeron_540, + + /// + Pentium_E6500, + + /// + Turion_64_MT_28, + + /// + Pentium_D_940, + + /// + Celeron_M_370, + + /// + Core_Duo_T2300, + + /// + Core_2_Duo_T9800, + + /// + Turion_II_ULTRA_M600, + + /// + Pentium_M_A110, + + /// + Pentium_T2410, + + /// + Celeron_M_320, + + /// + Turion_64_ML_32, + + /// + Core_2_Duo_E4700, + + /// + Core_Duo_T2600, + + /// + Pentium_M_725A, + + /// + Celeron_M_380, + + /// + Pentium_G662, + + /// + Mobile_Pentium_4_538, + + /// + Core_2_Duo_E6700, + + /// + Pentium_G540, + + /// + Core_2_Duo_U7600, + + /// + Pentium_D_915, + + /// + Turion_64_MT_37, + + /// + Celeron_M_430, + + /// + Celeron_D_326, + + /// + Opteron_Quad_1354, + + /// + Sempron_3200, + + /// + Pentium_D_830, + + /// + Athlon_64_X2_QL_65, + + /// + Core_Solo_T1300, + + /// + Pentium_G517, + + /// + Sempron_M_3000, + + /// + Celeron_D_346, + + /// + Sempron_M_2600, + + /// + Athlon_64_X2_TK_55, + + /// + Sempron_3400, + + /// + Athlon_64_X2_4600, + + /// + Turion_64_MT_30, + + /// + Core_I3_2330E, + + /// + Athlon_64_3400, + + /// + Turion_64_ML_28, + + /// + Celeron_330, + + /// + Athlon_64_3200, + + /// + C7_M_772_VIA, + + /// + Pentium_D_945, + + /// + Pentium_M_760, + + /// + Pentium_M_745, + + /// + Athlon_64_L110, + + /// + Pentium_M_753, + + /// + Pentium_M_770, + + /// + Pentium_M_733, + + /// + Core_Duo_T2350, + + /// + Core_2_Duo_E8300, + + /// + Core_Solo_T1200, + + /// + Core_2_Duo_L7200, + + /// + Pentium_G519, + + /// + Core_Duo_T2050, + + /// + Pentium_G515, + + /// + Pentium_D_920, + + /// + Turion_64_MT_32, + + /// + Pentium_G631, + + /// + Turion_64_ML_37, + + /// + Pentium_D_930, + + /// + Pentium_G641, + + /// + Pentium_G650, + + /// + Celeron_M_420, + + /// + Celeron_D_335, + + /// + Pentium_G531, + + /// + Mobile_Pentium_4_532, + + /// + Turion_64_MK_38, + + /// + Pentium_G560, + + /// + Pentium_D_805, + + /// + Sempron_64_3000, + + /// + Pentium_D_950, + + /// + Pentium_G660, + + /// + V_SERIES_V160, + + /// + C_SERIES_C_60, + + /// + Turion_64_ML_30, + + /// + C_SERIES_C_30, + + /// + Athlon_X2_4050E, + + /// + Sempron_3300, + + /// + Celeron_M_350, + + /// + Celeron_M_390, + + /// + Pentium_G520, + + /// + Athlon_64_LE_1640, + + /// + Xeon_W3520, + + /// + Celeron_B800, + + /// + Sempron_3100, + + /// + Pentium_M_725, + + /// + Core_Solo_T1350, + + /// + Athlon_64_3700, + + /// + Celeron_M_360, + + /// + Pentium_G516, + + /// + Celeron_T3100, + + /// + Core_Duo_T2300E, + + /// + Phenom_II_X4_N960, + + /// + Pentium_M_730, + + /// + Core_Solo_U1400, + + /// + Pentium_M_715, + + /// + Celeron_D_340, + + /// + Sempron_210U, + + /// + Core_Solo_U1300, + + /// + Atom_N435, + + /// + Core_2_Duo_T7600, + + /// + Celeron_D_325, + + /// + Turion_64_X2_TL_68, + + /// + Celeron_G530, + + /// + Core_Duo_T2500, + + /// + Celeron_D_336, + + /// + Core_i7_3840QM, + + /// + Core_i3_3227U, + + /// + Core_i5_3337U, + + /// + Core_i7_3537U, + + /// + Core_i5_3230M, + + /// + Vision_A10_Quad_Core_APU, + + /// + Pentium_G870, + + /// + Core_i5_3350P, + + /// + Atom_Z2760, + + /// + Celeron_847, + + /// + Core_i3_2365M, + + /// + Exynos_5000_Series, + + /// + Core_i7_3632QM, + + /// + Core_i3_2328M, + + /// + Core_i7_3630QM, + + /// + Pentium_B980, + + /// + Core_i5_3330, + + /// + Core_i3_3220, + + /// + Celeron_B830, + + /// + Pentium_G645, + + /// + A_Series_Quad_Core_A8_3850, + + /// + ARM_Cortex_A_9, + + /// + Celeron_877, + + /// + A_Series_Eight_Core_A10_4600M, + + /// + Core_i3_2130, + + /// + ARM_Cortex_A5, + + /// + A_Series_Tri_Core_A6_3500, + + /// + Core_i5_2380P, + + /// + Celeron_B820, + + /// + Pentium_G640, + + /// + A_Series_Quad_Core_A10_5700, + + /// + Celeron_G540, + + /// + Atom_D2550, + + /// + cortex_a7, + + /// + Snapdragon_S5, + + /// + core_i7_3517um, + + /// + Core_i3_3217U, + + /// + OMAP_5400, + + /// + tegra_4, + + /// + Celeron_867, + + /// + OMAP_3500, + + /// + OMAP_3600, + + /// + Snapdragon_s2, + + /// + novathor_l9000, + + /// + Exynos_4200, + + /// + Snapdragon_S3, + + /// + nova_a9000, + + /// + OMAP_4400, + + /// + Snapdragon_S4, + + /// + core_i3_2370M, + + /// + Snapdragon_s1, + + /// + apple_a5x, + + /// + OMAP_3400, + + /// + Pentium_B820, + + /// + Core_i3_3110M, + + /// + core_i3_2377m, + + /// + Pentium_B967, + + /// + Exynos_5400, + + /// + novathor_l8000, + + /// + Exynos_5200, + + /// + Exynos_4400, + + /// + Celeron_B840, + + /// + A_Series_Quad_Core_A8_5500, + + /// + FX_Series_Eigth_Core_FX_8320, + + /// + E_Series_Dual_Core_E1_1200, + + /// + A_Series_Dual_Core_A6_3620, + + /// + A_Series_Dual_Core_A4_4300M, + + /// + FX_Series_Eight_Core_FX_8350, + + /// + FX_Series_Six_Core_FX_6300, + + /// + A_Series_Dual_Core_A6_5400K, + + /// + A_Series_Dual_Core_A4_4355M, + + /// + FX_Series_Quad_Core_FX_4320, + + /// + A_Series_Dual_Core_A6_4400M, + + /// + A_Series_Dual_Core_A4_3305, + + /// + A_Series_Quad_Core_A8_4500M, + + /// + Core_i7_3615QM, + + /// + A_Series_Dual_Core_A4_3420, + + /// + A_Series_Dual_Core_A6_4455M, + + /// + E_Series_Dual_Core_E3_3200, + + /// + FX_Series_Six_Core_FX_6200, + + /// + A_Series_Quad_Core_A6_3430MX, + + /// + A_Series_Quad_Core_A8_3520M, + + /// + FX_Series_Quad_Core_FX_4120, + + /// + A_Series_Dual_Core_A4_5300, + + /// + E_Series_Dual_Core_E2_3000, + + /// + A_Series_Quad_Core_A8_5600K, + + /// + A_Series_Quad_Core_A10_4655M, + + /// + A_Series_Quad_Core_A8_4555M, + + /// + A_Series_Eight_Core_A10_5800K, + + /// + A_Series_Quad_Core_A10_4600M, + + /// + A_Series_Eight_Core_A10_5700, + + /// + E_Series_Dual_Core_E2_1800, + + /// + A_Series_Dual_Core_A6_3650, + + /// + Pentium_G860, + + /// + Core_i7_3517U, + + /// + Core_i5_3550, + + /// + Core_i7_3520M, + + /// + Pentium_G630, + + /// + Pentium_B970, + + /// + Core_i7_3667U, + + /// + Core_i5_3470T, + + /// + Pentium_B960, + + /// + Core_i7_3770T, + + /// + Core_i5_2467M, + + /// + Core_i7_3610QM, + + /// + Core_i5_3570T, + + /// + Core_i7_3770S, + + /// + Pentium_G630T, + + /// + Core_i3_2390T, + + /// + Core_i7_3770K, + + /// + Core_i7_3820QM, + + /// + Core_i5_3450S, + + /// + Core_i5_3360M, + + /// + Core_i5_3210M, + + /// + Pentium_997, + + /// + Core_i7_3920XM, + + /// + Core_i5_3317U, + + /// + Core_i3_2120T, + + /// + Core_i5_3427U, + + /// + Core_i5_3320M, + + /// + Core_i5_3570K, + + /// + Core_i5_3450, + + /// + Core_i5_3550S, + + /// + Core_i7_3720QM, + + /// + Core_i7_3770, + + /// + Core_i7_3612QM, + + /// + tegra_ap_2600, + + /// + omap4470, + + /// + Snapdragon_MSM8260A, + + /// + Snapdragon_S3_MSM8260, + + /// + Snapdragon_S3_MSM8660, + + /// + apple_a4, + + /// + Snapdragon_S1_MSM7225, + + /// + Core_i5_2435M, + + /// + Snapdragon_S3_APQ8060, + + /// + Snapdragon_S4_APQ8064, + + /// + tegra_2_t20, + + /// + Exynos_4210, + + /// + tegra_2_t25, + + /// + Snapdragon_S2_MSM7230, + + /// + Atom_N2800, + + /// + brazos_e450, + + /// + Core_i5_2557M, + + /// + omap3630, + + /// + omap4430, + + /// + omap4460, + + /// + Exynos_3110, + + /// + apple_a5, + + /// + apple_a6, + + /// + tegra_650, + + /// + tegra_ap_2500, + + /// + a_series_dual_core_a4_3305m, + + /// + tegra_600, + + /// + omap3620, + + /// + omap5432, + + /// + Snapdragon_S4_MSM8230, + + /// + Snapdragon_S2_MSM8225, + + /// + Snapdragon_S4_MSM8270, + + /// + Snapdragon_S1_QSD8650, + + /// + Core_i7_2620M, + + /// + omap5430, + + /// + a_series_quad_core_a6_3420m, + + /// + Core_i3_2350M, + + /// + Core_i5_2450M, + + /// + Core_i7_2670QM, + + /// + Core_i5_2430M, + + /// + pentium_g530, + + /// + i3_2370m, + + /// + atom_n2600, + + /// + i3_2367m, + + /// + i7_2640m, + + /// + i5_2450m, + + /// + i3_2367, + + /// + atom_d2700, + + /// + i5_2320, + + /// + i7_2670qm, + + /// + celeron_b815, + + /// + i3_2350m, + + /// + i5_2430m, + + /// + i7_2675qm, + + /// + i7_2677m, + + /// + a_series_quad_core_a8_3500m, + + /// + a_series_quad_core_a6_3600m, + + /// + i7_3960x, + + /// + c_series_dual_core_c_60, + + /// + e_series_dual_core_e_300, + + /// + a_series_quad_core_a6_3400m, + + /// + a_series_quad_core_a6_3410m, + + /// + i7_2700k, + + /// + c_series_dual_core_c_50, + + /// + z_series_dual_core_z_01, + + /// + i7_3930k, + + /// + i7_2637m, + + /// + a_series_dual_core_a4_3400m, + + /// + e_series_single_core_e_240, + + /// + i7_3820, + + /// + phenom_ii_x4_quad_core_n970, + + /// + a_series_dual_core_a4_3310m, + + /// + i5_2467m, + + /// + arm_dual_core_cortex_a9_omap_4, + + /// + e_series_dual_core_e_450, + + /// + a_series_dual_core_a4_3300m, + + /// + ARM_9_2818, + + /// + ARM_11_Telechips_8902, + + /// + ARM_11_2818, + + /// + ARM_11_iMAPX210, + + /// + ARM_11_iMAP210, + + /// + ARM_11_ROCK_2818, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8803_CORTEX_A8")] + Item8803_CORTEX_A8, + + /// + ARM_11_8902, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.66GHz")] + Core_2_Duo_266GHz, + + /// + Turion_64_X2_RM_72, + + /// + Core_i5_430M_, + + /// + Celeron_485, + + /// + Core_2_Duo_SL9300_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_2.26GHz")] + Quad_Core_226GHz, + + /// + Core_i5_2400, + + /// + Phenom_II_X2_Dual_Core_B75, + + /// + Core_i5_2405S, + + /// + Core_2_Duo_T6500, + + /// + Athlon_X2_Dual_Core_5000_plus_, + + /// + Celeron_D_360, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.13GHz")] + Core_2_Duo_213GHz, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.83GHz")] + Core_2_Duo_183GHz, + + /// + Core_Duo_T2450, + + /// + Atom_230, + + /// + Turion_64_X2_ZM_82, + + /// + Turion_X2_ZM_82, + + /// + Pentium_P6300, + + /// + Pentium_957, + + /// + Phenom_II_X4_Quad_Core_B95, + + /// + Pentium_B940, + + /// + Core_i5_540UM, + + /// + Turion_X2_RM_75, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.5GHz")] + Core_2_Duo_25GHz, + + /// + Core_i3_2105, + + /// + A_Series_Dual_Core_A4, + + /// + Atom_Z520, + + /// + Athlon_II_X2_Dual_Core_260, + + /// + Athlon_II_X3_Triple_Core_450, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i3_3.2_GHz_")] + Core_i3_32_GHz_, + + /// + Core_i5_2500K, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.66GHz")] + Core_2_Duo_166GHz, + + /// + Core_i3_2357M, + + /// + Turion_64_X2_TL_56, + + /// + Turion_X2_Ultra_ZM_85, + + /// + Core_i3_2120, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i5_2.8GHz")] + Core_i5_28GHz, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.1GHz")] + Core_2_Duo_21GHz, + + /// + Celeron_P4500, + + /// + Pentium_4_360, + + /// + Core_i5_2390T, + + /// + Turion_II_X2_Dual_Core_N530, + + /// + Athlon_X2_Dual_Core_QL_64, + + /// + Athlon_II_X2_Dual_Core_235e_, + + /// + Athlon_Dual_Core, + + /// + Athlon_II_X4_Quad_Core_620_, + + /// + Core_i5_520M, + + /// + Pentium_G620T, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.7_GHz")] + Core_i7_27_GHz, + + /// + Celeron_M_ULV, + + /// + Turion_II_X2_Dual_Core_M520_, + + /// + Core_i7_2617M, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.33GHz")] + Core_2_Duo_233GHz, + + /// + Pentium_U3600, + + /// + Turion_X2_Ultra_ZM_82, + + /// + Pentium_G840, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_Xeon_2.8_GHz_")] + Quad_Core_Xeon_28_GHz_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.6GHz")] + Core_2_Duo_16GHz, + + /// + Athlon_II_X2_Dual_Core_220, + + /// + A_Series_Quad_Core_A8, + + /// + Core_i7_2600K, + + /// + Athlon_II_X2_Dual_Core_240e_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.2GHz")] + Core_2_Duo_22GHz, + + /// + Core_i3_2100_, + + /// + Core_i5_470UM_, + + /// + Core_i7_2410M, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.4GHz_")] + Core_2_Duo_14GHz_, + + /// + ARM_7500fe, + + /// + Core_i7_980X, + + /// + Core_i5_2537M, + + /// + Turion_64_X2_RM_70, + + /// + Pentium_G6960, + + /// + Pentium_M_ULV, + + /// + Athlon_II_X2_Dual_Core_B24, + + /// + Xeon_E5507, + + /// + Pentium_G850, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.8GHz")] + Core_2_Duo_18GHz, + + /// + Phenom_II_X4_Quad_Core_910_, + + /// + Celeron_E3400, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.16GHz")] + Core_2_Duo_216GHz, + + /// + Core_i5_2457M, + + /// + Athlon_X2_Dual_Core_QL_62, + + /// + Core_i7_820QM, + + /// + Core_i5_560UM, + + /// + Turion_X2_Ultra_ZM_87, + + /// + Athlon_II_X2_Dual_Core_B26, + + /// + Atom_N455, + + /// + Athlon_II_X4Quad_Core_600e, + + /// + Core_i5_540M, + + /// + Celeron_D_420, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i3_3.06_GHz_")] + Core_i3_306_GHz_, + + /// + Quad_Core_Xeon, + + /// + Athlon_X2_Dual_Core, + + /// + Atom_N570, + + /// + Core_i5_2310, + + /// + Core_2_Due_P8400, + + /// + Atom_330, + + /// + Pentium_T2060, + + /// + ARM_710a, + + /// + Athlon_X2_Dual_Core_TK_57, + + /// + Core_Duo_T2400__, + + /// + Atom_Z670, + + /// + Phenom_II_X4_Quad_Core_645, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.26GHz")] + Core_2_Duo_226GHz, + + /// + Phenom_II_X4_Quad_Core_840T_, + + /// + Core_2_Duo_T6670_, + + /// + Athlon_II_X2_Dual_Core_QL_64, + + /// + Turion_Neo_X2_Dual_Core_L625, + + /// + Athlon_II_X2_Dual_Core_245e_, + + /// + Athlon_X2_Dual_Core_TK_53, + + /// + Athlon_64_X2_Dual_Core_TK_42_, + + /// + A_Series_Quad_Core_A6, + + /// + Turion_II_X2_Dual_Core_M620, + + /// + A110, + + /// + Phenom_II_X2_Dual_Core_511_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i5_2.3_GHz")] + Core_i5_23_GHz, + + /// + Core_i5_2400s, + + /// + Core_2_Duo_T6600_, + + /// + Phenom_II_X2_Dual_Core_P650, + + /// + Athlon_II_X2_Dual_Core_260u, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.0GHz")] + Core_2_Duo_20GHz, + + /// + Core_i7_720QM, + + /// + Turion_X2_ZM_80, + + /// + Phenom_II_X6_Six_Core_1100T, + + /// + Core_i5_2410M, + + /// + Athlon_II_X4_Quad_Core_610e_, + + /// + Athon_II_X2_Dual_Core_P360, + + /// + Core_i7_2600S, + + /// + Core_i7_660UM, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.93GHz")] + Core_2_Duo_293GHz, + + /// + Turion_64_X2_TL_52, + + /// + Core_i3_390M, + + /// + Celeron_T3500, + + /// + Turion_64_X2_TL_64, + + /// + Core_i7_2657M, + + /// + Athlon_64_X2_Pro_L310, + + /// + Atom_Z540, + + /// + Atom_Z550, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.8GHz")] + Core_2_Duo_28GHz, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_Xeon_2.4GHz_")] + Quad_Core_Xeon_24GHz_, + + /// + Quad_Core_Q9000, + + /// + Athlon_II_X3_Triple_Core_440, + + /// + Core_2_Duo_SU9600, + + /// + ARM_610, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.86GHz_")] + Core_2_Duo_186GHz_, + + /// + Core_i5_2500, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.2_GHz")] + Core_i7_22_GHz, + + /// + Celeron_D_440, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.86GHz")] + Core_2_Duo_186GHz, + + /// + Athlon_II_X4_Quad_Core_610e, + + /// + Core_i5_2500S, + + /// + Celeron_E3500, + + /// + Core_i5_2500T, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_Duo_1.83GHz")] + Core_Duo_183GHz, + + /// + Atom_N450, + + /// + ARM_710t, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.0_GHz")] + Core_i7_20_GHz, + + /// + Phenom_II_X4_Quad_Core_9100E_, + + /// + Xeon_Dual_Core, + + /// + Pentium_847, + + /// + Atom_Z530, + + /// + Athlon_X2_Dual_Core_M300, + + /// + ARM_710, + + /// + Athlon_II_X2_Dual_Core_B22, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_3.06GHz")] + Core_2_Duo_306GHz, + + /// + Core_i3_330M, + + /// + Phenom_II_X4_Quad_Core_840, + + /// + Phenom_II_X2_Dual_Core_250, + + /// + Athlon_X2_Dual_Core_L335, + + /// + Pentium_G620, + + /// + Tablet_Processor, + + /// + Atom_N450_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.4GHz")] + Core_2_Duo_24GHz, + + /// + C_Series_Single_Core_C_30, + + /// + Pentium_B950, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.53GHz")] + Core_2_Duo_253GHz, + + /// + Core_i3_2310M, + + /// + Athlon_X2_Dual_Core_QL_60, + + /// + Athlon_X2_Dual_Core_3250e, + + /// + Celeron_763, + + /// + intel_atom_z550, + + /// + intel_atom_z510, + + /// + [System.Xml.Serialization.XmlEnumAttribute("")] + Item, + } + + /// + public partial class DatedPrice + { + + private System.DateTime startDateField; + + private bool startDateFieldSpecified; + + private System.DateTime endDateField; + + private bool endDateFieldSpecified; + + private CurrencyAmount itemField; + + private ItemChoiceType itemElementNameField; + + private bool deleteField; + + private bool deleteFieldSpecified; + + /// + public System.DateTime StartDate + { + get + { + return this.startDateField; + } + set + { + this.startDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool StartDateSpecified + { + get + { + return this.startDateFieldSpecified; + } + set + { + this.startDateFieldSpecified = value; + } + } + + /// + public System.DateTime EndDate + { + get + { + return this.endDateField; + } + set + { + this.endDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool EndDateSpecified + { + get + { + return this.endDateFieldSpecified; + } + set + { + this.endDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("PreviousPrice", typeof(CurrencyAmount))] + [System.Xml.Serialization.XmlElementAttribute("Price", typeof(CurrencyAmount))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public CurrencyAmount Item + { + get + { + return this.itemField; + } + set + { + this.itemField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType ItemElementName + { + get + { + return this.itemElementNameField; + } + set + { + this.itemElementNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool delete + { + get + { + return this.deleteField; + } + set + { + this.deleteField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deleteSpecified + { + get + { + return this.deleteFieldSpecified; + } + set + { + this.deleteFieldSpecified = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema = false)] + public enum ItemChoiceType + { + + /// + PreviousPrice, + + /// + Price, + } + + /// + public partial class DatedCompareAtPrice + { + + private System.DateTime startDateField; + + private bool startDateFieldSpecified; + + private System.DateTime endDateField; + + private bool endDateFieldSpecified; + + private CurrencyAmount compareAtPriceField; + + private bool deleteField; + + private bool deleteFieldSpecified; + + /// + public System.DateTime StartDate + { + get + { + return this.startDateField; + } + set + { + this.startDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool StartDateSpecified + { + get + { + return this.startDateFieldSpecified; + } + set + { + this.startDateFieldSpecified = value; + } + } + + /// + public System.DateTime EndDate + { + get + { + return this.endDateField; + } + set + { + this.endDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool EndDateSpecified + { + get + { + return this.endDateFieldSpecified; + } + set + { + this.endDateFieldSpecified = value; + } + } + + /// + public CurrencyAmount CompareAtPrice + { + get + { + return this.compareAtPriceField; + } + set + { + this.compareAtPriceField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool delete + { + get + { + return this.deleteField; + } + set + { + this.deleteField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deleteSpecified + { + get + { + return this.deleteFieldSpecified; + } + set + { + this.deleteFieldSpecified = value; + } + } + } + + /// + public enum FulfillReadiness + { + + /// + drop_ship_ready, + + /// + not_ready, + + /// + receive_ready, + + /// + exception_receive_ready, + + /// + po_ready, + + /// + unknown, + } + + /// + public enum PromotionApplicationType + { + + /// + Principal, + + /// + Shipping, + } + + /// + public partial class PromotionDataType + { + + private string promotionClaimCodeField; + + private string merchantPromotionIDField; + + private PromotionDataTypeComponent[] componentField; + + /// + public string PromotionClaimCode + { + get + { + return this.promotionClaimCodeField; + } + set + { + this.promotionClaimCodeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string MerchantPromotionID + { + get + { + return this.merchantPromotionIDField; + } + set + { + this.merchantPromotionIDField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("Component")] + public PromotionDataTypeComponent[] Component + { + get + { + return this.componentField; + } + set + { + this.componentField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class PromotionDataTypeComponent + { + + private PromotionApplicationType typeField; + + private CurrencyAmount amountField; + + /// + public PromotionApplicationType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public CurrencyAmount Amount + { + get + { + return this.amountField; + } + set + { + this.amountField = value; + } + } + } + + /// + public partial class ConditionInfo + { + + private ConditionType conditionTypeField; + + private string conditionNoteField; + + /// + public ConditionType ConditionType + { + get + { + return this.conditionTypeField; + } + set + { + this.conditionTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string ConditionNote + { + get + { + return this.conditionNoteField; + } + set + { + this.conditionNoteField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum ConditionType + { + + /// + New, + + /// + UsedLikeNew, + + /// + UsedVeryGood, + + /// + UsedGood, + + /// + UsedAcceptable, + + /// + CollectibleLikeNew, + + /// + CollectibleVeryGood, + + /// + CollectibleGood, + + /// + CollectibleAcceptable, + + /// + Club, + + /// + NewOpenBox, + + /// + NewOem, + + /// + Refurbished, + } + + /// + public partial class CustomizationInfoType + { + + private string typeField; + + private string dataField; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Data + { + get + { + return this.dataField; + } + set + { + this.dataField = value; + } + } + } + + /// + public partial class RebateType + { + + private System.DateTime rebateStartDateField; + + private System.DateTime rebateEndDateField; + + private string rebateMessageField; + + private string rebateNameField; + + /// + public System.DateTime RebateStartDate + { + get + { + return this.rebateStartDateField; + } + set + { + this.rebateStartDateField = value; + } + } + + /// + public System.DateTime RebateEndDate + { + get + { + return this.rebateEndDateField; + } + set + { + this.rebateEndDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string RebateMessage + { + get + { + return this.rebateMessageField; + } + set + { + this.rebateMessageField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string RebateName + { + get + { + return this.rebateNameField; + } + set + { + this.rebateNameField = value; + } + } + } + + /// + public partial class EnergyDimension + { + + private EnergyUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public EnergyUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class EnergyRatingType + { + + private EnergyUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public EnergyUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class AreaDimension + { + + private AreaUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AreaUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AreaUnitOfMeasure + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("square-in")] + squarein, + + /// + [System.Xml.Serialization.XmlEnumAttribute("square-ft")] + squareft, + + /// + [System.Xml.Serialization.XmlEnumAttribute("square-cm")] + squarecm, + + /// + [System.Xml.Serialization.XmlEnumAttribute("square-m")] + squarem, + } + + /// + public partial class AreaDimensionOptionalUnit + { + + private AreaUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AreaUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class AirFlowDisplacementDimension + { + + private AirFlowDisplacementUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AirFlowDisplacementUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AirFlowDisplacementUnitOfMeasure + { + + /// + cubic_feet_per_minute, + + /// + cubic_feet_per_hour, + } + + /// + public partial class BurnTimeDimension + { + + private BurnTimeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BurnTimeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum BurnTimeUnitOfMeasure + { + + /// + minutes, + + /// + hours, + + /// + cycles, + } + + /// + public partial class CurencyDimension + { + + private GlobalCurrencyCode unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public GlobalCurrencyCode unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class LengthDimension + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum LengthUnitOfMeasure + { + + /// + MM, + + /// + CM, + + /// + M, + + /// + IN, + + /// + FT, + + /// + inches, + + /// + feet, + + /// + meters, + + /// + decimeters, + + /// + centimeters, + + /// + millimeters, + + /// + micrometers, + + /// + nanometers, + + /// + picometers, + + /// + hundredths_inches, + + /// + yards, + + /// + angstrom, + + /// + mils, + + /// + miles, + } + + /// + public partial class LensFixedFocalLengthDimension + { + + private FocalLengthDimension unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public FocalLengthDimension unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum FocalLengthDimension + { + + /// + MM, + + /// + CM, + + /// + M, + + /// + meters, + + /// + centimeters, + + /// + millimeters, + + /// + angstrom, + } + + /// + public partial class LengthDimensionOptionalUnit + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class LengthIntegerDimension + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class OptionalLengthIntegerDimension + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class LuminancePositiveIntegerDimension + { + + private LuminanceUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LuminanceUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum LuminanceUnitOfMeasure + { + + /// + lumens, + } + + /// + public partial class LuminanceIntegerDimension + { + + private LuminanceUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LuminanceUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "nonNegativeInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class LuminanceDimension + { + + private LuminanceUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LuminanceUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class VolumeDimension + { + + private VolumeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VolumeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum VolumeUnitOfMeasure + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("cubic-cm")] + cubiccm, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cubic-ft")] + cubicft, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cubic-in")] + cubicin, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cubic-m")] + cubicm, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cubic-yd")] + cubicyd, + + /// + cup, + + /// + [System.Xml.Serialization.XmlEnumAttribute("fluid-oz")] + fluidoz, + + /// + gallon, + + /// + liter, + + /// + milliliter, + + /// + ounce, + + /// + pint, + + /// + quart, + + /// + liters, + + /// + deciliters, + + /// + centiliters, + + /// + milliliters, + + /// + microliters, + + /// + nanoliters, + + /// + picoliters, + } + + /// + public partial class VolumeIntegerDimension + { + + private VolumeUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VolumeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class VolumeRateDimension + { + + private VolumeRateUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VolumeRateUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum VolumeRateUnitOfMeasure + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("milliliters per second")] + milliliterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("centiliters per second")] + centiliterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("liters per second")] + literspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("milliliters per minute")] + millilitersperminute, + + /// + [System.Xml.Serialization.XmlEnumAttribute("liters per minute")] + litersperminute, + + /// + [System.Xml.Serialization.XmlEnumAttribute("microliters per second")] + microliterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("nanoliters per second")] + nanoliterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("picoliters per second")] + picoliterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("microliters per minute")] + microlitersperminute, + + /// + [System.Xml.Serialization.XmlEnumAttribute("nanoliters per minute")] + nanolitersperminute, + + /// + [System.Xml.Serialization.XmlEnumAttribute("picoliters per minute")] + picolitersperminute, + + /// + gallons_per_day, + + /// + liters_per_day, + + /// + liters, + } + + /// + public partial class WeightDimension + { + + private WeightUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WeightUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum WeightUnitOfMeasure + { + + /// + GR, + + /// + KG, + + /// + OZ, + + /// + LB, + + /// + MG, + + /// + hundredths_pounds, + + /// + kilograms, + + /// + pounds, + + /// + pounds_per_square_inch, + + /// + newtons, + + /// + pascal, + + /// + ounces, + + /// + grams_per_square_meter, + } + + /// + public partial class WeightIntegerDimension + { + + private WeightUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WeightUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class JewelryLengthDimension + { + + private JewelryLengthUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public JewelryLengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum JewelryLengthUnitOfMeasure + { + + /// + MM, + + /// + CM, + + /// + IN, + } + + /// + public partial class JewelryWeightDimension + { + + private JewelryWeightUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public JewelryWeightUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum JewelryWeightUnitOfMeasure + { + + /// + GR, + + /// + KG, + + /// + OZ, + + /// + LB, + + /// + CARATS, + + /// + DWT, + } + + /// + public partial class PositiveWeightDimension + { + + private WeightUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WeightUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class PositiveNonZeroWeightDimension + { + + private WeightUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WeightUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class DegreeDimension + { + + private DegreeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public DegreeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum DegreeUnitOfMeasure + { + + /// + degrees, + + /// + microradian, + + /// + arc_minute, + + /// + arc_sec, + + /// + milliradian, + + /// + radians, + + /// + turns, + + /// + revolutions, + } + + /// + public partial class MemorySizeDimension + { + + private MemorySizeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MemorySizeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum MemorySizeUnitOfMeasure + { + + /// + TB, + + /// + GB, + + /// + MB, + + /// + KB, + + /// + KO, + + /// + MO, + + /// + GO, + + /// + TO, + + /// + bytes, + } + + /// + public partial class MemorySizeIntegerDimension + { + + private MemorySizeUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MemorySizeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class FrequencyDimension + { + + private FrequencyUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public FrequencyUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum FrequencyUnitOfMeasure + { + + /// + pages_per_minute, + + /// + hertz, + + /// + millihertz, + + /// + microhertz, + + /// + terahertz, + + /// + Hz, + + /// + KHz, + + /// + MHz, + + /// + GHz, + } + + /// + public partial class FrequencyIntegerDimension + { + + private FrequencyUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public FrequencyUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class AmperageDimension + { + + private AmperageUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AmperageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AmperageUnitOfMeasure + { + + /// + amps, + + /// + kiloamps, + + /// + microamps, + + /// + milliamps, + + /// + nanoamps, + + /// + picoamps, + } + + /// + public partial class ResistanceDimension + { + + private ResistanceUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ResistanceUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum ResistanceUnitOfMeasure + { + + /// + ohms, + } + + /// + public partial class TimeDimension + { + + private TimeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TimeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum TimeUnitOfMeasure + { + + /// + sec, + + /// + min, + + /// + hr, + + /// + days, + + /// + hours, + + /// + minutes, + + /// + seconds, + + /// + milliseconds, + + /// + microseconds, + + /// + nanoseconds, + + /// + picoseconds, + } + + /// + public partial class StringTimeDimension + { + + private TimeUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TimeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class BatteryLifeDimension + { + + private BatteryAverageLifeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BatteryAverageLifeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum BatteryAverageLifeUnitOfMeasure + { + + /// + minutes, + + /// + hours, + + /// + days, + + /// + weeks, + + /// + months, + + /// + years, + } + + /// + public partial class TimeIntegerDimension + { + + private TimeUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TimeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class DateIntegerDimension + { + + private DateUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public DateUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum DateUnitOfMeasure + { + + /// + days, + + /// + weeks, + + /// + months, + + /// + years, + } + + /// + public partial class SubscriptionTermDimension + { + + private DateUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public DateUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class SunProtectionDimension + { + + private SunProtectionUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public SunProtectionUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum SunProtectionUnitOfMeasure + { + + /// + sun_protection_factor, + } + + /// + public partial class AssemblyTimeDimension + { + + private AssemblyTimeUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AssemblyTimeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AssemblyTimeUnitOfMeasure + { + + /// + minutes, + + /// + hours, + + /// + days, + + /// + weeks, + + /// + months, + + /// + years, + } + + /// + public partial class AgeRecommendedDimension + { + + private AgeRecommendedUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AgeRecommendedUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AgeRecommendedUnitOfMeasure + { + + /// + months, + + /// + years, + } + + /// + public partial class MinimumAgeRecommendedDimension + { + + private AgeRecommendedUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AgeRecommendedUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "nonNegativeInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class BatteryPowerIntegerDimension + { + + private BatteryPowerUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BatteryPowerUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum BatteryPowerUnitOfMeasure + { + + /// + milliamp_hours, + + /// + amp_hours, + + /// + volt_amperes, + + /// + watt_hours, + } + + /// + public partial class BatteryPowerDimension + { + + private BatteryPowerUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BatteryPowerUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class LuminiousIntensityDimension + { + + private LuminousIntensityUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LuminousIntensityUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum LuminousIntensityUnitOfMeasure + { + + /// + candela, + } + + /// + public partial class VoltageDecimalDimension + { + + private VoltageUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VoltageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum VoltageUnitOfMeasure + { + + /// + volts, + + /// + millivolts, + + /// + microvolts, + + /// + nanovolts, + + /// + kilovolts, + + /// + volts_of_alternating_current, + + /// + volts_of_direct_current, + } + + /// + public partial class VoltageIntegerDimension + { + + private VoltageUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VoltageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class VoltageIntegerDimensionOptionalUnit + { + + private VoltageUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VoltageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class WattageIntegerDimension + { + + private WattageUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WattageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum WattageUnitOfMeasure + { + + /// + watts, + + /// + kilowatts, + } + + /// + public partial class WattageDimension + { + + private WattageUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WattageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class WattageDimensionOptionalUnit + { + + private WattageUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public WattageUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class MillimeterDecimalDimension + { + + private MillimeterUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MillimeterUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum MillimeterUnitOfMeasure + { + + /// + millimeters, + } + + /// + public partial class NoiseLevelDimension + { + + private NoiseLevelUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public NoiseLevelUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum NoiseLevelUnitOfMeasure + { + + /// + dBA, + + /// + decibels, + } + + /// + public partial class TemperatureDimension + { + + private TemperatureUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TemperatureUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum TemperatureUnitOfMeasure + { + + /// + C, + + /// + F, + } + + /// + public partial class StringTemperatureDimension + { + + private TemperatureUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TemperatureUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class TemperatureRatingDimension + { + + private TemperatureRatingUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TemperatureRatingUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum TemperatureRatingUnitOfMeasure + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("degrees-celsius")] + degreescelsius, + + /// + [System.Xml.Serialization.XmlEnumAttribute("degrees-fahrenheit")] + degreesfahrenheit, + + /// + kelvin, + } + + /// + public partial class ClothingSizeDimension + { + + private ClothingSizeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ClothingSizeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum ClothingSizeUnitOfMeasure + { + + /// + IN, + + /// + CM, + } + + /// + public partial class StringLengthOptionalDimension + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class StringLengthDimension + { + + private LengthUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public LengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class CurrentDimension + { + + private CurrentUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public CurrentUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CurrentUnitOfMeasure + { + + /// + mA, + + /// + A, + + /// + amps, + + /// + picoamps, + + /// + microamps, + + /// + milliamps, + + /// + kiloamps, + + /// + nanoamps, + } + + /// + public partial class GraduationInterval + { + + private string unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class VolumeAndVolumeRateDimension + { + + private string unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class ForceDimension + { + + private ForceUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ForceUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum ForceUnitOfMeasure + { + + /// + newtons, + + /// + Newton, + + /// + pounds, + + /// + kilograms, + + /// + PSI, + } + + /// + public partial class HardnessDimension + { + + private HardnessUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public HardnessUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum HardnessUnitOfMeasure + { + + /// + brinnell, + + /// + vickers, + + /// + rockwell_a, + + /// + rockwell_b, + + /// + rockwell_c, + + /// + rockwell_d, + + /// + shore_a, + + /// + shore_b, + + /// + shore_c, + + /// + shore_d, + + /// + shore_do, + + /// + shore_e, + + /// + shore_m, + + /// + shore_o, + + /// + shore_oo, + + /// + shore_ooo, + + /// + shore_ooo_s, + } + + /// + public partial class SweetnessAtHarvestDimension + { + + private SweetnessAtHarvestUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public SweetnessAtHarvestUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum SweetnessAtHarvestUnitOfMeasure + { + + /// + brix, + } + + /// + public partial class VineyardYieldDimension + { + + private VineyardYieldUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public VineyardYieldUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum VineyardYieldUnitOfMeasure + { + + /// + tons, + } + + /// + public partial class AlcoholContentDimension + { + + private AlcoholContentUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AlcoholContentUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AlcoholContentUnitOfMeasure + { + + /// + percent_by_volume, + + /// + percent_by_weight, + + /// + unit_of_alcohol, + } + + /// + public partial class NicotineConcentrationDimension + { + + private NicotineConcentrationUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public NicotineConcentrationUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum NicotineConcentrationUnitOfMeasure + { + + /// + milligrams_per_milliliter, + } + + /// + public enum DataTransferUnitOfMeasure + { + + /// + KHz, + + /// + MHz, + + /// + GHz, + + /// + Mbps, + + /// + Gbps, + } + + /// + public enum PowerUnitOfMeasure + { + + /// + watts, + + /// + kilowatts, + + /// + horsepower, + + /// + [System.Xml.Serialization.XmlEnumAttribute("watts-per-sec")] + wattspersec, + } + + /// + public enum ResolutionUnitOfMeasure + { + + /// + megapixels, + + /// + pixels, + + /// + lines_per_inch, + } + + /// + public enum ApertureUnitOfMeasure + { + + /// + f, + } + + /// + public enum ContinuousShootingUnitOfMeasure + { + + /// + frames, + } + + /// + public enum EnergyConsumptionUnitOfMeasure + { + + /// + kilowatt_hours, + + /// + btu, + + /// + kilowatts, + + /// + watt_hours, + + /// + btus, + + /// + cubic_meters, + + /// + cubic_feet, + + /// + joules, + + /// + milliamp_hours, + + /// + milliampere_hour, + + /// + milliampere_second, + } + + /// + public partial class TorqueType + { + + private TorqueUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TorqueUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum TorqueUnitOfMeasure + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("foot-lbs")] + footlbs, + + /// + [System.Xml.Serialization.XmlEnumAttribute("inch-lbs")] + inchlbs, + + /// + centimeter_kilograms, + + /// + foot_pounds, + + /// + inch_ounces, + + /// + inch_pounds, + + /// + kilonewtons, + + /// + kilograms_per_millimeter, + + /// + newton_meters, + + /// + newton_millimeters, + + /// + newtons, + } + + /// + public partial class Customer + { + + private string nameField; + + private string formalTitleField; + + private string givenNameField; + + private string familyNameField; + + private EmailAddressType emailField; + + private System.DateTime birthDateField; + + private bool birthDateFieldSpecified; + + private AddressType[] customerAddressField; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + public string FormalTitle + { + get + { + return this.formalTitleField; + } + set + { + this.formalTitleField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string GivenName + { + get + { + return this.givenNameField; + } + set + { + this.givenNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string FamilyName + { + get + { + return this.familyNameField; + } + set + { + this.familyNameField = value; + } + } + + /// + public EmailAddressType Email + { + get + { + return this.emailField; + } + set + { + this.emailField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "date")] + public System.DateTime BirthDate + { + get + { + return this.birthDateField; + } + set + { + this.birthDateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool BirthDateSpecified + { + get + { + return this.birthDateFieldSpecified; + } + set + { + this.birthDateFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("CustomerAddress")] + public AddressType[] CustomerAddress + { + get + { + return this.customerAddressField; + } + set + { + this.customerAddressField = value; + } + } + } + + /// + public partial class NameValuePair + { + + private string nameField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Name + { + get + { + return this.nameField; + } + set + { + this.nameField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum LanguageStringType + { + + /// + Abkhazian, + + /// + Adygei, + + /// + Afar, + + /// + Afrikaans, + + /// + Albanian, + + /// + Alsatian, + + /// + Amharic, + + /// + Arabic, + + /// + Aramaic, + + /// + Armenian, + + /// + Assamese, + + /// + Aymara, + + /// + Azerbaijani, + + /// + Bambara, + + /// + Bashkir, + + /// + Basque, + + /// + Bengali, + + /// + Berber, + + /// + Bhutani, + + /// + Bihari, + + /// + Bislama, + + /// + Breton, + + /// + Bulgarian, + + /// + Burmese, + + /// + Buryat, + + /// + Byelorussian, + + /// + CantoneseChinese, + + /// + Castillian, + + /// + Catalan, + + /// + Cayuga, + + /// + Cheyenne, + + /// + Chinese, + + /// + ClassicalNewari, + + /// + Cornish, + + /// + Corsican, + + /// + Creole, + + /// + CrimeanTatar, + + /// + Croatian, + + /// + Czech, + + /// + Danish, + + /// + Dargwa, + + /// + Dutch, + + /// + English, + + /// + Esperanto, + + /// + Estonian, + + /// + Faroese, + + /// + Farsi, + + /// + Fiji, + + /// + Filipino, + + /// + Finnish, + + /// + Flemish, + + /// + French, + + /// + FrenchCanadian, + + /// + Frisian, + + /// + Galician, + + /// + Georgian, + + /// + German, + + /// + Gibberish, + + /// + Greek, + + /// + Greenlandic, + + /// + Guarani, + + /// + Gujarati, + + /// + Gullah, + + /// + Hausa, + + /// + Hawaiian, + + /// + Hebrew, + + /// + Hindi, + + /// + Hmong, + + /// + Hungarian, + + /// + Icelandic, + + /// + IndoEuropean, + + /// + Indonesian, + + /// + Ingush, + + /// + Interlingua, + + /// + Interlingue, + + /// + Inuktitun, + + /// + Inuktitut, + + /// + Inupiak, + + /// + Inupiaq, + + /// + Irish, + + /// + Italian, + + /// + Japanese, + + /// + Javanese, + + /// + Kalaallisut, + + /// + Kalmyk, + + /// + Kannada, + + /// + KarachayBalkar, + + /// + Kashmiri, + + /// + Kashubian, + + /// + Kazakh, + + /// + Khmer, + + /// + Kinyarwanda, + + /// + Kirghiz, + + /// + Kirundi, + + /// + Klingon, + + /// + Korean, + + /// + Kurdish, + + /// + Ladino, + + /// + Lao, + + /// + Lapp, + + /// + Latin, + + /// + Latvian, + + /// + Lingala, + + /// + Lithuanian, + + /// + Lojban, + + /// + LowerSorbian, + + /// + Macedonian, + + /// + Malagasy, + + /// + Malay, + + /// + Malayalam, + + /// + Maltese, + + /// + MandarinChinese, + + /// + Maori, + + /// + Marathi, + + /// + Mende, + + /// + MiddleEnglish, + + /// + Mirandese, + + /// + Moksha, + + /// + Moldavian, + + /// + Mongo, + + /// + Mongolian, + + /// + Multilingual, + + /// + Nauru, + + /// + Navaho, + + /// + Nepali, + + /// + Nogai, + + /// + Norwegian, + + /// + Occitan, + + /// + OldEnglish, + + /// + Oriya, + + /// + Oromo, + + /// + Pashto, + + /// + Persian, + + /// + PigLatin, + + /// + Polish, + + /// + Portuguese, + + /// + Punjabi, + + /// + Quechua, + + /// + Romance, + + /// + Romanian, + + /// + Romany, + + /// + Russian, + + /// + Samaritan, + + /// + Samoan, + + /// + Sangho, + + /// + Sanskrit, + + /// + Serbian, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Serbo-Croatian")] + SerboCroatian, + + /// + Sesotho, + + /// + Setswana, + + /// + Shona, + + /// + SichuanYi, + + /// + Sicilian, + + /// + SignLanguage, + + /// + Sindhi, + + /// + Sinhalese, + + /// + Siswati, + + /// + Slavic, + + /// + Slovak, + + /// + Slovakian, + + /// + Slovene, + + /// + Somali, + + /// + Spanish, + + /// + Sumerian, + + /// + Sundanese, + + /// + Swahili, + + /// + Swedish, + + /// + SwissGerman, + + /// + Syriac, + + /// + Tagalog, + + /// + TaiwaneseChinese, + + /// + Tajik, + + /// + Tamil, + + /// + Tatar, + + /// + Telugu, + + /// + Thai, + + /// + Tibetan, + + /// + Tigrinya, + + /// + Tonga, + + /// + Tsonga, + + /// + Turkish, + + /// + Turkmen, + + /// + Twi, + + /// + Udmurt, + + /// + Uighur, + + /// + Ukrainian, + + /// + Ukranian, + + /// + Unknown, + + /// + Urdu, + + /// + Uzbek, + + /// + Vietnamese, + + /// + Volapuk, + + /// + Welsh, + + /// + Wolof, + + /// + Xhosa, + + /// + Yiddish, + + /// + Yoruba, + + /// + Zhuang, + + /// + Zulu, + } + + /// + public enum LanguageSWVG + { + + /// + adygei, + + /// + afrikaans, + + /// + albanian, + + /// + alsatian, + + /// + amharic, + + /// + arabic, + + /// + armenian, + + /// + assamese, + + /// + bambara, + + /// + basque, + + /// + bengali, + + /// + berber, + + /// + breton, + + /// + bulgarian, + + /// + buryat, + + /// + cantonese_chinese, + + /// + castillian, + + /// + catalan, + + /// + cayuga, + + /// + cheyenne, + + /// + chinese, + + /// + classical_newari, + + /// + cornish, + + /// + corsican, + + /// + creole, + + /// + crimean_tatar, + + /// + croatian, + + /// + czech, + + /// + danish, + + /// + dargwa, + + /// + dutch, + + /// + english, + + /// + esperanto, + + /// + estonian, + + /// + farsi, + + /// + filipino, + + /// + finnish, + + /// + flemish, + + /// + french, + + /// + french_canadian, + + /// + georgian, + + /// + german, + + /// + gibberish, + + /// + greek, + + /// + gujarati, + + /// + gullah, + + /// + hausa, + + /// + hawaiian, + + /// + hebrew, + + /// + hindi, + + /// + hmong, + + /// + hungarian, + + /// + icelandic, + + /// + indo_european, + + /// + indonesian, + + /// + ingush, + + /// + inuktitun, + + /// + inuktitut, + + /// + inupiaq, + + /// + irish, + + /// + italian, + + /// + japanese, + + /// + kalaallisut, + + /// + kalmyk, + + /// + karachay_balkar, + + /// + kashubian, + + /// + kazakh, + + /// + khmer, + + /// + klingon, + + /// + korean, + + /// + kurdish, + + /// + ladino, + + /// + lao, + + /// + lapp, + + /// + latin, + + /// + lithuanian, + + /// + lojban, + + /// + lower_sorbian, + + /// + macedonian, + + /// + malagasy, + + /// + malay, + + /// + malayalam, + + /// + maltese, + + /// + mandarin_chinese, + + /// + maori, + + /// + mende, + + /// + middle_english, + + /// + mirandese, + + /// + moksha, + + /// + mongo, + + /// + mongolian, + + /// + multilingual, + + /// + navaho, + + /// + nogai, + + /// + norwegian, + + /// + old_english, + + /// + persian, + + /// + pig_latin, + + /// + polish, + + /// + portuguese, + + /// + romance, + + /// + romanian, + + /// + romany, + + /// + russian, + + /// + samaritan, + + /// + sanskrit, + + /// + serbian, + + /// + [System.Xml.Serialization.XmlEnumAttribute("serbo-croatian")] + serbocroatian, + + /// + sichuan_yi, + + /// + sicilian, + + /// + sign_language, + + /// + slavic, + + /// + slovak, + + /// + slovene, + + /// + somali, + + /// + spanish, + + /// + sumerian, + + /// + swahili, + + /// + swedish, + + /// + swiss_german, + + /// + tagalog, + + /// + taiwanese_chinese, + + /// + tamil, + + /// + thai, + + /// + tibetan, + + /// + turkish, + + /// + udmurt, + + /// + ukrainian, + + /// + unknown, + + /// + urdu, + + /// + vietnamese, + + /// + welsh, + + /// + wolof, + + /// + xhosa, + + /// + yiddish, + + /// + zulu, + } + + /// + public enum MusicFormatType + { + + /// + authorized_bootleg, + + /// + bsides, + + /// + best_of, + + /// + box_set, + + /// + original_recording, + + /// + reissued, + + /// + remastered, + + /// + soundtrack, + + /// + special_edition, + + /// + special_limited_edition, + + /// + cast_recording, + + /// + compilation, + + /// + deluxe_edition, + + /// + digital_sound, + + /// + double_lp, + + /// + explicit_lyrics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("hi-fidelity")] + hifidelity, + + /// + import, + + /// + limited_collectors_edition, + + /// + limited_edition, + + /// + remixes, + + /// + live, + + /// + extra_tracks, + + /// + cutout, + + /// + cd_and_dvd, + + /// + dual_disc, + + /// + hybrid_sacd, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cd-single")] + cdsingle, + + /// + maxi_single, + + /// + sacd, + + /// + minidisc, + + /// + uk_import, + + /// + us_import, + + /// + jp_import, + + /// + enhanced, + + /// + clean, + + /// + copy_protected_cd, + + /// + [System.Xml.Serialization.XmlEnumAttribute("double_lp")] + double_lp1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("soundtrack")] + soundtrack1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cd-single")] + cdsingle1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("remastered")] + remastered1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("box_set")] + box_set1, + + /// + double_cd, + + /// + karaoke, + + /// + [System.Xml.Serialization.XmlEnumAttribute("limited_edition")] + limited_edition1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("maxi_single")] + maxi_single1, + + /// + mp3_audio, + + /// + ringle, + + /// + [System.Xml.Serialization.XmlEnumAttribute("cd_and_dvd")] + cd_and_dvd1, + + /// + shm_cd, + } + + /// + public enum GiftCardsFormatType + { + + /// + email_gift_cards, + + /// + plastic_gift_cards, + + /// + print_at_home, + + /// + multi_pack, + + /// + facebook, + + /// + gift_box, + } + + /// + public enum AudioEncodingType + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("5_1_disney_enhanced_home_theater_mix")] + Item5_1_disney_enhanced_home_theater_mix, + + /// + [System.Xml.Serialization.XmlEnumAttribute("7_1_disney_enhanced_home_theater_mix")] + Item7_1_disney_enhanced_home_theater_mix, + + /// + analog, + + /// + digital_atrac, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_1.0")] + dolby_digital_10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_2.0")] + dolby_digital_20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_2.0_mono")] + dolby_digital_20_mono, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_2.0_stereo")] + dolby_digital_20_stereo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_2.0_surround")] + dolby_digital_20_surround, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_2.1")] + dolby_digital_21, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_3.0")] + dolby_digital_30, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_4.0")] + dolby_digital_40, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_4.1")] + dolby_digital_41, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_5.0")] + dolby_digital_50, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_5.1")] + dolby_digital_51, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_5.1_es")] + dolby_digital_51_es, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_5.1_ex")] + dolby_digital_51_ex, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_6.1_es")] + dolby_digital_61_es, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dolby_digital_6.1_ex")] + dolby_digital_61_ex, + + /// + dolby_digital_ex, + + /// + dolby_digital_live, + + /// + dolby_digital_plus, + + /// + dolby_digital_plus_2_0, + + /// + dolby_digital_plus_5_1, + + /// + dolby_stereo_analog, + + /// + dolby_surround, + + /// + dolby_truehd, + + /// + dolby_truehd_5_1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dts_5.0")] + dts_50, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dts_5.1")] + dts_51, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dts_6.1")] + dts_61, + + /// + dts_6_1_es, + + /// + [System.Xml.Serialization.XmlEnumAttribute("dts_6.1_es")] + dts_61_es, + + /// + dts_es, + + /// + dts_hd_high_res_audio, + + /// + dts_interactive, + + /// + hi_res_96_24_digital_surround, + + /// + mlp_lossless, + + /// + mono, + + /// + [System.Xml.Serialization.XmlEnumAttribute("mpeg_1_2.0")] + mpeg_1_20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("mpeg_2_5.1")] + mpeg_2_51, + + /// + pcm, + + /// + pcm_24bit_96khz, + + /// + pcm_mono, + + /// + pcm_stereo, + + /// + pcm_surround, + + /// + quadraphonic, + + /// + stereo, + + /// + surround, + + /// + thx_surround_ex, + + /// + unknown_audio_encoding, + } + + /// + public enum ZoomUnitOfMeasure + { + + /// + x, + } + + /// + public partial class ZoomDimension + { + + private ZoomUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ZoomUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum PixelUnitOfMeasure + { + + /// + pixels, + + /// + MP, + } + + /// + public partial class PixelDimension + { + + private PixelUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public PixelUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum PressureUnitOfMeasure + { + + /// + bars, + + /// + psi, + + /// + pascal, + } + + /// + public partial class PressureDimension + { + + private PressureUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public PressureUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum OpticalPowerUnitOfMeasure + { + + /// + diopters, + } + + /// + public partial class OpticalPowerDimension + { + + private OpticalPowerUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public OpticalPowerUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class PowerDimension + { + + private PowerUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public PowerUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class ResolutionDimension + { + + private ResolutionUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ResolutionUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class OptionalResolutionDimension + { + + private ResolutionUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ResolutionUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class ApertureDimension + { + + private ApertureUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ApertureUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class ContinuousShootingDimension + { + + private ContinuousShootingUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ContinuousShootingUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class EnergyConsumptionDimension + { + + private EnergyConsumptionUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public EnergyConsumptionUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum StoneCreationMethod + { + + /// + natural, + + /// + simulated, + + /// + synthetic, + } + + /// + public enum AspectRatio + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("2:01")] + Item201, + + /// + [System.Xml.Serialization.XmlEnumAttribute("4:03")] + Item403, + + /// + [System.Xml.Serialization.XmlEnumAttribute("11:09")] + Item1109, + + /// + [System.Xml.Serialization.XmlEnumAttribute("14:09")] + Item1409, + + /// + [System.Xml.Serialization.XmlEnumAttribute("16:09")] + Item1609, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.27:1")] + Item1271, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.29:1")] + Item1291, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.30:1")] + Item1301, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.33:1")] + Item1331, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.34:1")] + Item1341, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.35:1")] + Item1351, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.37:1")] + Item1371, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.38:1")] + Item1381, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.44:1")] + Item1441, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.45:1")] + Item1451, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.50:1")] + Item1501, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.55:1")] + Item1551, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.58:1")] + Item1581, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.59:1")] + Item1591, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.60:1")] + Item1601, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.63:1")] + Item1631, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.65:1")] + Item1651, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.66:1")] + Item1661, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.67:1")] + Item1671, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.70:1")] + Item1701, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.71:1")] + Item1711, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.74:1")] + Item1741, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.75:1")] + Item1751, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.76:1")] + Item1761, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.77:1")] + Item1771, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.78:1")] + Item1781, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.83:1")] + Item1831, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.85:1")] + Item1851, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.87:1")] + Item1871, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.88:1")] + Item1881, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1.98:1")] + Item1981, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.10:1")] + Item2101, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.20:1")] + Item2201, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.21:1")] + Item2211, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.22:1")] + Item2221, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.30:1")] + Item2301, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.31:1")] + Item2311, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.33:1")] + Item2331, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.35:1")] + Item2351, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.39:1")] + Item2391, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.40:1")] + Item2401, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2.55:1")] + Item2551, + + /// + unknown_aspect_ratio, + } + + /// + public enum BatteryCellTypeValues + { + + /// + NiCAD, + + /// + NiMh, + + /// + alkaline, + + /// + aluminum_oxygen, + + /// + lead_acid, + + /// + lead_calcium, + + /// + lithium, + + /// + lithium_ion, + + /// + lithium_manganese_dioxide, + + /// + lithium_metal, + + /// + lithium_polymer, + + /// + manganese, + + /// + polymer, + + /// + silver_oxide, + + /// + zinc, + + /// + lead_acid_agm, + + /// + lithium_air, + + /// + lithium_cobalt, + + /// + lithium_nickel_cobalt_aluminum, + + /// + lithium_nickel_manganese_cobalt, + + /// + lithium_phosphate, + + /// + lithium_thionyl_chloride, + + /// + lithium_titanate, + + /// + nickel_iron, + + /// + nickel_zinc, + + /// + silver_calcium, + + /// + silver_zinc, + + /// + zinc_air, + } + + /// + public enum HazmatItemType + { + + /// + butane, + + /// + fuel_cell, + + /// + gasoline, + + /// + orm_d_class_1, + + /// + orm_d_class_2, + + /// + orm_d_class_3, + + /// + orm_d_class_4, + + /// + orm_d_class_5, + + /// + orm_d_class_6, + + /// + orm_d_class_7, + + /// + orm_d_class_8, + + /// + orm_d_class_9, + + /// + sealed_lead_acid_battery, + + /// + unknown, + } + + /// + public enum AmazonMaturityRatingType + { + + /// + adult_content, + + /// + ages_13_and_older, + + /// + ages_17_and_older, + + /// + ages_9_and_older, + + /// + all_ages, + + /// + children, + + /// + rating_pending, + } + + /// + public enum IdentityPackageType + { + + /// + bulk, + + /// + frustration_free, + + /// + traditional, + } + + /// + public enum SerialNumberFormatType + { + + /// + a_or_z_alphanumeric_13, + + /// + alphanumeric_8, + + /// + numeric_14, + + /// + alphanumeric_14, + + /// + numeric_12, + + /// + w_alphanumeric_12, + } + + /// + public partial class LoyaltyCustomAttribute + { + + private string attributeNameField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute(DataType = "normalizedString")] + public string attributeName + { + get + { + return this.attributeNameField; + } + set + { + this.attributeNameField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public partial class WeightRecommendationType + { + + private PositiveWeightDimension maximumWeightRecommendationField; + + private PositiveWeightDimension minimumWeightRecommendationField; + + /// + public PositiveWeightDimension MaximumWeightRecommendation + { + get + { + return this.maximumWeightRecommendationField; + } + set + { + this.maximumWeightRecommendationField = value; + } + } + + /// + public PositiveWeightDimension MinimumWeightRecommendation + { + get + { + return this.minimumWeightRecommendationField; + } + set + { + this.minimumWeightRecommendationField = value; + } + } + } + + /// + public partial class CharacterDataType + { + + private string sKUField; + + private System.DateTime effectiveTimestampField; + + private bool effectiveTimestampFieldSpecified; + + private string[] pluginField; + + private string additionalMessageDiscriminatorField; + + private string payloadField; + + private string schemaVersionField; + + private bool isOfferOnlyUpdateField; + + private bool isOfferOnlyUpdateFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string SKU + { + get + { + return this.sKUField; + } + set + { + this.sKUField = value; + } + } + + /// + public System.DateTime EffectiveTimestamp + { + get + { + return this.effectiveTimestampField; + } + set + { + this.effectiveTimestampField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool EffectiveTimestampSpecified + { + get + { + return this.effectiveTimestampFieldSpecified; + } + set + { + this.effectiveTimestampFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("Plugin")] + public string[] Plugin + { + get + { + return this.pluginField; + } + set + { + this.pluginField = value; + } + } + + /// + public string AdditionalMessageDiscriminator + { + get + { + return this.additionalMessageDiscriminatorField; + } + set + { + this.additionalMessageDiscriminatorField = value; + } + } + + /// + public string Payload + { + get + { + return this.payloadField; + } + set + { + this.payloadField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string schemaVersion + { + get + { + return this.schemaVersionField; + } + set + { + this.schemaVersionField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool isOfferOnlyUpdate + { + get + { + return this.isOfferOnlyUpdateField; + } + set + { + this.isOfferOnlyUpdateField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isOfferOnlyUpdateSpecified + { + get + { + return this.isOfferOnlyUpdateFieldSpecified; + } + set + { + this.isOfferOnlyUpdateFieldSpecified = value; + } + } + } + + /// + public partial class SpeedDimension + { + + private SpeedUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public SpeedUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum SpeedUnitOfMeasure + { + + /// + feet_per_minute, + + /// + miles_per_hour, + + /// + kilometers_per_hour, + + /// + RPM, + + /// + RPS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("meters per second")] + meterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("centimeters per second")] + centimeterspersecond, + + /// + [System.Xml.Serialization.XmlEnumAttribute("millimeters per second")] + millimeterspersecond, + } + + /// + public enum ToyAwardType + { + + /// + australia_toy_fair_boys_toy_of_the_year, + + /// + australia_toy_fair_toy_of_the_year, + + /// + baby_and_you, + + /// + babyworld, + + /// + child_magazine, + + /// + creative_child_magazine, + + /// + dr_toys_100_best_child_products, + + /// + energizer_battery_operated_toy_of_the_yr, + + /// + family_fun_toy_of_the_year_seal, + + /// + games_magazine, + + /// + gomama_today, + + /// + german_toy_association_toy_of_the_year, + + /// + hamleys_toy_of_the_year, + + /// + junior, + + /// + lion_mark, + + /// + mother_and_baby, + + /// + mum_knows_best, + + /// + national_parenting_approval_award, + + /// + norwegian_toy_association_toy_of_the_yr, + + /// + oppenheim_toys, + + /// + parents_choice_portfolio, + + /// + parents_magazine, + + /// + practical_parenting, + + /// + prima_baby, + + /// + reddot, + + /// + rdj_france_best_electronic_toy_of_the_yr, + + /// + rdj_france_best_toy_of_the_year, + + /// + the_times, + + /// + toy_wishes, + + /// + uk_npd_report_number_one_selling_toy, + + /// + unknown, + } + + /// + public enum PowerPlugType + { + + /// + type_a_2pin_jp, + + /// + type_e_2pin_fr, + + /// + type_j_3pin_ch, + + /// + type_a_2pin_na, + + /// + type_ef_2pin_eu, + + /// + type_k_3pin_dk, + + /// + type_b_3pin_jp, + + /// + type_f_2pin_de, + + /// + type_l_3pin_it, + + /// + type_b_3pin_na, + + /// + type_g_3pin_uk, + + /// + type_m_3pin_za, + + /// + type_c_2pin_eu, + + /// + type_h_3pin_il, + + /// + type_n_3pin_br, + + /// + type_d_3pin_in, + + /// + type_i_3pin_au, + } + + /// + public enum HumanInterfaceInputType + { + + /// + buttons, + + /// + dial, + + /// + handwriting_recognition, + + /// + keyboard, + + /// + keypad, + + /// + keypad_stroke, + + /// + [System.Xml.Serialization.XmlEnumAttribute("keypad_stroke")] + keypad_stroke1, + + /// + microphone, + + /// + touch_screen, + + /// + touch_screen_stylus_pen, + + /// + trackpoint_pointing_device, + } + + /// + public enum HumanInterfaceOutputType + { + + /// + screen, + + /// + speaker, + } + + /// + public enum BluRayRegionType + { + + /// + region_a, + + /// + region_b, + + /// + region_c, + + /// + region_free, + } + + /// + public enum VinylRecordDetailsType + { + + /// + lp, + + /// + [System.Xml.Serialization.XmlEnumAttribute("12_single")] + Item12_single, + + /// + [System.Xml.Serialization.XmlEnumAttribute("45")] + Item45, + + /// + ep, + + /// + [System.Xml.Serialization.XmlEnumAttribute("78")] + Item78, + + /// + other, + + /// + unknown, + } + + /// + public enum TargetGenderType + { + + /// + male, + + /// + female, + + /// + unisex, + } + + /// + public enum AllergenInformationType + { + + /// + abalone, + + /// + abalone_free, + + /// + amberjack, + + /// + amberjack_free, + + /// + apple, + + /// + apple_free, + + /// + banana, + + /// + banana_free, + + /// + barley, + + /// + barley_free, + + /// + beef, + + /// + beef_free, + + /// + buckwheat, + + /// + buckwheat_free, + + /// + celery, + + /// + celery_free, + + /// + chicken_meat, + + /// + chicken_meat_free, + + /// + codfish, + + /// + codfish_free, + + /// + crab, + + /// + crab_free, + + /// + dairy, + + /// + dairy_free, + + /// + eggs, + + /// + egg_free, + + /// + fish, + + /// + fish_free, + + /// + gelatin, + + /// + gelatin_free, + + /// + gluten, + + /// + gluten_free, + + /// + kiwi, + + /// + kiwi_free, + + /// + mackerel, + + /// + mackerel_free, + + /// + melon, + + /// + melon_free, + + /// + mushroom, + + /// + mushroom_free, + + /// + octopus, + + /// + octopus_free, + + /// + orange, + + /// + orange_free, + + /// + peach, + + /// + peach_free, + + /// + peanuts, + + /// + peanut_free, + + /// + pork, + + /// + pork_free, + + /// + salmon, + + /// + salmon_free, + + /// + salmon_roe, + + /// + salmon_roe_free, + + /// + scad, + + /// + scad_free, + + /// + scallop, + + /// + scallop_free, + + /// + sesame_seeds, + + /// + sesame_seeds_free, + + /// + shellfish, + + /// + shellfish_free, + + /// + shrimp, + + /// + shrimp_free, + + /// + soy, + + /// + soy_free, + + /// + squid, + + /// + squid_free, + + /// + tree_nuts, + + /// + tree_nut_free, + + /// + tuna, + + /// + tuna_free, + + /// + walnut, + + /// + walnut_free, + + /// + yam, + + /// + yam_free, + } + + /// + public enum CustomerReturnPolicyType + { + + /// + collectible, + + /// + restocking_fee, + + /// + standard, + + /// + non_returnable, + + /// + seasonal, + + /// + unknown, + } + + /// + public enum ComputerPlatformValues + { + + /// + game_boy_advance, + + /// + gameboy, + + /// + gameboy_color, + + /// + gamecube, + + /// + gizmondo, + + /// + linux, + + /// + macintosh, + + /// + n_gage, + + /// + nintendo_ds, + + /// + nintendo_NES, + + /// + nintendo_super_NES, + + /// + nintendo_wii, + + /// + nintendo64, + + /// + palm, + + /// + playstation, + + /// + playstation_2, + + /// + playstation_vita, + + /// + pocket_pc, + + /// + powermac, + + /// + sega_saturn, + + /// + sony_psp, + + /// + super_nintendo, + + /// + unix, + + /// + windows, + + /// + xbox, + } + + /// + public partial class MagnificationDimension + { + + private MagnificationUnitOfMeasure unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MagnificationUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "positiveInteger")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum MagnificationUnitOfMeasure + { + + /// + multiplier_x, + + /// + diopters, + } + + /// + public partial class OptionalMagnificationDimension + { + + private MagnificationUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MagnificationUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CarSeatWeightGroupEUType + { + + /// + group_zero, + + /// + group_zero_plus, + + /// + group_one, + + /// + group_two, + + /// + group_three, + } + + /// + public partial class NeckSizeDimension + { + + private NeckSizeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public NeckSizeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum NeckSizeUnitOfMeasure + { + + /// + CM, + + /// + IN, + + /// + MM, + + /// + M, + + /// + FT, + } + + /// + public partial class CycleLengthDimension + { + + private CycleLengthUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public CycleLengthUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CycleLengthUnitOfMeasure + { + + /// + CM, + + /// + IN, + } + + /// + public partial class BootSizeDimension + { + + private BootSizeUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public BootSizeUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum BootSizeUnitOfMeasure + { + + /// + adult_us, + } + + /// + public enum LithiumBatteryPackagingType + { + + /// + batteries_contained_in_equipment, + + /// + batteries_only, + + /// + batteries_packed_with_equipment, + } + + /// + public enum EnergyLabelEfficiencyClass + { + + /// + a, + + /// + b, + + /// + c, + + /// + d, + + /// + e, + + /// + f, + + /// + g, + + /// + a_plus, + + /// + a_plus_plus, + + /// + a_plus_plus_plus, + } + + /// + public enum DistributionDesignationValues + { + + /// + jp_parallel_import, + } + + /// + public partial class DensityDimension + { + + private DensityUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public DensityUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum DensityUnitOfMeasure + { + + /// + grams_per_square_meter, + } + + /// + public partial class CapacityUnit + { + + private CapacityUnitMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public CapacityUnitMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CapacityUnitMeasure + { + + /// + cubic_centimeters, + + /// + cubic_feet, + + /// + cubic_inches, + + /// + cubic_meters, + + /// + cubic_yards, + + /// + cups, + + /// + fluid_ounces, + + /// + gallons, + + /// + imperial_gallons, + + /// + liters, + + /// + milliliters, + + /// + ounces, + + /// + pints, + + /// + quarts, + + /// + deciliters, + + /// + centiliters, + + /// + microliters, + + /// + nanoliters, + + /// + picoliters, + + /// + grams, + + /// + kilograms, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ounces")] + ounces1, + + /// + pounds, + + /// + milligrams, + } + + /// + public enum PEGIRatingType + { + + /// + ages_3_and_over, + + /// + ages_7_and_over, + + /// + ages_12_and_over, + + /// + ages_16_and_over, + + /// + ages_18_and_over, + + /// + unknown, + } + + /// + public enum USKRatingType + { + + /// + ages_6_and_over, + + /// + ages_12_and_over, + + /// + ages_16_and_over, + + /// + ages_18_and_over, + + /// + cannot_publicize, + + /// + checked_by_legal_department, + + /// + not_checked, + + /// + without_age_limitation, + + /// + unknown, + } + + /// + public enum Originality + { + + /// + Original, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Original Limited Edition")] + OriginalLimitedEdition, + + /// + Reproduced, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Reproduced Limited Edition")] + ReproducedLimitedEdition, + + /// + Replica, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Replica Limited Edition")] + ReplicaLimitedEdition, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Limited Edition")] + LimitedEdition, + + /// + Manufactured, + + /// + Licensed, + + /// + Vintage, + } + + /// + public partial class ServingDimension + { + + private ServingUnit unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public ServingUnit unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum ServingUnit + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("percent-fda")] + percentfda, + + /// + mg, + + /// + gr, + + /// + ml, + + /// + grams, + + /// + milligrams, + + /// + milliliters, + } + + /// + public enum OrganizationTaxRoles + { + + /// + doctor, + + /// + dentist, + + /// + hospital, + + /// + clinic, + } + + /// + public enum B2bQuantityPriceTypeValues + { + + /// + @fixed, + + /// + percent, + } + + /// + public enum IsSourcingOnDemandValues + { + + /// + yes, + + /// + no, + } + + /// + public enum UKMedicinesClassUnit + { + + /// + professional_use_only, + + /// + general_sales_list, + + /// + pharmacy_p_line, + + /// + prescription_only, + } + + /// + public partial class MaximumPowerType + { + + private MaximumPowerUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public MaximumPowerUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum MaximumPowerUnitOfMeasure + { + + /// + W, + + /// + KW, + } + + /// + public enum PricingStrategyValues + { + + /// + bulk_by_uom, + + /// + catch_by_uom, + + /// + produce_by_uom, + + /// + produce_by_each, + } + + /// + public enum GenericUnit + { + + /// + kilograms, + + /// + grams, + + /// + milligrams, + + /// + ounces, + + /// + pounds, + + /// + inches, + + /// + feet, + + /// + meters, + + /// + centimeters, + + /// + millimeters, + + /// + square_meters, + + /// + square_centimeters, + + /// + square_feet, + + /// + square_inches, + + /// + gallons, + + /// + pints, + + /// + quarts, + + /// + fluid_ounces, + + /// + liters, + + /// + cubic_meters, + + /// + cubic_feet, + + /// + cubic_inches, + + /// + cubic_centimeters, + } + + /// + public enum GdprRiskType + { + + /// + manufacturer_website_registration, + + /// + no_electronic_information_stored, + + /// + user_setting_information_storage, + + /// + pin_or_biometric_recognition_lock, + + /// + cloud_account_connectivity, + + /// + physical_or_cloud_data_storage, + } + + /// + public enum SimCardSlotCountType + { + + /// + single_sim, + + /// + dual_sim, + + /// + triple_sim, + + /// + quad_sim, + } + + /// + public partial class RadiationUnitDimension + { + + private RadiationUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public RadiationUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum RadiationUnitOfMeasure + { + + /// + watts_per_kilogram, + } + + /// + public partial class RefreshRateDimension + { + + private RefreshRateUnitOfMeasure unitOfMeasureField; + + private bool unitOfMeasureFieldSpecified; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public RefreshRateUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool unitOfMeasureSpecified + { + get + { + return this.unitOfMeasureFieldSpecified; + } + set + { + this.unitOfMeasureFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum RefreshRateUnitOfMeasure + { + + /// + GHz, + + /// + MHz, + } + + /// + public enum EuAcousticNoiseValue + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("1")] + Item1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("2")] + Item2, + + /// + [System.Xml.Serialization.XmlEnumAttribute("3")] + Item3, + } + + /// + public partial class AirEfficiencyDimension + { + + private AirEfficiencyUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public AirEfficiencyUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum AirEfficiencyUnitOfMeasure + { + + /// + cubic_feet_per_minute_per_watt, + } + + /// + public partial class MeltingTemperatureDimension + { + + private TemperatureRatingUnitOfMeasure unitOfMeasureField; + + private decimal valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public TemperatureRatingUnitOfMeasure unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute()] + public decimal Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CountryAsLabeledValues + { + + /// + PR, + + /// + PS, + + /// + PT, + + /// + PW, + + /// + PY, + + /// + QA, + + /// + AC, + + /// + AD, + + /// + AE, + + /// + AF, + + /// + AG, + + /// + AI, + + /// + AL, + + /// + AM, + + /// + AN, + + /// + AO, + + /// + AQ, + + /// + AR, + + /// + AS, + + /// + AT, + + /// + RE, + + /// + AU, + + /// + AW, + + /// + AX, + + /// + AZ, + + /// + RO, + + /// + BA, + + /// + BB, + + /// + RS, + + /// + BD, + + /// + BE, + + /// + RU, + + /// + BF, + + /// + BG, + + /// + RW, + + /// + BH, + + /// + BI, + + /// + BJ, + + /// + BL, + + /// + BM, + + /// + BN, + + /// + BO, + + /// + SA, + + /// + SB, + + /// + BQ, + + /// + BR, + + /// + SC, + + /// + BS, + + /// + SD, + + /// + BT, + + /// + SE, + + /// + BV, + + /// + SG, + + /// + BW, + + /// + SH, + + /// + SI, + + /// + BY, + + /// + SJ, + + /// + BZ, + + /// + SK, + + /// + SL, + + /// + SM, + + /// + SN, + + /// + SO, + + /// + CA, + + /// + SR, + + /// + CC, + + /// + SS, + + /// + CD, + + /// + ST, + + /// + CF, + + /// + SV, + + /// + CG, + + /// + CH, + + /// + SX, + + /// + CI, + + /// + SY, + + /// + SZ, + + /// + CK, + + /// + CL, + + /// + CM, + + /// + CN, + + /// + CO, + + /// + TA, + + /// + CR, + + /// + TC, + + /// + TD, + + /// + CS, + + /// + CU, + + /// + TF, + + /// + CV, + + /// + TG, + + /// + TH, + + /// + CW, + + /// + CX, + + /// + CY, + + /// + TJ, + + /// + CZ, + + /// + TK, + + /// + TL, + + /// + TM, + + /// + TN, + + /// + TO, + + /// + TP, + + /// + TR, + + /// + TT, + + /// + DE, + + /// + TV, + + /// + TW, + + /// + DJ, + + /// + TZ, + + /// + DK, + + /// + DM, + + /// + DO, + + /// + UA, + + /// + UG, + + /// + DZ, + + /// + UK, + + /// + UM, + + /// + EC, + + /// + US, + + /// + EE, + + /// + EG, + + /// + EH, + + /// + UY, + + /// + UZ, + + /// + VA, + + /// + ER, + + /// + VC, + + /// + ES, + + /// + ET, + + /// + VE, + + /// + VG, + + /// + VI, + + /// + VN, + + /// + VU, + + /// + FI, + + /// + FJ, + + /// + FK, + + /// + FM, + + /// + FO, + + /// + FR, + + /// + WD, + + /// + WF, + + /// + GA, + + /// + GB, + + /// + WS, + + /// + GD, + + /// + GE, + + /// + GF, + + /// + GG, + + /// + GH, + + /// + GI, + + /// + WZ, + + /// + GL, + + /// + GM, + + /// + GN, + + /// + GP, + + /// + GQ, + + /// + XB, + + /// + GR, + + /// + XC, + + /// + GS, + + /// + GT, + + /// + XE, + + /// + GU, + + /// + GW, + + /// + GY, + + /// + XK, + + /// + XM, + + /// + XN, + + /// + XY, + + /// + HK, + + /// + HM, + + /// + HN, + + /// + HR, + + /// + HT, + + /// + YE, + + /// + HU, + + /// + IC, + + /// + ID, + + /// + YT, + + /// + IE, + + /// + YU, + + /// + IL, + + /// + IM, + + /// + IN, + + /// + IO, + + /// + ZA, + + /// + IQ, + + /// + IR, + + /// + IS, + + /// + IT, + + /// + ZM, + + /// + ZR, + + /// + JE, + + /// + ZW, + + /// + JM, + + /// + JO, + + /// + JP, + + /// + unknown, + + /// + KE, + + /// + KG, + + /// + KH, + + /// + KI, + + /// + KM, + + /// + KN, + + /// + KP, + + /// + KR, + + /// + KW, + + /// + KY, + + /// + KZ, + + /// + LA, + + /// + LB, + + /// + LC, + + /// + LI, + + /// + LK, + + /// + LR, + + /// + LS, + + /// + LT, + + /// + LU, + + /// + LV, + + /// + LY, + + /// + MA, + + /// + MC, + + /// + MD, + + /// + ME, + + /// + MF, + + /// + MG, + + /// + MH, + + /// + MK, + + /// + ML, + + /// + MM, + + /// + MN, + + /// + MO, + + /// + MP, + + /// + MQ, + + /// + MR, + + /// + MS, + + /// + MT, + + /// + MU, + + /// + MV, + + /// + MW, + + /// + MX, + + /// + MY, + + /// + MZ, + + /// + NA, + + /// + NC, + + /// + NE, + + /// + NF, + + /// + NG, + + /// + NI, + + /// + NL, + + /// + NO, + + /// + NP, + + /// + NR, + + /// + NU, + + /// + NZ, + + /// + OM, + + /// + PA, + + /// + PE, + + /// + PF, + + /// + PG, + + /// + PH, + + /// + PK, + + /// + PL, + + /// + PM, + + /// + PN, + } + + /// + public enum LanguageValues + { + + /// + german, + + /// + aragonese, + + /// + sidamo, + + /// + altaic_languages, + + /// + luo, + + /// + papuan_languages, + + /// + khotanese, + + /// + kinyarwanda, + + /// + elamite, + + /// + hausa, + + /// + dutch, + + /// + old_french, + + /// + classical_syriac, + + /// + flemish, + + /// + kokborok, + + /// + songhai_languages, + + /// + nepali, + + /// + makasar, + + /// + ancient_greek, + + /// + sardinian, + + /// + niger_kordofanian_languages, + + /// + chinook_jargon, + + /// + cayuga, + + /// + castillian, + + /// + old_irish, + + /// + persian, + + /// + aleut, + + /// + jula, + + /// + siksika, + + /// + pohnpeian, + + /// + nzima, + + /// + chiricahua, + + /// + siswati, + + /// + sumerian, + + /// + north_american_indian_languages, + + /// + pidgin_english, + + /// + minangkabau, + + /// + dravidian_languages, + + /// + gorontalo, + + /// + slovak, + + /// + hebrew, + + /// + sasak, + + /// + northern_sami, + + /// + ekajuk, + + /// + chechen, + + /// + selkup, + + /// + kirundi, + + /// + braj, + + /// + celtic_languages, + + /// + bengali, + + /// + azerbaijani, + + /// + upper_sorbian, + + /// + sorbian_languages, + + /// + scots, + + /// + afrikaans, + + /// + sami, + + /// + umbundu, + + /// + australian_languages, + + /// + assyrian, + + /// + navaho, + + /// + khoisan_languages, + + /// + chamic_languages, + + /// + lithuanian, + + /// + bambara, + + /// + vietnamese, + + /// + bini, + + /// + maltese, + + /// + slave_athapascan, + + /// + mandar, + + /// + susu, + + /// + lule_sami, + + /// + apache_languages, + + /// + artificial_languages, + + /// + algonquian_languages, + + /// + bikol, + + /// + sanskrit, + + /// + tuvinian, + + /// + bihari, + + /// + wakashan_languages, + + /// + gaelic_scots, + + /// + tatar, + + /// + luba_katanga, + + /// + kumyk, + + /// + welsh, + + /// + chinese, + + /// + japanese, + + /// + beja, + + /// + norwegian_bokmal, + + /// + tzeltal, + + /// + tiv, + + /// + angika, + + /// + scots_gaelic, + + /// + garo, + + /// + otomian_languages, + + /// + north_ndebele, + + /// + dhivehi, + + /// + aramaic, + + /// + rarotongan, + + /// + setswana, + + /// + kanuri, + + /// + mon_khmer_languages, + + /// + haryanvi, + + /// + zaza, + + /// + lushai, + + /// + ijo_languages, + + /// + zande_languages, + + /// + indic, + + /// + sandawe, + + /// + fon, + + /// + ndonga, + + /// + xhosa, + + /// + judeo_persian, + + /// + taiwanese_chinese, + + /// + karen_languages, + + /// + bribri, + + /// + marathi, + + /// + sinhalese, + + /// + inuktitut, + + /// + tigre, + + /// + slovene, + + /// + choctaw, + + /// + ga, + + /// + northern_frisian, + + /// + yugoslavian, + + /// + mirandese, + + /// + nauru, + + /// + spanish, + + /// + somali, + + /// + dakota, + + /// + syriac, + + /// + french_canadian, + + /// + lower_sorbian, + + /// + punjabi, + + /// + inari_sami, + + /// + gwichin, + + /// + inuktitun, + + /// + erzya, + + /// + cushitic_languages, + + /// + kikuyu, + + /// + quechua, + + /// + nilo_saharan_languages, + + /// + sino_tibetan, + + /// + kalaallisut, + + /// + asturian, + + /// + romance, + + /// + pampanga, + + /// + fanti, + + /// + bislama, + + /// + bahasa, + + /// + aromanian, + + /// + madurese, + + /// + pedi, + + /// + norwegian, + + /// + herero, + + /// + yoruba, + + /// + ottoman_turkish, + + /// + latin, + + /// + middle_english, + + /// + gilbertese, + + /// + french, + + /// + georgian, + + /// + portuguese_brazilian, + + /// + old_provencal, + + /// + tamashek, + + /// + serbian, + + /// + marshallese, + + /// + kru_languages, + + /// + kashubian, + + /// + chhattisgarhi, + + /// + kosraean, + + /// + hindi, + + /// + esperanto, + + /// + kazakh, + + /// + gayo, + + /// + afghan_pashtu, + + /// + rapanui, + + /// + ewondo, + + /// + egyptian, + + /// + gibberish, + + /// + khmer, + + /// + banda_languages, + + /// + hungarian, + + /// + moksha, + + /// + creek, + + /// + luiseno, + + /// + karelian, + + /// + greenlandic, + + /// + samoan, + + /// + romansch, + + /// + berber, + + /// + cree, + + /// + gothic, + + /// + nyamwezi, + + /// + magahi, + + /// + shona, + + /// + lunda, + + /// + uzbek, + + /// + arawak, + + /// + friulian, + + /// + fiji, + + /// + turkmen, + + /// + old_persian, + + /// + shan, + + /// + latvian, + + /// + old_english, + + /// + tsonga, + + /// + faroese, + + /// + votic, + + /// + ossetian, + + /// + iroquoian_languages, + + /// + yupik_languages, + + /// + dargwa, + + /// + papiamento, + + /// + phoenician, + + /// + mandingo, + + /// + delaware, + + /// + low_german, + + /// + lao, + + /// + mongolian, + + /// + telugu, + + /// + abkhazian, + + /// + chagatai, + + /// + achinese, + + /// + udmurt, + + /// + siouan_languages, + + /// + malagasy, + + /// + pashto, + + /// + thai, + + /// + efik, + + /// + luxembourgish, + + /// + bodo, + + /// + gbaya, + + /// + kara_kalpak, + + /// + eastern_frisian, + + /// + nepal_bhasa, + + /// + malay, + + /// + germanic_languages, + + /// + tsimshian, + + /// + hokkien, + + /// + adangme, + + /// + dogri, + + /// + lamba, + + /// + sogdian, + + /// + scandanavian_languages, + + /// + middle_french, + + /// + afrihili, + + /// + estonian, + + /// + sichuan_yi, + + /// + portuguese_creole, + + /// + igbo, + + /// + awadhi, + + /// + ukranian, + + /// + interlingua, + + /// + gahrwali, + + /// + mizo, + + /// + interlingue, + + /// + cantonese_chinese, + + /// + albanian, + + /// + italian, + + /// + adygei, + + /// + korean, + + /// + khasi, + + /// + tupi_languages, + + /// + lojban, + + /// + ewe, + + /// + gullah, + + /// + simplified_chinese, + + /// + prakrit_languages, + + /// + akan, + + /// + kashmiri, + + /// + bosnian, + + /// + klingon, + + /// + tai_languages, + + /// + dzongkha, + + /// + belgian, + + /// + manipuri, + + /// + lapp, + + /// + guarani, + + /// + valencian, + + /// + sangho, + + /// + yapese, + + /// + zuni, + + /// + kuanyama, + + /// + bhutani, + + /// + english, + + /// + sign_language, + + /// + czech, + + /// + hawaiian, + + /// + south_ndebele, + + /// + palauan, + + /// + geez, + + /// + austronesian, + + /// + tahitian, + + /// + ladino, + + /// + dinka, + + /// + komi, + + /// + bhojpuri, + + /// + old_norse, + + /// + walloon, + + /// + central_american_indian_languages, + + /// + javanese, + + /// + belarusian, + + /// + tibetan, + + /// + zulu, + + /// + cherokee, + + /// + swahili, + + /// + iranian_languages, + + /// + himachali_languages, + + /// + oriya, + + /// + galibi_carib, + + /// + middle_irish, + + /// + icelandic, + + /// + classical_newari, + + /// + baltic_languages, + + /// + kamba, + + /// + twi, + + /// + afro_asiatic_languages, + + /// + gujarati, + + /// + nyankole, + + /// + baluchi, + + /// + uighur, + + /// + occitan, + + /// + pangasinan, + + /// + semitic_languages, + + /// + sundanese, + + /// + nko, + + /// + tamil, + + /// + gondi, + + /// + judeo_arabic, + + /// + arapaho, + + /// + micmac, + + /// + mohawk, + + /// + yao, + + /// + sranan_tongo, + + /// + farsi, + + /// + bliss, + + /// + gallegan, + + /// + buryat, + + /// + manx, + + /// + tagalog, + + /// + assamese, + + /// + kurukh, + + /// + swiss_german, + + /// + scandinavian_languages, + + /// + old_high_german, + + /// + mandarin_chinese, + + /// + polish, + + /// + kabyle, + + /// + galician, + + /// + mayan, + + /// + ukrainian, + + /// + bamileke_languages, + + /// + zenaga, + + /// + kalmyk, + + /// + ojibwa, + + /// + tereno, + + /// + karachay_balkar, + + /// + yakut, + + /// + filipino, + + /// + rajasthani, + + /// + aymara, + + /// + kawi, + + /// + manchu, + + /// + traditional_chinese, + + /// + romanian, + + /// + limburgan, + + /// + southern_sami, + + /// + burmese, + + /// + armenian, + + /// + breton, + + /// + hmong, + + /// + indo_european, + + /// + middle_high_german, + + /// + ido, + + /// + sindhi, + + /// + bulgarian, + + /// + neapolitan, + + /// + kachin, + + /// + dogrib, + + /// + moldavian, + + /// + mongo, + + /// + blin, + + /// + ugaritic, + + /// + hiri_motu, + + /// + soninke, + + /// + tok_pisin, + + /// + osage, + + /// + romany, + + /// + byelorussian, + + /// + maharati, + + /// + duala, + + /// + american_sign_language, + + /// + marwari, + + /// + sicilian, + + /// + akkadian, + + /// + timne, + + /// + tumbuka, + + /// + greek, + + /// + basa, + + /// + kabardian, + + /// + southern_sotho, + + /// + haida, + + /// + basque, + + /// + chipewyan, + + /// + [System.Xml.Serialization.XmlEnumAttribute("serbo-croatian")] + serbocroatian, + + /// + finnish, + + /// + venda, + + /// + avaric, + + /// + croatian, + + /// + hittite, + + /// + southern_altai, + + /// + salishan_languages, + + /// + mari, + + /// + mende, + + /// + nahuatl, + + /// + haitian, + + /// + maori, + + /// + sukuma, + + /// + corsican, + + /// + ingush, + + /// + nyoro, + + /// + washo, + + /// + none, + + /// + romansh, + + /// + inupiaq, + + /// + mossi, + + /// + buginese, + + /// + pali, + + /// + inupiak, + + /// + nias, + + /// + vai, + + /// + kumaoni, + + /// + russian, + + /// + chichewa, + + /// + lahnda, + + /// + nogai, + + /// + french_creole, + + /// + iban, + + /// + manobo_languages, + + /// + nubian_languages, + + /// + pig_latin, + + /// + cornish, + + /// + walamo, + + /// + afar, + + /// + yiddish, + + /// + bantu, + + /// + avestan, + + /// + grebo, + + /// + irish, + + /// + kannada, + + /// + niuean, + + /// + acoli, + + /// + unknown, + + /// + norwegian_nynorsk, + + /// + arabic, + + /// + dari, + + /// + multilingual, + + /// + indonesian, + + /// + danish, + + /// + philippine_languages, + + /// + chamorro, + + /// + tetum, + + /// + tonga_nyasa, + + /// + lingala, + + /// + zhuang, + + /// + batak, + + /// + zapotec, + + /// + caddo, + + /// + catalan, + + /// + cebuano, + + /// + skolt_sami, + + /// + kirghiz, + + /// + munda_languages, + + /// + old_slavonic, + + /// + ganda, + + /// + serer, + + /// + lezghian, + + /// + tlingit, + + /// + hupa, + + /// + unqualified, + + /// + provencal, + + /// + chuukese, + + /// + cambodian, + + /// + caucasian_languages, + + /// + slovakian, + + /// + waray, + + /// + fang, + + /// + swedish, + + /// + maithili, + + /// + alsatian, + + /// + kutenai, + + /// + wolof, + + /// + bashkir, + + /// + luba_lulua, + + /// + fulah, + + /// + kpelle, + + /// + slavic, + + /// + kurdish, + + /// + turkish, + + /// + cheyenne, + + /// + macedonian, + + /// + tokelau, + + /// + tigrinya, + + /// + santali, + + /// + crimean_tatar, + + /// + south_american_indian, + + /// + lozi, + + /// + ainu, + + /// + sesotho, + + /// + mapudungun, + + /// + athapascan_languages, + + /// + coptic, + + /// + pahlavi, + + /// + malayalam, + + /// + chuvash, + + /// + urdu, + + /// + land_dayak_languages, + + /// + portuguese, + + /// + latin_spanish, + + /// + bemba, + + /// + oromo, + + /// + frisian, + + /// + amharic, + + /// + kongo, + + /// + chibcha, + + /// + masai, + + /// + iloko, + + /// + hiligaynon, + + /// + finno_ugrian, + + /// + tuvalu, + + /// + tajik, + + /// + volapuk, + + /// + balinese, + + /// + kimbundu, + + /// + creole, + + /// + middle_dutch, + + /// + tonga, + + /// + tulu, + + /// + samaritan, + + /// + konkani, + } + + /// + public partial class NetContentCountUnit + { + + private CountUnit unitOfMeasureField; + + private string valueField; + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public CountUnit unitOfMeasure + { + get + { + return this.unitOfMeasureField; + } + set + { + this.unitOfMeasureField = value; + } + } + + /// + [System.Xml.Serialization.XmlTextAttribute(DataType = "normalizedString")] + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + public enum CountUnit + { + + /// + count, + + /// + roll, + + /// + can, + + /// + piece, + + /// + pair, + + /// + bag, + + /// + box, + + /// + sheet, + + /// + bottle, + } + + /// + public enum ComputerCpuTypeValues + { + + /// + Pentium_N3510, + + /// + Celeron_867, + + /// + Core_i3_350M, + + /// + Athlon_II_X3_Triple_Core_450, + + /// + pentium_gold_g5500t, + + /// + Core_i5_3340s, + + /// + Pentium_G662, + + /// + Pentium_G660, + + /// + celeron_n3000, + + /// + Turion_II_ULTRA_M600, + + /// + C7_M_772_VIA, + + /// + xeon_platinum_8176f, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68882")] + Item68882, + + /// + atom_z8700, + + /// + A4_1200_Accelerated, + + /// + core_i3_2357u, + + /// + Core_i5_3210M, + + /// + Athlon_II_X2_Dual_Core_235e, + + /// + i3_2367, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.2_GHz")] + Core_i7_22_GHz, + + /// + xeon_platinum_8176m, + + /// + Phenom_II_X2_Dual_Core_550, + + /// + pentium_g3450t, + + /// + Pentium_G650, + + /// + Pentium_N3530, + + /// + Athlon_II_X3_Triple_Core_435, + + /// + Core_i3_2357M, + + /// + Core_2_Duo_P8800, + + /// + a8_7600, + + /// + A_Series_Quad_Core_A8_5600K, + + /// + Sempron_3000, + + /// + atom_z3480, + + /// + xeon_bronze_3106, + + /// + xeon_bronze_3104, + + /// + pentium_e7600, + + /// + Intel_Core_i7_Extreme, + + /// + Celeron_887, + + /// + Core_2_Duo_T9300, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.93GHz")] + Core_2_Duo_293GHz, + + /// + Pentium_3556U, + + /// + Athlon_X2_Dual_Core_5000_plus_, + + /// + amd_a6, + + /// + Xeon_W3520, + + /// + Athlon_II_X3_Triple_Core_440, + + /// + fx_8_core, + + /// + amd_a8, + + /// + core_i7_2760qm, + + /// + Pentium_M_715, + + /// + amd_a4, + + /// + pentium_4405y, + + /// + Pentium_M_710, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.8GHz")] + Core_2_Duo_18GHz, + + /// + Celeron_877, + + /// + ryzen_5_4500u, + + /// + Phenom_II_X3_Triple_Core_8450, + + /// + pentium_4405u, + + /// + omap3630, + + /// + Core_i5_2450M, + + /// + core_i5_6500, + + /// + Core_i7_4550U, + + /// + Pentium_U5600, + + /// + core_m, + + /// + core_i3_2227u, + + /// + Phenom_II_X4_Quad_Core_920, + + /// + Phenom_II_X4_Quad_Core_P940, + + /// + Pentium_M_725, + + /// + Celeron_2957U, + + /// + Core_i5_3470T, + + /// + Phenom_II_X4_Quad_Core_925, + + /// + pa_8600, + + /// + FX_Series_Eight_Core_FX_8350, + + /// + cyrix_mii, + + /// + xscale, + + /// + core_i5_1035g1, + + /// + Core_i5_4670K, + + /// + core_i5_3470, + + /// + geode_gx1, + + /// + Xeon_W3503, + + /// + v30mx, + + /// + A6_5200, + + /// + Core_i3_2350M, + + /// + Pentium_3550M, + + /// + Pentium_M_738, + + /// + mobile_athlon_xp_m, + + /// + apple_a7, + + /// + Pentium_M_733, + + /// + core_i7_4712mq, + + /// + apple_a6, + + /// + Pentium_M_735, + + /// + apple_a5, + + /// + apple_a4, + + /// + Pentium_M_730, + + /// + apple_a8, + + /// + core_i5_3470s, + + /// + xeon_gold_6126t, + + /// + Athlon_64_3800, + + /// + e_series_dual_core_e_450, + + /// + arm_v7, + + /// + pentium_d3400, + + /// + celeron_n3450, + + /// + alpha_21164a, + + /// + Celeron_847, + + /// + pentium_g3258, + + /// + Snapdragon_s2, + + /// + Snapdragon_s1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A13")] + Item1_2GHz_Cortex_A13, + + /// + Core_i5_3340M, + + /// + ARM_Cortex_A5, + + /// + core_i7_4980HQ, + + /// + Phenom_II_X4_Quad_Core_P960, + + /// + Pentium_M_745, + + /// + Celeron_2955U, + + /// + Turion_II_X2_Dual_Core_N530, + + /// + Pentium_M_740, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.66GHz")] + Core_2_Duo_166GHz, + + /// + Core_i7_2630QM, + + /// + Core_2_Duo, + + /// + winchip_c6, + + /// + pentium_g3250, + + /// + Pentium_P6200, + + /// + core_i5_1035g7, + + /// + core_i5_1035g4, + + /// + Phenom_II_X6_Six_Core_1055T, + + /// + Phenom_II_X3_Triple_Core_8400, + + /// + Phenom_II_X4_Quad_Core_910, + + /// + pentium_g3260, + + /// + Pentium_M_755, + + /// + Phenom_II_X4_Quad_Core_9650, + + /// + intel_atom_230, + + /// + Pentium_M_753, + + /// + Pentium_M_750, + + /// + core_i5_4278u, + + /// + geode_gxm, + + /// + Turion_II_Neo_X2_Dual_Core_K625, + + /// + Pentium_957, + + /// + pentium_g630, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_Xeon_2.4GHz_")] + Quad_Core_Xeon_24GHz_, + + /// + Phenom_II_X4_Quad_Core_965, + + /// + intel_turbo_n2840, + + /// + novathor_l9000, + + /// + Core_i3_390M, + + /// + Pentium_E8400, + + /// + Pentium_T2330, + + /// + Turion_64_X2_Dual_Core_TL_52, + + /// + Core_i5_2540M, + + /// + Pentium_M_760, + + /// + Turion_64_X2_Dual_Core_TL_56, + + /// + Snapdragon, + + /// + Core_i7_4800MQ, + + /// + Phenom_II_X2_Dual_Core_B75, + + /// + Athlon_64_X2_QL_64_Dual_Core, + + /// + core_i7_6600u, + + /// + core_i9_7940x, + + /// + Core_i5_4460, + + /// + Athlon_64_X2_3600_plus, + + /// + Core_i7_980X, + + /// + Pentium_M_778, + + /// + ryzen_3_3250u, + + /// + core_i7_6820hk, + + /// + Core_i7_4702MQ, + + /// + Pentium_M_773, + + /// + sa_1100, + + /// + Intel_Core_i5_4430, + + /// + Pentium_T4500, + + /// + v25, + + /// + [System.Xml.Serialization.XmlEnumAttribute("5x86")] + Item5x86, + + /// + Pentium_M_770, + + /// + omap5432, + + /// + Phenom_II_X3_Triple_Core_N850, + + /// + core_i7_6820hq, + + /// + omap5430, + + /// + z_series_dual_core_z_01, + + /// + Core_2_Duo_T8400, + + /// + E_Series_Processor_E_240, + + /// + Athlon_64_X2_4600, + + /// + core_i7_6950x, + + /// + Phenom_II_X4_Quad_Core_945, + + /// + Core_2_Quad_Q9500, + + /// + core_i7_6700hq, + + /// + Core_i7_4770S, + + /// + E1_2500_Accelerated_Processor, + + /// + Sempron_3400, + + /// + Athlon_LE_1640, + + /// + k6_2_plus, + + /// + Pentium_T2310, + + /// + v30, + + /// + amd_ryzen_5_1600x, + + /// + Core_i5_2457M, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_Xeon_2.8_GHz_")] + Quad_Core_Xeon_28_GHz_, + + /// + Turion_X2_RM_75, + + /// + Athlon_II_X4_Quad_Core_620, + + /// + powerpc, + + /// + ryzen_threadripper_3960x, + + /// + extremecpu, + + /// + Core_i5_560UM, + + /// + core_i7_4860HQ, + + /// + amd_ryzen_1800x, + + /// + core_i3, + + /// + core_i5, + + /// + core_i7, + + /// + Phenom_II_X4_Quad_Core_955, + + /// + Core_i7_4200U, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i3_3.2_GHz_")] + Core_i3_32_GHz_, + + /// + Pentium_B820, + + /// + Core_i7_4770K, + + /// + C7_M_764, + + /// + xeon_platinum_8170m, + + /// + Athlon_II_X4_Quad_Core_630, + + /// + core_i9, + + /// + Phenom_II_X3_Triple_Core_N830, + + /// + Core_i5_2410M, + + /// + Turion_II_ULTRA_M660, + + /// + core_i5_4670r, + + /// + Xeon_X5560, + + /// + core_i5_4670s, + + /// + amd_ryzen_3_1200, + + /// + xscale_pxa901, + + /// + Athlon_II_X4_Quad_Core_635, + + /// + Core_i7_4558U, + + /// + intel_core_2_duo, + + /// + atom_z8350, + + /// + Core_i7_4510U, + + /// + i3_2350m, + + /// + Athlon_II_X4_Quad_Core_640, + + /// + cyrix_iii, + + /// + pentium_g4520, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Quad_Core_2.26GHz")] + Quad_Core_226GHz, + + /// + core_i7_4930mx, + + /// + geoden_x, + + /// + Core_2_Duo_T7100, + + /// + Pentium_T2370, + + /// + Athlon_II_X3_Triple_Core_425, + + /// + core_i7_4770r, + + /// + core_i5_5300u, + + /// + A4_1250, + + /// + Athlon_II_X4_Quad_Core_645, + + /// + Core_i5_660, + + /// + Pentium_3558U, + + /// + Core_i3_2310M, + + /// + Athlon_64_X2_Dual_Core_4450, + + /// + Celeron_2950M, + + /// + Intel_Core_i3_3120M, + + /// + Pentium_997, + + /// + intel_centrino, + + /// + Athlon_II_Dual_Core_M320, + + /// + ARM_9_2818, + + /// + i5_4670k, + + /// + Sempron_210U, + + /// + Pentium_T3200, + + /// + [System.Xml.Serialization.XmlEnumAttribute("210")] + Item210, + + /// + sa_1110, + + /// + pentium_g4500, + + /// + Celeron_T3000, + + /// + Pentium_T2350, + + /// + Phenom_II_X6_Six_Core_1100T, + + /// + A31s, + + /// + Sempron_2100, + + /// + Athlon_II_X2_Dual_Core_QL_60, + + /// + Sempron_M_2600, + + /// + Athlon_II_X2_Dual_Core_QL_62, + + /// + Athlon_II_X2_Dual_Core_QL_64, + + /// + [System.Xml.Serialization.XmlEnumAttribute("6x86mx")] + Item6x86mx, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i3_3.06_GHz_")] + Core_i3_306_GHz_, + + /// + athlon_mp, + + /// + eden_esp_7000, + + /// + Athlon_64_X2_Dual_Core_3800_plus, + + /// + Core_2_Due_P8400, + + /// + core_i5_6500t, + + /// + efficion_8800, + + /// + mc68sz328, + + /// + core_i5_5250u, + + /// + Core_i5_750, + + /// + celeron_n2940, + + /// + Phenom_II_X6_Six_Core_1090T, + + /// + core_i7_4600u, + + /// + Core_i5_2310, + + /// + core_i7_4770, + + /// + core_i7_4771, + + /// + core_i3_4360t, + + /// + Core_2_Quad_Q9450, + + /// + duron, + + /// + Core_2_Duo_E6600, + + /// + Athlon_64_X2_Dual_Core_4400, + + /// + ryzen_7_2700, + + /// + celeron_3855u, + + /// + intel_core_i9, + + /// + Core_i7_3610QM, + + /// + core_i5_6440hq, + + /// + Core_i5_2537M, + + /// + pentium_gold_g5500, + + /// + Pentium_E5300, + + /// + Atom_Z3770, + + /// + Pentium_E5301, + + /// + intel_atom_n280, + + /// + Core_i7_3667U, + + /// + Exynos_5200, + + /// + core_i7_5930k, + + /// + Core_Duo_T2600, + + /// + Core_Duo_U2400, + + /// + Atom_N330, + + /// + core_i9_7800x, + + /// + pentium_n3520, + + /// + Core_i5_450M, + + /// + alpha_21364, + + /// + a_series_quad_core_a8_6500, + + /// + ARM_Cortex_A_9, + + /// + Atom_230, + + /// + Atom_D2550, + + /// + Pentium_T2390, + + /// + Core_i5_2405S, + + /// + Intel_Core_i7_4702MQ, + + /// + motorola_dragonball, + + /// + A_Series_Dual_Core_A4_3305, + + /// + tmpr3922au, + + /// + Athlon_64_X2_4000_plus, + + /// + Core_i5_760, + + /// + Athlon_64_4200_plus, + + /// + Pentium_4, + + /// + intel_bay_trail_m_n2830_dual_core, + + /// + SOC_PXA986_Dual_Core, + + /// + intel_core_2_extreme, + + /// + Core_i5_470UM, + + /// + Core_2_Quad_Q9000, + + /// + core_i7_4900mq, + + /// + Core_2_Duo_T6600, + + /// + Mediatek_8389_Quadcore, + + /// + phenom_dual_core, + + /// + Celeron_E3500, + + /// + Core_2_Duo_T5750, + + /// + Core_2_Duo_SP9400, + + /// + Pentium_M, + + /// + pentium_n3540, + + /// + Core_2_Quad_Q9400, + + /// + Core_i5_3427U, + + /// + core_i7_8650u, + + /// + Athlon_II_170u, + + /// + Core_2_Duo_SU_9600, + + /// + supersparc, + + /// + xeon_e3_1226v3, + + /// + core_i3_family, + + /// + Core_2_Duo_T7500, + + /// + Pentium_E4400, + + /// + core_i7_4770hq, + + /// + quad_core_a8_6410_accelerated, + + /// + Pentium_E2220, + + /// + Celeron_T3500, + + /// + Core_2_Duo_E2200, + + /// + Snapdragon_S1_MSM7225, + + /// + Core_2_Duo_T6670, + + /// + power5, + + /// + Turion_64_X2_Mobile, + + /// + ryzen_threadripper_1950x, + + /// + r4000, + + /// + Athlon_64_3000, + + /// + Intel_PDC_G2030, + + /// + Sempron_64_3000, + + /// + OMAP_3400, + + /// + celeron_2961y, + + /// + AMD_Kabini_E1_2100, + + /// + power3, + + /// + power4, + + /// + Xeon_3530, + + /// + celeron_j3355, + + /// + AMD_Kabini_A6_5200M_Quad_Core, + + /// + Sempron_3600_plus, + + /// + atom_z3735d, + + /// + atom_z3735e, + + /// + A_Series_Quad_Core_A6_3430MX, + + /// + Pentium_E6600, + + /// + Core_i7_4820K, + + /// + ryzen_3_3300x, + + /// + atom_z3735f, + + /// + intel_atom_n270, + + /// + atom_z3735g, + + /// + Core_2_Duo_T5300, + + /// + Pentium_G620T, + + /// + Core_i5_2400s, + + /// + Core_2_Duo_E4400, + + /// + Core_i7_3537U, + + /// + Core_i7_3632QM, + + /// + celeron_n2930, + + /// + core_i5_5257u, + + /// + ryzen_7_3700x, + + /// + atom_z3736f, + + /// + Core_i5_540M, + + /// + Pentium_M_725A, + + /// + amd_r_series, + + /// + phenom_x4, + + /// + core_i7_3740qm, + + /// + atom_x5_z8300, + + /// + i7_2637m, + + /// + Athlon_64_Single_Core_TF_20, + + /// + Intel_Core_i5_4200U, + + /// + xeon_e5_2450, + + /// + phenom_x2, + + /// + phenom_x3, + + /// + core_i7_6560u, + + /// + Athlon_64_X2_4450B, + + /// + intel_core_2_duo_mobile, + + /// + arm610, + + /// + Snapdragon_S3_APQ8060, + + /// + eden_esp_4000, + + /// + MT8317T, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486")] + Item80486, + + /// + Core_2_Duo_P9600, + + /// + athlon_x2, + + /// + powerpc_970, + + /// + pentium_ii_xeon, + + /// + athlon_x4, + + /// + FX_Series_Quad_Core_FX_4320, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c31")] + Item80c31, + + /// + Core_i7_2600K, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c32")] + Item80c32, + + /// + intel_atom_z530, + + /// + winchip_2, + + /// + amd_ryzen_7_pro_1700x, + + /// + Athlon_II_X2_Dual_Core_M520, + + /// + Core_i7_2600S, + + /// + Celeron_330, + + /// + pentium_e8500, + + /// + Athlon_II_X2_Dual_Core_260, + + /// + Pentium_E5700, + + /// + core_i7_10510u, + + /// + atom_z3770d, + + /// + Athlon_II_X2_Dual_Core_TK_53, + + /// + core_i7_10510y, + + /// + Athlon_II_X2_Dual_Core_TK_57, + + /// + core_i5_6400, + + /// + Core_i3_530M, + + /// + Core_i3_4100M, + + /// + xeon_gold_6126f, + + /// + A_Series_Dual_Core_A6_5400K, + + /// + Phenom_II_X4_Quad_Core_P920, + + /// + unknown, + + /// + Athlon_II_X2_Dual_Core_255, + + /// + Core_i7_2670QM, + + /// + ryzen_5_2500x, + + /// + Athlon_II_X2_Dual_Core_250, + + /// + Core_2_Duo_E8400, + + /// + athlon_xp, + + /// + Atom_z3635G, + + /// + Pentium_E2200, + + /// + ryzen_5_2500u, + + /// + Phenom_II_X4_Quad_Core_9600, + + /// + intel_atom_z550, + + /// + xeon_e5_2407, + + /// + core_i7_3517um, + + /// + Athlon_2650e, + + /// + a_series_quad_core_a6_3600m, + + /// + Athlon_II_X2_Dual_Core_245, + + /// + mobile_athlon_4, + + /// + Core_i3_4100U, + + /// + Athlon_II_X2_Dual_Core_240, + + /// + core_i9_8950hk, + + /// + a10_7850k, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c88")] + Item80c88, + + /// + atom_z3580, + + /// + Athlon_64_X2_5400_plus, + + /// + i7_3960x, + + /// + itanium_2, + + /// + core_i3_6100h, + + /// + Atom_Z3740, + + /// + Core_i3_4012Y, + + /// + xeon_e5_2400, + + /// + Intel_Celeron_G1610T, + + /// + Core_i7_820QM, + + /// + Atom_Z670, + + /// + core_i3_8100, + + /// + a6_8500p, + + /// + core_i3_6100t, + + /// + core_i3_6100u, + + /// + Core_2_Duo_U7700, + + /// + Celeron_SU2300, + + /// + Athlon_II_X2_Dual_Core_220, + + /// + rockchip_rk3288, + + /// + Athlon_64_3400, + + /// + Athlon_II_Neo_X2_Dual_Core_K325, + + /// + Core_2_Duo_P7450, + + /// + Core_2_Duo_E7500, + + /// + atom_z3560, + + /// + Exynos_5250, + + /// + intel_atom_z520, + + /// + Sempron_M_3000, + + /// + mobile_pentium_4, + + /// + Snapdragon_MSM8260A, + + /// + mobile_pentium_2, + + /// + mobile_pentium_3, + + /// + Athlon_64_X2_6000_plus, + + /// + atom_z3775d, + + /// + Core_i3_4010U, + + /// + E_Series_Dual_Core_E3_3200, + + /// + FX_Series_Six_Core_FX_6200, + + /// + pentium_p7570, + + /// + Core_i3_4010Y, + + /// + Core_2_Duo_E4000, + + /// + Athlon_II_X2_Dual_Core_215, + + /// + Quad_Core_Q9000, + + /// + Core_i7_620LM, + + /// + intel_atom_z510, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.86GHz")] + Core_2_Duo_186GHz, + + /// + Core_i5_2300, + + /// + core_i7_8700, + + /// + pentium_pro, + + /// + i7_2677m, + + /// + Turion_64_X2_TK_55, + + /// + Turion_64_X2_TK_57, + + /// + Turion_64_X2_TK_58, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486dx2")] + Item80486dx2, + + /// + Turion_64_X2_TK_53, + + /// + Athlon_II_Dual_Core_260, + + /// + r3900, + + /// + ARM_710a, + + /// + Sempron_3100, + + /// + a6_7000, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.0GHz")] + Core_2_Duo_20GHz, + + /// + Core_i5_4200Y, + + /// + ryzen_5_4600u, + + /// + core_i7_extreme, + + /// + Pentium_G540, + + /// + Core_i3_2100_, + + /// + Phenom_II_X6_Six_Core_1045T, + + /// + ryzen_5_4600h, + + /// + core_i5_6600k, + + /// + pentium_g3220t, + + /// + r3912, + + /// + pentium_t7500, + + /// + r3910, + + /// + geode_gxlv, + + /// + a10_8700p, + + /// + i7_2670qm, + + /// + Phenom_II_X4_Quad_Core_9550, + + /// + Athlon_II_Dual_Core_245, + + /// + xeon_phi, + + /// + core_i3_8300, + + /// + Pentium_G531, + + /// + pa_7200, + + /// + mobile_athon_64, + + /// + Celeron_D_360, + + /// + Intel_Core_i7_4500U, + + /// + core_i5_3570s, + + /// + Core_i5_4202Y, + + /// + xeon_gold_6150, + + /// + Athlon_II_X3_Triple_Core_400E, + + /// + xeon_gold_6152, + + /// + core_i5_6600t, + + /// + sparc, + + /// + Pentium_G560, + + /// + xeon_gold_6154, + + /// + amd_ryzen_1600, + + /// + ARM_710t, + + /// + intel_pentium_g4400, + + /// + Tegra, + + /// + xeon_gold_6146, + + /// + Athlon_X2_Dual_Core_M300, + + /// + ryzen_5_3400g, + + /// + xeon_gold_6148, + + /// + core_i7_4720hq, + + /// + amd_ryzen_3_pro_1200, + + /// + xeon_gold_6140, + + /// + pentium_t6670, + + /// + Turion_64_X2_TL_64_Gold, + + /// + xeon_gold_6142, + + /// + celeron_n3150, + + /// + Pentium_G550, + + /// + intel_xeon_mp, + + /// + xeon_gold_6144, + + /// + athlon_x4_540, + + /// + pentium_J2900, + + /// + Core_i3_540, + + /// + nec_mips, + + /// + Core_2_Duo_P8700, + + /// + Snapdragon_S2_MSM8225, + + /// + Turion_II_X2_Dual_Core_M300, + + /// + Celeron_D_340, + + /// + pentium_t6600, + + /// + Celeron_D_346, + + /// + Celeron_D_345, + + /// + Athlon_II_Dual_Core_260u, + + /// + pentium_t5750, + + /// + pentium_3561y, + + /// + Celeron_G1820, + + /// + omap4430, + + /// + Core_2_Duo_E8300, + + /// + Phenom_II_X4_Quad_Core_9500, + + /// + Pentium_3560Y, + + /// + Core_i3_550, + + /// + Core_i7_640LM, + + /// + core_i7_4810MQ, + + /// + Core_i5_3350P, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.86GHz_")] + Core_2_Duo_186GHz_, + + /// + Celeron_D_335, + + /// + a_series_quad_core_a6_3400m, + + /// + Celeron_D_336, + + /// + xeon_gold_6138t, + + /// + Core_i7_2620QM, + + /// + core_i5_8250u, + + /// + a8_6410, + + /// + Phenom_II_X3_Triple_Core_8550, + + /// + Core_Duo_T2050, + + /// + core_i5_4690, + + /// + Pentium_G570, + + /// + athlon_x4_560, + + /// + pentium_3560m, + + /// + core_i3_4370, + + /// + intel_core_2_solo, + + /// + ultrasparc_iii, + + /// + ultrasparc_iis, + + /// + Core_i5_3570K, + + /// + Core_i3_2365M, + + /// + E1_6010, + + /// + Celeron_D_326, + + /// + alpha, + + /// + Celeron_D_325, + + /// + A_Series_Quad_Core_A8_3850, + + /// + ARM_7100, + + /// + Xeon_Dual_Core, + + /// + ultrasparc_iie, + + /// + pa_8500, + + /// + a10_7800, + + /// + intel_pentium_4_ht, + + /// + Athlon_X2_Dual_Core_5000_plus, + + /// + Core_i5_4200M, + + /// + powerpc_440gx, + + /// + core_i3_4360, + + /// + Core_i5_4200H, + + /// + Opteron_Quad_1354, + + /// + Core_i5_3570T, + + /// + core_i5_4460t, + + /// + core_i5_4460s, + + /// + core_i5_3340, + + /// + intel_atom, + + /// + Core_2_Duo_T5250, + + /// + Celeron_900, + + /// + core_i3_4350, + + /// + V_Series_Single_Core_V140, + + /// + Phenom_II_X4_Quad_Core_9150, + + /// + amd_ryzen_1700x, + + /// + mobile_sempron, + + /// + Turion_X2_Ultra_Dual_Core_ZM_85, + + /// + Core_i5_4570, + + /// + omap4470, + + /// + Core_i5_2467M, + + /// + ryzen_threadripper_3970x, + + /// + apple_ci5, + + /// + apple_ci3, + + /// + Core_2_Duo_T9600, + + /// + mc88110, + + /// + apple_ci7, + + /// + Pentium_P6100, + + /// + pentium_g3260t, + + /// + elansc400, + + /// + pentium_987, + + /// + celeron_3205u, + + /// + xeon_platinum_8180m, + + /// + amd_c_series, + + /// + core_i7_5960x, + + /// + omap4460, + + /// + V_Series_Single_Core_V120, + + /// + celeron_t1400, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.33GHz")] + Core_2_Duo_233GHz, + + /// + Pentium_E7200, + + /// + a8_8650, + + /// + powerpc_740_g3, + + /// + via_cyrix_c3, + + /// + Core_i3_380M, + + /// + efficeon_tm8600, + + /// + Celeron_925, + + /// + core_i7_2670m, + + /// + core_i5_5575r, + + /// + Athlon_64_L110, + + /// + Athon_II_X2_Dual_Core_P360, + + /// + core_i3_4330, + + /// + athlon_xp_m, + + /// + Core_2_Duo_T7400, + + /// + Core_2_Duo_T6570, + + /// + Core_i3_2328M, + + /// + i5_2450m, + + /// + Athlon_II_X2_Dual_Core_260u, + + /// + Core_i3_530, + + /// + Core_2_Quad_Q8300, + + /// + Core_i5_3317U, + + /// + Athlon_64, + + /// + core_i7_8500y, + + /// + Turion_64_MT_37, + + /// + ryzen_3_2200ge, + + /// + core_i5_2550k, + + /// + V_Series_Single_Core_V105, + + /// + Xeon_E5520, + + /// + powerpc_rs64, + + /// + xeon_gold_5119t, + + /// + core_i7_9700k, + + /// + core_m3_8100y, + + /// + core_i7_6500u, + + /// + Phenom_II_X4_Quad_Core_645, + + /// + Quad_Core_Xeon, + + /// + Pentium_E6300, + + /// + core_i5_family, + + /// + Celeron_T3100, + + /// + [System.Xml.Serialization.XmlEnumAttribute("6x86")] + Item6x86, + + /// + Intel_Core_i3_3240, + + /// + Core_Duo_T2450, + + /// + Core_Solo_U1300, + + /// + Phenom_II_X4_Quad_Core_910_, + + /// + Sempron_2200, + + /// + E1_2500, + + /// + mtk_8121, + + /// + Tablet_Processor, + + /// + core_i3_2125, + + /// + Athlon_64_X2_5200_plus, + + /// + tegra_4, + + /// + Geode_GX, + + /// + Core_i7_640UM, + + /// + Xeon_E5530, + + /// + Core_2_Duo_T5270, + + /// + Core_i7_2820QM, + + /// + Athlon_II_X2_Dual_Core_170u, + + /// + Xeon_E5504, + + /// + Xeon_E5506, + + /// + Sempron_3500_plus, + + /// + Xeon_E5507, + + /// + Core_Duo_LV_L2400, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.13GHz")] + Core_2_Duo_213GHz, + + /// + core_i7_6850k, + + /// + pentium_967, + + /// + Celeron_N2830_Dual_Core, + + /// + Core_i3_3217U, + + /// + pa_8900, + + /// + pentium_iii_e, + + /// + celeron_b815, + + /// + core_i5_2410, + + /// + pentium_iii_s, + + /// + amd_ryzen_5_1400, + + /// + Athlon_X2_Dual_Core_7750, + + /// + Pentium_T4400, + + /// + Intel_Clover_Trail, + + /// + E_Series_Dual_Core_E2_3000, + + /// + opteron, + + /// + amd_ryzen_7_1700, + + /// + Intel_Core_i3_3130M, + + /// + Core_2_Duo_T8300, + + /// + Athlon_64_LE_1660, + + /// + Celeron_B800, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.53GHz")] + Core_2_Duo_253GHz, + + /// + Atom_Z520, + + /// + celeron_j3455, + + /// + pentium_3825u, + + /// + ARM_11_Telechips_8902, + + /// + Core_2_Quad_9600, + + /// + r4310, + + /// + Core_i5_460M, + + /// + ryzen_7_3800x, + + /// + pa_7300lc, + + /// + Atom_D525, + + /// + Core_i5_2500K, + + /// + amd_ryzen_7_1700x, + + /// + Athlon_II_X2_Dual_Core_3250e, + + /// + Core_i3_4020Y, + + /// + Core_i5_2500T, + + /// + Core_i5_2500S, + + /// + celeron_g1850, + + /// + Core_2_Duo_E4300, + + /// + Core_2_Quad_Q8400S, + + /// + fx_series_eight_core_fx_8100, + + /// + core_i7_8550u, + + /// + core_m_5y31, + + /// + Atom_Z515, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i5_2.3_GHz")] + Core_i5_23_GHz, + + /// + Core_2_Duo_P7370, + + /// + Sempron_M120, + + /// + Core_i7_2410M, + + /// + Pentium_G3250T, + + /// + Intel_Celeron_G470, + + /// + Core_2_Duo_T6500, + + /// + Phenom_II_X4_Quad_Core_9100E, + + /// + Core_i7_680UM, + + /// + core_i7_6900k, + + /// + Celeron_T4500, + + /// + Athlon_64_LE_1640, + + /// + Core_i7_3520M, + + /// + Atom_Z540, + + /// + Core_i5_650, + + /// + core_i7_2630m, + + /// + a4_7210, + + /// + core_i7_2630q, + + /// + core_i5_5350h, + + /// + Core_i5__760, + + /// + Core_i7_3720QM, + + /// + powerpc_604e, + + /// + Athlon_II_X4_Quad_Core_610e_, + + /// + ultrasparc_t1, + + /// + Atom_Z530, + + /// + core_i7_920xm, + + /// + Core_2_Duo_U7600, + + /// + core_m_5y10, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68lc040")] + Item68lc040, + + /// + celeron_3865u, + + /// + A_Series_Dual_Core_A4_3420, + + /// + r4300, + + /// + fx_series_eight_core_fx_8120, + + /// + core_i5_10310y, + + /// + crusoe_tm5600, + + /// + Core_i7_620M, + + /// + Core_Duo_T2500, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.4GHz")] + Core_2_Duo_24GHz, + + /// + A8_5557M, + + /// + ultrasparc_iv_plus, + + /// + core_i7_4765t, + + /// + Turion_64_MT_32, + + /// + Core_i5_3439Y, + + /// + Turion_64_MT_30, + + /// + core_i3_4025u, + + /// + Celeron_M_340, + + /// + T40_S_TEGRA_4_A15_Quad_Core, + + /// + Pentium_E6700, + + /// + Turion_64_MT_28, + + /// + Pentium_G630T, + + /// + Core_i3_520M, + + /// + Core_i7_3920XM, + + /// + Pentium_D_840, + + /// + Core_2_Duo_T5200, + + /// + core_i3_5005u, + + /// + core_i5_4590s, + + /// + core_i3_2370M, + + /// + r14000, + + /// + core_i5_4590t, + + /// + Core_2_Quad_Q8200, + + /// + core_i9_7920x, + + /// + Core_i5_3330, + + /// + core_m_5y71, + + /// + core_i3_4110m, + + /// + core_m_5y70, + + /// + Celeron_M_330, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.16GHz")] + Core_2_Duo_216GHz, + + /// + eden_esp_5000, + + /// + Core_i3_4150T, + + /// + quad_core_a8_6410, + + /// + atom_c3200_rk, + + /// + Pentium_E3200, + + /// + core_i9_7980xe, + + /// + pr31700, + + /// + vr4300, + + /// + ryzen_3_2200g, + + /// + Atom_D510, + + /// + athlon_220ge, + + /// + pentium_p8700, + + /// + core_i3_4330t, + + /// + Celeron_M_320, + + /// + Core_i7_4700HQ, + + /// + Core_i5_4670, + + /// + Core_2_Quad_Q9550, + + /// + pentium_j2900, + + /// + a_series_quad_core_a8_3520m, + + /// + core_i5_6200u, + + /// + Exynos_4200, + + /// + Core_i7_3840QM, + + /// + core_m_5y51, + + /// + A10_5757M, + + /// + Phenom_II_X2_B55, + + /// + pentium_gold_g5400, + + /// + Pentium_E5400, + + /// + ryzen_3_2200u, + + /// + Core_2_Duo_T8700, + + /// + Core_2_Duo_T5670, + + /// + Exynos_4210, + + /// + ryzen_5_2600h, + + /// + pa_7100lc, + + /// + ryzen_5_2600e, + + /// + Celeron_D_420, + + /// + amd_fx, + + /// + Core_2_Duo_SU9600, + + /// + Atom_N270, + + /// + pa_8000, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.0_GHz")] + Core_i7_20_GHz, + + /// + core_i3_350um, + + /// + Pentium_D_805, + + /// + Pentium_G3240, + + /// + Core_i5_4288U, + + /// + amd_a6_6400k, + + /// + atom_zZ8300, + + /// + Core_i3_2130, + + /// + r10000, + + /// + core_i7_7y75, + + /// + Atom_N280, + + /// + pentium, + + /// + Celeron_450, + + /// + Phenom_II_X4_Quad_Core_9950, + + /// + Phenom_II_X4_Quad_Core_B95, + + /// + xeon_gold_6134m, + + /// + ryzen_5_3600, + + /// + ryzen_5_2600x, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68000")] + Item68000, + + /// + Core_2_Duo_SL9300, + + /// + powerpc_403_gcx, + + /// + arm710, + + /// + turion_64, + + /// + xeon_gold_6138f, + + /// + C7_M_770_VIA, + + /// + pentium_xeon, + + /// + core_i7_4712hq, + + /// + Core_2_Duo_P9500, + + /// + Celeron_485, + + /// + A_Series_Dual_Core_A6_4455M, + + /// + Pentium_D_820, + + /// + powerpc_601, + + /// + powerpc_603, + + /// + powerpc_604, + + /// + ryzen_threadripper_2970wx, + + /// + tegra_2_0, + + /// + ultrasparc_iv, + + /// + ryzen_threadripper_1920x, + + /// + r5230, + + /// + celeron_g1840t, + + /// + Celeron_M_T1400, + + /// + core_i5_4590, + + /// + Pentium_D_830, + + /// + A_Series_Quad_Core_A10_5700, + + /// + handheld_engine_cxd2230ga_temp, + + /// + Core_2_Duo_SL7100, + + /// + core_i3_1005g1, + + /// + Celeron_E3200, + + /// + atom_n2600, + + /// + ultrasparc_ii, + + /// + Celeron_B840, + + /// + Core_i3_2105, + + /// + ARM_11_iMAPX210, + + /// + a8_8600p, + + /// + Atom_N230, + + /// + pentium_e7500, + + /// + Core_2_Duo_SL9300_, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68030")] + Item68030, + + /// + Pentium_G620, + + /// + Core_2_Duo_T5600, + + /// + omap3620, + + /// + xeon_gold_6130t, + + /// + core_2_solo, + + /// + cortex, + + /// + Athlon_II_X2_Dual_Core_B22, + + /// + Atom_Z550, + + /// + c167cr, + + /// + Phenom_II_X2_Dual_Core_511, + + /// + Core_i5_2400, + + /// + ultrasparc_iii_cu, + + /// + Athlon_II_X2_Dual_Core_B26, + + /// + Athlon_II_X2_Dual_Core_B24, + + /// + celeron_g1620t, + + /// + Core_i3_4158U, + + /// + xeon_gold_6130f, + + /// + Atom_Z2760, + + /// + Snapdragon_S4_APQ8064, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68040")] + Item68040, + + /// + a6_7400k, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.6GHz")] + Core_2_Duo_16GHz, + + /// + k6_iii_plus, + + /// + powerpc_603e, + + /// + core_i5_6287u, + + /// + core_i5_9400f, + + /// + celeron_n3050, + + /// + Celeron_B820, + + /// + Core_i3_2120, + + /// + Athlon_64_4800_plus, + + /// + core_i3_6157u, + + /// + core_i3_4370t, + + /// + Pentium_G645, + + /// + Pentium_G3220, + + /// + Pentium_G641, + + /// + a10_7300, + + /// + Pentium_G640, + + /// + fx_series_eight_core_fx_8150, + + /// + Athlon_64_LE_1600, + + /// + Athlon_II_Single_Core_160u, + + /// + celeron_n3060, + + /// + Celeron_B830, + + /// + V_SERIES_V160, + + /// + alpha_ev7, + + /// + Xeon_3000, + + /// + Sempron_M100, + + /// + Pentium_D_T2060, + + /// + pentium_gold_g5400t, + + /// + Athlon_64_2650, + + /// + Pentium_E5800, + + /// + Atom_z3735G, + + /// + Pentium_G631, + + /// + Pentium_G630, + + /// + core_i5_8200y, + + /// + Core_2_Duo_P7350, + + /// + celeron_g1840, + + /// + Core_2_Duo_E7400, + + /// + Athlon_64_3500, + + /// + Athlon_Neo_Single_Core_MV_40, + + /// + core_i7_4790K, + + /// + Core_i5_3450S, + + /// + core_solo, + + /// + sparc_ii, + + /// + Athlon_X2_Dual_Core_5000, + + /// + Phenom_II_X3_Triple_Core_P860, + + /// + Core_i5_4430S, + + /// + Core_i3_3227U, + + /// + Core_I3_2330E, + + /// + Athlon_X2_Dual_Core_TK_53, + + /// + Core_2_Duo_U1400, + + /// + core_i7_4790t, + + /// + core_i7_4790s, + + /// + exynos_5_octa_5800, + + /// + mxs, + + /// + supersparc_ii, + + /// + A_Series_Dual_Core_A4_4355M, + + /// + Core_i3_2330M, + + /// + Athlon_II_X4_Quad_Core_610e, + + /// + Core_i7_920, + + /// + C_Series_Dual_Core_C_50, + + /// + Athlon_X2_Dual_Core_TK_57, + + /// + r12000a, + + /// + Core_i7_2617M, + + /// + Core_2_Duo_T9550, + + /// + xeon_e3_1271, + + /// + Pentium_U3600, + + /// + core_i7_36517u, + + /// + bay_trail_t_z3735g, + + /// + Snapdragon_S2_MSM7230, + + /// + Core_i5_3320M, + + /// + Athlon_X2_Dual_Core_L335, + + /// + A_Series_Dual_Core_A6_3620, + + /// + sparc64v, + + /// + Phenom_II_X3_Triple_Core_P840, + + /// + Phenom_II_X6_Six_Core_1035T, + + /// + Turion_64_ML_37, + + /// + Turion_64_ML_34, + + /// + A6_6310, + + /// + Turion_64_ML_32, + + /// + Turion_64_ML_30, + + /// + Snapdragon_S3_MSM8260, + + /// + FX_Series_Eigth_Core_FX_8320, + + /// + Turion_II_X2_Dual_Core_P520, + + /// + core_i7_5550u, + + /// + core_i7_4720HQ, + + /// + Core_Solo_T1200, + + /// + a_series_quad_core_a6_3410m, + + /// + Phenom_II_X4_Quad_Core_9450, + + /// + omap850, + + /// + tegra_ap_2600, + + /// + core_i5_4210m, + + /// + a8_7200p, + + /// + Core_i3_370M, + + /// + core_i5_4210h, + + /// + Intel_Pentium_2127U_ULV, + + /// + athlon_64_for_dtr, + + /// + athlon, + + /// + tm_44, + + /// + Core_2_Duo_L7200, + + /// + atom_c3130, + + /// + Phenom_II_X3_Triple_Core_P820, + + /// + Core_i5_470UM_, + + /// + atom_z8500, + + /// + intel_xscale_pxa263, + + /// + nova_a9000, + + /// + Athlon_64_X2_5000_plus, + + /// + crusoe_5800, + + /// + Athlon_64_X2_Pro_L310, + + /// + Core_i5_3230M, + + /// + intel_core_2_quad, + + /// + intel_core_solo, + + /// + a6_7310, + + /// + Xeon_5000, + + /// + A_Series_Quad_Core_A10_4655M, + + /// + core_i3_10110u, + + /// + amd_ryzen_3_pro_1300, + + /// + core_i3_10110y, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.26GHz")] + Core_2_Duo_226GHz, + + /// + intel_xscale_pxa255, + + /// + xeon_silver_4109t, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80c186")] + Item80c186, + + /// + Core_2_Duo_P8600, + + /// + intel_xscale_pxa250, + + /// + Celeron_D_440, + + /// + celeron_j1850, + + /// + Athlon_64_X2_6400_plus, + + /// + i5_2467m, + + /// + Pentium_4_360, + + /// + pentium_e6950, + + /// + Athlon_II_X4_Quad_Core_615e, + + /// + Core_i5_4210Y, + + /// + A_Series_Quad_Core_A8_4555M, + + /// + e_series, + + /// + powerpc_rs64_iv, + + /// + Core_i5_4210U, + + /// + Core_i5_4258U, + + /// + powerpc_rs64_ii, + + /// + Core_2_Quad_Q6600, + + /// + Clover_Trail_Plus_Z2560, + + /// + arm7500fe, + + /// + Celeron_P4500, + + /// + Athlon_64_X2_4200_plus, + + /// + Phenom_II_X3_Triple_Core_8650, + + /// + Athlon_II_Neo_X2_Dual_Core_K625, + + /// + sh_4, + + /// + pentium_n2930, + + /// + Athlon_X2_Dual_Core_3250e, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.8GHz")] + Core_2_Duo_28GHz, + + /// + Pentium_U5400, + + /// + Core_Duo_T2300, + + /// + core_i5_4690s, + + /// + Athlon_II_X2_Dual_Core_250U, + + /// + core_i5_4690t, + + /// + AMD_Richland_A8_5550M, + + /// + xeon_e5_1630v3, + + /// + celeron_1037u, + + /// + core_m_6y75, + + /// + core_i5_6300hq, + + /// + core_i7_4870hq, + + /// + i3_2370m, + + /// + Core_2_Duo_E4700, + + /// + Celeron_M_380, + + /// + ARM_11_2818, + + /// + celeron, + + /// + pa_8800, + + /// + Core_2_Duo_T7300, + + /// + pentium_g3470, + + /// + mobile_k6_2_plus, + + /// + a8_7410, + + /// + E_Series_Dual_Core_E1_1500, + + /// + arm710t, + + /// + A_Series_Dual_Core_A4_5300, + + /// + Core_2_Quad_Q8400, + + /// + fx_8800p, + + /// + intel_core_duo, + + /// + Celeron_M_370, + + /// + geode_gx, + + /// + arm710a, + + /// + Turion_Neo_X2_Dual_Core_L625, + + /// + Celeron_E1500, + + /// + Core_2_Duo_P3750, + + /// + core_m_6y57, + + /// + core_m_6y54, + + /// + Intel_Core_i7_4770, + + /// + Snapdragon_S3_MSM8660, + + /// + pentium_j4205, + + /// + Celeron_M_360, + + /// + Pentium_T3400, + + /// + core_i7_5557u, + + /// + core_i7_5775r, + + /// + pentium_g2120, + + /// + pentium_g3450, + + /// + Core_i7_3630QM, + + /// + Pentium_P6000, + + /// + core_i3_3220t, + + /// + i7_2675qm, + + /// + mobile_pentium_4_ht, + + /// + celeron_3215u, + + /// + r4700, + + /// + Core_Solo_U1400, + + /// + ultrasparc_iii_plus, + + /// + core_i3_2375m, + + /// + Athlon_II_X4_Quad_Core, + + /// + core_duo, + + /// + Celeron_M_353, + + /// + core_i7_1065g7, + + /// + Celeron_M_350, + + /// + intel_xeon, + + /// + pentium_g2130, + + /// + pentium_g3460, + + /// + Turion_64_ML_28, + + /// + Core_2_Duo_T7350, + + /// + intel_core_i7_5950hq, + + /// + Xeon, + + /// + amd_ryzen_5_pro_1500, + + /// + texas_instruments_omap1510, + + /// + Core_i7_4790, + + /// + xeon_silver_4108, + + /// + xeon_silver_4110, + + /// + xeon_silver_4114, + + /// + ultrasparc_s400, + + /// + xeon_silver_4112, + + /// + Core_i3_330UM, + + /// + Core_i5_540UM, + + /// + Pentium_2117U, + + /// + Pentium_T2130, + + /// + core_i5_5675c, + + /// + celeron_j1800, + + /// + core_i3_2377m, + + /// + Celeron_D_Processor_420, + + /// + A_Series_Quad_Core_A8_5500, + + /// + Athlon_Neo_X2_Dual_Core_L335, + + /// + core_i9_7960x, + + /// + core_m_5y10c, + + /// + core_i7_5775c, + + /// + core_m_5y10a, + + /// + xeon_silver_4116, + + /// + amd_ryzen_1600x, + + /// + core_i5_5675r, + + /// + Intel_Pentium_G2020T, + + /// + Athlon_II_X3_415E, + + /// + Turion_II_X2_Dual_Core_P540, + + /// + pa_8700_plus, + + /// + Pentium_T4300, + + /// + Core_i7_4700MQ, + + /// + phenom_triple_core, + + /// + amd_ryzen_1700, + + /// + Athlon_Neo_X2_Dual_Core_L325, + + /// + Core_i7_3770K, + + /// + Sempron_3200, + + /// + Athlon_64_X2_Dual_Core_TK_42_, + + /// + athlon_x4_840, + + /// + Turion_64_X2_RM_70, + + /// + Turion_64_X2_RM_72, + + /// + core_i5_4300u, + + /// + atom_455, + + /// + Athlon_64_Mobile_3000, + + /// + elansc310, + + /// + Core_i3_3229Y, + + /// + Turion_64_X2_RM_74, + + /// + Core_2_Duo_T9500, + + /// + Celeron_D_Processor_440, + + /// + Athlon_64_X2_4800, + + /// + Phenom_II_X4_Quad_Core_9100E_, + + /// + E_Series_Single_Core_E_240, + + /// + Exynos_5000_Series, + + /// + core_i9_7740x, + + /// + Athlon_X2_Dual_Core_5400_plus, + + /// + E2_Series_Dual_Core_E2_2000, + + /// + Celeron_M_390, + + /// + r16000, + + /// + athlon_x4_830, + + /// + A_Series_Dual_Core_A6_3650, + + /// + tegra_k1, + + /// + Turion_II_X2_Dual_Core_P560, + + /// + Core_i7_3770T, + + /// + phenom_ii_x2, + + /// + Core_i5_2430M, + + /// + phenom_ii_x4, + + /// + Core_i7_3770S, + + /// + phenom_ii_x3, + + /// + phenom_ii_x6, + + /// + elansc300, + + /// + Core_Duo_T2350, + + /// + A4_5000, + + /// + phenom_ii_x4_quad_core_n970, + + /// + Atom_N550, + + /// + Atom_D410, + + /// + ryzen_threadripper_2950x, + + /// + eden_esp, + + /// + Celeron_M_420, + + /// + mc68ez328, + + /// + Core_2_Duo_T7700, + + /// + Athlon_64_X2, + + /// + ryzen_7_2700e, + + /// + A10, + + /// + A13, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.5GHz")] + Core_2_Duo_25GHz, + + /// + Core_2_Duo_U7500, + + /// + core_i5_8300h, + + /// + k6_3, + + /// + core_i7_6700, + + /// + k6_2, + + /// + OMAP_3600, + + /// + A110, + + /// + Intel_Pentium_Dual_Core_2020M, + + /// + Core_2_Duo_T4200, + + /// + Celeron_M_410, + + /// + pentium_2, + + /// + crusoe_tm5500, + + /// + pentium_4, + + /// + mediatek_mt8127, + + /// + A20, + + /// + pentium_3, + + /// + core_i5_2410qm, + + /// + intel_core_i7_4810mq, + + /// + core_i5_5750hq, + + /// + phenom_quad_core, + + /// + amd_ryzen_7_1800x, + + /// + Core_2_Duo__T6500, + + /// + eden_esp_6000, + + /// + Atom_N570, + + /// + core_i3_4120u, + + /// + Core_i3_4030U, + + /// + Atom_D425, + + /// + ARM_11_iMAP210, + + /// + Core_2_Duo_T5500, + + /// + intel_core_i5_6600, + + /// + Atom_Silverthorne, + + /// + core_i3_5015u, + + /// + Celeron_D_Processor_360, + + /// + A31, + + /// + ryzen_7_2700x, + + /// + Athlon_Dual_Core, + + /// + core_i7_10710u, + + /// + mobile_duron, + + /// + athlon_x4_860k, + + /// + ryzen_3_4300u, + + /// + intel_celeron_d, + + /// + ryzen_7_2700u, + + /// + pentium_d, + + /// + Core_i5_560M, + + /// + Athlon_II_X2_Dual_Core_M340, + + /// + pentium_m, + + /// + Pentium_Dual_Core_2127U, + + /// + i3_2367m, + + /// + Phenom_II_X2_Dual_Core_P650, + + /// + xeon_gold_6140m, + + /// + Core_i7_3689Y, + + /// + Core_Duo_T2300E, + + /// + Athlon_64_X2_5600_plus, + + /// + core_m_6y30, + + /// + pentium_p8600, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.66GHz")] + Core_2_Duo_266GHz, + + /// + core_i7_6800k, + + /// + core_i7_5600u, + + /// + atom_z3745, + + /// + Athlon_II_X2_Dual_Core_235e_, + + /// + core_i7_3687u, + + /// + FX_Series_Quad_Core_FX_4120, + + /// + Pentium_T6570, + + /// + amd_athlon_quad_core_5150, + + /// + omap1710, + + /// + novathor_l8000, + + /// + core_i7_5820k, + + /// + Core_i7_2620M, + + /// + Athlon_II_X2_Dual_Core_M320, + + /// + Core_i7_875K, + + /// + Core_i5_3450, + + /// + core_2_extreme, + + /// + Pentium_E5500, + + /// + Core_i7_4930K, + + /// + Turion_II_Ultra_X2_Dual_Core_M600, + + /// + Core_i5_2557M, + + /// + atom_z3735, + + /// + celeron_d, + + /// + Exynos_5400, + + /// + i7_2700k, + + /// + Athlon_II, + + /// + pentium_sl9300, + + /// + itanium, + + /// + Core_Duo_T2400, + + /// + Turion_II_Ultra_X2_Dual_Core_M620, + + /// + core_i9_7820x, + + /// + intel_core_i3_6100, + + /// + Xeon_W5580, + + /// + Celeron_M_440, + + /// + alpha_21164, + + /// + core_i7_4970k, + + /// + Core_i5_430M, + + /// + core_i5_10210u, + + /// + A_Series_Tri_Core_A6_3500, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i7_2.7_GHz")] + Core_i7_27_GHz, + + /// + rm5231, + + /// + ARM_710, + + /// + Core_2_Duo_T9900, + + /// + microsparc_ii, + + /// + core_i5_10210y, + + /// + core_i5_4690K, + + /// + Intel_Core_i5_3330S, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486slc")] + Item80486slc, + + /// + core_i3_6300t, + + /// + Athlon_II_X2_Dual_Core_M300, + + /// + pentium_3_xeon, + + /// + Celeron_M_430, + + /// + securcore, + + /// + Core_2_Solo_SU3500, + + /// + Intel_Mobile_CPU, + + /// + Core_i3_4160T, + + /// + Core_2_Duo_T6400, + + /// + Core_2_Duo_T5550, + + /// + Core_2_Duo_E5500, + + /// + A_Series_Dual_Core_A6_4400M, + + /// + core_i5_4690k, + + /// + ryzen_7_4700u, + + /// + a_series_dual_core_a4_3400m, + + /// + E_Series_Dual_Core_E_350, + + /// + Athlon_II_X2_Dual_Core_240e_, + + /// + atom_z3785, + + /// + Turion_II_X2_Dual_Core_M500, + + /// + xscale_pxa261, + + /// + xscale_pxa260, + + /// + core_i3_6167u, + + /// + xeon_gold_6148f, + + /// + athlon_x2_450, + + /// + xscale_pxa262, + + /// + pentium_b987, + + /// + tx3922, + + /// + intel_atom_n450, + + /// + Core_i7_720QM, + + /// + Pentium_D_925, + + /// + core_i3_539, + + /// + xscale_pxa270, + + /// + athlon_ii_x4, + + /// + athlon_ii_x2, + + /// + athlon_ii_x3, + + /// + Celeron_585, + + /// + Pentium_D_920, + + /// + athlon_64, + + /// + core_2_quad, + + /// + exynos_5_octa_5420, + + /// + intel_atom_n455, + + /// + atom_z3775, + + /// + xscale_pxa272, + + /// + tegra_3_0, + + /// + Sempron, + + /// + Athlon_64_3200, + + /// + Core_2_Duo_SU7300, + + /// + amd_a_series, + + /// + C_Series_Single_Core_C_30, + + /// + Core_2_Duo_E7300, + + /// + core_i3_7100u, + + /// + Pentium_D_930, + + /// + core_i5_7y54, + + /// + tegra_ap_2500, + + /// + celeron_m, + + /// + celeron_n, + + /// + Turion_II_X2_Dual_Core_M520, + + /// + core_i7_4810HQ, + + /// + cortex_a8, + + /// + cortex_a7, + + /// + fx_series_six_core_fx_6120, + + /// + Core_2_Duo_U2200, + + /// + ryzen_3_2300u, + + /// + Core_2_Duo_T5900, + + /// + pentium_g4500t, + + /// + Pentium_D_945, + + /// + celeron_807, + + /// + Pentium_D_940, + + /// + Core_i7_3517U, + + /// + pentium_g3900, + + /// + Athlon_XP_3000, + + /// + alpha_21064a, + + /// + arm_dual_core_cortex_a9_omap_4, + + /// + Core_i5_2380P, + + /// + Athlon_64_TF_36, + + /// + pentium_n4200, + + /// + Core_i5_2500, + + /// + xeon_gold_5120t, + + /// + Core_i5_3360M, + + /// + hypersparc, + + /// + Core_i7_980, + + /// + Phenom_II_X4_Quad_Core_9850, + + /// + fx_series_six_core_fx_6100, + + /// + OMAP_5400, + + /// + xeon_e5_2650, + + /// + Pentium_D_950, + + /// + Snapdragon_S1_QSD8650, + + /// + intel_pentium_d, + + /// + Core_i3_330M, + + /// + celeron_n4000, + + /// + Core_2_Duo_SL9400, + + /// + a_series_quad_core_a10_6700, + + /// + Celeron_J1800, + + /// + xeon_gold_6134, + + /// + pentium_other, + + /// + Pentium_M_A110, + + /// + Core_i7_950, + + /// + xeon_gold_6136, + + /// + core_i7_3635qm, + + /// + Pentium_SU2700, + + /// + xeon_gold_6138, + + /// + Athlon_II_Neo_Single_Core_K125, + + /// + ARM_7500fe, + + /// + core_i5_8400, + + /// + pentium_ii, + + /// + Celeron_540, + + /// + xeon_gold_6130, + + /// + xeon_gold_6132, + + /// + Core_2_Duo_T2450, + + /// + Core_2_Duo_E6400, + + /// + xeon_e3_1241, + + /// + Core_2_Duo_T6600_, + + /// + Athlon_X2_Dual_Core, + + /// + Phenom_II_X4_Quad_Core_N930, + + /// + apple_a5x, + + /// + a_series_dual_core_a4_3310m, + + /// + Core_i7_960, + + /// + xeon_gold_6142f, + + /// + xeon_gold_6126, + + /// + pentium_j2850, + + /// + xeon_gold_6128, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.1GHz")] + Core_2_Duo_21GHz, + + /// + xeon_gold_6142m, + + /// + xeon_silver_4116t, + + /// + Core_i7_3612QM, + + /// + ARM_11_8902, + + /// + xeon_e3_1231, + + /// + Athlon_X2_Dual_Core_QL_60, + + /// + Celeron_M_ULV, + + /// + Athlon_X2_Dual_Core_QL_62, + + /// + mediagx, + + /// + pentium_b960, + + /// + Athlon_X2_Dual_Core_QL_64, + + /// + Athlon_X2_Dual_Core_QL_66, + + /// + a_series, + + /// + Pentium_G524, + + /// + e2_6110, + + /// + Core_i5_4250U, + + /// + Core_i7_930, + + /// + xeon_e5_2620, + + /// + a10_8750, + + /// + Core_2_Duo_E6420, + + /// + Pentium_G520, + + /// + A_Series_Quad_Core_A10_4600M, + + /// + Turion_64_X2_Dual_Core_RM_70, + + /// + Celeron_T1500, + + /// + Intel_Core_i7_4700MQ, + + /// + Turion_64_X2_Dual_Core_RM_72, + + /// + xeon_e3_1225, + + /// + xeon_e3_1220, + + /// + Mobile_Pentium_4_532, + + /// + xeon_e5_2600, + + /// + atom_z3795, + + /// + a33_arm_cortex_a7_quad_core, + + /// + ryzen_5_3500u, + + /// + Phenom_II_X4_Quad_Core_N950, + + /// + ARM_11_ROCK_2818, + + /// + Mobile_Pentium_4_538, + + /// + Pentium_G519, + + /// + Pentium_G517, + + /// + A_Series_Eight_Core_A10_5700, + + /// + Pentium_G516, + + /// + Core_i7_2600, + + /// + Pentium_D_915, + + /// + Pentium_G515, + + /// + Athlon_II_X4_Quad_Core_620_, + + /// + Core_i7_940, + + /// + core_i3_5010u, + + /// + core_i3_4030y, + + /// + Celeron_E3300, + + /// + amd_ryzen_3_1300x, + + /// + xeon_silver_4114t, + + /// + celeron_n3350, + + /// + Core_2_Duo_T7270, + + /// + Core_2_Duo_SL9600, + + /// + core_i9_7640x, + + /// + ultrasparc_iiii, + + /// + Core_i5_3330M, + + /// + core_i7_7500u, + + /// + Athlon_II_X4_Dual_Core_240e, + + /// + Celeron_743, + + /// + core_i5_4310u, + + /// + Turion_II_Neo_X2_Dual_Core_L625, + + /// + core_i7_8700k, + + /// + Athlon_64_X2_TK_55, + + /// + Athlon_X2_Dual_Core_4200_plus, + + /// + core_i7_8700t, + + /// + core_i5_4310m, + + /// + atom_n2930, + + /// + alpha_21264a, + + /// + ryzen_threadripper_2990wx, + + /// + alpha_21264b, + + /// + alpha_21264c, + + /// + alpha_21264d, + + /// + core_i7_6567u, + + /// + Athlon_II_X4Quad_Core_600e, + + /// + Core_Solo_T1300, + + /// + pentium_g645t, + + /// + power4_plus, + + /// + Celeron_N2830, + + /// + A_Series_Quad_Core_A8_3520M, + + /// + a_series_quad_core_a6_3420m, + + /// + powerpc_603ev, + + /// + xeon_e5_1620, + + /// + A_Series_Quad_Core_A8_4500M, + + /// + Phenom_II_X4_Quad_Core_840T_, + + /// + core_i7_4710MQ, + + /// + Athlon_X2_4050E, + + /// + Core_Duo_T2250, + + /// + core_i3_8130u, + + /// + Core_2_Duo_T8100, + + /// + a8_7650k, + + /// + Core_2_Duo_T7250, + + /// + core_i3_4170, + + /// + Turion_64_X2_Ultra_ZM_82, + + /// + amd_ryzen_5_pro_1600, + + /// + Turion_64_X2_Ultra_ZM_87, + + /// + amd_ryzen_1500x, + + /// + Core_2_Duo_SU9300, + + /// + Turion_64_X2_Ultra_ZM_85, + + /// + xeon_e5_1607, + + /// + Pentium_2127U, + + /// + Athlon_II_X4_Quad_Core_600E, + + /// + C_SERIES_C_60, + + /// + Celeron_763, + + /// + E_Series_Dual_Core_E1_1200, + + /// + core_i3_4160, + + /// + Pentium_M_ULV, + + /// + arm_7100, + + /// + Mediatek_8317_Dual_Core, + + /// + Core_i5_3550S, + + /// + Athlon_X2_Dual_Core_7550, + + /// + Athlon_64_3700, + + /// + Turion_II_X2_Dual_Core_M520_, + + /// + k6_mmx, + + /// + e_series_dual_core_e_350, + + /// + apple_c2d, + + /// + core_i7_4470s, + + /// + ultrasparc_i, + + /// + intel_centrino_2, + + /// + pentium_d840, + + /// + amd_ryzen_5_1500x, + + /// + ryzen_5_2400ge, + + /// + mc68vz328, + + /// + Pentium_T2410, + + /// + Core_i3_2120T, + + /// + Phenom_II_X4_Quad_Core_840T, + + /// + ryzen_5_2600, + + /// + Phenom_II_X3_Triple_Core_B75, + + /// + ryzen_threadripper_3990x, + + /// + a10_7700k, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68328")] + Item68328, + + /// + Pentium_P6300, + + /// + Snapdragon_S4, + + /// + Snapdragon_S3, + + /// + Core_i7_740QM, + + /// + Athlon_2850e, + + /// + g3, + + /// + Snapdragon_S5, + + /// + Phenom_II_X4_Quad_Core_810, + + /// + Core_2_Quad_Q6700, + + /// + g4, + + /// + g5, + + /// + Intel_Celeron_1007U, + + /// + fx_4_core, + + /// + Phenom_II_X4_Quad_Core_9750, + + /// + intel_atom_330, + + /// + pentium_4_extreme_edition, + + /// + core_i5_4220y, + + /// + omap311, + + /// + core_i3_6320, + + /// + omap310, + + /// + core_i5_6600, + + /// + Sempron_SI_42, + + /// + fx_series_quad_core_fx_4100, + + /// + a6_8550, + + /// + A6_5350M, + + /// + Core_Solo_T1350, + + /// + Celeron_N2840, + + /// + core_i5_3570, + + /// + efficeon_tm8000, + + /// + i5_2430m, + + /// + powerpc_403, + + /// + Athlon_II_Dual_Core_P320, + + /// + amd_ryzen_1400, + + /// + brazos_e450, + + /// + Core_i7_4750HQ, + + /// + Athlon_II_X2_Dual_Core_P360, + + /// + Core_i7_3770, + + /// + Athlon_II_X4_Quad_Core_605e, + + /// + bulverde, + + /// + Core_i5_430M_, + + /// + Athlon_II_X2_Dual_Core_240e, + + /// + Athlon_64_X2_Dual_Core_L310, + + /// + core_i7_4722hq, + + /// + Turion_X2_Ultra_ZM_82, + + /// + pentium_g4400t, + + /// + Turion_X2_Ultra_ZM_87, + + /// + Turion_X2_Ultra_ZM_85, + + /// + core_i3_6300, + + /// + Core_i5_4440s, + + /// + Turion_X2_Ultra_ZM_84, + + /// + Phenom_II_X2_Dual_Core_250, + + /// + Pentium_Dual_Core_2030M, + + /// + atom_z7345, + + /// + Core_i7_640M, + + /// + AMD_Richland_A10_5750M, + + /// + Celeron_G530, + + /// + ryzen_9_3900x, + + /// + core_i7_4785t, + + /// + Phenom_II_X4_Quad_Core_840, + + /// + celeron_g465, + + /// + Phenom_II_X2_Dual_Core_N640, + + /// + e_series_dual_core_e_300, + + /// + celeron_1000m, + + /// + core_i5_4570r, + + /// + Athlon_II_X2_Dual_Core_P340, + + /// + k5, + + /// + Core_i7_4650U, + + /// + Celeron_G540, + + /// + Core_Solo_U1500, + + /// + amd_ryzen_7, + + /// + fx_series_quad_core_fx_b4150, + + /// + Phenom_II_X2_Dual_Core_N650, + + /// + Sempron_140, + + /// + core_i7_5500u, + + /// + Core_2_Duo_T5470, + + /// + pentium_g530, + + /// + core_i5_5200u, + + /// + vr4181, + + /// + Phenom_II_X4_Quad_Core_820, + + /// + intel_core_i7_5700hq, + + /// + intel_core_m, + + /// + Core_i5_3339Y, + + /// + Core_2_Duo_E4600, + + /// + tegra_650, + + /// + pentium_g3900t, + + /// + Phenom_II_X2_Dual_Core_N620, + + /// + Core_i7_2720QM, + + /// + Pentium_B950, + + /// + pa_8700, + + /// + Exynos_4400, + + /// + Phenom_II_X2_Dual_Core_511_, + + /// + sa_110, + + /// + Pentium_847, + + /// + power3_ii, + + /// + c_series_dual_core_c_60, + + /// + amd_ryzen_5_1600, + + /// + Sempron_LE_1250, + + /// + e1_7010, + + /// + Athlon_II_X2_Dual_Core_P320, + + /// + core_m_7y30, + + /// + Phenom_II_X4_Quad_Core_830, + + /// + Pentium_B940, + + /// + Core_i7_4710HQ, + + /// + Core_i5_520M, + + /// + mediatek_mt8183, + + /// + Athlon_II_X2_B24, + + /// + mediagxm, + + /// + Exynos_4412, + + /// + i7_4770K, + + /// + mediagxi, + + /// + turion_64_x2, + + /// + c_series_dual_core_c_50, + + /// + Core_i7_660UM, + + /// + pentium_n3700, + + /// + Turion_64_X2_ZM_80, + + /// + a8_7100, + + /// + vr4121, + + /// + i5_2320, + + /// + Turion_64_X2_ZM_82, + + /// + vr4122, + + /// + celeron_1005m, + + /// + athlon_240ge, + + /// + GEODE_LX_LX_800, + + /// + Sempron_3300, + + /// + Snapdragon_S4_MSM8270, + + /// + xeon_platinum_8160t, + + /// + core_i3_2340m, + + /// + A_Series_Dual_Core_A4, + + /// + i7_3820, + + /// + Pentium_2129Y, + + /// + athlon_64_x2, + + /// + Pentium_B970, + + /// + Pentium_E2180, + + /// + Intel_Pentium_G2020, + + /// + Core_2_Duo_T9400, + + /// + turbosparc, + + /// + core_i5_6400t, + + /// + core_i5_6402p, + + /// + Atom_N450_, + + /// + Turion_64_X2_ZM_72, + + /// + h8s, + + /// + vr4111, + + /// + pentium_g3240t, + + /// + Turion_64_X2_ZM_74, + + /// + hitachi_sh3, + + /// + eden, + + /// + sis550, + + /// + Pentium_B967, + + /// + Pentium_SU4100, + + /// + r4640, + + /// + Pentium_E7400, + + /// + core_i5_3200u, + + /// + Phenom_II_X4_Quad_Core_9350, + + /// + Core_i5_655K, + + /// + xeon_platinum_8160m, + + /// + Pentium_B960, + + /// + tegra_600, + + /// + xeon_platinum_8160f, + + /// + Turion_64_MK_38, + + /// + Turion_64_MK_36, + + /// + fx_6_core, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.4GHz_")] + Core_2_Duo_14GHz_, + + /// + Core_i5_430UM, + + /// + Athlon_64_X2_QL_65, + + /// + powerpc_750_g3, + + /// + microsparc_iiep, + + /// + microsoft_sq1, + + /// + Intel_Core_i3_3240T, + + /// + fx_4300, + + /// + Phenom_II_X2_Dual_Core_N660, + + /// + Athlon_64_X2_Dual_Core_TK_42, + + /// + Core_2_Duo_T7200, + + /// + celeron_j1900, + + /// + Core_i3_2348M, + + /// + handheld_engine_cxd2230ga, + + /// + ARMv7_Dual_Core, + + /// + mc68328, + + /// + fx_series_quad_core_fx_4170, + + /// + vr4131, + + /// + Core_i5_3337U, + + /// + C_SERIES_C_30, + + /// + Pentium_B980, + + /// + core_i7_5675r, + + /// + pentium_g3460t, + + /// + A4_6210, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_1.83GHz")] + Core_2_Duo_183GHz, + + /// + amd_v_series, + + /// + ARMv7, + + /// + celeron_n2820, + + /// + Atom_N435, + + /// + athlon_200ge, + + /// + Vision_A10_Quad_Core_APU, + + /// + Pentium_E2140, + + /// + Celeron_M_540, + + /// + Pentium_E6500, + + /// + core_i3_2330, + + /// + Atom_330, + + /// + Core_i3_4160, + + /// + FX_Series_Six_Core_FX_6300, + + /// + TEGRA_250, + + /// + Core_2_Duo_T6670_, + + /// + core_i9_7900x, + + /// + Core_2_Duo_T2390, + + /// + powerpc_750cx, + + /// + core_i5_5287u, + + /// + athlon_silver_3050U, + + /// + Atom_Z2560, + + /// + Celeron_M_530, + + /// + crusoe_tm3200, + + /// + Core_i3_4130T, + + /// + intel_core_i7_5850hq, + + /// + Core_i3_4150, + + /// + Celeron_E3400, + + /// + core_i5_6267u, + + /// + core_i3_5157u, + + /// + Celeron_E1200, + + /// + celeron_n2840, + + /// + Core_i7_4960X, + + /// + ryzen_3_3200g, + + /// + Atom_N455, + + /// + Core_i7_4702HQ, + + /// + Pentium_E2160, + + /// + Atom_N450, + + /// + core_i7_3632qn, + + /// + a_series_quad_core_a8_3500m, + + /// + C_Series_C_50, + + /// + Celeron_M_520, + + /// + pentium_N5000, + + /// + Pentium_G2030T, + + /// + athlon_64_fx, + + /// + Core_i5_3550, + + /// + core_i5_7200u, + + /// + r12000, + + /// + OMAP_3500, + + /// + pentium_gold_g5600, + + /// + Pentium_E5200, + + /// + Pentium_T4200, + + /// + ryzen_3_3200x, + + /// + ryzen_7_pro_2700u, + + /// + e2_7110, + + /// + Snapdragon_S4_MSM8230, + + /// + ryzen_3_3200u, + + /// + e_series_single_core_e_240, + + /// + Core_2_Duo_E7600, + + /// + Core_2_Duo_T5870, + + /// + tegra_2_t20, + + /// + [System.Xml.Serialization.XmlEnumAttribute("68ez328")] + Item68ez328, + + /// + athlon_4, + + /// + alpha_21264, + + /// + Core_2_Duo_SU4100, + + /// + atom_z3745d, + + /// + A_Series_Quad_Core_A6, + + /// + Core_2_Duo_E4500, + + /// + Core_2_Quad_Q9400S, + + /// + Celeron_M_585, + + /// + Core_i5_2435M, + + /// + xeon_platinum_8176, + + /// + ARM_610, + + /// + Core_2_Duo_T9800, + + /// + Core_i5_2520M, + + /// + intel_core_i5_6500, + + /// + xeon_platinum_8170, + + /// + tegra_2_t25, + + /// + A_Series_Quad_Core_A8, + + /// + Celeron_1017U, + + /// + atom_z2520, + + /// + powerpc_403ga, + + /// + Sempron_LE_1300, + + /// + Pentium_T2080, + + /// + Celeron_M_575, + + /// + core_i5_8400t, + + /// + Core_2_Duo_T5450, + + /// + xeon_platinum_8180, + + /// + ryzen_threadripper_2920x, + + /// + core_i7_3630m, + + /// + core_m_family, + + /// + ryzen_9_3950x, + + /// + core_i7_6700t, + + /// + Core_2_Quad_Q9300, + + /// + Athlon_64_X2_5050, + + /// + celeron_n2807, + + /// + Celeron_M_560, + + /// + ryzen_7_4800h, + + /// + celeron_n2808, + + /// + r14000a, + + /// + celeron_n2805, + + /// + Core_2_Duo_E6700, + + /// + xeon_platinum_8158, + + /// + celeron_n2806, + + /// + xeon_platinum_8156, + + /// + OMAP_4400, + + /// + xeon_platinum_8153, + + /// + core_i7_8750h, + + /// + Core_2_Duo_T7600, + + /// + Exynos_3110, + + /// + Core_2_Quad_Q8200S, + + /// + core_i5_4308u, + + /// + Rockchip_RK2928, + + /// + Turion_X2_ZM_80, + + /// + core_i5_32320m, + + /// + celeron_n2810, + + /// + Turion_X2_ZM_82, + + /// + celeron_n2815, + + /// + ryzen_7_4800u, + + /// + core_i7_6700k, + + /// + Celeron_M_550, + + /// + Core_i5_4440, + + /// + xeon_platinum_8168, + + /// + xeon_platinum_8164, + + /// + Athlon_II_X2_Dual_Core_245e_, + + /// + Pentium_T2060, + + /// + Core_i3_4130, + + /// + xeon_platinum_8160, + + /// + s3c2442, + + /// + Atom_Z2580, + + /// + s3c2440, + + /// + ryzen_3_pro_2300u, + + /// + Athlon_II_Dual_Core_240e, + + /// + Core_i3_540M, + + /// + Turion_II_X2_Dual_Core_M620, + + /// + none, + + /// + Core_i3_4005U, + + /// + xeon_gold_5122, + + /// + Turion_64_X2_TL_50, + + /// + Core_i7_870, + + /// + r5000, + + /// + Celeron_220, + + /// + Core_2_Duo_T5800, + + /// + Atom_N2800, + + /// + Core_2_Duo_E6320, + + /// + Core_i3_3110M, + + /// + Turion_64_X2_TL_56, + + /// + Turion_64_X2_TL_57, + + /// + Turion_64_X2_TL_58, + + /// + core_i3_4170t, + + /// + Turion_64_X2_TL_52, + + /// + xeon_gold_5120, + + /// + Core_2_Duo_E8500, + + /// + i7_3930k, + + /// + Core_i3_3220, + + /// + Turion_X2_Dual_Core_RM_75, + + /// + Phenom_II_X4_N960, + + /// + pentium_dual_core, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80486sx")] + Item80486sx, + + /// + Core_i5_2390T, + + /// + E_Series_Dual_Core_E2_1800, + + /// + xeon_gold_5115, + + /// + MediaTek_MT8125, + + /// + amd_e_series, + + /// + xeon_gold_5118, + + /// + Core_i7_3820QM, + + /// + a_series_dual_core_a4_3305m, + + /// + Core_i7_2657M, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8803_CORTEX_A8")] + Item8803_CORTEX_A8, + + /// + pentium_iii, + + /// + Snapdragon_QSD8250, + + /// + Celeron_J1900, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8031")] + Item8031, + + /// + intel_strongarm, + + /// + [System.Xml.Serialization.XmlEnumAttribute("8032")] + Item8032, + + /// + A_Series_Dual_Core_A4_4300M, + + /// + Core_2_Duo_L7500, + + /// + [System.Xml.Serialization.XmlEnumAttribute("80386")] + Item80386, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_2.2GHz")] + Core_2_Duo_22GHz, + + /// + core_i5_6260u, + + /// + Pentium_G840, + + /// + s3c2410, + + /// + Athlon_II_Dual_Core_P360, + + /// + sh7709a, + + /// + core_i5_6350hq, + + /// + Turion_64_X2_TL_60, + + /// + pentium_2030m, + + /// + Core_i7_860, + + /// + Turion_64_X2_TL_62, + + /// + efficeon, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_i5_2.8GHz")] + Core_i5_28GHz, + + /// + Core_i5_4570T, + + /// + Core_i7_3615QM, + + /// + Core_2_Duo_P8400, + + /// + Core_2_Duo_E7200, + + /// + Core_i5_4570S, + + /// + Turion_64_X2_TL_68, + + /// + Turion_64_X2_TL_64, + + /// + Core_2_Duo_P7550, + + /// + Turion_64_X2_TL_66, + + /// + Celeron_T1600, + + /// + A_Series_Eight_Core_A10_5800K, + + /// + mediagxlv, + + /// + atom_e3815, + + /// + ryzen_5_3600x, + + /// + Sempron_M_3100, + + /// + Core_i5_480M, + + /// + Atom_N475, + + /// + Core_2_Duo_SU9400, + + /// + atom_z3460, + + /// + pentium_3805u, + + /// + Core_i3_2390T, + + /// + core_i7_family, + + /// + Athlon_II_X3_445AIIX3, + + /// + Atom_N470, + + /// + Athlon_Dual_Core_QL62A, + + /// + Pentium_G6950, + + /// + Core_2_Duo_T2330, + + /// + Pentium_G860, + + /// + Core_Duo_T2400__, + + /// + pa_8200, + + /// + Xeon_5400, + + /// + ryzen_3_3100, + + /// + core_i5_4260u, + + /// + Core_i3_4570T, + + /// + core_i3_5020u, + + /// + Core_2_Duo_T5850, + + /// + Pentium_G850, + + /// + ryzen_5_2400g, + + /// + pentium_mmx, + + /// + sempron, + + /// + atom_d2701, + + /// + Phenom_II_X4_Quad_Core_N820, + + /// + GP33003, + + /// + atom_d2700, + + /// + i7_2640m, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_2_Duo_3.06GHz")] + Core_2_Duo_306GHz, + + /// + a10_7400p, + + /// + Core_2_Duo_T2310, + + /// + xeon_e5_1650, + + /// + amd_ryzen_7_pro_1700, + + /// + Core_2_Duo_E6300, + + /// + core_i7_6770hq, + + /// + atom_n2830, + + /// + Atom_Z330, + + /// + atom_c3230_rk, + + /// + mobile_celeron, + + /// + powerpc_rs64_iii, + + /// + Core_i3_380UM, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A8")] + Item1_2GHz_Cortex_A8, + + /// + [System.Xml.Serialization.XmlEnumAttribute("1_2GHz_Cortex_A9")] + Item1_2GHz_Cortex_A9, + + /// + Core_i3_4000M, + + /// + a_series_dual_core_a4_3300m, + + /// + A_Series_Eight_Core_A10_4600M, + + /// + ryzen_threadripper_1900x, + + /// + atom_z650, + + /// + atom_z3740d, + + /// + k6_2e, + + /// + r16000b, + + /// + FX_8300, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Core_Duo_1.83GHz")] + Core_Duo_183GHz, + + /// + r16000a, + + /// + Pentium_G870, + + /// + Rockchip_3188, + + /// + Pentium_G6960, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class Battery + { + + private bool areBatteriesIncludedField; + + private bool areBatteriesIncludedFieldSpecified; + + private bool areBatteriesRequiredField; + + private bool areBatteriesRequiredFieldSpecified; + + private BatteryBatterySubgroup[] batterySubgroupField; + + /// + public bool AreBatteriesIncluded + { + get + { + return this.areBatteriesIncludedField; + } + set + { + this.areBatteriesIncludedField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool AreBatteriesIncludedSpecified + { + get + { + return this.areBatteriesIncludedFieldSpecified; + } + set + { + this.areBatteriesIncludedFieldSpecified = value; + } + } + + /// + public bool AreBatteriesRequired + { + get + { + return this.areBatteriesRequiredField; + } + set + { + this.areBatteriesRequiredField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool AreBatteriesRequiredSpecified + { + get + { + return this.areBatteriesRequiredFieldSpecified; + } + set + { + this.areBatteriesRequiredFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("BatterySubgroup")] + public BatteryBatterySubgroup[] BatterySubgroup + { + get + { + return this.batterySubgroupField; + } + set + { + this.batterySubgroupField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class BatteryBatterySubgroup + { + + private BatteryBatterySubgroupBatteryType batteryTypeField; + + private string numberOfBatteriesField; + + /// + public BatteryBatterySubgroupBatteryType BatteryType + { + get + { + return this.batteryTypeField; + } + set + { + this.batteryTypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "positiveInteger")] + public string NumberOfBatteries + { + get + { + return this.numberOfBatteriesField; + } + set + { + this.numberOfBatteriesField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum BatteryBatterySubgroupBatteryType + { + + /// + [System.Xml.Serialization.XmlEnumAttribute("battery_type_2/3A")] + battery_type_23A, + + /// + [System.Xml.Serialization.XmlEnumAttribute("battery_type_4/3A")] + battery_type_43A, + + /// + [System.Xml.Serialization.XmlEnumAttribute("battery_type_4/5A")] + battery_type_45A, + + /// + battery_type_9v, + + /// + battery_type_12v, + + /// + battery_type_a, + + /// + battery_type_a76, + + /// + battery_type_aa, + + /// + battery_type_aaa, + + /// + battery_type_aaaa, + + /// + battery_type_c, + + /// + battery_type_cr123a, + + /// + battery_type_cr2, + + /// + battery_type_cr5, + + /// + battery_type_d, + + /// + battery_type_lithium_ion, + + /// + battery_type_lithium_metal, + + /// + [System.Xml.Serialization.XmlEnumAttribute("battery_type_L-SC")] + battery_type_LSC, + + /// + battery_type_p76, + + /// + battery_type_product_specific, + + /// + battery_type_SC, + + /// + nonstandard_battery, + + /// + lr44, + + /// + unknown, + + /// + cr2032, + + /// + lr41, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum FulfillmentMethod + { + + /// + Ship, + + /// + InStorePickup, + + /// + MerchantDelivery, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum FulfillmentServiceLevel + { + + /// + Standard, + + /// + Expedited, + + /// + Scheduled, + + /// + NextDay, + + /// + SecondDay, + + /// + Next, + + /// + Second, + + /// + Priority, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum CarrierCode + { + + /// + UPS, + + /// + UPSMI, + + /// + FedEx, + + /// + DHL, + + /// + Fastway, + + /// + GLS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("GO!")] + GO, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hermes Logistik Gruppe")] + HermesLogistikGruppe, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Royal Mail")] + RoyalMail, + + /// + Parcelforce, + + /// + [System.Xml.Serialization.XmlEnumAttribute("City Link")] + CityLink, + + /// + TNT, + + /// + Target, + + /// + SagawaExpress, + + /// + NipponExpress, + + /// + YamatoTransport, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL Global Mail")] + DHLGlobalMail, + + /// + [System.Xml.Serialization.XmlEnumAttribute("UPS Mail Innovations")] + UPSMailInnovations, + + /// + [System.Xml.Serialization.XmlEnumAttribute("FedEx SmartPost")] + FedExSmartPost, + + /// + OSM, + + /// + OnTrac, + + /// + Streamlite, + + /// + Newgistics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Canada Post")] + CanadaPost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Blue Package")] + BluePackage, + + /// + Chronopost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Deutsche Post")] + DeutschePost, + + /// + DPD, + + /// + [System.Xml.Serialization.XmlEnumAttribute("La Poste")] + LaPoste, + + /// + Parcelnet, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Poste Italiane")] + PosteItaliane, + + /// + SDA, + + /// + Smartmail, + + /// + FEDEX_JP, + + /// + JP_EXPRESS, + + /// + NITTSU, + + /// + SAGAWA, + + /// + YAMATO, + + /// + BlueDart, + + /// + [System.Xml.Serialization.XmlEnumAttribute("AFL/Fedex")] + AFLFedex, + + /// + Aramex, + + /// + [System.Xml.Serialization.XmlEnumAttribute("India Post")] + IndiaPost, + + /// + Professional, + + /// + DTDC, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Overnite Express")] + OverniteExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("First Flight")] + FirstFlight, + + /// + Delhivery, + + /// + Lasership, + + /// + Yodel, + + /// + Other, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Amazon Shipping")] + AmazonShipping, + + /// + Seur, + + /// + Correos, + + /// + MRW, + + /// + Endopack, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Chrono Express")] + ChronoExpress, + + /// + Nacex, + + /// + Otro, + + /// + Correios, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Toll Global Express")] + TollGlobalExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("China Post")] + ChinaPost, + + /// + AUSSIE_POST, + + /// + EUB, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Australia Post")] + AustraliaPost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Yun Express")] + YunExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Fastway")] + Fastway1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("4PX")] + Item4PX, + + /// + Hermes, + + /// + [System.Xml.Serialization.XmlEnumAttribute("SF Express")] + SFExpress, + + /// + BRT, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Australia Post-Consignment")] + AustraliaPostConsignment, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Australia Post-ArticleId")] + AustraliaPostArticleId, + + /// + Sendle, + + /// + CouriersPlease, + + /// + [System.Xml.Serialization.XmlEnumAttribute("A-1")] + A1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("AAA Cooper")] + AAACooper, + + /// + ABF, + + /// + ALLJOY, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Aras Kargo")] + ArasKargo, + + /// + Arkas, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Arrow XL")] + ArrowXL, + + /// + Asendia, + + /// + Asgard, + + /// + Assett, + + /// + [System.Xml.Serialization.XmlEnumAttribute("AT POST")] + ATPOST, + + /// + ATS, + + /// + Balnak, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Beijing Quanfeng Express")] + BeijingQuanfengExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Best Buy")] + BestBuy, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Best Express")] + BestExpress, + + /// + BJS, + + /// + Bombax, + + /// + Cart2India, + + /// + CDC, + + /// + CELERITAS, + + /// + CEVA, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Ceva Lojistik")] + CevaLojistik, + + /// + Cititrans, + + /// + Coliposte, + + /// + Colissimo, + + /// + Conway, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Correos Express")] + CorreosExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Couriers Please")] + CouriersPlease1, + + /// + CTTExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DB Schenker")] + DBSchenker, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL eCommerce")] + DHLeCommerce, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL Express")] + DHLExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL Freight")] + DHLFreight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL Home Delivery")] + DHLHomeDelivery, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL Kargo")] + DHLKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL-Paket")] + DHLPaket, + + /// + DHLPL, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Digital Delivery")] + DigitalDelivery, + + /// + DirectLog, + + /// + Dotzot, + + /// + DSV, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DX Freight")] + DXFreight, + + /// + ECMS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Ecom Express")] + EcomExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Emirates Post")] + EmiratesPost, + + /// + Energo, + + /// + Envialia, + + /// + Estafeta, + + /// + Estes, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Fedex Freight")] + FedexFreight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Fillo Kargo")] + FilloKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("First Flight China")] + FirstFlightChina, + + /// + [System.Xml.Serialization.XmlEnumAttribute("First Mile")] + FirstMile, + + /// + Gati, + + /// + [System.Xml.Serialization.XmlEnumAttribute("GEL Express")] + GELExpress, + + /// + geodis, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Geodis Calberson")] + GeodisCalberson, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Geopost Kargo")] + GeopostKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hermes Einrichtungsservice")] + HermesEinrichtungsservice, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Home Logistics")] + HomeLogistics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hongkong Post")] + HongkongPost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Horoz Lojistik")] + HorozLojistik, + + /// + [System.Xml.Serialization.XmlEnumAttribute("HS code")] + HScode, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hunter Logistics")] + HunterLogistics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ICC Worldwide")] + ICCWorldwide, + + /// + [System.Xml.Serialization.XmlEnumAttribute("IDS Netzwerk")] + IDSNetzwerk, + + /// + InPost, + + /// + iParcel, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Japan Post")] + JapanPost, + + /// + JCEX, + + /// + Kargokar, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Kuehne+Nagel")] + KuehneNagel, + + /// + Landmark, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Metro Kargo")] + MetroKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("MNG Kargo")] + MNGKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Narpost Kargo")] + NarpostKargo, + + /// + Nexive, + + /// + Ninjavan, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Old Dominion")] + OldDominion, + + /// + OneWorldExpress, + + /// + Panther, + + /// + Pilot, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Pilot Freight")] + PilotFreight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Polish Post")] + PolishPost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Post NL")] + PostNL, + + /// + PostNord, + + /// + [System.Xml.Serialization.XmlEnumAttribute("PTT Kargo")] + PTTKargo, + + /// + PUROLATOR, + + /// + QExpress, + + /// + Qxpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("R+L")] + RL, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Raben Group")] + RabenGroup, + + /// + Rhenus, + + /// + Rieck, + + /// + Rivigo, + + /// + Roadrunner, + + /// + Safexpress, + + /// + Saia, + + /// + Seino, + + /// + [System.Xml.Serialization.XmlEnumAttribute("SEINO TRANSPORTATION")] + SEINOTRANSPORTATION, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Selem Kargo")] + SelemKargo, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Self Delivery")] + SelfDelivery, + + /// + SENDLE, + + /// + SFC, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Ship Delight")] + ShipDelight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Ship Global US")] + ShipGlobalUS, + + /// + ShipEconomy, + + /// + ShipGlobal, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Shree Maruti Courier")] + ShreeMarutiCourier, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Shree Tirupati Courier")] + ShreeTirupatiCourier, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Shunfeng Express")] + ShunfengExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Singapore Post")] + SingaporePost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("South Eastern Freight Lines")] + SouthEasternFreightLines, + + /// + Speedex, + + /// + Spoton, + + /// + [System.Xml.Serialization.XmlEnumAttribute("StarTrack-ArticleID")] + StarTrackArticleID, + + /// + [System.Xml.Serialization.XmlEnumAttribute("StarTrack-Consignment")] + StarTrackConsignment, + + /// + [System.Xml.Serialization.XmlEnumAttribute("STO Express")] + STOExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Tezel Lojistik")] + TezelLojistik, + + /// + [System.Xml.Serialization.XmlEnumAttribute("The Professional Couriers")] + TheProfessionalCouriers, + + /// + TIPSA, + + /// + [System.Xml.Serialization.XmlEnumAttribute("TNT Kargo")] + TNTKargo, + + /// + TNTIT, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Total Express")] + TotalExpress, + + /// + Trackon, + + /// + TransFolha, + + /// + Tuffnells, + + /// + [System.Xml.Serialization.XmlEnumAttribute("UPS Freight")] + UPSFreight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Urban Express")] + UrbanExpress, + + /// + VIR, + + /// + VNLIN, + + /// + WanbExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Watkins and Shepard")] + WatkinsandShepard, + + /// + Whizzard, + + /// + WINIT, + + /// + XDP, + + /// + [System.Xml.Serialization.XmlEnumAttribute("XPO Freight")] + XPOFreight, + + /// + Xpressbees, + + /// + YDH, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Yellow Freight")] + YellowFreight, + + /// + [System.Xml.Serialization.XmlEnumAttribute("YTO Express")] + YTOExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Yunda Express")] + YundaExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ZTO Express")] + ZTOExpress, + + /// + Tourline, + + /// + Centex, + + /// + iMile, + + /// + Chukou1, + + /// + CNE, + + /// + Equick, + + /// + UBI, + + /// + Sunyou, + + /// + [System.Xml.Serialization.XmlEnumAttribute("COLIS PRIVE")] + COLISPRIVE, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Colis Prive")] + ColisPrive, + + /// + DASCHER, + + /// + DACHSER, + + /// + [System.Xml.Serialization.XmlEnumAttribute("France Express")] + FranceExpress, + + /// + Heppner, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Kuehne Nagel")] + KuehneNagel1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Arco Spedizioni")] + ArcoSpedizioni, + + /// + [System.Xml.Serialization.XmlEnumAttribute("FAST EST")] + FASTEST, + + /// + FERCAM, + + /// + Fercam, + + /// + Liccardi, + + /// + Milkman, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Zust Ambrosetti")] + ZustAmbrosetti, + + /// + Yanwen, + + /// + ROYAL_MAIL, + + /// + Whistl, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hermes (Corporate)")] + HermesCorporate, + + /// + AMAUK, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Digital Delivery")] + DigitalDelivery1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("The Delivery Group")] + TheDeliveryGroup, + + /// + RMLGB, + + /// + UKMail, + + /// + APC, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Jersey Post")] + JerseyPost, + + /// + Caribou, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hermes UK")] + HermesUK, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DPD Local")] + DPDLocal, + + /// + [System.Xml.Serialization.XmlEnumAttribute("UK MAIL")] + UKMAIL, + + /// + [System.Xml.Serialization.XmlEnumAttribute("APC Overnight")] + APCOvernight, + + /// + USPS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DHL")] + DHL1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DX Express")] + DXExpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DX Secure")] + DXSecure, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Parcel Station")] + ParcelStation, + + /// + AMZL_UK, + + /// + DX, + + /// + [System.Xml.Serialization.XmlEnumAttribute("APC-Overnight")] + APCOvernight1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("B2C Europe")] + B2CEurope, + + /// + [System.Xml.Serialization.XmlEnumAttribute("ITD Global")] + ITDGlobal, + + /// + Parcelhub, + + /// + HubEurope, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Huxloe Logistics")] + HuxloeLogistics, + + /// + GFS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Spring GDS")] + SpringGDS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Verage Shipping")] + VerageShipping, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Post NL")] + PostNL1, + + /// + MHI, + + /// + Truline, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Delivery Group")] + DeliveryGroup, + + /// + [System.Xml.Serialization.XmlEnumAttribute("PDC Logistics")] + PDCLogistics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Fastway")] + Fastway2, + + /// + [System.Xml.Serialization.XmlEnumAttribute("PARCEL2GO.COM")] + PARCEL2GOCOM, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DEL Deliveries")] + DELDeliveries, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Parcelink Logistics")] + ParcelinkLogistics, + + /// + Cubyn, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Hotpoint Logistics")] + HotpointLogistics, + + /// + [System.Xml.Serialization.XmlEnumAttribute("AT Post")] + ATPost, + + /// + GEL, + + /// + IDS, + + /// + Raben, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Rhenus")] + Rhenus1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DB Schenker")] + DBSchenker1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DSV")] + DSV1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("TNT")] + TNT1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Kuehne Nagel")] + KuehneNagel2, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Rieck")] + Rieck1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("AO Deutschland")] + AODeutschland, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Asendia")] + Asendia1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("MZZ-Briefdienst")] + MZZBriefdienst, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Der Kurier")] + DerKurier, + + /// + REDUR, + + /// + Europaczka, + + /// + Emons, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Seven Senders")] + SevenSenders, + + /// + Sendcloud, + + /// + [System.Xml.Serialization.XmlEnumAttribute("GO!")] + GO1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("IDS Netzwerk")] + IDSNetzwerk1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Mail Alliance")] + MailAlliance, + + /// + Mainpost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Parcelforce")] + Parcelforce1, + + /// + PIN, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Post Modern")] + PostModern, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Raben Group")] + RabenGroup1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Trans-o-Flex")] + TransoFlex, + + /// + Exapaq, + + /// + Trakpak, + + /// + BPOST, + + /// + UPakWeShip, + + /// + [System.Xml.Serialization.XmlEnumAttribute("City Link")] + CityLink1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Mondial Relay")] + MondialRelay, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Swiss post")] + Swisspost, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DPD")] + DPD1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("UPS")] + UPS1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Consegna Mezzi Propri")] + ConsegnaMezziPropri, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Seur")] + Seur1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Royal Mail")] + RoyalMail1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Deutsche Post")] + DeutschePost1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("La Poste")] + LaPoste1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Chronopost")] + Chronopost1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Colis Prive")] + ColisPrive1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Colissimo")] + Colissimo1, + + /// + DACSHER, + + /// + GEODIS, + + /// + XPO, + + /// + [System.Xml.Serialization.XmlEnumAttribute("VIR")] + VIR1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Heppner")] + Heppner1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Correos")] + Correos1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Correos Express")] + CorreosExpress1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Landmark")] + Landmark1, + + /// + NACEX, + + /// + Sprint, + + /// + Susa, + + /// + Zeleris, + + /// + TWS, + + /// + Sailpost, + + /// + WPX, + + /// + HRP, + + /// + Sending, + + /// + CBL, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DYNAMIC EXPRESS")] + DYNAMICEXPRESS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("EINSA SOURCING")] + EINSASOURCING, + + /// + [System.Xml.Serialization.XmlEnumAttribute("GRUPO LOGISTIC")] + GRUPOLOGISTIC, + + /// + KEAVO, + + /// + NTL, + + /// + SPRING, + + /// + Szendex, + + /// + TDN, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Transaragonés")] + TransaragonÃs, + + /// + TSB, + + /// + TXT, + + /// + TyD, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Via Xpress")] + ViaXpress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("CTT EXPRESS")] + CTTEXPRESS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Home Logistics")] + HomeLogistics1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("DASCHER")] + DASCHER1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("FRANCE EXPRESS")] + FRANCEEXPRESS, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Arco Spedizioni")] + ArcoSpedizioni1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("CEVA")] + CEVA1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("FAST EST")] + FASTEST1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("FERCAM")] + FERCAM1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Liccardi")] + Liccardi1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Milkman")] + Milkman1, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Zust Ambrosetti")] + ZustAmbrosetti1, + + /// + Bartolini, + + /// + AMZL, + + /// + Andere, + + /// + AO, + + /// + B2C, + + /// + CargoLine, + + /// + Citypost, + + /// + Delivengo, + + /// + DPB, + + /// + [System.Xml.Serialization.XmlEnumAttribute("EKI Trans")] + EKITrans, + + /// + FRACHTPOST, + + /// + Hellmann, + + /// + Hlog, + + /// + honesteye, + + /// + Huxloe, + + /// + Interlink, + + /// + Interno, + + /// + Intersoft, + + /// + [System.Xml.Serialization.XmlEnumAttribute("JPL UPU")] + JPLUPU, + + /// + Kybotech, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Landmark Global")] + LandmarkGlobal, + + /// + MBE, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Mezzi propri")] + Mezzipropri, + + /// + [System.Xml.Serialization.XmlEnumAttribute("MZZ Briefdienst")] + MZZBriefdienst1, + + /// + NOVEO, + + /// + [System.Xml.Serialization.XmlEnumAttribute("OCS Worldwide")] + OCSWorldwide, + + /// + ONTIME, + + /// + Palletline, + + /// + Palletways, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Parcel Hub")] + ParcelHub, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Parcel Monkey")] + ParcelMonkey, + + /// + Parcel2go, + + /// + ParcelDenOnline, + + /// + ParcelOne, + + /// + [System.Xml.Serialization.XmlEnumAttribute("PostNL")] + PostNL2, + + /// + RBNA, + + /// + [System.Xml.Serialization.XmlEnumAttribute("RR Donnelley")] + RRDonnelley, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Schweizer Post")] + SchweizerPost, + + /// + Shipmate, + + /// + Sonstige, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Stahlmann and Sachs")] + StahlmannandSachs, + + /// + Stampit, + + /// + STG, + + /// + Transaher, + + /// + [System.Xml.Serialization.XmlEnumAttribute("Transaragonés")] + TransaragonÃs1, + + /// + Translink, + + /// + Transoflex, + + /// + Upsilon, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class StandardProductID + { + + private StandardProductIDType typeField; + + private string valueField; + + /// + public StandardProductIDType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum StandardProductIDType + { + + /// + ISBN, + + /// + UPC, + + /// + EAN, + + /// + ASIN, + + /// + GTIN, + + /// + GCID, + + /// + PZN, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class RelatedProductID + { + + private RelatedProductIDType typeField; + + private string valueField; + + /// + public RelatedProductIDType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + public string Value + { + get + { + return this.valueField; + } + set + { + this.valueField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum RelatedProductIDType + { + + /// + UPC, + + /// + EAN, + + /// + GTIN, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class ComputerPlatform + { + + private ComputerPlatformType typeField; + + private string systemRequirementsField; + + /// + public ComputerPlatformType Type + { + get + { + return this.typeField; + } + set + { + this.typeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string SystemRequirements + { + get + { + return this.systemRequirementsField; + } + set + { + this.systemRequirementsField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum ComputerPlatformType + { + + /// + windows, + + /// + mac, + + /// + linux, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class ColorSpecification + { + + private string colorField; + + private ColorMap colorMapField; + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string Color + { + get + { + return this.colorField; + } + set + { + this.colorField = value; + } + } + + /// + public ColorMap ColorMap + { + get + { + return this.colorMapField; + } + set + { + this.colorMapField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum ColorMap + { + + /// + beige, + + /// + black, + + /// + blue, + + /// + brass, + + /// + bronze, + + /// + brown, + + /// + burst, + + /// + chrome, + + /// + clear, + + /// + gold, + + /// + gray, + + /// + green, + + /// + metallic, + + /// + [System.Xml.Serialization.XmlEnumAttribute("multi-colored")] + multicolored, + + /// + natural, + + /// + [System.Xml.Serialization.XmlEnumAttribute("off-white")] + offwhite, + + /// + orange, + + /// + pink, + + /// + purple, + + /// + red, + + /// + silver, + + /// + white, + + /// + yellow, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public enum DeliveryChannel + { + + /// + in_store, + + /// + direct_ship, + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class Recall + { + + private bool isRecalledField; + + private string recallDescriptionField; + + /// + public bool IsRecalled + { + get + { + return this.isRecalledField; + } + set + { + this.isRecalledField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute(DataType = "normalizedString")] + public string RecallDescription + { + get + { + return this.recallDescriptionField; + } + set + { + this.recallDescriptionField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class AgeRecommendation + { + + private MinimumAgeRecommendedDimension minimumManufacturerAgeRecommendedField; + + private AgeRecommendedDimension maximumManufacturerAgeRecommendedField; + + private MinimumAgeRecommendedDimension minimumMerchantAgeRecommendedField; + + private AgeRecommendedDimension maximumMerchantAgeRecommendedField; + + /// + public MinimumAgeRecommendedDimension MinimumManufacturerAgeRecommended + { + get + { + return this.minimumManufacturerAgeRecommendedField; + } + set + { + this.minimumManufacturerAgeRecommendedField = value; + } + } + + /// + public AgeRecommendedDimension MaximumManufacturerAgeRecommended + { + get + { + return this.maximumManufacturerAgeRecommendedField; + } + set + { + this.maximumManufacturerAgeRecommendedField = value; + } + } + + /// + public MinimumAgeRecommendedDimension MinimumMerchantAgeRecommended + { + get + { + return this.minimumMerchantAgeRecommendedField; + } + set + { + this.minimumMerchantAgeRecommendedField = value; + } + } + + /// + public AgeRecommendedDimension MaximumMerchantAgeRecommended + { + get + { + return this.maximumMerchantAgeRecommendedField; + } + set + { + this.maximumMerchantAgeRecommendedField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class WeightRecommendation + { + + private WeightIntegerDimension minimumManufacturerWeightRecommendedField; + + private WeightIntegerDimension maximumManufacturerWeightRecommendedField; + + /// + public WeightIntegerDimension MinimumManufacturerWeightRecommended + { + get + { + return this.minimumManufacturerWeightRecommendedField; + } + set + { + this.minimumManufacturerWeightRecommendedField = value; + } + } + + /// + public WeightIntegerDimension MaximumManufacturerWeightRecommended + { + get + { + return this.maximumManufacturerWeightRecommendedField; + } + set + { + this.maximumManufacturerWeightRecommendedField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class HeightRecommendation + { + + private LengthDimension minimumHeightRecommendedField; + + private LengthDimension maximumHeightRecommendedField; + + /// + public LengthDimension MinimumHeightRecommended + { + get + { + return this.minimumHeightRecommendedField; + } + set + { + this.minimumHeightRecommendedField = value; + } + } + + /// + public LengthDimension MaximumHeightRecommended + { + get + { + return this.maximumHeightRecommendedField; + } + set + { + this.maximumHeightRecommendedField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class ForwardFacingWeight + { + + private WeightDimension forwardFacingMaximumWeightField; + + private WeightDimension forwardFacingMinimumWeightField; + + /// + public WeightDimension ForwardFacingMaximumWeight + { + get + { + return this.forwardFacingMaximumWeightField; + } + set + { + this.forwardFacingMaximumWeightField = value; + } + } + + /// + public WeightDimension ForwardFacingMinimumWeight + { + get + { + return this.forwardFacingMinimumWeightField; + } + set + { + this.forwardFacingMinimumWeightField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class RearFacingWeight + { + + private WeightDimension rearFacingMaximumWeightField; + + private WeightDimension rearFacingMinimumWeightField; + + /// + public WeightDimension RearFacingMaximumWeight + { + get + { + return this.rearFacingMaximumWeightField; + } + set + { + this.rearFacingMaximumWeightField = value; + } + } + + /// + public WeightDimension RearFacingMinimumWeight + { + get + { + return this.rearFacingMinimumWeightField; + } + set + { + this.rearFacingMinimumWeightField = value; + } + } + } + + /// + [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)] + public partial class ShoulderHarnessHeight + { + + private LengthDimension shoulderHarnessMaximumHeightField; + + private LengthDimension shoulderHarnessMinimumHeightField; + + /// + public LengthDimension ShoulderHarnessMaximumHeight + { + get + { + return this.shoulderHarnessMaximumHeightField; + } + set + { + this.shoulderHarnessMaximumHeightField = value; + } + } + + /// + public LengthDimension ShoulderHarnessMinimumHeight + { + get + { + return this.shoulderHarnessMinimumHeightField; + } + set + { + this.shoulderHarnessMinimumHeightField = value; + } + } + } + } +} diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMeta.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMeta.cs new file mode 100644 index 0000000..e5cb23c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMeta.cs @@ -0,0 +1,39 @@ +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + public class LWAAccessTokenRequestMeta + { + [JsonProperty(PropertyName = "grant_type")] + public string GrantType { get; set; } + + [JsonProperty(PropertyName = "refresh_token")] + public string RefreshToken { get; set; } + + [JsonProperty(PropertyName = "client_id")] + public string ClientId { get; set; } + + [JsonProperty(PropertyName = "client_secret")] + public string ClientSecret { get; set; } + + [JsonProperty(PropertyName = "scope")] public string Scope { get; set; } + + public override bool Equals(object obj) + { + var other = obj as LWAAccessTokenRequestMeta; + + return other != null && + GrantType == other.GrantType && + RefreshToken == other.RefreshToken && + ClientId == other.ClientId && + ClientSecret == other.ClientSecret && + Scope == other.Scope; + } + + public override int GetHashCode() + { + var hashCode = base.GetHashCode(); + return hashCode; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMetaBuilder.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMetaBuilder.cs new file mode 100644 index 0000000..cdef4ff --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAccessTokenRequestMetaBuilder.cs @@ -0,0 +1,38 @@ +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + public class LWAAccessTokenRequestMetaBuilder + { + public const string SellerAPIGrantType = "refresh_token"; + public const string SellerlessAPIGrantType = "client_credentials"; + + private const string Delimiter = " "; + + /// + /// Builds an instance of LWAAccessTokenRequestMeta modeling appropriate LWA token + /// request params based on configured LWAAuthorizationCredentials + /// + /// LWA Authorization Credentials + /// + public virtual LWAAccessTokenRequestMeta Build(LWAAuthorizationCredentials lwaAuthorizationCredentials) + { + var lwaAccessTokenRequestMeta = new LWAAccessTokenRequestMeta + { + ClientId = lwaAuthorizationCredentials.ClientId, + ClientSecret = lwaAuthorizationCredentials.ClientSecret, + RefreshToken = lwaAuthorizationCredentials.RefreshToken + }; + + if (lwaAuthorizationCredentials.Scopes == null || lwaAuthorizationCredentials.Scopes.Count == 0) + { + lwaAccessTokenRequestMeta.GrantType = SellerAPIGrantType; + } + else + { + lwaAccessTokenRequestMeta.Scope = string.Join(Delimiter, lwaAuthorizationCredentials.Scopes); + lwaAccessTokenRequestMeta.GrantType = SellerlessAPIGrantType; + } + + return lwaAccessTokenRequestMeta; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAuthorizationCredentials.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAuthorizationCredentials.cs new file mode 100644 index 0000000..d61a1fd --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAAuthorizationCredentials.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + public class LWAAuthorizationCredentials + { + public LWAAuthorizationCredentials() + { + Scopes = new List(); + } + + /** + * LWA Client Id + */ + public string ClientId { get; set; } + + /** + * LWA Client Secret + */ + public string ClientSecret { get; set; } + + /** + * LWA Refresh Token + */ + public string RefreshToken { get; set; } + + /** + * LWA Authorization Server Endpoint + */ + public Uri Endpoint { get; set; } + + /** + * LWA Authorization Scopes + */ + public List Scopes { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAClient.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAClient.cs new file mode 100644 index 0000000..a26fa3e --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/LWAClient.cs @@ -0,0 +1,80 @@ +using System; +using System.IO; +using System.Threading; +using System.Threading.Tasks; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token; +using Newtonsoft.Json; +using RestSharp; + +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + public class LWAClient + { + public const string AccessTokenKey = "access_token"; + public const string JsonMediaType = "application/json"; + + + public RestClient RestClient { get; set; } + public LWAAccessTokenRequestMetaBuilder LWAAccessTokenRequestMetaBuilder { get; set; } + public LWAAuthorizationCredentials LWAAuthorizationCredentials { get; private set; } + + public LWAClient(LWAAuthorizationCredentials lwaAuthorizationCredentials, string proxyAddress = null) + { + LWAAuthorizationCredentials = lwaAuthorizationCredentials; + LWAAccessTokenRequestMetaBuilder = new LWAAccessTokenRequestMetaBuilder(); + if (string.IsNullOrWhiteSpace(proxyAddress)) + { + RestClient = new RestClient(LWAAuthorizationCredentials.Endpoint.GetLeftPart(UriPartial.Authority)); + } + else + { + var options = + new RestClientOptions(LWAAuthorizationCredentials.Endpoint.GetLeftPart(UriPartial.Authority)) + { + Proxy = new System.Net.WebProxy() + { + Address = new Uri(proxyAddress) + } + }; + + RestClient = new RestClient(options); + } + } + + public virtual async Task GetAccessTokenAsync(CancellationToken cancellationToken = default) + { + LWAAccessTokenRequestMeta lwaAccessTokenRequestMeta = + LWAAccessTokenRequestMetaBuilder.Build(LWAAuthorizationCredentials); + var accessTokenRequest = + new RestRequest(LWAAuthorizationCredentials.Endpoint.AbsolutePath, RestSharp.Method.Post); + + string jsonRequestBody = JsonConvert.SerializeObject(lwaAccessTokenRequestMeta); + + accessTokenRequest.AddJsonBody(jsonRequestBody); + + try + { + var response = await RestClient.ExecuteAsync(accessTokenRequest, cancellationToken) + .ConfigureAwait(false); + + if (!IsSuccessful(response)) + { + throw new IOException("Unsuccessful LWA token exchange", response.ErrorException); + } + + var tokenResponse = JsonConvert.DeserializeObject(response.Content); + return tokenResponse; + } + catch (Exception e) + { + throw new SystemException("Error getting LWA Access Token", e); + } + } + + private bool IsSuccessful(RestResponse response) + { + int statusCode = (int)response.StatusCode; + return statusCode >= 200 && statusCode <= 299 && response.ResponseStatus == ResponseStatus.Completed; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/ScopeConstants.cs b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/ScopeConstants.cs new file mode 100644 index 0000000..416c187 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/AmazonSpApiSDK/Runtime/ScopeConstants.cs @@ -0,0 +1,8 @@ +namespace Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime +{ + public class ScopeConstants + { + public const string ScopeNotificationsAPI = "sellingpartnerapi::notifications"; + public const string ScopeMigrationAPI = "sellingpartnerapi::migration"; + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/Constants.cs b/Amazon.SellingPartnerApiSDK/Misc/Constants.cs new file mode 100644 index 0000000..eae996a --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/Constants.cs @@ -0,0 +1,683 @@ +using System.Runtime.Serialization; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; + +namespace Amazon.SellingPartnerApiSDK.Misc +{ + public class Constants + { + [JsonConverter(typeof(StringEnumConverter))] + public enum BuyerType + { + B2C, + B2B + } + + public enum ContentFormate + { + AutoDetect, + File, + Text + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ContentType + { + [EnumMember(Value = "text/xml; charset=UTF-8")] + XML, + + [EnumMember(Value = "application/json; charset=UTF-8")] + JSON, + + [EnumMember(Value = "application/pdf; charset=UTF-8")] + PDF, + + [EnumMember(Value = "text/tab-separated-values; charset=UTF-8")] + TXT + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum CustomerType + { + Consumer, + Business + } + + /// + /// A list of EasyShipShipmentStatus , Used to select Easy Ship orders with statuses that match the specified values + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum EasyShipShipmentStatuses + { + PendingPickUp, + LabelCanceled, + PickedUp, + OutForDelivery, + Damaged, + Delivered, + RejectedByBuyer, + Undeliverable, + ReturnedToSeller, + ReturningToSeller + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum Environments + { + Sandbox, + Production + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum FeedMessageType + { + CatPIL, + CharacterData, + Customer, + CustomerReport, + EnhancedContent, + ExternalCustomer, + ExternalOrder, + FulfillmentCenter, + FulfillmentOrderRequest, + FulfillmentOrderCancellationRequest, + Image, + Inventory, + InvoiceConfirmation, + Item, + MSVat, + Local, + Loyalty, + MultiChannelOrderReport, + NavigationReport, + Offer, + OrderAcknowledgement, + OrderAdjustment, + OrderFulfillment, + OrderSourcingOnDemand, + OrderNotificationReport, + OrderReport, + Override, + PendingOrderReport, + PointOfSale, + Price, + TradeInPrice, + ProcessingReport, + Product, + ProductImage, + Promotion, + PurchaseConfirmation, + ACES, + PIES, + Relationship, + ReverseItem, + RichContent, + SalesHistory, + SalesAdjustment, + SettlementReport, + StandardProduct, + TestOrderRequest, + Store, + StoreStockMovement, + WebstoreItem, + CartonContentsRequest, + EasyShipDocument, + } + + /// + /// List of all FeedType + /// https://github.com/amzn/selling-partner-api-docs/blob/main/references/feeds-api/feedtype-values.md + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum FeedType + { + JSON_LISTINGS_FEED, + POST_PRODUCT_DATA, + POST_INVENTORY_AVAILABILITY_DATA, + POST_PRODUCT_OVERRIDES_DATA, + POST_PRODUCT_PRICING_DATA, + POST_PRODUCT_IMAGE_DATA, + POST_PRODUCT_RELATIONSHIP_DATA, + POST_FLAT_FILE_INVLOADER_DATA, + POST_FLAT_FILE_LISTINGS_DATA, + POST_FLAT_FILE_BOOKLOADER_DATA_, + POST_FLAT_FILE_CONVERGENCE_LISTINGS_DATA, + POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA, + POST_UIEE_BOOKLOADER_DATA, + POST_STD_ACES_DATA, + POST_ORDER_ACKNOWLEDGEMENT_DATA, + POST_PAYMENT_ADJUSTMENT_DATA, + POST_ORDER_FULFILLMENT_DATA, + POST_INVOICE_CONFIRMATION_DATA, + POST_EXPECTED_SHIP_DATE_SOD, + POST_FLAT_FILE_ORDER_ACKNOWLEDGEMENT_DATA, + POST_FLAT_FILE_PAYMENT_ADJUSTMENT_DATA, + POST_FLAT_FILE_FULFILLMENT_DATA, + POST_EXPECTED_SHIP_DATE_SOD_FLAT_FILE, + POST_FULFILLMENT_ORDER_REQUEST_DATA, + POST_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA, + POST_FBA_INBOUND_CARTON_CONTENTS, + POST_FLAT_FILE_FULFILLMENT_ORDER_REQUEST_DATA, + POST_FLAT_FILE_FULFILLMENT_ORDER_CANCELLATION_REQUEST_DATA, + POST_FLAT_FILE_FBA_CREATE_INBOUND_PLAN, + POST_FLAT_FILE_FBA_UPDATE_INBOUND_PLAN, + POST_FLAT_FILE_FBA_CREATE_REMOVAL, + RFQ_UPLOAD_FEED, + POST_EASYSHIP_DOCUMENTS, + + + UPLOAD_VAT_INVOICE + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum FirstDayOfWeek + { + monday, + sunday + } + + [JsonConverter(typeof(StringEnumConverter))] + /// + /// A list that indicates how an order was fulfilled + /// + public enum FulfillmentChannels + { + /// + /// Fulfillment by Amazon + /// + [EnumMember(Value = "AFN")] AFN, + + /// + /// Fulfilled by the seller + /// + [EnumMember(Value = "MFN")] MFN + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum GranularityEnum + { + Hour, + Day, + Week, + Month, + Year, + Total + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum IdentifiersType + { + ASIN, + EAN, + GTIN, + ISBN, + JAN, + MINSAN, + SKU, + UPC + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum IncludedData + { + attributes, + dimensions, + identifiers, + images, + productTypes, + relationships, + salesRanks, + summaries, + vendorDetails + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ItemCondition + { + New, + Used, + Collectible, + Refurbished, + Club + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ItemType + { + Asin, + Sku + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum LabelType + { + BARCODE_2D, + UNIQUE, + PALLET, + SELLER_LABEL + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ListingsIncludedData + { + Summaries, + Attributes, + Issues, + Offers, + FulfillmentAvailability, + Procurement + } + + /// + /// A list of NotificationType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum NotificationType + { + ANY_OFFER_CHANGED, + FEED_PROCESSING_FINISHED, + FBA_OUTBOUND_SHIPMENT_STATUS, + FEE_PROMOTION, + FULFILLMENT_ORDER_STATUS, + REPORT_PROCESSING_FINISHED, + BRANDED_ITEM_CONTENT_CHANGE, + ITEM_PRODUCT_TYPE_CHANGE, + ITEM_INVENTORY_EVENT_CHANGE, + ITEM_SALES_EVENT_CHANGE, + LISTINGS_ITEM_STATUS_CHANGE, + LISTINGS_ITEM_ISSUES_CHANGE, + LISTINGS_ITEM_MFN_QUANTITY_CHANGE, + DETAIL_PAGE_TRAFFIC_EVENT, + MFN_ORDER_STATUS_CHANGE, + B2B_ANY_OFFER_CHANGED, + ACCOUNT_STATUS_CHANGED, + EXTERNAL_FULFILLMENT_SHIPMENT_STATUS_CHANGE, + PRODUCT_TYPE_DEFINITIONS_CHANGE, + ORDER_STATUS_CHANGE, + ORDER_CHANGE, + PRICING_HEALTH, + FBA_INVENTORY_AVAILABILITY_CHANGES + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum OfferTypeEnum + { + /// + /// Enum B2C for value: B2C + /// + [EnumMember(Value = "B2C")] B2C, + + /// + /// Enum B2B for value: B2B + /// + [EnumMember(Value = "B2B")] B2B + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum OperationType + { + Update, + Delete, + PartialUpdate + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum OptionalFulfillmentProgram + { + FBA_CORE, + FBA_SNL, + FBA_EFN + } + + /// + /// A list of OrderStatus values + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderStatuses + { + /// + /// This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the + /// release date of the item is in the future. + /// + PendingAvailability, + + /// + /// The order has been placed but payment has not been authorized + /// + Pending, + + /// + /// Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped + /// + Unshipped, + + /// + /// One or more, but not all, items in the order have been shipped + /// + PartiallyShipped, + + /// + /// All items in the order have been shipped + /// + Shipped, + + /// + /// All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has + /// been shipped to the buyer + /// + InvoiceUnconfirmed, + + /// + /// The order has been canceled + /// + Canceled, + + /// + /// The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders + /// + Unfulfillable + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum PageType + { + PackageLabel_Letter_2, + PackageLabel_Letter_4, + PackageLabel_Letter_6, + PackageLabel_Letter_6_CarrierLeft, + PackageLabel_A4_2, + PackageLabel_A4_4, + PackageLabel_Plain_Paper, + PackageLabel_Plain_Paper_CarrierBottom, + PackageLabel_Thermal, + PackageLabel_Thermal_Unified, + PackageLabel_Thermal_NonPCP, + PackageLabel_Thermal_No_Carrier_Rotation + } + + /// + /// A list of payment method + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PaymentMethods + { + /// + /// Cash on delivery + /// + COD, + + /// + /// Convenience store payment + /// + CVS, + + /// + /// Any payment method other than COD or CVS + /// + Other + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ProcessingStatuses + { + /// + /// The report was cancelled. There are two ways a report can be cancelled: an explicit cancellation request before the + /// report starts processing, or an automatic cancellation if there is no data to return. + /// + CANCELLED, + + /// + /// The report has completed processing. + /// + DONE, + + /// + /// The report was aborted due to a fatal error. + /// + FATAL, + + /// + /// The report is being processed. + /// + IN_PROGRESS, + + /// + /// The report has not yet started processing. It may be waiting for another IN_PROGRESS report. + /// + IN_QUEUE + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum QuantityDiscountType + { + /// + /// Enum QUANTITYDISCOUNT for value: QUANTITY_DISCOUNT + /// + [EnumMember(Value = "QUANTITY_DISCOUNT")] + QUANTITYDISCOUNT = 1 + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum QueryType + { + SHIPMENT, + DATE_RANGE, + NEXT_TOKEN + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ReportTypes + { + GET_VENDOR_SALES_DIAGNOSTIC_REPORT, + GET_VENDOR_SALES_REPORT, + GET_VENDOR_TRAFFIC_REPORT, + GET_VENDOR_FORECASTING_REPORT, + GET_VENDOR_INVENTORY_HEALTH_AND_PLANNING_REPORT, + GET_VENDOR_DEMAND_FORECAST_REPORT, + GET_VENDOR_INVENTORY_REPORT, + GET_VENDOR_NET_PURE_PRODUCT_MARGIN_REPORT, + GET_PROMOTION_PERFORMANCE_REPORT, + GET_MERCHANTS_LISTINGS_FYP_REPORT, + GET_FBA_SNS_FORECAST_DATA, + GET_FBA_SNS_PERFORMANCE_DATA, + GET_COUPON_PERFORMANCE_REPORT, + GET_FLAT_FILE_OPEN_LISTINGS_DATA, + GET_MERCHANT_LISTINGS_ALL_DATA, + GET_MERCHANT_LISTINGS_DATA, + GET_MERCHANT_LISTINGS_INACTIVE_DATA, + GET_MERCHANT_LISTINGS_DATA_BACK_COMPAT, + GET_MERCHANT_LISTINGS_DATA_LITE, + GET_MERCHANT_LISTINGS_DATA_LITER, + GET_MERCHANT_CANCELLED_LISTINGS_DATA, + GET_MERCHANT_LISTINGS_DEFECT_DATA, + GET_PAN_EU_OFFER_STATUS, + GET_MFN_PAN_EU_OFFER_STATUS, + GET_REFERRAL_FEE_PREVIEW_REPORT, + GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING, + GET_ORDER_REPORT_DATA_INVOICING, + GET_ORDER_REPORT_DATA_TAX, + GET_ORDER_REPORT_DATA_SHIPPING, + GET_FLAT_FILE_ORDER_REPORT_DATA_INVOICING, + GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING, + GET_FLAT_FILE_ORDER_REPORT_DATA_TAX, + GET_FLAT_FILE_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL, + GET_FLAT_FILE_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL, + GET_FLAT_FILE_ARCHIVED_ORDERS_DATA_BY_ORDER_DATE, + GET_XML_ALL_ORDERS_DATA_BY_LAST_UPDATE_GENERAL, + GET_XML_ALL_ORDERS_DATA_BY_ORDER_DATE_GENERAL, + GET_FLAT_FILE_PENDING_ORDERS_DATA, + GET_PENDING_ORDERS_DATA, + GET_CONVERGED_FLAT_FILE_PENDING_ORDERS_DATA, + GET_XML_RETURNS_DATA_BY_RETURN_DATE, + GET_FLAT_FILE_RETURNS_DATA_BY_RETURN_DATE, + GET_XML_MFN_PRIME_RETURNS_REPORT, + GET_CSV_MFN_PRIME_RETURNS_REPORT, + GET_XML_MFN_SKU_RETURN_ATTRIBUTES_REPORT, + GET_FLAT_FILE_MFN_SKU_RETURN_ATTRIBUTES_REPORT, + GET_SELLER_FEEDBACK_DATA, + GET_V1_SELLER_PERFORMANCE_REPORT, + GET_V2_SELLER_PERFORMANCE_REPORT, + GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE, + GET_V2_SETTLEMENT_REPORT_DATA_XML, + GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2, + GET_AMAZON_FULFILLED_SHIPMENTS_DATA_GENERAL, + GET_AMAZON_FULFILLED_SHIPMENTS_DATA_INVOICING, + GET_AMAZON_FULFILLED_SHIPMENTS_DATA_TAX, + GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_SALES_DATA, + GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_PROMOTION_DATA, + GET_FBA_FULFILLMENT_CUSTOMER_TAXES_DATA, + GET_REMOTE_FULFILLMENT_ELIGIBILITY, + GET_AFN_INVENTORY_DATA, + GET_AFN_INVENTORY_DATA_BY_COUNTRY, + GET_LEDGER_SUMMARY_VIEW_DATA, + GET_LEDGER_DETAIL_VIEW_DATA, + GET_FBA_FULFILLMENT_CURRENT_INVENTORY_DATA, + GET_FBA_FULFILLMENT_MONTHLY_INVENTORY_DATA, + GET_FBA_FULFILLMENT_INVENTORY_RECEIPTS_DATA, + GET_RESERVED_INVENTORY_DATA, + GET_FBA_FULFILLMENT_INVENTORY_SUMMARY_DATA, + GET_FBA_FULFILLMENT_INVENTORY_ADJUSTMENTS_DATA, + GET_FBA_FULFILLMENT_INVENTORY_HEALTH_DATA, + GET_FBA_MYI_UNSUPPRESSED_INVENTORY_DATA, + GET_FBA_MYI_ALL_INVENTORY_DATA, + GET_RESTOCK_INVENTORY_RECOMMENDATIONS_REPORT, + GET_FBA_FULFILLMENT_INBOUND_NONCOMPLIANCE_DATA, + GET_STRANDED_INVENTORY_UI_DATA, + GET_STRANDED_INVENTORY_LOADER_DATA, + GET_FBA_INVENTORY_AGED_DATA, + GET_EXCESS_INVENTORY_DATA, + GET_FBA_STORAGE_FEE_CHARGES_DATA, + GET_PRODUCT_EXCHANGE_DATA, + GET_FBA_ESTIMATED_FBA_FEES_TXT_DATA, + GET_FBA_REIMBURSEMENTS_DATA, + GET_FBA_FULFILLMENT_LONGTERM_STORAGE_FEE_CHARGES_DATA, + GET_FBA_FULFILLMENT_CUSTOMER_RETURNS_DATA, + GET_FBA_FULFILLMENT_CUSTOMER_SHIPMENT_REPLACEMENT_DATA, + GET_FBA_RECOMMENDED_REMOVAL_DATA, + GET_FBA_FULFILLMENT_REMOVAL_ORDER_DETAIL_DATA, + GET_FBA_FULFILLMENT_REMOVAL_SHIPMENT_DETAIL_DATA, + GET_FBA_UNO_INVENTORY_DATA, + GET_FLAT_FILE_SALES_TAX_DATA, + SC_VAT_TAX_REPORT, + GET_VAT_TRANSACTION_DATA, + GET_GST_MTR_B2B_CUSTOM, + GET_GST_MTR_B2C_CUSTOM, + GET_XML_BROWSE_TREE_DATA, + GET_EASYSHIP_DOCUMENTS, + GET_EASYSHIP_PICKEDUP, + GET_EASYSHIP_WAITING_FOR_PICKUP, + RFQD_BULK_DOWNLOAD, + FEE_DISCOUNTS_REPORT, + GET_FLAT_FILE_OFFAMAZONPAYMENTS_SANDBOX_SETTLEMENT_DATA, + GET_B2B_PRODUCT_OPPORTUNITIES_RECOMMENDED_FOR_YOU, + GET_B2B_PRODUCT_OPPORTUNITIES_NOT_YET_ON_AMAZON, + GET_BRAND_ANALYTICS_MARKET_BASKET_REPORT, + GET_BRAND_ANALYTICS_SEARCH_TERMS_REPORT, + GET_BRAND_ANALYTICS_REPEAT_PURCHASE_REPORT, + GET_BRAND_ANALYTICS_ALTERNATE_PURCHASE_REPORT, + GET_BRAND_ANALYTICS_ITEM_COMPARISON_REPORT, + GET_SALES_AND_TRAFFIC_REPORT, + GET_GST_STR_ADHOC, + GET_FLAT_FILE_VAT_INVOICE_DATA_REPORT, + GET_XML_VAT_INVOICE_DATA_REPORT, + GET_FLAT_FILE_GEO_OPPORTUNITIES, + GET_DATE_RANGE_FINANCIAL_TRANSACTION_DATA, + GET_FBA_INVENTORY_PLANNING_DATA, + GET_MFN_PANEU_OFFER_STATUS, + GET_FBA_RECONCILIATION_REPORT_DATA, + GET_FBA_OVERAGE_FEE_CHARGES_DATA, + GET_EPR_MONTHLY_REPORTS, + GET_EPR_QUARTERLY_REPORTS, + GET_EPR_ANNUAL_REPORTS + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum RestrictedReportTypes + { + GET_AMAZON_FULFILLED_SHIPMENTS_DATA_INVOICING, + GET_AMAZON_FULFILLED_SHIPMENTS_DATA_TAX, + GET_FLAT_FILE_ACTIONABLE_ORDER_DATA_SHIPPING, + GET_FLAT_FILE_ORDER_REPORT_DATA_SHIPPING, + GET_FLAT_FILE_ORDER_REPORT_DATA_INVOICING, + GET_FLAT_FILE_ORDER_REPORT_DATA_TAX, + GET_FLAT_FILE_ORDERS_RECONCILIATION_DATA_TAX, + GET_FLAT_FILE_ORDERS_RECONCILIATION_DATA_INVOICING, + GET_FLAT_FILE_ORDERS_RECONCILIATION_DATA_SHIPPING, + GET_ORDER_REPORT_DATA_INVOICING, + GET_ORDER_REPORT_DATA_TAX, + GET_ORDER_REPORT_DATA_SHIPPING, + GET_EASYSHIP_DOCUMENTS, + GET_GST_MTR_B2B_CUSTOM, + GET_VAT_TRANSACTION_DATA, + SC_VAT_TAX_REPORT + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ShipmentStatusList + { + WORKING, + SHIPPED, + RECEIVING, + CANCELLED, + DELETED, + CLOSED, + ERROR, + IN_TRANSIT, + DELIVERED, + CHECKED_IN + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ShippingBusiness + { + [EnumMember(Value = "AmazonShipping_US")] + AmazonShipping_US, + + [EnumMember(Value = "AmazonShipping_IN")] + AmazonShipping_IN, + + [EnumMember(Value = "AmazonShipping_UK")] + AmazonShipping_UK, + + [EnumMember(Value = "AmazonShipping_UAE")] + AmazonShipping_UAE, + + [EnumMember(Value = "AmazonShipping_SA")] + AmazonShipping_SA, + + [EnumMember(Value = "AmazonShipping_EG")] + AmazonShipping_EG, + + [EnumMember(Value = "AmazonShipping_IT")] + AmazonShipping_IT + } + + [JsonConverter(typeof(StringEnumConverter))] + public enum ShippingChannelType + { + [EnumMember(Value = "AMAZON")] AMAZON, + [EnumMember(Value = "EXTERNAL")] EXTERNAL + } + + /// + /// SortOrder + /// + /// Current Sort Order. + [JsonConverter(typeof(StringEnumConverter))] + public enum SortOrderEnum + { + /// + /// Enum ASC for value: ASC + /// + [EnumMember(Value = "ASC")] ASC = 1, + + /// + /// Enum DESC for value: DESC + /// + [EnumMember(Value = "DESC")] DESC = 2 + } + + public static readonly string AmazonTokenEndPoint = "https://api.amazon.com/auth/o2/token"; + public static readonly string DateISO8601Format = "yyyy-MM-ddTHH:mm:ss.fffZ"; + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/Country.cs b/Amazon.SellingPartnerApiSDK/Misc/Country.cs new file mode 100644 index 0000000..a4545f4 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/Country.cs @@ -0,0 +1,86 @@ +namespace Amazon.SellingPartnerApiSDK.Misc +{ + public class Country + { + private Country(string code, string name, string domain, string sellercentralUrl, string vendorCentralURL) + { + Code = code; + Name = name; + + SellercentralURL = sellercentralUrl; + VendorCentralURL = vendorCentralURL; + + AmazonlUrl = $"https://amazon.{domain}"; + } + + public string Code { get; set; } + public string Name { get; set; } + public string SellercentralURL { get; set; } + public string VendorCentralURL { get; set; } + public string AmazonlUrl { get; set; } + + public static Country US => new Country("US", "United States of America", "com", + "https://sellercentral.amazon.com", "https://vendorcentral.amazon.ca"); + + public static Country CA => new Country("CA", "Canada", "ca", "https://sellercentral.amazon.ca", + "https://vendorcentral.amazon.ca"); + + public static Country MX => new Country("MX", "Mexico", "com.mx", "https://sellercentral.amazon.com.mx", + "https://vendorcentral.amazon.com.mx"); + + public static Country BR => new Country("BR", "Brazil", "com.br", "https://sellercentral.amazon.com.br", + "https://vendorcentral.amazon.com.br"); + + public static Country ES => new Country("ES", "Spain", "es", "https://sellercentral-europe.amazon.com", + "https://vendorcentral.amazon.es"); + + public static Country UK => new Country("UK", "United Kingdom", "co.uk", + "https://sellercentral-europe.amazon.com", "https://vendorcentral.amazon.co.uk"); + + public static Country FR => new Country("FR", "France", "fr", "https://sellercentral-europe.amazon.com", + "https://vendorcentral.amazon.fr"); + + public static Country BE => new Country("BE", "Belgium", "com.be", "https://sellercentral-europe.amazon.com", + "https://vendorcentral.amazon.eu"); + + public static Country NL => new Country("NL", "Netherlands", "nl", "https://sellercentral.amazon.nl", + "https://vendorcentral.amazon.nl"); + + public static Country DE => new Country("DE", "Germany", "de", "https://sellercentral-europe.amazon.com", + "https://vendorcentral.amazon.de"); + + public static Country IT => new Country("IT", "Italy", "it", "https://sellercentral-europe.amazon.com", + "https://vendorcentral.amazon.it"); + + public static Country SE => new Country("SE", "Sweden", "se", "https://sellercentral.amazon.se", + "https://vendorcentral.amazon.se"); + + public static Country PL => new Country("PL", "Poland", "pl", "https://sellercentral.amazon.pl", + "https://vendorcentral.amazon.pl"); + + public static Country EG => new Country("EG", "Egypt", "eg", "https://sellercentral.amazon.eg", + "https://vendorcentral.amazon.me"); + + public static Country TR => new Country("TR", "Turkey", "com.tr", "https://sellercentral.amazon.com.tr", + "https://vendorcentral.amazon.com.tr"); + + public static Country AE => new Country("AE", "United Arab Emirates", "ae", "https://sellercentral.amazon.ae", + "https://vendorcentral.amazon.me"); + + public static Country IN => new Country("IN", "India", "in", "https://sellercentral.amazon.in", + "https://www.vendorcentral.in"); + + public static Country SA => new Country("SA", "Saudi Arabia", "sa", "https://sellercentral.amazon.sa", + "https://vendorcentral.amazon.me"); + + + public static Country SG => new Country("SG", "Singapore", "sg", "https://sellercentral.amazon.sg", + "https://vendorcentral.amazon.com.sg"); + + public static Country AU => new Country("AU", "Australia", "com.au", "https://sellercentral.amazon.com.au", + "https://vendorcentral.amazon.com.au"); + + public static Country JP => new Country("JP", "Japan", "co.jp", "https://sellercentral.amazon.co.jp", + "https://vendorcentral.amazon.co.jp"); + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/ErrorResponseHelper.cs b/Amazon.SellingPartnerApiSDK/Misc/ErrorResponseHelper.cs new file mode 100644 index 0000000..af68a91 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/ErrorResponseHelper.cs @@ -0,0 +1,36 @@ +using Newtonsoft.Json; + +namespace Amazon.SellingPartnerApiSDK.Misc +{ + public static class ErrorResponseHelper + { + public static ErrorResponse ConvertToErrorResponse(this string response) + { + if (string.IsNullOrEmpty(response)) return null; + + try + { + return JsonConvert.DeserializeObject(response); + } + catch + { + return null; + } + } + } + + + public class ErrorResponse + { + [JsonProperty("errors")] public ErrorResponseElement[] Errors; + } + + public class ErrorResponseElement + { + [JsonProperty("message")] public string Message { get; set; } + + [JsonProperty("code")] public string Code { get; set; } + + [JsonProperty("details")] public string Details { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/MarketPlace.cs b/Amazon.SellingPartnerApiSDK/Misc/MarketPlace.cs new file mode 100644 index 0000000..e89f94e --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/MarketPlace.cs @@ -0,0 +1,153 @@ +using System.Collections.Generic; +using System.Linq; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime; + +namespace Amazon.SellingPartnerApiSDK.Misc +{ + /// + /// Amazon市场信息 + /// https://developer-docs.amazon.com/sp-api/docs/marketplace-ids + /// + public class MarketPlace + { + private MarketPlace(string id, Region region, Country country, BaseXML.BaseCurrencyCode currencyCode) + { + Id = id; + Region = region; + Country = country; + CurrencyCode = currencyCode; + } + + public string Id { get; set; } + public Region Region { get; set; } + public Country Country { get; set; } + public BaseXML.BaseCurrencyCode CurrencyCode { get; set; } + + + //NorthAmerica + public static MarketPlace US => + new MarketPlace("ATVPDKIKX0DER", Region.NorthAmerica, Country.US, BaseXML.BaseCurrencyCode.USD); + + public static MarketPlace Canada => new MarketPlace("A2EUQ1WTGCTBG2", Region.NorthAmerica, Country.CA, + BaseXML.BaseCurrencyCode.CAD); + + public static MarketPlace Mexico => new MarketPlace("A1AM78C64UM0Y8", Region.NorthAmerica, Country.MX, + BaseXML.BaseCurrencyCode.MXN); + + public static MarketPlace Brazil => new MarketPlace("A2Q3Y263D00KWC", Region.NorthAmerica, Country.BR, + BaseXML.BaseCurrencyCode.BRL); + + //Europe + public static MarketPlace Spain => + new MarketPlace("A1RKKUPIHCS9HS", Region.Europe, Country.ES, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace UnitedKingdom => + new MarketPlace("A1F83G8C2ARO7P", Region.Europe, Country.UK, BaseXML.BaseCurrencyCode.GBP); + + public static MarketPlace France => + new MarketPlace("A13V1IB3VIYZZH", Region.Europe, Country.FR, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace Belgium => + new MarketPlace("AMEN7PMS3EDWL", Region.Europe, Country.BE, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace Netherlands => + new MarketPlace("A1805IZSGTT6HS", Region.Europe, Country.NL, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace Germany => + new MarketPlace("A1PA6795UKMFR9", Region.Europe, Country.DE, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace Italy => + new MarketPlace("APJ6JRA9NG5V4", Region.Europe, Country.IT, BaseXML.BaseCurrencyCode.EUR); + + public static MarketPlace Sweden => + new MarketPlace("A2NODRKZP88ZB9", Region.Europe, Country.SE, BaseXML.BaseCurrencyCode.SEK); + + //ZA + + public static MarketPlace Poland => + new MarketPlace("A1C3SOZRARQ6R3", Region.Europe, Country.PL, BaseXML.BaseCurrencyCode.PLN); + + public static MarketPlace Egypt => + new MarketPlace("ARBP9OOSHTCHU", Region.Europe, Country.EG, BaseXML.BaseCurrencyCode.EGP); + + + public static MarketPlace Turkey => + new MarketPlace("A33AVAJ2PDY3EV", Region.Europe, Country.TR, BaseXML.BaseCurrencyCode.TRY); + + public static MarketPlace SaudiArabia => + new MarketPlace("A17E79C6D8DWNP", Region.Europe, Country.SA, BaseXML.BaseCurrencyCode.SAR); + + public static MarketPlace UnitedArabEmirates => new MarketPlace("A2VIGQ35RCS4UG", Region.Europe, Country.AE, + BaseXML.BaseCurrencyCode.AED); + + public static MarketPlace India => + new MarketPlace("A21TJRUUN4KGV", Region.Europe, Country.IN, BaseXML.BaseCurrencyCode.INR); + + + //FarEast + public static MarketPlace Singapore => + new MarketPlace("A19VAU5U5O7RUS", Region.FarEast, Country.SG, BaseXML.BaseCurrencyCode.SGD); + + public static MarketPlace Australia => + new MarketPlace("A39IBJ37TRP1C6", Region.FarEast, Country.AU, BaseXML.BaseCurrencyCode.AUD); + + public static MarketPlace Japan => + new MarketPlace("A1VC38T7YXB528", Region.FarEast, Country.JP, BaseXML.BaseCurrencyCode.JPY); + + public static ICollection GetMarketPlaceList() + { + var list = new List + { + //NorthAmerica + US, + Canada, + Mexico, + Brazil, + //Europe + Spain, + UnitedKingdom, + France, + Belgium, + Netherlands, + Germany, + Italy, + Sweden, + Egypt, + Poland, + Turkey, + UnitedArabEmirates, + India, + SaudiArabia, + //FarEast + Singapore, + Australia, + Japan + }; + + return list; + } + + public static MarketPlace GetMarketPlaceById(string marketPlaceId) + { + var list = GetMarketPlaceList(); + var marketPlace = list.FirstOrDefault(a => a.Id == marketPlaceId); + if (marketPlace == null) + throw new AmazonInvalidInputException( + "InvalidInput, Unable to found the MarketPlace by the given MarketPlaceId!"); + + return marketPlace; + } + + public static MarketPlace GetMarketplaceByCountryCode(string countryCode) + { + var list = GetMarketPlaceList(); + var marketPlace = list.FirstOrDefault(a => a.Country.Code == countryCode); + if (marketPlace == null) + throw new AmazonInvalidInputException( + "InvalidInput, Unable to found the MarketPlace by the given countryCode!"); + + return marketPlace; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/RateLimitType.cs b/Amazon.SellingPartnerApiSDK/Misc/RateLimitType.cs new file mode 100644 index 0000000..b16e5fe --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/RateLimitType.cs @@ -0,0 +1,19 @@ +namespace Amazon.SellingPartnerApiSDK.Misc +{ + public enum RateLimitType + { + UNSET, + + Authorization_GetAuthorizationCode, + + Token_CreateRestrictedDataToken, + + ShippingV2_GetShipmentDocument, + ShippingV2_CancelShipment, + ShippingV2_PurchaseShipment, + ShippingV2_GetRates, + ShippingV2_DirectPurchaseShipment, + ShippingV2_GetTracking, + ShippingV2_GetAdditionalInputs, + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/RateLimits.cs b/Amazon.SellingPartnerApiSDK/Misc/RateLimits.cs new file mode 100644 index 0000000..c154768 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/RateLimits.cs @@ -0,0 +1,86 @@ +using System; +using System.Threading.Tasks; + +namespace Amazon.SellingPartnerApiSDK.Misc +{ + internal class RateLimits + { + internal RateLimits(decimal rate, int burst) + { + Rate = rate; + Burst = burst; + LastRequest = DateTime.UtcNow; + RequestsSent = 0; + } + + internal decimal Rate { get; set; } + internal int Burst { get; set; } + internal DateTime LastRequest { get; set; } + internal int RequestsSent { get; set; } + + private int GetRatePeriodMs() + { + return (int)(1 / Rate * 1000 / 1); + } + + public RateLimits NextRate(RateLimitType rateLimitType) + { + if (RequestsSent < 0) + RequestsSent = 0; + + var ratePeriodMs = GetRatePeriodMs(); + + var nextRequestsSent = RequestsSent + 1; + var nextRequestsSentTxt = nextRequestsSent > Burst ? "FULL" : nextRequestsSent.ToString(); + if (AmazonCredential.DebugMode) + { + string output = + $"[RateLimits ,{rateLimitType,15}]: {DateTime.UtcNow.ToString(),10}\t Request/Burst: {nextRequestsSentTxt}/{Burst}\t Rate: {Rate}/{ratePeriodMs}ms"; + Console.WriteLine(output); + } + + if (RequestsSent >= Burst) + { + var lastRequestTime = LastRequest; + while (true) + { + lastRequestTime = lastRequestTime.AddMilliseconds(ratePeriodMs); + if (lastRequestTime > DateTime.UtcNow) + break; + else + RequestsSent -= 1; + + if (RequestsSent <= 0) + { + RequestsSent = 0; + break; + } + } + } + + if (RequestsSent >= Burst) + { + LastRequest = LastRequest.AddMilliseconds(ratePeriodMs); + var tempLastRequest = LastRequest; + while (tempLastRequest >= DateTime.UtcNow) + Task.Delay(100).Wait(); + } + + if (RequestsSent + 1 <= Burst) + RequestsSent += 1; + LastRequest = DateTime.UtcNow; + + return this; + } + + internal void SetRateLimit(decimal rate) + { + Rate = rate; + } + + internal void Delay() + { + Task.Delay(GetRatePeriodMs()).Wait(); + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/RateLimitsDefinitions.cs b/Amazon.SellingPartnerApiSDK/Misc/RateLimitsDefinitions.cs new file mode 100644 index 0000000..7508379 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/RateLimitsDefinitions.cs @@ -0,0 +1,26 @@ +using System.Collections.Generic; + +namespace Amazon.SellingPartnerApiSDK.Misc +{ + internal static class RateLimitsDefinitions + { + internal static Dictionary RateLimitsTime() + { + return new Dictionary() + { + //ShippingV2 + { RateLimitType.ShippingV2_CancelShipment, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_DirectPurchaseShipment, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_GetAdditionalInputs, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_GetRates, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_GetShipmentDocument, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_GetTracking, new RateLimits(80.0M, 100) }, + { RateLimitType.ShippingV2_PurchaseShipment, new RateLimits(80.0M, 100) }, + + { RateLimitType.Authorization_GetAuthorizationCode, new RateLimits(1.0M, 5) }, + + { RateLimitType.Token_CreateRestrictedDataToken, new RateLimits(1.0M, 10) }, + }; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Misc/Region.cs b/Amazon.SellingPartnerApiSDK/Misc/Region.cs new file mode 100644 index 0000000..773c878 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Misc/Region.cs @@ -0,0 +1,29 @@ +namespace Amazon.SellingPartnerApiSDK.Misc +{ + public class Region + { + private Region(string sellingRegion, string regionName, string hostUrl, string sandboxHostUrl) + { + SellingRegion = sellingRegion; + AwsRegion = regionName; + HostUrl = hostUrl; + SandboxHostUrl = sandboxHostUrl; + } + + public string AwsRegion { get; set; } + public string SellingRegion { get; set; } + public string HostUrl { get; set; } + public string SandboxHostUrl { get; set; } + + + public static Region NorthAmerica => new Region("North America", "us-east-1", + "https://sellingpartnerapi-na.amazon.com", + "https://sandbox.sellingpartnerapi-na.amazon.com"); + + public static Region Europe => new Region("Europe", "eu-west-1", "https://sellingpartnerapi-eu.amazon.com", + "https://sandbox.sellingpartnerapi-eu.amazon.com"); + + public static Region FarEast => new Region("Far East", "us-west-2", "https://sellingpartnerapi-fe.amazon.com", + "https://sandbox.sellingpartnerapi-fe.amazon.com"); + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Parameters/IParameterBasedPII.cs b/Amazon.SellingPartnerApiSDK/Parameters/IParameterBasedPII.cs new file mode 100644 index 0000000..ac140e8 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Parameters/IParameterBasedPII.cs @@ -0,0 +1,10 @@ +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token; + +namespace Amazon.SellingPartnerApiSDK.Parameters +{ + public interface IParameterBasedPII + { + bool IsNeedRestrictedDataToken { get; set; } + CreateRestrictedDataTokenRequest RestrictedDataTokenRequest { get; set; } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Services/ApiUrls.cs b/Amazon.SellingPartnerApiSDK/Services/ApiUrls.cs new file mode 100644 index 0000000..b8e3903 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Services/ApiUrls.cs @@ -0,0 +1,50 @@ +namespace Amazon.SellingPartnerApiSDK.Services +{ + public static class EnvironmentManager + { + public enum Environments + { + Sandbox, + Production + } + + public static Environments Environment { get; set; } = Environments.Production; + } + + public class ApiUrls + { + protected class ShippingApiV2Urls + { + private static readonly string _resourceBaseUrl = "/shipping/v2"; + + public static string GetRates => $"{_resourceBaseUrl}/shipments/rates"; + + public static string PurchaseShipment => $"{_resourceBaseUrl}/shipments"; + + public static string OneClickShipment => $"{_resourceBaseUrl}/oneClickShipment"; + + public static string GetTracking(string carrierId, string trackingId) + { + return $"{_resourceBaseUrl}/tracking?carrierId={carrierId}&trackingId={trackingId}"; + } + + public static string GetShipmentDocuments(string shipmentId, string packageClientReferenceId, string format) + { + return + $"{_resourceBaseUrl}/shipments/{shipmentId}/documents?packageClientReferenceId={packageClientReferenceId}&format={format}"; + } + + public static string CancelShipment(string shipmentId) + { + return $"{_resourceBaseUrl}/shipments/{shipmentId}/cancel"; + } + } + + protected class TokenApiUrls + { + private static readonly string _resourceBaseUrl = "/tokens/2021-03-01"; + + public static string RestrictedDataToken => $"{_resourceBaseUrl}/restrictedDataToken"; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Services/RequestService.cs b/Amazon.SellingPartnerApiSDK/Services/RequestService.cs new file mode 100644 index 0000000..9be656c --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Services/RequestService.cs @@ -0,0 +1,328 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Net; +using System.Threading; +using System.Threading.Tasks; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Exceptions; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token; +using Amazon.SellingPartnerApiSDK.Misc; +using Amazon.SellingPartnerApiSDK.Parameters; +using Newtonsoft.Json; +using RestSharp; +using RestSharp.Serializers.NewtonsoftJson; +using Method = RestSharp.Method; +using static Amazon.SellingPartnerApiSDK.Misc.Constants; +using static Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token.CacheTokenData; + +namespace Amazon.SellingPartnerApiSDK.Services +{ + public class RequestService : ApiUrls + { + public static readonly string AccessTokenHeaderName = "x-amz-access-token"; + public static readonly string SecurityTokenHeaderName = "x-amz-security-token"; + public static readonly string ShippingBusinessIdHeaderName = "x-amzn-shipping-business-id"; + private const string RateLimitLimitHeaderName = "x-amzn-RateLimit-Limit"; + + protected RequestService(AmazonCredential amazonCredential) + { + AmazonCredential = amazonCredential; + AmazonSandboxUrl = amazonCredential.MarketPlace.Region.SandboxHostUrl; + AmazonProductionUrl = amazonCredential.MarketPlace.Region.HostUrl; + } + + protected RestClient RequestClient { get; set; } + protected RestRequest Request { get; set; } + protected AmazonCredential AmazonCredential { get; set; } + protected string AmazonSandboxUrl { get; set; } + protected string AmazonProductionUrl { get; set; } + protected string AccessToken { get; set; } + protected IList> LastHeaders { get; set; } + + protected string ApiBaseUrl => AmazonCredential.Environment == Constants.Environments.Sandbox + ? AmazonSandboxUrl + : AmazonProductionUrl; + + public IList> LastResponseHeader => LastHeaders; + + private void CreateRequest(string url, Method method) + { + if (string.IsNullOrWhiteSpace(AmazonCredential.ProxyAddress)) + { + var options = new RestClientOptions(ApiBaseUrl); + RequestClient = new RestClient(options, + configureSerialization: s => s.UseNewtonsoftJson()); + } + else + { + var options = new RestClientOptions(ApiBaseUrl) + { + Proxy = new WebProxy() + { + Address = new Uri(AmazonCredential.ProxyAddress) + } + }; + + RequestClient = new RestClient(options, + configureSerialization: s => s.UseNewtonsoftJson()); + } + + Request = new RestRequest(url, method); + } + + protected async Task CreateAuthorizedRequestAsync(string url, Method method, + List> queryParameters = null, object postJsonObj = null, + CacheTokenData.TokenDataType tokenDataType = CacheTokenData.TokenDataType.Normal, object parameter = null, + CancellationToken cancellationToken = default) + { + if (parameter is IParameterBasedPII piiObject && piiObject.IsNeedRestrictedDataToken) + { + await RefreshTokenAsync(CacheTokenData.TokenDataType.PII, piiObject.RestrictedDataTokenRequest, cancellationToken); + } + else + { + await RefreshTokenAsync(tokenDataType, cancellationToken: cancellationToken); + } + + CreateRequest(url, method); + if (postJsonObj != null) + AddJsonBody(postJsonObj); + if (queryParameters != null) + AddQueryParameters(queryParameters); + } + + private async Task ExecuteRequestTry(RateLimitType rateLimitType = RateLimitType.UNSET, + CancellationToken cancellationToken = default) where T : new() + { + RestHeader(); + AddAccessToken(); + var response = await RequestClient.ExecuteAsync(Request, cancellationToken); + LogRequest(Request, response); + SaveLastRequestHeader(response.Headers); + await SleepForRateLimit(response.Headers, rateLimitType, cancellationToken); + ParseResponse(response); + + if (response.StatusCode == HttpStatusCode.OK && !string.IsNullOrEmpty(response.Content) && + response.Data == null) response.Data = JsonConvert.DeserializeObject(response.Content); + return response.Data; + } + + private void SaveLastRequestHeader(IReadOnlyCollection parameters) + { + LastHeaders = new List>(); + foreach (RestSharp.Parameter parameter in parameters ?? Enumerable.Empty()) + if (parameter != null && parameter.Name != null && parameter.Value != null) + LastHeaders.Add(new KeyValuePair(parameter.Name, parameter.Value.ToString())); + } + + private void LogRequest(RestRequest request, RestResponse response) + { + if (AmazonCredential.IsDebugMode) + { + var requestToLog = new + { + resource = request.Resource, + parameters = request.Parameters.Select(parameter => new + { + name = parameter.Name, + value = parameter.Value, + type = parameter.Type.ToString() + }), + method = request.Method.ToString() + }; + + var responseToLog = new + { + statusCode = response.StatusCode, + content = response.Content, + headers = response.Headers, + responseUri = response.ResponseUri, + errorMessage = response.ErrorMessage + }; + Console.WriteLine("\n\n"); + Console.WriteLine("Request completed, \nRequest: {0} \n\nResponse: {1}", + JsonConvert.SerializeObject(requestToLog), JsonConvert.SerializeObject(responseToLog)); + } + } + + private void RestHeader() + { + lock (Request) + { + Request?.Parameters?.RemoveParameter(AccessTokenHeaderName); + Request?.Parameters?.RemoveParameter(SecurityTokenHeaderName); + Request?.Parameters?.RemoveParameter(ShippingBusinessIdHeaderName); + } + } + + protected async Task ExecuteRequestAsync(RateLimitType rateLimitType = RateLimitType.UNSET, + CancellationToken cancellationToken = default) where T : new() + { + var tryCount = 0; + while (true) + try + { + return await ExecuteRequestTry(rateLimitType, cancellationToken); + } + catch (AmazonQuotaExceededException ex) + { + if (tryCount >= AmazonCredential.MaxThrottledRetryCount) + { + if (AmazonCredential.IsDebugMode) + Console.WriteLine("已达到最大的尝试次数"); + + throw; + } + + cancellationToken.ThrowIfCancellationRequested(); + + AmazonCredential.UsagePlansTimings[rateLimitType].Delay(); + tryCount++; + } + } + + private async Task SleepForRateLimit(IReadOnlyCollection headers, + RateLimitType rateLimitType = RateLimitType.UNSET, CancellationToken cancellationToken = default) + { + try + { + decimal rate = 0; + var limitHeader = headers.FirstOrDefault(a => a.Name == RateLimitLimitHeaderName); + if (limitHeader != null) + { + var rateLimitValue = limitHeader.Value.ToString(); + decimal.TryParse(rateLimitValue, NumberStyles.Any, CultureInfo.InvariantCulture, out rate); + } + + if (AmazonCredential.IsActiveLimitRate) + { + if (rateLimitType == RateLimitType.UNSET) + { + if (rate > 0) + { + var sleepTime = (int)(1 / rate * 1000); + await Task.Delay(sleepTime, cancellationToken); + } + } + else + { + if (rate > 0) AmazonCredential.UsagePlansTimings[rateLimitType].SetRateLimit(rate); + var time = AmazonCredential.UsagePlansTimings[rateLimitType].NextRate(rateLimitType); + } + } + } + catch (Exception) + { + // ignored + } + } + + private void ParseResponse(RestResponse response) + { + if (response.StatusCode == HttpStatusCode.OK || response.StatusCode == HttpStatusCode.Accepted || + response.StatusCode == HttpStatusCode.Created || response.StatusCode == HttpStatusCode.NoContent) + return; + else if (response.StatusCode == HttpStatusCode.NotFound) + { + throw new AmazonNotFoundException("Resource that you are looking for is not found", response); + } + else + { + if (AmazonCredential.IsDebugMode) + Console.WriteLine("Amazon Api didn't respond with Okay, see exception for more details" + + response.Content); + + var errorResponse = response.Content.ConvertToErrorResponse(); + if (errorResponse != null) + { + var error = errorResponse.Errors.FirstOrDefault(); + + switch (error.Code) + { + case "Unauthorized": + throw new AmazonUnauthorizedException(error.Message, response); + case "InvalidSignature": + throw new AmazonInvalidSignatureException(error.Message, response); + case "InvalidInput": + throw new AmazonInvalidInputException(error.Message, error.Details, response); + case "QuotaExceeded": + throw new AmazonQuotaExceededException(error.Message, response); + case "InternalFailure": + throw new AmazonInternalErrorException(error.Message, response); + } + } + } + + if (response.StatusCode == HttpStatusCode.BadRequest) + { + throw new AmazonBadRequestException( + "BadRequest see https://developer-docs.amazon.com/sp-api/changelog/api-request-validation-for-400-errors-with-html-response for advice", + response); + } + + throw new AmazonException("Amazon Api didn't respond with Okay, see exception for more details", response); + } + + private void AddQueryParameters(List> queryParameters) + { + if (queryParameters != null) + queryParameters.ForEach(qp => Request.AddQueryParameter(qp.Key, qp.Value)); + } + + private void AddJsonBody(object jsonData) + { + var json = JsonConvert.SerializeObject(jsonData); + Request.AddJsonBody(json); + } + + private void AddAccessToken() + { + lock (Request) + { + Request.AddOrUpdateHeader(AccessTokenHeaderName, AccessToken); + } + } + + private async Task RefreshTokenAsync(CacheTokenData.TokenDataType tokenDataType = CacheTokenData.TokenDataType.Normal, + CreateRestrictedDataTokenRequest requestPii = null, CancellationToken cancellationToken = default) + { + var token = AmazonCredential.GetToken(tokenDataType); + if (token == null) + { + if (tokenDataType == CacheTokenData.TokenDataType.PII) + { + var pii = await CreateRestrictedDataTokenAsync(requestPii, cancellationToken); + if (pii != null) + token = new TokenResponse + { + access_token = pii.RestrictedDataToken, + expires_in = pii.ExpiresIn + }; + else + throw new ArgumentNullException(nameof(pii)); + } + else + { + token = await TokenGeneration.RefreshAccessTokenAsync(AmazonCredential, tokenDataType, + cancellationToken); + } + + AmazonCredential.SetToken(tokenDataType, token); + } + + AccessToken = token.access_token; + } + + private async Task CreateRestrictedDataTokenAsync( + CreateRestrictedDataTokenRequest createRestrictedDataTokenRequest, + CancellationToken cancellationToken = default) + { + await CreateAuthorizedRequestAsync(TokenApiUrls.RestrictedDataToken, Method.Post, + postJsonObj: createRestrictedDataTokenRequest, cancellationToken: cancellationToken); + var response = await ExecuteRequestAsync( + RateLimitType.Token_CreateRestrictedDataToken, cancellationToken: cancellationToken); + return response; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Services/ShippingV2Service.cs b/Amazon.SellingPartnerApiSDK/Services/ShippingV2Service.cs new file mode 100644 index 0000000..d451202 --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Services/ShippingV2Service.cs @@ -0,0 +1,69 @@ +using System.Threading; +using System.Threading.Tasks; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.ShippingV2; +using Amazon.SellingPartnerApiSDK.Misc; + +namespace Amazon.SellingPartnerApiSDK.Services +{ + public class ShippingV2Service : RequestService + { + public ShippingV2Service(AmazonCredential amazonCredential) : base(amazonCredential) + { + } + + public GetRatesResult GetRates(GetRatesRequest getRatesRequest) => + Task.Run(() => GetRatesAsync(getRatesRequest)).ConfigureAwait(false).GetAwaiter().GetResult(); + + public async Task GetRatesAsync(GetRatesRequest getRatesRequest, + CancellationToken cancellationToken = default) + { + await CreateAuthorizedRequestAsync(ShippingApiV2Urls.GetRates, RestSharp.Method.Post, + postJsonObj: getRatesRequest, cancellationToken: cancellationToken); + + var response = + await ExecuteRequestAsync(RateLimitType.ShippingV2_GetRates, cancellationToken); + + if (response != null && response.Payload != null) + return response.Payload; + + return null; + } + + public PurchaseShipmentResult PurchaseShipment(PurchaseShipmentRequest purchaseShipmentRequest) => + Task.Run(() => PurchaseShipmentAsync(purchaseShipmentRequest)).ConfigureAwait(false).GetAwaiter() + .GetResult(); + + public async Task PurchaseShipmentAsync(PurchaseShipmentRequest purchaseShipmentRequest, + CancellationToken cancellationToken = default) + { + await CreateAuthorizedRequestAsync(ShippingApiV2Urls.PurchaseShipment, RestSharp.Method.Post, + postJsonObj: purchaseShipmentRequest, cancellationToken: cancellationToken); + var response = + await ExecuteRequestAsync(RateLimitType.ShippingV2_PurchaseShipment, + cancellationToken); + if (response != null && response.Payload != null) + return response.Payload; + return null; + } + + public OneClickShipmentResult OneClickShipment(OneClickShipmentRequest oneClickShipmentRequest) => + Task.Run(() => OneClickShipmentAsync(oneClickShipmentRequest)).ConfigureAwait(false).GetAwaiter() + .GetResult(); + + public async Task OneClickShipmentAsync(OneClickShipmentRequest oneClickShipmentRequest, + CancellationToken cancellationToken = default) + { + await CreateAuthorizedRequestAsync(ShippingApiV2Urls.OneClickShipment, RestSharp.Method.Post, + postJsonObj: oneClickShipmentRequest, cancellationToken: cancellationToken); + + var response = + await ExecuteRequestAsync(RateLimitType.ShippingV2_GetRates, + cancellationToken); + + if (response != null && response.Payload != null) + return response.Payload; + + return null; + } + } +} \ No newline at end of file diff --git a/Amazon.SellingPartnerApiSDK/Services/TokenGeneration.cs b/Amazon.SellingPartnerApiSDK/Services/TokenGeneration.cs new file mode 100644 index 0000000..25e05ff --- /dev/null +++ b/Amazon.SellingPartnerApiSDK/Services/TokenGeneration.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Models.Token; +using Amazon.SellingPartnerApiSDK.AmazonSpApiSDK.Runtime; +using Amazon.SellingPartnerApiSDK.Misc; + +namespace Amazon.SellingPartnerApiSDK.Services +{ + public static class TokenGeneration + { + public static async Task RefreshAccessTokenAsync(AmazonCredential credentials, + CacheTokenData.TokenDataType tokenDataType = CacheTokenData.TokenDataType.Normal, CancellationToken cancellationToken = default) + { + var lwaCredentials = new LWAAuthorizationCredentials() + { + ClientId = credentials.ClientId, + ClientSecret = credentials.ClientSecret, + Endpoint = new Uri(Constants.AmazonTokenEndPoint), + RefreshToken = credentials.RefreshToken, + Scopes = null + }; + if (tokenDataType == CacheTokenData.TokenDataType.Grantless) + lwaCredentials.Scopes = new List() + { ScopeConstants.ScopeMigrationAPI, ScopeConstants.ScopeNotificationsAPI }; + + var client = new LWAClient(lwaCredentials, credentials.ProxyAddress); + var accessToken = await client.GetAccessTokenAsync(cancellationToken); + + return accessToken; + } + } +} \ No newline at end of file