/* * 后台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 { /// /// CreateRefundOrderAct /// [DataContract] public partial class CreateRefundOrderAct : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 订单类型 1:首配订单 2:日常补货 4:订货会 5、内部自购. /// 0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单. /// 店铺编码. /// 子应用系统的单号. /// 订单日期,不可为空,比如11-1号下的单,那么可能是12月才推送到NC的. /// 备注. /// 退货总价. /// 订单产品项,分服务和非服务产品. public CreateRefundOrderAct(int? orderType = default(int?), int? isSelfShop = default(int?), string shopCode = default(string), string orderNo = default(string), DateTime? orderDate = default(DateTime?), string remark = default(string), double? totalAmount = default(double?), List listOrdeItem = default(List)) { this.OrderType = orderType; this.IsSelfShop = isSelfShop; this.ShopCode = shopCode; this.OrderNo = orderNo; this.OrderDate = orderDate; this.Remark = remark; this.TotalAmount = totalAmount; this.ListOrdeItem = listOrdeItem; } /// /// 订单类型 1:首配订单 2:日常补货 4:订货会 5、内部自购 /// /// 订单类型 1:首配订单 2:日常补货 4:订货会 5、内部自购 [DataMember(Name="orderType", EmitDefaultValue=false)] public int? OrderType { get; set; } /// /// 0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单 /// /// 0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单 [DataMember(Name="isSelfShop", EmitDefaultValue=false)] public int? IsSelfShop { get; set; } /// /// 店铺编码 /// /// 店铺编码 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { get; set; } /// /// 子应用系统的单号 /// /// 子应用系统的单号 [DataMember(Name="orderNo", EmitDefaultValue=false)] public string OrderNo { get; set; } /// /// 订单日期,不可为空,比如11-1号下的单,那么可能是12月才推送到NC的 /// /// 订单日期,不可为空,比如11-1号下的单,那么可能是12月才推送到NC的 [DataMember(Name="orderDate", EmitDefaultValue=false)] public DateTime? OrderDate { get; set; } /// /// 备注 /// /// 备注 [DataMember(Name="remark", EmitDefaultValue=false)] public string Remark { get; set; } /// /// 退货总价 /// /// 退货总价 [DataMember(Name="totalAmount", EmitDefaultValue=false)] public double? TotalAmount { get; set; } /// /// 订单产品项,分服务和非服务产品 /// /// 订单产品项,分服务和非服务产品 [DataMember(Name="listOrdeItem", EmitDefaultValue=false)] public List ListOrdeItem { 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 CreateRefundOrderAct {\n"); sb.Append(" OrderType: ").Append(OrderType).Append("\n"); sb.Append(" IsSelfShop: ").Append(IsSelfShop).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).Append("\n"); sb.Append(" OrderNo: ").Append(OrderNo).Append("\n"); sb.Append(" OrderDate: ").Append(OrderDate).Append("\n"); sb.Append(" Remark: ").Append(Remark).Append("\n"); sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n"); sb.Append(" ListOrdeItem: ").Append(ListOrdeItem).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 CreateRefundOrderAct); } /// /// Returns true if CreateRefundOrderAct instances are equal /// /// Instance of CreateRefundOrderAct to be compared /// Boolean public bool Equals(CreateRefundOrderAct input) { if (input == null) return false; return ( this.OrderType == input.OrderType || (this.OrderType != null && this.OrderType.Equals(input.OrderType)) ) && ( this.IsSelfShop == input.IsSelfShop || (this.IsSelfShop != null && this.IsSelfShop.Equals(input.IsSelfShop)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ) && ( this.OrderNo == input.OrderNo || (this.OrderNo != null && this.OrderNo.Equals(input.OrderNo)) ) && ( this.OrderDate == input.OrderDate || (this.OrderDate != null && this.OrderDate.Equals(input.OrderDate)) ) && ( this.Remark == input.Remark || (this.Remark != null && this.Remark.Equals(input.Remark)) ) && ( this.TotalAmount == input.TotalAmount || (this.TotalAmount != null && this.TotalAmount.Equals(input.TotalAmount)) ) && ( this.ListOrdeItem == input.ListOrdeItem || this.ListOrdeItem != null && this.ListOrdeItem.SequenceEqual(input.ListOrdeItem) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.OrderType != null) hashCode = hashCode * 59 + this.OrderType.GetHashCode(); if (this.IsSelfShop != null) hashCode = hashCode * 59 + this.IsSelfShop.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); if (this.OrderNo != null) hashCode = hashCode * 59 + this.OrderNo.GetHashCode(); if (this.OrderDate != null) hashCode = hashCode * 59 + this.OrderDate.GetHashCode(); if (this.Remark != null) hashCode = hashCode * 59 + this.Remark.GetHashCode(); if (this.TotalAmount != null) hashCode = hashCode * 59 + this.TotalAmount.GetHashCode(); if (this.ListOrdeItem != null) hashCode = hashCode * 59 + this.ListOrdeItem.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }