2025-04-21 14:10:27 +08:00

177 lines
6.7 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* 后台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>
/// RefundMoneyItem
/// </summary>
[DataContract]
public partial class RefundMoneyItem : IEquatable<RefundMoneyItem>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="RefundMoneyItem" /> class.
/// </summary>
/// <param name="payModeCode">支付方式编码,比如微信、支付宝等,用冰芙云自身的枚举值.</param>
/// <param name="money">金额,传正数.</param>
/// <param name="payProperty">付款性质: 0 &#x3D; 应收款1 &#x3D; 预收款.</param>
/// <param name="channelType">销售渠道 16直营商品销售款 17会员充值款 18余额消费 21直营服务销售款.</param>
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;
}
/// <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 &#x3D; 应收款1 &#x3D; 预收款
/// </summary>
/// <value>付款性质: 0 &#x3D; 应收款1 &#x3D; 预收款</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 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();
}
/// <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 RefundMoneyItem);
}
/// <summary>
/// Returns true if RefundMoneyItem instances are equal
/// </summary>
/// <param name="input">Instance of RefundMoneyItem to be compared</param>
/// <returns>Boolean</returns>
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))
);
}
/// <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.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;
}
}
}