|
| 1 | +/* |
| 2 | + * Selling Partner API for FBA Inventory |
| 3 | + * |
| 4 | + * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. |
| 5 | + * |
| 6 | + * OpenAPI spec version: v1 |
| 7 | + * |
| 8 | + * Generated by: https://github.com/swagger-api/swagger-codegen.git |
| 9 | + */ |
| 10 | + |
| 11 | +using Newtonsoft.Json; |
| 12 | +using System; |
| 13 | +using System.Collections.Generic; |
| 14 | +using System.ComponentModel.DataAnnotations; |
| 15 | +using System.Runtime.Serialization; |
| 16 | +using System.Text; |
| 17 | + |
| 18 | +namespace FikaAmazonAPI.AmazonSpApiSDK.Models.FbaInventory |
| 19 | +{ |
| 20 | + /// <summary> |
| 21 | + /// The quantity of reserved inventory. |
| 22 | + /// </summary> |
| 23 | + [DataContract] |
| 24 | + public partial class FutureSupplyQuantity : IEquatable<FutureSupplyQuantity>, IValidatableObject |
| 25 | + { |
| 26 | + /// <summary> |
| 27 | + /// Initializes a new instance of the <see cref="FutureSupplyQuantity" /> class. |
| 28 | + /// </summary> |
| 29 | + /// <param name="ReservedFutureSupplyQuantity">The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes..</param> |
| 30 | + /// <param name="FutureSupplyBuyableQuantity">The number of units reserved for customer orders..</param> |
| 31 | + public FutureSupplyQuantity(int? ReservedFutureSupplyQuantity = default(int?), int? FutureSupplyBuyableQuantity = default(int?)) |
| 32 | + { |
| 33 | + this.ReservedFutureSupplyQuantity = ReservedFutureSupplyQuantity; |
| 34 | + this.FutureSupplyBuyableQuantity = FutureSupplyBuyableQuantity; |
| 35 | + } |
| 36 | + |
| 37 | + /// <summary> |
| 38 | + /// The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes. |
| 39 | + /// </summary> |
| 40 | + /// <value>The total number of units in Amazon's fulfillment network that are currently being picked, packed, and shipped; or are sidelined for measurement, sampling, or other internal processes.</value> |
| 41 | + [DataMember(Name = "reservedFutureSupplyQuantity", EmitDefaultValue = false)] |
| 42 | + public int? ReservedFutureSupplyQuantity { get; set; } |
| 43 | + |
| 44 | + /// <summary> |
| 45 | + /// The number of units reserved for customer orders. |
| 46 | + /// </summary> |
| 47 | + /// <value>The number of units reserved for customer orders.</value> |
| 48 | + [DataMember(Name = "futureSupplyBuyableQuantity", EmitDefaultValue = false)] |
| 49 | + public int? FutureSupplyBuyableQuantity { get; set; } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// Returns the string presentation of the object |
| 53 | + /// </summary> |
| 54 | + /// <returns>String presentation of the object</returns> |
| 55 | + public override string ToString() |
| 56 | + { |
| 57 | + var sb = new StringBuilder(); |
| 58 | + sb.Append("class FutureSupplyQuantity {\n"); |
| 59 | + sb.Append(" ReservedFutureSupplyQuantity: ").Append(ReservedFutureSupplyQuantity).Append("\n"); |
| 60 | + sb.Append(" FutureSupplyBuyableQuantity: ").Append(FutureSupplyBuyableQuantity).Append("\n"); |
| 61 | + sb.Append("}\n"); |
| 62 | + return sb.ToString(); |
| 63 | + } |
| 64 | + |
| 65 | + /// <summary> |
| 66 | + /// Returns the JSON string presentation of the object |
| 67 | + /// </summary> |
| 68 | + /// <returns>JSON string presentation of the object</returns> |
| 69 | + public string ToJson() |
| 70 | + { |
| 71 | + return JsonConvert.SerializeObject(this, Formatting.Indented); |
| 72 | + } |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// Returns true if objects are equal |
| 76 | + /// </summary> |
| 77 | + /// <param name="input">Object to be compared</param> |
| 78 | + /// <returns>Boolean</returns> |
| 79 | + public override bool Equals(object input) |
| 80 | + { |
| 81 | + return this.Equals(input as FutureSupplyQuantity); |
| 82 | + } |
| 83 | + |
| 84 | + /// <summary> |
| 85 | + /// Returns true if FutureSupplyQuantity instances are equal |
| 86 | + /// </summary> |
| 87 | + /// <param name="input">Instance of FutureSupplyQuantity to be compared</param> |
| 88 | + /// <returns>Boolean</returns> |
| 89 | + public bool Equals(FutureSupplyQuantity input) |
| 90 | + { |
| 91 | + if (input == null) |
| 92 | + return false; |
| 93 | + |
| 94 | + return |
| 95 | + ( |
| 96 | + this.ReservedFutureSupplyQuantity == input.ReservedFutureSupplyQuantity || |
| 97 | + (this.ReservedFutureSupplyQuantity != null && |
| 98 | + this.ReservedFutureSupplyQuantity.Equals(input.ReservedFutureSupplyQuantity)) |
| 99 | + ) && |
| 100 | + ( |
| 101 | + this.FutureSupplyBuyableQuantity == input.FutureSupplyBuyableQuantity || |
| 102 | + (this.FutureSupplyBuyableQuantity != null && |
| 103 | + this.FutureSupplyBuyableQuantity.Equals(input.FutureSupplyBuyableQuantity)) |
| 104 | + ); |
| 105 | + } |
| 106 | + |
| 107 | + /// <summary> |
| 108 | + /// Gets the hash code |
| 109 | + /// </summary> |
| 110 | + /// <returns>Hash code</returns> |
| 111 | + public override int GetHashCode() |
| 112 | + { |
| 113 | + unchecked // Overflow is fine, just wrap |
| 114 | + { |
| 115 | + int hashCode = 41; |
| 116 | + if (this.ReservedFutureSupplyQuantity != null) |
| 117 | + hashCode = hashCode * 59 + this.ReservedFutureSupplyQuantity.GetHashCode(); |
| 118 | + if (this.FutureSupplyBuyableQuantity != null) |
| 119 | + hashCode = hashCode * 59 + this.FutureSupplyBuyableQuantity.GetHashCode(); |
| 120 | + return hashCode; |
| 121 | + } |
| 122 | + } |
| 123 | + |
| 124 | + /// <summary> |
| 125 | + /// To validate all properties of the instance |
| 126 | + /// </summary> |
| 127 | + /// <param name="validationContext">Validation context</param> |
| 128 | + /// <returns>Validation Result</returns> |
| 129 | + IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) |
| 130 | + { |
| 131 | + yield break; |
| 132 | + } |
| 133 | + } |
| 134 | + |
| 135 | +} |
0 commit comments