Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up .NET
uses: actions/setup-dotnet@v3
Expand All @@ -39,7 +39,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up .NET
uses: actions/setup-dotnet@v3
Expand All @@ -55,7 +55,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/orb-csharp' && 'depot-windows-2022' || 'windows-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Set up .NET
uses: actions/setup-dotnet@v5
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0"
".": "0.2.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 126
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d45078644e5890989174cc450ad8a814913af66bdb43350b63c1b93b98af9efd.yml
openapi_spec_hash: 9750de93e1e074a3e2e27f115422cb77
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6017828d1287c194d4d7759dc5b5410225ab58af66ff8605315f70f5e623b82d.yml
openapi_spec_hash: 4390eaf377258fcd7db1dbc073a2c23f
config_hash: bcf82bddb691f6be773ac6cae8c03b9a
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.2.0 (2026-01-21)

Full Changelog: [v0.1.0...v0.2.0](https://github.com/orbcorp/orb-csharp/compare/v0.1.0...v0.2.0)

### Features

* **api:** api update ([d8f27e8](https://github.com/orbcorp/orb-csharp/commit/d8f27e8e10dc99f7d6e51186171181a05a59547d))
* **api:** api update ([3bd6cd6](https://github.com/orbcorp/orb-csharp/commit/3bd6cd6413b421ff644eee7f195e6fe0af47c56c))
* **client:** add `ToString` to `ApiEnum` ([551d3d9](https://github.com/orbcorp/orb-csharp/commit/551d3d983edbc2dd99c0143b2779146fa00ae80f))
* **client:** add Equals and ToString to params ([8a87021](https://github.com/orbcorp/orb-csharp/commit/8a870218bc1eebf9e4430ed69fedc206e7b9f25c))


### Chores

* **internal:** codegen related update ([2bc3e43](https://github.com/orbcorp/orb-csharp/commit/2bc3e436b724ff58d3191ea1c4632be595a9e5f5))
* **internal:** simplify imports ([79d3471](https://github.com/orbcorp/orb-csharp/commit/79d34710f779ca309e84faddc3e28bfa5b9c73bc))
* **internal:** update `actions/checkout` version ([5849a89](https://github.com/orbcorp/orb-csharp/commit/5849a89be72919068177e2830142c600a0bb7aeb))

## 0.1.0 (2026-01-14)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/orbcorp/orb-csharp/compare/v0.0.1...v0.1.0)
Expand Down
16 changes: 16 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertCreateForCustomerParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@ public void Url_Works()

Assert.Equal(new Uri("https://api.withorb.com/v1/alerts/customer_id/customer_id"), url);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new Alerts::AlertCreateForCustomerParams
{
CustomerID = "customer_id",
Currency = "currency",
Type = Alerts::Type.CreditBalanceDepleted,
Thresholds = [new(0)],
};

Alerts::AlertCreateForCustomerParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}

public class TypeTest : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,22 @@ public void Url_Works()
url
);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertCreateForExternalCustomerParams
{
ExternalCustomerID = "external_customer_id",
Currency = "currency",
Type = AlertCreateForExternalCustomerParamsType.CreditBalanceDepleted,
Thresholds = [new(0)],
};

AlertCreateForExternalCustomerParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}

public class AlertCreateForExternalCustomerParamsTypeTest : TestBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,22 @@ public void Url_Works()
url
);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertCreateForSubscriptionParams
{
SubscriptionID = "subscription_id",
Thresholds = [new(0)],
Type = AlertCreateForSubscriptionParamsType.UsageExceeded,
MetricID = "metric_id",
};

AlertCreateForSubscriptionParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}

public class AlertCreateForSubscriptionParamsTypeTest : TestBase
Expand Down
14 changes: 14 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertDisableParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,18 @@ public void Url_Works()
url
);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertDisableParams
{
AlertConfigurationID = "alert_configuration_id",
SubscriptionID = "subscription_id",
};

AlertDisableParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}
14 changes: 14 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertEnableParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,18 @@ public void Url_Works()
url
);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertEnableParams
{
AlertConfigurationID = "alert_configuration_id",
SubscriptionID = "subscription_id",
};

AlertEnableParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}
21 changes: 21 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertListParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,4 +166,25 @@ public void Url_Works()
url
);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertListParams
{
CreatedAtGt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
CreatedAtGte = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
CreatedAtLt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
CreatedAtLte = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
Cursor = "cursor",
CustomerID = "customer_id",
ExternalCustomerID = "external_customer_id",
Limit = 1,
SubscriptionID = "subscription_id",
};

AlertListParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}
10 changes: 10 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertRetrieveParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,14 @@ public void Url_Works()

Assert.Equal(new Uri("https://api.withorb.com/v1/alerts/alert_id"), url);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertRetrieveParams { AlertID = "alert_id" };

AlertRetrieveParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}
14 changes: 14 additions & 0 deletions src/Orb.Tests/Models/Alerts/AlertUpdateParamsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,18 @@ public void Url_Works()

Assert.Equal(new Uri("https://api.withorb.com/v1/alerts/alert_configuration_id"), url);
}

[Fact]
public void CopyConstructor_Works()
{
var parameters = new AlertUpdateParams
{
AlertConfigurationID = "alert_configuration_id",
Thresholds = [new(0)],
};

AlertUpdateParams copied = new(parameters);

Assert.Equal(parameters, copied);
}
}
Loading
Loading