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>
/// WicCategoryDO &lt;p&gt;Represents one Wic Category.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO : IEquatable<ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="wicCategoryDescription">&lt;p&gt;Category descriptor.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="wicSubcategoryDescription">&lt;p&gt;Subcategory descriptor.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="wicUomDescription">&lt;p&gt;Descriptor for the UOM of the Benefit.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO(ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey key = default(ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey), string wicCategoryDescription = default(string), string wicSubcategoryDescription = default(string), string wicUomDescription = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO and cannot be null");
}
else
{
this.Key = key;
}
this.WicCategoryDescription = wicCategoryDescription;
this.WicSubcategoryDescription = wicSubcategoryDescription;
this.WicUomDescription = wicUomDescription;
}
/// <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 ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Category descriptor.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Category descriptor.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="wicCategoryDescription", EmitDefaultValue=false)]
public string WicCategoryDescription { get; set; }
/// <summary>
/// &lt;p&gt;Subcategory descriptor.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Subcategory descriptor.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="wicSubcategoryDescription", EmitDefaultValue=false)]
public string WicSubcategoryDescription { get; set; }
/// <summary>
/// &lt;p&gt;Descriptor for the UOM of the Benefit.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Descriptor for the UOM of the Benefit.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="wicUomDescription", EmitDefaultValue=false)]
public string WicUomDescription { 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 ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" WicCategoryDescription: ").Append(WicCategoryDescription).Append("\n");
sb.Append(" WicSubcategoryDescription: ").Append(WicSubcategoryDescription).Append("\n");
sb.Append(" WicUomDescription: ").Append(WicUomDescription).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 ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.WicCategoryDescription == input.WicCategoryDescription ||
(this.WicCategoryDescription != null &&
this.WicCategoryDescription.Equals(input.WicCategoryDescription))
) &&
(
this.WicSubcategoryDescription == input.WicSubcategoryDescription ||
(this.WicSubcategoryDescription != null &&
this.WicSubcategoryDescription.Equals(input.WicSubcategoryDescription))
) &&
(
this.WicUomDescription == input.WicUomDescription ||
(this.WicUomDescription != null &&
this.WicUomDescription.Equals(input.WicUomDescription))
);
}
/// <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.WicCategoryDescription != null)
hashCode = hashCode * 59 + this.WicCategoryDescription.GetHashCode();
if (this.WicSubcategoryDescription != null)
hashCode = hashCode * 59 + this.WicSubcategoryDescription.GetHashCode();
if (this.WicUomDescription != null)
hashCode = hashCode * 59 + this.WicUomDescription.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>
/// WicCategoryDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey : IEquatable<ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey" /> class.
/// </summary>
/// <param name="wicCategory">&lt;p&gt;Code indicating the eWic Category.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="wicSubcategory">&lt;p&gt;Code indicating the Sub Category of the eWic Category.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="stateId">&lt;p&gt;State Identifier.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey(string wicCategory = default(string), string wicSubcategory = default(string), string stateId = default(string))
{
// to ensure "wicCategory" is required (not null)
if (wicCategory == null)
{
throw new InvalidDataException("wicCategory is a required property for ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey and cannot be null");
}
else
{
this.WicCategory = wicCategory;
}
// to ensure "wicSubcategory" is required (not null)
if (wicSubcategory == null)
{
throw new InvalidDataException("wicSubcategory is a required property for ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey and cannot be null");
}
else
{
this.WicSubcategory = wicSubcategory;
}
// to ensure "stateId" is required (not null)
if (stateId == null)
{
throw new InvalidDataException("stateId is a required property for ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey and cannot be null");
}
else
{
this.StateId = stateId;
}
}
/// <summary>
/// &lt;p&gt;Code indicating the eWic Category.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code indicating the eWic Category.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="wicCategory", EmitDefaultValue=false)]
public string WicCategory { get; set; }
/// <summary>
/// &lt;p&gt;Code indicating the Sub Category of the eWic Category.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code indicating the Sub Category of the eWic Category.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="wicSubcategory", EmitDefaultValue=false)]
public string WicSubcategory { get; set; }
/// <summary>
/// &lt;p&gt;State Identifier.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;State Identifier.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="stateId", EmitDefaultValue=false)]
public string StateId { 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 ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey {\n");
sb.Append(" WicCategory: ").Append(WicCategory).Append("\n");
sb.Append(" WicSubcategory: ").Append(WicSubcategory).Append("\n");
sb.Append(" StateId: ").Append(StateId).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 ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdItemWicDtoDomWicCategoryDOKey input)
{
if (input == null)
return false;
return
(
this.WicCategory == input.WicCategory ||
(this.WicCategory != null &&
this.WicCategory.Equals(input.WicCategory))
) &&
(
this.WicSubcategory == input.WicSubcategory ||
(this.WicSubcategory != null &&
this.WicSubcategory.Equals(input.WicSubcategory))
) &&
(
this.StateId == input.StateId ||
(this.StateId != null &&
this.StateId.Equals(input.StateId))
);
}
/// <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.WicCategory != null)
hashCode = hashCode * 59 + this.WicCategory.GetHashCode();
if (this.WicSubcategory != null)
hashCode = hashCode * 59 + this.WicSubcategory.GetHashCode();
if (this.StateId != null)
hashCode = hashCode * 59 + this.StateId.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>
/// PartyBankAccount &lt;p&gt;Information about bank account.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="bankDescription">&lt;p&gt;Bank description.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="bankAccountNumber">&lt;p&gt;Bank account number in a national format, not international.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="nationalBankIdentificationCode">&lt;p&gt;Bank identification code in a national format.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="internationalBankAccountNumber">&lt;p&gt;International bank account number (IBAN). A standard number standardized in accordance with the ECBS (European Commitee for Banking Standards) to represent bank details.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="bankIdentificationCode">&lt;p&gt;Bank identification code in the international format (BIC). Uniquely identifies a bank throughout the world.&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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey key = default(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey), string bankDescription = default(string), string bankAccountNumber = default(string), string nationalBankIdentificationCode = default(string), string internationalBankAccountNumber = default(string), string bankIdentificationCode = 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount and cannot be null");
}
else
{
this.Key = key;
}
this.BankDescription = bankDescription;
this.BankAccountNumber = bankAccountNumber;
this.NationalBankIdentificationCode = nationalBankIdentificationCode;
this.InternationalBankAccountNumber = internationalBankAccountNumber;
this.BankIdentificationCode = bankIdentificationCode;
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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Bank description.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Bank description.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="bankDescription", EmitDefaultValue=false)]
public string BankDescription { get; set; }
/// <summary>
/// &lt;p&gt;Bank account number in a national format, not international.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Bank account number in a national format, not international.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="bankAccountNumber", EmitDefaultValue=false)]
public string BankAccountNumber { get; set; }
/// <summary>
/// &lt;p&gt;Bank identification code in a national format.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Bank identification code in a national format.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="nationalBankIdentificationCode", EmitDefaultValue=false)]
public string NationalBankIdentificationCode { get; set; }
/// <summary>
/// &lt;p&gt;International bank account number (IBAN). A standard number standardized in accordance with the ECBS (European Commitee for Banking Standards) to represent bank details.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;International bank account number (IBAN). A standard number standardized in accordance with the ECBS (European Commitee for Banking Standards) to represent bank details.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="internationalBankAccountNumber", EmitDefaultValue=false)]
public string InternationalBankAccountNumber { get; set; }
/// <summary>
/// &lt;p&gt;Bank identification code in the international format (BIC). Uniquely identifies a bank throughout the world.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Bank identification code in the international format (BIC). Uniquely identifies a bank throughout the world.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="bankIdentificationCode", EmitDefaultValue=false)]
public string BankIdentificationCode { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" BankDescription: ").Append(BankDescription).Append("\n");
sb.Append(" BankAccountNumber: ").Append(BankAccountNumber).Append("\n");
sb.Append(" NationalBankIdentificationCode: ").Append(NationalBankIdentificationCode).Append("\n");
sb.Append(" InternationalBankAccountNumber: ").Append(InternationalBankAccountNumber).Append("\n");
sb.Append(" BankIdentificationCode: ").Append(BankIdentificationCode).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.BankDescription == input.BankDescription ||
(this.BankDescription != null &&
this.BankDescription.Equals(input.BankDescription))
) &&
(
this.BankAccountNumber == input.BankAccountNumber ||
(this.BankAccountNumber != null &&
this.BankAccountNumber.Equals(input.BankAccountNumber))
) &&
(
this.NationalBankIdentificationCode == input.NationalBankIdentificationCode ||
(this.NationalBankIdentificationCode != null &&
this.NationalBankIdentificationCode.Equals(input.NationalBankIdentificationCode))
) &&
(
this.InternationalBankAccountNumber == input.InternationalBankAccountNumber ||
(this.InternationalBankAccountNumber != null &&
this.InternationalBankAccountNumber.Equals(input.InternationalBankAccountNumber))
) &&
(
this.BankIdentificationCode == input.BankIdentificationCode ||
(this.BankIdentificationCode != null &&
this.BankIdentificationCode.Equals(input.BankIdentificationCode))
) &&
(
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.BankDescription != null)
hashCode = hashCode * 59 + this.BankDescription.GetHashCode();
if (this.BankAccountNumber != null)
hashCode = hashCode * 59 + this.BankAccountNumber.GetHashCode();
if (this.NationalBankIdentificationCode != null)
hashCode = hashCode * 59 + this.NationalBankIdentificationCode.GetHashCode();
if (this.InternationalBankAccountNumber != null)
hashCode = hashCode * 59 + this.InternationalBankAccountNumber.GetHashCode();
if (this.BankIdentificationCode != null)
hashCode = hashCode * 59 + this.BankIdentificationCode.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>
/// PartyBankAccount.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey" /> class.
/// </summary>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for a Party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <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="bankAccountTypeCode">&lt;p&gt;This type code is used to differ between multiple bank accounts. Optional - if not provided then filled in the import.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey(string partyID = default(string), string businessUnitGroupID = default(string), string bankAccountTypeCode = default(string))
{
// to ensure "partyID" is required (not null)
if (partyID == null)
{
throw new InvalidDataException("partyID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "bankAccountTypeCode" is required (not null)
if (bankAccountTypeCode == null)
{
throw new InvalidDataException("bankAccountTypeCode is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey and cannot be null");
}
else
{
this.BankAccountTypeCode = bankAccountTypeCode;
}
}
/// <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;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;This type code is used to differ between multiple bank accounts. Optional - if not provided then filled in the import.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;This type code is used to differ between multiple bank accounts. Optional - if not provided then filled in the import.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="bankAccountTypeCode", EmitDefaultValue=false)]
public string BankAccountTypeCode { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey {\n");
sb.Append(" PartyID: ").Append(PartyID).Append("\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" BankAccountTypeCode: ").Append(BankAccountTypeCode).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccountKey input)
{
if (input == null)
return false;
return
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.BankAccountTypeCode == input.BankAccountTypeCode ||
(this.BankAccountTypeCode != null &&
this.BankAccountTypeCode.Equals(input.BankAccountTypeCode))
);
}
/// <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.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.GetHashCode();
if (this.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.BankAccountTypeCode != null)
hashCode = hashCode * 59 + this.BankAccountTypeCode.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>
/// PartyDO &lt;p&gt;An individual or firm that exchanges information and/or goods and services with the store.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="organizationTypeCode">&lt;p&gt;The type code of the organization.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyTypeCode">&lt;p&gt;The type code of the party.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="businessDescription1">&lt;p&gt;The 1st line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="businessDescription2">&lt;p&gt;The 2nd line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyRoleAssignmentList">&lt;p&gt;List of PartyRoleAssignment&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyIdentificationList">&lt;p&gt;List of PartyIdentification&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyBankAccountList">&lt;p&gt;List of PartyBankAccount&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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey key = default(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey), string organizationTypeCode = default(string), string partyTypeCode = default(string), string businessDescription1 = default(string), string businessDescription2 = default(string), List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment> partyRoleAssignmentList = default(List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment>), List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification> partyIdentificationList = default(List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification>), List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount> partyBankAccountList = default(List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount>), 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO and cannot be null");
}
else
{
this.Key = key;
}
this.OrganizationTypeCode = organizationTypeCode;
this.PartyTypeCode = partyTypeCode;
this.BusinessDescription1 = businessDescription1;
this.BusinessDescription2 = businessDescription2;
this.PartyRoleAssignmentList = partyRoleAssignmentList;
this.PartyIdentificationList = partyIdentificationList;
this.PartyBankAccountList = partyBankAccountList;
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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The type code of the organization.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The type code of the organization.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="organizationTypeCode", EmitDefaultValue=false)]
public string OrganizationTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;The type code of the party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The type code of the party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyTypeCode", EmitDefaultValue=false)]
public string PartyTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;The 1st line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The 1st line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessDescription1", EmitDefaultValue=false)]
public string BusinessDescription1 { get; set; }
/// <summary>
/// &lt;p&gt;The 2nd line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The 2nd line of the description of the business of the customer; this information is e.g. to be printed on invoices in Greece due to tax law requirements.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessDescription2", EmitDefaultValue=false)]
public string BusinessDescription2 { get; set; }
/// <summary>
/// &lt;p&gt;List of PartyRoleAssignment&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of PartyRoleAssignment&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyRoleAssignmentList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment> PartyRoleAssignmentList { get; set; }
/// <summary>
/// &lt;p&gt;List of PartyIdentification&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of PartyIdentification&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyIdentificationList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification> PartyIdentificationList { get; set; }
/// <summary>
/// &lt;p&gt;List of PartyBankAccount&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of PartyBankAccount&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyBankAccountList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyBankAccount> PartyBankAccountList { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" OrganizationTypeCode: ").Append(OrganizationTypeCode).Append("\n");
sb.Append(" PartyTypeCode: ").Append(PartyTypeCode).Append("\n");
sb.Append(" BusinessDescription1: ").Append(BusinessDescription1).Append("\n");
sb.Append(" BusinessDescription2: ").Append(BusinessDescription2).Append("\n");
sb.Append(" PartyRoleAssignmentList: ").Append(PartyRoleAssignmentList).Append("\n");
sb.Append(" PartyIdentificationList: ").Append(PartyIdentificationList).Append("\n");
sb.Append(" PartyBankAccountList: ").Append(PartyBankAccountList).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.OrganizationTypeCode == input.OrganizationTypeCode ||
(this.OrganizationTypeCode != null &&
this.OrganizationTypeCode.Equals(input.OrganizationTypeCode))
) &&
(
this.PartyTypeCode == input.PartyTypeCode ||
(this.PartyTypeCode != null &&
this.PartyTypeCode.Equals(input.PartyTypeCode))
) &&
(
this.BusinessDescription1 == input.BusinessDescription1 ||
(this.BusinessDescription1 != null &&
this.BusinessDescription1.Equals(input.BusinessDescription1))
) &&
(
this.BusinessDescription2 == input.BusinessDescription2 ||
(this.BusinessDescription2 != null &&
this.BusinessDescription2.Equals(input.BusinessDescription2))
) &&
(
this.PartyRoleAssignmentList == input.PartyRoleAssignmentList ||
this.PartyRoleAssignmentList != null &&
this.PartyRoleAssignmentList.SequenceEqual(input.PartyRoleAssignmentList)
) &&
(
this.PartyIdentificationList == input.PartyIdentificationList ||
this.PartyIdentificationList != null &&
this.PartyIdentificationList.SequenceEqual(input.PartyIdentificationList)
) &&
(
this.PartyBankAccountList == input.PartyBankAccountList ||
this.PartyBankAccountList != null &&
this.PartyBankAccountList.SequenceEqual(input.PartyBankAccountList)
) &&
(
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.OrganizationTypeCode != null)
hashCode = hashCode * 59 + this.OrganizationTypeCode.GetHashCode();
if (this.PartyTypeCode != null)
hashCode = hashCode * 59 + this.PartyTypeCode.GetHashCode();
if (this.BusinessDescription1 != null)
hashCode = hashCode * 59 + this.BusinessDescription1.GetHashCode();
if (this.BusinessDescription2 != null)
hashCode = hashCode * 59 + this.BusinessDescription2.GetHashCode();
if (this.PartyRoleAssignmentList != null)
hashCode = hashCode * 59 + this.PartyRoleAssignmentList.GetHashCode();
if (this.PartyIdentificationList != null)
hashCode = hashCode * 59 + this.PartyIdentificationList.GetHashCode();
if (this.PartyBankAccountList != null)
hashCode = hashCode * 59 + this.PartyBankAccountList.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>
/// PartyDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey" /> class.
/// </summary>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for a business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey(string partyID = default(string), string businessUnitGroupID = default(string))
{
// to ensure "partyID" is required (not null)
if (partyID == null)
{
throw new InvalidDataException("partyID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
}
/// <summary>
/// &lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyID", EmitDefaultValue=false)]
public string PartyID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a business unit group.&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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey {\n");
sb.Append(" PartyID: ").Append(PartyID).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDOKey input)
{
if (input == null)
return false;
return
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
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.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.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>
/// PartyIdentification &lt;p&gt;An official number that may be used to identify the Party. People have multiple forms of such identification: Drivers License number , Passport number, Credit / Debit Card number, Social Security number, Tax number, etc... Businesses may also have multiple identifiers to prove that they are a legal entity: Company Incorporation number, Tax number, etc...&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="identifier">&lt;p&gt;The number on the Identification that identifies the Party, e. g. BusinessNumber, SalesTaxNumber..&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="externalPartyIdentificationProviderID">&lt;p&gt;A retailer assigned code denoting the official body that issued the PartyIdentification to the Party. Used for information about customer cards.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="lockingTypeCode">&lt;p&gt;Defines why this identifier is locked. Used for information about customer cards.&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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey key = default(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey), string identifier = default(string), string externalPartyIdentificationProviderID = default(string), string lockingTypeCode = 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification and cannot be null");
}
else
{
this.Key = key;
}
this.Identifier = identifier;
this.ExternalPartyIdentificationProviderID = externalPartyIdentificationProviderID;
this.LockingTypeCode = lockingTypeCode;
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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The number on the Identification that identifies the Party, e. g. BusinessNumber, SalesTaxNumber..&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The number on the Identification that identifies the Party, e. g. BusinessNumber, SalesTaxNumber..&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="identifier", EmitDefaultValue=false)]
public string Identifier { get; set; }
/// <summary>
/// &lt;p&gt;A retailer assigned code denoting the official body that issued the PartyIdentification to the Party. Used for information about customer cards.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A retailer assigned code denoting the official body that issued the PartyIdentification to the Party. Used for information about customer cards.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="externalPartyIdentificationProviderID", EmitDefaultValue=false)]
public string ExternalPartyIdentificationProviderID { get; set; }
/// <summary>
/// &lt;p&gt;Defines why this identifier is locked. Used for information about customer cards.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines why this identifier is locked. Used for information about customer cards.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="lockingTypeCode", EmitDefaultValue=false)]
public string LockingTypeCode { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Identifier: ").Append(Identifier).Append("\n");
sb.Append(" ExternalPartyIdentificationProviderID: ").Append(ExternalPartyIdentificationProviderID).Append("\n");
sb.Append(" LockingTypeCode: ").Append(LockingTypeCode).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Identifier == input.Identifier ||
(this.Identifier != null &&
this.Identifier.Equals(input.Identifier))
) &&
(
this.ExternalPartyIdentificationProviderID == input.ExternalPartyIdentificationProviderID ||
(this.ExternalPartyIdentificationProviderID != null &&
this.ExternalPartyIdentificationProviderID.Equals(input.ExternalPartyIdentificationProviderID))
) &&
(
this.LockingTypeCode == input.LockingTypeCode ||
(this.LockingTypeCode != null &&
this.LockingTypeCode.Equals(input.LockingTypeCode))
) &&
(
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.Identifier != null)
hashCode = hashCode * 59 + this.Identifier.GetHashCode();
if (this.ExternalPartyIdentificationProviderID != null)
hashCode = hashCode * 59 + this.ExternalPartyIdentificationProviderID.GetHashCode();
if (this.LockingTypeCode != null)
hashCode = hashCode * 59 + this.LockingTypeCode.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>
/// PartyIdentification.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey" /> class.
/// </summary>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <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="partyIdentificationTypeCode">&lt;p&gt;A code denoting a form of identification, e. g. BusinessTypeCode, TaxTypeCode.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey(string partyID = default(string), string businessUnitGroupID = default(string), string partyIdentificationTypeCode = default(string))
{
// to ensure "partyID" is required (not null)
if (partyID == null)
{
throw new InvalidDataException("partyID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "partyIdentificationTypeCode" is required (not null)
if (partyIdentificationTypeCode == null)
{
throw new InvalidDataException("partyIdentificationTypeCode is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey and cannot be null");
}
else
{
this.PartyIdentificationTypeCode = partyIdentificationTypeCode;
}
}
/// <summary>
/// &lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyID", EmitDefaultValue=false)]
public string PartyID { get; set; }
/// <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 code denoting a form of identification, e. g. BusinessTypeCode, TaxTypeCode.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code denoting a form of identification, e. g. BusinessTypeCode, TaxTypeCode.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyIdentificationTypeCode", EmitDefaultValue=false)]
public string PartyIdentificationTypeCode { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey {\n");
sb.Append(" PartyID: ").Append(PartyID).Append("\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" PartyIdentificationTypeCode: ").Append(PartyIdentificationTypeCode).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentificationKey input)
{
if (input == null)
return false;
return
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.PartyIdentificationTypeCode == input.PartyIdentificationTypeCode ||
(this.PartyIdentificationTypeCode != null &&
this.PartyIdentificationTypeCode.Equals(input.PartyIdentificationTypeCode))
);
}
/// <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.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.GetHashCode();
if (this.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.PartyIdentificationTypeCode != null)
hashCode = hashCode * 59 + this.PartyIdentificationTypeCode.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>
/// PartyRoleAssignment &lt;p&gt;Temporal record of when the Party became (and ceased to be) related to the Retail Enterprise via the PartyRole.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment" /> 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey key = default(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey), 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment {\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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignment 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>
/// PartyRoleAssignment.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey : IEquatable<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey" /> class.
/// </summary>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="businessUnitGroupID">&lt;p&gt;A unique system assigned identifier for the business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="partyRoleTypeCode">&lt;p&gt;A code that identifies a group of PARTY ROLES. This is used for subtyping the PARTY ROLEs.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="sequenceNumber">&lt;p&gt;A unique system assigned identifier for the particular assignment of Party to the PartyRole.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey(string partyID = default(string), string businessUnitGroupID = default(string), string partyRoleTypeCode = default(string), int? sequenceNumber = default(int?))
{
// to ensure "partyID" is required (not null)
if (partyID == null)
{
throw new InvalidDataException("partyID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "partyRoleTypeCode" is required (not null)
if (partyRoleTypeCode == null)
{
throw new InvalidDataException("partyRoleTypeCode is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey and cannot be null");
}
else
{
this.PartyRoleTypeCode = partyRoleTypeCode;
}
// to ensure "sequenceNumber" is required (not null)
if (sequenceNumber == null)
{
throw new InvalidDataException("sequenceNumber is a required property for ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey and cannot be null");
}
else
{
this.SequenceNumber = sequenceNumber;
}
}
/// <summary>
/// &lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique, system assigned identity for the party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyID", EmitDefaultValue=false)]
public string PartyID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for the business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for 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;A code that identifies a group of PARTY ROLES. This is used for subtyping the PARTY ROLEs.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code that identifies a group of PARTY ROLES. This is used for subtyping the PARTY ROLEs.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyRoleTypeCode", EmitDefaultValue=false)]
public string PartyRoleTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for the particular assignment of Party to the PartyRole.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for the particular assignment of Party to the PartyRole.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="sequenceNumber", EmitDefaultValue=false)]
public int? SequenceNumber { 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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey {\n");
sb.Append(" PartyID: ").Append(PartyID).Append("\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" PartyRoleTypeCode: ").Append(PartyRoleTypeCode).Append("\n");
sb.Append(" SequenceNumber: ").Append(SequenceNumber).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 ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyRoleAssignmentKey input)
{
if (input == null)
return false;
return
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.PartyRoleTypeCode == input.PartyRoleTypeCode ||
(this.PartyRoleTypeCode != null &&
this.PartyRoleTypeCode.Equals(input.PartyRoleTypeCode))
) &&
(
this.SequenceNumber == input.SequenceNumber ||
(this.SequenceNumber != null &&
this.SequenceNumber.Equals(input.SequenceNumber))
);
}
/// <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.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.GetHashCode();
if (this.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.PartyRoleTypeCode != null)
hashCode = hashCode * 59 + this.PartyRoleTypeCode.GetHashCode();
if (this.SequenceNumber != null)
hashCode = hashCode * 59 + this.SequenceNumber.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>
/// PersonDO &lt;p&gt;A individual of interest to the retail store or retail enterprise.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO : IEquatable<ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="languageID">&lt;p&gt;A combination of ISO-639-1 and ISO-3661-1 to denote a language as spoken in a particular country. &lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="salutation">&lt;p&gt;Extra words that don&#39;t form part of the person&#39;s name but are normally printed before the FirstName as a courtesy title. For instance, Mr. Ms., Miss, Dr., Prof. etc. This represents the primary salutation for this Person.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="firstName">&lt;p&gt;A person&#39;s first name. In western cultures, this is the given name, in other cultures it may be the family name.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="lastName">&lt;p&gt;A person&#39;s last name. In western cultures, this is the family (or patronymic) name, in other cultures it may be the given name.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="birthYearNumber">&lt;p&gt;The year part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="birthMonthNumber">&lt;p&gt;A number in the range 1-12 denoting the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="birthDayNumber">&lt;p&gt;A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="genderType">&lt;p&gt;A code for specifying a person&#39;s gender.&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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey key = default(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey), string languageID = default(string), string salutation = default(string), string firstName = default(string), string lastName = default(string), int? birthYearNumber = default(int?), int? birthMonthNumber = default(int?), int? birthDayNumber = default(int?), string genderType = 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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "firstName" is required (not null)
if (firstName == null)
{
throw new InvalidDataException("firstName is a required property for ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO and cannot be null");
}
else
{
this.FirstName = firstName;
}
// to ensure "lastName" is required (not null)
if (lastName == null)
{
throw new InvalidDataException("lastName is a required property for ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO and cannot be null");
}
else
{
this.LastName = lastName;
}
this.LanguageID = languageID;
this.Salutation = salutation;
this.BirthYearNumber = birthYearNumber;
this.BirthMonthNumber = birthMonthNumber;
this.BirthDayNumber = birthDayNumber;
this.GenderType = genderType;
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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;A combination of ISO-639-1 and ISO-3661-1 to denote a language as spoken in a particular country. &lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A combination of ISO-639-1 and ISO-3661-1 to denote a language as spoken in a particular country. &lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="languageID", EmitDefaultValue=false)]
public string LanguageID { get; set; }
/// <summary>
/// &lt;p&gt;Extra words that don&#39;t form part of the person&#39;s name but are normally printed before the FirstName as a courtesy title. For instance, Mr. Ms., Miss, Dr., Prof. etc. This represents the primary salutation for this Person.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Extra words that don&#39;t form part of the person&#39;s name but are normally printed before the FirstName as a courtesy title. For instance, Mr. Ms., Miss, Dr., Prof. etc. This represents the primary salutation for this Person.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="salutation", EmitDefaultValue=false)]
public string Salutation { get; set; }
/// <summary>
/// &lt;p&gt;A person&#39;s first name. In western cultures, this is the given name, in other cultures it may be the family name.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A person&#39;s first name. In western cultures, this is the given name, in other cultures it may be the family name.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="firstName", EmitDefaultValue=false)]
public string FirstName { get; set; }
/// <summary>
/// &lt;p&gt;A person&#39;s last name. In western cultures, this is the family (or patronymic) name, in other cultures it may be the given name.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A person&#39;s last name. In western cultures, this is the family (or patronymic) name, in other cultures it may be the given name.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="lastName", EmitDefaultValue=false)]
public string LastName { get; set; }
/// <summary>
/// &lt;p&gt;The year part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The year part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="birthYearNumber", EmitDefaultValue=false)]
public int? BirthYearNumber { get; set; }
/// <summary>
/// &lt;p&gt;A number in the range 1-12 denoting the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A number in the range 1-12 denoting the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="birthMonthNumber", EmitDefaultValue=false)]
public int? BirthMonthNumber { get; set; }
/// <summary>
/// &lt;p&gt;A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A number in the range 1-31denoting the day of the month part of the Person&#39;s date of birth.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="birthDayNumber", EmitDefaultValue=false)]
public int? BirthDayNumber { get; set; }
/// <summary>
/// &lt;p&gt;A code for specifying a person&#39;s gender.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A code for specifying a person&#39;s gender.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="genderType", EmitDefaultValue=false)]
public string GenderType { 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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" LanguageID: ").Append(LanguageID).Append("\n");
sb.Append(" Salutation: ").Append(Salutation).Append("\n");
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
sb.Append(" LastName: ").Append(LastName).Append("\n");
sb.Append(" BirthYearNumber: ").Append(BirthYearNumber).Append("\n");
sb.Append(" BirthMonthNumber: ").Append(BirthMonthNumber).Append("\n");
sb.Append(" BirthDayNumber: ").Append(BirthDayNumber).Append("\n");
sb.Append(" GenderType: ").Append(GenderType).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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.LanguageID == input.LanguageID ||
(this.LanguageID != null &&
this.LanguageID.Equals(input.LanguageID))
) &&
(
this.Salutation == input.Salutation ||
(this.Salutation != null &&
this.Salutation.Equals(input.Salutation))
) &&
(
this.FirstName == input.FirstName ||
(this.FirstName != null &&
this.FirstName.Equals(input.FirstName))
) &&
(
this.LastName == input.LastName ||
(this.LastName != null &&
this.LastName.Equals(input.LastName))
) &&
(
this.BirthYearNumber == input.BirthYearNumber ||
(this.BirthYearNumber != null &&
this.BirthYearNumber.Equals(input.BirthYearNumber))
) &&
(
this.BirthMonthNumber == input.BirthMonthNumber ||
(this.BirthMonthNumber != null &&
this.BirthMonthNumber.Equals(input.BirthMonthNumber))
) &&
(
this.BirthDayNumber == input.BirthDayNumber ||
(this.BirthDayNumber != null &&
this.BirthDayNumber.Equals(input.BirthDayNumber))
) &&
(
this.GenderType == input.GenderType ||
(this.GenderType != null &&
this.GenderType.Equals(input.GenderType))
) &&
(
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.LanguageID != null)
hashCode = hashCode * 59 + this.LanguageID.GetHashCode();
if (this.Salutation != null)
hashCode = hashCode * 59 + this.Salutation.GetHashCode();
if (this.FirstName != null)
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
if (this.LastName != null)
hashCode = hashCode * 59 + this.LastName.GetHashCode();
if (this.BirthYearNumber != null)
hashCode = hashCode * 59 + this.BirthYearNumber.GetHashCode();
if (this.BirthMonthNumber != null)
hashCode = hashCode * 59 + this.BirthMonthNumber.GetHashCode();
if (this.BirthDayNumber != null)
hashCode = hashCode * 59 + this.BirthDayNumber.GetHashCode();
if (this.GenderType != null)
hashCode = hashCode * 59 + this.GenderType.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>
/// PersonDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey" /> 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="partyID">&lt;p&gt;A unique, system assigned identity for a Party. &lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey(string businessUnitGroupID = default(string), string partyID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "partyID" is required (not null)
if (partyID == null)
{
throw new InvalidDataException("partyID is a required property for ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
}
/// <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 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>
/// 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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" PartyID: ").Append(PartyID).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 ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
);
}
/// <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.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.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>
/// FuellingPointDO &lt;p&gt;A device used to deliver fuel.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="protocolTypeCode">&lt;p&gt;The type of protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="protocolVersionCode">&lt;p&gt;The version of the protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="fuellingPointParameterList">&lt;p&gt;Additional parameters for fuelling point&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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey key = default(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey), string protocolTypeCode = default(string), string protocolVersionCode = default(string), List<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO> fuellingPointParameterList = default(List<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO>), 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "protocolTypeCode" is required (not null)
if (protocolTypeCode == null)
{
throw new InvalidDataException("protocolTypeCode is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO and cannot be null");
}
else
{
this.ProtocolTypeCode = protocolTypeCode;
}
this.ProtocolVersionCode = protocolVersionCode;
this.FuellingPointParameterList = fuellingPointParameterList;
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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The type of protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The type of protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="protocolTypeCode", EmitDefaultValue=false)]
public string ProtocolTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;The version of the protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The version of the protocol this FuellingPoint uses.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="protocolVersionCode", EmitDefaultValue=false)]
public string ProtocolVersionCode { get; set; }
/// <summary>
/// &lt;p&gt;Additional parameters for fuelling point&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional parameters for fuelling point&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointParameterList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO> FuellingPointParameterList { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" ProtocolTypeCode: ").Append(ProtocolTypeCode).Append("\n");
sb.Append(" ProtocolVersionCode: ").Append(ProtocolVersionCode).Append("\n");
sb.Append(" FuellingPointParameterList: ").Append(FuellingPointParameterList).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.ProtocolTypeCode == input.ProtocolTypeCode ||
(this.ProtocolTypeCode != null &&
this.ProtocolTypeCode.Equals(input.ProtocolTypeCode))
) &&
(
this.ProtocolVersionCode == input.ProtocolVersionCode ||
(this.ProtocolVersionCode != null &&
this.ProtocolVersionCode.Equals(input.ProtocolVersionCode))
) &&
(
this.FuellingPointParameterList == input.FuellingPointParameterList ||
this.FuellingPointParameterList != null &&
this.FuellingPointParameterList.SequenceEqual(input.FuellingPointParameterList)
) &&
(
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.ProtocolTypeCode != null)
hashCode = hashCode * 59 + this.ProtocolTypeCode.GetHashCode();
if (this.ProtocolVersionCode != null)
hashCode = hashCode * 59 + this.ProtocolVersionCode.GetHashCode();
if (this.FuellingPointParameterList != null)
hashCode = hashCode * 59 + this.FuellingPointParameterList.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>
/// FuellingPointDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey" /> 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="fuellingPointID">&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey(string businessUnitGroupID = default(string), string fuellingPointID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "fuellingPointID" is required (not null)
if (fuellingPointID == null)
{
throw new InvalidDataException("fuellingPointID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey and cannot be null");
}
else
{
this.FuellingPointID = fuellingPointID;
}
}
/// <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 the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointID", EmitDefaultValue=false)]
public string FuellingPointID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" FuellingPointID: ").Append(FuellingPointID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.FuellingPointID == input.FuellingPointID ||
(this.FuellingPointID != null &&
this.FuellingPointID.Equals(input.FuellingPointID))
);
}
/// <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.FuellingPointID != null)
hashCode = hashCode * 59 + this.FuellingPointID.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>
/// FuellingPointParameterDO &lt;p&gt;Additional parameters for fuelling point&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="fuellingPointParameterCode">&lt;p&gt;Code of fueling point parameter.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="fuellingPointParameterName">&lt;p&gt;Name of a fueling point parameter.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="fuellingPointParameterValue">&lt;p&gt;Value of a fueling point parameter.&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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey key = default(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey), string fuellingPointParameterCode = default(string), string fuellingPointParameterName = default(string), string fuellingPointParameterValue = 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO and cannot be null");
}
else
{
this.Key = key;
}
this.FuellingPointParameterCode = fuellingPointParameterCode;
this.FuellingPointParameterName = fuellingPointParameterName;
this.FuellingPointParameterValue = fuellingPointParameterValue;
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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Code of fueling point parameter.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code of fueling point parameter.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointParameterCode", EmitDefaultValue=false)]
public string FuellingPointParameterCode { get; set; }
/// <summary>
/// &lt;p&gt;Name of a fueling point parameter.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Name of a fueling point parameter.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointParameterName", EmitDefaultValue=false)]
public string FuellingPointParameterName { get; set; }
/// <summary>
/// &lt;p&gt;Value of a fueling point parameter.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Value of a fueling point parameter.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointParameterValue", EmitDefaultValue=false)]
public string FuellingPointParameterValue { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" FuellingPointParameterCode: ").Append(FuellingPointParameterCode).Append("\n");
sb.Append(" FuellingPointParameterName: ").Append(FuellingPointParameterName).Append("\n");
sb.Append(" FuellingPointParameterValue: ").Append(FuellingPointParameterValue).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.FuellingPointParameterCode == input.FuellingPointParameterCode ||
(this.FuellingPointParameterCode != null &&
this.FuellingPointParameterCode.Equals(input.FuellingPointParameterCode))
) &&
(
this.FuellingPointParameterName == input.FuellingPointParameterName ||
(this.FuellingPointParameterName != null &&
this.FuellingPointParameterName.Equals(input.FuellingPointParameterName))
) &&
(
this.FuellingPointParameterValue == input.FuellingPointParameterValue ||
(this.FuellingPointParameterValue != null &&
this.FuellingPointParameterValue.Equals(input.FuellingPointParameterValue))
) &&
(
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.FuellingPointParameterCode != null)
hashCode = hashCode * 59 + this.FuellingPointParameterCode.GetHashCode();
if (this.FuellingPointParameterName != null)
hashCode = hashCode * 59 + this.FuellingPointParameterName.GetHashCode();
if (this.FuellingPointParameterValue != null)
hashCode = hashCode * 59 + this.FuellingPointParameterValue.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>
/// FuellingPointParameterDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey" /> class.
/// </summary>
/// <param name="fuellingPointParameterID">&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey(string fuellingPointParameterID = default(string))
{
// to ensure "fuellingPointParameterID" is required (not null)
if (fuellingPointParameterID == null)
{
throw new InvalidDataException("fuellingPointParameterID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey and cannot be null");
}
else
{
this.FuellingPointParameterID = fuellingPointParameterID;
}
}
/// <summary>
/// &lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointParameterID", EmitDefaultValue=false)]
public string FuellingPointParameterID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey {\n");
sb.Append(" FuellingPointParameterID: ").Append(FuellingPointParameterID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomFuellingPointParameterDOKey input)
{
if (input == null)
return false;
return
(
this.FuellingPointParameterID == input.FuellingPointParameterID ||
(this.FuellingPointParameterID != null &&
this.FuellingPointParameterID.Equals(input.FuellingPointParameterID))
);
}
/// <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.FuellingPointParameterID != null)
hashCode = hashCode * 59 + this.FuellingPointParameterID.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>
/// GradeDO &lt;p&gt;Grade of a fuel.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="posItemID">&lt;p&gt;The barcode, point of sale scan code or other keyed identifying number used at POS and the internal stock keping ItemID for the item.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="firstTankID">&lt;p&gt;A unique identifier for this Tank&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="secondTankID">&lt;p&gt;A unique identifier for this Tank&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="blendPercentage">&lt;p&gt;The percentage of the final blend that the given BULK ITEM constitutes. This ratio refers to the first tank. Meaning that the ratio for the 2nd tank in case of blended grades is 100 - BlendPercentage.&lt;br /&gt;&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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO(ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey key = default(ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey), string posItemID = default(string), string firstTankID = default(string), string secondTankID = default(string), double? blendPercentage = default(double?), 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "posItemID" is required (not null)
if (posItemID == null)
{
throw new InvalidDataException("posItemID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO and cannot be null");
}
else
{
this.PosItemID = posItemID;
}
// to ensure "firstTankID" is required (not null)
if (firstTankID == null)
{
throw new InvalidDataException("firstTankID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO and cannot be null");
}
else
{
this.FirstTankID = firstTankID;
}
// to ensure "blendPercentage" is required (not null)
if (blendPercentage == null)
{
throw new InvalidDataException("blendPercentage is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO and cannot be null");
}
else
{
this.BlendPercentage = blendPercentage;
}
this.SecondTankID = secondTankID;
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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The barcode, point of sale scan code or other keyed identifying number used at POS and the internal stock keping ItemID for the item.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The barcode, point of sale scan code or other keyed identifying number used at POS and the internal stock keping ItemID for the item.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="posItemID", EmitDefaultValue=false)]
public string PosItemID { 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="firstTankID", EmitDefaultValue=false)]
public string FirstTankID { 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="secondTankID", EmitDefaultValue=false)]
public string SecondTankID { get; set; }
/// <summary>
/// &lt;p&gt;The percentage of the final blend that the given BULK ITEM constitutes. This ratio refers to the first tank. Meaning that the ratio for the 2nd tank in case of blended grades is 100 - BlendPercentage.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The percentage of the final blend that the given BULK ITEM constitutes. This ratio refers to the first tank. Meaning that the ratio for the 2nd tank in case of blended grades is 100 - BlendPercentage.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="blendPercentage", EmitDefaultValue=false)]
public double? BlendPercentage { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" PosItemID: ").Append(PosItemID).Append("\n");
sb.Append(" FirstTankID: ").Append(FirstTankID).Append("\n");
sb.Append(" SecondTankID: ").Append(SecondTankID).Append("\n");
sb.Append(" BlendPercentage: ").Append(BlendPercentage).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.PosItemID == input.PosItemID ||
(this.PosItemID != null &&
this.PosItemID.Equals(input.PosItemID))
) &&
(
this.FirstTankID == input.FirstTankID ||
(this.FirstTankID != null &&
this.FirstTankID.Equals(input.FirstTankID))
) &&
(
this.SecondTankID == input.SecondTankID ||
(this.SecondTankID != null &&
this.SecondTankID.Equals(input.SecondTankID))
) &&
(
this.BlendPercentage == input.BlendPercentage ||
(this.BlendPercentage != null &&
this.BlendPercentage.Equals(input.BlendPercentage))
) &&
(
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.PosItemID != null)
hashCode = hashCode * 59 + this.PosItemID.GetHashCode();
if (this.FirstTankID != null)
hashCode = hashCode * 59 + this.FirstTankID.GetHashCode();
if (this.SecondTankID != null)
hashCode = hashCode * 59 + this.SecondTankID.GetHashCode();
if (this.BlendPercentage != null)
hashCode = hashCode * 59 + this.BlendPercentage.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>
/// GradeDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey" /> 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="fuelGradeID">&lt;p&gt;The identifier of the fuel grade.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey(string businessUnitGroupID = default(string), string fuelGradeID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "fuelGradeID" is required (not null)
if (fuelGradeID == null)
{
throw new InvalidDataException("fuelGradeID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey and cannot be null");
}
else
{
this.FuelGradeID = fuelGradeID;
}
}
/// <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;The identifier of the fuel grade.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier of the fuel grade.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuelGradeID", EmitDefaultValue=false)]
public string FuelGradeID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" FuelGradeID: ").Append(FuelGradeID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomGradeDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.FuelGradeID == input.FuelGradeID ||
(this.FuelGradeID != null &&
this.FuelGradeID.Equals(input.FuelGradeID))
);
}
/// <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.FuelGradeID != null)
hashCode = hashCode * 59 + this.FuelGradeID.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>
/// NozzleDO &lt;p&gt;That part of the FUELING POINT that blends and measures the volume of fuel dispensed during a FUELING TRANSACTION.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&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>
/// <param name="rfTagNo">&lt;p&gt;For RFID Tags which are connected to the nozzle to identify grade, car and customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="fuelGradeID">&lt;p&gt;The identifier of the fuel grade.&lt;br /&gt;&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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO(ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey key = default(ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey), string tankID = default(string), string rfTagNo = default(string), string fuelGradeID = 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO and cannot be null");
}
else
{
this.Key = key;
}
// to ensure "tankID" is required (not null)
if (tankID == null)
{
throw new InvalidDataException("tankID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO and cannot be null");
}
else
{
this.TankID = tankID;
}
// to ensure "fuelGradeID" is required (not null)
if (fuelGradeID == null)
{
throw new InvalidDataException("fuelGradeID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO and cannot be null");
}
else
{
this.FuelGradeID = fuelGradeID;
}
this.RfTagNo = rfTagNo;
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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey Key { 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>
/// &lt;p&gt;For RFID Tags which are connected to the nozzle to identify grade, car and customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;For RFID Tags which are connected to the nozzle to identify grade, car and customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="rfTagNo", EmitDefaultValue=false)]
public string RfTagNo { get; set; }
/// <summary>
/// &lt;p&gt;The identifier of the fuel grade.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier of the fuel grade.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuelGradeID", EmitDefaultValue=false)]
public string FuelGradeID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" TankID: ").Append(TankID).Append("\n");
sb.Append(" RfTagNo: ").Append(RfTagNo).Append("\n");
sb.Append(" FuelGradeID: ").Append(FuelGradeID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.TankID == input.TankID ||
(this.TankID != null &&
this.TankID.Equals(input.TankID))
) &&
(
this.RfTagNo == input.RfTagNo ||
(this.RfTagNo != null &&
this.RfTagNo.Equals(input.RfTagNo))
) &&
(
this.FuelGradeID == input.FuelGradeID ||
(this.FuelGradeID != null &&
this.FuelGradeID.Equals(input.FuelGradeID))
) &&
(
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.TankID != null)
hashCode = hashCode * 59 + this.TankID.GetHashCode();
if (this.RfTagNo != null)
hashCode = hashCode * 59 + this.RfTagNo.GetHashCode();
if (this.FuelGradeID != null)
hashCode = hashCode * 59 + this.FuelGradeID.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>
/// NozzleDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey : IEquatable<ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey" /> 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="nozzleID">&lt;p&gt;A unique identifier for the Nozzle&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="fuellingPointID">&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey(string businessUnitGroupID = default(string), string nozzleID = default(string), string fuellingPointID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "nozzleID" is required (not null)
if (nozzleID == null)
{
throw new InvalidDataException("nozzleID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey and cannot be null");
}
else
{
this.NozzleID = nozzleID;
}
// to ensure "fuellingPointID" is required (not null)
if (fuellingPointID == null)
{
throw new InvalidDataException("fuellingPointID is a required property for ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey and cannot be null");
}
else
{
this.FuellingPointID = fuellingPointID;
}
}
/// <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 the Nozzle&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for the Nozzle&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="nozzleID", EmitDefaultValue=false)]
public string NozzleID { get; set; }
/// <summary>
/// &lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for the FuelingPoint at a particular BusinessUnitGroup&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="fuellingPointID", EmitDefaultValue=false)]
public string FuellingPointID { 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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" NozzleID: ").Append(NozzleID).Append("\n");
sb.Append(" FuellingPointID: ").Append(FuellingPointID).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 ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdPetrolDtoDomNozzleDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.NozzleID == input.NozzleID ||
(this.NozzleID != null &&
this.NozzleID.Equals(input.NozzleID))
) &&
(
this.FuellingPointID == input.FuellingPointID ||
(this.FuellingPointID != null &&
this.FuellingPointID.Equals(input.FuellingPointID))
);
}
/// <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.NozzleID != null)
hashCode = hashCode * 59 + this.NozzleID.GetHashCode();
if (this.FuellingPointID != null)
hashCode = hashCode * 59 + this.FuellingPointID.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