ShiRongWeChatOpenIdTask/IO.Swagger/Model/CreateDirectShopPayItem.cs

143 lines
4.7 KiB
C#
Raw Normal View History

2025-04-21 14:10:27 +08:00
/*
* 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 CreateDirectShopPayItem : IEquatable<CreateDirectShopPayItem>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="CreateDirectShopPayItem" /> class.
/// </summary>
/// <param name="payMode">支付方式,用冰芙云的.</param>
/// <param name="money">支付金额,累计的加起来;.</param>
public CreateDirectShopPayItem(int? payMode = default(int?), double? money = default(double?))
{
this.PayMode = payMode;
this.Money = money;
}
/// <summary>
/// 支付方式,用冰芙云的
/// </summary>
/// <value>支付方式,用冰芙云的</value>
[DataMember(Name="payMode", EmitDefaultValue=false)]
public int? PayMode { get; set; }
/// <summary>
/// 支付金额,累计的加起来;
/// </summary>
/// <value>支付金额,累计的加起来;</value>
[DataMember(Name="money", EmitDefaultValue=false)]
public double? Money { 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 CreateDirectShopPayItem {\n");
sb.Append(" PayMode: ").Append(PayMode).Append("\n");
sb.Append(" Money: ").Append(Money).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 CreateDirectShopPayItem);
}
/// <summary>
/// Returns true if CreateDirectShopPayItem instances are equal
/// </summary>
/// <param name="input">Instance of CreateDirectShopPayItem to be compared</param>
/// <returns>Boolean</returns>
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))
);
}
/// <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.PayMode != null)
hashCode = hashCode * 59 + this.PayMode.GetHashCode();
if (this.Money != null)
hashCode = hashCode * 59 + this.Money.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;
}
}
}