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>
/// ContactAddress &lt;p&gt;List of addresses&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="city">&lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="postalCode">&lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isoCountryCode">&lt;p&gt;The country code of the company or the person.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="subTerritoryName">&lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="territoryName">&lt;p&gt;Name of federal state.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressLine1">&lt;p&gt;The first line of the address, normally the street name and number.&lt;br /&gt; Used also for poBox.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressLine2">&lt;p&gt;The second line of an address, normally the Flat or Building Suite number.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressLine3">&lt;p&gt;The third line of the address&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressLine4">&lt;p&gt;The fourth line of the address.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressLine5">&lt;p&gt;The fifth line of the address.&lt;br /&gt; Also used for salutation.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="postalCodeExtension">&lt;p&gt;The extension of the postal or zip code that further specifies a particular postal district.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="territory">&lt;p&gt;A state, province, or other region within a country.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="marketingAllowedFlag">&lt;p&gt;Denotes if the contact address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="taxHandlingCode">&lt;p&gt;Tax handling code defined within the customer address (region) is used for the tax calculation.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress(ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey key = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey), string city = default(string), string postalCode = default(string), string isoCountryCode = default(string), string subTerritoryName = default(string), string territoryName = default(string), string addressLine1 = default(string), string addressLine2 = default(string), string addressLine3 = default(string), string addressLine4 = default(string), string addressLine5 = default(string), string postalCodeExtension = default(string), string territory = default(string), bool? marketingAllowedFlag = default(bool?), string taxHandlingCode = default(string), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress and cannot be null");
}
else
{
this.Key = key;
}
this.City = city;
this.PostalCode = postalCode;
this.IsoCountryCode = isoCountryCode;
this.SubTerritoryName = subTerritoryName;
this.TerritoryName = territoryName;
this.AddressLine1 = addressLine1;
this.AddressLine2 = addressLine2;
this.AddressLine3 = addressLine3;
this.AddressLine4 = addressLine4;
this.AddressLine5 = addressLine5;
this.PostalCodeExtension = postalCodeExtension;
this.Territory = territory;
this.MarketingAllowedFlag = marketingAllowedFlag;
this.TaxHandlingCode = taxHandlingCode;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="city", EmitDefaultValue=false)]
public string City { get; set; }
/// <summary>
/// &lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="postalCode", EmitDefaultValue=false)]
public string PostalCode { get; set; }
/// <summary>
/// &lt;p&gt;The country code of the company or the person.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The country code of the company or the person.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isoCountryCode", EmitDefaultValue=false)]
public string IsoCountryCode { get; set; }
/// <summary>
/// &lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="subTerritoryName", EmitDefaultValue=false)]
public string SubTerritoryName { get; set; }
/// <summary>
/// &lt;p&gt;Name of federal state.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Name of federal state.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="territoryName", EmitDefaultValue=false)]
public string TerritoryName { get; set; }
/// <summary>
/// &lt;p&gt;The first line of the address, normally the street name and number.&lt;br /&gt; Used also for poBox.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The first line of the address, normally the street name and number.&lt;br /&gt; Used also for poBox.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressLine1", EmitDefaultValue=false)]
public string AddressLine1 { get; set; }
/// <summary>
/// &lt;p&gt;The second line of an address, normally the Flat or Building Suite number.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The second line of an address, normally the Flat or Building Suite number.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressLine2", EmitDefaultValue=false)]
public string AddressLine2 { get; set; }
/// <summary>
/// &lt;p&gt;The third line of the address&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The third line of the address&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressLine3", EmitDefaultValue=false)]
public string AddressLine3 { get; set; }
/// <summary>
/// &lt;p&gt;The fourth line of the address.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The fourth line of the address.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressLine4", EmitDefaultValue=false)]
public string AddressLine4 { get; set; }
/// <summary>
/// &lt;p&gt;The fifth line of the address.&lt;br /&gt; Also used for salutation.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The fifth line of the address.&lt;br /&gt; Also used for salutation.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressLine5", EmitDefaultValue=false)]
public string AddressLine5 { get; set; }
/// <summary>
/// &lt;p&gt;The extension of the postal or zip code that further specifies a particular postal district.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The extension of the postal or zip code that further specifies a particular postal district.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="postalCodeExtension", EmitDefaultValue=false)]
public string PostalCodeExtension { get; set; }
/// <summary>
/// &lt;p&gt;A state, province, or other region within a country.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A state, province, or other region within a country.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="territory", EmitDefaultValue=false)]
public string Territory { get; set; }
/// <summary>
/// &lt;p&gt;Denotes if the contact address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes if the contact address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="marketingAllowedFlag", EmitDefaultValue=false)]
public bool? MarketingAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Tax handling code defined within the customer address (region) is used for the tax calculation.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Tax handling code defined within the customer address (region) is used for the tax calculation.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="taxHandlingCode", EmitDefaultValue=false)]
public string TaxHandlingCode { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" City: ").Append(City).Append("\n");
sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
sb.Append(" IsoCountryCode: ").Append(IsoCountryCode).Append("\n");
sb.Append(" SubTerritoryName: ").Append(SubTerritoryName).Append("\n");
sb.Append(" TerritoryName: ").Append(TerritoryName).Append("\n");
sb.Append(" AddressLine1: ").Append(AddressLine1).Append("\n");
sb.Append(" AddressLine2: ").Append(AddressLine2).Append("\n");
sb.Append(" AddressLine3: ").Append(AddressLine3).Append("\n");
sb.Append(" AddressLine4: ").Append(AddressLine4).Append("\n");
sb.Append(" AddressLine5: ").Append(AddressLine5).Append("\n");
sb.Append(" PostalCodeExtension: ").Append(PostalCodeExtension).Append("\n");
sb.Append(" Territory: ").Append(Territory).Append("\n");
sb.Append(" MarketingAllowedFlag: ").Append(MarketingAllowedFlag).Append("\n");
sb.Append(" TaxHandlingCode: ").Append(TaxHandlingCode).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
) &&
(
this.IsoCountryCode == input.IsoCountryCode ||
(this.IsoCountryCode != null &&
this.IsoCountryCode.Equals(input.IsoCountryCode))
) &&
(
this.SubTerritoryName == input.SubTerritoryName ||
(this.SubTerritoryName != null &&
this.SubTerritoryName.Equals(input.SubTerritoryName))
) &&
(
this.TerritoryName == input.TerritoryName ||
(this.TerritoryName != null &&
this.TerritoryName.Equals(input.TerritoryName))
) &&
(
this.AddressLine1 == input.AddressLine1 ||
(this.AddressLine1 != null &&
this.AddressLine1.Equals(input.AddressLine1))
) &&
(
this.AddressLine2 == input.AddressLine2 ||
(this.AddressLine2 != null &&
this.AddressLine2.Equals(input.AddressLine2))
) &&
(
this.AddressLine3 == input.AddressLine3 ||
(this.AddressLine3 != null &&
this.AddressLine3.Equals(input.AddressLine3))
) &&
(
this.AddressLine4 == input.AddressLine4 ||
(this.AddressLine4 != null &&
this.AddressLine4.Equals(input.AddressLine4))
) &&
(
this.AddressLine5 == input.AddressLine5 ||
(this.AddressLine5 != null &&
this.AddressLine5.Equals(input.AddressLine5))
) &&
(
this.PostalCodeExtension == input.PostalCodeExtension ||
(this.PostalCodeExtension != null &&
this.PostalCodeExtension.Equals(input.PostalCodeExtension))
) &&
(
this.Territory == input.Territory ||
(this.Territory != null &&
this.Territory.Equals(input.Territory))
) &&
(
this.MarketingAllowedFlag == input.MarketingAllowedFlag ||
(this.MarketingAllowedFlag != null &&
this.MarketingAllowedFlag.Equals(input.MarketingAllowedFlag))
) &&
(
this.TaxHandlingCode == input.TaxHandlingCode ||
(this.TaxHandlingCode != null &&
this.TaxHandlingCode.Equals(input.TaxHandlingCode))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.City != null)
hashCode = hashCode * 59 + this.City.GetHashCode();
if (this.PostalCode != null)
hashCode = hashCode * 59 + this.PostalCode.GetHashCode();
if (this.IsoCountryCode != null)
hashCode = hashCode * 59 + this.IsoCountryCode.GetHashCode();
if (this.SubTerritoryName != null)
hashCode = hashCode * 59 + this.SubTerritoryName.GetHashCode();
if (this.TerritoryName != null)
hashCode = hashCode * 59 + this.TerritoryName.GetHashCode();
if (this.AddressLine1 != null)
hashCode = hashCode * 59 + this.AddressLine1.GetHashCode();
if (this.AddressLine2 != null)
hashCode = hashCode * 59 + this.AddressLine2.GetHashCode();
if (this.AddressLine3 != null)
hashCode = hashCode * 59 + this.AddressLine3.GetHashCode();
if (this.AddressLine4 != null)
hashCode = hashCode * 59 + this.AddressLine4.GetHashCode();
if (this.AddressLine5 != null)
hashCode = hashCode * 59 + this.AddressLine5.GetHashCode();
if (this.PostalCodeExtension != null)
hashCode = hashCode * 59 + this.PostalCodeExtension.GetHashCode();
if (this.Territory != null)
hashCode = hashCode * 59 + this.Territory.GetHashCode();
if (this.MarketingAllowedFlag != null)
hashCode = hashCode * 59 + this.MarketingAllowedFlag.GetHashCode();
if (this.TaxHandlingCode != null)
hashCode = hashCode * 59 + this.TaxHandlingCode.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// ContactAddress.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey" /> class.
/// </summary>
/// <param name="contactPurposeTypeCode">&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="contactMethodTypeCode">&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey(string contactPurposeTypeCode = default(string), string contactMethodTypeCode = default(string))
{
// to ensure "contactPurposeTypeCode" is required (not null)
if (contactPurposeTypeCode == null)
{
throw new InvalidDataException("contactPurposeTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey and cannot be null");
}
else
{
this.ContactPurposeTypeCode = contactPurposeTypeCode;
}
// to ensure "contactMethodTypeCode" is required (not null)
if (contactMethodTypeCode == null)
{
throw new InvalidDataException("contactMethodTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey and cannot be null");
}
else
{
this.ContactMethodTypeCode = contactMethodTypeCode;
}
}
/// <summary>
/// &lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactPurposeTypeCode", EmitDefaultValue=false)]
public string ContactPurposeTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactMethodTypeCode", EmitDefaultValue=false)]
public string ContactMethodTypeCode { 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey {\n");
sb.Append(" ContactPurposeTypeCode: ").Append(ContactPurposeTypeCode).Append("\n");
sb.Append(" ContactMethodTypeCode: ").Append(ContactMethodTypeCode).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 ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactAddressKey input)
{
if (input == null)
return false;
return
(
this.ContactPurposeTypeCode == input.ContactPurposeTypeCode ||
(this.ContactPurposeTypeCode != null &&
this.ContactPurposeTypeCode.Equals(input.ContactPurposeTypeCode))
) &&
(
this.ContactMethodTypeCode == input.ContactMethodTypeCode ||
(this.ContactMethodTypeCode != null &&
this.ContactMethodTypeCode.Equals(input.ContactMethodTypeCode))
);
}
/// <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.ContactPurposeTypeCode != null)
hashCode = hashCode * 59 + this.ContactPurposeTypeCode.GetHashCode();
if (this.ContactMethodTypeCode != null)
hashCode = hashCode * 59 + this.ContactMethodTypeCode.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>
/// ContactDO &lt;p&gt;List of various contacts for a Party, e.g. address, telephone, fax, email-address.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactDO : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="internetURL">&lt;p&gt;Internet URL&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="addressList">&lt;p&gt;List of the addresses.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="telephoneList">&lt;p&gt;List of the telephone contacts.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="emailAddressList">&lt;p&gt;List of the email-addresses.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactDO(ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey key = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey), string internetURL = default(string), List<ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress> addressList = default(List<ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress>), List<ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone> telephoneList = default(List<ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone>), List<ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress> emailAddressList = default(List<ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress>), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactDO and cannot be null");
}
else
{
this.Key = key;
}
this.InternetURL = internetURL;
this.AddressList = addressList;
this.TelephoneList = telephoneList;
this.EmailAddressList = emailAddressList;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Internet URL&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internet URL&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="internetURL", EmitDefaultValue=false)]
public string InternetURL { get; set; }
/// <summary>
/// &lt;p&gt;List of the addresses.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the addresses.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="addressList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdContactDtoDomContactAddress> AddressList { get; set; }
/// <summary>
/// &lt;p&gt;List of the telephone contacts.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the telephone contacts.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="telephoneList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone> TelephoneList { get; set; }
/// <summary>
/// &lt;p&gt;List of the email-addresses.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the email-addresses.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="emailAddressList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress> EmailAddressList { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdContactDtoDomContactDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" InternetURL: ").Append(InternetURL).Append("\n");
sb.Append(" AddressList: ").Append(AddressList).Append("\n");
sb.Append(" TelephoneList: ").Append(TelephoneList).Append("\n");
sb.Append(" EmailAddressList: ").Append(EmailAddressList).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdContactDtoDomContactDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.InternetURL == input.InternetURL ||
(this.InternetURL != null &&
this.InternetURL.Equals(input.InternetURL))
) &&
(
this.AddressList == input.AddressList ||
this.AddressList != null &&
this.AddressList.SequenceEqual(input.AddressList)
) &&
(
this.TelephoneList == input.TelephoneList ||
this.TelephoneList != null &&
this.TelephoneList.SequenceEqual(input.TelephoneList)
) &&
(
this.EmailAddressList == input.EmailAddressList ||
this.EmailAddressList != null &&
this.EmailAddressList.SequenceEqual(input.EmailAddressList)
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.InternetURL != null)
hashCode = hashCode * 59 + this.InternetURL.GetHashCode();
if (this.AddressList != null)
hashCode = hashCode * 59 + this.AddressList.GetHashCode();
if (this.TelephoneList != null)
hashCode = hashCode * 59 + this.TelephoneList.GetHashCode();
if (this.EmailAddressList != null)
hashCode = hashCode * 59 + this.EmailAddressList.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// ContactDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="partyID">&lt;p&gt;A unique, system assigned identity for a Party.&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 ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey(string businessUnitGroupID = default(string), string partyID = default(string), string partyRoleTypeCode = default(string), int? sequenceNumber = default(int?))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey and cannot be null");
}
else
{
this.PartyID = partyID;
}
// to ensure "partyRoleTypeCode" is required (not null)
if (partyRoleTypeCode == null)
{
throw new InvalidDataException("partyRoleTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey and cannot be null");
}
else
{
this.SequenceNumber = sequenceNumber;
}
}
/// <summary>
/// &lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;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 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" PartyID: ").Append(PartyID).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 ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactDOKey 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))
) &&
(
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.BusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.BusinessUnitGroupID.GetHashCode();
if (this.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.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>
/// ContactEmailAddress &lt;p&gt;List of email addresses.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="emailAddress">&lt;p&gt;E-mail address of the company or the person.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="marketingAllowedFlag">&lt;p&gt;Denotes if the contact email address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress(ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey key = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey), string emailAddress = default(string), bool? marketingAllowedFlag = default(bool?), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress and cannot be null");
}
else
{
this.Key = key;
}
this.EmailAddress = emailAddress;
this.MarketingAllowedFlag = marketingAllowedFlag;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey Key { get; set; }
/// <summary>
/// &lt;p&gt;E-mail address of the company or the person.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;E-mail address of the company or the person.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="emailAddress", EmitDefaultValue=false)]
public string EmailAddress { get; set; }
/// <summary>
/// &lt;p&gt;Denotes if the contact email address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes if the contact email address data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="marketingAllowedFlag", EmitDefaultValue=false)]
public bool? MarketingAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n");
sb.Append(" MarketingAllowedFlag: ").Append(MarketingAllowedFlag).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddress input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.EmailAddress == input.EmailAddress ||
(this.EmailAddress != null &&
this.EmailAddress.Equals(input.EmailAddress))
) &&
(
this.MarketingAllowedFlag == input.MarketingAllowedFlag ||
(this.MarketingAllowedFlag != null &&
this.MarketingAllowedFlag.Equals(input.MarketingAllowedFlag))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.EmailAddress != null)
hashCode = hashCode * 59 + this.EmailAddress.GetHashCode();
if (this.MarketingAllowedFlag != null)
hashCode = hashCode * 59 + this.MarketingAllowedFlag.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// ContactEmailAddress.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey" /> class.
/// </summary>
/// <param name="contactPurposeTypeCode">&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="contactMethodTypeCode">&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey(string contactPurposeTypeCode = default(string), string contactMethodTypeCode = default(string))
{
// to ensure "contactPurposeTypeCode" is required (not null)
if (contactPurposeTypeCode == null)
{
throw new InvalidDataException("contactPurposeTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey and cannot be null");
}
else
{
this.ContactPurposeTypeCode = contactPurposeTypeCode;
}
// to ensure "contactMethodTypeCode" is required (not null)
if (contactMethodTypeCode == null)
{
throw new InvalidDataException("contactMethodTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey and cannot be null");
}
else
{
this.ContactMethodTypeCode = contactMethodTypeCode;
}
}
/// <summary>
/// &lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactPurposeTypeCode", EmitDefaultValue=false)]
public string ContactPurposeTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactMethodTypeCode", EmitDefaultValue=false)]
public string ContactMethodTypeCode { 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey {\n");
sb.Append(" ContactPurposeTypeCode: ").Append(ContactPurposeTypeCode).Append("\n");
sb.Append(" ContactMethodTypeCode: ").Append(ContactMethodTypeCode).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 ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactEmailAddressKey input)
{
if (input == null)
return false;
return
(
this.ContactPurposeTypeCode == input.ContactPurposeTypeCode ||
(this.ContactPurposeTypeCode != null &&
this.ContactPurposeTypeCode.Equals(input.ContactPurposeTypeCode))
) &&
(
this.ContactMethodTypeCode == input.ContactMethodTypeCode ||
(this.ContactMethodTypeCode != null &&
this.ContactMethodTypeCode.Equals(input.ContactMethodTypeCode))
);
}
/// <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.ContactPurposeTypeCode != null)
hashCode = hashCode * 59 + this.ContactPurposeTypeCode.GetHashCode();
if (this.ContactMethodTypeCode != null)
hashCode = hashCode * 59 + this.ContactMethodTypeCode.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>
/// ContactTelephone &lt;p&gt;List of telephone and fax numbers.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="completeTelephoneNumber">&lt;p&gt;The complete telephone number&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="marketingAllowedFlag">&lt;p&gt;Denotes if the contact telephone data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone(ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey key = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey), string completeTelephoneNumber = default(string), bool? marketingAllowedFlag = default(bool?), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone and cannot be null");
}
else
{
this.Key = key;
}
this.CompleteTelephoneNumber = completeTelephoneNumber;
this.MarketingAllowedFlag = marketingAllowedFlag;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey Key { get; set; }
/// <summary>
/// &lt;p&gt;The complete telephone number&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The complete telephone number&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="completeTelephoneNumber", EmitDefaultValue=false)]
public string CompleteTelephoneNumber { get; set; }
/// <summary>
/// &lt;p&gt;Denotes if the contact telephone data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes if the contact telephone data can be used for marketing purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="marketingAllowedFlag", EmitDefaultValue=false)]
public bool? MarketingAllowedFlag { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" CompleteTelephoneNumber: ").Append(CompleteTelephoneNumber).Append("\n");
sb.Append(" MarketingAllowedFlag: ").Append(MarketingAllowedFlag).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephone input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.CompleteTelephoneNumber == input.CompleteTelephoneNumber ||
(this.CompleteTelephoneNumber != null &&
this.CompleteTelephoneNumber.Equals(input.CompleteTelephoneNumber))
) &&
(
this.MarketingAllowedFlag == input.MarketingAllowedFlag ||
(this.MarketingAllowedFlag != null &&
this.MarketingAllowedFlag.Equals(input.MarketingAllowedFlag))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.CompleteTelephoneNumber != null)
hashCode = hashCode * 59 + this.CompleteTelephoneNumber.GetHashCode();
if (this.MarketingAllowedFlag != null)
hashCode = hashCode * 59 + this.MarketingAllowedFlag.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// ContactTelephone.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey : IEquatable<ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey" /> class.
/// </summary>
/// <param name="contactPurposeTypeCode">&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="contactMethodTypeCode">&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey(string contactPurposeTypeCode = default(string), string contactMethodTypeCode = default(string))
{
// to ensure "contactPurposeTypeCode" is required (not null)
if (contactPurposeTypeCode == null)
{
throw new InvalidDataException("contactPurposeTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey and cannot be null");
}
else
{
this.ContactPurposeTypeCode = contactPurposeTypeCode;
}
// to ensure "contactMethodTypeCode" is required (not null)
if (contactMethodTypeCode == null)
{
throw new InvalidDataException("contactMethodTypeCode is a required property for ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey and cannot be null");
}
else
{
this.ContactMethodTypeCode = contactMethodTypeCode;
}
}
/// <summary>
/// &lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Code denoting a reason for contacting a Party.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactPurposeTypeCode", EmitDefaultValue=false)]
public string ContactPurposeTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A retailer assigned code denoting a method of contacting a Party. Suggested values include: WorkPhone, HomePhone, WorkFax, HomeFax, Mobile, Pager.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contactMethodTypeCode", EmitDefaultValue=false)]
public string ContactMethodTypeCode { 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 ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey {\n");
sb.Append(" ContactPurposeTypeCode: ").Append(ContactPurposeTypeCode).Append("\n");
sb.Append(" ContactMethodTypeCode: ").Append(ContactMethodTypeCode).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 ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdContactDtoDomContactTelephoneKey input)
{
if (input == null)
return false;
return
(
this.ContactPurposeTypeCode == input.ContactPurposeTypeCode ||
(this.ContactPurposeTypeCode != null &&
this.ContactPurposeTypeCode.Equals(input.ContactPurposeTypeCode))
) &&
(
this.ContactMethodTypeCode == input.ContactMethodTypeCode ||
(this.ContactMethodTypeCode != null &&
this.ContactMethodTypeCode.Equals(input.ContactMethodTypeCode))
);
}
/// <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.ContactPurposeTypeCode != null)
hashCode = hashCode * 59 + this.ContactPurposeTypeCode.GetHashCode();
if (this.ContactMethodTypeCode != null)
hashCode = hashCode * 59 + this.ContactMethodTypeCode.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>
/// CurrencyDO &lt;p&gt;Specifies the national designation and quantitative value of monetary media used as tender.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO : IEquatable<ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="symbol">&lt;p&gt;National symbol for the main unit of currency, e.g. £, $, etc&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="translationList">&lt;p&gt;List of translations for the currency.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="tid">&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isocountryCode">&lt;p&gt;The ISO code of the country issuing the currency.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isocurrencyName">&lt;p&gt;A name of the currency, i.e. pounds sterling, US dollars, Canadian dollars, etc.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isocurrencyNumber">&lt;p&gt;Numeric code assigned by ISO to identify national currencies.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO(ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey key = default(ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey), string symbol = default(string), List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> translationList = default(List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO>), string packageID = default(string), string tid = default(string), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string isocountryCode = default(string), string isocurrencyName = default(string), string isocurrencyNumber = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO and cannot be null");
}
else
{
this.Key = key;
}
this.Symbol = symbol;
this.TranslationList = translationList;
this.PackageID = packageID;
this.Tid = tid;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.IsocountryCode = isocountryCode;
this.IsocurrencyName = isocurrencyName;
this.IsocurrencyNumber = isocurrencyNumber;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;National symbol for the main unit of currency, e.g. £, $, etc&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;National symbol for the main unit of currency, e.g. £, $, etc&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="symbol", EmitDefaultValue=false)]
public string Symbol { get; set; }
/// <summary>
/// &lt;p&gt;List of translations for the currency.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of translations for the currency.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="translationList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerCommonTranslationsDtoDomTranslationDO> TranslationList { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Translation identifier - used for the unique identification of translations in the common translation table.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="tid", EmitDefaultValue=false)]
public string Tid { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;The ISO code of the country issuing the currency.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The ISO code of the country issuing the currency.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocountryCode", EmitDefaultValue=false)]
public string IsocountryCode { get; set; }
/// <summary>
/// &lt;p&gt;A name of the currency, i.e. pounds sterling, US dollars, Canadian dollars, etc.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A name of the currency, i.e. pounds sterling, US dollars, Canadian dollars, etc.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocurrencyName", EmitDefaultValue=false)]
public string IsocurrencyName { get; set; }
/// <summary>
/// &lt;p&gt;Numeric code assigned by ISO to identify national currencies.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Numeric code assigned by ISO to identify national currencies.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocurrencyNumber", EmitDefaultValue=false)]
public string IsocurrencyNumber { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Symbol: ").Append(Symbol).Append("\n");
sb.Append(" TranslationList: ").Append(TranslationList).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Tid: ").Append(Tid).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" IsocountryCode: ").Append(IsocountryCode).Append("\n");
sb.Append(" IsocurrencyName: ").Append(IsocurrencyName).Append("\n");
sb.Append(" IsocurrencyNumber: ").Append(IsocurrencyNumber).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Symbol == input.Symbol ||
(this.Symbol != null &&
this.Symbol.Equals(input.Symbol))
) &&
(
this.TranslationList == input.TranslationList ||
this.TranslationList != null &&
this.TranslationList.SequenceEqual(input.TranslationList)
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Tid == input.Tid ||
(this.Tid != null &&
this.Tid.Equals(input.Tid))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.IsocountryCode == input.IsocountryCode ||
(this.IsocountryCode != null &&
this.IsocountryCode.Equals(input.IsocountryCode))
) &&
(
this.IsocurrencyName == input.IsocurrencyName ||
(this.IsocurrencyName != null &&
this.IsocurrencyName.Equals(input.IsocurrencyName))
) &&
(
this.IsocurrencyNumber == input.IsocurrencyNumber ||
(this.IsocurrencyNumber != null &&
this.IsocurrencyNumber.Equals(input.IsocurrencyNumber))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.Symbol != null)
hashCode = hashCode * 59 + this.Symbol.GetHashCode();
if (this.TranslationList != null)
hashCode = hashCode * 59 + this.TranslationList.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Tid != null)
hashCode = hashCode * 59 + this.Tid.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.IsocountryCode != null)
hashCode = hashCode * 59 + this.IsocountryCode.GetHashCode();
if (this.IsocurrencyName != null)
hashCode = hashCode * 59 + this.IsocurrencyName.GetHashCode();
if (this.IsocurrencyNumber != null)
hashCode = hashCode * 59 + this.IsocurrencyNumber.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// CurrencyDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey : IEquatable<ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="isocurrencyCode">&lt;p&gt;Currency code designated by ISO to identify national currency. The unique identifier of the currency.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey(string businessUnitGroupID = default(string), string isocurrencyCode = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "isocurrencyCode" is required (not null)
if (isocurrencyCode == null)
{
throw new InvalidDataException("isocurrencyCode is a required property for ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey and cannot be null");
}
else
{
this.IsocurrencyCode = isocurrencyCode;
}
}
/// <summary>
/// &lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Currency code designated by ISO to identify national currency. The unique identifier of the currency.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Currency code designated by ISO to identify national currency. The unique identifier of the currency.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocurrencyCode", EmitDefaultValue=false)]
public string IsocurrencyCode { 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 ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" IsocurrencyCode: ").Append(IsocurrencyCode).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 ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCurrencyDtoDomCurrencyDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.IsocurrencyCode == input.IsocurrencyCode ||
(this.IsocurrencyCode != null &&
this.IsocurrencyCode.Equals(input.IsocurrencyCode))
);
}
/// <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.IsocurrencyCode != null)
hashCode = hashCode * 59 + this.IsocurrencyCode.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>
/// CurrencyRoundingRuleDO &lt;p&gt;RoundingRules contains fields for rounding rules for specific BUG.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO : IEquatable<ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO>, IValidatableObject
{
/// <summary>
/// &lt;p&gt;Defines how the result is to be rounded:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_ROUNDING(00) &#x3D; no rounding&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_UP(01) &#x3D; round half up (round up for &amp;gt;&#x3D; 0.5, else round down),&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_DOWN(02) &#x3D; round down&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_UP(03) &#x3D; round up&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_DOWN(04) &#x3D; round half down (round up for &amp;gt; 0.5, else round down)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines how the result is to be rounded:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_ROUNDING(00) &#x3D; no rounding&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_UP(01) &#x3D; round half up (round up for &amp;gt;&#x3D; 0.5, else round down),&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_DOWN(02) &#x3D; round down&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_UP(03) &#x3D; round up&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_DOWN(04) &#x3D; round half down (round up for &amp;gt; 0.5, else round down)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum RoundMethodCodeEnum
{
/// <summary>
/// Enum NOROUNDING for value: NO_ROUNDING
/// </summary>
[EnumMember(Value = "NO_ROUNDING")]
NOROUNDING = 1,
/// <summary>
/// Enum ROUNDHALFUP for value: ROUND_HALF_UP
/// </summary>
[EnumMember(Value = "ROUND_HALF_UP")]
ROUNDHALFUP = 2,
/// <summary>
/// Enum ROUNDDOWN for value: ROUND_DOWN
/// </summary>
[EnumMember(Value = "ROUND_DOWN")]
ROUNDDOWN = 3,
/// <summary>
/// Enum ROUNDUP for value: ROUND_UP
/// </summary>
[EnumMember(Value = "ROUND_UP")]
ROUNDUP = 4,
/// <summary>
/// Enum ROUNDHALFDOWN for value: ROUND_HALF_DOWN
/// </summary>
[EnumMember(Value = "ROUND_HALF_DOWN")]
ROUNDHALFDOWN = 5
}
/// <summary>
/// &lt;p&gt;Defines how the result is to be rounded:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_ROUNDING(00) &#x3D; no rounding&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_UP(01) &#x3D; round half up (round up for &amp;gt;&#x3D; 0.5, else round down),&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_DOWN(02) &#x3D; round down&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_UP(03) &#x3D; round up&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_DOWN(04) &#x3D; round half down (round up for &amp;gt; 0.5, else round down)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Defines how the result is to be rounded:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_ROUNDING(00) &#x3D; no rounding&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_UP(01) &#x3D; round half up (round up for &amp;gt;&#x3D; 0.5, else round down),&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_DOWN(02) &#x3D; round down&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_UP(03) &#x3D; round up&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_DOWN(04) &#x3D; round half down (round up for &amp;gt; 0.5, else round down)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="roundMethodCode", EmitDefaultValue=false)]
public RoundMethodCodeEnum? RoundMethodCode { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="roundMethodCode">&lt;p&gt;Defines how the result is to be rounded:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt; NO_ROUNDING(00) &#x3D; no rounding&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_UP(01) &#x3D; round half up (round up for &amp;gt;&#x3D; 0.5, else round down),&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_DOWN(02) &#x3D; round down&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_UP(03) &#x3D; round up&lt;/li&gt;&lt;br /&gt; &lt;li&gt; ROUND_HALF_DOWN(04) &#x3D; round half down (round up for &amp;gt; 0.5, else round down)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="roundDecimalCount">&lt;p&gt;Count of decimals which the result should have&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="roundDestinationValue">&lt;p&gt;Additional information for rounding, possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;null / 1: no additional treatment of the rounded result necessary&lt;/li&gt;&lt;br /&gt; &lt;li&gt;5: the rounded result is to be adjusted to the next resp. previous multiple of 5&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="roundPaymentAmount">&lt;p&gt;Defines the denomination value that is used for rounding payment amounts on POS.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO(ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey key = default(ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey), RoundMethodCodeEnum? roundMethodCode = default(RoundMethodCodeEnum?), int? roundDecimalCount = default(int?), int? roundDestinationValue = default(int?), double? roundPaymentAmount = default(double?), string packageID = default(string), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO and cannot be null");
}
else
{
this.Key = key;
}
this.RoundMethodCode = roundMethodCode;
this.RoundDecimalCount = roundDecimalCount;
this.RoundDestinationValue = roundDestinationValue;
this.RoundPaymentAmount = roundPaymentAmount;
this.PackageID = packageID;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Count of decimals which the result should have&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Count of decimals which the result should have&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="roundDecimalCount", EmitDefaultValue=false)]
public int? RoundDecimalCount { get; set; }
/// <summary>
/// &lt;p&gt;Additional information for rounding, possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;null / 1: no additional treatment of the rounded result necessary&lt;/li&gt;&lt;br /&gt; &lt;li&gt;5: the rounded result is to be adjusted to the next resp. previous multiple of 5&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;p&gt;Additional information for rounding, possible values:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt; &lt;li&gt;null / 1: no additional treatment of the rounded result necessary&lt;/li&gt;&lt;br /&gt; &lt;li&gt;5: the rounded result is to be adjusted to the next resp. previous multiple of 5&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="roundDestinationValue", EmitDefaultValue=false)]
public int? RoundDestinationValue { get; set; }
/// <summary>
/// &lt;p&gt;Defines the denomination value that is used for rounding payment amounts on POS.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines the denomination value that is used for rounding payment amounts on POS.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="roundPaymentAmount", EmitDefaultValue=false)]
public double? RoundPaymentAmount { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" RoundMethodCode: ").Append(RoundMethodCode).Append("\n");
sb.Append(" RoundDecimalCount: ").Append(RoundDecimalCount).Append("\n");
sb.Append(" RoundDestinationValue: ").Append(RoundDestinationValue).Append("\n");
sb.Append(" RoundPaymentAmount: ").Append(RoundPaymentAmount).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.RoundMethodCode == input.RoundMethodCode ||
(this.RoundMethodCode != null &&
this.RoundMethodCode.Equals(input.RoundMethodCode))
) &&
(
this.RoundDecimalCount == input.RoundDecimalCount ||
(this.RoundDecimalCount != null &&
this.RoundDecimalCount.Equals(input.RoundDecimalCount))
) &&
(
this.RoundDestinationValue == input.RoundDestinationValue ||
(this.RoundDestinationValue != null &&
this.RoundDestinationValue.Equals(input.RoundDestinationValue))
) &&
(
this.RoundPaymentAmount == input.RoundPaymentAmount ||
(this.RoundPaymentAmount != null &&
this.RoundPaymentAmount.Equals(input.RoundPaymentAmount))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.RoundMethodCode != null)
hashCode = hashCode * 59 + this.RoundMethodCode.GetHashCode();
if (this.RoundDecimalCount != null)
hashCode = hashCode * 59 + this.RoundDecimalCount.GetHashCode();
if (this.RoundDestinationValue != null)
hashCode = hashCode * 59 + this.RoundDestinationValue.GetHashCode();
if (this.RoundPaymentAmount != null)
hashCode = hashCode * 59 + this.RoundPaymentAmount.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// CurrencyRoundingRuleDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey : IEquatable<ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="isocurrencyCode">&lt;p&gt;Currency code designated by ISO to identify national currency.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey(string businessUnitGroupID = default(string), string isocurrencyCode = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "isocurrencyCode" is required (not null)
if (isocurrencyCode == null)
{
throw new InvalidDataException("isocurrencyCode is a required property for ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey and cannot be null");
}
else
{
this.IsocurrencyCode = isocurrencyCode;
}
}
/// <summary>
/// &lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The unique identifier of the business unit group.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Currency code designated by ISO to identify national currency.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Currency code designated by ISO to identify national currency.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isocurrencyCode", EmitDefaultValue=false)]
public string IsocurrencyCode { 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 ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" IsocurrencyCode: ").Append(IsocurrencyCode).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 ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCurrencyRoundingRuleDtoDomCurrencyRoundingRuleDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.IsocurrencyCode == input.IsocurrencyCode ||
(this.IsocurrencyCode != null &&
this.IsocurrencyCode.Equals(input.IsocurrencyCode))
);
}
/// <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.IsocurrencyCode != null)
hashCode = hashCode * 59 + this.IsocurrencyCode.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>
/// CreditCard &lt;p&gt;Credit card.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard" /> class.
/// </summary>
/// <param name="cardNumber">&lt;p&gt;The card number (Identifier).&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="externalPartyIdentificationProviderID">&lt;p&gt;A retailer assigned code denoting the official body that issued the PartyIdentification to the Party.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="lockingTypeCode">&lt;p&gt;Defines why this identifier is locked.&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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard(string cardNumber = 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 "cardNumber" is required (not null)
if (cardNumber == null)
{
throw new InvalidDataException("cardNumber is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard and cannot be null");
}
else
{
this.CardNumber = cardNumber;
}
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;The card number (Identifier).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The card number (Identifier).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="cardNumber", EmitDefaultValue=false)]
public string CardNumber { get; set; }
/// <summary>
/// &lt;p&gt;A retailer assigned code denoting the official body that issued the PartyIdentification to the Party.&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.&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.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Defines why this identifier is locked.&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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard {\n");
sb.Append(" CardNumber: ").Append(CardNumber).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard input)
{
if (input == null)
return false;
return
(
this.CardNumber == input.CardNumber ||
(this.CardNumber != null &&
this.CardNumber.Equals(input.CardNumber))
) &&
(
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.CardNumber != null)
hashCode = hashCode * 59 + this.CardNumber.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>
/// CustomerCard &lt;p&gt;Customer card&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard" /> class.
/// </summary>
/// <param name="cardType">&lt;p&gt;The card type&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="cardNumber">&lt;p&gt;The card number (Identifier).&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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard(string cardType = default(string), string cardNumber = default(string), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "cardType" is required (not null)
if (cardType == null)
{
throw new InvalidDataException("cardType is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard and cannot be null");
}
else
{
this.CardType = cardType;
}
// to ensure "cardNumber" is required (not null)
if (cardNumber == null)
{
throw new InvalidDataException("cardNumber is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard and cannot be null");
}
else
{
this.CardNumber = cardNumber;
}
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;The card type&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The card type&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="cardType", EmitDefaultValue=false)]
public string CardType { get; set; }
/// <summary>
/// &lt;p&gt;The card number (Identifier).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The card number (Identifier).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="cardNumber", EmitDefaultValue=false)]
public string CardNumber { 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard {\n");
sb.Append(" CardType: ").Append(CardType).Append("\n");
sb.Append(" CardNumber: ").Append(CardNumber).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard input)
{
if (input == null)
return false;
return
(
this.CardType == input.CardType ||
(this.CardType != null &&
this.CardType.Equals(input.CardType))
) &&
(
this.CardNumber == input.CardNumber ||
(this.CardNumber != null &&
this.CardNumber.Equals(input.CardNumber))
) &&
(
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.CardType != null)
hashCode = hashCode * 59 + this.CardType.GetHashCode();
if (this.CardNumber != null)
hashCode = hashCode * 59 + this.CardNumber.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>
/// CustomerContactFilter &lt;p&gt;A customer is a person or individual who purchases, may purchase, or did purchase goods or services from a retail store.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter" /> class.
/// </summary>
/// <param name="customerID">customerID.</param>
/// <param name="name">name.</param>
/// <param name="organizationName">organizationName.</param>
/// <param name="firstName">firstName.</param>
/// <param name="lastName">lastName.</param>
/// <param name="street">street.</param>
/// <param name="city">city.</param>
/// <param name="postalCode">postalCode.</param>
/// <param name="isoCountryCode">isoCountryCode.</param>
/// <param name="territoryName">territoryName.</param>
/// <param name="completeTelephoneNumber">completeTelephoneNumber.</param>
/// <param name="emailAddress">emailAddress.</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter(string customerID = default(string), string name = default(string), string organizationName = default(string), string firstName = default(string), string lastName = default(string), string street = default(string), string city = default(string), string postalCode = default(string), string isoCountryCode = default(string), string territoryName = default(string), string completeTelephoneNumber = default(string), string emailAddress = default(string))
{
this.CustomerID = customerID;
this.Name = name;
this.OrganizationName = organizationName;
this.FirstName = firstName;
this.LastName = lastName;
this.Street = street;
this.City = city;
this.PostalCode = postalCode;
this.IsoCountryCode = isoCountryCode;
this.TerritoryName = territoryName;
this.CompleteTelephoneNumber = completeTelephoneNumber;
this.EmailAddress = emailAddress;
}
/// <summary>
/// Gets or Sets CustomerID
/// </summary>
[DataMember(Name="customerID", EmitDefaultValue=false)]
public string CustomerID { get; set; }
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }
/// <summary>
/// Gets or Sets OrganizationName
/// </summary>
[DataMember(Name="organizationName", EmitDefaultValue=false)]
public string OrganizationName { get; set; }
/// <summary>
/// Gets or Sets FirstName
/// </summary>
[DataMember(Name="firstName", EmitDefaultValue=false)]
public string FirstName { get; set; }
/// <summary>
/// Gets or Sets LastName
/// </summary>
[DataMember(Name="lastName", EmitDefaultValue=false)]
public string LastName { get; set; }
/// <summary>
/// Gets or Sets Street
/// </summary>
[DataMember(Name="street", EmitDefaultValue=false)]
public string Street { get; set; }
/// <summary>
/// Gets or Sets City
/// </summary>
[DataMember(Name="city", EmitDefaultValue=false)]
public string City { get; set; }
/// <summary>
/// Gets or Sets PostalCode
/// </summary>
[DataMember(Name="postalCode", EmitDefaultValue=false)]
public string PostalCode { get; set; }
/// <summary>
/// Gets or Sets IsoCountryCode
/// </summary>
[DataMember(Name="isoCountryCode", EmitDefaultValue=false)]
public string IsoCountryCode { get; set; }
/// <summary>
/// Gets or Sets TerritoryName
/// </summary>
[DataMember(Name="territoryName", EmitDefaultValue=false)]
public string TerritoryName { get; set; }
/// <summary>
/// Gets or Sets CompleteTelephoneNumber
/// </summary>
[DataMember(Name="completeTelephoneNumber", EmitDefaultValue=false)]
public string CompleteTelephoneNumber { get; set; }
/// <summary>
/// Gets or Sets EmailAddress
/// </summary>
[DataMember(Name="emailAddress", EmitDefaultValue=false)]
public string EmailAddress { 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter {\n");
sb.Append(" CustomerID: ").Append(CustomerID).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" OrganizationName: ").Append(OrganizationName).Append("\n");
sb.Append(" FirstName: ").Append(FirstName).Append("\n");
sb.Append(" LastName: ").Append(LastName).Append("\n");
sb.Append(" Street: ").Append(Street).Append("\n");
sb.Append(" City: ").Append(City).Append("\n");
sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
sb.Append(" IsoCountryCode: ").Append(IsoCountryCode).Append("\n");
sb.Append(" TerritoryName: ").Append(TerritoryName).Append("\n");
sb.Append(" CompleteTelephoneNumber: ").Append(CompleteTelephoneNumber).Append("\n");
sb.Append(" EmailAddress: ").Append(EmailAddress).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactFilter input)
{
if (input == null)
return false;
return
(
this.CustomerID == input.CustomerID ||
(this.CustomerID != null &&
this.CustomerID.Equals(input.CustomerID))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.OrganizationName == input.OrganizationName ||
(this.OrganizationName != null &&
this.OrganizationName.Equals(input.OrganizationName))
) &&
(
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.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
) &&
(
this.IsoCountryCode == input.IsoCountryCode ||
(this.IsoCountryCode != null &&
this.IsoCountryCode.Equals(input.IsoCountryCode))
) &&
(
this.TerritoryName == input.TerritoryName ||
(this.TerritoryName != null &&
this.TerritoryName.Equals(input.TerritoryName))
) &&
(
this.CompleteTelephoneNumber == input.CompleteTelephoneNumber ||
(this.CompleteTelephoneNumber != null &&
this.CompleteTelephoneNumber.Equals(input.CompleteTelephoneNumber))
) &&
(
this.EmailAddress == input.EmailAddress ||
(this.EmailAddress != null &&
this.EmailAddress.Equals(input.EmailAddress))
);
}
/// <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.CustomerID != null)
hashCode = hashCode * 59 + this.CustomerID.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.OrganizationName != null)
hashCode = hashCode * 59 + this.OrganizationName.GetHashCode();
if (this.FirstName != null)
hashCode = hashCode * 59 + this.FirstName.GetHashCode();
if (this.LastName != null)
hashCode = hashCode * 59 + this.LastName.GetHashCode();
if (this.Street != null)
hashCode = hashCode * 59 + this.Street.GetHashCode();
if (this.City != null)
hashCode = hashCode * 59 + this.City.GetHashCode();
if (this.PostalCode != null)
hashCode = hashCode * 59 + this.PostalCode.GetHashCode();
if (this.IsoCountryCode != null)
hashCode = hashCode * 59 + this.IsoCountryCode.GetHashCode();
if (this.TerritoryName != null)
hashCode = hashCode * 59 + this.TerritoryName.GetHashCode();
if (this.CompleteTelephoneNumber != null)
hashCode = hashCode * 59 + this.CompleteTelephoneNumber.GetHashCode();
if (this.EmailAddress != null)
hashCode = hashCode * 59 + this.EmailAddress.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>
/// CustomerContactView &lt;p&gt;View for displaying customer contact&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView>, IValidatableObject
{
/// <summary>
/// &lt;ul&gt;&lt;br /&gt; &lt;li&gt;PERSON - if table person is filled&lt;/li&gt;&lt;br /&gt; &lt;li&gt;ORGANIZATION - if table orgabnization is filled&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;ul&gt;&lt;br /&gt; &lt;li&gt;PERSON - if table person is filled&lt;/li&gt;&lt;br /&gt; &lt;li&gt;ORGANIZATION - if table orgabnization is filled&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum CustomerTypeEnum
{
/// <summary>
/// Enum PERSON for value: PERSON
/// </summary>
[EnumMember(Value = "PERSON")]
PERSON = 1,
/// <summary>
/// Enum ORGANIZATION for value: ORGANIZATION
/// </summary>
[EnumMember(Value = "ORGANIZATION")]
ORGANIZATION = 2
}
/// <summary>
/// &lt;ul&gt;&lt;br /&gt; &lt;li&gt;PERSON - if table person is filled&lt;/li&gt;&lt;br /&gt; &lt;li&gt;ORGANIZATION - if table orgabnization is filled&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;
/// </summary>
/// <value>&lt;ul&gt;&lt;br /&gt; &lt;li&gt;PERSON - if table person is filled&lt;/li&gt;&lt;br /&gt; &lt;li&gt;ORGANIZATION - if table orgabnization is filled&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;</value>
[DataMember(Name="customerType", EmitDefaultValue=false)]
public CustomerTypeEnum? CustomerType { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView" /> class.
/// </summary>
/// <param name="businessUnitGroupID">&lt;p&gt;The identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerID">&lt;p&gt;The identifier for the customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="salutation">salutation.</param>
/// <param name="name">&lt;p&gt;A customer name.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="street">&lt;p&gt;The street name and number&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="city">&lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="postalCode">&lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="isoCountryCode">&lt;p&gt;The ISO country code&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="territoryName">&lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="completeTelephoneNumber">&lt;p&gt;The complete telephone number including the country code, area code, telephone number and extension number.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerType">&lt;ul&gt;&lt;br /&gt; &lt;li&gt;PERSON - if table person is filled&lt;/li&gt;&lt;br /&gt; &lt;li&gt;ORGANIZATION - if table orgabnization is filled&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;.</param>
/// <param name="emailAddress">&lt;p&gt;Email address&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="dataProtectCode">&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView(string businessUnitGroupID = default(string), string customerID = default(string), string salutation = default(string), string name = default(string), string street = default(string), string city = default(string), string postalCode = default(string), string isoCountryCode = default(string), string territoryName = default(string), string completeTelephoneNumber = default(string), CustomerTypeEnum? customerType = default(CustomerTypeEnum?), string emailAddress = default(string), string dataProtectCode = default(string))
{
this.BusinessUnitGroupID = businessUnitGroupID;
this.CustomerID = customerID;
this.Salutation = salutation;
this.Name = name;
this.Street = street;
this.City = city;
this.PostalCode = postalCode;
this.IsoCountryCode = isoCountryCode;
this.TerritoryName = territoryName;
this.CompleteTelephoneNumber = completeTelephoneNumber;
this.CustomerType = customerType;
this.EmailAddress = emailAddress;
this.DataProtectCode = dataProtectCode;
}
/// <summary>
/// &lt;p&gt;The identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;The identifier for the customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier for the customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerID", EmitDefaultValue=false)]
public string CustomerID { get; set; }
/// <summary>
/// Gets or Sets Salutation
/// </summary>
[DataMember(Name="salutation", EmitDefaultValue=false)]
public string Salutation { get; set; }
/// <summary>
/// &lt;p&gt;A customer name.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A customer name.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }
/// <summary>
/// &lt;p&gt;The street name and number&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The street name and number&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="street", EmitDefaultValue=false)]
public string Street { get; set; }
/// <summary>
/// &lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The city, town or village component of the address.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="city", EmitDefaultValue=false)]
public string City { get; set; }
/// <summary>
/// &lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The postal or zip code of the address.&lt;br /&gt; Used also for postalCodeOfPOBox.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="postalCode", EmitDefaultValue=false)]
public string PostalCode { get; set; }
/// <summary>
/// &lt;p&gt;The ISO country code&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The ISO country code&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="isoCountryCode", EmitDefaultValue=false)]
public string IsoCountryCode { get; set; }
/// <summary>
/// &lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Name of the region.&lt;br /&gt; Used also for district.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="territoryName", EmitDefaultValue=false)]
public string TerritoryName { get; set; }
/// <summary>
/// &lt;p&gt;The complete telephone number including the country code, area code, telephone number and extension number.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The complete telephone number including the country code, area code, telephone number and extension number.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="completeTelephoneNumber", EmitDefaultValue=false)]
public string CompleteTelephoneNumber { get; set; }
/// <summary>
/// &lt;p&gt;Email address&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Email address&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="emailAddress", EmitDefaultValue=false)]
public string EmailAddress { get; set; }
/// <summary>
/// &lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="dataProtectCode", EmitDefaultValue=false)]
public string DataProtectCode { get; set; }
/// <summary>
/// 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" CustomerID: ").Append(CustomerID).Append("\n");
sb.Append(" Salutation: ").Append(Salutation).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" Street: ").Append(Street).Append("\n");
sb.Append(" City: ").Append(City).Append("\n");
sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
sb.Append(" IsoCountryCode: ").Append(IsoCountryCode).Append("\n");
sb.Append(" TerritoryName: ").Append(TerritoryName).Append("\n");
sb.Append(" CompleteTelephoneNumber: ").Append(CompleteTelephoneNumber).Append("\n");
sb.Append(" CustomerType: ").Append(CustomerType).Append("\n");
sb.Append(" EmailAddress: ").Append(EmailAddress).Append("\n");
sb.Append(" DataProtectCode: ").Append(DataProtectCode).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerContactView input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.CustomerID == input.CustomerID ||
(this.CustomerID != null &&
this.CustomerID.Equals(input.CustomerID))
) &&
(
this.Salutation == input.Salutation ||
(this.Salutation != null &&
this.Salutation.Equals(input.Salutation))
) &&
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.Street == input.Street ||
(this.Street != null &&
this.Street.Equals(input.Street))
) &&
(
this.City == input.City ||
(this.City != null &&
this.City.Equals(input.City))
) &&
(
this.PostalCode == input.PostalCode ||
(this.PostalCode != null &&
this.PostalCode.Equals(input.PostalCode))
) &&
(
this.IsoCountryCode == input.IsoCountryCode ||
(this.IsoCountryCode != null &&
this.IsoCountryCode.Equals(input.IsoCountryCode))
) &&
(
this.TerritoryName == input.TerritoryName ||
(this.TerritoryName != null &&
this.TerritoryName.Equals(input.TerritoryName))
) &&
(
this.CompleteTelephoneNumber == input.CompleteTelephoneNumber ||
(this.CompleteTelephoneNumber != null &&
this.CompleteTelephoneNumber.Equals(input.CompleteTelephoneNumber))
) &&
(
this.CustomerType == input.CustomerType ||
(this.CustomerType != null &&
this.CustomerType.Equals(input.CustomerType))
) &&
(
this.EmailAddress == input.EmailAddress ||
(this.EmailAddress != null &&
this.EmailAddress.Equals(input.EmailAddress))
) &&
(
this.DataProtectCode == input.DataProtectCode ||
(this.DataProtectCode != null &&
this.DataProtectCode.Equals(input.DataProtectCode))
);
}
/// <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.CustomerID != null)
hashCode = hashCode * 59 + this.CustomerID.GetHashCode();
if (this.Salutation != null)
hashCode = hashCode * 59 + this.Salutation.GetHashCode();
if (this.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.Street != null)
hashCode = hashCode * 59 + this.Street.GetHashCode();
if (this.City != null)
hashCode = hashCode * 59 + this.City.GetHashCode();
if (this.PostalCode != null)
hashCode = hashCode * 59 + this.PostalCode.GetHashCode();
if (this.IsoCountryCode != null)
hashCode = hashCode * 59 + this.IsoCountryCode.GetHashCode();
if (this.TerritoryName != null)
hashCode = hashCode * 59 + this.TerritoryName.GetHashCode();
if (this.CompleteTelephoneNumber != null)
hashCode = hashCode * 59 + this.CompleteTelephoneNumber.GetHashCode();
if (this.CustomerType != null)
hashCode = hashCode * 59 + this.CustomerType.GetHashCode();
if (this.EmailAddress != null)
hashCode = hashCode * 59 + this.EmailAddress.GetHashCode();
if (this.DataProtectCode != null)
hashCode = hashCode * 59 + this.DataProtectCode.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>
/// CustomerDO &lt;p&gt;A customer is a person or individual who purchases, may purchase, or did purchase goods or services from a retail store.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="externalBusinessUnitGroupID">&lt;p&gt;An external unique identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="allowedTermsOfPayment">&lt;p&gt;Denotes the group of allowed tenders.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="creditLimit">&lt;p&gt;Credit limit of the customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="personalID">&lt;p&gt;The personal number, unique key for the employee identification. (The number of the Identification that identifies the Party).&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="prohibitedTermsOfPayment">&lt;p&gt;Denotes the group of prohibited tenders.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="remainingCreditLimit">&lt;p&gt;Remaining credit limit of the customer. (Total credit limit - amounts of invoices which haven&#39;t been paid yet).&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="salesTaxLiableFlag">&lt;p&gt;Determines whether the customer is liable to tax on sales&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="statusCode">&lt;p&gt;The current status code of the customer, e.g. active, blocked.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="preferredReceiptPrintoutTypeCode">&lt;p&gt;Default printout mode of the customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="taxNumber">&lt;p&gt;The company&#39;s tax number given by the tax office (this is not the sales tax ID).&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyID">&lt;p&gt;Party ID&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="creditCardList">&lt;p&gt;List of the customer credit cards.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerCardList">&lt;p&gt;List of the customer cards.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="customerGroupIDList">&lt;p&gt;List of CustomerGroupID&#39;s.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partyIdentification">&lt;p&gt;An official number that may be used to identify a Party. People and businesses have multiple forms of such identification: Drivers License number, Passport number, Credit / Debit Card number, Company Incorporation number, Tax number, etc...&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="organization">&lt;p&gt;Additional data for the organization if the customer is a organization.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="contact">&lt;p&gt;Contacts for the customer, e.g. address, telephone, fax, email-address.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="party">&lt;p&gt;Reference to the party structure&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="person">&lt;p&gt;Additional data for the person if the customer is a person.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="packageID">&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="declarationAvailable">&lt;p&gt;Denotes if the customer declaration is available.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="dateOfRecord">&lt;p&gt;Date of the customer declaration.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="recordedBy">&lt;p&gt;Identification of person who has recorded the customer declaration (e.g. ID of logged Operator).&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="statisticalUseAllowed">&lt;p&gt;Denotes if the customer data can be used for statistical purposes.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="lastAccessDate">&lt;p&gt;Timestamp of the last access to the data.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone).</param>
/// <param name="dataProtectCode">&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="parentCustomerID">&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="partnerRoleList">&lt;p&gt;List of the customer partner roles.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="parentCustomerName1">&lt;p&gt;First Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="parentCustomerName2">&lt;p&gt;Second Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom08">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom10">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom09">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom07">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom06">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom11">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom12">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom13">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom14">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom15">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom16">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom17">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom18">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom19">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom20">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom21">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom22">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom23">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom24">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom25">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom26">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom27">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom28">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom29">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom30">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey key = default(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey), string externalBusinessUnitGroupID = default(string), string allowedTermsOfPayment = default(string), double? creditLimit = default(double?), string personalID = default(string), string prohibitedTermsOfPayment = default(string), double? remainingCreditLimit = default(double?), bool? salesTaxLiableFlag = default(bool?), string statusCode = default(string), string preferredReceiptPrintoutTypeCode = default(string), string taxNumber = default(string), string partyID = default(string), List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard> creditCardList = default(List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard>), List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard> customerCardList = default(List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard>), List<string> customerGroupIDList = default(List<string>), List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification> partyIdentification = default(List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification>), ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization organization = default(ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization), ComGkSoftwareGkrApiServerMdContactDtoDomContactDO contact = default(ComGkSoftwareGkrApiServerMdContactDtoDomContactDO), ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO party = default(ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO), ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO person = default(ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO), string packageID = default(string), bool? declarationAvailable = default(bool?), string dateOfRecord = default(string), string recordedBy = default(string), bool? statisticalUseAllowed = default(bool?), string lastAccessDate = default(string), string dataProtectCode = default(string), string parentCustomerID = default(string), List<ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole> partnerRoleList = default(List<ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole>), string parentCustomerName1 = default(string), string parentCustomerName2 = default(string), string xxcustom08 = default(string), string xxcustom10 = default(string), string xxcustom09 = default(string), string xxcustom07 = default(string), string xxcustom05 = default(string), string xxcustom06 = default(string), string xxcustom11 = default(string), string xxcustom12 = default(string), string xxcustom13 = default(string), string xxcustom14 = default(string), string xxcustom15 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom16 = default(string), string xxcustom17 = default(string), string xxcustom18 = default(string), string xxcustom19 = default(string), string xxcustom20 = default(string), string xxcustom21 = default(string), string xxcustom22 = default(string), string xxcustom23 = default(string), string xxcustom24 = default(string), string xxcustom25 = default(string), string xxcustom26 = default(string), string xxcustom27 = default(string), string xxcustom28 = default(string), string xxcustom29 = default(string), string xxcustom30 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO and cannot be null");
}
else
{
this.Key = key;
}
this.ExternalBusinessUnitGroupID = externalBusinessUnitGroupID;
this.AllowedTermsOfPayment = allowedTermsOfPayment;
this.CreditLimit = creditLimit;
this.PersonalID = personalID;
this.ProhibitedTermsOfPayment = prohibitedTermsOfPayment;
this.RemainingCreditLimit = remainingCreditLimit;
this.SalesTaxLiableFlag = salesTaxLiableFlag;
this.StatusCode = statusCode;
this.PreferredReceiptPrintoutTypeCode = preferredReceiptPrintoutTypeCode;
this.TaxNumber = taxNumber;
this.PartyID = partyID;
this.CreditCardList = creditCardList;
this.CustomerCardList = customerCardList;
this.CustomerGroupIDList = customerGroupIDList;
this.PartyIdentification = partyIdentification;
this.Organization = organization;
this.Contact = contact;
this.Party = party;
this.Person = person;
this.PackageID = packageID;
this.DeclarationAvailable = declarationAvailable;
this.DateOfRecord = dateOfRecord;
this.RecordedBy = recordedBy;
this.StatisticalUseAllowed = statisticalUseAllowed;
this.LastAccessDate = lastAccessDate;
this.DataProtectCode = dataProtectCode;
this.ParentCustomerID = parentCustomerID;
this.PartnerRoleList = partnerRoleList;
this.ParentCustomerName1 = parentCustomerName1;
this.ParentCustomerName2 = parentCustomerName2;
this.Xxcustom08 = xxcustom08;
this.Xxcustom10 = xxcustom10;
this.Xxcustom09 = xxcustom09;
this.Xxcustom07 = xxcustom07;
this.Xxcustom05 = xxcustom05;
this.Xxcustom06 = xxcustom06;
this.Xxcustom11 = xxcustom11;
this.Xxcustom12 = xxcustom12;
this.Xxcustom13 = xxcustom13;
this.Xxcustom14 = xxcustom14;
this.Xxcustom15 = xxcustom15;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom16 = xxcustom16;
this.Xxcustom17 = xxcustom17;
this.Xxcustom18 = xxcustom18;
this.Xxcustom19 = xxcustom19;
this.Xxcustom20 = xxcustom20;
this.Xxcustom21 = xxcustom21;
this.Xxcustom22 = xxcustom22;
this.Xxcustom23 = xxcustom23;
this.Xxcustom24 = xxcustom24;
this.Xxcustom25 = xxcustom25;
this.Xxcustom26 = xxcustom26;
this.Xxcustom27 = xxcustom27;
this.Xxcustom28 = xxcustom28;
this.Xxcustom29 = xxcustom29;
this.Xxcustom30 = xxcustom30;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey Key { get; set; }
/// <summary>
/// &lt;p&gt;An external unique identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;An external unique identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="externalBusinessUnitGroupID", EmitDefaultValue=false)]
public string ExternalBusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;Denotes the group of allowed tenders.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes the group of allowed tenders.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="allowedTermsOfPayment", EmitDefaultValue=false)]
public string AllowedTermsOfPayment { get; set; }
/// <summary>
/// &lt;p&gt;Credit limit of the customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Credit limit of the customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="creditLimit", EmitDefaultValue=false)]
public double? CreditLimit { get; set; }
/// <summary>
/// &lt;p&gt;The personal number, unique key for the employee identification. (The number of the Identification that identifies the Party).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The personal number, unique key for the employee identification. (The number of the Identification that identifies the Party).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="personalID", EmitDefaultValue=false)]
public string PersonalID { get; set; }
/// <summary>
/// &lt;p&gt;Denotes the group of prohibited tenders.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes the group of prohibited tenders.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="prohibitedTermsOfPayment", EmitDefaultValue=false)]
public string ProhibitedTermsOfPayment { get; set; }
/// <summary>
/// &lt;p&gt;Remaining credit limit of the customer. (Total credit limit - amounts of invoices which haven&#39;t been paid yet).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Remaining credit limit of the customer. (Total credit limit - amounts of invoices which haven&#39;t been paid yet).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="remainingCreditLimit", EmitDefaultValue=false)]
public double? RemainingCreditLimit { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether the customer is liable to tax on sales&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether the customer is liable to tax on sales&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="salesTaxLiableFlag", EmitDefaultValue=false)]
public bool? SalesTaxLiableFlag { get; set; }
/// <summary>
/// &lt;p&gt;The current status code of the customer, e.g. active, blocked.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The current status code of the customer, e.g. active, blocked.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="statusCode", EmitDefaultValue=false)]
public string StatusCode { get; set; }
/// <summary>
/// &lt;p&gt;Default printout mode of the customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Default printout mode of the customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="preferredReceiptPrintoutTypeCode", EmitDefaultValue=false)]
public string PreferredReceiptPrintoutTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;The company&#39;s tax number given by the tax office (this is not the sales tax ID).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The company&#39;s tax number given by the tax office (this is not the sales tax ID).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="taxNumber", EmitDefaultValue=false)]
public string TaxNumber { get; set; }
/// <summary>
/// &lt;p&gt;Party ID&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Party ID&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyID", EmitDefaultValue=false)]
public string PartyID { get; set; }
/// <summary>
/// &lt;p&gt;List of the customer credit cards.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the customer credit cards.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="creditCardList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCreditCard> CreditCardList { get; set; }
/// <summary>
/// &lt;p&gt;List of the customer cards.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the customer cards.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerCardList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerCard> CustomerCardList { get; set; }
/// <summary>
/// &lt;p&gt;List of CustomerGroupID&#39;s.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of CustomerGroupID&#39;s.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerGroupIDList", EmitDefaultValue=false)]
public List<string> CustomerGroupIDList { get; set; }
/// <summary>
/// &lt;p&gt;An official number that may be used to identify a Party. People and businesses have multiple forms of such identification: Drivers License number, Passport number, Credit / Debit Card number, Company Incorporation number, Tax number, etc...&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;An official number that may be used to identify a Party. People and businesses have multiple forms of such identification: Drivers License number, Passport number, Credit / Debit Card number, Company Incorporation number, Tax number, etc...&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partyIdentification", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdPartyDtoDomPartyIdentification> PartyIdentification { get; set; }
/// <summary>
/// &lt;p&gt;Additional data for the organization if the customer is a organization.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional data for the organization if the customer is a organization.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="organization", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization Organization { get; set; }
/// <summary>
/// &lt;p&gt;Contacts for the customer, e.g. address, telephone, fax, email-address.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Contacts for the customer, e.g. address, telephone, fax, email-address.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="contact", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdContactDtoDomContactDO Contact { get; set; }
/// <summary>
/// &lt;p&gt;Reference to the party structure&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Reference to the party structure&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="party", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdPartyDtoDomPartyDO Party { get; set; }
/// <summary>
/// &lt;p&gt;Additional data for the person if the customer is a person.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional data for the person if the customer is a person.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="person", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdPersonDtoDomPersonDO Person { get; set; }
/// <summary>
/// &lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Internal identification of the import package (e.g. IDoc file). The identification is used for monitoring purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="packageID", EmitDefaultValue=false)]
public string PackageID { get; set; }
/// <summary>
/// &lt;p&gt;Denotes if the customer declaration is available.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes if the customer declaration is available.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="declarationAvailable", EmitDefaultValue=false)]
public bool? DeclarationAvailable { get; set; }
/// <summary>
/// &lt;p&gt;Date of the customer declaration.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;Date of the customer declaration.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="dateOfRecord", EmitDefaultValue=false)]
public string DateOfRecord { get; set; }
/// <summary>
/// &lt;p&gt;Identification of person who has recorded the customer declaration (e.g. ID of logged Operator).&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Identification of person who has recorded the customer declaration (e.g. ID of logged Operator).&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="recordedBy", EmitDefaultValue=false)]
public string RecordedBy { get; set; }
/// <summary>
/// &lt;p&gt;Denotes if the customer data can be used for statistical purposes.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Denotes if the customer data can be used for statistical purposes.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="statisticalUseAllowed", EmitDefaultValue=false)]
public bool? StatisticalUseAllowed { get; set; }
/// <summary>
/// &lt;p&gt;Timestamp of the last access to the data.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)
/// </summary>
/// <value>&lt;p&gt;Timestamp of the last access to the data.&lt;br /&gt;&lt;/p&gt; Date format &#39;yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSS&#39; (no timezone)</value>
[DataMember(Name="lastAccessDate", EmitDefaultValue=false)]
public string LastAccessDate { get; set; }
/// <summary>
/// &lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The data protection code being used for the evaluation of the data protection requirements.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="dataProtectCode", EmitDefaultValue=false)]
public string DataProtectCode { get; set; }
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="parentCustomerID", EmitDefaultValue=false)]
public string ParentCustomerID { get; set; }
/// <summary>
/// &lt;p&gt;List of the customer partner roles.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;List of the customer partner roles.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partnerRoleList", EmitDefaultValue=false)]
public List<ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole> PartnerRoleList { get; set; }
/// <summary>
/// &lt;p&gt;First Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;First Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="parentCustomerName1", EmitDefaultValue=false)]
public string ParentCustomerName1 { get; set; }
/// <summary>
/// &lt;p&gt;Second Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Second Name Line of the customer to which this buyer / contact person belongs.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="parentCustomerName2", EmitDefaultValue=false)]
public string ParentCustomerName2 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom08", EmitDefaultValue=false)]
public string Xxcustom08 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom10", EmitDefaultValue=false)]
public string Xxcustom10 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom09", EmitDefaultValue=false)]
public string Xxcustom09 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom07", EmitDefaultValue=false)]
public string Xxcustom07 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom06", EmitDefaultValue=false)]
public string Xxcustom06 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom11", EmitDefaultValue=false)]
public string Xxcustom11 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom12", EmitDefaultValue=false)]
public string Xxcustom12 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom13", EmitDefaultValue=false)]
public string Xxcustom13 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom14", EmitDefaultValue=false)]
public string Xxcustom14 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom15", EmitDefaultValue=false)]
public string Xxcustom15 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom16", EmitDefaultValue=false)]
public string Xxcustom16 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom17", EmitDefaultValue=false)]
public string Xxcustom17 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom18", EmitDefaultValue=false)]
public string Xxcustom18 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom19", EmitDefaultValue=false)]
public string Xxcustom19 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom20", EmitDefaultValue=false)]
public string Xxcustom20 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom21", EmitDefaultValue=false)]
public string Xxcustom21 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom22", EmitDefaultValue=false)]
public string Xxcustom22 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom23", EmitDefaultValue=false)]
public string Xxcustom23 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom24", EmitDefaultValue=false)]
public string Xxcustom24 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom25", EmitDefaultValue=false)]
public string Xxcustom25 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom26", EmitDefaultValue=false)]
public string Xxcustom26 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom27", EmitDefaultValue=false)]
public string Xxcustom27 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom28", EmitDefaultValue=false)]
public string Xxcustom28 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom29", EmitDefaultValue=false)]
public string Xxcustom29 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom30", EmitDefaultValue=false)]
public string Xxcustom30 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" ExternalBusinessUnitGroupID: ").Append(ExternalBusinessUnitGroupID).Append("\n");
sb.Append(" AllowedTermsOfPayment: ").Append(AllowedTermsOfPayment).Append("\n");
sb.Append(" CreditLimit: ").Append(CreditLimit).Append("\n");
sb.Append(" PersonalID: ").Append(PersonalID).Append("\n");
sb.Append(" ProhibitedTermsOfPayment: ").Append(ProhibitedTermsOfPayment).Append("\n");
sb.Append(" RemainingCreditLimit: ").Append(RemainingCreditLimit).Append("\n");
sb.Append(" SalesTaxLiableFlag: ").Append(SalesTaxLiableFlag).Append("\n");
sb.Append(" StatusCode: ").Append(StatusCode).Append("\n");
sb.Append(" PreferredReceiptPrintoutTypeCode: ").Append(PreferredReceiptPrintoutTypeCode).Append("\n");
sb.Append(" TaxNumber: ").Append(TaxNumber).Append("\n");
sb.Append(" PartyID: ").Append(PartyID).Append("\n");
sb.Append(" CreditCardList: ").Append(CreditCardList).Append("\n");
sb.Append(" CustomerCardList: ").Append(CustomerCardList).Append("\n");
sb.Append(" CustomerGroupIDList: ").Append(CustomerGroupIDList).Append("\n");
sb.Append(" PartyIdentification: ").Append(PartyIdentification).Append("\n");
sb.Append(" Organization: ").Append(Organization).Append("\n");
sb.Append(" Contact: ").Append(Contact).Append("\n");
sb.Append(" Party: ").Append(Party).Append("\n");
sb.Append(" Person: ").Append(Person).Append("\n");
sb.Append(" PackageID: ").Append(PackageID).Append("\n");
sb.Append(" DeclarationAvailable: ").Append(DeclarationAvailable).Append("\n");
sb.Append(" DateOfRecord: ").Append(DateOfRecord).Append("\n");
sb.Append(" RecordedBy: ").Append(RecordedBy).Append("\n");
sb.Append(" StatisticalUseAllowed: ").Append(StatisticalUseAllowed).Append("\n");
sb.Append(" LastAccessDate: ").Append(LastAccessDate).Append("\n");
sb.Append(" DataProtectCode: ").Append(DataProtectCode).Append("\n");
sb.Append(" ParentCustomerID: ").Append(ParentCustomerID).Append("\n");
sb.Append(" PartnerRoleList: ").Append(PartnerRoleList).Append("\n");
sb.Append(" ParentCustomerName1: ").Append(ParentCustomerName1).Append("\n");
sb.Append(" ParentCustomerName2: ").Append(ParentCustomerName2).Append("\n");
sb.Append(" Xxcustom08: ").Append(Xxcustom08).Append("\n");
sb.Append(" Xxcustom10: ").Append(Xxcustom10).Append("\n");
sb.Append(" Xxcustom09: ").Append(Xxcustom09).Append("\n");
sb.Append(" Xxcustom07: ").Append(Xxcustom07).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom06: ").Append(Xxcustom06).Append("\n");
sb.Append(" Xxcustom11: ").Append(Xxcustom11).Append("\n");
sb.Append(" Xxcustom12: ").Append(Xxcustom12).Append("\n");
sb.Append(" Xxcustom13: ").Append(Xxcustom13).Append("\n");
sb.Append(" Xxcustom14: ").Append(Xxcustom14).Append("\n");
sb.Append(" Xxcustom15: ").Append(Xxcustom15).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom16: ").Append(Xxcustom16).Append("\n");
sb.Append(" Xxcustom17: ").Append(Xxcustom17).Append("\n");
sb.Append(" Xxcustom18: ").Append(Xxcustom18).Append("\n");
sb.Append(" Xxcustom19: ").Append(Xxcustom19).Append("\n");
sb.Append(" Xxcustom20: ").Append(Xxcustom20).Append("\n");
sb.Append(" Xxcustom21: ").Append(Xxcustom21).Append("\n");
sb.Append(" Xxcustom22: ").Append(Xxcustom22).Append("\n");
sb.Append(" Xxcustom23: ").Append(Xxcustom23).Append("\n");
sb.Append(" Xxcustom24: ").Append(Xxcustom24).Append("\n");
sb.Append(" Xxcustom25: ").Append(Xxcustom25).Append("\n");
sb.Append(" Xxcustom26: ").Append(Xxcustom26).Append("\n");
sb.Append(" Xxcustom27: ").Append(Xxcustom27).Append("\n");
sb.Append(" Xxcustom28: ").Append(Xxcustom28).Append("\n");
sb.Append(" Xxcustom29: ").Append(Xxcustom29).Append("\n");
sb.Append(" Xxcustom30: ").Append(Xxcustom30).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDO input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.ExternalBusinessUnitGroupID == input.ExternalBusinessUnitGroupID ||
(this.ExternalBusinessUnitGroupID != null &&
this.ExternalBusinessUnitGroupID.Equals(input.ExternalBusinessUnitGroupID))
) &&
(
this.AllowedTermsOfPayment == input.AllowedTermsOfPayment ||
(this.AllowedTermsOfPayment != null &&
this.AllowedTermsOfPayment.Equals(input.AllowedTermsOfPayment))
) &&
(
this.CreditLimit == input.CreditLimit ||
(this.CreditLimit != null &&
this.CreditLimit.Equals(input.CreditLimit))
) &&
(
this.PersonalID == input.PersonalID ||
(this.PersonalID != null &&
this.PersonalID.Equals(input.PersonalID))
) &&
(
this.ProhibitedTermsOfPayment == input.ProhibitedTermsOfPayment ||
(this.ProhibitedTermsOfPayment != null &&
this.ProhibitedTermsOfPayment.Equals(input.ProhibitedTermsOfPayment))
) &&
(
this.RemainingCreditLimit == input.RemainingCreditLimit ||
(this.RemainingCreditLimit != null &&
this.RemainingCreditLimit.Equals(input.RemainingCreditLimit))
) &&
(
this.SalesTaxLiableFlag == input.SalesTaxLiableFlag ||
(this.SalesTaxLiableFlag != null &&
this.SalesTaxLiableFlag.Equals(input.SalesTaxLiableFlag))
) &&
(
this.StatusCode == input.StatusCode ||
(this.StatusCode != null &&
this.StatusCode.Equals(input.StatusCode))
) &&
(
this.PreferredReceiptPrintoutTypeCode == input.PreferredReceiptPrintoutTypeCode ||
(this.PreferredReceiptPrintoutTypeCode != null &&
this.PreferredReceiptPrintoutTypeCode.Equals(input.PreferredReceiptPrintoutTypeCode))
) &&
(
this.TaxNumber == input.TaxNumber ||
(this.TaxNumber != null &&
this.TaxNumber.Equals(input.TaxNumber))
) &&
(
this.PartyID == input.PartyID ||
(this.PartyID != null &&
this.PartyID.Equals(input.PartyID))
) &&
(
this.CreditCardList == input.CreditCardList ||
this.CreditCardList != null &&
this.CreditCardList.SequenceEqual(input.CreditCardList)
) &&
(
this.CustomerCardList == input.CustomerCardList ||
this.CustomerCardList != null &&
this.CustomerCardList.SequenceEqual(input.CustomerCardList)
) &&
(
this.CustomerGroupIDList == input.CustomerGroupIDList ||
this.CustomerGroupIDList != null &&
this.CustomerGroupIDList.SequenceEqual(input.CustomerGroupIDList)
) &&
(
this.PartyIdentification == input.PartyIdentification ||
this.PartyIdentification != null &&
this.PartyIdentification.SequenceEqual(input.PartyIdentification)
) &&
(
this.Organization == input.Organization ||
(this.Organization != null &&
this.Organization.Equals(input.Organization))
) &&
(
this.Contact == input.Contact ||
(this.Contact != null &&
this.Contact.Equals(input.Contact))
) &&
(
this.Party == input.Party ||
(this.Party != null &&
this.Party.Equals(input.Party))
) &&
(
this.Person == input.Person ||
(this.Person != null &&
this.Person.Equals(input.Person))
) &&
(
this.PackageID == input.PackageID ||
(this.PackageID != null &&
this.PackageID.Equals(input.PackageID))
) &&
(
this.DeclarationAvailable == input.DeclarationAvailable ||
(this.DeclarationAvailable != null &&
this.DeclarationAvailable.Equals(input.DeclarationAvailable))
) &&
(
this.DateOfRecord == input.DateOfRecord ||
(this.DateOfRecord != null &&
this.DateOfRecord.Equals(input.DateOfRecord))
) &&
(
this.RecordedBy == input.RecordedBy ||
(this.RecordedBy != null &&
this.RecordedBy.Equals(input.RecordedBy))
) &&
(
this.StatisticalUseAllowed == input.StatisticalUseAllowed ||
(this.StatisticalUseAllowed != null &&
this.StatisticalUseAllowed.Equals(input.StatisticalUseAllowed))
) &&
(
this.LastAccessDate == input.LastAccessDate ||
(this.LastAccessDate != null &&
this.LastAccessDate.Equals(input.LastAccessDate))
) &&
(
this.DataProtectCode == input.DataProtectCode ||
(this.DataProtectCode != null &&
this.DataProtectCode.Equals(input.DataProtectCode))
) &&
(
this.ParentCustomerID == input.ParentCustomerID ||
(this.ParentCustomerID != null &&
this.ParentCustomerID.Equals(input.ParentCustomerID))
) &&
(
this.PartnerRoleList == input.PartnerRoleList ||
this.PartnerRoleList != null &&
this.PartnerRoleList.SequenceEqual(input.PartnerRoleList)
) &&
(
this.ParentCustomerName1 == input.ParentCustomerName1 ||
(this.ParentCustomerName1 != null &&
this.ParentCustomerName1.Equals(input.ParentCustomerName1))
) &&
(
this.ParentCustomerName2 == input.ParentCustomerName2 ||
(this.ParentCustomerName2 != null &&
this.ParentCustomerName2.Equals(input.ParentCustomerName2))
) &&
(
this.Xxcustom08 == input.Xxcustom08 ||
(this.Xxcustom08 != null &&
this.Xxcustom08.Equals(input.Xxcustom08))
) &&
(
this.Xxcustom10 == input.Xxcustom10 ||
(this.Xxcustom10 != null &&
this.Xxcustom10.Equals(input.Xxcustom10))
) &&
(
this.Xxcustom09 == input.Xxcustom09 ||
(this.Xxcustom09 != null &&
this.Xxcustom09.Equals(input.Xxcustom09))
) &&
(
this.Xxcustom07 == input.Xxcustom07 ||
(this.Xxcustom07 != null &&
this.Xxcustom07.Equals(input.Xxcustom07))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom06 == input.Xxcustom06 ||
(this.Xxcustom06 != null &&
this.Xxcustom06.Equals(input.Xxcustom06))
) &&
(
this.Xxcustom11 == input.Xxcustom11 ||
(this.Xxcustom11 != null &&
this.Xxcustom11.Equals(input.Xxcustom11))
) &&
(
this.Xxcustom12 == input.Xxcustom12 ||
(this.Xxcustom12 != null &&
this.Xxcustom12.Equals(input.Xxcustom12))
) &&
(
this.Xxcustom13 == input.Xxcustom13 ||
(this.Xxcustom13 != null &&
this.Xxcustom13.Equals(input.Xxcustom13))
) &&
(
this.Xxcustom14 == input.Xxcustom14 ||
(this.Xxcustom14 != null &&
this.Xxcustom14.Equals(input.Xxcustom14))
) &&
(
this.Xxcustom15 == input.Xxcustom15 ||
(this.Xxcustom15 != null &&
this.Xxcustom15.Equals(input.Xxcustom15))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom16 == input.Xxcustom16 ||
(this.Xxcustom16 != null &&
this.Xxcustom16.Equals(input.Xxcustom16))
) &&
(
this.Xxcustom17 == input.Xxcustom17 ||
(this.Xxcustom17 != null &&
this.Xxcustom17.Equals(input.Xxcustom17))
) &&
(
this.Xxcustom18 == input.Xxcustom18 ||
(this.Xxcustom18 != null &&
this.Xxcustom18.Equals(input.Xxcustom18))
) &&
(
this.Xxcustom19 == input.Xxcustom19 ||
(this.Xxcustom19 != null &&
this.Xxcustom19.Equals(input.Xxcustom19))
) &&
(
this.Xxcustom20 == input.Xxcustom20 ||
(this.Xxcustom20 != null &&
this.Xxcustom20.Equals(input.Xxcustom20))
) &&
(
this.Xxcustom21 == input.Xxcustom21 ||
(this.Xxcustom21 != null &&
this.Xxcustom21.Equals(input.Xxcustom21))
) &&
(
this.Xxcustom22 == input.Xxcustom22 ||
(this.Xxcustom22 != null &&
this.Xxcustom22.Equals(input.Xxcustom22))
) &&
(
this.Xxcustom23 == input.Xxcustom23 ||
(this.Xxcustom23 != null &&
this.Xxcustom23.Equals(input.Xxcustom23))
) &&
(
this.Xxcustom24 == input.Xxcustom24 ||
(this.Xxcustom24 != null &&
this.Xxcustom24.Equals(input.Xxcustom24))
) &&
(
this.Xxcustom25 == input.Xxcustom25 ||
(this.Xxcustom25 != null &&
this.Xxcustom25.Equals(input.Xxcustom25))
) &&
(
this.Xxcustom26 == input.Xxcustom26 ||
(this.Xxcustom26 != null &&
this.Xxcustom26.Equals(input.Xxcustom26))
) &&
(
this.Xxcustom27 == input.Xxcustom27 ||
(this.Xxcustom27 != null &&
this.Xxcustom27.Equals(input.Xxcustom27))
) &&
(
this.Xxcustom28 == input.Xxcustom28 ||
(this.Xxcustom28 != null &&
this.Xxcustom28.Equals(input.Xxcustom28))
) &&
(
this.Xxcustom29 == input.Xxcustom29 ||
(this.Xxcustom29 != null &&
this.Xxcustom29.Equals(input.Xxcustom29))
) &&
(
this.Xxcustom30 == input.Xxcustom30 ||
(this.Xxcustom30 != null &&
this.Xxcustom30.Equals(input.Xxcustom30))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.ExternalBusinessUnitGroupID != null)
hashCode = hashCode * 59 + this.ExternalBusinessUnitGroupID.GetHashCode();
if (this.AllowedTermsOfPayment != null)
hashCode = hashCode * 59 + this.AllowedTermsOfPayment.GetHashCode();
if (this.CreditLimit != null)
hashCode = hashCode * 59 + this.CreditLimit.GetHashCode();
if (this.PersonalID != null)
hashCode = hashCode * 59 + this.PersonalID.GetHashCode();
if (this.ProhibitedTermsOfPayment != null)
hashCode = hashCode * 59 + this.ProhibitedTermsOfPayment.GetHashCode();
if (this.RemainingCreditLimit != null)
hashCode = hashCode * 59 + this.RemainingCreditLimit.GetHashCode();
if (this.SalesTaxLiableFlag != null)
hashCode = hashCode * 59 + this.SalesTaxLiableFlag.GetHashCode();
if (this.StatusCode != null)
hashCode = hashCode * 59 + this.StatusCode.GetHashCode();
if (this.PreferredReceiptPrintoutTypeCode != null)
hashCode = hashCode * 59 + this.PreferredReceiptPrintoutTypeCode.GetHashCode();
if (this.TaxNumber != null)
hashCode = hashCode * 59 + this.TaxNumber.GetHashCode();
if (this.PartyID != null)
hashCode = hashCode * 59 + this.PartyID.GetHashCode();
if (this.CreditCardList != null)
hashCode = hashCode * 59 + this.CreditCardList.GetHashCode();
if (this.CustomerCardList != null)
hashCode = hashCode * 59 + this.CustomerCardList.GetHashCode();
if (this.CustomerGroupIDList != null)
hashCode = hashCode * 59 + this.CustomerGroupIDList.GetHashCode();
if (this.PartyIdentification != null)
hashCode = hashCode * 59 + this.PartyIdentification.GetHashCode();
if (this.Organization != null)
hashCode = hashCode * 59 + this.Organization.GetHashCode();
if (this.Contact != null)
hashCode = hashCode * 59 + this.Contact.GetHashCode();
if (this.Party != null)
hashCode = hashCode * 59 + this.Party.GetHashCode();
if (this.Person != null)
hashCode = hashCode * 59 + this.Person.GetHashCode();
if (this.PackageID != null)
hashCode = hashCode * 59 + this.PackageID.GetHashCode();
if (this.DeclarationAvailable != null)
hashCode = hashCode * 59 + this.DeclarationAvailable.GetHashCode();
if (this.DateOfRecord != null)
hashCode = hashCode * 59 + this.DateOfRecord.GetHashCode();
if (this.RecordedBy != null)
hashCode = hashCode * 59 + this.RecordedBy.GetHashCode();
if (this.StatisticalUseAllowed != null)
hashCode = hashCode * 59 + this.StatisticalUseAllowed.GetHashCode();
if (this.LastAccessDate != null)
hashCode = hashCode * 59 + this.LastAccessDate.GetHashCode();
if (this.DataProtectCode != null)
hashCode = hashCode * 59 + this.DataProtectCode.GetHashCode();
if (this.ParentCustomerID != null)
hashCode = hashCode * 59 + this.ParentCustomerID.GetHashCode();
if (this.PartnerRoleList != null)
hashCode = hashCode * 59 + this.PartnerRoleList.GetHashCode();
if (this.ParentCustomerName1 != null)
hashCode = hashCode * 59 + this.ParentCustomerName1.GetHashCode();
if (this.ParentCustomerName2 != null)
hashCode = hashCode * 59 + this.ParentCustomerName2.GetHashCode();
if (this.Xxcustom08 != null)
hashCode = hashCode * 59 + this.Xxcustom08.GetHashCode();
if (this.Xxcustom10 != null)
hashCode = hashCode * 59 + this.Xxcustom10.GetHashCode();
if (this.Xxcustom09 != null)
hashCode = hashCode * 59 + this.Xxcustom09.GetHashCode();
if (this.Xxcustom07 != null)
hashCode = hashCode * 59 + this.Xxcustom07.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom06 != null)
hashCode = hashCode * 59 + this.Xxcustom06.GetHashCode();
if (this.Xxcustom11 != null)
hashCode = hashCode * 59 + this.Xxcustom11.GetHashCode();
if (this.Xxcustom12 != null)
hashCode = hashCode * 59 + this.Xxcustom12.GetHashCode();
if (this.Xxcustom13 != null)
hashCode = hashCode * 59 + this.Xxcustom13.GetHashCode();
if (this.Xxcustom14 != null)
hashCode = hashCode * 59 + this.Xxcustom14.GetHashCode();
if (this.Xxcustom15 != null)
hashCode = hashCode * 59 + this.Xxcustom15.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom16 != null)
hashCode = hashCode * 59 + this.Xxcustom16.GetHashCode();
if (this.Xxcustom17 != null)
hashCode = hashCode * 59 + this.Xxcustom17.GetHashCode();
if (this.Xxcustom18 != null)
hashCode = hashCode * 59 + this.Xxcustom18.GetHashCode();
if (this.Xxcustom19 != null)
hashCode = hashCode * 59 + this.Xxcustom19.GetHashCode();
if (this.Xxcustom20 != null)
hashCode = hashCode * 59 + this.Xxcustom20.GetHashCode();
if (this.Xxcustom21 != null)
hashCode = hashCode * 59 + this.Xxcustom21.GetHashCode();
if (this.Xxcustom22 != null)
hashCode = hashCode * 59 + this.Xxcustom22.GetHashCode();
if (this.Xxcustom23 != null)
hashCode = hashCode * 59 + this.Xxcustom23.GetHashCode();
if (this.Xxcustom24 != null)
hashCode = hashCode * 59 + this.Xxcustom24.GetHashCode();
if (this.Xxcustom25 != null)
hashCode = hashCode * 59 + this.Xxcustom25.GetHashCode();
if (this.Xxcustom26 != null)
hashCode = hashCode * 59 + this.Xxcustom26.GetHashCode();
if (this.Xxcustom27 != null)
hashCode = hashCode * 59 + this.Xxcustom27.GetHashCode();
if (this.Xxcustom28 != null)
hashCode = hashCode * 59 + this.Xxcustom28.GetHashCode();
if (this.Xxcustom29 != null)
hashCode = hashCode * 59 + this.Xxcustom29.GetHashCode();
if (this.Xxcustom30 != null)
hashCode = hashCode * 59 + this.Xxcustom30.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// CustomerDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey" /> 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="customerID">&lt;p&gt;A unique identifier for the customer.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey(string businessUnitGroupID = default(string), string customerID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "customerID" is required (not null)
if (customerID == null)
{
throw new InvalidDataException("customerID is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey and cannot be null");
}
else
{
this.CustomerID = customerID;
}
}
/// <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 identifier for the customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique identifier for the customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="customerID", EmitDefaultValue=false)]
public string CustomerID { 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" CustomerID: ").Append(CustomerID).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomCustomerDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.CustomerID == input.CustomerID ||
(this.CustomerID != null &&
this.CustomerID.Equals(input.CustomerID))
);
}
/// <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.CustomerID != null)
hashCode = hashCode * 59 + this.CustomerID.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>
/// Organization &lt;p&gt;Additional data for the organization if the customer is a organization.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization" /> class.
/// </summary>
/// <param name="name">&lt;p&gt;An organization&#39;s legal trade name.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="legalStatusCode">&lt;p&gt;Legal status code is a code which is used to define a tax classification of the customer. It specifies the kind of treatment for tax purpose.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization(string name = default(string), string legalStatusCode = default(string))
{
this.Name = name;
this.LegalStatusCode = legalStatusCode;
}
/// <summary>
/// &lt;p&gt;An organization&#39;s legal trade name.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;An organization&#39;s legal trade name.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="name", EmitDefaultValue=false)]
public string Name { get; set; }
/// <summary>
/// &lt;p&gt;Legal status code is a code which is used to define a tax classification of the customer. It specifies the kind of treatment for tax purpose.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Legal status code is a code which is used to define a tax classification of the customer. It specifies the kind of treatment for tax purpose.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="legalStatusCode", EmitDefaultValue=false)]
public string LegalStatusCode { 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization {\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" LegalStatusCode: ").Append(LegalStatusCode).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomOrganization input)
{
if (input == null)
return false;
return
(
this.Name == input.Name ||
(this.Name != null &&
this.Name.Equals(input.Name))
) &&
(
this.LegalStatusCode == input.LegalStatusCode ||
(this.LegalStatusCode != null &&
this.LegalStatusCode.Equals(input.LegalStatusCode))
);
}
/// <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.Name != null)
hashCode = hashCode * 59 + this.Name.GetHashCode();
if (this.LegalStatusCode != null)
hashCode = hashCode * 59 + this.LegalStatusCode.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>
/// PartnerRole &lt;p&gt;PartnerRole.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole : IEquatable<ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole" /> class.
/// </summary>
/// <param name="partnerParentCustomerID">&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="partnerRoleTypeCode">&lt;p&gt;The type of the partner role.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="defaultFlag">&lt;p&gt;Determines whether this partner role is the default one in case that multiple partner roles exist.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole(string partnerParentCustomerID = default(string), string partnerRoleTypeCode = default(string), bool? defaultFlag = default(bool?))
{
// to ensure "partnerParentCustomerID" is required (not null)
if (partnerParentCustomerID == null)
{
throw new InvalidDataException("partnerParentCustomerID is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole and cannot be null");
}
else
{
this.PartnerParentCustomerID = partnerParentCustomerID;
}
// to ensure "partnerRoleTypeCode" is required (not null)
if (partnerRoleTypeCode == null)
{
throw new InvalidDataException("partnerRoleTypeCode is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole and cannot be null");
}
else
{
this.PartnerRoleTypeCode = partnerRoleTypeCode;
}
// to ensure "defaultFlag" is required (not null)
if (defaultFlag == null)
{
throw new InvalidDataException("defaultFlag is a required property for ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole and cannot be null");
}
else
{
this.DefaultFlag = defaultFlag;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for the Customer.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partnerParentCustomerID", EmitDefaultValue=false)]
public string PartnerParentCustomerID { get; set; }
/// <summary>
/// &lt;p&gt;The type of the partner role.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The type of the partner role.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="partnerRoleTypeCode", EmitDefaultValue=false)]
public string PartnerRoleTypeCode { get; set; }
/// <summary>
/// &lt;p&gt;Determines whether this partner role is the default one in case that multiple partner roles exist.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Determines whether this partner role is the default one in case that multiple partner roles exist.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="defaultFlag", EmitDefaultValue=false)]
public bool? DefaultFlag { 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 ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole {\n");
sb.Append(" PartnerParentCustomerID: ").Append(PartnerParentCustomerID).Append("\n");
sb.Append(" PartnerRoleTypeCode: ").Append(PartnerRoleTypeCode).Append("\n");
sb.Append(" DefaultFlag: ").Append(DefaultFlag).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 ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdCustomerDtoDomPartnerRole input)
{
if (input == null)
return false;
return
(
this.PartnerParentCustomerID == input.PartnerParentCustomerID ||
(this.PartnerParentCustomerID != null &&
this.PartnerParentCustomerID.Equals(input.PartnerParentCustomerID))
) &&
(
this.PartnerRoleTypeCode == input.PartnerRoleTypeCode ||
(this.PartnerRoleTypeCode != null &&
this.PartnerRoleTypeCode.Equals(input.PartnerRoleTypeCode))
) &&
(
this.DefaultFlag == input.DefaultFlag ||
(this.DefaultFlag != null &&
this.DefaultFlag.Equals(input.DefaultFlag))
);
}
/// <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.PartnerParentCustomerID != null)
hashCode = hashCode * 59 + this.PartnerParentCustomerID.GetHashCode();
if (this.PartnerRoleTypeCode != null)
hashCode = hashCode * 59 + this.PartnerRoleTypeCode.GetHashCode();
if (this.DefaultFlag != null)
hashCode = hashCode * 59 + this.DefaultFlag.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