Skip to content

Commit

Permalink
🌿 Fern Regeneration -- January 22, 2025 (#35)
Browse files Browse the repository at this point in the history
* SDK regeneration

* restore github action

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Ben Papillon <[email protected]>
  • Loading branch information
fern-api[bot] and bpapillon authored Jan 22, 2025
1 parent 48e8068 commit ccbf1ef
Show file tree
Hide file tree
Showing 14 changed files with 160 additions and 148 deletions.
20 changes: 10 additions & 10 deletions src/SchematicHQ.Client.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client", "SchematicHQ.Client\SchematicHQ.Client.csproj", "{C7897C78-B2CF-41F1-8A88-ADD58148B4CC}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client", "SchematicHQ.Client\SchematicHQ.Client.csproj", "{E7771BBA-84C4-45BC-B17E-8543DD56DB16}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client.Test", "SchematicHQ.Client.Test\SchematicHQ.Client.Test.csproj", "{F15D4EF4-BEA7-404C-9599-ECCE91902E80}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicHQ.Client.Test", "SchematicHQ.Client.Test\SchematicHQ.Client.Test.csproj", "{EDB5E614-3078-440F-AC5A-7E358CA53164}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -16,13 +16,13 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C7897C78-B2CF-41F1-8A88-ADD58148B4CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C7897C78-B2CF-41F1-8A88-ADD58148B4CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C7897C78-B2CF-41F1-8A88-ADD58148B4CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C7897C78-B2CF-41F1-8A88-ADD58148B4CC}.Release|Any CPU.Build.0 = Release|Any CPU
{F15D4EF4-BEA7-404C-9599-ECCE91902E80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F15D4EF4-BEA7-404C-9599-ECCE91902E80}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F15D4EF4-BEA7-404C-9599-ECCE91902E80}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F15D4EF4-BEA7-404C-9599-ECCE91902E80}.Release|Any CPU.Build.0 = Release|Any CPU
{E7771BBA-84C4-45BC-B17E-8543DD56DB16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7771BBA-84C4-45BC-B17E-8543DD56DB16}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7771BBA-84C4-45BC-B17E-8543DD56DB16}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7771BBA-84C4-45BC-B17E-8543DD56DB16}.Release|Any CPU.Build.0 = Release|Any CPU
{EDB5E614-3078-440F-AC5A-7E358CA53164}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EDB5E614-3078-440F-AC5A-7E358CA53164}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EDB5E614-3078-440F-AC5A-7E358CA53164}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EDB5E614-3078-440F-AC5A-7E358CA53164}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
24 changes: 12 additions & 12 deletions src/SchematicHQ.Client/Accounts/AccountsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ public async Task<ListApiKeysResponse> ListApiKeysAsync(
)
{
var _query = new Dictionary<string, object>();
_query["require_environment"] = request.RequireEnvironment.ToString();
_query["require_environment"] = JsonUtils.Serialize(request.RequireEnvironment);
if (request.EnvironmentId != null)
{
_query["environment_id"] = request.EnvironmentId;
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -345,18 +345,18 @@ public async Task<CountApiKeysResponse> CountApiKeysAsync(
)
{
var _query = new Dictionary<string, object>();
_query["require_environment"] = request.RequireEnvironment.ToString();
_query["require_environment"] = JsonUtils.Serialize(request.RequireEnvironment);
if (request.EnvironmentId != null)
{
_query["environment_id"] = request.EnvironmentId;
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -433,11 +433,11 @@ public async Task<ListApiRequestsResponse> ListApiRequestsAsync(
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -573,11 +573,11 @@ public async Task<CountApiRequestsResponse> CountApiRequestsAsync(
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -643,11 +643,11 @@ public async Task<ListEnvironmentsResponse> ListEnvironmentsAsync(
_query["ids"] = request.Ids;
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down
66 changes: 36 additions & 30 deletions src/SchematicHQ.Client/Billing/BillingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,19 +177,19 @@ public async Task<ListCustomersResponse> ListCustomersAsync(
}
if (request.FailedToImport != null)
{
_query["failed_to_import"] = request.FailedToImport.ToString();
_query["failed_to_import"] = JsonUtils.Serialize(request.FailedToImport.Value);
}
if (request.Q != null)
{
_query["q"] = request.Q;
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -258,19 +258,19 @@ public async Task<CountCustomersResponse> CountCustomersAsync(
}
if (request.FailedToImport != null)
{
_query["failed_to_import"] = request.FailedToImport.ToString();
_query["failed_to_import"] = JsonUtils.Serialize(request.FailedToImport.Value);
}
if (request.Q != null)
{
_query["q"] = request.Q;
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -346,11 +346,11 @@ public async Task<ListInvoicesResponse> ListInvoicesAsync(
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -491,11 +491,11 @@ public async Task<ListMetersResponse> ListMetersAsync(
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -640,11 +640,11 @@ public async Task<ListPaymentMethodsResponse> ListPaymentMethodsAsync(
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -786,15 +786,15 @@ public async Task<SearchBillingPricesResponse> SearchBillingPricesAsync(
}
if (request.Price != null)
{
_query["price"] = request.Price.ToString();
_query["price"] = request.Price.Value.ToString();
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -944,23 +944,25 @@ public async Task<ListProductPricesResponse> ListProductPricesAsync(
}
if (request.WithoutLinkedToPlan != null)
{
_query["without_linked_to_plan"] = request.WithoutLinkedToPlan.ToString();
_query["without_linked_to_plan"] = JsonUtils.Serialize(
request.WithoutLinkedToPlan.Value
);
}
if (request.WithZeroPrice != null)
{
_query["with_zero_price"] = request.WithZeroPrice.ToString();
_query["with_zero_price"] = JsonUtils.Serialize(request.WithZeroPrice.Value);
}
if (request.WithPricesOnly != null)
{
_query["with_prices_only"] = request.WithPricesOnly.ToString();
_query["with_prices_only"] = JsonUtils.Serialize(request.WithPricesOnly.Value);
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -1167,23 +1169,25 @@ public async Task<ListBillingProductsResponse> ListBillingProductsAsync(
}
if (request.WithoutLinkedToPlan != null)
{
_query["without_linked_to_plan"] = request.WithoutLinkedToPlan.ToString();
_query["without_linked_to_plan"] = JsonUtils.Serialize(
request.WithoutLinkedToPlan.Value
);
}
if (request.WithZeroPrice != null)
{
_query["with_zero_price"] = request.WithZeroPrice.ToString();
_query["with_zero_price"] = JsonUtils.Serialize(request.WithZeroPrice.Value);
}
if (request.WithPricesOnly != null)
{
_query["with_prices_only"] = request.WithPricesOnly.ToString();
_query["with_prices_only"] = JsonUtils.Serialize(request.WithPricesOnly.Value);
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -1261,23 +1265,25 @@ public async Task<CountBillingProductsResponse> CountBillingProductsAsync(
}
if (request.WithoutLinkedToPlan != null)
{
_query["without_linked_to_plan"] = request.WithoutLinkedToPlan.ToString();
_query["without_linked_to_plan"] = JsonUtils.Serialize(
request.WithoutLinkedToPlan.Value
);
}
if (request.WithZeroPrice != null)
{
_query["with_zero_price"] = request.WithZeroPrice.ToString();
_query["with_zero_price"] = JsonUtils.Serialize(request.WithZeroPrice.Value);
}
if (request.WithPricesOnly != null)
{
_query["with_prices_only"] = request.WithPricesOnly.ToString();
_query["with_prices_only"] = JsonUtils.Serialize(request.WithPricesOnly.Value);
}
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();
_query["limit"] = request.Limit.Value.ToString();
}
if (request.Offset != null)
{
_query["offset"] = request.Offset.ToString();
_query["offset"] = request.Offset.Value.ToString();
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down
Loading

0 comments on commit ccbf1ef

Please sign in to comment.