245 lines
9.3 KiB
C#
245 lines
9.3 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 OutStockOrderResp : IEquatable<OutStockOrderResp>, IValidatableObject
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Initializes a new instance of the <see cref="OutStockOrderResp" /> class.
|
||
|
/// </summary>
|
||
|
/// <param name="outStockOrderNo">出库单号.</param>
|
||
|
/// <param name="outStoreName">出库仓库名称.</param>
|
||
|
/// <param name="outStoreCode">出库仓库编码.</param>
|
||
|
/// <param name="shopCode">新店铺编码.</param>
|
||
|
/// <param name="oldShopCode">旧编码不一定存在.</param>
|
||
|
/// <param name="shopName">店铺名称.</param>
|
||
|
/// <param name="signTime">签字时间.</param>
|
||
|
/// <param name="listGoods">出库商品明细.</param>
|
||
|
public OutStockOrderResp(string outStockOrderNo = default(string), string outStoreName = default(string), string outStoreCode = default(string), string shopCode = default(string), string oldShopCode = default(string), string shopName = default(string), DateTime? signTime = default(DateTime?), List<OutStockGoodsResp> listGoods = default(List<OutStockGoodsResp>))
|
||
|
{
|
||
|
this.OutStockOrderNo = outStockOrderNo;
|
||
|
this.OutStoreName = outStoreName;
|
||
|
this.OutStoreCode = outStoreCode;
|
||
|
this.ShopCode = shopCode;
|
||
|
this.OldShopCode = oldShopCode;
|
||
|
this.ShopName = shopName;
|
||
|
this.SignTime = signTime;
|
||
|
this.ListGoods = listGoods;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 出库单号
|
||
|
/// </summary>
|
||
|
/// <value>出库单号</value>
|
||
|
[DataMember(Name="outStockOrderNo", EmitDefaultValue=false)]
|
||
|
public string OutStockOrderNo { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 出库仓库名称
|
||
|
/// </summary>
|
||
|
/// <value>出库仓库名称</value>
|
||
|
[DataMember(Name="outStoreName", EmitDefaultValue=false)]
|
||
|
public string OutStoreName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 出库仓库编码
|
||
|
/// </summary>
|
||
|
/// <value>出库仓库编码</value>
|
||
|
[DataMember(Name="outStoreCode", EmitDefaultValue=false)]
|
||
|
public string OutStoreCode { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 新店铺编码
|
||
|
/// </summary>
|
||
|
/// <value>新店铺编码</value>
|
||
|
[DataMember(Name="shopCode", EmitDefaultValue=false)]
|
||
|
public string ShopCode { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 旧编码不一定存在
|
||
|
/// </summary>
|
||
|
/// <value>旧编码不一定存在</value>
|
||
|
[DataMember(Name="oldShopCode", EmitDefaultValue=false)]
|
||
|
public string OldShopCode { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 店铺名称
|
||
|
/// </summary>
|
||
|
/// <value>店铺名称</value>
|
||
|
[DataMember(Name="shopName", EmitDefaultValue=false)]
|
||
|
public string ShopName { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 签字时间
|
||
|
/// </summary>
|
||
|
/// <value>签字时间</value>
|
||
|
[DataMember(Name="signTime", EmitDefaultValue=false)]
|
||
|
public DateTime? SignTime { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 出库商品明细
|
||
|
/// </summary>
|
||
|
/// <value>出库商品明细</value>
|
||
|
[DataMember(Name="listGoods", EmitDefaultValue=false)]
|
||
|
public List<OutStockGoodsResp> ListGoods { 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 OutStockOrderResp {\n");
|
||
|
sb.Append(" OutStockOrderNo: ").Append(OutStockOrderNo).Append("\n");
|
||
|
sb.Append(" OutStoreName: ").Append(OutStoreName).Append("\n");
|
||
|
sb.Append(" OutStoreCode: ").Append(OutStoreCode).Append("\n");
|
||
|
sb.Append(" ShopCode: ").Append(ShopCode).Append("\n");
|
||
|
sb.Append(" OldShopCode: ").Append(OldShopCode).Append("\n");
|
||
|
sb.Append(" ShopName: ").Append(ShopName).Append("\n");
|
||
|
sb.Append(" SignTime: ").Append(SignTime).Append("\n");
|
||
|
sb.Append(" ListGoods: ").Append(ListGoods).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 OutStockOrderResp);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Returns true if OutStockOrderResp instances are equal
|
||
|
/// </summary>
|
||
|
/// <param name="input">Instance of OutStockOrderResp to be compared</param>
|
||
|
/// <returns>Boolean</returns>
|
||
|
public bool Equals(OutStockOrderResp input)
|
||
|
{
|
||
|
if (input == null)
|
||
|
return false;
|
||
|
|
||
|
return
|
||
|
(
|
||
|
this.OutStockOrderNo == input.OutStockOrderNo ||
|
||
|
(this.OutStockOrderNo != null &&
|
||
|
this.OutStockOrderNo.Equals(input.OutStockOrderNo))
|
||
|
) &&
|
||
|
(
|
||
|
this.OutStoreName == input.OutStoreName ||
|
||
|
(this.OutStoreName != null &&
|
||
|
this.OutStoreName.Equals(input.OutStoreName))
|
||
|
) &&
|
||
|
(
|
||
|
this.OutStoreCode == input.OutStoreCode ||
|
||
|
(this.OutStoreCode != null &&
|
||
|
this.OutStoreCode.Equals(input.OutStoreCode))
|
||
|
) &&
|
||
|
(
|
||
|
this.ShopCode == input.ShopCode ||
|
||
|
(this.ShopCode != null &&
|
||
|
this.ShopCode.Equals(input.ShopCode))
|
||
|
) &&
|
||
|
(
|
||
|
this.OldShopCode == input.OldShopCode ||
|
||
|
(this.OldShopCode != null &&
|
||
|
this.OldShopCode.Equals(input.OldShopCode))
|
||
|
) &&
|
||
|
(
|
||
|
this.ShopName == input.ShopName ||
|
||
|
(this.ShopName != null &&
|
||
|
this.ShopName.Equals(input.ShopName))
|
||
|
) &&
|
||
|
(
|
||
|
this.SignTime == input.SignTime ||
|
||
|
(this.SignTime != null &&
|
||
|
this.SignTime.Equals(input.SignTime))
|
||
|
) &&
|
||
|
(
|
||
|
this.ListGoods == input.ListGoods ||
|
||
|
this.ListGoods != null &&
|
||
|
this.ListGoods.SequenceEqual(input.ListGoods)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
/// <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.OutStockOrderNo != null)
|
||
|
hashCode = hashCode * 59 + this.OutStockOrderNo.GetHashCode();
|
||
|
if (this.OutStoreName != null)
|
||
|
hashCode = hashCode * 59 + this.OutStoreName.GetHashCode();
|
||
|
if (this.OutStoreCode != null)
|
||
|
hashCode = hashCode * 59 + this.OutStoreCode.GetHashCode();
|
||
|
if (this.ShopCode != null)
|
||
|
hashCode = hashCode * 59 + this.ShopCode.GetHashCode();
|
||
|
if (this.OldShopCode != null)
|
||
|
hashCode = hashCode * 59 + this.OldShopCode.GetHashCode();
|
||
|
if (this.ShopName != null)
|
||
|
hashCode = hashCode * 59 + this.ShopName.GetHashCode();
|
||
|
if (this.SignTime != null)
|
||
|
hashCode = hashCode * 59 + this.SignTime.GetHashCode();
|
||
|
if (this.ListGoods != null)
|
||
|
hashCode = hashCode * 59 + this.ListGoods.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;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|