MeiSaiSiXieTongApi/IO.Swagger/Model/CreateRefundOrderAct.cs
2025-04-24 18:31:27 +08:00

245 lines
9.8 KiB
C#
Raw 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>
/// CreateRefundOrderAct
/// </summary>
[DataContract]
public partial class CreateRefundOrderAct : IEquatable<CreateRefundOrderAct>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="CreateRefundOrderAct" /> class.
/// </summary>
/// <param name="orderType">订单类型 1:首配订单 2日常补货 4订货会 5、内部自购.</param>
/// <param name="isSelfShop">0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单.</param>
/// <param name="shopCode">店铺编码.</param>
/// <param name="orderNo">子应用系统的单号.</param>
/// <param name="orderDate">订单日期不可为空比如11-1号下的单那么可能是12月才推送到NC的.</param>
/// <param name="remark">备注.</param>
/// <param name="totalAmount">退货总价.</param>
/// <param name="listOrdeItem">订单产品项,分服务和非服务产品.</param>
public CreateRefundOrderAct(int? orderType = default(int?), int? isSelfShop = default(int?), string shopCode = default(string), string orderNo = default(string), DateTime? orderDate = default(DateTime?), string remark = default(string), double? totalAmount = default(double?), List<OrderItem> listOrdeItem = default(List<OrderItem>))
{
this.OrderType = orderType;
this.IsSelfShop = isSelfShop;
this.ShopCode = shopCode;
this.OrderNo = orderNo;
this.OrderDate = orderDate;
this.Remark = remark;
this.TotalAmount = totalAmount;
this.ListOrdeItem = listOrdeItem;
}
/// <summary>
/// 订单类型 1:首配订单 2日常补货 4订货会 5、内部自购
/// </summary>
/// <value>订单类型 1:首配订单 2日常补货 4订货会 5、内部自购</value>
[DataMember(Name="orderType", EmitDefaultValue=false)]
public int? OrderType { get; set; }
/// <summary>
/// 0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单
/// </summary>
/// <value>0:不是自营店铺 1:是自营店铺 ,接口会根据是否自营,跳转不同的单</value>
[DataMember(Name="isSelfShop", EmitDefaultValue=false)]
public int? IsSelfShop { get; set; }
/// <summary>
/// 店铺编码
/// </summary>
/// <value>店铺编码</value>
[DataMember(Name="shopCode", EmitDefaultValue=false)]
public string ShopCode { get; set; }
/// <summary>
/// 子应用系统的单号
/// </summary>
/// <value>子应用系统的单号</value>
[DataMember(Name="orderNo", EmitDefaultValue=false)]
public string OrderNo { get; set; }
/// <summary>
/// 订单日期不可为空比如11-1号下的单那么可能是12月才推送到NC的
/// </summary>
/// <value>订单日期不可为空比如11-1号下的单那么可能是12月才推送到NC的</value>
[DataMember(Name="orderDate", EmitDefaultValue=false)]
public DateTime? OrderDate { get; set; }
/// <summary>
/// 备注
/// </summary>
/// <value>备注</value>
[DataMember(Name="remark", EmitDefaultValue=false)]
public string Remark { get; set; }
/// <summary>
/// 退货总价
/// </summary>
/// <value>退货总价</value>
[DataMember(Name="totalAmount", EmitDefaultValue=false)]
public double? TotalAmount { get; set; }
/// <summary>
/// 订单产品项,分服务和非服务产品
/// </summary>
/// <value>订单产品项,分服务和非服务产品</value>
[DataMember(Name="listOrdeItem", EmitDefaultValue=false)]
public List<OrderItem> ListOrdeItem { 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 CreateRefundOrderAct {\n");
sb.Append(" OrderType: ").Append(OrderType).Append("\n");
sb.Append(" IsSelfShop: ").Append(IsSelfShop).Append("\n");
sb.Append(" ShopCode: ").Append(ShopCode).Append("\n");
sb.Append(" OrderNo: ").Append(OrderNo).Append("\n");
sb.Append(" OrderDate: ").Append(OrderDate).Append("\n");
sb.Append(" Remark: ").Append(Remark).Append("\n");
sb.Append(" TotalAmount: ").Append(TotalAmount).Append("\n");
sb.Append(" ListOrdeItem: ").Append(ListOrdeItem).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 CreateRefundOrderAct);
}
/// <summary>
/// Returns true if CreateRefundOrderAct instances are equal
/// </summary>
/// <param name="input">Instance of CreateRefundOrderAct to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(CreateRefundOrderAct input)
{
if (input == null)
return false;
return
(
this.OrderType == input.OrderType ||
(this.OrderType != null &&
this.OrderType.Equals(input.OrderType))
) &&
(
this.IsSelfShop == input.IsSelfShop ||
(this.IsSelfShop != null &&
this.IsSelfShop.Equals(input.IsSelfShop))
) &&
(
this.ShopCode == input.ShopCode ||
(this.ShopCode != null &&
this.ShopCode.Equals(input.ShopCode))
) &&
(
this.OrderNo == input.OrderNo ||
(this.OrderNo != null &&
this.OrderNo.Equals(input.OrderNo))
) &&
(
this.OrderDate == input.OrderDate ||
(this.OrderDate != null &&
this.OrderDate.Equals(input.OrderDate))
) &&
(
this.Remark == input.Remark ||
(this.Remark != null &&
this.Remark.Equals(input.Remark))
) &&
(
this.TotalAmount == input.TotalAmount ||
(this.TotalAmount != null &&
this.TotalAmount.Equals(input.TotalAmount))
) &&
(
this.ListOrdeItem == input.ListOrdeItem ||
this.ListOrdeItem != null &&
this.ListOrdeItem.SequenceEqual(input.ListOrdeItem)
);
}
/// <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.OrderType != null)
hashCode = hashCode * 59 + this.OrderType.GetHashCode();
if (this.IsSelfShop != null)
hashCode = hashCode * 59 + this.IsSelfShop.GetHashCode();
if (this.ShopCode != null)
hashCode = hashCode * 59 + this.ShopCode.GetHashCode();
if (this.OrderNo != null)
hashCode = hashCode * 59 + this.OrderNo.GetHashCode();
if (this.OrderDate != null)
hashCode = hashCode * 59 + this.OrderDate.GetHashCode();
if (this.Remark != null)
hashCode = hashCode * 59 + this.Remark.GetHashCode();
if (this.TotalAmount != null)
hashCode = hashCode * 59 + this.TotalAmount.GetHashCode();
if (this.ListOrdeItem != null)
hashCode = hashCode * 59 + this.ListOrdeItem.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;
}
}
}