Skip to content

Commit

Permalink
fix(time-off-balances): balance and used are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Apr 19, 2024
1 parent 88d5f44 commit 3ac00c0
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 24 deletions.
10 changes: 5 additions & 5 deletions AffixApi.Api.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 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AffixApi.Api", "src\AffixApi.Api\AffixApi.Api.csproj", "{6ED187A0-DCA2-4020-A2A1-11D832F508FA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AffixApi.Api", "src\AffixApi.Api\AffixApi.Api.csproj", "{6A249F41-44E6-4523-988F-A4ACAEF09043}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AffixApi.Api.Test", "src\AffixApi.Api.Test\AffixApi.Api.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
{6ED187A0-DCA2-4020-A2A1-11D832F508FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6ED187A0-DCA2-4020-A2A1-11D832F508FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6ED187A0-DCA2-4020-A2A1-11D832F508FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6ED187A0-DCA2-4020-A2A1-11D832F508FA}.Release|Any CPU.Build.0 = Release|Any CPU
{6A249F41-44E6-4523-988F-A4ACAEF09043}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A249F41-44E6-4523-988F-A4ACAEF09043}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A249F41-44E6-4523-988F-A4ACAEF09043}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A249F41-44E6-4523-988F-A4ACAEF09043}.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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Things to keep in mind:
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2023-03-01
- SDK version: 1.1.59
- SDK version: 1.1.60
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen

<a name="frameworks-supported"></a>
Expand Down
4 changes: 2 additions & 2 deletions docs/TimeOffBalanceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EmployeeId** | **string** | The Affix-assigned id of the individual |
**RemoteId** | **string** | the remote system-assigned id of the individual |
**Balance** | **decimal** | |
**Used** | **decimal** | |
**Balance** | **decimal?** | |
**Used** | **decimal?** | |
**PolicyName** | **string** | The name of the policy, as assigned by the remote system |
**PolicyType** | **string** | |
**RemoteCreatedAt** | **DateTime?** | |
Expand Down
2 changes: 1 addition & 1 deletion src/AffixApi.Api/AffixApi.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Description>A library generated from a OpenAPI doc</Description>
<Copyright>No Copyright</Copyright>
<RootNamespace>AffixApi.Api</RootNamespace>
<Version>1.1.59</Version>
<Version>1.1.60</Version>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\AffixApi.Api.xml</DocumentationFile>
<RepositoryUrl>https://github.com/GIT_USER_ID/GIT_REPO_ID.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Expand Down
6 changes: 3 additions & 3 deletions src/AffixApi.Api/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
/// </summary>
/// <value>Version of the package.</value>
public const string Version = "1.1.59";
public const string Version = "1.1.60";

/// <summary>
/// Identifier for ISO 8601 DateTime Format
Expand Down Expand Up @@ -107,7 +107,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
UserAgent = "OpenAPI-Generator/1.1.59/csharp";
UserAgent = "OpenAPI-Generator/1.1.60/csharp";
BasePath = "https://api.affixapi.com";
DefaultHeaders = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>();
Expand Down Expand Up @@ -458,7 +458,7 @@ public static String ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 2023-03-01\n";
report += " SDK Package Version: 1.1.59\n";
report += " SDK Package Version: 1.1.60\n";

return report;
}
Expand Down
28 changes: 17 additions & 11 deletions src/AffixApi.Api/Model/TimeOffBalanceResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,16 @@ protected TimeOffBalanceResponse() { }
/// <param name="policyType">policyType (required).</param>
/// <param name="remoteCreatedAt">remoteCreatedAt (required).</param>
/// <param name="remoteModifiedAt">remoteModifiedAt (required).</param>
public TimeOffBalanceResponse(string employeeId = default(string), string remoteId = default(string), decimal balance = default(decimal), decimal used = default(decimal), string policyName = default(string), PolicyTypeEnum policyType = default(PolicyTypeEnum), DateTime? remoteCreatedAt = default(DateTime?), DateTime? remoteModifiedAt = default(DateTime?))
public TimeOffBalanceResponse(string employeeId = default(string), string remoteId = default(string), decimal? balance = default(decimal?), decimal? used = default(decimal?), string policyName = default(string), PolicyTypeEnum policyType = default(PolicyTypeEnum), DateTime? remoteCreatedAt = default(DateTime?), DateTime? remoteModifiedAt = default(DateTime?))
{
// to ensure "employeeId" is required (not null)
this.EmployeeId = employeeId ?? throw new ArgumentNullException("employeeId is a required property for TimeOffBalanceResponse and cannot be null");
// to ensure "remoteId" is required (not null)
this.RemoteId = remoteId ?? throw new ArgumentNullException("remoteId is a required property for TimeOffBalanceResponse and cannot be null");
this.Balance = balance;
this.Used = used;
// to ensure "balance" is required (not null)
this.Balance = balance ?? throw new ArgumentNullException("balance is a required property for TimeOffBalanceResponse and cannot be null");
// to ensure "used" is required (not null)
this.Used = used ?? throw new ArgumentNullException("used is a required property for TimeOffBalanceResponse and cannot be null");
// to ensure "policyName" is required (not null)
this.PolicyName = policyName ?? throw new ArgumentNullException("policyName is a required property for TimeOffBalanceResponse and cannot be null");
this.PolicyType = policyType;
Expand All @@ -138,14 +140,14 @@ protected TimeOffBalanceResponse() { }
/// <summary>
/// Gets or Sets Balance
/// </summary>
[DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = false)]
public decimal Balance { get; set; }
[DataMember(Name = "balance", IsRequired = true, EmitDefaultValue = true)]
public decimal? Balance { get; set; }

/// <summary>
/// Gets or Sets Used
/// </summary>
[DataMember(Name = "used", IsRequired = true, EmitDefaultValue = false)]
public decimal Used { get; set; }
[DataMember(Name = "used", IsRequired = true, EmitDefaultValue = true)]
public decimal? Used { get; set; }

/// <summary>
/// The name of the policy, as assigned by the remote system
Expand Down Expand Up @@ -230,11 +232,13 @@ public bool Equals(TimeOffBalanceResponse input)
) &&
(
this.Balance == input.Balance ||
this.Balance.Equals(input.Balance)
(this.Balance != null &&
this.Balance.Equals(input.Balance))
) &&
(
this.Used == input.Used ||
this.Used.Equals(input.Used)
(this.Used != null &&
this.Used.Equals(input.Used))
) &&
(
this.PolicyName == input.PolicyName ||
Expand Down Expand Up @@ -270,8 +274,10 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.EmployeeId.GetHashCode();
if (this.RemoteId != null)
hashCode = hashCode * 59 + this.RemoteId.GetHashCode();
hashCode = hashCode * 59 + this.Balance.GetHashCode();
hashCode = hashCode * 59 + this.Used.GetHashCode();
if (this.Balance != null)
hashCode = hashCode * 59 + this.Balance.GetHashCode();
if (this.Used != null)
hashCode = hashCode * 59 + this.Used.GetHashCode();
if (this.PolicyName != null)
hashCode = hashCode * 59 + this.PolicyName.GetHashCode();
hashCode = hashCode * 59 + this.PolicyType.GetHashCode();
Expand Down
2 changes: 1 addition & 1 deletion src/AffixApi.Api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Things to keep in mind:
This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2023-03-01
- SDK version: 1.1.59
- SDK version: 1.1.60
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen

<a name="frameworks-supported"></a>
Expand Down

0 comments on commit 3ac00c0

Please sign in to comment.