Commit 3716ef27 authored by Jose Hugo Torres's avatar Jose Hugo Torres
Browse files

Implementado subtotal e impuestos.

parent 173f8f39
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TankDO &lt;p&gt;A kind of Location used to store a FuelItem that is measured &amp;amp; dispensed by one or more FuelingPoints&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="fuelGradeID">&lt;p&gt;Generated ID of a fuel grade.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="maximumSafeFillCapacity">&lt;p&gt;The largest capacity that the tank safely holds, taking temperature effects into consideration.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="lowCapacity">&lt;p&gt;The volume to which a tank may be emptied without prumping vapour into the line. The amount of product that just reaches the entrance of the suction pipe.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tankDiameter">&lt;p&gt;The diameter of the tank&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="highWaterSetPoint">&lt;p&gt;The level at which the TankLevelGuage will set off the &#39;High Water Alarm&#39;&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="itemID">&lt;p&gt;Reference to BusinessUnitGroupItem&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="unitOfMeasureCode">&lt;p&gt;The UOM of the Item&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="fuelProductID">fuelProductID.</param>
/// <param name="fuelName">fuelName.</param>
/// <param name="tankGroupID">tankGroupID.</param>
/// <param name="tankLevelGaugeID">tankLevelGaugeID.</param>
/// <param name="xxcustom08">xxcustom08.</param>
/// <param name="xxcustom10">xxcustom10.</param>
/// <param name="xxcustom09">xxcustom09.</param>
/// <param name="xxcustom07">xxcustom07.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">xxcustom06.</param>
/// <param name="xxcustom11">xxcustom11.</param>
/// <param name="xxcustom12">xxcustom12.</param>
/// <param name="xxcustom13">xxcustom13.</param>
/// <param name="xxcustom14">xxcustom14.</param>
/// <param name="xxcustom15">xxcustom15.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">xxcustom16.</param>
/// <param name="xxcustom17">xxcustom17.</param>
/// <param name="xxcustom18">xxcustom18.</param>
/// <param name="xxcustom19">xxcustom19.</param>
/// <param name="xxcustom20">xxcustom20.</param>
/// <param name="xxcustom21">xxcustom21.</param>
/// <param name="xxcustom22">xxcustom22.</param>
/// <param name="xxcustom23">xxcustom23.</param>
/// <param name="xxcustom24">xxcustom24.</param>
/// <param name="xxcustom25">xxcustom25.</param>
/// <param name="xxcustom26">xxcustom26.</param>
/// <param name="xxcustom27">xxcustom27.</param>
/// <param name="xxcustom28">xxcustom28.</param>
/// <param name="xxcustom29">xxcustom29.</param>
/// <param name="xxcustom30">xxcustom30.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO(ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey key = default(ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey), string fuelGradeID = default(string), double? maximumSafeFillCapacity = default(double?), double? lowCapacity = default(double?), double? tankDiameter = default(double?), double? highWaterSetPoint = default(double?), string itemID = default(string), string unitOfMeasureCode = default(string), int? fuelProductID = default(int?), string fuelName = default(string), int? tankGroupID = default(int?), int? tankLevelGaugeID = default(int?), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "fuelGradeID" is required (not null)
if (fuelGradeID == null)
{
throw new InvalidDataException("fuelGradeID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO and cannot be null");
}
else
{
this.FuelGradeID = fuelGradeID;
}
this.MaximumSafeFillCapacity = maximumSafeFillCapacity;
this.LowCapacity = lowCapacity;
this.TankDiameter = tankDiameter;
this.HighWaterSetPoint = highWaterSetPoint;
this.ItemID = itemID;
this.UnitOfMeasureCode = unitOfMeasureCode;
this.FuelProductID = fuelProductID;
this.FuelName = fuelName;
this.TankGroupID = tankGroupID;
this.TankLevelGaugeID = tankLevelGaugeID;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Generated ID of a fuel grade.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Generated ID of a fuel grade.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuelGradeID", EmitDefaultValue=false)]
public string FuelGradeID { get; set; }
/// <summary>
/// &lt;p&gt;The largest capacity that the tank safely holds, taking temperature effects into consideration.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The largest capacity that the tank safely holds, taking temperature effects into consideration.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="maximumSafeFillCapacity", EmitDefaultValue=false)]
public double? MaximumSafeFillCapacity { get; set; }
/// <summary>
/// &lt;p&gt;The volume to which a tank may be emptied without prumping vapour into the line. The amount of product that just reaches the entrance of the suction pipe.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The volume to which a tank may be emptied without prumping vapour into the line. The amount of product that just reaches the entrance of the suction pipe.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="lowCapacity", EmitDefaultValue=false)]
public double? LowCapacity { get; set; }
/// <summary>
/// &lt;p&gt;The diameter of the tank&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The diameter of the tank&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tankDiameter", EmitDefaultValue=false)]
public double? TankDiameter { get; set; }
/// <summary>
/// &lt;p&gt;The level at which the TankLevelGuage will set off the &#39;High Water Alarm&#39;&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The level at which the TankLevelGuage will set off the &#39;High Water Alarm&#39;&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="highWaterSetPoint", EmitDefaultValue=false)]
public double? HighWaterSetPoint { get; set; }
/// <summary>
/// &lt;p&gt;Reference to BusinessUnitGroupItem&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Reference to BusinessUnitGroupItem&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="itemID", EmitDefaultValue=false)]
public string ItemID { get; set; }
/// <summary>
/// &lt;p&gt;The UOM of the Item&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The UOM of the Item&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="unitOfMeasureCode", EmitDefaultValue=false)]
public string UnitOfMeasureCode { get; set; }
/// <summary>
/// Gets or Sets FuelProductID
/// </summary>
[DataMember(Name="fuelProductID", EmitDefaultValue=false)]
public int? FuelProductID { get; set; }
/// <summary>
/// Gets or Sets FuelName
/// </summary>
[DataMember(Name="fuelName", EmitDefaultValue=false)]
public string FuelName { get; set; }
/// <summary>
/// Gets or Sets TankGroupID
/// </summary>
[DataMember(Name="tankGroupID", EmitDefaultValue=false)]
public int? TankGroupID { get; set; }
/// <summary>
/// Gets or Sets TankLevelGaugeID
/// </summary>
[DataMember(Name="tankLevelGaugeID", EmitDefaultValue=false)]
public int? TankLevelGaugeID { get; set; }
/// <summary>
/// Gets or Sets Xxcustom08
/// </summary>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom10
/// </summary>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom09
/// </summary>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom07
/// </summary>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom06
/// </summary>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom11
/// </summary>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom12
/// </summary>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom13
/// </summary>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom14
/// </summary>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom15
/// </summary>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom16
/// </summary>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom17
/// </summary>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom18
/// </summary>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom19
/// </summary>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom20
/// </summary>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom21
/// </summary>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom22
/// </summary>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom23
/// </summary>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom24
/// </summary>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom25
/// </summary>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom26
/// </summary>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom27
/// </summary>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom28
/// </summary>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom29
/// </summary>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// Gets or Sets Xxcustom30
/// </summary>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" FuelGradeID: ").Append(FuelGradeID).Append("\n");
sb.Append(" MaximumSafeFillCapacity: ").Append(MaximumSafeFillCapacity).Append("\n");
sb.Append(" LowCapacity: ").Append(LowCapacity).Append("\n");
sb.Append(" TankDiameter: ").Append(TankDiameter).Append("\n");
sb.Append(" HighWaterSetPoint: ").Append(HighWaterSetPoint).Append("\n");
sb.Append(" ItemID: ").Append(ItemID).Append("\n");
sb.Append(" UnitOfMeasureCode: ").Append(UnitOfMeasureCode).Append("\n");
sb.Append(" FuelProductID: ").Append(FuelProductID).Append("\n");
sb.Append(" FuelName: ").Append(FuelName).Append("\n");
sb.Append(" TankGroupID: ").Append(TankGroupID).Append("\n");
sb.Append(" TankLevelGaugeID: ").Append(TankLevelGaugeID).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.FuelGradeID == input.FuelGradeID ||
(this.FuelGradeID != null &&
this.FuelGradeID.Equals(input.FuelGradeID))
) &&
(
this.MaximumSafeFillCapacity == input.MaximumSafeFillCapacity ||
(this.MaximumSafeFillCapacity != null &&
this.MaximumSafeFillCapacity.Equals(input.MaximumSafeFillCapacity))
) &&
(
this.LowCapacity == input.LowCapacity ||
(this.LowCapacity != null &&
this.LowCapacity.Equals(input.LowCapacity))
) &&
(
this.TankDiameter == input.TankDiameter ||
(this.TankDiameter != null &&
this.TankDiameter.Equals(input.TankDiameter))
) &&
(
this.HighWaterSetPoint == input.HighWaterSetPoint ||
(this.HighWaterSetPoint != null &&
this.HighWaterSetPoint.Equals(input.HighWaterSetPoint))
) &&
(
this.ItemID == input.ItemID ||
(this.ItemID != null &&
this.ItemID.Equals(input.ItemID))
) &&
(
this.UnitOfMeasureCode == input.UnitOfMeasureCode ||
(this.UnitOfMeasureCode != null &&
this.UnitOfMeasureCode.Equals(input.UnitOfMeasureCode))
) &&
(
this.FuelProductID == input.FuelProductID ||
(this.FuelProductID != null &&
this.FuelProductID.Equals(input.FuelProductID))
) &&
(
this.FuelName == input.FuelName ||
(this.FuelName != null &&
this.FuelName.Equals(input.FuelName))
) &&
(
this.TankGroupID == input.TankGroupID ||
(this.TankGroupID != null &&
this.TankGroupID.Equals(input.TankGroupID))
) &&
(
this.TankLevelGaugeID == input.TankLevelGaugeID ||
(this.TankLevelGaugeID != null &&
this.TankLevelGaugeID.Equals(input.TankLevelGaugeID))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.FuelGradeID != null)
hashCode = hashCode * 59 + this.FuelGradeID.GetHashCode();
if (this.MaximumSafeFillCapacity != null)
hashCode = hashCode * 59 + this.MaximumSafeFillCapacity.GetHashCode();
if (this.LowCapacity != null)
hashCode = hashCode * 59 + this.LowCapacity.GetHashCode();
if (this.TankDiameter != null)
hashCode = hashCode * 59 + this.TankDiameter.GetHashCode();
if (this.HighWaterSetPoint != null)
hashCode = hashCode * 59 + this.HighWaterSetPoint.GetHashCode();
if (this.ItemID != null)
hashCode = hashCode * 59 + this.ItemID.GetHashCode();
if (this.UnitOfMeasureCode != null)
hashCode = hashCode * 59 + this.UnitOfMeasureCode.GetHashCode();
if (this.FuelProductID != null)
hashCode = hashCode * 59 + this.FuelProductID.GetHashCode();
if (this.FuelName != null)
hashCode = hashCode * 59 + this.FuelName.GetHashCode();
if (this.TankGroupID != null)
hashCode = hashCode * 59 + this.TankGroupID.GetHashCode();
if (this.TankLevelGaugeID != null)
hashCode = hashCode * 59 + this.TankLevelGaugeID.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TankDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="tankID">&lt;p&gt;A unique identifier for this Tank&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey(string businessUnitGroupID = default(string), string tankID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "tankID" is required (not null)
if (tankID == null)
{
throw new InvalidDataException("tankID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey and cannot be null");
}
else
{
this.TankID = tankID;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of BusinessUnits.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;A unique identifier for this Tank&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for this Tank&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tankID", EmitDefaultValue=false)]
public string TankID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" TankID: ").Append(TankID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomTankDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.TankID == input.TankID ||
(this.TankID != null &&
this.TankID.Equals(input.TankID))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.TankID != null)
hashCode = hashCode * 59 + this.TankID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// PriceContractReadDO &lt;p&gt;The view object which consolidates data from Price Contract tables.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO : IEquatable<ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO" /> class.
/// </summary>
/// <param name="priceContractID">&lt;p&gt;The identifier of a contract which was created for a customer or customer group&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="itemID">&lt;p&gt;Reference to the Item.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="posItemID">&lt;p&gt;The POS Item ID.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="unitOfMeasureCode">&lt;p&gt;The UOM of the Item.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="effectiveDateTime">&lt;p&gt;Effective (start) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="expirationDateTime">&lt;p&gt;Expiration (end) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="saleUnitRetailPriceAmount">&lt;p&gt;The agreed sales unit price for the item.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerID">&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerGroupID">&lt;p&gt;Customer group ID.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO(string priceContractID = default(string), string itemID = default(string), string posItemID = default(string), string unitOfMeasureCode = default(string), string effectiveDateTime = default(string), string expirationDateTime = default(string), double? saleUnitRetailPriceAmount = default(double?), string customerID = default(string), string customerGroupID = default(string))
{
this.PriceContractID = priceContractID;
this.ItemID = itemID;
this.PosItemID = posItemID;
this.UnitOfMeasureCode = unitOfMeasureCode;
this.EffectiveDateTime = effectiveDateTime;
this.ExpirationDateTime = expirationDateTime;
this.SaleUnitRetailPriceAmount = saleUnitRetailPriceAmount;
this.CustomerID = customerID;
this.CustomerGroupID = customerGroupID;
}
/// <summary>
/// &lt;p&gt;The identifier of a contract which was created for a customer or customer group&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier of a contract which was created for a customer or customer group&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="priceContractID", EmitDefaultValue=false)]
public string PriceContractID { get; set; }
/// <summary>
/// &lt;p&gt;Reference to the Item.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Reference to the Item.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="itemID", EmitDefaultValue=false)]
public string ItemID { get; set; }
/// <summary>
/// &lt;p&gt;The POS Item ID.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The POS Item ID.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="posItemID", EmitDefaultValue=false)]
public string PosItemID { get; set; }
/// <summary>
/// &lt;p&gt;The UOM of the Item.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The UOM of the Item.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="unitOfMeasureCode", EmitDefaultValue=false)]
public string UnitOfMeasureCode { get; set; }
/// <summary>
/// &lt;p&gt;Effective (start) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;Effective (start) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="effectiveDateTime", EmitDefaultValue=false)]
public string EffectiveDateTime { get; set; }
/// <summary>
/// &lt;p&gt;Expiration (end) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;Expiration (end) Time Stamp of that price.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="expirationDateTime", EmitDefaultValue=false)]
public string ExpirationDateTime { get; set; }
/// <summary>
/// &lt;p&gt;The agreed sales unit price for the item.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The agreed sales unit price for the item.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="saleUnitRetailPriceAmount", EmitDefaultValue=false)]
public double? SaleUnitRetailPriceAmount { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerID", EmitDefaultValue=false)]
public string CustomerID { get; set; }
/// <summary>
/// &lt;p&gt;Customer group ID.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Customer group ID.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerGroupID", EmitDefaultValue=false)]
public string CustomerGroupID { 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 ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO {\n");
sb.Append(" PriceContractID: ").Append(PriceContractID).Append("\n");
sb.Append(" ItemID: ").Append(ItemID).Append("\n");
sb.Append(" PosItemID: ").Append(PosItemID).Append("\n");
sb.Append(" UnitOfMeasureCode: ").Append(UnitOfMeasureCode).Append("\n");
sb.Append(" EffectiveDateTime: ").Append(EffectiveDateTime).Append("\n");
sb.Append(" ExpirationDateTime: ").Append(ExpirationDateTime).Append("\n");
sb.Append(" SaleUnitRetailPriceAmount: ").Append(SaleUnitRetailPriceAmount).Append("\n");
sb.Append(" CustomerID: ").Append(CustomerID).Append("\n");
sb.Append(" CustomerGroupID: ").Append(CustomerGroupID).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 ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPriceContractDtoDomPriceContractReadDO input)
{
if (input == null)
return false;
return
(
this.PriceContractID == input.PriceContractID ||
(this.PriceContractID != null &&
this.PriceContractID.Equals(input.PriceContractID))
) &&
(
this.ItemID == input.ItemID ||
(this.ItemID != null &&
this.ItemID.Equals(input.ItemID))
) &&
(
this.PosItemID == input.PosItemID ||
(this.PosItemID != null &&
this.PosItemID.Equals(input.PosItemID))
) &&
(
this.UnitOfMeasureCode == input.UnitOfMeasureCode ||
(this.UnitOfMeasureCode != null &&
this.UnitOfMeasureCode.Equals(input.UnitOfMeasureCode))
) &&
(
this.EffectiveDateTime == input.EffectiveDateTime ||
(this.EffectiveDateTime != null &&
this.EffectiveDateTime.Equals(input.EffectiveDateTime))
) &&
(
this.ExpirationDateTime == input.ExpirationDateTime ||
(this.ExpirationDateTime != null &&
this.ExpirationDateTime.Equals(input.ExpirationDateTime))
) &&
(
this.SaleUnitRetailPriceAmount == input.SaleUnitRetailPriceAmount ||
(this.SaleUnitRetailPriceAmount != null &&
this.SaleUnitRetailPriceAmount.Equals(input.SaleUnitRetailPriceAmount))
) &&
(
this.CustomerID == input.CustomerID ||
(this.CustomerID != null &&
this.CustomerID.Equals(input.CustomerID))
) &&
(
this.CustomerGroupID == input.CustomerGroupID ||
(this.CustomerGroupID != null &&
this.CustomerGroupID.Equals(input.CustomerGroupID))
);
}
/// <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.PriceContractID != null)
hashCode = hashCode * 59 + this.PriceContractID.GetHashCode();
if (this.ItemID != null)
hashCode = hashCode * 59 + this.ItemID.GetHashCode();
if (this.PosItemID != null)
hashCode = hashCode * 59 + this.PosItemID.GetHashCode();
if (this.UnitOfMeasureCode != null)
hashCode = hashCode * 59 + this.UnitOfMeasureCode.GetHashCode();
if (this.EffectiveDateTime != null)
hashCode = hashCode * 59 + this.EffectiveDateTime.GetHashCode();
if (this.ExpirationDateTime != null)
hashCode = hashCode * 59 + this.ExpirationDateTime.GetHashCode();
if (this.SaleUnitRetailPriceAmount != null)
hashCode = hashCode * 59 + this.SaleUnitRetailPriceAmount.GetHashCode();
if (this.CustomerID != null)
hashCode = hashCode * 59 + this.CustomerID.GetHashCode();
if (this.CustomerGroupID != null)
hashCode = hashCode * 59 + this.CustomerGroupID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// RelatedItemAssociationTypeDO &lt;emph&gt;undocumented&lt;/emph&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO : IEquatable<ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="name">&lt;p&gt;The name of the association type&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="sortSequence">&lt;p&gt;A sequential number that indicates the order being used when displaying the association types in the launchpad function.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="purposeTypeCode">&lt;p&gt;The type of the purpose of the item association.&lt;br /&gt; Values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; * null - default, used for e.g. Variant, Bundle, Subtype, Ingredient&lt;br /&gt; * Meal - Component without Alternative items&lt;br /&gt; * MealAlternative - Component with Alternative items&lt;br /&gt; * Condiment - Condiment component&lt;br /&gt;&lt;/pre&gt;.</param>
/// <param name="translationList">&lt;p&gt;List of translations&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">packageID.</param>
/// <param name="tid">&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Generated, not imported.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO(ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey key = default(ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey), string name = default(string), int? sortSequence = default(int?), string purposeTypeCode = default(string), List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> translationList = default(List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO>), string packageID = default(string), string tid = default(string), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO and cannot be null");
}
else
{
this.Key = key;
}
this.Name = name;
this.SortSequence = sortSequence;
this.PurposeTypeCode = purposeTypeCode;
this.TranslationList = translationList;
this.PackageID = packageID;
this.Tid = tid;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The name of the association type&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The name of the association type&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }
/// <summary>
/// &lt;p&gt;A sequential number that indicates the order being used when displaying the association types in the launchpad function.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A sequential number that indicates the order being used when displaying the association types in the launchpad function.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="sortSequence", EmitDefaultValue=false)]
public int? SortSequence { get; set; }
/// <summary>
/// &lt;p&gt;The type of the purpose of the item association.&lt;br /&gt; Values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; * null - default, used for e.g. Variant, Bundle, Subtype, Ingredient&lt;br /&gt; * Meal - Component without Alternative items&lt;br /&gt; * MealAlternative - Component with Alternative items&lt;br /&gt; * Condiment - Condiment component&lt;br /&gt;&lt;/pre&gt;
/// </summary>
/// <value>&lt;p&gt;The type of the purpose of the item association.&lt;br /&gt; Values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; * null - default, used for e.g. Variant, Bundle, Subtype, Ingredient&lt;br /&gt; * Meal - Component without Alternative items&lt;br /&gt; * MealAlternative - Component with Alternative items&lt;br /&gt; * Condiment - Condiment component&lt;br /&gt;&lt;/pre&gt;</value>
[DataMember(Name="purposeTypeCode", EmitDefaultValue=false)]
public string PurposeTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;List of translations&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of translations&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="translationList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> TranslationList { get; set; }
/// <summary>
/// Gets or Sets PackageID
/// </summary>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Generated, not imported.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Generated, not imported.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tid", EmitDefaultValue=false)]
public string Tid { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" SortSequence: ").Append(SortSequence).Append("\n");
sb.Append(" PurposeTypeCode: ").Append(PurposeTypeCode).Append("\n");
sb.Append(" TranslationList: ").Append(TranslationList).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Tid: ").Append(Tid).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.SortSequence == input.SortSequence ||
(this.SortSequence != null &&
this.SortSequence.Equals(input.SortSequence))
) &&
(
this.PurposeTypeCode == input.PurposeTypeCode ||
(this.PurposeTypeCode != null &&
this.PurposeTypeCode.Equals(input.PurposeTypeCode))
) &&
(
this.TranslationList == input.TranslationList ||
this.TranslationList != null &&
this.TranslationList.SequenceEqual(input.TranslationList)
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Tid == input.Tid ||
(this.Tid != null &&
this.Tid.Equals(input.Tid))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.SortSequence != null)
hashCode = hashCode * 59 + this.SortSequence.GetHashCode();
if (this.PurposeTypeCode != null)
hashCode = hashCode * 59 + this.PurposeTypeCode.GetHashCode();
if (this.TranslationList != null)
hashCode = hashCode * 59 + this.TranslationList.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Tid != null)
hashCode = hashCode * 59 + this.Tid.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// RelatedItemAssociationTypeDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey : IEquatable<ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey" /> class.
/// </summary>
/// <param name="relatedItemAssociationTypeCode">&lt;p&gt;The type of the association&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey(string relatedItemAssociationTypeCode = default(string))
{
// to ensure "relatedItemAssociationTypeCode" is required (not null)
if (relatedItemAssociationTypeCode == null)
{
throw new InvalidDataException("relatedItemAssociationTypeCode is a required property for ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey and cannot be null");
}
else
{
this.RelatedItemAssociationTypeCode = relatedItemAssociationTypeCode;
}
}
/// <summary>
/// &lt;p&gt;The type of the association&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The type of the association&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="relatedItemAssociationTypeCode", EmitDefaultValue=false)]
public string RelatedItemAssociationTypeCode { 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 ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey {\n");
sb.Append(" RelatedItemAssociationTypeCode: ").Append(RelatedItemAssociationTypeCode).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 ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdRelatedItemAssociationTypeDtoDomRelatedItemAssociationTypeDOKey input)
{
if (input == null)
return false;
return
(
this.RelatedItemAssociationTypeCode == input.RelatedItemAssociationTypeCode ||
(this.RelatedItemAssociationTypeCode != null &&
this.RelatedItemAssociationTypeCode.Equals(input.RelatedItemAssociationTypeCode))
);
}
/// <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.RelatedItemAssociationTypeCode != null)
hashCode = hashCode * 59 + this.RelatedItemAssociationTypeCode.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// ScaleDomainDO &lt;p&gt;Scale domains are used for grouping scale items, e.g. meat, cheese, sausages.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO : IEquatable<ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="description">&lt;p&gt;Scales domain description&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO(ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey key = default(ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey), string description = default(string), string packageID = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO and cannot be null");
}
else
{
this.Key = key;
}
this.Description = description;
this.PackageID = packageID;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Scales domain description&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Scales domain description&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="description", EmitDefaultValue=false)]
public string Description { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// ScaleDomainDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey : IEquatable<ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="scaleDomainID">&lt;p&gt;Scales domain identifier&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey(string businessUnitGroupID = default(string), string scaleDomainID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "scaleDomainID" is required (not null)
if (scaleDomainID == null)
{
throw new InvalidDataException("scaleDomainID is a required property for ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey and cannot be null");
}
else
{
this.ScaleDomainID = scaleDomainID;
}
}
/// <summary>
/// &lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Scales domain identifier&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Scales domain identifier&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="scaleDomainID", EmitDefaultValue=false)]
public string ScaleDomainID { 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 ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" ScaleDomainID: ").Append(ScaleDomainID).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 ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdScaleDomainDtoDomScaleDomainDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.ScaleDomainID == input.ScaleDomainID ||
(this.ScaleDomainID != null &&
this.ScaleDomainID.Equals(input.ScaleDomainID))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.ScaleDomainID != null)
hashCode = hashCode * 59 + this.ScaleDomainID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderDO &lt;p&gt;Tender includes all the forms of payment that are accepted by the retail store in settling sales and other transactions.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO : IEquatable<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;Defines type of tender pickup:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NOT_ALLOWED(01) - Not allowed&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALLOWED(02) - Allowed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines type of tender pickup:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NOT_ALLOWED(01) - Not allowed&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALLOWED(02) - Allowed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum PickupTypeCodeEnum
{
/// <summary>
/// Enum NOTALLOWED for value: NOT_ALLOWED
/// </summary>
[EnumMember(Value = "NOT_ALLOWED")]
NOTALLOWED = 1,
/// <summary>
/// Enum ALLOWED for value: ALLOWED
/// </summary>
[EnumMember(Value = "ALLOWED")]
ALLOWED = 2
}
/// <summary>
/// &lt;p&gt;Defines type of tender pickup:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NOT_ALLOWED(01) - Not allowed&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALLOWED(02) - Allowed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines type of tender pickup:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NOT_ALLOWED(01) - Not allowed&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALLOWED(02) - Allowed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="pickupTypeCode", EmitDefaultValue=false)]
public PickupTypeCodeEnum? PickupTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A typecode to define how a tender is picked up from safe / delivered to bank:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_DELIVERY(00) - no delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_DELIVERY(01) - manual delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_DELIVERY(02) - automatic delivery&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;A typecode to define how a tender is picked up from safe / delivered to bank:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_DELIVERY(00) - no delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_DELIVERY(01) - manual delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_DELIVERY(02) - automatic delivery&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum DeliveryTypeCodeEnum
{
/// <summary>
/// Enum NODELIVERY for value: NO_DELIVERY
/// </summary>
[EnumMember(Value = "NO_DELIVERY")]
NODELIVERY = 1,
/// <summary>
/// Enum MANUALDELIVERY for value: MANUAL_DELIVERY
/// </summary>
[EnumMember(Value = "MANUAL_DELIVERY")]
MANUALDELIVERY = 2,
/// <summary>
/// Enum AUTOMATICDELIVERY for value: AUTOMATIC_DELIVERY
/// </summary>
[EnumMember(Value = "AUTOMATIC_DELIVERY")]
AUTOMATICDELIVERY = 3,
/// <summary>
/// Enum BANKPAYMENTONLY for value: BANK_PAYMENT_ONLY
/// </summary>
[EnumMember(Value = "BANK_PAYMENT_ONLY")]
BANKPAYMENTONLY = 4,
/// <summary>
/// Enum SAFEBAGPACKINGONLY for value: SAFEBAG_PACKING_ONLY
/// </summary>
[EnumMember(Value = "SAFEBAG_PACKING_ONLY")]
SAFEBAGPACKINGONLY = 5,
/// <summary>
/// Enum SAFEPAYOUTONLY for value: SAFE_PAYOUT_ONLY
/// </summary>
[EnumMember(Value = "SAFE_PAYOUT_ONLY")]
SAFEPAYOUTONLY = 6
}
/// <summary>
/// &lt;p&gt;A typecode to define how a tender is picked up from safe / delivered to bank:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_DELIVERY(00) - no delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_DELIVERY(01) - manual delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_DELIVERY(02) - automatic delivery&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;A typecode to define how a tender is picked up from safe / delivered to bank:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_DELIVERY(00) - no delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_DELIVERY(01) - manual delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_DELIVERY(02) - automatic delivery&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="deliveryTypeCode", EmitDefaultValue=false)]
public DeliveryTypeCodeEnum? DeliveryTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Defines whether payment amount should be entered.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; REQUIRED(01) - required&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL(02) - optional&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROHIBITED(03) - prohibited&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CONFIRM(04) - confirm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines whether payment amount should be entered.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; REQUIRED(01) - required&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL(02) - optional&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROHIBITED(03) - prohibited&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CONFIRM(04) - confirm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum InputAmountConstraintEnum
{
/// <summary>
/// Enum REQUIRED for value: REQUIRED
/// </summary>
[EnumMember(Value = "REQUIRED")]
REQUIRED = 1,
/// <summary>
/// Enum OPTIONAL for value: OPTIONAL
/// </summary>
[EnumMember(Value = "OPTIONAL")]
OPTIONAL = 2,
/// <summary>
/// Enum PROHIBITED for value: PROHIBITED
/// </summary>
[EnumMember(Value = "PROHIBITED")]
PROHIBITED = 3,
/// <summary>
/// Enum CONFIRM for value: CONFIRM
/// </summary>
[EnumMember(Value = "CONFIRM")]
CONFIRM = 4
}
/// <summary>
/// &lt;p&gt;Defines whether payment amount should be entered.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; REQUIRED(01) - required&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL(02) - optional&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROHIBITED(03) - prohibited&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CONFIRM(04) - confirm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines whether payment amount should be entered.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; REQUIRED(01) - required&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL(02) - optional&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROHIBITED(03) - prohibited&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CONFIRM(04) - confirm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="inputAmountConstraint", EmitDefaultValue=false)]
public InputAmountConstraintEnum? InputAmountConstraint { get; set; }
/// <summary>
/// &lt;p&gt;Defines what amount is allowed.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; EXACTLY(01) - EXACTLY&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_LESS(02) - EXACTLY_AND_LESS&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_MORE(03) - EXACTLY_AND_MORE&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALL(04) - ALL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines what amount is allowed.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; EXACTLY(01) - EXACTLY&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_LESS(02) - EXACTLY_AND_LESS&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_MORE(03) - EXACTLY_AND_MORE&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALL(04) - ALL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum AllowedAmountTypeCodeEnum
{
/// <summary>
/// Enum EXACTLY for value: EXACTLY
/// </summary>
[EnumMember(Value = "EXACTLY")]
EXACTLY = 1,
/// <summary>
/// Enum EXACTLYANDLESS for value: EXACTLY_AND_LESS
/// </summary>
[EnumMember(Value = "EXACTLY_AND_LESS")]
EXACTLYANDLESS = 2,
/// <summary>
/// Enum EXACTLYANDMORE for value: EXACTLY_AND_MORE
/// </summary>
[EnumMember(Value = "EXACTLY_AND_MORE")]
EXACTLYANDMORE = 3,
/// <summary>
/// Enum ALL for value: ALL
/// </summary>
[EnumMember(Value = "ALL")]
ALL = 4
}
/// <summary>
/// &lt;p&gt;Defines what amount is allowed.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; EXACTLY(01) - EXACTLY&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_LESS(02) - EXACTLY_AND_LESS&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_MORE(03) - EXACTLY_AND_MORE&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALL(04) - ALL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines what amount is allowed.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; EXACTLY(01) - EXACTLY&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_LESS(02) - EXACTLY_AND_LESS&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_MORE(03) - EXACTLY_AND_MORE&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALL(04) - ALL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="allowedAmountTypeCode", EmitDefaultValue=false)]
public AllowedAmountTypeCodeEnum? AllowedAmountTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Defines the tender group used by POS payment functions:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CASH,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; TERMINAL,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; GIFT_CERT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COUPON,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CHEQUE,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CREDIT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROMOTION,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; POINTS,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CASHENGINE&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the tender group used by POS payment functions:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CASH,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; TERMINAL,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; GIFT_CERT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COUPON,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CHEQUE,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CREDIT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROMOTION,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; POINTS,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CASHENGINE&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TenderGroupCodeEnum
{
/// <summary>
/// Enum CASH for value: CASH
/// </summary>
[EnumMember(Value = "CASH")]
CASH = 1,
/// <summary>
/// Enum TERMINAL for value: TERMINAL
/// </summary>
[EnumMember(Value = "TERMINAL")]
TERMINAL = 2,
/// <summary>
/// Enum GIFTCERT for value: GIFT_CERT
/// </summary>
[EnumMember(Value = "GIFT_CERT")]
GIFTCERT = 3,
/// <summary>
/// Enum COUPON for value: COUPON
/// </summary>
[EnumMember(Value = "COUPON")]
COUPON = 4,
/// <summary>
/// Enum CHEQUE for value: CHEQUE
/// </summary>
[EnumMember(Value = "CHEQUE")]
CHEQUE = 5,
/// <summary>
/// Enum CREDIT for value: CREDIT
/// </summary>
[EnumMember(Value = "CREDIT")]
CREDIT = 6,
/// <summary>
/// Enum PROMOTION for value: PROMOTION
/// </summary>
[EnumMember(Value = "PROMOTION")]
PROMOTION = 7,
/// <summary>
/// Enum POINTS for value: POINTS
/// </summary>
[EnumMember(Value = "POINTS")]
POINTS = 8,
/// <summary>
/// Enum CASHENGINE for value: CASHENGINE
/// </summary>
[EnumMember(Value = "CASHENGINE")]
CASHENGINE = 9
}
/// <summary>
/// &lt;p&gt;Defines the tender group used by POS payment functions:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CASH,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; TERMINAL,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; GIFT_CERT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COUPON,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CHEQUE,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CREDIT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROMOTION,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; POINTS,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CASHENGINE&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the tender group used by POS payment functions:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CASH,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; TERMINAL,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; GIFT_CERT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COUPON,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CHEQUE,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CREDIT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROMOTION,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; POINTS,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CASHENGINE&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="tenderGroupCode", EmitDefaultValue=false)]
public TenderGroupCodeEnum? TenderGroupCode { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the tender can be used only for sales, only for returns, or for both:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; SALES_AND_RETURNS(00) - for sales and returns&lt;/li&gt;&lt;br /&gt; &lt;li&gt; SALES(01) - only for sales&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RETURNS(02) - only for returns&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the tender can be used only for sales, only for returns, or for both:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; SALES_AND_RETURNS(00) - for sales and returns&lt;/li&gt;&lt;br /&gt; &lt;li&gt; SALES(01) - only for sales&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RETURNS(02) - only for returns&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum SaleReturnTypeCodeEnum
{
/// <summary>
/// Enum SALESANDRETURNS for value: SALES_AND_RETURNS
/// </summary>
[EnumMember(Value = "SALES_AND_RETURNS")]
SALESANDRETURNS = 1,
/// <summary>
/// Enum SALES for value: SALES
/// </summary>
[EnumMember(Value = "SALES")]
SALES = 2,
/// <summary>
/// Enum RETURNS for value: RETURNS
/// </summary>
[EnumMember(Value = "RETURNS")]
RETURNS = 3
}
/// <summary>
/// &lt;p&gt;Determines whether the tender can be used only for sales, only for returns, or for both:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; SALES_AND_RETURNS(00) - for sales and returns&lt;/li&gt;&lt;br /&gt; &lt;li&gt; SALES(01) - only for sales&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RETURNS(02) - only for returns&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the tender can be used only for sales, only for returns, or for both:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; SALES_AND_RETURNS(00) - for sales and returns&lt;/li&gt;&lt;br /&gt; &lt;li&gt; SALES(01) - only for sales&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RETURNS(02) - only for returns&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="saleReturnTypeCode", EmitDefaultValue=false)]
public SaleReturnTypeCodeEnum? SaleReturnTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether for this tender will be printed sales receipt:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_PRINTOUT(00) - automatic printout of sales receipt&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL_PRINTOUT(01) - optional printout (decision by user)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; NO_AUTOMATIC_PRINTOUT(02) - no automatic printout&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RECEIPT_AS_EMAIL(03) - receipt as email&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether for this tender will be printed sales receipt:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_PRINTOUT(00) - automatic printout of sales receipt&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL_PRINTOUT(01) - optional printout (decision by user)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; NO_AUTOMATIC_PRINTOUT(02) - no automatic printout&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RECEIPT_AS_EMAIL(03) - receipt as email&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum ReceiptPrintoutTypeCodeEnum
{
/// <summary>
/// Enum AUTOMATICPRINTOUT for value: AUTOMATIC_PRINTOUT
/// </summary>
[EnumMember(Value = "AUTOMATIC_PRINTOUT")]
AUTOMATICPRINTOUT = 1,
/// <summary>
/// Enum OPTIONALPRINTOUT for value: OPTIONAL_PRINTOUT
/// </summary>
[EnumMember(Value = "OPTIONAL_PRINTOUT")]
OPTIONALPRINTOUT = 2,
/// <summary>
/// Enum NOAUTOMATICPRINTOUT for value: NO_AUTOMATIC_PRINTOUT
/// </summary>
[EnumMember(Value = "NO_AUTOMATIC_PRINTOUT")]
NOAUTOMATICPRINTOUT = 3,
/// <summary>
/// Enum RECEIPTASEMAIL for value: RECEIPT_AS_EMAIL
/// </summary>
[EnumMember(Value = "RECEIPT_AS_EMAIL")]
RECEIPTASEMAIL = 4
}
/// <summary>
/// &lt;p&gt;Determines whether for this tender will be printed sales receipt:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_PRINTOUT(00) - automatic printout of sales receipt&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL_PRINTOUT(01) - optional printout (decision by user)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; NO_AUTOMATIC_PRINTOUT(02) - no automatic printout&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RECEIPT_AS_EMAIL(03) - receipt as email&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether for this tender will be printed sales receipt:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_PRINTOUT(00) - automatic printout of sales receipt&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL_PRINTOUT(01) - optional printout (decision by user)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; NO_AUTOMATIC_PRINTOUT(02) - no automatic printout&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RECEIPT_AS_EMAIL(03) - receipt as email&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="receiptPrintoutTypeCode", EmitDefaultValue=false)]
public ReceiptPrintoutTypeCodeEnum? ReceiptPrintoutTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A typecode to signify that only a specific group of items can be purchased using this tender.&lt;br /&gt; Possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; WIC - tender is allowed only for items with WICFlag&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FOST- tender is allowed only for items with AllowFoodStampFlag&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;A typecode to signify that only a specific group of items can be purchased using this tender.&lt;br /&gt; Possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; WIC - tender is allowed only for items with WICFlag&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FOST- tender is allowed only for items with AllowFoodStampFlag&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum ItemRestrictApplyTypeCodeEnum
{
/// <summary>
/// Enum WIC for value: WIC
/// </summary>
[EnumMember(Value = "WIC")]
WIC = 1,
/// <summary>
/// Enum FOST for value: FOST
/// </summary>
[EnumMember(Value = "FOST")]
FOST = 2
}
/// <summary>
/// &lt;p&gt;A typecode to signify that only a specific group of items can be purchased using this tender.&lt;br /&gt; Possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; WIC - tender is allowed only for items with WICFlag&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FOST- tender is allowed only for items with AllowFoodStampFlag&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;A typecode to signify that only a specific group of items can be purchased using this tender.&lt;br /&gt; Possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; WIC - tender is allowed only for items with WICFlag&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FOST- tender is allowed only for items with AllowFoodStampFlag&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="itemRestrictApplyTypeCode", EmitDefaultValue=false)]
public ItemRestrictApplyTypeCodeEnum? ItemRestrictApplyTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;
/// </summary>
/// <value>&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum OriginEnum
{
/// <summary>
/// Enum PARENTCOPY for value: PARENT_COPY
/// </summary>
[EnumMember(Value = "PARENT_COPY")]
PARENTCOPY = 1,
/// <summary>
/// Enum IMPORT for value: IMPORT
/// </summary>
[EnumMember(Value = "IMPORT")]
IMPORT = 2,
/// <summary>
/// Enum MANUAL for value: MANUAL
/// </summary>
[EnumMember(Value = "MANUAL")]
MANUAL = 3
}
/// <summary>
/// &lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;
/// </summary>
/// <value>&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;</value>
[DataMember(Name="origin", EmitDefaultValue=false)]
public OriginEnum? Origin { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="tenderClassCode">&lt;p&gt;A code to denote a group of tenders with common characteristics, e.g. payment cards, certificates, etc.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="description">&lt;p&gt;Description of the tender type.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="minimumAcceptAmount">&lt;p&gt;The minimum value that can be accepted for an individual tender. For example, certain retailers will not accept card payments below $5.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="maximumAcceptAmount">&lt;p&gt;The maximum amount that can be accepted for a specific tender type.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="itemRestrictionsApplyFlag">&lt;p&gt;A flag to signify that specific groups of items cannot be purchased using certain tender types. For example, food stamps cannot be used to purchase alcohol or tobacco items.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="openCashDrawerRequiredFlag">&lt;p&gt;A flag that signifies that the cash drawer opens if a certain specific tender type is offered by the customer. For example, cash.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="changeThresholdAmount">&lt;p&gt;The maximum change that can be offered to a customer for a specific tender type.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tillCountFlag">&lt;p&gt;Determines whether the tender should be shown in accounting functions for tills.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="denominationFlag">&lt;p&gt;Determines whether denomination is applicable for the tender.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="pickupTypeCode">&lt;p&gt;Defines type of tender pickup:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NOT_ALLOWED(01) - Not allowed&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALLOWED(02) - Allowed&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="changeAllowedFlag">&lt;p&gt;Determines whether change is possible.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="unitCountRequiredFlag">&lt;p&gt;Defines if the tender count is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="amountCountRequiredFlag">&lt;p&gt;Defines if the tender amount is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="voidingAllowedFlag">&lt;p&gt;Defines whether a sales transaction which contains this tender can be voided later.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="depositAllowedFlag">&lt;p&gt;Determines whether this tender is allowed for deposit.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="blockingFlag">&lt;p&gt;Determines whether this tender can be used for payment and accounting.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="deliveryTypeCode">&lt;p&gt;A typecode to define how a tender is picked up from safe / delivered to bank:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_DELIVERY(00) - no delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_DELIVERY(01) - manual delivery&lt;/li&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_DELIVERY(02) - automatic delivery&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="controlledBySafeFlag">&lt;p&gt;Determines whether the tender should be shown in safe accounting functions.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="inputAmountConstraint">&lt;p&gt;Defines whether payment amount should be entered.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; REQUIRED(01) - required&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL(02) - optional&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROHIBITED(03) - prohibited&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CONFIRM(04) - confirm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="allowedAmountTypeCode">&lt;p&gt;Defines what amount is allowed.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; EXACTLY(01) - EXACTLY&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_LESS(02) - EXACTLY_AND_LESS&lt;/li&gt;&lt;br /&gt; &lt;li&gt; EXACTLY_AND_MORE(03) - EXACTLY_AND_MORE&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ALL(04) - ALL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="tenderGroupCode">&lt;p&gt;Defines the tender group used by POS payment functions:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CASH,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; TERMINAL,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; GIFT_CERT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COUPON,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CHEQUE,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CREDIT,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; PROMOTION,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; POINTS,&lt;/li&gt;&lt;br /&gt; &lt;li&gt; CASHENGINE&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="checkAvailableAmountFlag">&lt;p&gt;This flag determines whether the current value of the tender in the till is checked.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="pickupWarningFlag">&lt;p&gt;If this flag is set to true, a warning is shown on POS in the case that the actual amount of the till for that tender is equal or larger than the PickupWarningLimit&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="pickupWarningLimit">&lt;p&gt;Defines the limit for a tender pickup from the till, see also PickupWarningFlag&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="immediateVoidingAllowedFlag">&lt;p&gt;Defines whether this tender can be voided during the tender registration process (i.e. while the transaction is not finished yet)&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="receiptPrinterName">&lt;p&gt;Additional tender description which is used on POS side.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="exclusiveFlag">&lt;p&gt;Defines whether this tender can be used only exclusively, i.e. no other tenders can be combined with it in one transaction.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="saleReturnTypeCode">&lt;p&gt;Determines whether the tender can be used only for sales, only for returns, or for both:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; SALES_AND_RETURNS(00) - for sales and returns&lt;/li&gt;&lt;br /&gt; &lt;li&gt; SALES(01) - only for sales&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RETURNS(02) - only for returns&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="sortSequence">&lt;p&gt;Sort sequence for tenders in reports and backoffice functions.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="safeCountFlag">&lt;p&gt;Determines whether this tender will be counted for safe.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="receiptPrintoutTypeCode">&lt;p&gt;Determines whether for this tender will be printed sales receipt:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; AUTOMATIC_PRINTOUT(00) - automatic printout of sales receipt&lt;/li&gt;&lt;br /&gt; &lt;li&gt; OPTIONAL_PRINTOUT(01) - optional printout (decision by user)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; NO_AUTOMATIC_PRINTOUT(02) - no automatic printout&lt;/li&gt;&lt;br /&gt; &lt;li&gt; RECEIPT_AS_EMAIL(03) - receipt as email&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="negativeValueAllowedFlag">&lt;p&gt;Determines whether negative values can be input; is used in the context of foreign turnover registration.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="itemRestrictApplyTypeCode">&lt;p&gt;A typecode to signify that only a specific group of items can be purchased using this tender.&lt;br /&gt; Possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; WIC - tender is allowed only for items with WICFlag&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FOST- tender is allowed only for items with AllowFoodStampFlag&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="roundingRequiredFlag">&lt;p&gt;Determines whether the tender amount has to be rounded according to the rounding rules of the main currency&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tenderHandlingRuleID">&lt;p&gt;Reference to the tender handling rule (tender fields additional to ARTS)&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tenderRestrictionRuleList">&lt;p&gt;List of tender restriction rules.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="translationList">&lt;p&gt;List of translations for the tender.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="origin">&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;.</param>
/// <param name="tid">&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isocurrencyCode">&lt;p&gt;The identifier of the currency used for the tender.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey key = default(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey), string tenderClassCode = default(string), string description = default(string), double? minimumAcceptAmount = default(double?), double? maximumAcceptAmount = default(double?), bool? itemRestrictionsApplyFlag = default(bool?), bool? openCashDrawerRequiredFlag = default(bool?), double? changeThresholdAmount = default(double?), bool? tillCountFlag = default(bool?), bool? denominationFlag = default(bool?), PickupTypeCodeEnum? pickupTypeCode = default(PickupTypeCodeEnum?), bool? changeAllowedFlag = default(bool?), bool? unitCountRequiredFlag = default(bool?), bool? amountCountRequiredFlag = default(bool?), bool? voidingAllowedFlag = default(bool?), bool? depositAllowedFlag = default(bool?), bool? blockingFlag = default(bool?), DeliveryTypeCodeEnum? deliveryTypeCode = default(DeliveryTypeCodeEnum?), bool? controlledBySafeFlag = default(bool?), InputAmountConstraintEnum? inputAmountConstraint = default(InputAmountConstraintEnum?), AllowedAmountTypeCodeEnum? allowedAmountTypeCode = default(AllowedAmountTypeCodeEnum?), TenderGroupCodeEnum? tenderGroupCode = default(TenderGroupCodeEnum?), bool? checkAvailableAmountFlag = default(bool?), bool? pickupWarningFlag = default(bool?), double? pickupWarningLimit = default(double?), bool? immediateVoidingAllowedFlag = default(bool?), string receiptPrinterName = default(string), bool? exclusiveFlag = default(bool?), SaleReturnTypeCodeEnum? saleReturnTypeCode = default(SaleReturnTypeCodeEnum?), int? sortSequence = default(int?), bool? safeCountFlag = default(bool?), ReceiptPrintoutTypeCodeEnum? receiptPrintoutTypeCode = default(ReceiptPrintoutTypeCodeEnum?), bool? negativeValueAllowedFlag = default(bool?), ItemRestrictApplyTypeCodeEnum? itemRestrictApplyTypeCode = default(ItemRestrictApplyTypeCodeEnum?), bool? roundingRequiredFlag = default(bool?), string tenderHandlingRuleID = default(string), List<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule> tenderRestrictionRuleList = default(List<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule>), List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> translationList = default(List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO>), string packageID = default(string), OriginEnum? origin = default(OriginEnum?), string tid = default(string), string xxcustom05 = default(string), string isocurrencyCode = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "tenderClassCode" is required (not null)
if (tenderClassCode == null)
{
throw new InvalidDataException("tenderClassCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO and cannot be null");
}
else
{
this.TenderClassCode = tenderClassCode;
}
// to ensure "isocurrencyCode" is required (not null)
if (isocurrencyCode == null)
{
throw new InvalidDataException("isocurrencyCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO and cannot be null");
}
else
{
this.IsocurrencyCode = isocurrencyCode;
}
this.Description = description;
this.MinimumAcceptAmount = minimumAcceptAmount;
this.MaximumAcceptAmount = maximumAcceptAmount;
this.ItemRestrictionsApplyFlag = itemRestrictionsApplyFlag;
this.OpenCashDrawerRequiredFlag = openCashDrawerRequiredFlag;
this.ChangeThresholdAmount = changeThresholdAmount;
this.TillCountFlag = tillCountFlag;
this.DenominationFlag = denominationFlag;
this.PickupTypeCode = pickupTypeCode;
this.ChangeAllowedFlag = changeAllowedFlag;
this.UnitCountRequiredFlag = unitCountRequiredFlag;
this.AmountCountRequiredFlag = amountCountRequiredFlag;
this.VoidingAllowedFlag = voidingAllowedFlag;
this.DepositAllowedFlag = depositAllowedFlag;
this.BlockingFlag = blockingFlag;
this.DeliveryTypeCode = deliveryTypeCode;
this.ControlledBySafeFlag = controlledBySafeFlag;
this.InputAmountConstraint = inputAmountConstraint;
this.AllowedAmountTypeCode = allowedAmountTypeCode;
this.TenderGroupCode = tenderGroupCode;
this.CheckAvailableAmountFlag = checkAvailableAmountFlag;
this.PickupWarningFlag = pickupWarningFlag;
this.PickupWarningLimit = pickupWarningLimit;
this.ImmediateVoidingAllowedFlag = immediateVoidingAllowedFlag;
this.ReceiptPrinterName = receiptPrinterName;
this.ExclusiveFlag = exclusiveFlag;
this.SaleReturnTypeCode = saleReturnTypeCode;
this.SortSequence = sortSequence;
this.SafeCountFlag = safeCountFlag;
this.ReceiptPrintoutTypeCode = receiptPrintoutTypeCode;
this.NegativeValueAllowedFlag = negativeValueAllowedFlag;
this.ItemRestrictApplyTypeCode = itemRestrictApplyTypeCode;
this.RoundingRequiredFlag = roundingRequiredFlag;
this.TenderHandlingRuleID = tenderHandlingRuleID;
this.TenderRestrictionRuleList = tenderRestrictionRuleList;
this.TranslationList = translationList;
this.PackageID = packageID;
this.Origin = origin;
this.Tid = tid;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;A code to denote a group of tenders with common characteristics, e.g. payment cards, certificates, etc.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code to denote a group of tenders with common characteristics, e.g. payment cards, certificates, etc.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tenderClassCode", EmitDefaultValue=false)]
public string TenderClassCode { get; set; }
/// <summary>
/// &lt;p&gt;Description of the tender type.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Description of the tender type.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="description", EmitDefaultValue=false)]
public string Description { get; set; }
/// <summary>
/// &lt;p&gt;The minimum value that can be accepted for an individual tender. For example, certain retailers will not accept card payments below $5.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The minimum value that can be accepted for an individual tender. For example, certain retailers will not accept card payments below $5.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="minimumAcceptAmount", EmitDefaultValue=false)]
public double? MinimumAcceptAmount { get; set; }
/// <summary>
/// &lt;p&gt;The maximum amount that can be accepted for a specific tender type.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The maximum amount that can be accepted for a specific tender type.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="maximumAcceptAmount", EmitDefaultValue=false)]
public double? MaximumAcceptAmount { get; set; }
/// <summary>
/// &lt;p&gt;A flag to signify that specific groups of items cannot be purchased using certain tender types. For example, food stamps cannot be used to purchase alcohol or tobacco items.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A flag to signify that specific groups of items cannot be purchased using certain tender types. For example, food stamps cannot be used to purchase alcohol or tobacco items.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="itemRestrictionsApplyFlag", EmitDefaultValue=false)]
public bool? ItemRestrictionsApplyFlag { get; set; }
/// <summary>
/// &lt;p&gt;A flag that signifies that the cash drawer opens if a certain specific tender type is offered by the customer. For example, cash.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A flag that signifies that the cash drawer opens if a certain specific tender type is offered by the customer. For example, cash.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="openCashDrawerRequiredFlag", EmitDefaultValue=false)]
public bool? OpenCashDrawerRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;The maximum change that can be offered to a customer for a specific tender type.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The maximum change that can be offered to a customer for a specific tender type.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="changeThresholdAmount", EmitDefaultValue=false)]
public double? ChangeThresholdAmount { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the tender should be shown in accounting functions for tills.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the tender should be shown in accounting functions for tills.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillCountFlag", EmitDefaultValue=false)]
public bool? TillCountFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether denomination is applicable for the tender.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether denomination is applicable for the tender.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="denominationFlag", EmitDefaultValue=false)]
public bool? DenominationFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether change is possible.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether change is possible.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="changeAllowedFlag", EmitDefaultValue=false)]
public bool? ChangeAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Defines if the tender count is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines if the tender count is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="unitCountRequiredFlag", EmitDefaultValue=false)]
public bool? UnitCountRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;Defines if the tender amount is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines if the tender amount is registered in accounting functions.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="amountCountRequiredFlag", EmitDefaultValue=false)]
public bool? AmountCountRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;Defines whether a sales transaction which contains this tender can be voided later.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines whether a sales transaction which contains this tender can be voided later.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="voidingAllowedFlag", EmitDefaultValue=false)]
public bool? VoidingAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether this tender is allowed for deposit.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether this tender is allowed for deposit.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="depositAllowedFlag", EmitDefaultValue=false)]
public bool? DepositAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether this tender can be used for payment and accounting.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether this tender can be used for payment and accounting.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="blockingFlag", EmitDefaultValue=false)]
public bool? BlockingFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the tender should be shown in safe accounting functions.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the tender should be shown in safe accounting functions.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="controlledBySafeFlag", EmitDefaultValue=false)]
public bool? ControlledBySafeFlag { get; set; }
/// <summary>
/// &lt;p&gt;This flag determines whether the current value of the tender in the till is checked.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;This flag determines whether the current value of the tender in the till is checked.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="checkAvailableAmountFlag", EmitDefaultValue=false)]
public bool? CheckAvailableAmountFlag { get; set; }
/// <summary>
/// &lt;p&gt;If this flag is set to true, a warning is shown on POS in the case that the actual amount of the till for that tender is equal or larger than the PickupWarningLimit&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;If this flag is set to true, a warning is shown on POS in the case that the actual amount of the till for that tender is equal or larger than the PickupWarningLimit&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="pickupWarningFlag", EmitDefaultValue=false)]
public bool? PickupWarningFlag { get; set; }
/// <summary>
/// &lt;p&gt;Defines the limit for a tender pickup from the till, see also PickupWarningFlag&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the limit for a tender pickup from the till, see also PickupWarningFlag&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="pickupWarningLimit", EmitDefaultValue=false)]
public double? PickupWarningLimit { get; set; }
/// <summary>
/// &lt;p&gt;Defines whether this tender can be voided during the tender registration process (i.e. while the transaction is not finished yet)&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines whether this tender can be voided during the tender registration process (i.e. while the transaction is not finished yet)&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="immediateVoidingAllowedFlag", EmitDefaultValue=false)]
public bool? ImmediateVoidingAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Additional tender description which is used on POS side.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional tender description which is used on POS side.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="receiptPrinterName", EmitDefaultValue=false)]
public string ReceiptPrinterName { get; set; }
/// <summary>
/// &lt;p&gt;Defines whether this tender can be used only exclusively, i.e. no other tenders can be combined with it in one transaction.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines whether this tender can be used only exclusively, i.e. no other tenders can be combined with it in one transaction.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="exclusiveFlag", EmitDefaultValue=false)]
public bool? ExclusiveFlag { get; set; }
/// <summary>
/// &lt;p&gt;Sort sequence for tenders in reports and backoffice functions.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Sort sequence for tenders in reports and backoffice functions.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="sortSequence", EmitDefaultValue=false)]
public int? SortSequence { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether this tender will be counted for safe.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether this tender will be counted for safe.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="safeCountFlag", EmitDefaultValue=false)]
public bool? SafeCountFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether negative values can be input; is used in the context of foreign turnover registration.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether negative values can be input; is used in the context of foreign turnover registration.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="negativeValueAllowedFlag", EmitDefaultValue=false)]
public bool? NegativeValueAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the tender amount has to be rounded according to the rounding rules of the main currency&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the tender amount has to be rounded according to the rounding rules of the main currency&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="roundingRequiredFlag", EmitDefaultValue=false)]
public bool? RoundingRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;Reference to the tender handling rule (tender fields additional to ARTS)&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Reference to the tender handling rule (tender fields additional to ARTS)&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tenderHandlingRuleID", EmitDefaultValue=false)]
public string TenderHandlingRuleID { get; set; }
/// <summary>
/// &lt;p&gt;List of tender restriction rules.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of tender restriction rules.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tenderRestrictionRuleList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule> TenderRestrictionRuleList { get; set; }
/// <summary>
/// &lt;p&gt;List of translations for the tender.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of translations for the tender.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="translationList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> TranslationList { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tid", EmitDefaultValue=false)]
public string Tid { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;The identifier of the currency used for the tender.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier of the currency used for the tender.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocurrencyCode", EmitDefaultValue=false)]
public string IsocurrencyCode { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" TenderClassCode: ").Append(TenderClassCode).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" MinimumAcceptAmount: ").Append(MinimumAcceptAmount).Append("\n");
sb.Append(" MaximumAcceptAmount: ").Append(MaximumAcceptAmount).Append("\n");
sb.Append(" ItemRestrictionsApplyFlag: ").Append(ItemRestrictionsApplyFlag).Append("\n");
sb.Append(" OpenCashDrawerRequiredFlag: ").Append(OpenCashDrawerRequiredFlag).Append("\n");
sb.Append(" ChangeThresholdAmount: ").Append(ChangeThresholdAmount).Append("\n");
sb.Append(" TillCountFlag: ").Append(TillCountFlag).Append("\n");
sb.Append(" DenominationFlag: ").Append(DenominationFlag).Append("\n");
sb.Append(" PickupTypeCode: ").Append(PickupTypeCode).Append("\n");
sb.Append(" ChangeAllowedFlag: ").Append(ChangeAllowedFlag).Append("\n");
sb.Append(" UnitCountRequiredFlag: ").Append(UnitCountRequiredFlag).Append("\n");
sb.Append(" AmountCountRequiredFlag: ").Append(AmountCountRequiredFlag).Append("\n");
sb.Append(" VoidingAllowedFlag: ").Append(VoidingAllowedFlag).Append("\n");
sb.Append(" DepositAllowedFlag: ").Append(DepositAllowedFlag).Append("\n");
sb.Append(" BlockingFlag: ").Append(BlockingFlag).Append("\n");
sb.Append(" DeliveryTypeCode: ").Append(DeliveryTypeCode).Append("\n");
sb.Append(" ControlledBySafeFlag: ").Append(ControlledBySafeFlag).Append("\n");
sb.Append(" InputAmountConstraint: ").Append(InputAmountConstraint).Append("\n");
sb.Append(" AllowedAmountTypeCode: ").Append(AllowedAmountTypeCode).Append("\n");
sb.Append(" TenderGroupCode: ").Append(TenderGroupCode).Append("\n");
sb.Append(" CheckAvailableAmountFlag: ").Append(CheckAvailableAmountFlag).Append("\n");
sb.Append(" PickupWarningFlag: ").Append(PickupWarningFlag).Append("\n");
sb.Append(" PickupWarningLimit: ").Append(PickupWarningLimit).Append("\n");
sb.Append(" ImmediateVoidingAllowedFlag: ").Append(ImmediateVoidingAllowedFlag).Append("\n");
sb.Append(" ReceiptPrinterName: ").Append(ReceiptPrinterName).Append("\n");
sb.Append(" ExclusiveFlag: ").Append(ExclusiveFlag).Append("\n");
sb.Append(" SaleReturnTypeCode: ").Append(SaleReturnTypeCode).Append("\n");
sb.Append(" SortSequence: ").Append(SortSequence).Append("\n");
sb.Append(" SafeCountFlag: ").Append(SafeCountFlag).Append("\n");
sb.Append(" ReceiptPrintoutTypeCode: ").Append(ReceiptPrintoutTypeCode).Append("\n");
sb.Append(" NegativeValueAllowedFlag: ").Append(NegativeValueAllowedFlag).Append("\n");
sb.Append(" ItemRestrictApplyTypeCode: ").Append(ItemRestrictApplyTypeCode).Append("\n");
sb.Append(" RoundingRequiredFlag: ").Append(RoundingRequiredFlag).Append("\n");
sb.Append(" TenderHandlingRuleID: ").Append(TenderHandlingRuleID).Append("\n");
sb.Append(" TenderRestrictionRuleList: ").Append(TenderRestrictionRuleList).Append("\n");
sb.Append(" TranslationList: ").Append(TranslationList).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Origin: ").Append(Origin).Append("\n");
sb.Append(" Tid: ").Append(Tid).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" IsocurrencyCode: ").Append(IsocurrencyCode).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.TenderClassCode == input.TenderClassCode ||
(this.TenderClassCode != null &&
this.TenderClassCode.Equals(input.TenderClassCode))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.MinimumAcceptAmount == input.MinimumAcceptAmount ||
(this.MinimumAcceptAmount != null &&
this.MinimumAcceptAmount.Equals(input.MinimumAcceptAmount))
) &&
(
this.MaximumAcceptAmount == input.MaximumAcceptAmount ||
(this.MaximumAcceptAmount != null &&
this.MaximumAcceptAmount.Equals(input.MaximumAcceptAmount))
) &&
(
this.ItemRestrictionsApplyFlag == input.ItemRestrictionsApplyFlag ||
(this.ItemRestrictionsApplyFlag != null &&
this.ItemRestrictionsApplyFlag.Equals(input.ItemRestrictionsApplyFlag))
) &&
(
this.OpenCashDrawerRequiredFlag == input.OpenCashDrawerRequiredFlag ||
(this.OpenCashDrawerRequiredFlag != null &&
this.OpenCashDrawerRequiredFlag.Equals(input.OpenCashDrawerRequiredFlag))
) &&
(
this.ChangeThresholdAmount == input.ChangeThresholdAmount ||
(this.ChangeThresholdAmount != null &&
this.ChangeThresholdAmount.Equals(input.ChangeThresholdAmount))
) &&
(
this.TillCountFlag == input.TillCountFlag ||
(this.TillCountFlag != null &&
this.TillCountFlag.Equals(input.TillCountFlag))
) &&
(
this.DenominationFlag == input.DenominationFlag ||
(this.DenominationFlag != null &&
this.DenominationFlag.Equals(input.DenominationFlag))
) &&
(
this.PickupTypeCode == input.PickupTypeCode ||
(this.PickupTypeCode != null &&
this.PickupTypeCode.Equals(input.PickupTypeCode))
) &&
(
this.ChangeAllowedFlag == input.ChangeAllowedFlag ||
(this.ChangeAllowedFlag != null &&
this.ChangeAllowedFlag.Equals(input.ChangeAllowedFlag))
) &&
(
this.UnitCountRequiredFlag == input.UnitCountRequiredFlag ||
(this.UnitCountRequiredFlag != null &&
this.UnitCountRequiredFlag.Equals(input.UnitCountRequiredFlag))
) &&
(
this.AmountCountRequiredFlag == input.AmountCountRequiredFlag ||
(this.AmountCountRequiredFlag != null &&
this.AmountCountRequiredFlag.Equals(input.AmountCountRequiredFlag))
) &&
(
this.VoidingAllowedFlag == input.VoidingAllowedFlag ||
(this.VoidingAllowedFlag != null &&
this.VoidingAllowedFlag.Equals(input.VoidingAllowedFlag))
) &&
(
this.DepositAllowedFlag == input.DepositAllowedFlag ||
(this.DepositAllowedFlag != null &&
this.DepositAllowedFlag.Equals(input.DepositAllowedFlag))
) &&
(
this.BlockingFlag == input.BlockingFlag ||
(this.BlockingFlag != null &&
this.BlockingFlag.Equals(input.BlockingFlag))
) &&
(
this.DeliveryTypeCode == input.DeliveryTypeCode ||
(this.DeliveryTypeCode != null &&
this.DeliveryTypeCode.Equals(input.DeliveryTypeCode))
) &&
(
this.ControlledBySafeFlag == input.ControlledBySafeFlag ||
(this.ControlledBySafeFlag != null &&
this.ControlledBySafeFlag.Equals(input.ControlledBySafeFlag))
) &&
(
this.InputAmountConstraint == input.InputAmountConstraint ||
(this.InputAmountConstraint != null &&
this.InputAmountConstraint.Equals(input.InputAmountConstraint))
) &&
(
this.AllowedAmountTypeCode == input.AllowedAmountTypeCode ||
(this.AllowedAmountTypeCode != null &&
this.AllowedAmountTypeCode.Equals(input.AllowedAmountTypeCode))
) &&
(
this.TenderGroupCode == input.TenderGroupCode ||
(this.TenderGroupCode != null &&
this.TenderGroupCode.Equals(input.TenderGroupCode))
) &&
(
this.CheckAvailableAmountFlag == input.CheckAvailableAmountFlag ||
(this.CheckAvailableAmountFlag != null &&
this.CheckAvailableAmountFlag.Equals(input.CheckAvailableAmountFlag))
) &&
(
this.PickupWarningFlag == input.PickupWarningFlag ||
(this.PickupWarningFlag != null &&
this.PickupWarningFlag.Equals(input.PickupWarningFlag))
) &&
(
this.PickupWarningLimit == input.PickupWarningLimit ||
(this.PickupWarningLimit != null &&
this.PickupWarningLimit.Equals(input.PickupWarningLimit))
) &&
(
this.ImmediateVoidingAllowedFlag == input.ImmediateVoidingAllowedFlag ||
(this.ImmediateVoidingAllowedFlag != null &&
this.ImmediateVoidingAllowedFlag.Equals(input.ImmediateVoidingAllowedFlag))
) &&
(
this.ReceiptPrinterName == input.ReceiptPrinterName ||
(this.ReceiptPrinterName != null &&
this.ReceiptPrinterName.Equals(input.ReceiptPrinterName))
) &&
(
this.ExclusiveFlag == input.ExclusiveFlag ||
(this.ExclusiveFlag != null &&
this.ExclusiveFlag.Equals(input.ExclusiveFlag))
) &&
(
this.SaleReturnTypeCode == input.SaleReturnTypeCode ||
(this.SaleReturnTypeCode != null &&
this.SaleReturnTypeCode.Equals(input.SaleReturnTypeCode))
) &&
(
this.SortSequence == input.SortSequence ||
(this.SortSequence != null &&
this.SortSequence.Equals(input.SortSequence))
) &&
(
this.SafeCountFlag == input.SafeCountFlag ||
(this.SafeCountFlag != null &&
this.SafeCountFlag.Equals(input.SafeCountFlag))
) &&
(
this.ReceiptPrintoutTypeCode == input.ReceiptPrintoutTypeCode ||
(this.ReceiptPrintoutTypeCode != null &&
this.ReceiptPrintoutTypeCode.Equals(input.ReceiptPrintoutTypeCode))
) &&
(
this.NegativeValueAllowedFlag == input.NegativeValueAllowedFlag ||
(this.NegativeValueAllowedFlag != null &&
this.NegativeValueAllowedFlag.Equals(input.NegativeValueAllowedFlag))
) &&
(
this.ItemRestrictApplyTypeCode == input.ItemRestrictApplyTypeCode ||
(this.ItemRestrictApplyTypeCode != null &&
this.ItemRestrictApplyTypeCode.Equals(input.ItemRestrictApplyTypeCode))
) &&
(
this.RoundingRequiredFlag == input.RoundingRequiredFlag ||
(this.RoundingRequiredFlag != null &&
this.RoundingRequiredFlag.Equals(input.RoundingRequiredFlag))
) &&
(
this.TenderHandlingRuleID == input.TenderHandlingRuleID ||
(this.TenderHandlingRuleID != null &&
this.TenderHandlingRuleID.Equals(input.TenderHandlingRuleID))
) &&
(
this.TenderRestrictionRuleList == input.TenderRestrictionRuleList ||
this.TenderRestrictionRuleList != null &&
this.TenderRestrictionRuleList.SequenceEqual(input.TenderRestrictionRuleList)
) &&
(
this.TranslationList == input.TranslationList ||
this.TranslationList != null &&
this.TranslationList.SequenceEqual(input.TranslationList)
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Origin == input.Origin ||
(this.Origin != null &&
this.Origin.Equals(input.Origin))
) &&
(
this.Tid == input.Tid ||
(this.Tid != null &&
this.Tid.Equals(input.Tid))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.IsocurrencyCode == input.IsocurrencyCode ||
(this.IsocurrencyCode != null &&
this.IsocurrencyCode.Equals(input.IsocurrencyCode))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.TenderClassCode != null)
hashCode = hashCode * 59 + this.TenderClassCode.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.MinimumAcceptAmount != null)
hashCode = hashCode * 59 + this.MinimumAcceptAmount.GetHashCode();
if (this.MaximumAcceptAmount != null)
hashCode = hashCode * 59 + this.MaximumAcceptAmount.GetHashCode();
if (this.ItemRestrictionsApplyFlag != null)
hashCode = hashCode * 59 + this.ItemRestrictionsApplyFlag.GetHashCode();
if (this.OpenCashDrawerRequiredFlag != null)
hashCode = hashCode * 59 + this.OpenCashDrawerRequiredFlag.GetHashCode();
if (this.ChangeThresholdAmount != null)
hashCode = hashCode * 59 + this.ChangeThresholdAmount.GetHashCode();
if (this.TillCountFlag != null)
hashCode = hashCode * 59 + this.TillCountFlag.GetHashCode();
if (this.DenominationFlag != null)
hashCode = hashCode * 59 + this.DenominationFlag.GetHashCode();
if (this.PickupTypeCode != null)
hashCode = hashCode * 59 + this.PickupTypeCode.GetHashCode();
if (this.ChangeAllowedFlag != null)
hashCode = hashCode * 59 + this.ChangeAllowedFlag.GetHashCode();
if (this.UnitCountRequiredFlag != null)
hashCode = hashCode * 59 + this.UnitCountRequiredFlag.GetHashCode();
if (this.AmountCountRequiredFlag != null)
hashCode = hashCode * 59 + this.AmountCountRequiredFlag.GetHashCode();
if (this.VoidingAllowedFlag != null)
hashCode = hashCode * 59 + this.VoidingAllowedFlag.GetHashCode();
if (this.DepositAllowedFlag != null)
hashCode = hashCode * 59 + this.DepositAllowedFlag.GetHashCode();
if (this.BlockingFlag != null)
hashCode = hashCode * 59 + this.BlockingFlag.GetHashCode();
if (this.DeliveryTypeCode != null)
hashCode = hashCode * 59 + this.DeliveryTypeCode.GetHashCode();
if (this.ControlledBySafeFlag != null)
hashCode = hashCode * 59 + this.ControlledBySafeFlag.GetHashCode();
if (this.InputAmountConstraint != null)
hashCode = hashCode * 59 + this.InputAmountConstraint.GetHashCode();
if (this.AllowedAmountTypeCode != null)
hashCode = hashCode * 59 + this.AllowedAmountTypeCode.GetHashCode();
if (this.TenderGroupCode != null)
hashCode = hashCode * 59 + this.TenderGroupCode.GetHashCode();
if (this.CheckAvailableAmountFlag != null)
hashCode = hashCode * 59 + this.CheckAvailableAmountFlag.GetHashCode();
if (this.PickupWarningFlag != null)
hashCode = hashCode * 59 + this.PickupWarningFlag.GetHashCode();
if (this.PickupWarningLimit != null)
hashCode = hashCode * 59 + this.PickupWarningLimit.GetHashCode();
if (this.ImmediateVoidingAllowedFlag != null)
hashCode = hashCode * 59 + this.ImmediateVoidingAllowedFlag.GetHashCode();
if (this.ReceiptPrinterName != null)
hashCode = hashCode * 59 + this.ReceiptPrinterName.GetHashCode();
if (this.ExclusiveFlag != null)
hashCode = hashCode * 59 + this.ExclusiveFlag.GetHashCode();
if (this.SaleReturnTypeCode != null)
hashCode = hashCode * 59 + this.SaleReturnTypeCode.GetHashCode();
if (this.SortSequence != null)
hashCode = hashCode * 59 + this.SortSequence.GetHashCode();
if (this.SafeCountFlag != null)
hashCode = hashCode * 59 + this.SafeCountFlag.GetHashCode();
if (this.ReceiptPrintoutTypeCode != null)
hashCode = hashCode * 59 + this.ReceiptPrintoutTypeCode.GetHashCode();
if (this.NegativeValueAllowedFlag != null)
hashCode = hashCode * 59 + this.NegativeValueAllowedFlag.GetHashCode();
if (this.ItemRestrictApplyTypeCode != null)
hashCode = hashCode * 59 + this.ItemRestrictApplyTypeCode.GetHashCode();
if (this.RoundingRequiredFlag != null)
hashCode = hashCode * 59 + this.RoundingRequiredFlag.GetHashCode();
if (this.TenderHandlingRuleID != null)
hashCode = hashCode * 59 + this.TenderHandlingRuleID.GetHashCode();
if (this.TenderRestrictionRuleList != null)
hashCode = hashCode * 59 + this.TenderRestrictionRuleList.GetHashCode();
if (this.TranslationList != null)
hashCode = hashCode * 59 + this.TranslationList.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Origin != null)
hashCode = hashCode * 59 + this.Origin.GetHashCode();
if (this.Tid != null)
hashCode = hashCode * 59 + this.Tid.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.IsocurrencyCode != null)
hashCode = hashCode * 59 + this.IsocurrencyCode.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey : IEquatable<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="tenderTypeCode">&lt;p&gt;A code which uniquely identifies the type of tender, e.g. cash, check, payment card, etc.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey(string businessUnitGroupID = default(string), string tenderTypeCode = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "tenderTypeCode" is required (not null)
if (tenderTypeCode == null)
{
throw new InvalidDataException("tenderTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey and cannot be null");
}
else
{
this.TenderTypeCode = tenderTypeCode;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;A code which uniquely identifies the type of tender, e.g. cash, check, payment card, etc.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code which uniquely identifies the type of tender, e.g. cash, check, payment card, etc.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tenderTypeCode", EmitDefaultValue=false)]
public string TenderTypeCode { 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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" TenderTypeCode: ").Append(TenderTypeCode).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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.TenderTypeCode == input.TenderTypeCode ||
(this.TenderTypeCode != null &&
this.TenderTypeCode.Equals(input.TenderTypeCode))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.TenderTypeCode != null)
hashCode = hashCode * 59 + this.TenderTypeCode.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderRestrictionRule &lt;p&gt;Describes in which situations which tenders are forbidden&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule : IEquatable<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey key = default(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule and cannot be null");
}
else
{
this.Key = key;
}
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRule input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderRestrictionRule.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey : IEquatable<ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="tenderTypeCode">&lt;p&gt;A code which uniquely identifies the type of tender, ie cash, check, credit card, etc.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="forbiddenTransactionTypeCode">&lt;p&gt;Transaction type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any transaction type)&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="forbiddenLineItemTypeCode">&lt;p&gt;Position type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any position type)&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey(string businessUnitGroupID = default(string), string tenderTypeCode = default(string), string forbiddenTransactionTypeCode = default(string), string forbiddenLineItemTypeCode = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "tenderTypeCode" is required (not null)
if (tenderTypeCode == null)
{
throw new InvalidDataException("tenderTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey and cannot be null");
}
else
{
this.TenderTypeCode = tenderTypeCode;
}
// to ensure "forbiddenTransactionTypeCode" is required (not null)
if (forbiddenTransactionTypeCode == null)
{
throw new InvalidDataException("forbiddenTransactionTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey and cannot be null");
}
else
{
this.ForbiddenTransactionTypeCode = forbiddenTransactionTypeCode;
}
// to ensure "forbiddenLineItemTypeCode" is required (not null)
if (forbiddenLineItemTypeCode == null)
{
throw new InvalidDataException("forbiddenLineItemTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey and cannot be null");
}
else
{
this.ForbiddenLineItemTypeCode = forbiddenLineItemTypeCode;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;A code which uniquely identifies the type of tender, ie cash, check, credit card, etc.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code which uniquely identifies the type of tender, ie cash, check, credit card, etc.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tenderTypeCode", EmitDefaultValue=false)]
public string TenderTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Transaction type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any transaction type)&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Transaction type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any transaction type)&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="forbiddenTransactionTypeCode", EmitDefaultValue=false)]
public string ForbiddenTransactionTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Position type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any position type)&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Position type;&lt;br /&gt; 0 &#x3D; irrelevant (tender is forbidden for any position type)&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="forbiddenLineItemTypeCode", EmitDefaultValue=false)]
public string ForbiddenLineItemTypeCode { 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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" TenderTypeCode: ").Append(TenderTypeCode).Append("\n");
sb.Append(" ForbiddenTransactionTypeCode: ").Append(ForbiddenTransactionTypeCode).Append("\n");
sb.Append(" ForbiddenLineItemTypeCode: ").Append(ForbiddenLineItemTypeCode).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 ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderDtoDomTenderRestrictionRuleKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.TenderTypeCode == input.TenderTypeCode ||
(this.TenderTypeCode != null &&
this.TenderTypeCode.Equals(input.TenderTypeCode))
) &&
(
this.ForbiddenTransactionTypeCode == input.ForbiddenTransactionTypeCode ||
(this.ForbiddenTransactionTypeCode != null &&
this.ForbiddenTransactionTypeCode.Equals(input.ForbiddenTransactionTypeCode))
) &&
(
this.ForbiddenLineItemTypeCode == input.ForbiddenLineItemTypeCode ||
(this.ForbiddenLineItemTypeCode != null &&
this.ForbiddenLineItemTypeCode.Equals(input.ForbiddenLineItemTypeCode))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.TenderTypeCode != null)
hashCode = hashCode * 59 + this.TenderTypeCode.GetHashCode();
if (this.ForbiddenTransactionTypeCode != null)
hashCode = hashCode * 59 + this.ForbiddenTransactionTypeCode.GetHashCode();
if (this.ForbiddenLineItemTypeCode != null)
hashCode = hashCode * 59 + this.ForbiddenLineItemTypeCode.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderAdjustmentRuleDO &lt;p&gt;Possible transformations from one tender to another.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO : IEquatable<ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;
/// </summary>
/// <value>&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum OriginEnum
{
/// <summary>
/// Enum PARENTCOPY for value: PARENT_COPY
/// </summary>
[EnumMember(Value = "PARENT_COPY")]
PARENTCOPY = 1,
/// <summary>
/// Enum IMPORT for value: IMPORT
/// </summary>
[EnumMember(Value = "IMPORT")]
IMPORT = 2,
/// <summary>
/// Enum MANUAL for value: MANUAL
/// </summary>
[EnumMember(Value = "MANUAL")]
MANUAL = 3
}
/// <summary>
/// &lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;
/// </summary>
/// <value>&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;</value>
[DataMember(Name="origin", EmitDefaultValue=false)]
public OriginEnum? Origin { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="origin">&lt;p&gt;Type of origin.&lt;br /&gt; OriginCode:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre&gt; PARENT_COPY &#x3D; &#39;00&#39;&lt;br /&gt; IMPORT &#x3D; &#39;01&#39;&lt;br /&gt; MANUAL &#x3D; &#39;02&#39;&lt;br /&gt;&lt;/pre&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO(ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey key = default(ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey), string packageID = default(string), OriginEnum? origin = default(OriginEnum?), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO and cannot be null");
}
else
{
this.Key = key;
}
this.PackageID = packageID;
this.Origin = origin;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Origin: ").Append(Origin).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Origin == input.Origin ||
(this.Origin != null &&
this.Origin.Equals(input.Origin))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Origin != null)
hashCode = hashCode * 59 + this.Origin.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TenderAdjustmentRuleDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey : IEquatable<ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="originalTenderTypeCode">&lt;p&gt;Tender from which is to be transformed.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="newTenderTypeCode">&lt;p&gt;Tender to which is to be transformed.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey(string businessUnitGroupID = default(string), string originalTenderTypeCode = default(string), string newTenderTypeCode = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "originalTenderTypeCode" is required (not null)
if (originalTenderTypeCode == null)
{
throw new InvalidDataException("originalTenderTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey and cannot be null");
}
else
{
this.OriginalTenderTypeCode = originalTenderTypeCode;
}
// to ensure "newTenderTypeCode" is required (not null)
if (newTenderTypeCode == null)
{
throw new InvalidDataException("newTenderTypeCode is a required property for ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey and cannot be null");
}
else
{
this.NewTenderTypeCode = newTenderTypeCode;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Tender from which is to be transformed.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Tender from which is to be transformed.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="originalTenderTypeCode", EmitDefaultValue=false)]
public string OriginalTenderTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Tender to which is to be transformed.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Tender to which is to be transformed.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="newTenderTypeCode", EmitDefaultValue=false)]
public string NewTenderTypeCode { 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 ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" OriginalTenderTypeCode: ").Append(OriginalTenderTypeCode).Append("\n");
sb.Append(" NewTenderTypeCode: ").Append(NewTenderTypeCode).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 ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTenderRuleDtoDomTenderAdjustmentRuleDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.OriginalTenderTypeCode == input.OriginalTenderTypeCode ||
(this.OriginalTenderTypeCode != null &&
this.OriginalTenderTypeCode.Equals(input.OriginalTenderTypeCode))
) &&
(
this.NewTenderTypeCode == input.NewTenderTypeCode ||
(this.NewTenderTypeCode != null &&
this.NewTenderTypeCode.Equals(input.NewTenderTypeCode))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.OriginalTenderTypeCode != null)
hashCode = hashCode * 59 + this.OriginalTenderTypeCode.GetHashCode();
if (this.NewTenderTypeCode != null)
hashCode = hashCode * 59 + this.NewTenderTypeCode.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TillDO &lt;p&gt;Tills&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTillDtoDomTillDO : IEquatable<ComGkSoftwareGkrApiServerMdTillDtoDomTillDO>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;The assignment mode which is used for that till&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASHIER01(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; JOINT_DRAWER_FOR_SEVERAL_CASHIERS(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_REGISTER(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_RECYCLER(04)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;The assignment mode which is used for that till&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASHIER01(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; JOINT_DRAWER_FOR_SEVERAL_CASHIERS(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_REGISTER(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_RECYCLER(04)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum AssignmentTypeCodeEnum
{
/// <summary>
/// Enum DRAWERFORONLYONECASHIER for value: DRAWER_FOR_ONLY_ONE_CASHIER
/// </summary>
[EnumMember(Value = "DRAWER_FOR_ONLY_ONE_CASHIER")]
DRAWERFORONLYONECASHIER = 1,
/// <summary>
/// Enum JOINTDRAWERFORSEVERALCASHIERS for value: JOINT_DRAWER_FOR_SEVERAL_CASHIERS
/// </summary>
[EnumMember(Value = "JOINT_DRAWER_FOR_SEVERAL_CASHIERS")]
JOINTDRAWERFORSEVERALCASHIERS = 2,
/// <summary>
/// Enum DRAWERFORONLYONECASHREGISTER for value: DRAWER_FOR_ONLY_ONE_CASH_REGISTER
/// </summary>
[EnumMember(Value = "DRAWER_FOR_ONLY_ONE_CASH_REGISTER")]
DRAWERFORONLYONECASHREGISTER = 3,
/// <summary>
/// Enum DRAWERFORONLYONECASHRECYCLER for value: DRAWER_FOR_ONLY_ONE_CASH_RECYCLER
/// </summary>
[EnumMember(Value = "DRAWER_FOR_ONLY_ONE_CASH_RECYCLER")]
DRAWERFORONLYONECASHRECYCLER = 4,
/// <summary>
/// Enum DRAWERWITHOUTASSIGNMENT for value: DRAWER_WITHOUT_ASSIGNMENT
/// </summary>
[EnumMember(Value = "DRAWER_WITHOUT_ASSIGNMENT")]
DRAWERWITHOUTASSIGNMENT = 5
}
/// <summary>
/// &lt;p&gt;The assignment mode which is used for that till&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASHIER01(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; JOINT_DRAWER_FOR_SEVERAL_CASHIERS(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_REGISTER(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_RECYCLER(04)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;The assignment mode which is used for that till&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASHIER01(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; JOINT_DRAWER_FOR_SEVERAL_CASHIERS(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_REGISTER(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_RECYCLER(04)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="assignmentTypeCode", EmitDefaultValue=false)]
public AssignmentTypeCodeEnum AssignmentTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Determines how the till is to be cleared&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; VARIABLE_CHANGE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FIXED_CHANGE_AMOUNT(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_CHANGE(04)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP_TARGET(13)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines how the till is to be cleared&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; VARIABLE_CHANGE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FIXED_CHANGE_AMOUNT(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_CHANGE(04)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP_TARGET(13)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TillClearingTypeCodeEnum
{
/// <summary>
/// Enum VARIABLECHANGE for value: VARIABLE_CHANGE
/// </summary>
[EnumMember(Value = "VARIABLE_CHANGE")]
VARIABLECHANGE = 1,
/// <summary>
/// Enum FIXEDCHANGEAMOUNT for value: FIXED_CHANGE_AMOUNT
/// </summary>
[EnumMember(Value = "FIXED_CHANGE_AMOUNT")]
FIXEDCHANGEAMOUNT = 2,
/// <summary>
/// Enum COMPLETEPICKUP for value: COMPLETE_PICKUP
/// </summary>
[EnumMember(Value = "COMPLETE_PICKUP")]
COMPLETEPICKUP = 3,
/// <summary>
/// Enum MANUALCHANGE for value: MANUAL_CHANGE
/// </summary>
[EnumMember(Value = "MANUAL_CHANGE")]
MANUALCHANGE = 4,
/// <summary>
/// Enum COMPLETEPICKUPTARGET for value: COMPLETE_PICKUP_TARGET
/// </summary>
[EnumMember(Value = "COMPLETE_PICKUP_TARGET")]
COMPLETEPICKUPTARGET = 5
}
/// <summary>
/// &lt;p&gt;Determines how the till is to be cleared&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; VARIABLE_CHANGE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FIXED_CHANGE_AMOUNT(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_CHANGE(04)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP_TARGET(13)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Determines how the till is to be cleared&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; VARIABLE_CHANGE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FIXED_CHANGE_AMOUNT(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_CHANGE(04)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP_TARGET(13)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="tillClearingTypeCode", EmitDefaultValue=false)]
public TillClearingTypeCodeEnum TillClearingTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Defines the settlement mode&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CONTINUOUS_USE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ON_A_DAILY_BASIS(02)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the settlement mode&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CONTINUOUS_USE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ON_A_DAILY_BASIS(02)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum SettlementTypeCodeEnum
{
/// <summary>
/// Enum CONTINUOUSUSE for value: CONTINUOUS_USE
/// </summary>
[EnumMember(Value = "CONTINUOUS_USE")]
CONTINUOUSUSE = 1,
/// <summary>
/// Enum ONADAILYBASIS for value: ON_A_DAILY_BASIS
/// </summary>
[EnumMember(Value = "ON_A_DAILY_BASIS")]
ONADAILYBASIS = 2
}
/// <summary>
/// &lt;p&gt;Defines the settlement mode&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CONTINUOUS_USE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ON_A_DAILY_BASIS(02)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the settlement mode&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CONTINUOUS_USE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ON_A_DAILY_BASIS(02)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="settlementTypeCode", EmitDefaultValue=false)]
public SettlementTypeCodeEnum SettlementTypeCode { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTillDtoDomTillDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="defaultOpeningCashBalanceAmount">&lt;p&gt;The opening Tender balance with which the Till will typically start.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="loanCalculationRequiredFlag">&lt;p&gt;Determines whether function &#39;loan&#39; requires counting the cash money and registering the counted amount, or whether counting is skipped and the default amount is used&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="loanRequiredFlag">&lt;p&gt;Determines whether the loan function should be used&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="blockingFlag">&lt;p&gt;Determines whether the till is locked&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tillBarcode">&lt;p&gt;The barcode of the till&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="assignmentTypeCode">&lt;p&gt;The assignment mode which is used for that till&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASHIER01(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; JOINT_DRAWER_FOR_SEVERAL_CASHIERS(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_REGISTER(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; DRAWER_FOR_ONLY_ONE_CASH_RECYCLER(04)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
/// <param name="workstationID">&lt;p&gt;ID of the workstation. It is only filled if till is assigned to workstation.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tillOperatorList">&lt;p&gt;The list operators that are allowed to use the till.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tillClearingTypeCode">&lt;p&gt;Determines how the till is to be cleared&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; VARIABLE_CHANGE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; FIXED_CHANGE_AMOUNT(02)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP(03)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; MANUAL_CHANGE(04)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; COMPLETE_PICKUP_TARGET(13)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
/// <param name="settlementTypeCode">&lt;p&gt;Defines the settlement mode&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; CONTINUOUS_USE(01)&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ON_A_DAILY_BASIS(02)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt; (required).</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="trainingModeFlag">&lt;p&gt;Determines whether the till is used for education.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="statusDateTimeStamp">&lt;p&gt;date and time of the till status&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="tillEnabled">&lt;p&gt;TODO&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTillDtoDomTillDO(ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey key = default(ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey), double? defaultOpeningCashBalanceAmount = default(double?), bool? loanCalculationRequiredFlag = default(bool?), bool? loanRequiredFlag = default(bool?), bool? blockingFlag = default(bool?), string tillBarcode = default(string), AssignmentTypeCodeEnum assignmentTypeCode = default(AssignmentTypeCodeEnum), string workstationID = default(string), List<ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO> tillOperatorList = default(List<ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO>), TillClearingTypeCodeEnum tillClearingTypeCode = default(TillClearingTypeCodeEnum), SettlementTypeCodeEnum settlementTypeCode = default(SettlementTypeCodeEnum), string packageID = default(string), bool? trainingModeFlag = default(bool?), string statusDateTimeStamp = default(string), bool? tillEnabled = default(bool?), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "defaultOpeningCashBalanceAmount" is required (not null)
if (defaultOpeningCashBalanceAmount == null)
{
throw new InvalidDataException("defaultOpeningCashBalanceAmount is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.DefaultOpeningCashBalanceAmount = defaultOpeningCashBalanceAmount;
}
// to ensure "assignmentTypeCode" is required (not null)
if (assignmentTypeCode == null)
{
throw new InvalidDataException("assignmentTypeCode is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.AssignmentTypeCode = assignmentTypeCode;
}
// to ensure "tillClearingTypeCode" is required (not null)
if (tillClearingTypeCode == null)
{
throw new InvalidDataException("tillClearingTypeCode is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.TillClearingTypeCode = tillClearingTypeCode;
}
// to ensure "settlementTypeCode" is required (not null)
if (settlementTypeCode == null)
{
throw new InvalidDataException("settlementTypeCode is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.SettlementTypeCode = settlementTypeCode;
}
// to ensure "trainingModeFlag" is required (not null)
if (trainingModeFlag == null)
{
throw new InvalidDataException("trainingModeFlag is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDO and cannot be null");
}
else
{
this.TrainingModeFlag = trainingModeFlag;
}
this.LoanCalculationRequiredFlag = loanCalculationRequiredFlag;
this.LoanRequiredFlag = loanRequiredFlag;
this.BlockingFlag = blockingFlag;
this.TillBarcode = tillBarcode;
this.WorkstationID = workstationID;
this.TillOperatorList = tillOperatorList;
this.PackageID = packageID;
this.StatusDateTimeStamp = statusDateTimeStamp;
this.TillEnabled = tillEnabled;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The opening Tender balance with which the Till will typically start.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The opening Tender balance with which the Till will typically start.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="defaultOpeningCashBalanceAmount", EmitDefaultValue=false)]
public double? DefaultOpeningCashBalanceAmount { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether function &#39;loan&#39; requires counting the cash money and registering the counted amount, or whether counting is skipped and the default amount is used&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether function &#39;loan&#39; requires counting the cash money and registering the counted amount, or whether counting is skipped and the default amount is used&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="loanCalculationRequiredFlag", EmitDefaultValue=false)]
public bool? LoanCalculationRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the loan function should be used&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the loan function should be used&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="loanRequiredFlag", EmitDefaultValue=false)]
public bool? LoanRequiredFlag { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the till is locked&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the till is locked&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="blockingFlag", EmitDefaultValue=false)]
public bool? BlockingFlag { get; set; }
/// <summary>
/// &lt;p&gt;The barcode of the till&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The barcode of the till&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillBarcode", EmitDefaultValue=false)]
public string TillBarcode { get; set; }
/// <summary>
/// &lt;p&gt;ID of the workstation. It is only filled if till is assigned to workstation.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;ID of the workstation. It is only filled if till is assigned to workstation.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="workstationID", EmitDefaultValue=false)]
public string WorkstationID { get; set; }
/// <summary>
/// &lt;p&gt;The list operators that are allowed to use the till.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The list operators that are allowed to use the till.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillOperatorList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO> TillOperatorList { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the till is used for education.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the till is used for education.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="trainingModeFlag", EmitDefaultValue=false)]
public bool? TrainingModeFlag { get; set; }
/// <summary>
/// &lt;p&gt;date and time of the till status&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;date and time of the till status&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="statusDateTimeStamp", EmitDefaultValue=false)]
public string StatusDateTimeStamp { get; set; }
/// <summary>
/// &lt;p&gt;TODO&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;TODO&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillEnabled", EmitDefaultValue=false)]
public bool? TillEnabled { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTillDtoDomTillDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" DefaultOpeningCashBalanceAmount: ").Append(DefaultOpeningCashBalanceAmount).Append("\n");
sb.Append(" LoanCalculationRequiredFlag: ").Append(LoanCalculationRequiredFlag).Append("\n");
sb.Append(" LoanRequiredFlag: ").Append(LoanRequiredFlag).Append("\n");
sb.Append(" BlockingFlag: ").Append(BlockingFlag).Append("\n");
sb.Append(" TillBarcode: ").Append(TillBarcode).Append("\n");
sb.Append(" AssignmentTypeCode: ").Append(AssignmentTypeCode).Append("\n");
sb.Append(" WorkstationID: ").Append(WorkstationID).Append("\n");
sb.Append(" TillOperatorList: ").Append(TillOperatorList).Append("\n");
sb.Append(" TillClearingTypeCode: ").Append(TillClearingTypeCode).Append("\n");
sb.Append(" SettlementTypeCode: ").Append(SettlementTypeCode).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" TrainingModeFlag: ").Append(TrainingModeFlag).Append("\n");
sb.Append(" StatusDateTimeStamp: ").Append(StatusDateTimeStamp).Append("\n");
sb.Append(" TillEnabled: ").Append(TillEnabled).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTillDtoDomTillDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTillDtoDomTillDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTillDtoDomTillDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTillDtoDomTillDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.DefaultOpeningCashBalanceAmount == input.DefaultOpeningCashBalanceAmount ||
(this.DefaultOpeningCashBalanceAmount != null &&
this.DefaultOpeningCashBalanceAmount.Equals(input.DefaultOpeningCashBalanceAmount))
) &&
(
this.LoanCalculationRequiredFlag == input.LoanCalculationRequiredFlag ||
(this.LoanCalculationRequiredFlag != null &&
this.LoanCalculationRequiredFlag.Equals(input.LoanCalculationRequiredFlag))
) &&
(
this.LoanRequiredFlag == input.LoanRequiredFlag ||
(this.LoanRequiredFlag != null &&
this.LoanRequiredFlag.Equals(input.LoanRequiredFlag))
) &&
(
this.BlockingFlag == input.BlockingFlag ||
(this.BlockingFlag != null &&
this.BlockingFlag.Equals(input.BlockingFlag))
) &&
(
this.TillBarcode == input.TillBarcode ||
(this.TillBarcode != null &&
this.TillBarcode.Equals(input.TillBarcode))
) &&
(
this.AssignmentTypeCode == input.AssignmentTypeCode ||
(this.AssignmentTypeCode != null &&
this.AssignmentTypeCode.Equals(input.AssignmentTypeCode))
) &&
(
this.WorkstationID == input.WorkstationID ||
(this.WorkstationID != null &&
this.WorkstationID.Equals(input.WorkstationID))
) &&
(
this.TillOperatorList == input.TillOperatorList ||
this.TillOperatorList != null &&
this.TillOperatorList.SequenceEqual(input.TillOperatorList)
) &&
(
this.TillClearingTypeCode == input.TillClearingTypeCode ||
(this.TillClearingTypeCode != null &&
this.TillClearingTypeCode.Equals(input.TillClearingTypeCode))
) &&
(
this.SettlementTypeCode == input.SettlementTypeCode ||
(this.SettlementTypeCode != null &&
this.SettlementTypeCode.Equals(input.SettlementTypeCode))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.TrainingModeFlag == input.TrainingModeFlag ||
(this.TrainingModeFlag != null &&
this.TrainingModeFlag.Equals(input.TrainingModeFlag))
) &&
(
this.StatusDateTimeStamp == input.StatusDateTimeStamp ||
(this.StatusDateTimeStamp != null &&
this.StatusDateTimeStamp.Equals(input.StatusDateTimeStamp))
) &&
(
this.TillEnabled == input.TillEnabled ||
(this.TillEnabled != null &&
this.TillEnabled.Equals(input.TillEnabled))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.DefaultOpeningCashBalanceAmount != null)
hashCode = hashCode * 59 + this.DefaultOpeningCashBalanceAmount.GetHashCode();
if (this.LoanCalculationRequiredFlag != null)
hashCode = hashCode * 59 + this.LoanCalculationRequiredFlag.GetHashCode();
if (this.LoanRequiredFlag != null)
hashCode = hashCode * 59 + this.LoanRequiredFlag.GetHashCode();
if (this.BlockingFlag != null)
hashCode = hashCode * 59 + this.BlockingFlag.GetHashCode();
if (this.TillBarcode != null)
hashCode = hashCode * 59 + this.TillBarcode.GetHashCode();
if (this.AssignmentTypeCode != null)
hashCode = hashCode * 59 + this.AssignmentTypeCode.GetHashCode();
if (this.WorkstationID != null)
hashCode = hashCode * 59 + this.WorkstationID.GetHashCode();
if (this.TillOperatorList != null)
hashCode = hashCode * 59 + this.TillOperatorList.GetHashCode();
if (this.TillClearingTypeCode != null)
hashCode = hashCode * 59 + this.TillClearingTypeCode.GetHashCode();
if (this.SettlementTypeCode != null)
hashCode = hashCode * 59 + this.SettlementTypeCode.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.TrainingModeFlag != null)
hashCode = hashCode * 59 + this.TrainingModeFlag.GetHashCode();
if (this.StatusDateTimeStamp != null)
hashCode = hashCode * 59 + this.StatusDateTimeStamp.GetHashCode();
if (this.TillEnabled != null)
hashCode = hashCode * 59 + this.TillEnabled.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TillDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey : IEquatable<ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey" /> class.
/// </summary>
/// <param name="tillID">&lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey(string tillID = default(string), string businessUnitGroupID = default(string))
{
// to ensure "tillID" is required (not null)
if (tillID == null)
{
throw new InvalidDataException("tillID is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey and cannot be null");
}
else
{
this.TillID = tillID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
}
/// <summary>
/// &lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillID", EmitDefaultValue=false)]
public string TillID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { 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 ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey {\n");
sb.Append(" TillID: ").Append(TillID).Append("\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).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 ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTillDtoDomTillDOKey input)
{
if (input == null)
return false;
return
(
this.TillID == input.TillID ||
(this.TillID != null &&
this.TillID.Equals(input.TillID))
) &&
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
);
}
/// <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.TillID != null)
hashCode = hashCode * 59 + this.TillID.GetHashCode();
if (this.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TillOperatorDO &lt;p&gt;Allowed operators&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO : IEquatable<ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO(ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey key = default(ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey), string packageID = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO and cannot be null");
}
else
{
this.Key = key;
}
this.PackageID = packageID;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TillOperatorDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey : IEquatable<ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey" /> class.
/// </summary>
/// <param name="operatorID">&lt;p&gt;Identifier of the operator&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="tillID">&lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey(string operatorID = default(string), string businessUnitGroupID = default(string), string tillID = default(string))
{
// to ensure "operatorID" is required (not null)
if (operatorID == null)
{
throw new InvalidDataException("operatorID is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey and cannot be null");
}
else
{
this.OperatorID = operatorID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "tillID" is required (not null)
if (tillID == null)
{
throw new InvalidDataException("tillID is a required property for ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey and cannot be null");
}
else
{
this.TillID = tillID;
}
}
/// <summary>
/// &lt;p&gt;Identifier of the operator&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Identifier of the operator&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="operatorID", EmitDefaultValue=false)]
public string OperatorID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier for the till.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tillID", EmitDefaultValue=false)]
public string TillID { 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 ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey {\n");
sb.Append(" OperatorID: ").Append(OperatorID).Append("\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" TillID: ").Append(TillID).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 ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTillDtoDomTillOperatorDOKey input)
{
if (input == null)
return false;
return
(
this.OperatorID == input.OperatorID ||
(this.OperatorID != null &&
this.OperatorID.Equals(input.OperatorID))
) &&
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.TillID == input.TillID ||
(this.TillID != null &&
this.TillID.Equals(input.TillID))
);
}
/// <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.OperatorID != null)
hashCode = hashCode * 59 + this.OperatorID.GetHashCode();
if (this.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.TillID != null)
hashCode = hashCode * 59 + this.TillID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TimePeriod &lt;p&gt;Time periods.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod : IEquatable<ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;A 2 character code denoting the day of the week that the time period falls on.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A 2 character code denoting the day of the week that the time period falls on.&lt;br /&gt;&lt;/p&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum DayOfWeekEnum
{
/// <summary>
/// Enum MO for value: MO
/// </summary>
[EnumMember(Value = "MO")]
MO = 1,
/// <summary>
/// Enum TU for value: TU
/// </summary>
[EnumMember(Value = "TU")]
TU = 2,
/// <summary>
/// Enum WE for value: WE
/// </summary>
[EnumMember(Value = "WE")]
WE = 3,
/// <summary>
/// Enum TH for value: TH
/// </summary>
[EnumMember(Value = "TH")]
TH = 4,
/// <summary>
/// Enum FR for value: FR
/// </summary>
[EnumMember(Value = "FR")]
FR = 5,
/// <summary>
/// Enum SA for value: SA
/// </summary>
[EnumMember(Value = "SA")]
SA = 6,
/// <summary>
/// Enum SU for value: SU
/// </summary>
[EnumMember(Value = "SU")]
SU = 7
}
/// <summary>
/// &lt;p&gt;A 2 character code denoting the day of the week that the time period falls on.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A 2 character code denoting the day of the week that the time period falls on.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="dayOfWeek", EmitDefaultValue=false)]
public DayOfWeekEnum? DayOfWeek { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="dayOfWeek">&lt;p&gt;A 2 character code denoting the day of the week that the time period falls on.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="startTime">&lt;p&gt;The time of day that the time period commences.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="duration">&lt;p&gt;The duration included in the time period from the start time.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="timeRestriction">&lt;p&gt;The time restriction in cron format.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod(ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey key = default(ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey), DayOfWeekEnum? dayOfWeek = default(DayOfWeekEnum?), string startTime = default(string), int? duration = default(int?), string timeRestriction = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod and cannot be null");
}
else
{
this.Key = key;
}
this.DayOfWeek = dayOfWeek;
this.StartTime = startTime;
this.Duration = duration;
this.TimeRestriction = timeRestriction;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The time of day that the time period commences.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;The time of day that the time period commences.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="startTime", EmitDefaultValue=false)]
public string StartTime { get; set; }
/// <summary>
/// &lt;p&gt;The duration included in the time period from the start time.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The duration included in the time period from the start time.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="duration", EmitDefaultValue=false)]
public int? Duration { get; set; }
/// <summary>
/// &lt;p&gt;The time restriction in cron format.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The time restriction in cron format.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="timeRestriction", EmitDefaultValue=false)]
public string TimeRestriction { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" DayOfWeek: ").Append(DayOfWeek).Append("\n");
sb.Append(" StartTime: ").Append(StartTime).Append("\n");
sb.Append(" Duration: ").Append(Duration).Append("\n");
sb.Append(" TimeRestriction: ").Append(TimeRestriction).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriod input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.DayOfWeek == input.DayOfWeek ||
(this.DayOfWeek != null &&
this.DayOfWeek.Equals(input.DayOfWeek))
) &&
(
this.StartTime == input.StartTime ||
(this.StartTime != null &&
this.StartTime.Equals(input.StartTime))
) &&
(
this.Duration == input.Duration ||
(this.Duration != null &&
this.Duration.Equals(input.Duration))
) &&
(
this.TimeRestriction == input.TimeRestriction ||
(this.TimeRestriction != null &&
this.TimeRestriction.Equals(input.TimeRestriction))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.DayOfWeek != null)
hashCode = hashCode * 59 + this.DayOfWeek.GetHashCode();
if (this.StartTime != null)
hashCode = hashCode * 59 + this.StartTime.GetHashCode();
if (this.Duration != null)
hashCode = hashCode * 59 + this.Duration.GetHashCode();
if (this.TimeRestriction != null)
hashCode = hashCode * 59 + this.TimeRestriction.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// TimePeriod.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey : IEquatable<ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="internalTimePeriodID">&lt;p&gt;Internal generated ID for time period.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey(string businessUnitGroupID = default(string), string internalTimePeriodID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "internalTimePeriodID" is required (not null)
if (internalTimePeriodID == null)
{
throw new InvalidDataException("internalTimePeriodID is a required property for ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey and cannot be null");
}
else
{
this.InternalTimePeriodID = internalTimePeriodID;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Internal generated ID for time period.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal generated ID for time period.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="internalTimePeriodID", EmitDefaultValue=false)]
public string InternalTimePeriodID { 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 ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" InternalTimePeriodID: ").Append(InternalTimePeriodID).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 ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdTimeGroupDtoDomTimePeriodKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.InternalTimePeriodID == input.InternalTimePeriodID ||
(this.InternalTimePeriodID != null &&
this.InternalTimePeriodID.Equals(input.InternalTimePeriodID))
);
}
/// <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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.InternalTimePeriodID != null)
hashCode = hashCode * 59 + this.InternalTimePeriodID.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;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* 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>
/// WorkerDO &lt;p&gt;A person who provides services to a retail store. May be either an employee or a contractor.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO : IEquatable<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;Origin of the import&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;00 - IMPORT&lt;/li&gt;&lt;br /&gt; &lt;li&gt;01 - MANUAL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Origin of the import&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;00 - IMPORT&lt;/li&gt;&lt;br /&gt; &lt;li&gt;01 - MANUAL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum OriginEnum
{
/// <summary>
/// Enum IMPORT for value: IMPORT
/// </summary>
[EnumMember(Value = "IMPORT")]
IMPORT = 1,
/// <summary>
/// Enum MANUAL for value: MANUAL
/// </summary>
[EnumMember(Value = "MANUAL")]
MANUAL = 2
}
/// <summary>
/// &lt;p&gt;Origin of the import&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;00 - IMPORT&lt;/li&gt;&lt;br /&gt; &lt;li&gt;01 - MANUAL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Origin of the import&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;00 - IMPORT&lt;/li&gt;&lt;br /&gt; &lt;li&gt;01 - MANUAL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="origin", EmitDefaultValue=false)]
public OriginEnum? Origin { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for a party.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="person">&lt;p&gt;Personal information&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="contact">&lt;p&gt;Contact&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="workerDiscountGroupAssignmentList">&lt;p&gt;List of the discount groups assigned to the employee.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="origin">&lt;p&gt;Origin of the import&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;00 - IMPORT&lt;/li&gt;&lt;br /&gt; &lt;li&gt;01 - MANUAL&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="taxNumber">&lt;p&gt;TaxID of the sales representative&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="workerLevel">&lt;p&gt;The worker level in worker hierarchy. Used for security purposes - if a worker can maintain or see (GDPR) another user. &lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="dataProtectCode">&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey key = default(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey), string partyID = default(string), ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO person = default(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO), ComGkSoftwareGkrApiServerMdContactDtoDomContactDO contact = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactDO), List<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment> workerDiscountGroupAssignmentList = default(List<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment>), OriginEnum? origin = default(OriginEnum?), string packageID = default(string), string taxNumber = default(string), int? workerLevel = default(int?), string dataProtectCode = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO and cannot be null");
}
else
{
this.Key = key;
}
this.PartyID = partyID;
this.Person = person;
this.Contact = contact;
this.WorkerDiscountGroupAssignmentList = workerDiscountGroupAssignmentList;
this.Origin = origin;
this.PackageID = packageID;
this.TaxNumber = taxNumber;
this.WorkerLevel = workerLevel;
this.DataProtectCode = dataProtectCode;
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;A unique, system assigned identity for a party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique, system assigned identity for a party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyID", EmitDefaultValue=false)]
public string PartyID { get; set; }
/// <summary>
/// &lt;p&gt;Personal information&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Personal information&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="person", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO Person { get; set; }
/// <summary>
/// &lt;p&gt;Contact&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Contact&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contact", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactDO Contact { get; set; }
/// <summary>
/// &lt;p&gt;List of the discount groups assigned to the employee.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the discount groups assigned to the employee.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="workerDiscountGroupAssignmentList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment> WorkerDiscountGroupAssignmentList { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;TaxID of the sales representative&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;TaxID of the sales representative&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="taxNumber", EmitDefaultValue=false)]
public string TaxNumber { get; set; }
/// <summary>
/// &lt;p&gt;The worker level in worker hierarchy. Used for security purposes - if a worker can maintain or see (GDPR) another user. &lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The worker level in worker hierarchy. Used for security purposes - if a worker can maintain or see (GDPR) another user. &lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="workerLevel", EmitDefaultValue=false)]
public int? WorkerLevel { get; set; }
/// <summary>
/// &lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="dataProtectCode", EmitDefaultValue=false)]
public string DataProtectCode { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { 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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" PartyID: ").Append(PartyID).Append("\n");
sb.Append(" Person: ").Append(Person).Append("\n");
sb.Append(" Contact: ").Append(Contact).Append("\n");
sb.Append(" WorkerDiscountGroupAssignmentList: ").Append(WorkerDiscountGroupAssignmentList).Append("\n");
sb.Append(" Origin: ").Append(Origin).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" TaxNumber: ").Append(TaxNumber).Append("\n");
sb.Append(" WorkerLevel: ").Append(WorkerLevel).Append("\n");
sb.Append(" DataProtectCode: ").Append(DataProtectCode).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
this.Person == input.Person ||
(this.Person != null &&
this.Person.Equals(input.Person))
) &&
(
this.Contact == input.Contact ||
(this.Contact != null &&
this.Contact.Equals(input.Contact))
) &&
(
this.WorkerDiscountGroupAssignmentList == input.WorkerDiscountGroupAssignmentList ||
this.WorkerDiscountGroupAssignmentList != null &&
this.WorkerDiscountGroupAssignmentList.SequenceEqual(input.WorkerDiscountGroupAssignmentList)
) &&
(
this.Origin == input.Origin ||
(this.Origin != null &&
this.Origin.Equals(input.Origin))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.TaxNumber == input.TaxNumber ||
(this.TaxNumber != null &&
this.TaxNumber.Equals(input.TaxNumber))
) &&
(
this.WorkerLevel == input.WorkerLevel ||
(this.WorkerLevel != null &&
this.WorkerLevel.Equals(input.WorkerLevel))
) &&
(
this.DataProtectCode == input.DataProtectCode ||
(this.DataProtectCode != null &&
this.DataProtectCode.Equals(input.DataProtectCode))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <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.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.GetHashCode();
if (this.Person != null)
hashCode = hashCode * 59 + this.Person.GetHashCode();
if (this.Contact != null)
hashCode = hashCode * 59 + this.Contact.GetHashCode();
if (this.WorkerDiscountGroupAssignmentList != null)
hashCode = hashCode * 59 + this.WorkerDiscountGroupAssignmentList.GetHashCode();
if (this.Origin != null)
hashCode = hashCode * 59 + this.Origin.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.TaxNumber != null)
hashCode = hashCode * 59 + this.TaxNumber.GetHashCode();
if (this.WorkerLevel != null)
hashCode = hashCode * 59 + this.WorkerLevel.GetHashCode();
if (this.DataProtectCode != null)
hashCode = hashCode * 59 + this.DataProtectCode.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.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;
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment