Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.6.0",
"generatorName": "fernapi/fern-csharp-sdk",
"generatorVersion": "2.66.1",
"generatorVersion": "2.66.4",
"generatorConfig": {
"namespace": "SchematicHQ.Client",
"client-class-name": "SchematicApi",
Expand All @@ -12,10 +12,10 @@
},
"generate-mock-server-tests": false
},
"originGitCommit": "4fd82021eff164a6f2484d4504850c46fe8f4a95",
"originGitCommit": "efe71642022d9d3303fd78c648e5b2539192230e",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.5",
"requestedVersion": "1.4.6",
"ciProvider": "github",
"sdkVersion": "1.4.5"
"sdkVersion": "1.4.6"
}
262 changes: 156 additions & 106 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -5648,6 +5648,7 @@ await client.Entitlements.ListFeatureUsageAsync(
CompanyId = "company_id",
FeatureIds = new List<string>() { "feature_ids" },
IncludeUsageAggregation = true,
ManagedBy = BillingProviderType.Orb,
Q = "q",
WithoutNegativeEntitlements = true,
Limit = 1000000,
Expand Down Expand Up @@ -5748,6 +5749,7 @@ await client.Entitlements.CountFeatureUsageAsync(
CompanyId = "company_id",
FeatureIds = new List<string>() { "feature_ids" },
IncludeUsageAggregation = true,
ManagedBy = BillingProviderType.Orb,
Q = "q",
WithoutNegativeEntitlements = true,
Limit = 1000000,
Expand Down Expand Up @@ -7468,6 +7470,160 @@ await client.Components.PreviewComponentDataAsync(
</dl>


</dd>
</dl>
</details>

## planbundle
<details><summary><code>client.Planbundle.<a href="/src/SchematicHQ.Client/Planbundle/PlanbundleClient.cs">CreateCustomPlanBundleAsync</a>(CreateCustomPlanBundleRequestBody { ... }) -> WithRawResponseTask&lt;CreateCustomPlanBundleResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Planbundle.CreateCustomPlanBundleAsync(
new CreateCustomPlanBundleRequestBody
{
Entitlements = new List<PlanBundleEntitlementRequestBody>()
{
new PlanBundleEntitlementRequestBody { Action = PlanBundleAction.Create },
},
}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `CreateCustomPlanBundleRequestBody`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.Planbundle.<a href="/src/SchematicHQ.Client/Planbundle/PlanbundleClient.cs">CreatePlanBundleAsync</a>(CreatePlanBundleRequestBody { ... }) -> WithRawResponseTask&lt;CreatePlanBundleResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Planbundle.CreatePlanBundleAsync(
new CreatePlanBundleRequestBody
{
Entitlements = new List<PlanBundleEntitlementRequestBody>()
{
new PlanBundleEntitlementRequestBody { Action = PlanBundleAction.Create },
},
}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `CreatePlanBundleRequestBody`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.Planbundle.<a href="/src/SchematicHQ.Client/Planbundle/PlanbundleClient.cs">UpdatePlanBundleAsync</a>(planBundleId, UpdatePlanBundleRequestBody { ... }) -> WithRawResponseTask&lt;UpdatePlanBundleResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Planbundle.UpdatePlanBundleAsync(
"plan_bundle_id",
new UpdatePlanBundleRequestBody
{
Entitlements = new List<PlanBundleEntitlementRequestBody>()
{
new PlanBundleEntitlementRequestBody { Action = PlanBundleAction.Create },
},
}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**planBundleId:** `string` — plan_bundle_id

</dd>
</dl>

<dl>
<dd>

**request:** `UpdatePlanBundleRequestBody`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down Expand Up @@ -9137,112 +9293,6 @@ await client.Integrationsapi.UninstallIntegrationAsync("integration_id");
</dl>


</dd>
</dl>
</details>

## planbundle
<details><summary><code>client.Planbundle.<a href="/src/SchematicHQ.Client/Planbundle/PlanbundleClient.cs">CreatePlanBundleAsync</a>(CreatePlanBundleRequestBody { ... }) -> WithRawResponseTask&lt;CreatePlanBundleResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Planbundle.CreatePlanBundleAsync(
new CreatePlanBundleRequestBody
{
Entitlements = new List<PlanBundleEntitlementRequestBody>()
{
new PlanBundleEntitlementRequestBody { Action = PlanBundleAction.Create },
},
}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**request:** `CreatePlanBundleRequestBody`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.Planbundle.<a href="/src/SchematicHQ.Client/Planbundle/PlanbundleClient.cs">UpdatePlanBundleAsync</a>(planBundleId, UpdatePlanBundleRequestBody { ... }) -> WithRawResponseTask&lt;UpdatePlanBundleResponse&gt;</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```csharp
await client.Planbundle.UpdatePlanBundleAsync(
"plan_bundle_id",
new UpdatePlanBundleRequestBody
{
Entitlements = new List<PlanBundleEntitlementRequestBody>()
{
new PlanBundleEntitlementRequestBody { Action = PlanBundleAction.Create },
},
}
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**planBundleId:** `string` — plan_bundle_id

</dd>
</dl>

<dl>
<dd>

**request:** `UpdatePlanBundleRequestBody`

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="WireMock.Net" Version="2.2.0" />
<PackageReference Include="WireMock.Net" Version="2.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public record CreateBillingPriceRequestBody
[JsonPropertyName("interval")]
public required string Interval { get; set; }

[JsonPropertyName("interval_count")]
public long? IntervalCount { get; set; }

[JsonPropertyName("is_active")]
public required bool IsActive { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/SchematicHQ.Client/Core/Public/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ namespace SchematicHQ.Client;
[Serializable]
internal class Version
{
public const string Current = "1.4.5";
public const string Current = "1.4.6";
}
8 changes: 6 additions & 2 deletions src/SchematicHQ.Client/Entitlements/EntitlementsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,12 @@ private async Task<WithRawResponse<ListFeatureUsageResponse>> ListFeatureUsageAs
CancellationToken cancellationToken = default
)
{
var _queryString = new SchematicHQ.Client.Core.QueryStringBuilder.Builder(capacity: 8)
var _queryString = new SchematicHQ.Client.Core.QueryStringBuilder.Builder(capacity: 9)
.Add("company_id", request.CompanyId)
.Add("company_keys", request.CompanyKeys)
.Add("feature_ids", request.FeatureIds)
.Add("include_usage_aggregation", request.IncludeUsageAggregation)
.Add("managed_by", request.ManagedBy)
.Add("q", request.Q)
.Add("without_negative_entitlements", request.WithoutNegativeEntitlements)
.Add("limit", request.Limit)
Expand Down Expand Up @@ -989,11 +990,12 @@ private async Task<WithRawResponse<CountFeatureUsageResponse>> CountFeatureUsage
CancellationToken cancellationToken = default
)
{
var _queryString = new SchematicHQ.Client.Core.QueryStringBuilder.Builder(capacity: 8)
var _queryString = new SchematicHQ.Client.Core.QueryStringBuilder.Builder(capacity: 9)
.Add("company_id", request.CompanyId)
.Add("company_keys", request.CompanyKeys)
.Add("feature_ids", request.FeatureIds)
.Add("include_usage_aggregation", request.IncludeUsageAggregation)
.Add("managed_by", request.ManagedBy)
.Add("q", request.Q)
.Add("without_negative_entitlements", request.WithoutNegativeEntitlements)
.Add("limit", request.Limit)
Expand Down Expand Up @@ -2307,6 +2309,7 @@ public WithRawResponseTask<CountFeatureCompaniesResponse> CountFeatureCompaniesA
/// CompanyId = "company_id",
/// FeatureIds = new List&lt;string&gt;() { "feature_ids" },
/// IncludeUsageAggregation = true,
/// ManagedBy = BillingProviderType.Orb,
/// Q = "q",
/// WithoutNegativeEntitlements = true,
/// Limit = 1000000,
Expand Down Expand Up @@ -2355,6 +2358,7 @@ public WithRawResponseTask<GetFeatureUsageTimeSeriesResponse> GetFeatureUsageTim
/// CompanyId = "company_id",
/// FeatureIds = new List&lt;string&gt;() { "feature_ids" },
/// IncludeUsageAggregation = true,
/// ManagedBy = BillingProviderType.Orb,
/// Q = "q",
/// WithoutNegativeEntitlements = true,
/// Limit = 1000000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public record CountFeatureUsageRequest
[JsonIgnore]
public bool? IncludeUsageAggregation { get; set; }

/// <summary>
/// Filter for features managed by a billing provider, or by Schematic (no billing provider)
/// </summary>
[JsonIgnore]
public BillingProviderType? ManagedBy { get; set; }

[JsonIgnore]
public string? Q { get; set; }

Expand Down
Loading
Loading