You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
5.1 KiB
C#
137 lines
5.1 KiB
C#
5 months ago
|
/*
|
||
|
* 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;
|
||
|
}
|
||
|
}
|
||
|
}
|