211 lines
7.8 KiB
C#
211 lines
7.8 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>
|
||
/// StockAct
|
||
/// </summary>
|
||
[DataContract]
|
||
public partial class StockAct : IEquatable<StockAct>, IValidatableObject
|
||
{
|
||
/// <summary>
|
||
/// Initializes a new instance of the <see cref="StockAct" /> class.
|
||
/// </summary>
|
||
/// <param name="type">类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库.</param>
|
||
/// <param name="shopCode">店铺编码,传店铺编码-系统会自动拿NC仓库.</param>
|
||
/// <param name="remark">备注.</param>
|
||
/// <param name="createTime">单据日期.</param>
|
||
/// <param name="orderNo">订单号.</param>
|
||
/// <param name="listGoods">数量.</param>
|
||
public StockAct(int? type = default(int?), string shopCode = default(string), string remark = default(string), DateTime? createTime = default(DateTime?), string orderNo = default(string), List<StockDetail> listGoods = default(List<StockDetail>))
|
||
{
|
||
this.Type = type;
|
||
this.ShopCode = shopCode;
|
||
this.Remark = remark;
|
||
this.CreateTime = createTime;
|
||
this.OrderNo = orderNo;
|
||
this.ListGoods = listGoods;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库
|
||
/// </summary>
|
||
/// <value>类型6:盘亏出库, 7:盘盈入库 8:直营领料业务 17:报损出库业务 4:退货出库(应该是44) 43:直营转库出库</value>
|
||
[DataMember(Name="type", EmitDefaultValue=false)]
|
||
public int? Type { get; set; }
|
||
|
||
/// <summary>
|
||
/// 店铺编码,传店铺编码-系统会自动拿NC仓库
|
||
/// </summary>
|
||
/// <value>店铺编码,传店铺编码-系统会自动拿NC仓库</value>
|
||
[DataMember(Name="shopCode", EmitDefaultValue=false)]
|
||
public string ShopCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
/// <value>备注</value>
|
||
[DataMember(Name="remark", EmitDefaultValue=false)]
|
||
public string Remark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 单据日期
|
||
/// </summary>
|
||
/// <value>单据日期</value>
|
||
[DataMember(Name="createTime", EmitDefaultValue=false)]
|
||
public DateTime? CreateTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 订单号
|
||
/// </summary>
|
||
/// <value>订单号</value>
|
||
[DataMember(Name="orderNo", EmitDefaultValue=false)]
|
||
public string OrderNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 数量
|
||
/// </summary>
|
||
/// <value>数量</value>
|
||
[DataMember(Name="listGoods", EmitDefaultValue=false)]
|
||
public List<StockDetail> 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 StockAct {\n");
|
||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||
sb.Append(" ShopCode: ").Append(ShopCode).Append("\n");
|
||
sb.Append(" Remark: ").Append(Remark).Append("\n");
|
||
sb.Append(" CreateTime: ").Append(CreateTime).Append("\n");
|
||
sb.Append(" OrderNo: ").Append(OrderNo).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 StockAct);
|
||
}
|
||
|
||
/// <summary>
|
||
/// Returns true if StockAct instances are equal
|
||
/// </summary>
|
||
/// <param name="input">Instance of StockAct to be compared</param>
|
||
/// <returns>Boolean</returns>
|
||
public bool Equals(StockAct input)
|
||
{
|
||
if (input == null)
|
||
return false;
|
||
|
||
return
|
||
(
|
||
this.Type == input.Type ||
|
||
(this.Type != null &&
|
||
this.Type.Equals(input.Type))
|
||
) &&
|
||
(
|
||
this.ShopCode == input.ShopCode ||
|
||
(this.ShopCode != null &&
|
||
this.ShopCode.Equals(input.ShopCode))
|
||
) &&
|
||
(
|
||
this.Remark == input.Remark ||
|
||
(this.Remark != null &&
|
||
this.Remark.Equals(input.Remark))
|
||
) &&
|
||
(
|
||
this.CreateTime == input.CreateTime ||
|
||
(this.CreateTime != null &&
|
||
this.CreateTime.Equals(input.CreateTime))
|
||
) &&
|
||
(
|
||
this.OrderNo == input.OrderNo ||
|
||
(this.OrderNo != null &&
|
||
this.OrderNo.Equals(input.OrderNo))
|
||
) &&
|
||
(
|
||
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.Type != null)
|
||
hashCode = hashCode * 59 + this.Type.GetHashCode();
|
||
if (this.ShopCode != null)
|
||
hashCode = hashCode * 59 + this.ShopCode.GetHashCode();
|
||
if (this.Remark != null)
|
||
hashCode = hashCode * 59 + this.Remark.GetHashCode();
|
||
if (this.CreateTime != null)
|
||
hashCode = hashCode * 59 + this.CreateTime.GetHashCode();
|
||
if (this.OrderNo != null)
|
||
hashCode = hashCode * 59 + this.OrderNo.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;
|
||
}
|
||
}
|
||
|
||
}
|