Skip to content

Commit 39e91ce

Browse files
feat(api): manual updates
1 parent bc044e0 commit 39e91ce

File tree

60 files changed

+10697
-352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+10697
-352
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 118
1+
configured_endpoints: 126
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a5a28a58483355d3cc3da7ac5c452d548ee17183324318198052968121ca7dba.yml
33
openapi_spec_hash: a317931a99e6d4a122919135a0363e40
4-
config_hash: 05c94c0e6dbeab2c9b554c2e0d6371a0
4+
config_hash: bcf82bddb691f6be773ac6cae8c03b9a
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using Orb.Models.CreditBlocks;
3+
4+
namespace Orb.Tests.Models.CreditBlocks;
5+
6+
public class CreditBlockDeleteParamsTest : TestBase
7+
{
8+
[Fact]
9+
public void FieldRoundtrip_Works()
10+
{
11+
var parameters = new CreditBlockDeleteParams { BlockID = "block_id" };
12+
13+
string expectedBlockID = "block_id";
14+
15+
Assert.Equal(expectedBlockID, parameters.BlockID);
16+
}
17+
18+
[Fact]
19+
public void Url_Works()
20+
{
21+
CreditBlockDeleteParams parameters = new() { BlockID = "block_id" };
22+
23+
var url = parameters.Url(new() { ApiKey = "My API Key" });
24+
25+
Assert.Equal(new Uri("https://api.withorb.com/v1/credit_blocks/block_id"), url);
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System;
2+
using Orb.Models.CreditBlocks;
3+
4+
namespace Orb.Tests.Models.CreditBlocks;
5+
6+
public class CreditBlockRetrieveParamsTest : TestBase
7+
{
8+
[Fact]
9+
public void FieldRoundtrip_Works()
10+
{
11+
var parameters = new CreditBlockRetrieveParams { BlockID = "block_id" };
12+
13+
string expectedBlockID = "block_id";
14+
15+
Assert.Equal(expectedBlockID, parameters.BlockID);
16+
}
17+
18+
[Fact]
19+
public void Url_Works()
20+
{
21+
CreditBlockRetrieveParams parameters = new() { BlockID = "block_id" };
22+
23+
var url = parameters.Url(new() { ApiKey = "My API Key" });
24+
25+
Assert.Equal(new Uri("https://api.withorb.com/v1/credit_blocks/block_id"), url);
26+
}
27+
}

0 commit comments

Comments
 (0)