/* * 后台API * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: Admin * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel.DataAnnotations; using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; namespace IO.Swagger.Model { /// /// 出库单 /// [DataContract] public partial class OutStockOrderResp : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 出库单号. /// 出库仓库名称. /// 出库仓库编码. /// 新店铺编码. /// 旧编码不一定存在. /// 店铺名称. /// 签字时间. /// 出库商品明细. public OutStockOrderResp(string outStockOrderNo = default(string), string outStoreName = default(string), string outStoreCode = default(string), string shopCode = default(string), string oldShopCode = default(string), string shopName = default(string), DateTime? signTime = default(DateTime?), List listGoods = default(List)) { this.OutStockOrderNo = outStockOrderNo; this.OutStoreName = outStoreName; this.OutStoreCode = outStoreCode; this.ShopCode = shopCode; this.OldShopCode = oldShopCode; this.ShopName = shopName; this.SignTime = signTime; this.ListGoods = listGoods; } /// /// 出库单号 /// /// 出库单号 [DataMember(Name="outStockOrderNo", EmitDefaultValue=false)] public string OutStockOrderNo { get; set; } /// /// 出库仓库名称 /// /// 出库仓库名称 [DataMember(Name="outStoreName", EmitDefaultValue=false)] public string OutStoreName { get; set; } /// /// 出库仓库编码 /// /// 出库仓库编码 [DataMember(Name="outStoreCode", EmitDefaultValue=false)] public string OutStoreCode { get; set; } /// /// 新店铺编码 /// /// 新店铺编码 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { get; set; } /// /// 旧编码不一定存在 /// /// 旧编码不一定存在 [DataMember(Name="oldShopCode", EmitDefaultValue=false)] public string OldShopCode { get; set; } /// /// 店铺名称 /// /// 店铺名称 [DataMember(Name="shopName", EmitDefaultValue=false)] public string ShopName { get; set; } /// /// 签字时间 /// /// 签字时间 [DataMember(Name="signTime", EmitDefaultValue=false)] public DateTime? SignTime { get; set; } /// /// 出库商品明细 /// /// 出库商品明细 [DataMember(Name="listGoods", EmitDefaultValue=false)] public List ListGoods { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class OutStockOrderResp {\n"); sb.Append(" OutStockOrderNo: ").Append(OutStockOrderNo).Append("\n"); sb.Append(" OutStoreName: ").Append(OutStoreName).Append("\n"); sb.Append(" OutStoreCode: ").Append(OutStoreCode).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).Append("\n"); sb.Append(" OldShopCode: ").Append(OldShopCode).Append("\n"); sb.Append(" ShopName: ").Append(ShopName).Append("\n"); sb.Append(" SignTime: ").Append(SignTime).Append("\n"); sb.Append(" ListGoods: ").Append(ListGoods).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// /// Returns true if objects are equal /// /// Object to be compared /// Boolean public override bool Equals(object input) { return this.Equals(input as OutStockOrderResp); } /// /// Returns true if OutStockOrderResp instances are equal /// /// Instance of OutStockOrderResp to be compared /// Boolean public bool Equals(OutStockOrderResp input) { if (input == null) return false; return ( this.OutStockOrderNo == input.OutStockOrderNo || (this.OutStockOrderNo != null && this.OutStockOrderNo.Equals(input.OutStockOrderNo)) ) && ( this.OutStoreName == input.OutStoreName || (this.OutStoreName != null && this.OutStoreName.Equals(input.OutStoreName)) ) && ( this.OutStoreCode == input.OutStoreCode || (this.OutStoreCode != null && this.OutStoreCode.Equals(input.OutStoreCode)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ) && ( this.OldShopCode == input.OldShopCode || (this.OldShopCode != null && this.OldShopCode.Equals(input.OldShopCode)) ) && ( this.ShopName == input.ShopName || (this.ShopName != null && this.ShopName.Equals(input.ShopName)) ) && ( this.SignTime == input.SignTime || (this.SignTime != null && this.SignTime.Equals(input.SignTime)) ) && ( this.ListGoods == input.ListGoods || this.ListGoods != null && this.ListGoods.SequenceEqual(input.ListGoods) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.OutStockOrderNo != null) hashCode = hashCode * 59 + this.OutStockOrderNo.GetHashCode(); if (this.OutStoreName != null) hashCode = hashCode * 59 + this.OutStoreName.GetHashCode(); if (this.OutStoreCode != null) hashCode = hashCode * 59 + this.OutStoreCode.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); if (this.OldShopCode != null) hashCode = hashCode * 59 + this.OldShopCode.GetHashCode(); if (this.ShopName != null) hashCode = hashCode * 59 + this.ShopName.GetHashCode(); if (this.SignTime != null) hashCode = hashCode * 59 + this.SignTime.GetHashCode(); if (this.ListGoods != null) hashCode = hashCode * 59 + this.ListGoods.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }