160 lines
5.9 KiB
C#
160 lines
5.9 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>
|
|||
|
/// RefundOrderStatusResp
|
|||
|
/// </summary>
|
|||
|
[DataContract]
|
|||
|
public partial class RefundOrderStatusResp : IEquatable<RefundOrderStatusResp>, IValidatableObject
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Initializes a new instance of the <see cref="RefundOrderStatusResp" /> class.
|
|||
|
/// </summary>
|
|||
|
/// <param name="sourceOrderNo">大的原始单号.</param>
|
|||
|
/// <param name="status">单据状态 -99:已删除 -1:NC没有该单数据 1:保存状态,进入NC成功 10:审核-财务确认 20:拒绝-财务审核 50:部分发货 100:全部发货 110:关闭.</param>
|
|||
|
/// <param name="remark">补充信息.</param>
|
|||
|
public RefundOrderStatusResp(string sourceOrderNo = default(string), int? status = default(int?), string remark = default(string))
|
|||
|
{
|
|||
|
this.SourceOrderNo = sourceOrderNo;
|
|||
|
this.Status = status;
|
|||
|
this.Remark = remark;
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 大的原始单号
|
|||
|
/// </summary>
|
|||
|
/// <value>大的原始单号</value>
|
|||
|
[DataMember(Name="sourceOrderNo", EmitDefaultValue=false)]
|
|||
|
public string SourceOrderNo { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 单据状态 -99:已删除 -1:NC没有该单数据 1:保存状态,进入NC成功 10:审核-财务确认 20:拒绝-财务审核 50:部分发货 100:全部发货 110:关闭
|
|||
|
/// </summary>
|
|||
|
/// <value>单据状态 -99:已删除 -1:NC没有该单数据 1:保存状态,进入NC成功 10:审核-财务确认 20:拒绝-财务审核 50:部分发货 100:全部发货 110:关闭</value>
|
|||
|
[DataMember(Name="status", EmitDefaultValue=false)]
|
|||
|
public int? Status { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 补充信息
|
|||
|
/// </summary>
|
|||
|
/// <value>补充信息</value>
|
|||
|
[DataMember(Name="remark", EmitDefaultValue=false)]
|
|||
|
public string Remark { 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 RefundOrderStatusResp {\n");
|
|||
|
sb.Append(" SourceOrderNo: ").Append(SourceOrderNo).Append("\n");
|
|||
|
sb.Append(" Status: ").Append(Status).Append("\n");
|
|||
|
sb.Append(" Remark: ").Append(Remark).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 RefundOrderStatusResp);
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Returns true if RefundOrderStatusResp instances are equal
|
|||
|
/// </summary>
|
|||
|
/// <param name="input">Instance of RefundOrderStatusResp to be compared</param>
|
|||
|
/// <returns>Boolean</returns>
|
|||
|
public bool Equals(RefundOrderStatusResp input)
|
|||
|
{
|
|||
|
if (input == null)
|
|||
|
return false;
|
|||
|
|
|||
|
return
|
|||
|
(
|
|||
|
this.SourceOrderNo == input.SourceOrderNo ||
|
|||
|
(this.SourceOrderNo != null &&
|
|||
|
this.SourceOrderNo.Equals(input.SourceOrderNo))
|
|||
|
) &&
|
|||
|
(
|
|||
|
this.Status == input.Status ||
|
|||
|
(this.Status != null &&
|
|||
|
this.Status.Equals(input.Status))
|
|||
|
) &&
|
|||
|
(
|
|||
|
this.Remark == input.Remark ||
|
|||
|
(this.Remark != null &&
|
|||
|
this.Remark.Equals(input.Remark))
|
|||
|
);
|
|||
|
}
|
|||
|
|
|||
|
/// <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.SourceOrderNo != null)
|
|||
|
hashCode = hashCode * 59 + this.SourceOrderNo.GetHashCode();
|
|||
|
if (this.Status != null)
|
|||
|
hashCode = hashCode * 59 + this.Status.GetHashCode();
|
|||
|
if (this.Remark != null)
|
|||
|
hashCode = hashCode * 59 + this.Remark.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;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|