/* * 后台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 { /// /// RefundOrderResp /// [DataContract] public partial class RefundOrderResp : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 单号. /// 备注. /// 签字时间. /// 创建时间. /// 修改时间. /// 店铺编码. /// 商品项. public RefundOrderResp(string orderNo = default(string), string remark = default(string), DateTime? signTime = default(DateTime?), DateTime? createTime = default(DateTime?), DateTime? editTime = default(DateTime?), string shopCode = default(string), List listItem = default(List)) { this.OrderNo = orderNo; this.Remark = remark; this.SignTime = signTime; this.CreateTime = createTime; this.EditTime = editTime; this.ShopCode = shopCode; this.ListItem = listItem; } /// /// 单号 /// /// 单号 [DataMember(Name="orderNo", EmitDefaultValue=false)] public string OrderNo { get; set; } /// /// 备注 /// /// 备注 [DataMember(Name="remark", EmitDefaultValue=false)] public string Remark { get; set; } /// /// 签字时间 /// /// 签字时间 [DataMember(Name="signTime", EmitDefaultValue=false)] public DateTime? SignTime { get; set; } /// /// 创建时间 /// /// 创建时间 [DataMember(Name="createTime", EmitDefaultValue=false)] public DateTime? CreateTime { get; set; } /// /// 修改时间 /// /// 修改时间 [DataMember(Name="editTime", EmitDefaultValue=false)] public DateTime? EditTime { get; set; } /// /// 店铺编码 /// /// 店铺编码 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { get; set; } /// /// 商品项 /// /// 商品项 [DataMember(Name="listItem", EmitDefaultValue=false)] public List ListItem { 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 RefundOrderResp {\n"); sb.Append(" OrderNo: ").Append(OrderNo).Append("\n"); sb.Append(" Remark: ").Append(Remark).Append("\n"); sb.Append(" SignTime: ").Append(SignTime).Append("\n"); sb.Append(" CreateTime: ").Append(CreateTime).Append("\n"); sb.Append(" EditTime: ").Append(EditTime).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).Append("\n"); sb.Append(" ListItem: ").Append(ListItem).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 RefundOrderResp); } /// /// Returns true if RefundOrderResp instances are equal /// /// Instance of RefundOrderResp to be compared /// Boolean public bool Equals(RefundOrderResp input) { if (input == null) return false; return ( this.OrderNo == input.OrderNo || (this.OrderNo != null && this.OrderNo.Equals(input.OrderNo)) ) && ( this.Remark == input.Remark || (this.Remark != null && this.Remark.Equals(input.Remark)) ) && ( this.SignTime == input.SignTime || (this.SignTime != null && this.SignTime.Equals(input.SignTime)) ) && ( this.CreateTime == input.CreateTime || (this.CreateTime != null && this.CreateTime.Equals(input.CreateTime)) ) && ( this.EditTime == input.EditTime || (this.EditTime != null && this.EditTime.Equals(input.EditTime)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ) && ( this.ListItem == input.ListItem || this.ListItem != null && this.ListItem.SequenceEqual(input.ListItem) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.OrderNo != null) hashCode = hashCode * 59 + this.OrderNo.GetHashCode(); if (this.Remark != null) hashCode = hashCode * 59 + this.Remark.GetHashCode(); if (this.SignTime != null) hashCode = hashCode * 59 + this.SignTime.GetHashCode(); if (this.CreateTime != null) hashCode = hashCode * 59 + this.CreateTime.GetHashCode(); if (this.EditTime != null) hashCode = hashCode * 59 + this.EditTime.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); if (this.ListItem != null) hashCode = hashCode * 59 + this.ListItem.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }