Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.5.0 commit:70dbf16
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 17, 2024
1 parent bcf81fd commit 2368603
Show file tree
Hide file tree
Showing 5 changed files with 38 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", "{96437E5F-1F20-47CA-A2B8-F0720CD05B12}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{FB24539E-C4A8-49CC-A7B7-318D0C987A9C}"
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
{96437E5F-1F20-47CA-A2B8-F0720CD05B12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96437E5F-1F20-47CA-A2B8-F0720CD05B12}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96437E5F-1F20-47CA-A2B8-F0720CD05B12}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96437E5F-1F20-47CA-A2B8-F0720CD05B12}.Release|Any CPU.Build.0 = Release|Any CPU
{FB24539E-C4A8-49CC-A7B7-318D0C987A9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FB24539E-C4A8-49CC-A7B7-318D0C987A9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB24539E-C4A8-49CC-A7B7-318D0C987A9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB24539E-C4A8-49CC-A7B7-318D0C987A9C}.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/InvoicesFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**UpdatedSince** | **DateTime** | | [optional]
**CreatedSince** | **DateTime** | | [optional]
**Number** | **string** | Invoice number to search for | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

8 changes: 8 additions & 0 deletions src/gen/src/Apideck.Test/Model/InvoicesFilterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ public void CreatedSinceTest()
{
// TODO unit test for the property 'CreatedSince'
}
/// <summary>
/// Test the property 'Number'
/// </summary>
[Fact]
public void NumberTest()
{
// TODO unit test for the property 'Number'
}

}

Expand Down
4 changes: 4 additions & 0 deletions src/gen/src/Apideck/Api/AccountingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13730,6 +13730,10 @@ public Apideck.Client.ExceptionFactory ExceptionFactory
{
localVarRequestOptions.QueryParameters.Add(Apideck.Client.ClientUtils.ParameterToMultiMap("", "filter[created_since]", filter.CreatedSince));
}
if (filter.Number != null)
{
localVarRequestOptions.QueryParameters.Add(Apideck.Client.ClientUtils.ParameterToMultiMap("", "filter[number]", filter.Number));
}
}
if (sort != null)
{
Expand Down
21 changes: 20 additions & 1 deletion src/gen/src/Apideck/Model/InvoicesFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public partial class InvoicesFilter : IEquatable<InvoicesFilter>, IValidatableOb
/// </summary>
/// <param name="updatedSince">updatedSince.</param>
/// <param name="createdSince">createdSince.</param>
public InvoicesFilter(DateTime updatedSince = default(DateTime), DateTime createdSince = default(DateTime))
/// <param name="number">Invoice number to search for.</param>
public InvoicesFilter(DateTime updatedSince = default(DateTime), DateTime createdSince = default(DateTime), string number = default(string))
{
this.UpdatedSince = updatedSince;
this.CreatedSince = createdSince;
this.Number = number;
}

/// <summary>
Expand All @@ -54,6 +56,13 @@ public partial class InvoicesFilter : IEquatable<InvoicesFilter>, IValidatableOb
[DataMember(Name = "created_since", EmitDefaultValue = false)]
public DateTime CreatedSince { get; set; }

/// <summary>
/// Invoice number to search for
/// </summary>
/// <value>Invoice number to search for</value>
[DataMember(Name = "number", EmitDefaultValue = false)]
public string Number { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -64,6 +73,7 @@ public override string ToString()
sb.Append("class InvoicesFilter {\n");
sb.Append(" UpdatedSince: ").Append(UpdatedSince).Append("\n");
sb.Append(" CreatedSince: ").Append(CreatedSince).Append("\n");
sb.Append(" Number: ").Append(Number).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -108,6 +118,11 @@ public bool Equals(InvoicesFilter input)
this.CreatedSince == input.CreatedSince ||
(this.CreatedSince != null &&
this.CreatedSince.Equals(input.CreatedSince))
) &&
(
this.Number == input.Number ||
(this.Number != null &&
this.Number.Equals(input.Number))
);
}

Expand All @@ -128,6 +143,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.CreatedSince.GetHashCode();
}
if (this.Number != null)
{
hashCode = (hashCode * 59) + this.Number.GetHashCode();
}
return hashCode;
}
}
Expand Down

0 comments on commit 2368603

Please sign in to comment.