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>
/// WorkerDO.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey : IEquatable<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey" /> 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="workerID">&lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey(string businessUnitGroupID = default(string), string workerID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "workerID" is required (not null)
if (workerID == null)
{
throw new InvalidDataException("workerID is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey and cannot be null");
}
else
{
this.WorkerID = workerID;
}
}
/// <summary>
/// &lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system assigned identifier for a group of business units.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="businessUnitGroupID", EmitDefaultValue=false)]
public string BusinessUnitGroupID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="workerID", EmitDefaultValue=false)]
public string WorkerID { 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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" WorkerID: ").Append(WorkerID).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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDOKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.WorkerID == input.WorkerID ||
(this.WorkerID != null &&
this.WorkerID.Equals(input.WorkerID))
);
}
/// <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.WorkerID != null)
hashCode = hashCode * 59 + this.WorkerID.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>
/// WorkerDiscountGroupAssignment &lt;p&gt;A group of employees who share the same employee discount privilege.&lt;br /&gt;&lt;/p&gt;
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment : IEquatable<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment" /> class.
/// </summary>
/// <param name="key">&lt;p&gt;Getter for inner key class.&lt;/p&gt; (required).</param>
/// <param name="xxcustom05">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom03">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom02">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom04">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
/// <param name="xxcustom01">&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;.</param>
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey key = default(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey), string xxcustom05 = default(string), string xxcustom03 = default(string), string xxcustom02 = default(string), string xxcustom04 = default(string), string xxcustom01 = default(string))
{
// to ensure "key" is required (not null)
if (key == null)
{
throw new InvalidDataException("key is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment and cannot be null");
}
else
{
this.Key = key;
}
this.Xxcustom05 = xxcustom05;
this.Xxcustom03 = xxcustom03;
this.Xxcustom02 = xxcustom02;
this.Xxcustom04 = xxcustom04;
this.Xxcustom01 = xxcustom01;
}
/// <summary>
/// &lt;p&gt;Getter for inner key class.&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Getter for inner key class.&lt;/p&gt;</value>
[DataMember(Name="key", EmitDefaultValue=false)]
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey Key { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom05", EmitDefaultValue=false)]
public string Xxcustom05 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom03", EmitDefaultValue=false)]
public string Xxcustom03 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom02", EmitDefaultValue=false)]
public string Xxcustom02 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom04", EmitDefaultValue=false)]
public string Xxcustom04 { get; set; }
/// <summary>
/// &lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;Additional field for custom development.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="xxcustom01", EmitDefaultValue=false)]
public string Xxcustom01 { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment {\n");
sb.Append(" Key: ").Append(Key).Append("\n");
sb.Append(" Xxcustom05: ").Append(Xxcustom05).Append("\n");
sb.Append(" Xxcustom03: ").Append(Xxcustom03).Append("\n");
sb.Append(" Xxcustom02: ").Append(Xxcustom02).Append("\n");
sb.Append(" Xxcustom04: ").Append(Xxcustom04).Append("\n");
sb.Append(" Xxcustom01: ").Append(Xxcustom01).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignment input)
{
if (input == null)
return false;
return
(
this.Key == input.Key ||
(this.Key != null &&
this.Key.Equals(input.Key))
) &&
(
this.Xxcustom05 == input.Xxcustom05 ||
(this.Xxcustom05 != null &&
this.Xxcustom05.Equals(input.Xxcustom05))
) &&
(
this.Xxcustom03 == input.Xxcustom03 ||
(this.Xxcustom03 != null &&
this.Xxcustom03.Equals(input.Xxcustom03))
) &&
(
this.Xxcustom02 == input.Xxcustom02 ||
(this.Xxcustom02 != null &&
this.Xxcustom02.Equals(input.Xxcustom02))
) &&
(
this.Xxcustom04 == input.Xxcustom04 ||
(this.Xxcustom04 != null &&
this.Xxcustom04.Equals(input.Xxcustom04))
) &&
(
this.Xxcustom01 == input.Xxcustom01 ||
(this.Xxcustom01 != null &&
this.Xxcustom01.Equals(input.Xxcustom01))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Key != null)
hashCode = hashCode * 59 + this.Key.GetHashCode();
if (this.Xxcustom05 != null)
hashCode = hashCode * 59 + this.Xxcustom05.GetHashCode();
if (this.Xxcustom03 != null)
hashCode = hashCode * 59 + this.Xxcustom03.GetHashCode();
if (this.Xxcustom02 != null)
hashCode = hashCode * 59 + this.Xxcustom02.GetHashCode();
if (this.Xxcustom04 != null)
hashCode = hashCode * 59 + this.Xxcustom04.GetHashCode();
if (this.Xxcustom01 != null)
hashCode = hashCode * 59 + this.Xxcustom01.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}
/*
* GK application - OmniPOS Service API
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 5.21.1-b03
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter;
namespace IO.Swagger.Model
{
/// <summary>
/// WorkerDiscountGroupAssignment.Key Inner class for composite key attributes
/// </summary>
[DataContract]
public partial class ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey : IEquatable<ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey() { }
/// <summary>
/// Initializes a new instance of the <see cref="ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey" /> 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="employeeDiscountGroupID">&lt;p&gt;The identifier for a specific employee discount group.&lt;br /&gt;&lt;/p&gt; (required).</param>
/// <param name="workerID">&lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt; (required).</param>
public ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey(string businessUnitGroupID = default(string), string employeeDiscountGroupID = default(string), string workerID = default(string))
{
// to ensure "businessUnitGroupID" is required (not null)
if (businessUnitGroupID == null)
{
throw new InvalidDataException("businessUnitGroupID is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey and cannot be null");
}
else
{
this.BusinessUnitGroupID = businessUnitGroupID;
}
// to ensure "employeeDiscountGroupID" is required (not null)
if (employeeDiscountGroupID == null)
{
throw new InvalidDataException("employeeDiscountGroupID is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey and cannot be null");
}
else
{
this.EmployeeDiscountGroupID = employeeDiscountGroupID;
}
// to ensure "workerID" is required (not null)
if (workerID == null)
{
throw new InvalidDataException("workerID is a required property for ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey and cannot be null");
}
else
{
this.WorkerID = workerID;
}
}
/// <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;The identifier for a specific employee discount group.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;The identifier for a specific employee discount group.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="employeeDiscountGroupID", EmitDefaultValue=false)]
public string EmployeeDiscountGroupID { get; set; }
/// <summary>
/// &lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt;
/// </summary>
/// <value>&lt;p&gt;A unique system-assigned identifier for the person who is a particular worker.&lt;br /&gt;&lt;/p&gt;</value>
[DataMember(Name="workerID", EmitDefaultValue=false)]
public string WorkerID { 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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey {\n");
sb.Append(" BusinessUnitGroupID: ").Append(BusinessUnitGroupID).Append("\n");
sb.Append(" EmployeeDiscountGroupID: ").Append(EmployeeDiscountGroupID).Append("\n");
sb.Append(" WorkerID: ").Append(WorkerID).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 ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey);
}
/// <summary>
/// Returns true if ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey instances are equal
/// </summary>
/// <param name="input">Instance of ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(ComGkSoftwareGkrApiServerMdWorkerDtoDomWorkerDiscountGroupAssignmentKey input)
{
if (input == null)
return false;
return
(
this.BusinessUnitGroupID == input.BusinessUnitGroupID ||
(this.BusinessUnitGroupID != null &&
this.BusinessUnitGroupID.Equals(input.BusinessUnitGroupID))
) &&
(
this.EmployeeDiscountGroupID == input.EmployeeDiscountGroupID ||
(this.EmployeeDiscountGroupID != null &&
this.EmployeeDiscountGroupID.Equals(input.EmployeeDiscountGroupID))
) &&
(
this.WorkerID == input.WorkerID ||
(this.WorkerID != null &&
this.WorkerID.Equals(input.WorkerID))
);
}
/// <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.EmployeeDiscountGroupID != null)
hashCode = hashCode * 59 + this.EmployeeDiscountGroupID.GetHashCode();
if (this.WorkerID != null)
hashCode = hashCode * 59 + this.WorkerID.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