Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.5.0 commit:7d114a4
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 18, 2024
1 parent 6f605ed commit acec238
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/gen/Apideck.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/TimeOffRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 8 additions & 0 deletions src/gen/src/Apideck.Test/Model/TimeOffRequestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ public void AmountTest()
// TODO unit test for the property 'Amount'
}
/// <summary>
/// Test the property 'DayPart'
/// </summary>
[Fact]
public void DayPartTest()
{
// TODO unit test for the property 'DayPart'
}
/// <summary>
/// Test the property 'Notes'
/// </summary>
[Fact]
Expand Down
21 changes: 20 additions & 1 deletion src/gen/src/Apideck/Model/TimeOffRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,11 @@ public enum UnitsEnum
/// <param name="approvalDate">The date the request was approved.</param>
/// <param name="units">The unit of time off requested. Possible values include: &#x60;hours&#x60;, &#x60;days&#x60;, or &#x60;other&#x60;..</param>
/// <param name="amount">The amount of time off requested..</param>
/// <param name="dayPart">The day part of the time off request..</param>
/// <param name="notes">notes.</param>
/// <param name="passThrough">The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources..</param>
/// <param name="policyType">The policy type of the time off request.</param>
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<Object> passThrough = default(List<Object>), 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<Object> passThrough = default(List<Object>), string policyType = default(string))
{
this.EmployeeId = employeeId;
this.PolicyId = policyId;
Expand All @@ -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;
Expand Down Expand Up @@ -281,6 +283,13 @@ public bool ShouldSerializeId()
[DataMember(Name = "amount", EmitDefaultValue = true)]
public decimal? Amount { get; set; }

/// <summary>
/// The day part of the time off request.
/// </summary>
/// <value>The day part of the time off request.</value>
[DataMember(Name = "day_part", EmitDefaultValue = true)]
public string DayPart { get; set; }

/// <summary>
/// Gets or Sets Notes
/// </summary>
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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 &&
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit acec238

Please sign in to comment.