diff --git a/src/gen/Apideck.sln b/src/gen/Apideck.sln index d4b3db54ed..b2183b07f8 100644 --- a/src/gen/Apideck.sln +++ b/src/gen/Apideck.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{D40EEDD6-2FE6-41EA-A534-27EC3BE003AF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{EB03BE4E-902A-44CE-A932-5D12EA2605C8}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D40EEDD6-2FE6-41EA-A534-27EC3BE003AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D40EEDD6-2FE6-41EA-A534-27EC3BE003AF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D40EEDD6-2FE6-41EA-A534-27EC3BE003AF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D40EEDD6-2FE6-41EA-A534-27EC3BE003AF}.Release|Any CPU.Build.0 = Release|Any CPU + {EB03BE4E-902A-44CE-A932-5D12EA2605C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EB03BE4E-902A-44CE-A932-5D12EA2605C8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EB03BE4E-902A-44CE-A932-5D12EA2605C8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EB03BE4E-902A-44CE-A932-5D12EA2605C8}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/src/gen/docs/TimeOffRequest.md b/src/gen/docs/TimeOffRequest.md index 1918a9bdfd..46c6afad45 100644 --- a/src/gen/docs/TimeOffRequest.md +++ b/src/gen/docs/TimeOffRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **ApprovalDate** | **string** | The date the request was approved | [optional] **Units** | **string** | The unit of time off requested. Possible values include: `hours`, `days`, or `other`. | [optional] **Amount** | **decimal?** | The amount of time off requested. | [optional] +**DayPart** | **string** | The day part of the time off request. | [optional] **Notes** | [**TimeOffRequestNotes**](TimeOffRequestNotes.md) | | [optional] **CustomMappings** | **Object** | When custom mappings are configured on the resource, the result is included here. | [optional] [readonly] **UpdatedBy** | **string** | The user who last updated the object. | [optional] [readonly] diff --git a/src/gen/src/Apideck.Test/Model/TimeOffRequestTests.cs b/src/gen/src/Apideck.Test/Model/TimeOffRequestTests.cs index b9bd9631a3..02c80eb059 100644 --- a/src/gen/src/Apideck.Test/Model/TimeOffRequestTests.cs +++ b/src/gen/src/Apideck.Test/Model/TimeOffRequestTests.cs @@ -153,6 +153,14 @@ public void AmountTest() // TODO unit test for the property 'Amount' } /// + /// Test the property 'DayPart' + /// + [Fact] + public void DayPartTest() + { + // TODO unit test for the property 'DayPart' + } + /// /// Test the property 'Notes' /// [Fact] diff --git a/src/gen/src/Apideck/Model/TimeOffRequest.cs b/src/gen/src/Apideck/Model/TimeOffRequest.cs index a5b0967ef2..966d85f0c6 100644 --- a/src/gen/src/Apideck/Model/TimeOffRequest.cs +++ b/src/gen/src/Apideck/Model/TimeOffRequest.cs @@ -189,10 +189,11 @@ public enum UnitsEnum /// The date the request was approved. /// The unit of time off requested. Possible values include: `hours`, `days`, or `other`.. /// The amount of time off requested.. + /// The day part of the time off request.. /// notes. /// The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.. /// The policy type of the time off request. - public TimeOffRequest(string employeeId = default(string), string policyId = default(string), StatusEnum? status = default(StatusEnum?), string description = default(string), string startDate = default(string), string endDate = default(string), string requestDate = default(string), RequestTypeEnum? requestType = default(RequestTypeEnum?), string approvalDate = default(string), UnitsEnum? units = default(UnitsEnum?), decimal? amount = default(decimal?), TimeOffRequestNotes notes = default(TimeOffRequestNotes), List passThrough = default(List), string policyType = default(string)) + public TimeOffRequest(string employeeId = default(string), string policyId = default(string), StatusEnum? status = default(StatusEnum?), string description = default(string), string startDate = default(string), string endDate = default(string), string requestDate = default(string), RequestTypeEnum? requestType = default(RequestTypeEnum?), string approvalDate = default(string), UnitsEnum? units = default(UnitsEnum?), decimal? amount = default(decimal?), string dayPart = default(string), TimeOffRequestNotes notes = default(TimeOffRequestNotes), List passThrough = default(List), string policyType = default(string)) { this.EmployeeId = employeeId; this.PolicyId = policyId; @@ -205,6 +206,7 @@ public enum UnitsEnum this.ApprovalDate = approvalDate; this.Units = units; this.Amount = amount; + this.DayPart = dayPart; this.Notes = notes; this.PassThrough = passThrough; this.PolicyType = policyType; @@ -281,6 +283,13 @@ public bool ShouldSerializeId() [DataMember(Name = "amount", EmitDefaultValue = true)] public decimal? Amount { get; set; } + /// + /// The day part of the time off request. + /// + /// The day part of the time off request. + [DataMember(Name = "day_part", EmitDefaultValue = true)] + public string DayPart { get; set; } + /// /// Gets or Sets Notes /// @@ -396,6 +405,7 @@ public override string ToString() sb.Append(" ApprovalDate: ").Append(ApprovalDate).Append("\n"); sb.Append(" Units: ").Append(Units).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" DayPart: ").Append(DayPart).Append("\n"); sb.Append(" Notes: ").Append(Notes).Append("\n"); sb.Append(" CustomMappings: ").Append(CustomMappings).Append("\n"); sb.Append(" UpdatedBy: ").Append(UpdatedBy).Append("\n"); @@ -496,6 +506,11 @@ public bool Equals(TimeOffRequest input) (this.Amount != null && this.Amount.Equals(input.Amount)) ) && + ( + this.DayPart == input.DayPart || + (this.DayPart != null && + this.DayPart.Equals(input.DayPart)) + ) && ( this.Notes == input.Notes || (this.Notes != null && @@ -587,6 +602,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Amount.GetHashCode(); } + if (this.DayPart != null) + { + hashCode = (hashCode * 59) + this.DayPart.GetHashCode(); + } if (this.Notes != null) { hashCode = (hashCode * 59) + this.Notes.GetHashCode();