/* * 后台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 CreateReceiptOrderAct : IEquatable, IValidatableObject { /// /// Initializes a new instance of the class. /// /// 冰芙云单号. /// 单据日期. /// 店铺编码. /// 客户名. /// 客户手机. /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值. /// 金额. /// 付款性质: 0 = 应收款,1 = 预收款. /// 销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款. public CreateReceiptOrderAct(string binfOrderNo = default(string), DateTime? billDate = default(DateTime?), string shopCode = default(string), string memberName = default(string), string memberMobile = default(string), int? payModeCode = default(int?), double? money = default(double?), int? payProperty = default(int?), int? channelType = default(int?)) { this.BinfOrderNo = binfOrderNo; this.BillDate = billDate; this.ShopCode = shopCode; this.MemberName = memberName; this.MemberMobile = memberMobile; this.PayModeCode = payModeCode; this.Money = money; this.PayProperty = payProperty; this.ChannelType = channelType; } /// /// 冰芙云单号 /// /// 冰芙云单号 [DataMember(Name="binfOrderNo", EmitDefaultValue=false)] public string BinfOrderNo { get; set; } /// /// 单据日期 /// /// 单据日期 [DataMember(Name="billDate", EmitDefaultValue=false)] public DateTime? BillDate { get; set; } /// /// 店铺编码 /// /// 店铺编码 [DataMember(Name="shopCode", EmitDefaultValue=false)] public string ShopCode { get; set; } /// /// 客户名 /// /// 客户名 [DataMember(Name="memberName", EmitDefaultValue=false)] public string MemberName { get; set; } /// /// 客户手机 /// /// 客户手机 [DataMember(Name="memberMobile", EmitDefaultValue=false)] public string MemberMobile { get; set; } /// /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值 /// /// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值 [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 CreateReceiptOrderAct {\n"); sb.Append(" BinfOrderNo: ").Append(BinfOrderNo).Append("\n"); sb.Append(" BillDate: ").Append(BillDate).Append("\n"); sb.Append(" ShopCode: ").Append(ShopCode).Append("\n"); sb.Append(" MemberName: ").Append(MemberName).Append("\n"); sb.Append(" MemberMobile: ").Append(MemberMobile).Append("\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 CreateReceiptOrderAct); } /// /// Returns true if CreateReceiptOrderAct instances are equal /// /// Instance of CreateReceiptOrderAct to be compared /// Boolean public bool Equals(CreateReceiptOrderAct input) { if (input == null) return false; return ( this.BinfOrderNo == input.BinfOrderNo || (this.BinfOrderNo != null && this.BinfOrderNo.Equals(input.BinfOrderNo)) ) && ( this.BillDate == input.BillDate || (this.BillDate != null && this.BillDate.Equals(input.BillDate)) ) && ( this.ShopCode == input.ShopCode || (this.ShopCode != null && this.ShopCode.Equals(input.ShopCode)) ) && ( this.MemberName == input.MemberName || (this.MemberName != null && this.MemberName.Equals(input.MemberName)) ) && ( this.MemberMobile == input.MemberMobile || (this.MemberMobile != null && this.MemberMobile.Equals(input.MemberMobile)) ) && ( 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.BinfOrderNo != null) hashCode = hashCode * 59 + this.BinfOrderNo.GetHashCode(); if (this.BillDate != null) hashCode = hashCode * 59 + this.BillDate.GetHashCode(); if (this.ShopCode != null) hashCode = hashCode * 59 + this.ShopCode.GetHashCode(); if (this.MemberName != null) hashCode = hashCode * 59 + this.MemberName.GetHashCode(); if (this.MemberMobile != null) hashCode = hashCode * 59 + this.MemberMobile.GetHashCode(); 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; } } }