/* * 后台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 { /// /// RefundMoneyItem /// [DataContract] public partial class RefundMoneyItem : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值. /// 金额,传正数. /// 付款性质: 0 = 应收款,1 = 预收款. /// 销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款. public RefundMoneyItem(int? payModeCode = default(int?), double? money = default(double?), int? payProperty = default(int?), int? channelType = default(int?)) { this.PayModeCode = payModeCode; this.Money = money; this.PayProperty = payProperty; this.ChannelType = channelType; } /// /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值 /// /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值 [DataMember(Name="payModeCode", EmitDefaultValue=false)] public int? PayModeCode { get; set; } /// /// 金额,传正数 /// /// 金额,传正数 [DataMember(Name="money", EmitDefaultValue=false)] public double? Money { get; set; } /// /// 付款性质: 0 = 应收款,1 = 预收款 /// /// 付款性质: 0 = 应收款,1 = 预收款 [DataMember(Name="payProperty", EmitDefaultValue=false)] public int? PayProperty { get; set; } /// /// 销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款 /// /// 销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款 [DataMember(Name="channelType", EmitDefaultValue=false)] public int? ChannelType { 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 RefundMoneyItem {\n"); sb.Append(" PayModeCode: ").Append(PayModeCode).Append("\n"); sb.Append(" Money: ").Append(Money).Append("\n"); sb.Append(" PayProperty: ").Append(PayProperty).Append("\n"); sb.Append(" ChannelType: ").Append(ChannelType).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 RefundMoneyItem); } /// /// Returns true if RefundMoneyItem instances are equal /// /// Instance of RefundMoneyItem to be compared /// Boolean public bool Equals(RefundMoneyItem input) { if (input == null) return false; return ( this.PayModeCode == input.PayModeCode || (this.PayModeCode != null && this.PayModeCode.Equals(input.PayModeCode)) ) && ( this.Money == input.Money || (this.Money != null && this.Money.Equals(input.Money)) ) && ( this.PayProperty == input.PayProperty || (this.PayProperty != null && this.PayProperty.Equals(input.PayProperty)) ) && ( this.ChannelType == input.ChannelType || (this.ChannelType != null && this.ChannelType.Equals(input.ChannelType)) ); } /// /// Gets the hash code /// /// Hash code public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.PayModeCode != null) hashCode = hashCode * 59 + this.PayModeCode.GetHashCode(); if (this.Money != null) hashCode = hashCode * 59 + this.Money.GetHashCode(); if (this.PayProperty != null) hashCode = hashCode * 59 + this.PayProperty.GetHashCode(); if (this.ChannelType != null) hashCode = hashCode * 59 + this.ChannelType.GetHashCode(); return hashCode; } } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }