262 lines
10 KiB
C#
262 lines
10 KiB
C#
/*
|
||
* 后台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
|
||
{
|
||
/// <summary>
|
||
/// 创建收款单
|
||
/// </summary>
|
||
[DataContract]
|
||
public partial class CreateReceiptOrderAct : IEquatable<CreateReceiptOrderAct>, IValidatableObject
|
||
{
|
||
/// <summary>
|
||
/// Initializes a new instance of the <see cref="CreateReceiptOrderAct" /> class.
|
||
/// </summary>
|
||
/// <param name="binfOrderNo">冰芙云单号.</param>
|
||
/// <param name="billDate">单据日期.</param>
|
||
/// <param name="shopCode">店铺编码.</param>
|
||
/// <param name="memberName">客户名.</param>
|
||
/// <param name="memberMobile">客户手机.</param>
|
||
/// <param name="payModeCode">支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值.</param>
|
||
/// <param name="money">金额.</param>
|
||
/// <param name="payProperty">付款性质: 0 = 应收款,1 = 预收款.</param>
|
||
/// <param name="channelType">销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款.</param>
|
||
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;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 冰芙云单号
|
||
/// </summary>
|
||
/// <value>冰芙云单号</value>
|
||
[DataMember(Name="binfOrderNo", EmitDefaultValue=false)]
|
||
public string BinfOrderNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 单据日期
|
||
/// </summary>
|
||
/// <value>单据日期</value>
|
||
[DataMember(Name="billDate", EmitDefaultValue=false)]
|
||
public DateTime? BillDate { get; set; }
|
||
|
||
/// <summary>
|
||
/// 店铺编码
|
||
/// </summary>
|
||
/// <value>店铺编码</value>
|
||
[DataMember(Name="shopCode", EmitDefaultValue=false)]
|
||
public string ShopCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户名
|
||
/// </summary>
|
||
/// <value>客户名</value>
|
||
[DataMember(Name="memberName", EmitDefaultValue=false)]
|
||
public string MemberName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 客户手机
|
||
/// </summary>
|
||
/// <value>客户手机</value>
|
||
[DataMember(Name="memberMobile", EmitDefaultValue=false)]
|
||
public string MemberMobile { get; set; }
|
||
|
||
/// <summary>
|
||
/// 支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值
|
||
/// </summary>
|
||
/// <value>支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值</value>
|
||
[DataMember(Name="payModeCode", EmitDefaultValue=false)]
|
||
public int? PayModeCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 金额
|
||
/// </summary>
|
||
/// <value>金额</value>
|
||
[DataMember(Name="money", EmitDefaultValue=false)]
|
||
public double? Money { get; set; }
|
||
|
||
/// <summary>
|
||
/// 付款性质: 0 = 应收款,1 = 预收款
|
||
/// </summary>
|
||
/// <value>付款性质: 0 = 应收款,1 = 预收款</value>
|
||
[DataMember(Name="payProperty", EmitDefaultValue=false)]
|
||
public int? PayProperty { get; set; }
|
||
|
||
/// <summary>
|
||
/// 销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款
|
||
/// </summary>
|
||
/// <value>销售渠道 16:直营商品销售款 17:会员充值款 18:余额消费 21:直营服务销售款</value>
|
||
[DataMember(Name="channelType", EmitDefaultValue=false)]
|
||
public int? ChannelType { get; set; }
|
||
|
||
/// <summary>
|
||
/// Returns the string presentation of the object
|
||
/// </summary>
|
||
/// <returns>String presentation of the object</returns>
|
||
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();
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns the JSON string presentation of the object
|
||
/// </summary>
|
||
/// <returns>JSON string presentation of the object</returns>
|
||
public virtual string ToJson()
|
||
{
|
||
return JsonConvert.SerializeObject(this, Formatting.Indented);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns true if objects are equal
|
||
/// </summary>
|
||
/// <param name="input">Object to be compared</param>
|
||
/// <returns>Boolean</returns>
|
||
public override bool Equals(object input)
|
||
{
|
||
return this.Equals(input as CreateReceiptOrderAct);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns true if CreateReceiptOrderAct instances are equal
|
||
/// </summary>
|
||
/// <param name="input">Instance of CreateReceiptOrderAct to be compared</param>
|
||
/// <returns>Boolean</returns>
|
||
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))
|
||
);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Gets the hash code
|
||
/// </summary>
|
||
/// <returns>Hash code</returns>
|
||
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;
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// To validate all properties of the instance
|
||
/// </summary>
|
||
/// <param name="validationContext">Validation context</param>
|
||
/// <returns>Validation Result</returns>
|
||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||
{
|
||
yield break;
|
||
}
|
||
}
|
||
|
||
}
|