/* * 后台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 { /// /// OutStockOrderRequest /// [DataContract] public partial class OutStockOrderRequest : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 开始时间. /// 结束时间. /// 出库单号. /// 店铺编码. public OutStockOrderRequest(DateTime? startTime = default(DateTime?), DateTime? endTime = default(DateTime?), string outStockOrderNo = default(string), string shopCode = default(string)) { this.StartTime = startTime; this.EndTime = endTime; this.OutStockOrderNo = outStockOrderNo; this.ShopCode = shopCode; } /// /// 开始时间 /// /// 开始时间 [DataMember(Name="startTime", EmitDefaultValue=false)] public DateTime? StartTime { get; set; } /// /// 结束时间 /// /// 结束时间 [DataMember(Name="endTime", EmitDefaultValue=false)] public DateTime? EndTime { get; set; } /// /// 出库单号 /// /// 出库单号 [DataMember(Name="outStockOrderNo", EmitDefaultValue=false)] public string OutStockOrderNo { get; set; } /// /// 店铺编码 /// /// 店铺编码 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { 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 OutStockOrderRequest {\n"); sb.Append(" StartTime: ").Append(StartTime).Append("\n"); sb.Append(" EndTime: ").Append(EndTime).Append("\n"); sb.Append(" OutStockOrderNo: ").Append(OutStockOrderNo).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).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 OutStockOrderRequest); } /// /// Returns true if OutStockOrderRequest instances are equal /// /// Instance of OutStockOrderRequest to be compared /// Boolean public bool Equals(OutStockOrderRequest input) { if (input == null) return false; return ( this.StartTime == input.StartTime || (this.StartTime != null && this.StartTime.Equals(input.StartTime)) ) && ( this.EndTime == input.EndTime || (this.EndTime != null && this.EndTime.Equals(input.EndTime)) ) && ( this.OutStockOrderNo == input.OutStockOrderNo || (this.OutStockOrderNo != null && this.OutStockOrderNo.Equals(input.OutStockOrderNo)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.StartTime != null) hashCode = hashCode * 59 + this.StartTime.GetHashCode(); if (this.EndTime != null) hashCode = hashCode * 59 + this.EndTime.GetHashCode(); if (this.OutStockOrderNo != null) hashCode = hashCode * 59 + this.OutStockOrderNo.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }