|
| 1 | +/* |
| 2 | + * Selling Partner API for Direct Fulfillment Orders |
| 3 | + * |
| 4 | + * The Selling Partner API for Direct Fulfillment Orders provides programmatic access to a direct fulfillment vendor's order data. |
| 5 | + * |
| 6 | + * OpenAPI spec version: v1 |
| 7 | + * |
| 8 | + * Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 9 | + */ |
| 10 | + |
| 11 | +using System; |
| 12 | +using System.Linq; |
| 13 | +using System.IO; |
| 14 | +using System.Text; |
| 15 | +using System.Text.RegularExpressions; |
| 16 | +using System.Collections; |
| 17 | +using System.Collections.Generic; |
| 18 | +using System.Collections.ObjectModel; |
| 19 | +using System.Runtime.Serialization; |
| 20 | +using Newtonsoft.Json; |
| 21 | +using Newtonsoft.Json.Converters; |
| 22 | +using System.ComponentModel.DataAnnotations; |
| 23 | + |
| 24 | +namespace FikaAmazonAPI.AmazonSpApiSDK.Models.VendorDirectFulfillmentOrders |
| 25 | +{ |
| 26 | + /// <summary> |
| 27 | + /// Status of acknowledgement. |
| 28 | + /// </summary> |
| 29 | + [DataContract] |
| 30 | + public partial class AcknowledgementStatus : IEquatable<AcknowledgementStatus>, IValidatableObject |
| 31 | + { |
| 32 | + /// <summary> |
| 33 | + /// Initializes a new instance of the <see cref="AcknowledgementStatus" /> class. |
| 34 | + /// </summary> |
| 35 | + /// <param name="code">Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide..</param> |
| 36 | + /// <param name="description">Reason for the acknowledgement code..</param> |
| 37 | + public AcknowledgementStatus(string code = default(string), string description = default(string)) |
| 38 | + { |
| 39 | + this.Code = code; |
| 40 | + this.Description = description; |
| 41 | + } |
| 42 | + |
| 43 | + /// <summary> |
| 44 | + /// Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide. |
| 45 | + /// </summary> |
| 46 | + /// <value>Acknowledgement code is a unique two digit value which indicates the status of the acknowledgement. For a list of acknowledgement codes that Amazon supports, see the Vendor Direct Fulfillment APIs Use Case Guide.</value> |
| 47 | + [DataMember(Name="code", EmitDefaultValue=false)] |
| 48 | + public string Code { get; set; } |
| 49 | + |
| 50 | + /// <summary> |
| 51 | + /// Reason for the acknowledgement code. |
| 52 | + /// </summary> |
| 53 | + /// <value>Reason for the acknowledgement code.</value> |
| 54 | + [DataMember(Name="description", EmitDefaultValue=false)] |
| 55 | + public string Description { get; set; } |
| 56 | + |
| 57 | + /// <summary> |
| 58 | + /// Returns the string presentation of the object |
| 59 | + /// </summary> |
| 60 | + /// <returns>String presentation of the object</returns> |
| 61 | + public override string ToString() |
| 62 | + { |
| 63 | + var sb = new StringBuilder(); |
| 64 | + sb.Append("class AcknowledgementStatus {\n"); |
| 65 | + sb.Append(" Code: ").Append(Code).Append("\n"); |
| 66 | + sb.Append(" Description: ").Append(Description).Append("\n"); |
| 67 | + sb.Append("}\n"); |
| 68 | + return sb.ToString(); |
| 69 | + } |
| 70 | + |
| 71 | + /// <summary> |
| 72 | + /// Returns the JSON string presentation of the object |
| 73 | + /// </summary> |
| 74 | + /// <returns>JSON string presentation of the object</returns> |
| 75 | + public virtual string ToJson() |
| 76 | + { |
| 77 | + return JsonConvert.SerializeObject(this, Formatting.Indented); |
| 78 | + } |
| 79 | + |
| 80 | + /// <summary> |
| 81 | + /// Returns true if objects are equal |
| 82 | + /// </summary> |
| 83 | + /// <param name="input">Object to be compared</param> |
| 84 | + /// <returns>Boolean</returns> |
| 85 | + public override bool Equals(object input) |
| 86 | + { |
| 87 | + return this.Equals(input as AcknowledgementStatus); |
| 88 | + } |
| 89 | + |
| 90 | + /// <summary> |
| 91 | + /// Returns true if AcknowledgementStatus instances are equal |
| 92 | + /// </summary> |
| 93 | + /// <param name="input">Instance of AcknowledgementStatus to be compared</param> |
| 94 | + /// <returns>Boolean</returns> |
| 95 | + public bool Equals(AcknowledgementStatus input) |
| 96 | + { |
| 97 | + if (input == null) |
| 98 | + return false; |
| 99 | + |
| 100 | + return |
| 101 | + ( |
| 102 | + this.Code == input.Code || |
| 103 | + (this.Code != null && |
| 104 | + this.Code.Equals(input.Code)) |
| 105 | + ) && |
| 106 | + ( |
| 107 | + this.Description == input.Description || |
| 108 | + (this.Description != null && |
| 109 | + this.Description.Equals(input.Description)) |
| 110 | + ); |
| 111 | + } |
| 112 | + |
| 113 | + /// <summary> |
| 114 | + /// Gets the hash code |
| 115 | + /// </summary> |
| 116 | + /// <returns>Hash code</returns> |
| 117 | + public override int GetHashCode() |
| 118 | + { |
| 119 | + unchecked // Overflow is fine, just wrap |
| 120 | + { |
| 121 | + int hashCode = 41; |
| 122 | + if (this.Code != null) |
| 123 | + hashCode = hashCode * 59 + this.Code.GetHashCode(); |
| 124 | + if (this.Description != null) |
| 125 | + hashCode = hashCode * 59 + this.Description.GetHashCode(); |
| 126 | + return hashCode; |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | + /// <summary> |
| 131 | + /// To validate all properties of the instance |
| 132 | + /// </summary> |
| 133 | + /// <param name="validationContext">Validation context</param> |
| 134 | + /// <returns>Validation Result</returns> |
| 135 | + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
| 136 | + { |
| 137 | + yield break; |
| 138 | + } |
| 139 | + } |
| 140 | + |
| 141 | +} |
0 commit comments