/* * 后台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 { /// /// StockAct /// [DataContract] public partial class StockAct : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库. /// 店铺编码,传店铺编码-系统会自动拿NC仓库. /// 备注. /// 单据日期. /// 订单号. /// 数量. public StockAct(int? type = default(int?), string shopCode = default(string), string remark = default(string), DateTime? createTime = default(DateTime?), string orderNo = default(string), List listGoods = default(List)) { this.Type = type; this.ShopCode = shopCode; this.Remark = remark; this.CreateTime = createTime; this.OrderNo = orderNo; this.ListGoods = listGoods; } /// /// 类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库 /// /// 类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库 [DataMember(Name="type", EmitDefaultValue=false)] public int? Type { get; set; } /// /// 店铺编码,传店铺编码-系统会自动拿NC仓库 /// /// 店铺编码,传店铺编码-系统会自动拿NC仓库 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { get; set; } /// /// 备注 /// /// 备注 [DataMember(Name="remark", EmitDefaultValue=false)] public string Remark { get; set; } /// /// 单据日期 /// /// 单据日期 [DataMember(Name="createTime", EmitDefaultValue=false)] public DateTime? CreateTime { get; set; } /// /// 订单号 /// /// 订单号 [DataMember(Name="orderNo", EmitDefaultValue=false)] public string OrderNo { 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 StockAct {\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).Append("\n"); sb.Append(" Remark: ").Append(Remark).Append("\n"); sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); sb.Append(" OrderNo: ").Append(OrderNo).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 StockAct); } /// /// Returns true if StockAct instances are equal /// /// Instance of StockAct to be compared /// Boolean public bool Equals(StockAct input) { if (input == null) return false; return ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ) && ( this.Remark == input.Remark || (this.Remark != null && this.Remark.Equals(input.Remark)) ) && ( this.CreateTime == input.CreateTime || (this.CreateTime != null && this.CreateTime.Equals(input.CreateTime)) ) && ( this.OrderNo == input.OrderNo || (this.OrderNo != null && this.OrderNo.Equals(input.OrderNo)) ) && ( 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.Type != null) hashCode = hashCode * 59 + this.Type.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); if (this.Remark != null) hashCode = hashCode * 59 + this.Remark.GetHashCode(); if (this.CreateTime != null) hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); if (this.OrderNo != null) hashCode = hashCode * 59 + this.OrderNo.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; } } }