✅ init
commit
a04d35d20a
@ -0,0 +1,17 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Amazon.SellingPartnerApiSDK\Amazon.SellingPartnerApiSDK.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -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();
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://0.0.0.0:7093"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="6.0.0"/>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
|
||||
<PackageReference Include="xunit" Version="2.5.3"/>
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Using Include="Xunit"/>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Amazon.SellingPartnerApiSDK\Amazon.SellingPartnerApiSDK.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Access point details
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessPoint : IEquatable<AccessPoint>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name="type", EmitDefaultValue=false)]
|
||||
public AccessPointType? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Defines AssistanceType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum AssistanceTypeEnum
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum STAFFASSISTED for value: STAFF_ASSISTED
|
||||
/// </summary>
|
||||
[EnumMember(Value = "STAFF_ASSISTED")]
|
||||
STAFFASSISTED = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum SELFASSISTED for value: SELF_ASSISTED
|
||||
/// </summary>
|
||||
[EnumMember(Value = "SELF_ASSISTED")]
|
||||
SELFASSISTED = 2
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AssistanceType
|
||||
/// </summary>
|
||||
[DataMember(Name="assistanceType", EmitDefaultValue=false)]
|
||||
public AssistanceTypeEnum? AssistanceType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessPoint" /> class.
|
||||
/// </summary>
|
||||
/// <param name="accessPointId">accessPointId.</param>
|
||||
/// <param name="name">Name of entity (store/hub etc) where this access point is located.</param>
|
||||
/// <param name="timezone">Timezone of access point.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="accessibilityAttributes">accessibilityAttributes.</param>
|
||||
/// <param name="address">address.</param>
|
||||
/// <param name="exceptionOperatingHours">exceptionOperatingHours.</param>
|
||||
/// <param name="assistanceType">assistanceType.</param>
|
||||
/// <param name="score">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..</param>
|
||||
/// <param name="standardOperatingHours">standardOperatingHours.</param>
|
||||
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> exceptionOperatingHours = default(List<ExceptionOperatingHours>), 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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessPointId
|
||||
/// </summary>
|
||||
[DataMember(Name="accessPointId", EmitDefaultValue=false)]
|
||||
public AccessPointId AccessPointId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of entity (store/hub etc) where this access point is located
|
||||
/// </summary>
|
||||
/// <value>Name of entity (store/hub etc) where this access point is located</value>
|
||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Timezone of access point
|
||||
/// </summary>
|
||||
/// <value>Timezone of access point</value>
|
||||
[DataMember(Name="timezone", EmitDefaultValue=false)]
|
||||
public string Timezone { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessibilityAttributes
|
||||
/// </summary>
|
||||
[DataMember(Name="accessibilityAttributes", EmitDefaultValue=false)]
|
||||
public AccessibilityAttributes AccessibilityAttributes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Address
|
||||
/// </summary>
|
||||
[DataMember(Name="address", EmitDefaultValue=false)]
|
||||
public Address Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ExceptionOperatingHours
|
||||
/// </summary>
|
||||
[DataMember(Name="exceptionOperatingHours", EmitDefaultValue=false)]
|
||||
public List<ExceptionOperatingHours> ExceptionOperatingHours { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <value>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.</value>
|
||||
[DataMember(Name="score", EmitDefaultValue=false)]
|
||||
public string Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StandardOperatingHours
|
||||
/// </summary>
|
||||
[DataMember(Name="standardOperatingHours", EmitDefaultValue=false)]
|
||||
public DayOfWeekTimeMap StandardOperatingHours { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessPoint);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessPoint instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessPoint to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// AccessPointDetails
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessPointDetails : IEquatable<AccessPointDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessPointId
|
||||
/// </summary>
|
||||
[DataMember(Name="accessPointId", EmitDefaultValue=false)]
|
||||
public string AccessPointId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessPointDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessPointDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessPointDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AccessPointDetails input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.AccessPointId == input.AccessPointId ||
|
||||
(this.AccessPointId != null &&
|
||||
this.AccessPointId.Equals(input.AccessPointId))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique identifier for the access point
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessPointId : IEquatable<AccessPointId>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessPointId" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AccessPointId()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class AccessPointId {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessPointId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessPointId instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessPointId to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AccessPointId input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessPointList : List<AccessPoint>, IEquatable<AccessPointList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessPointList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AccessPointList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessPointList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessPointList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessPointList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AccessPointList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of access point, like counter (HELIX), lockers, etc.
|
||||
/// </summary>
|
||||
/// <value>The type of access point, like counter (HELIX), lockers, etc.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum AccessPointType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum HELIX for value: HELIX
|
||||
/// </summary>
|
||||
[EnumMember(Value = "HELIX")]
|
||||
HELIX = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CAMPUSLOCKER for value: CAMPUS_LOCKER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CAMPUS_LOCKER")]
|
||||
CAMPUSLOCKER = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum OMNILOCKER for value: OMNI_LOCKER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "OMNI_LOCKER")]
|
||||
OMNILOCKER = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum ODINLOCKER for value: ODIN_LOCKER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ODIN_LOCKER")]
|
||||
ODINLOCKER = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DOBBYLOCKER for value: DOBBY_LOCKER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DOBBY_LOCKER")]
|
||||
DOBBYLOCKER = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CORELOCKER for value: CORE_LOCKER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CORE_LOCKER")]
|
||||
CORELOCKER = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum _3P for value: 3P
|
||||
/// </summary>
|
||||
[EnumMember(Value = "3P")]
|
||||
_3P = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CAMPUSROOM for value: CAMPUS_ROOM
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CAMPUS_ROOM")]
|
||||
CAMPUSROOM = 8
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Map of type of access point to list of access points
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessPointsMap : Dictionary<String, AccessPointList>, IEquatable<AccessPointsMap>,
|
||||
IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessPointsMap" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AccessPointsMap() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessPointsMap);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessPointsMap instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessPointsMap to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AccessPointsMap input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the accessibility details of the access point.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AccessibilityAttributes : IEquatable<AccessibilityAttributes>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AccessibilityAttributes" /> class.
|
||||
/// </summary>
|
||||
/// <param name="distance">The approximate distance of access point from input postalCode's centroid..</param>
|
||||
/// <param name="driveTime">The approximate (static) drive time from input postal code's centroid..</param>
|
||||
public AccessibilityAttributes(string distance = default(string), int? driveTime = default(int?))
|
||||
{
|
||||
this.Distance = distance;
|
||||
this.DriveTime = driveTime;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The approximate distance of access point from input postalCode's centroid.
|
||||
/// </summary>
|
||||
/// <value>The approximate distance of access point from input postalCode's centroid.</value>
|
||||
[DataMember(Name="distance", EmitDefaultValue=false)]
|
||||
public string Distance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The approximate (static) drive time from input postal code's centroid.
|
||||
/// </summary>
|
||||
/// <value>The approximate (static) drive time from input postal code's centroid.</value>
|
||||
[DataMember(Name="driveTime", EmitDefaultValue=false)]
|
||||
public int? DriveTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AccessibilityAttributes);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AccessibilityAttributes instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AccessibilityAttributes to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Address notes to re-attempt delivery with.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AdditionalAddressNotes : IEquatable<AdditionalAddressNotes>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AdditionalAddressNotes" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AdditionalAddressNotes()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class AdditionalAddressNotes {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AdditionalAddressNotes);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AdditionalAddressNotes instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AdditionalAddressNotes to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AdditionalAddressNotes input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The address.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Address : IEquatable<Address>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the person, business or institution at the address.
|
||||
/// </summary>
|
||||
/// <value>The name of the person, business or institution at the address.</value>
|
||||
[DataMember(Name="name", EmitDefaultValue=false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The first line of the address.
|
||||
/// </summary>
|
||||
/// <value>The first line of the address.</value>
|
||||
[DataMember(Name="addressLine1", EmitDefaultValue=false)]
|
||||
public string AddressLine1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Additional address information, if required.
|
||||
/// </summary>
|
||||
/// <value>Additional address information, if required.</value>
|
||||
[DataMember(Name="addressLine2", EmitDefaultValue=false)]
|
||||
public string AddressLine2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Additional address information, if required.
|
||||
/// </summary>
|
||||
/// <value>Additional address information, if required.</value>
|
||||
[DataMember(Name="addressLine3", EmitDefaultValue=false)]
|
||||
public string AddressLine3 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the business or institution associated with the address.
|
||||
/// </summary>
|
||||
/// <value>The name of the business or institution associated with the address.</value>
|
||||
[DataMember(Name="companyName", EmitDefaultValue=false)]
|
||||
public string CompanyName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StateOrRegion
|
||||
/// </summary>
|
||||
[DataMember(Name="stateOrRegion", EmitDefaultValue=false)]
|
||||
public string StateOrRegion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets City
|
||||
/// </summary>
|
||||
[DataMember(Name="city", EmitDefaultValue=false)]
|
||||
public string City { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CountryCode
|
||||
/// </summary>
|
||||
[DataMember(Name="countryCode", EmitDefaultValue=false)]
|
||||
public string CountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PostalCode
|
||||
/// </summary>
|
||||
[DataMember(Name="postalCode", EmitDefaultValue=false)]
|
||||
public string PostalCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The email address of the contact associated with the address.
|
||||
/// </summary>
|
||||
/// <value>The email address of the contact associated with the address.</value>
|
||||
[DataMember(Name="email", EmitDefaultValue=false)]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The phone number of the person, business or institution located at that address, including the country calling code.
|
||||
/// </summary>
|
||||
/// <value>The phone number of the person, business or institution located at that address, including the country calling code.</value>
|
||||
[DataMember(Name="phoneNumber", EmitDefaultValue=false)]
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Geocode
|
||||
/// </summary>
|
||||
[DataMember(Name="geocode", EmitDefaultValue=false)]
|
||||
public Geocode Geocode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Address);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Address instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Address to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The carrier generated reverse identifier for a returned package in a purchased shipment.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AlternateLegTrackingId : IEquatable<AlternateLegTrackingId>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AlternateLegTrackingId" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AlternateLegTrackingId()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class AlternateLegTrackingId {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AlternateLegTrackingId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AlternateLegTrackingId instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AlternateLegTrackingId to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AlternateLegTrackingId input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Amazon order information. This is required if the shipment source channel is Amazon.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AmazonOrderDetails : IEquatable<AmazonOrderDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The Amazon order ID associated with the Amazon order fulfilled by this shipment.
|
||||
/// </summary>
|
||||
/// <value>The Amazon order ID associated with the Amazon order fulfilled by this shipment.</value>
|
||||
[DataMember(Name="orderId", EmitDefaultValue=false)]
|
||||
public string OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AmazonOrderDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AmazonOrderDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AmazonOrderDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AmazonOrderDetails input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.OrderId == input.OrderId ||
|
||||
(this.OrderId != null &&
|
||||
this.OrderId.Equals(input.OrderId))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Amazon shipment information.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AmazonShipmentDetails : IEquatable<AmazonShipmentDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID.
|
||||
/// </summary>
|
||||
/// <value>This attribute is required only for a Direct Fulfillment shipment. This is the encrypted shipment ID.</value>
|
||||
[DataMember(Name="shipmentId", EmitDefaultValue=false)]
|
||||
public string ShipmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AmazonShipmentDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AmazonShipmentDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AmazonShipmentDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AmazonShipmentDetails input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.ShipmentId == input.ShipmentId ||
|
||||
(this.ShipmentId != null &&
|
||||
this.ShipmentId.Equals(input.ShipmentId))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The value-added services available for purchase with a shipping service offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AvailableValueAddedServiceGroup : IEquatable<AvailableValueAddedServiceGroup>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of the value-added service group.
|
||||
/// </summary>
|
||||
/// <value>The type of the value-added service group.</value>
|
||||
[DataMember(Name="groupId", EmitDefaultValue=false)]
|
||||
public string GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the value-added service group.
|
||||
/// </summary>
|
||||
/// <value>The name of the value-added service group.</value>
|
||||
[DataMember(Name="groupDescription", EmitDefaultValue=false)]
|
||||
public string GroupDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When true, one or more of the value-added services listed must be specified.
|
||||
/// </summary>
|
||||
/// <value>When true, one or more of the value-added services listed must be specified.</value>
|
||||
[DataMember(Name="isRequired", EmitDefaultValue=false)]
|
||||
public bool? IsRequired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A list of optional value-added services available for purchase with a shipping service offering.
|
||||
/// </summary>
|
||||
/// <value>A list of optional value-added services available for purchase with a shipping service offering.</value>
|
||||
[DataMember(Name="valueAddedServices", EmitDefaultValue=false)]
|
||||
public List<ValueAddedService> ValueAddedServices { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AvailableValueAddedServiceGroup);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AvailableValueAddedServiceGroup instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AvailableValueAddedServiceGroup to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of value-added services available for a shipping service offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class AvailableValueAddedServiceGroupList : List<AvailableValueAddedServiceGroup>, IEquatable<AvailableValueAddedServiceGroupList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AvailableValueAddedServiceGroupList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public AvailableValueAddedServiceGroupList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as AvailableValueAddedServiceGroupList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if AvailableValueAddedServiceGroupList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of AvailableValueAddedServiceGroupList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(AvailableValueAddedServiceGroupList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Benefits : IEquatable<Benefits>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets IncludedBenefits
|
||||
/// </summary>
|
||||
[DataMember(Name="includedBenefits", EmitDefaultValue=false)]
|
||||
public IncludedBenefits IncludedBenefits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ExcludedBenefits
|
||||
/// </summary>
|
||||
[DataMember(Name="excludedBenefits", EmitDefaultValue=false)]
|
||||
public ExcludedBenefits ExcludedBenefits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Benefits);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Benefits instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Benefits to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Response schema for the cancelShipment operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CancelShipmentResponse : IEquatable<CancelShipmentResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CancelShipmentResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="payload">payload.</param>
|
||||
public CancelShipmentResponse(CancelShipmentResult payload = default(CancelShipmentResult))
|
||||
{
|
||||
this.Payload = payload;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public CancelShipmentResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CancelShipmentResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CancelShipmentResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CancelShipmentResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CancelShipmentResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the cancelShipment operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CancelShipmentResult : Dictionary<String, Object>, IEquatable<CancelShipmentResult>,
|
||||
IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CancelShipmentResult" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public CancelShipmentResult() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CancelShipmentResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CancelShipmentResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CancelShipmentResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CancelShipmentResult input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Carrier Related Info
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Carrier : IEquatable<Carrier>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Carrier);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Carrier instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Carrier to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The carrier identifier for the offering, provided by the carrier.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CarrierId : IEquatable<CarrierId>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CarrierId" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public CarrierId()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class CarrierId {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CarrierId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CarrierId instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CarrierId to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CarrierId input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The carrier name for the offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CarrierName : IEquatable<CarrierName>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CarrierName" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public CarrierName()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class CarrierName {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CarrierName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CarrierName instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CarrierName to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CarrierName input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Shipment source channel related information.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ChannelDetails : IEquatable<ChannelDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets ChannelType
|
||||
/// </summary>
|
||||
[DataMember(Name="channelType", EmitDefaultValue=false)]
|
||||
public ChannelType ChannelType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AmazonOrderDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="amazonOrderDetails", EmitDefaultValue=false)]
|
||||
public AmazonOrderDetails AmazonOrderDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AmazonShipmentDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="amazonShipmentDetails", EmitDefaultValue=false)]
|
||||
public AmazonShipmentDetails AmazonShipmentDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ChannelDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ChannelDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ChannelDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The shipment source channel type.
|
||||
/// </summary>
|
||||
/// <value>The shipment source channel type.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum ChannelType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum AMAZON for value: AMAZON
|
||||
/// </summary>
|
||||
[EnumMember(Value = "AMAZON")]
|
||||
AMAZON = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum EXTERNAL for value: EXTERNAL
|
||||
/// </summary>
|
||||
[EnumMember(Value = "EXTERNAL")]
|
||||
EXTERNAL = 2
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The type and amount of a charge applied on a package.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ChargeComponent : IEquatable<ChargeComponent>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of charge.
|
||||
/// </summary>
|
||||
/// <value>The type of charge.</value>
|
||||
[DataMember(Name = "chargeType", EmitDefaultValue = false)]
|
||||
public ChargeTypeEnum? ChargeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Amount
|
||||
/// </summary>
|
||||
[DataMember(Name = "amount", EmitDefaultValue = false)]
|
||||
public Currency Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ChargeComponent);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ChargeComponent instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ChargeComponent to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The type of charge.
|
||||
/// </summary>
|
||||
/// <value>The type of charge.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ChargeTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum TAX for value: TAX
|
||||
/// </summary>
|
||||
[EnumMember(Value = "TAX")] TAX = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DISCOUNT for value: DISCOUNT
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DISCOUNT")] DISCOUNT = 2
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of charges based on the shipping service charges applied on a package.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ChargeList : List<ChargeComponent>, IEquatable<ChargeList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ChargeList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public ChargeList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ChargeList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ChargeList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ChargeList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ChargeList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The city or town where the person, business or institution is located.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class City : IEquatable<City>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="City" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public City()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class City {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as City);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if City instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of City to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(City input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Client Reference Details
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ClientReferenceDetail : IEquatable<ClientReferenceDetail>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Client Reference type.
|
||||
/// </summary>
|
||||
/// <value>Client Reference type.</value>
|
||||
[DataMember(Name = "clientReferenceType", EmitDefaultValue = false)]
|
||||
public ClientReferenceTypeEnum ClientReferenceType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Client Reference Id.
|
||||
/// </summary>
|
||||
/// <value>The Client Reference Id.</value>
|
||||
[DataMember(Name = "clientReferenceId", EmitDefaultValue = false)]
|
||||
public string ClientReferenceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ClientReferenceDetail);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ClientReferenceDetail instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ClientReferenceDetail to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Reference type.
|
||||
/// </summary>
|
||||
/// <value>Client Reference type.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ClientReferenceTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum IntegratorShipperId for value: IntegratorShipperId
|
||||
/// </summary>
|
||||
[EnumMember(Value = "IntegratorShipperId")]
|
||||
IntegratorShipperId = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum IntegratorMerchantId for value: IntegratorMerchantId
|
||||
/// </summary>
|
||||
[EnumMember(Value = "IntegratorMerchantId")]
|
||||
IntegratorMerchantId = 2
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Object to pass additional information about the MCI Integrator shipperType: List of ClientReferenceDetail
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ClientReferenceDetails : List<ClientReferenceDetail>, IEquatable<ClientReferenceDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ClientReferenceDetails" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public ClientReferenceDetails() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ClientReferenceDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ClientReferenceDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ClientReferenceDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ClientReferenceDetails input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The amount to collect on delivery.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CollectOnDelivery : IEquatable<CollectOnDelivery>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Amount
|
||||
/// </summary>
|
||||
[DataMember(Name = "amount", EmitDefaultValue = false)]
|
||||
public Currency Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CollectOnDelivery);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CollectOnDelivery instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CollectOnDelivery to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CollectOnDelivery input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Amount == input.Amount ||
|
||||
(this.Amount != null &&
|
||||
this.Amount.Equals(input.Amount))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A Base64 encoded string of the file contents.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Contents : IEquatable<Contents>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Contents" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public Contents()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Contents {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Contents);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Contents instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Contents to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Contents input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The two digit country code. Follows ISO 3166-1 alpha-2 format.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class CountryCode : IEquatable<CountryCode>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CountryCode" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public CountryCode()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class CountryCode {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as CountryCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if CountryCode instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of CountryCode to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(CountryCode input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The monetary value in the currency indicated, in ISO 4217 standard format.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Currency : IEquatable<Currency>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The monetary value.
|
||||
/// </summary>
|
||||
/// <value>The monetary value.</value>
|
||||
[DataMember(Name="value", EmitDefaultValue=false)]
|
||||
public decimal? Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ISO 4217 format 3-character currency code.
|
||||
/// </summary>
|
||||
/// <value>The ISO 4217 format 3-character currency code.</value>
|
||||
[DataMember(Name="unit", EmitDefaultValue=false)]
|
||||
public string Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Currency);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Currency instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Currency to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Details related to any dangerous goods/items that are being shipped.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class DangerousGoodsDetails : IEquatable<DangerousGoodsDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The specific packaging group of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific packaging group of the item being shipped.</value>
|
||||
[DataMember(Name = "packingGroup", EmitDefaultValue = false)]
|
||||
public PackingGroupEnum? PackingGroup { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The specific packing instruction of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific packing instruction of the item being shipped.</value>
|
||||
[DataMember(Name = "packingInstruction", EmitDefaultValue = false)]
|
||||
public PackingInstructionEnum? PackingInstruction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The specific UNID of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific UNID of the item being shipped.</value>
|
||||
[DataMember(Name = "unitedNationsRegulatoryId", EmitDefaultValue = false)]
|
||||
public string UnitedNationsRegulatoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The specific regulatory class of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific regulatory class of the item being shipped.</value>
|
||||
[DataMember(Name = "transportationRegulatoryClass", EmitDefaultValue = false)]
|
||||
public string TransportationRegulatoryClass { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as DangerousGoodsDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DangerousGoodsDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DangerousGoodsDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The specific packaging group of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific packaging group of the item being shipped.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum PackingGroupEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum I for value: I
|
||||
/// </summary>
|
||||
[EnumMember(Value = "I")] I = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum II for value: II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "II")] II = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum III for value: III
|
||||
/// </summary>
|
||||
[EnumMember(Value = "III")] III = 3
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The specific packing instruction of the item being shipped.
|
||||
/// </summary>
|
||||
/// <value>The specific packing instruction of the item being shipped.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum PackingInstructionEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum PI965SECTIONIA for value: PI965_SECTION_IA
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI965_SECTION_IA")]
|
||||
PI965SECTIONIA = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI965SECTIONIB for value: PI965_SECTION_IB
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI965_SECTION_IB")]
|
||||
PI965SECTIONIB = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI965SECTIONII for value: PI965_SECTION_II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI965_SECTION_II")]
|
||||
PI965SECTIONII = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI966SECTIONI for value: PI966_SECTION_I
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI966_SECTION_I")]
|
||||
PI966SECTIONI = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI966SECTIONII for value: PI966_SECTION_II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI966_SECTION_II")]
|
||||
PI966SECTIONII = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI967SECTIONI for value: PI967_SECTION_I
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI967_SECTION_I")]
|
||||
PI967SECTIONI = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI967SECTIONII for value: PI967_SECTION_II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI967_SECTION_II")]
|
||||
PI967SECTIONII = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI968SECTIONIA for value: PI968_SECTION_IA
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI968_SECTION_IA")]
|
||||
PI968SECTIONIA = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI968SECTIONIB for value: PI968_SECTION_IB
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI968_SECTION_IB")]
|
||||
PI968SECTIONIB = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI969SECTIONI for value: PI969_SECTION_I
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI969_SECTION_I")]
|
||||
PI969SECTIONI = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI969SECTIONII for value: PI969_SECTION_II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI969_SECTION_II")]
|
||||
PI969SECTIONII = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI970SECTIONI for value: PI970_SECTION_I
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI970_SECTION_I")]
|
||||
PI970SECTIONI = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PI970SECTIONII for value: PI970_SECTION_II
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PI970_SECTION_II")]
|
||||
PI970SECTIONII = 13
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Date Range for query the results.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class DateRange : IEquatable<DateRange>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DateRange" /> class.
|
||||
/// </summary>
|
||||
/// <param name="startDate">Start Date for query ..</param>
|
||||
/// <param name="endDate">end date for query..</param>
|
||||
public DateRange(string startDate = default(string), string endDate = default(string))
|
||||
{
|
||||
this.StartDate = startDate;
|
||||
this.EndDate = endDate;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start Date for query .
|
||||
/// </summary>
|
||||
/// <value>Start Date for query .</value>
|
||||
[DataMember(Name="startDate", EmitDefaultValue=false)]
|
||||
public string StartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// end date for query.
|
||||
/// </summary>
|
||||
/// <value>end date for query.</value>
|
||||
[DataMember(Name="endDate", EmitDefaultValue=false)]
|
||||
public string EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as DateRange);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DateRange instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DateRange to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Map of day of the week to operating hours of that day
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class DayOfWeekTimeMap : Dictionary<String, OperatingHours>, IEquatable<DayOfWeekTimeMap>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="DayOfWeekTimeMap" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public DayOfWeekTimeMap() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as DayOfWeekTimeMap);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DayOfWeekTimeMap instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DayOfWeekTimeMap to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(DayOfWeekTimeMap input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of codes used to provide additional shipment information.
|
||||
/// </summary>
|
||||
/// <value>A list of codes used to provide additional shipment information.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum DetailCodes
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum BusinessClosed for value: BusinessClosed
|
||||
/// </summary>
|
||||
[EnumMember(Value = "BusinessClosed")]
|
||||
BusinessClosed = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CustomerUnavailable for value: CustomerUnavailable
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CustomerUnavailable")]
|
||||
CustomerUnavailable = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PaymentNotReady for value: PaymentNotReady
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PaymentNotReady")]
|
||||
PaymentNotReady = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum OtpNotAvailable for value: OtpNotAvailable
|
||||
/// </summary>
|
||||
[EnumMember(Value = "OtpNotAvailable")]
|
||||
OtpNotAvailable = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveryAttempted for value: DeliveryAttempted
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveryAttempted")]
|
||||
DeliveryAttempted = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum UnableToAccess for value: UnableToAccess
|
||||
/// </summary>
|
||||
[EnumMember(Value = "UnableToAccess")]
|
||||
UnableToAccess = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum UnableToContactRecipient for value: UnableToContactRecipient
|
||||
/// </summary>
|
||||
[EnumMember(Value = "UnableToContactRecipient")]
|
||||
UnableToContactRecipient = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToBehindWheelieBin for value: DeliveredToBehindWheelieBin
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToBehindWheelieBin")]
|
||||
DeliveredToBehindWheelieBin = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToPorch for value: DeliveredToPorch
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToPorch")]
|
||||
DeliveredToPorch = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToGarage for value: DeliveredToGarage
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToGarage")]
|
||||
DeliveredToGarage = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToGarden for value: DeliveredToGarden
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToGarden")]
|
||||
DeliveredToGarden = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToGreenhouse for value: DeliveredToGreenhouse
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToGreenhouse")]
|
||||
DeliveredToGreenhouse = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToMailSlot for value: DeliveredToMailSlot
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToMailSlot")]
|
||||
DeliveredToMailSlot = 13,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToMailRoom for value: DeliveredToMailRoom
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToMailRoom")]
|
||||
DeliveredToMailRoom = 14,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToNeighbor for value: DeliveredToNeighbor
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToNeighbor")]
|
||||
DeliveredToNeighbor = 15,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToRearDoor for value: DeliveredToRearDoor
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToRearDoor")]
|
||||
DeliveredToRearDoor = 16,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToReceptionist for value: DeliveredToReceptionist
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToReceptionist")]
|
||||
DeliveredToReceptionist = 17,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveredToShed for value: DeliveredToShed
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveredToShed")]
|
||||
DeliveredToShed = 18,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Signed for value: Signed
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Signed")]
|
||||
Signed = 19,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Damaged for value: Damaged
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Damaged")]
|
||||
Damaged = 20,
|
||||
|
||||
/// <summary>
|
||||
/// Enum IncorrectItems for value: IncorrectItems
|
||||
/// </summary>
|
||||
[EnumMember(Value = "IncorrectItems")]
|
||||
IncorrectItems = 21,
|
||||
|
||||
/// <summary>
|
||||
/// Enum NotRequired for value: NotRequired
|
||||
/// </summary>
|
||||
[EnumMember(Value = "NotRequired")]
|
||||
NotRequired = 22,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Rejected for value: Rejected
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Rejected")]
|
||||
Rejected = 23,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CancelledByRecipient for value: CancelledByRecipient
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CancelledByRecipient")]
|
||||
CancelledByRecipient = 24,
|
||||
|
||||
/// <summary>
|
||||
/// Enum AddressNotFound for value: AddressNotFound
|
||||
/// </summary>
|
||||
[EnumMember(Value = "AddressNotFound")]
|
||||
AddressNotFound = 25,
|
||||
|
||||
/// <summary>
|
||||
/// Enum HazmatShipment for value: HazmatShipment
|
||||
/// </summary>
|
||||
[EnumMember(Value = "HazmatShipment")]
|
||||
HazmatShipment = 26,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Undeliverable for value: Undeliverable
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Undeliverable")]
|
||||
Undeliverable = 27
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A set of measurements for a three-dimensional object.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Dimensions : IEquatable<Dimensions>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[DataMember(Name = "unit", EmitDefaultValue = false)]
|
||||
public DimensionsUnitEnum Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The length of the package.
|
||||
/// </summary>
|
||||
/// <value>The length of the package.</value>
|
||||
[DataMember(Name = "length", EmitDefaultValue = false)]
|
||||
public decimal? Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The width of the package.
|
||||
/// </summary>
|
||||
/// <value>The width of the package.</value>
|
||||
[DataMember(Name = "width", EmitDefaultValue = false)]
|
||||
public decimal? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The height of the package.
|
||||
/// </summary>
|
||||
/// <value>The height of the package.</value>
|
||||
[DataMember(Name = "height", EmitDefaultValue = false)]
|
||||
public decimal? Height { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Dimensions);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Dimensions instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Dimensions to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum DimensionsUnitEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum INCH for value: INCH
|
||||
/// </summary>
|
||||
[EnumMember(Value = "INCH")] INCH = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CENTIMETER for value: CENTIMETER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CENTIMETER")] CENTIMETER = 2
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Item identifiers for an item in a direct fulfillment shipment.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class DirectFulfillmentItemIdentifiers : IEquatable<DirectFulfillmentItemIdentifiers>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <value>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.</value>
|
||||
[DataMember(Name="lineItemID", EmitDefaultValue=false)]
|
||||
public string LineItemID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <value>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.</value>
|
||||
[DataMember(Name="pieceNumber", EmitDefaultValue=false)]
|
||||
public string PieceNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as DirectFulfillmentItemIdentifiers);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DirectFulfillmentItemIdentifiers instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DirectFulfillmentItemIdentifiers to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The file format of the document.
|
||||
/// </summary>
|
||||
/// <value>The file format of the document.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum DocumentFormat
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum PDF for value: PDF
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PDF")]
|
||||
PDF = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PNG for value: PNG
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PNG")]
|
||||
PNG = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum ZPL for value: ZPL
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ZPL")]
|
||||
ZPL = 3
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The size dimensions of the label.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class DocumentSize : IEquatable<DocumentSize>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[DataMember(Name = "unit", EmitDefaultValue = false)]
|
||||
public DocumentSizeUnitEnum Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The width of the document measured in the units specified.
|
||||
/// </summary>
|
||||
/// <value>The width of the document measured in the units specified.</value>
|
||||
[DataMember(Name = "width", EmitDefaultValue = false)]
|
||||
public decimal? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The length of the document measured in the units specified.
|
||||
/// </summary>
|
||||
/// <value>The length of the document measured in the units specified.</value>
|
||||
[DataMember(Name = "length", EmitDefaultValue = false)]
|
||||
public decimal? Length { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as DocumentSize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if DocumentSize instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of DocumentSize to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum DocumentSizeUnitEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum INCH for value: INCH
|
||||
/// </summary>
|
||||
[EnumMember(Value = "INCH")] INCH = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CENTIMETER for value: CENTIMETER
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CENTIMETER")] CENTIMETER = 2
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of shipping document.
|
||||
/// </summary>
|
||||
/// <value>The type of shipping document.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum DocumentType
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum PACKSLIP for value: PACKSLIP
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PACKSLIP")]
|
||||
PACKSLIP = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum LABEL for value: LABEL
|
||||
/// </summary>
|
||||
[EnumMember(Value = "LABEL")]
|
||||
LABEL = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum RECEIPT for value: RECEIPT
|
||||
/// </summary>
|
||||
[EnumMember(Value = "RECEIPT")]
|
||||
RECEIPT = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum CUSTOMFORM for value: CUSTOM_FORM
|
||||
/// </summary>
|
||||
[EnumMember(Value = "CUSTOM_FORM")]
|
||||
CUSTOMFORM = 4
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The dots per inch (DPI) value used in printing. This value represents a measure of the resolution of the document.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Dpi : IEquatable<Dpi>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Dpi" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public Dpi()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class Dpi {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Dpi);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Dpi instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Dpi to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Dpi input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Error response returned when the request is unsuccessful.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Error : IEquatable<Error>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Error" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected Error() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Error" /> class.
|
||||
/// </summary>
|
||||
/// <param name="code">An error code that identifies the type of error that occurred. (required).</param>
|
||||
/// <param name="message">A message that describes the error condition. (required).</param>
|
||||
/// <param name="details">Additional details that can help the caller understand or fix the issue..</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An error code that identifies the type of error that occurred.
|
||||
/// </summary>
|
||||
/// <value>An error code that identifies the type of error that occurred.</value>
|
||||
[DataMember(Name="code", EmitDefaultValue=false)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A message that describes the error condition.
|
||||
/// </summary>
|
||||
/// <value>A message that describes the error condition.</value>
|
||||
[DataMember(Name="message", EmitDefaultValue=false)]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Additional details that can help the caller understand or fix the issue.
|
||||
/// </summary>
|
||||
/// <value>Additional details that can help the caller understand or fix the issue.</value>
|
||||
[DataMember(Name="details", EmitDefaultValue=false)]
|
||||
public string Details { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Error);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Error instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Error to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of error responses returned when a request is unsuccessful.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ErrorList : IEquatable<ErrorList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ErrorList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected ErrorList() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ErrorList" /> class.
|
||||
/// </summary>
|
||||
/// <param name="errors">errors (required).</param>
|
||||
public ErrorList(List<Error> errors = default(List<Error>))
|
||||
{
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Errors
|
||||
/// </summary>
|
||||
[DataMember(Name="errors", EmitDefaultValue=false)]
|
||||
public List<Error> Errors { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ErrorList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ErrorList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ErrorList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ErrorList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Errors == input.Errors ||
|
||||
this.Errors != null &&
|
||||
this.Errors.SequenceEqual(input.Errors)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A tracking event.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Event : IEquatable<Event>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets EventCode
|
||||
/// </summary>
|
||||
[DataMember(Name="eventCode", EmitDefaultValue=false)]
|
||||
public EventCode EventCode { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipmentType
|
||||
/// </summary>
|
||||
[DataMember(Name="shipmentType", EmitDefaultValue=false)]
|
||||
public ShipmentType? ShipmentType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Event" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected Event() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Event" /> class.
|
||||
/// </summary>
|
||||
/// <param name="eventCode">eventCode (required).</param>
|
||||
/// <param name="location">location.</param>
|
||||
/// <param name="eventTime">The ISO 8601 formatted timestamp of the event. (required).</param>
|
||||
/// <param name="shipmentType">shipmentType.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Location
|
||||
/// </summary>
|
||||
[DataMember(Name="location", EmitDefaultValue=false)]
|
||||
public Location Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ISO 8601 formatted timestamp of the event.
|
||||
/// </summary>
|
||||
/// <value>The ISO 8601 formatted timestamp of the event.</value>
|
||||
[DataMember(Name="eventTime", EmitDefaultValue=false)]
|
||||
public DateTime? EventTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Event);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Event instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Event to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The tracking event type.
|
||||
/// </summary>
|
||||
/// <value>The tracking event type.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum EventCode
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum ReadyForReceive for value: ReadyForReceive
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ReadyForReceive")]
|
||||
ReadyForReceive = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PickupDone for value: PickupDone
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PickupDone")]
|
||||
PickupDone = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Delivered for value: Delivered
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Delivered")]
|
||||
Delivered = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Departed for value: Departed
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Departed")]
|
||||
Departed = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum DeliveryAttempted for value: DeliveryAttempted
|
||||
/// </summary>
|
||||
[EnumMember(Value = "DeliveryAttempted")]
|
||||
DeliveryAttempted = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Lost for value: Lost
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Lost")]
|
||||
Lost = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum OutForDelivery for value: OutForDelivery
|
||||
/// </summary>
|
||||
[EnumMember(Value = "OutForDelivery")]
|
||||
OutForDelivery = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Enum ArrivedAtCarrierFacility for value: ArrivedAtCarrierFacility
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ArrivedAtCarrierFacility")]
|
||||
ArrivedAtCarrierFacility = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Rejected for value: Rejected
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Rejected")]
|
||||
Rejected = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Undeliverable for value: Undeliverable
|
||||
/// </summary>
|
||||
[EnumMember(Value = "Undeliverable")]
|
||||
Undeliverable = 10,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PickupCancelled for value: PickupCancelled
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PickupCancelled")]
|
||||
PickupCancelled = 11,
|
||||
|
||||
/// <summary>
|
||||
/// Enum ReturnInitiated for value: ReturnInitiated
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ReturnInitiated")]
|
||||
ReturnInitiated = 12,
|
||||
|
||||
/// <summary>
|
||||
/// Enum AvailableForPickup for value: AvailableForPickup
|
||||
/// </summary>
|
||||
[EnumMember(Value = "AvailableForPickup")]
|
||||
AvailableForPickup = 13
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines exceptions to standard operating hours for certain date ranges.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ExceptionOperatingHours : IEquatable<ExceptionOperatingHours>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ExceptionOperatingHours" /> class.
|
||||
/// </summary>
|
||||
/// <param name="dateRange">dateRange.</param>
|
||||
/// <param name="operatingHours">operatingHours.</param>
|
||||
public ExceptionOperatingHours(DateRange dateRange = default(DateRange), OperatingHours operatingHours = default(OperatingHours))
|
||||
{
|
||||
this.DateRange = dateRange;
|
||||
this.OperatingHours = operatingHours;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DateRange
|
||||
/// </summary>
|
||||
[DataMember(Name="dateRange", EmitDefaultValue=false)]
|
||||
public DateRange DateRange { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OperatingHours
|
||||
/// </summary>
|
||||
[DataMember(Name="operatingHours", EmitDefaultValue=false)]
|
||||
public OperatingHours OperatingHours { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ExceptionOperatingHours);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ExceptionOperatingHours instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ExceptionOperatingHours to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Object representing an excluded benefit that is excluded for an ShippingOffering/Rate.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ExcludedBenefit : IEquatable<ExcludedBenefit>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Benefit
|
||||
/// </summary>
|
||||
[DataMember(Name="benefit", EmitDefaultValue=false)]
|
||||
public string Benefit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ReasonCodes
|
||||
/// </summary>
|
||||
[DataMember(Name="reasonCodes", EmitDefaultValue=false)]
|
||||
public ExcludedBenefitReasonCodes ReasonCodes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ExcludedBenefit);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ExcludedBenefit instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ExcludedBenefit to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// List of reasons (eg. LATE_DELIVERY_RISK, etc.) indicating why a benefit is excluded for a shipping offer.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ExcludedBenefitReasonCodes : List<string>, IEquatable<ExcludedBenefitReasonCodes>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ExcludedBenefitReasonCodes" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public ExcludedBenefitReasonCodes() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ExcludedBenefitReasonCodes);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ExcludedBenefitReasonCodes instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ExcludedBenefitReasonCodes to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ExcludedBenefitReasonCodes input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of excluded benefit. Refer to the ExcludeBenefit object for further documentation
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ExcludedBenefits : List<ExcludedBenefit>, IEquatable<ExcludedBenefits>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ExcludedBenefits" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public ExcludedBenefits() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ExcludedBenefits);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ExcludedBenefits instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ExcludedBenefits to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ExcludedBenefits input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the latitude and longitude of the access point.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Geocode : IEquatable<Geocode>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The latitude of access point.
|
||||
/// </summary>
|
||||
/// <value>The latitude of access point.</value>
|
||||
[DataMember(Name="latitude", EmitDefaultValue=false)]
|
||||
public string Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The longitude of access point.
|
||||
/// </summary>
|
||||
/// <value>The longitude of access point.</value>
|
||||
[DataMember(Name="longitude", EmitDefaultValue=false)]
|
||||
public string Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Geocode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Geocode instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Geocode to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the GetAccessPoints operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetAccessPointsResponse : IEquatable<GetAccessPointsResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetAccessPointsResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="payload">payload.</param>
|
||||
public GetAccessPointsResponse(GetAccessPointsResult payload = default(GetAccessPointsResult))
|
||||
{
|
||||
this.Payload = payload;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public GetAccessPointsResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetAccessPointsResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetAccessPointsResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetAccessPointsResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetAccessPointsResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the GetAccessPoints API.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetAccessPointsResult : IEquatable<GetAccessPointsResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetAccessPointsResult" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected GetAccessPointsResult() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetAccessPointsResult" /> class.
|
||||
/// </summary>
|
||||
/// <param name="accessPointsMap">accessPointsMap (required).</param>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessPointsMap
|
||||
/// </summary>
|
||||
[DataMember(Name="accessPointsMap", EmitDefaultValue=false)]
|
||||
public AccessPointsMap AccessPointsMap { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetAccessPointsResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetAccessPointsResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetAccessPointsResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetAccessPointsResult input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.AccessPointsMap == input.AccessPointsMap ||
|
||||
(this.AccessPointsMap != null &&
|
||||
this.AccessPointsMap.Equals(input.AccessPointsMap))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the getAdditionalInputs operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetAdditionalInputsResponse : IEquatable<GetAdditionalInputsResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetAdditionalInputsResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="payload">payload.</param>
|
||||
public GetAdditionalInputsResponse(GetAdditionalInputsResult payload = default(GetAdditionalInputsResult))
|
||||
{
|
||||
this.Payload = payload;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public GetAdditionalInputsResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetAdditionalInputsResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetAdditionalInputsResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetAdditionalInputsResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetAdditionalInputsResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The JSON schema to use to provide additional inputs when required to purchase a shipping offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetAdditionalInputsResult : Dictionary<String, Object>, IEquatable<GetAdditionalInputsResult>,
|
||||
IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetAdditionalInputsResult" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public GetAdditionalInputsResult() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetAdditionalInputsResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetAdditionalInputsResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetAdditionalInputsResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetAdditionalInputsResult input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The request schema for the getRates operation. When the channelType is Amazon, the shipTo address is not required and will be ignored.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetRatesRequest : IEquatable<GetRatesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipmentType
|
||||
/// </summary>
|
||||
[DataMember(Name = "shipmentType", EmitDefaultValue = false)]
|
||||
public ShipmentType? ShipmentType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ship to address.
|
||||
/// </summary>
|
||||
/// <value>The ship to address.</value>
|
||||
[DataMember(Name = "shipTo", EmitDefaultValue = false)]
|
||||
public Address ShipTo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ship from address.
|
||||
/// </summary>
|
||||
/// <value>The ship from address.</value>
|
||||
[DataMember(Name = "shipFrom", EmitDefaultValue = false)]
|
||||
public Address ShipFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The return to address.
|
||||
/// </summary>
|
||||
/// <value>The return to address.</value>
|
||||
[DataMember(Name = "returnTo", EmitDefaultValue = false)]
|
||||
public Address ReturnTo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ship date and time (the requested pickup). This defaults to the current date and time.
|
||||
/// </summary>
|
||||
/// <value>The ship date and time (the requested pickup). This defaults to the current date and time.</value>
|
||||
[DataMember(Name = "shipDate", EmitDefaultValue = false)]
|
||||
public DateTime? ShipDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This field describe shipper instruction.
|
||||
/// </summary>
|
||||
/// <value>This field describe shipper instruction.</value>
|
||||
[DataMember(Name = "shipperInstruction", EmitDefaultValue = false)]
|
||||
public ShipperInstruction ShipperInstruction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Packages
|
||||
/// </summary>
|
||||
[DataMember(Name = "packages", EmitDefaultValue = false)]
|
||||
public PackageList Packages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ValueAddedServices
|
||||
/// </summary>
|
||||
[DataMember(Name = "valueAddedServices", EmitDefaultValue = false)]
|
||||
public ValueAddedServiceDetails ValueAddedServices { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TaxDetails
|
||||
/// </summary>
|
||||
[DataMember(Name = "taxDetails", EmitDefaultValue = false)]
|
||||
public TaxDetailList TaxDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ChannelDetails
|
||||
/// </summary>
|
||||
[DataMember(Name = "channelDetails", EmitDefaultValue = false)]
|
||||
public ChannelDetails ChannelDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClientReferenceDetails
|
||||
/// </summary>
|
||||
[DataMember(Name = "clientReferenceDetails", EmitDefaultValue = false)]
|
||||
public ClientReferenceDetails ClientReferenceDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DestinationAccessPointDetails
|
||||
/// </summary>
|
||||
[DataMember(Name = "destinationAccessPointDetails", EmitDefaultValue = false)]
|
||||
public AccessPointDetails DestinationAccessPointDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetRatesRequest);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetRatesRequest instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetRatesRequest to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the getRates operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetRatesResponse : IEquatable<GetRatesResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public GetRatesResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetRatesResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetRatesResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetRatesResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetRatesResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the getRates operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetRatesResult : IEquatable<GetRatesResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets RequestToken
|
||||
/// </summary>
|
||||
[DataMember(Name="requestToken", EmitDefaultValue=false)]
|
||||
public string RequestToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Rates
|
||||
/// </summary>
|
||||
[DataMember(Name="rates", EmitDefaultValue=false)]
|
||||
public RateList Rates { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IneligibleRates
|
||||
/// </summary>
|
||||
[DataMember(Name="ineligibleRates", EmitDefaultValue=false)]
|
||||
public IneligibleRateList IneligibleRates { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetRatesResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetRatesResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetRatesResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the the getShipmentDocuments operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetShipmentDocumentsResponse : IEquatable<GetShipmentDocumentsResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetShipmentDocumentsResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="payload">payload.</param>
|
||||
public GetShipmentDocumentsResponse(GetShipmentDocumentsResult payload = default(GetShipmentDocumentsResult))
|
||||
{
|
||||
this.Payload = payload;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public GetShipmentDocumentsResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetShipmentDocumentsResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetShipmentDocumentsResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetShipmentDocumentsResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetShipmentDocumentsResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the getShipmentDocuments operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetShipmentDocumentsResult : IEquatable<GetShipmentDocumentsResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetShipmentDocumentsResult" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected GetShipmentDocumentsResult() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetShipmentDocumentsResult" /> class.
|
||||
/// </summary>
|
||||
/// <param name="shipmentId">shipmentId (required).</param>
|
||||
/// <param name="packageDocumentDetail">packageDocumentDetail (required).</param>
|
||||
/// <param name="benefits">benefits.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipmentId
|
||||
/// </summary>
|
||||
[DataMember(Name="shipmentId", EmitDefaultValue=false)]
|
||||
public ShipmentId ShipmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageDocumentDetail
|
||||
/// </summary>
|
||||
[DataMember(Name="packageDocumentDetail", EmitDefaultValue=false)]
|
||||
public PackageDocumentDetail PackageDocumentDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Benefits
|
||||
/// </summary>
|
||||
[DataMember(Name="benefits", EmitDefaultValue=false)]
|
||||
public Benefits Benefits { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetShipmentDocumentsResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetShipmentDocumentsResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetShipmentDocumentsResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the getTracking operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetTrackingResponse : IEquatable<GetTrackingResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetTrackingResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="payload">payload.</param>
|
||||
public GetTrackingResponse(GetTrackingResult payload = default(GetTrackingResult))
|
||||
{
|
||||
this.Payload = payload;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name="payload", EmitDefaultValue=false)]
|
||||
public GetTrackingResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetTrackingResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetTrackingResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetTrackingResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(GetTrackingResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the getTracking operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class GetTrackingResult : IEquatable<GetTrackingResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetTrackingResult" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
protected GetTrackingResult() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GetTrackingResult" /> class.
|
||||
/// </summary>
|
||||
/// <param name="trackingId">trackingId (required).</param>
|
||||
/// <param name="alternateLegTrackingId">alternateLegTrackingId (required).</param>
|
||||
/// <param name="eventHistory">A list of tracking events. (required).</param>
|
||||
/// <param name="promisedDeliveryDate">The date and time by which the shipment is promised to be delivered. (required).</param>
|
||||
/// <param name="summary">summary (required).</param>
|
||||
public GetTrackingResult(TrackingId trackingId = default(TrackingId), AlternateLegTrackingId alternateLegTrackingId = default(AlternateLegTrackingId), List<Event> eventHistory = default(List<Event>), 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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TrackingId
|
||||
/// </summary>
|
||||
[DataMember(Name="trackingId", EmitDefaultValue=false)]
|
||||
public TrackingId TrackingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AlternateLegTrackingId
|
||||
/// </summary>
|
||||
[DataMember(Name="alternateLegTrackingId", EmitDefaultValue=false)]
|
||||
public AlternateLegTrackingId AlternateLegTrackingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A list of tracking events.
|
||||
/// </summary>
|
||||
/// <value>A list of tracking events.</value>
|
||||
[DataMember(Name="eventHistory", EmitDefaultValue=false)]
|
||||
public List<Event> EventHistory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The date and time by which the shipment is promised to be delivered.
|
||||
/// </summary>
|
||||
/// <value>The date and time by which the shipment is promised to be delivered.</value>
|
||||
[DataMember(Name="promisedDeliveryDate", EmitDefaultValue=false)]
|
||||
public DateTime? PromisedDeliveryDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Summary
|
||||
/// </summary>
|
||||
[DataMember(Name="summary", EmitDefaultValue=false)]
|
||||
public TrackingSummary Summary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as GetTrackingResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if GetTrackingResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of GetTrackingResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of included benefits.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class IncludedBenefits : List<string>, IEquatable<IncludedBenefits>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IncludedBenefits" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public IncludedBenefits() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as IncludedBenefits);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if IncludedBenefits instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of IncludedBenefits to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(IncludedBenefits input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The reason why a shipping service offering is ineligible.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class IneligibilityReason : IEquatable<IneligibilityReason>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Code
|
||||
/// </summary>
|
||||
[DataMember(Name="code", EmitDefaultValue=false)]
|
||||
public IneligibilityReasonCode Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ineligibility reason.
|
||||
/// </summary>
|
||||
/// <value>The ineligibility reason.</value>
|
||||
[DataMember(Name="message", EmitDefaultValue=false)]
|
||||
public string Message { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as IneligibilityReason);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if IneligibilityReason instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of IneligibilityReason to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Reasons that make a shipment service offering ineligible.
|
||||
/// </summary>
|
||||
/// <value>Reasons that make a shipment service offering ineligible.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum IneligibilityReasonCode
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum NOCOVERAGE for value: NO_COVERAGE
|
||||
/// </summary>
|
||||
[EnumMember(Value = "NO_COVERAGE")]
|
||||
NOCOVERAGE = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PICKUPSLOTRESTRICTION for value: PICKUP_SLOT_RESTRICTION
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PICKUP_SLOT_RESTRICTION")]
|
||||
PICKUPSLOTRESTRICTION = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum UNSUPPORTEDVAS for value: UNSUPPORTED_VAS
|
||||
/// </summary>
|
||||
[EnumMember(Value = "UNSUPPORTED_VAS")]
|
||||
UNSUPPORTEDVAS = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum VASCOMBINATIONRESTRICTION for value: VAS_COMBINATION_RESTRICTION
|
||||
/// </summary>
|
||||
[EnumMember(Value = "VAS_COMBINATION_RESTRICTION")]
|
||||
VASCOMBINATIONRESTRICTION = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum SIZERESTRICTIONS for value: SIZE_RESTRICTIONS
|
||||
/// </summary>
|
||||
[EnumMember(Value = "SIZE_RESTRICTIONS")]
|
||||
SIZERESTRICTIONS = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum WEIGHTRESTRICTIONS for value: WEIGHT_RESTRICTIONS
|
||||
/// </summary>
|
||||
[EnumMember(Value = "WEIGHT_RESTRICTIONS")]
|
||||
WEIGHTRESTRICTIONS = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum LATEDELIVERY for value: LATE_DELIVERY
|
||||
/// </summary>
|
||||
[EnumMember(Value = "LATE_DELIVERY")]
|
||||
LATEDELIVERY = 7,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PROGRAMCONSTRAINTS for value: PROGRAM_CONSTRAINTS
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PROGRAM_CONSTRAINTS")]
|
||||
PROGRAMCONSTRAINTS = 8,
|
||||
|
||||
/// <summary>
|
||||
/// Enum TERMSANDCONDITIONSNOTACCEPTED for value: TERMS_AND_CONDITIONS_NOT_ACCEPTED
|
||||
/// </summary>
|
||||
[EnumMember(Value = "TERMS_AND_CONDITIONS_NOT_ACCEPTED")]
|
||||
TERMSANDCONDITIONSNOTACCEPTED = 9,
|
||||
|
||||
/// <summary>
|
||||
/// Enum UNKNOWN for value: UNKNOWN
|
||||
/// </summary>
|
||||
[EnumMember(Value = "UNKNOWN")]
|
||||
UNKNOWN = 10
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Detailed information for an ineligible shipping service offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class IneligibleRate : IEquatable<IneligibleRate>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets ServiceId
|
||||
/// </summary>
|
||||
[DataMember(Name="serviceId", EmitDefaultValue=false)]
|
||||
public string ServiceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServiceName
|
||||
/// </summary>
|
||||
[DataMember(Name="serviceName", EmitDefaultValue=false)]
|
||||
public string ServiceName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CarrierName
|
||||
/// </summary>
|
||||
[DataMember(Name="carrierName", EmitDefaultValue=false)]
|
||||
public string CarrierName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CarrierId
|
||||
/// </summary>
|
||||
[DataMember(Name="carrierId", EmitDefaultValue=false)]
|
||||
public string CarrierId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A list of reasons why a shipping service offering is ineligible.
|
||||
/// </summary>
|
||||
/// <value>A list of reasons why a shipping service offering is ineligible.</value>
|
||||
[DataMember(Name="ineligibilityReasons", EmitDefaultValue=false)]
|
||||
public List<IneligibilityReason> IneligibilityReasons { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as IneligibleRate);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if IneligibleRate instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of IneligibleRate to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of ineligible shipping service offerings.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class IneligibleRateList : List<IneligibleRate>, IEquatable<IneligibleRateList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IneligibleRateList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public IneligibleRateList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as IneligibleRateList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if IneligibleRateList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of IneligibleRateList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(IneligibleRateList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The invoice details for charges associated with the goods in the package. Only applies to certain regions.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class InvoiceDetails : IEquatable<InvoiceDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The invoice number of the item.
|
||||
/// </summary>
|
||||
/// <value>The invoice number of the item.</value>
|
||||
[DataMember(Name="invoiceNumber", EmitDefaultValue=false)]
|
||||
public string InvoiceNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The invoice date of the item in ISO 8061 format.
|
||||
/// </summary>
|
||||
/// <value>The invoice date of the item in ISO 8061 format.</value>
|
||||
[DataMember(Name="invoiceDate", EmitDefaultValue=false)]
|
||||
public DateTime? InvoiceDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as InvoiceDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if InvoiceDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of InvoiceDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// An item in a package.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Item : IEquatable<Item>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets ItemValue
|
||||
/// </summary>
|
||||
[DataMember(Name="itemValue", EmitDefaultValue=false)]
|
||||
public Currency ItemValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The product description of the item.
|
||||
/// </summary>
|
||||
/// <value>The product description of the item.</value>
|
||||
[DataMember(Name="description", EmitDefaultValue=false)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A unique identifier for an item provided by the client.
|
||||
/// </summary>
|
||||
/// <value>A unique identifier for an item provided by the client.</value>
|
||||
[DataMember(Name="itemIdentifier", EmitDefaultValue=false)]
|
||||
public string ItemIdentifier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of units. This value is required.
|
||||
/// </summary>
|
||||
/// <value>The number of units. This value is required.</value>
|
||||
[DataMember(Name="quantity", EmitDefaultValue=false)]
|
||||
public int? Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Weight
|
||||
/// </summary>
|
||||
[DataMember(Name="weight", EmitDefaultValue=false)]
|
||||
public Weight Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LiquidVolume
|
||||
/// </summary>
|
||||
[DataMember(Name="liquidVolume", EmitDefaultValue=false)]
|
||||
public LiquidVolume LiquidVolume { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When true, the item qualifies as hazardous materials (hazmat). Defaults to false.
|
||||
/// </summary>
|
||||
/// <value>When true, the item qualifies as hazardous materials (hazmat). Defaults to false.</value>
|
||||
[DataMember(Name="isHazmat", EmitDefaultValue=false)]
|
||||
public bool? IsHazmat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DangerousGoodsDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="dangerousGoodsDetails", EmitDefaultValue=false)]
|
||||
public DangerousGoodsDetails DangerousGoodsDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The product type of the item.
|
||||
/// </summary>
|
||||
/// <value>The product type of the item.</value>
|
||||
[DataMember(Name="productType", EmitDefaultValue=false)]
|
||||
public string ProductType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets InvoiceDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="invoiceDetails", EmitDefaultValue=false)]
|
||||
public InvoiceDetails InvoiceDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
/// <value>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.</value>
|
||||
[DataMember(Name="serialNumbers", EmitDefaultValue=false)]
|
||||
public List<string> SerialNumbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DirectFulfillmentItemIdentifiers
|
||||
/// </summary>
|
||||
[DataMember(Name="directFulfillmentItemIdentifiers", EmitDefaultValue=false)]
|
||||
public DirectFulfillmentItemIdentifiers DirectFulfillmentItemIdentifiers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Item instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Item to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of items.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class ItemList : List<Item>, IEquatable<ItemList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ItemList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public ItemList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as ItemList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if ItemList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of ItemList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(ItemList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// Liquid Volume.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class LiquidVolume : IEquatable<LiquidVolume>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[DataMember(Name = "unit", EmitDefaultValue = false)]
|
||||
public LiquidVolumeUnitEnum Unit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The measurement value.
|
||||
/// </summary>
|
||||
/// <value>The measurement value.</value>
|
||||
[DataMember(Name = "value", EmitDefaultValue = false)]
|
||||
public decimal? Value { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as LiquidVolume);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if LiquidVolume instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of LiquidVolume to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The unit of measurement.
|
||||
/// </summary>
|
||||
/// <value>The unit of measurement.</value>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum LiquidVolumeUnitEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum ML for value: ML
|
||||
/// </summary>
|
||||
[EnumMember(Value = "ML")] ML = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum L for value: L
|
||||
/// </summary>
|
||||
[EnumMember(Value = "L")] L = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum FLOZ for value: FL_OZ
|
||||
/// </summary>
|
||||
[EnumMember(Value = "FL_OZ")] FLOZ = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Enum GAL for value: GAL
|
||||
/// </summary>
|
||||
[EnumMember(Value = "GAL")] GAL = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Enum PT for value: PT
|
||||
/// </summary>
|
||||
[EnumMember(Value = "PT")] PT = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Enum QT for value: QT
|
||||
/// </summary>
|
||||
[EnumMember(Value = "QT")] QT = 6,
|
||||
|
||||
/// <summary>
|
||||
/// Enum C for value: C
|
||||
/// </summary>
|
||||
[EnumMember(Value = "C")] C = 7
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The location where the person, business or institution is located.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Location : IEquatable<Location>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Location" /> class.
|
||||
/// </summary>
|
||||
/// <param name="stateOrRegion">stateOrRegion.</param>
|
||||
/// <param name="city">city.</param>
|
||||
/// <param name="countryCode">countryCode.</param>
|
||||
/// <param name="postalCode">postalCode.</param>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets StateOrRegion
|
||||
/// </summary>
|
||||
[DataMember(Name="stateOrRegion", EmitDefaultValue=false)]
|
||||
public StateOrRegion StateOrRegion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets City
|
||||
/// </summary>
|
||||
[DataMember(Name="city", EmitDefaultValue=false)]
|
||||
public City City { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CountryCode
|
||||
/// </summary>
|
||||
[DataMember(Name="countryCode", EmitDefaultValue=false)]
|
||||
public CountryCode CountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PostalCode
|
||||
/// </summary>
|
||||
[DataMember(Name="postalCode", EmitDefaultValue=false)]
|
||||
public PostalCode PostalCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Location);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Location instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Location to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The type of NDR action shipper wants to take for a particular shipment.
|
||||
/// </summary>
|
||||
/// <value>The type of NDR action shipper wants to take for a particular shipment.</value>
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
public enum NdrAction
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum RESCHEDULE for value: RESCHEDULE
|
||||
/// </summary>
|
||||
[EnumMember(Value = "RESCHEDULE")]
|
||||
RESCHEDULE = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Enum REATTEMPT for value: REATTEMPT
|
||||
/// </summary>
|
||||
[EnumMember(Value = "REATTEMPT")]
|
||||
REATTEMPT = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Enum RTO for value: RTO
|
||||
/// </summary>
|
||||
[EnumMember(Value = "RTO")]
|
||||
RTO = 3
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class NdrRequestData : IEquatable<NdrRequestData>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NdrRequestData" /> class.
|
||||
/// </summary>
|
||||
/// <param name="rescheduleDate">The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format.</param>
|
||||
/// <param name="additionalAddressNotes">additionalAddressNotes.</param>
|
||||
public NdrRequestData(DateTime? rescheduleDate = default(DateTime?), AdditionalAddressNotes additionalAddressNotes = default(AdditionalAddressNotes))
|
||||
{
|
||||
this.RescheduleDate = rescheduleDate;
|
||||
this.AdditionalAddressNotes = additionalAddressNotes;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format
|
||||
/// </summary>
|
||||
/// <value>The date on which the Seller wants to reschedule shipment delivery, in ISO-8601 date/time format</value>
|
||||
[DataMember(Name="rescheduleDate", EmitDefaultValue=false)]
|
||||
public DateTime? RescheduleDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AdditionalAddressNotes
|
||||
/// </summary>
|
||||
[DataMember(Name="additionalAddressNotes", EmitDefaultValue=false)]
|
||||
public AdditionalAddressNotes AdditionalAddressNotes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as NdrRequestData);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if NdrRequestData instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of NdrRequestData to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// When true, files should be stitched together. Otherwise, files should be returned separately. Defaults to false.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class NeedFileJoining : IEquatable<NeedFileJoining>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NeedFileJoining" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public NeedFileJoining()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class NeedFileJoining {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as NeedFileJoining);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if NeedFileJoining instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of NeedFileJoining to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(NeedFileJoining input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The request schema for the OneClickShipment operation. When the channelType is not Amazon, shipTo is required and when channelType is Amazon shipTo is ignored.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OneClickShipmentRequest : IEquatable<OneClickShipmentRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The ship to address.
|
||||
/// </summary>
|
||||
/// <value>The ship to address.</value>
|
||||
[DataMember(Name="shipTo", EmitDefaultValue=false)]
|
||||
public Address ShipTo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ship from address.
|
||||
/// </summary>
|
||||
/// <value>The ship from address.</value>
|
||||
[DataMember(Name="shipFrom", EmitDefaultValue=false)]
|
||||
public Address ShipFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The return to address.
|
||||
/// </summary>
|
||||
/// <value>The return to address.</value>
|
||||
[DataMember(Name="returnTo", EmitDefaultValue=false)]
|
||||
public Address ReturnTo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The ship date and time (the requested pickup). This defaults to the current date and time.
|
||||
/// </summary>
|
||||
/// <value>The ship date and time (the requested pickup). This defaults to the current date and time.</value>
|
||||
[DataMember(Name="shipDate", EmitDefaultValue=false)]
|
||||
public DateTime? ShipDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Packages
|
||||
/// </summary>
|
||||
[DataMember(Name="packages", EmitDefaultValue=false)]
|
||||
public PackageList Packages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ValueAddedServicesDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="valueAddedServicesDetails", EmitDefaultValue=false)]
|
||||
public OneClickShipmentValueAddedServiceDetails ValueAddedServicesDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TaxDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="taxDetails", EmitDefaultValue=false)]
|
||||
public TaxDetailList TaxDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ChannelDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="channelDetails", EmitDefaultValue=false)]
|
||||
public ChannelDetails ChannelDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LabelSpecifications
|
||||
/// </summary>
|
||||
[DataMember(Name="labelSpecifications", EmitDefaultValue=false)]
|
||||
public RequestedDocumentSpecification LabelSpecifications { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServiceSelection
|
||||
/// </summary>
|
||||
[DataMember(Name="serviceSelection", EmitDefaultValue=false)]
|
||||
public ServiceSelection ServiceSelection { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional field for shipper instruction.
|
||||
/// </summary>
|
||||
/// <value>Optional field for shipper instruction.</value>
|
||||
[DataMember(Name="shipperInstruction", EmitDefaultValue=false)]
|
||||
public ShipperInstruction ShipperInstruction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DestinationAccessPointDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="destinationAccessPointDetails", EmitDefaultValue=false)]
|
||||
public AccessPointDetails DestinationAccessPointDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OneClickShipmentRequest);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OneClickShipmentRequest instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OneClickShipmentRequest to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The response schema for the OneClickShipment operation.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OneClickShipmentResponse : IEquatable<OneClickShipmentResponse>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Payload
|
||||
/// </summary>
|
||||
[DataMember(Name = "payload", EmitDefaultValue = false)]
|
||||
public OneClickShipmentResult Payload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OneClickShipmentResponse);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OneClickShipmentResponse instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OneClickShipmentResponse to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(OneClickShipmentResponse input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return
|
||||
(
|
||||
this.Payload == input.Payload ||
|
||||
(this.Payload != null &&
|
||||
this.Payload.Equals(input.Payload))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The payload for the OneClickShipment API.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OneClickShipmentResult : IEquatable<OneClickShipmentResult>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets ShipmentId
|
||||
/// </summary>
|
||||
[DataMember(Name="shipmentId", EmitDefaultValue=false)]
|
||||
public string ShipmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageDocumentDetails
|
||||
/// </summary>
|
||||
[DataMember(Name="packageDocumentDetails", EmitDefaultValue=false)]
|
||||
public PackageDocumentDetailList PackageDocumentDetails { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Promise
|
||||
/// </summary>
|
||||
[DataMember(Name="promise", EmitDefaultValue=false)]
|
||||
public Promise Promise { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Carrier
|
||||
/// </summary>
|
||||
[DataMember(Name="carrier", EmitDefaultValue=false)]
|
||||
public Carrier Carrier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Service
|
||||
/// </summary>
|
||||
[DataMember(Name="service", EmitDefaultValue=false)]
|
||||
public Service Service { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TotalCharge
|
||||
/// </summary>
|
||||
[DataMember(Name="totalCharge", EmitDefaultValue=false)]
|
||||
public Currency TotalCharge { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OneClickShipmentResult);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OneClickShipmentResult instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OneClickShipmentResult to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A value-added service to be applied to a shipping service purchase.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OneClickShipmentValueAddedService : IEquatable<OneClickShipmentValueAddedService>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// The identifier of the selected value-added service.
|
||||
/// </summary>
|
||||
/// <value>The identifier of the selected value-added service.</value>
|
||||
[DataMember(Name="id", EmitDefaultValue=false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Amount
|
||||
/// </summary>
|
||||
[DataMember(Name="amount", EmitDefaultValue=false)]
|
||||
public Currency Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OneClickShipmentValueAddedService);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OneClickShipmentValueAddedService instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OneClickShipmentValueAddedService to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The value-added services to be added to a shipping service purchase.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OneClickShipmentValueAddedServiceDetails : List<OneClickShipmentValueAddedService>, IEquatable<OneClickShipmentValueAddedServiceDetails>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OneClickShipmentValueAddedServiceDetails" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public OneClickShipmentValueAddedServiceDetails() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OneClickShipmentValueAddedServiceDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OneClickShipmentValueAddedServiceDetails instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OneClickShipmentValueAddedServiceDetails to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(OneClickShipmentValueAddedServiceDetails input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The hours in which the access point shall remain operational
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class OperatingHours : IEquatable<OperatingHours>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="OperatingHours" /> class.
|
||||
/// </summary>
|
||||
/// <param name="closingTime">closingTime.</param>
|
||||
/// <param name="openingTime">openingTime.</param>
|
||||
/// <param name="midDayClosures">midDayClosures.</param>
|
||||
public OperatingHours(TimeOfDay closingTime = default(TimeOfDay), TimeOfDay openingTime = default(TimeOfDay), List<TimeOfDay> midDayClosures = default(List<TimeOfDay>))
|
||||
{
|
||||
this.ClosingTime = closingTime;
|
||||
this.OpeningTime = openingTime;
|
||||
this.MidDayClosures = midDayClosures;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClosingTime
|
||||
/// </summary>
|
||||
[DataMember(Name="closingTime", EmitDefaultValue=false)]
|
||||
public TimeOfDay ClosingTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OpeningTime
|
||||
/// </summary>
|
||||
[DataMember(Name="openingTime", EmitDefaultValue=false)]
|
||||
public TimeOfDay OpeningTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MidDayClosures
|
||||
/// </summary>
|
||||
[DataMember(Name="midDayClosures", EmitDefaultValue=false)]
|
||||
public List<TimeOfDay> MidDayClosures { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as OperatingHours);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if OperatingHours instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of OperatingHours to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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)
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A package to be shipped through a shipping service offering.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class Package : IEquatable<Package>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Dimensions
|
||||
/// </summary>
|
||||
[DataMember(Name="dimensions", EmitDefaultValue=false)]
|
||||
public Dimensions Dimensions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Weight
|
||||
/// </summary>
|
||||
[DataMember(Name="weight", EmitDefaultValue=false)]
|
||||
public Weight Weight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets InsuredValue
|
||||
/// </summary>
|
||||
[DataMember(Name="insuredValue", EmitDefaultValue=false)]
|
||||
public Currency InsuredValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When true, the package contains hazardous materials. Defaults to false.
|
||||
/// </summary>
|
||||
/// <value>When true, the package contains hazardous materials. Defaults to false.</value>
|
||||
[DataMember(Name="isHazmat", EmitDefaultValue=false)]
|
||||
public bool? IsHazmat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The seller name displayed on the label.
|
||||
/// </summary>
|
||||
/// <value>The seller name displayed on the label.</value>
|
||||
[DataMember(Name="sellerDisplayName", EmitDefaultValue=false)]
|
||||
public string SellerDisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Charges
|
||||
/// </summary>
|
||||
[DataMember(Name="charges", EmitDefaultValue=false)]
|
||||
public ChargeList Charges { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageClientReferenceId
|
||||
/// </summary>
|
||||
[DataMember(Name="packageClientReferenceId", EmitDefaultValue=false)]
|
||||
public string PackageClientReferenceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Items
|
||||
/// </summary>
|
||||
[DataMember(Name="items", EmitDefaultValue=false)]
|
||||
public ItemList Items { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Package);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if Package instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Package to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class PackageClientReferenceId : IEquatable<PackageClientReferenceId>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PackageClientReferenceId" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public PackageClientReferenceId()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
var sb = new StringBuilder();
|
||||
sb.Append("class PackageClientReferenceId {\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as PackageClientReferenceId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if PackageClientReferenceId instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of PackageClientReferenceId to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(PackageClientReferenceId input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A document related to a package.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class PackageDocument : IEquatable<PackageDocument>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name="type", EmitDefaultValue=false)]
|
||||
public DocumentType Type { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets Format
|
||||
/// </summary>
|
||||
[DataMember(Name="format", EmitDefaultValue=false)]
|
||||
public DocumentFormat Format { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Contents
|
||||
/// </summary>
|
||||
[DataMember(Name="contents", EmitDefaultValue=false)]
|
||||
public string Contents { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as PackageDocument);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if PackageDocument instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of PackageDocument to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// The post-purchase details of a package that will be shipped using a shipping service.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class PackageDocumentDetail : IEquatable<PackageDocumentDetail>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageClientReferenceId
|
||||
/// </summary>
|
||||
[DataMember(Name = "packageClientReferenceId", EmitDefaultValue = false)]
|
||||
public string PackageClientReferenceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageDocuments
|
||||
/// </summary>
|
||||
[DataMember(Name = "packageDocuments", EmitDefaultValue = false)]
|
||||
public PackageDocumentList PackageDocuments { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TrackingId
|
||||
/// </summary>
|
||||
[DataMember(Name = "trackingId", EmitDefaultValue = false)]
|
||||
public string TrackingId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as PackageDocumentDetail);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if PackageDocumentDetail instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of PackageDocumentDetail to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
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))
|
||||
);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(
|
||||
ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of post-purchase details about a package that will be shipped using a shipping service.
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public partial class PackageDocumentDetailList : List<PackageDocumentDetail>, IEquatable<PackageDocumentDetailList>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PackageDocumentDetailList" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructor]
|
||||
public PackageDocumentDetailList() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
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();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
{
|
||||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as PackageDocumentDetailList);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if PackageDocumentDetailList instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of PackageDocumentDetailList to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(PackageDocumentDetailList input)
|
||||
{
|
||||
if (input == null)
|
||||
return false;
|
||||
|
||||
return base.Equals(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue