/* * 后台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 CreateDirectShopPayItem : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 支付方式,用冰芙云的. /// 支付金额,累计的加起来;. public CreateDirectShopPayItem(int? payMode = default(int?), double? money = default(double?)) { this.PayMode = payMode; this.Money = money; } /// /// 支付方式,用冰芙云的 /// /// 支付方式,用冰芙云的 [DataMember(Name="payMode", EmitDefaultValue=false)] public int? PayMode { get; set; } /// /// 支付金额,累计的加起来; /// /// 支付金额,累计的加起来; [DataMember(Name="money", EmitDefaultValue=false)] public double? Money { 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 CreateDirectShopPayItem {\n"); sb.Append(" PayMode: ").Append(PayMode).Append("\n"); sb.Append(" Money: ").Append(Money).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 CreateDirectShopPayItem); } /// /// Returns true if CreateDirectShopPayItem instances are equal /// /// Instance of CreateDirectShopPayItem to be compared /// Boolean public bool Equals(CreateDirectShopPayItem input) { if (input == null) return false; return ( this.PayMode == input.PayMode || (this.PayMode != null && this.PayMode.Equals(input.PayMode)) ) && ( this.Money == input.Money || (this.Money != null && this.Money.Equals(input.Money)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.PayMode != null) hashCode = hashCode * 59 + this.PayMode.GetHashCode(); if (this.Money != null) hashCode = hashCode * 59 + this.Money.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }