Skip to content

Commit dba544b

Browse files
feat(api): manual updates
added new endpoints
1 parent 50b2cb1 commit dba544b

File tree

80 files changed

+15813
-2
lines changed

Some content is hidden

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

80 files changed

+15813
-2
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: 126
1+
configured_endpoints: 139
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c92fb451e13f157b3735f188acc8d57aa3adfbaac1683645e1ba4f432dd7a4f8.yml
33
openapi_spec_hash: dbcd87ecfbd3976eb3b99ec6f9fbc606
4-
config_hash: bcf82bddb691f6be773ac6cae8c03b9a
4+
config_hash: 3279841440b02d4e8303c961d6983492
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
using System;
2+
using Orb.Models.CreditBlocks;
3+
4+
namespace Orb.Tests.Models.CreditBlocks;
5+
6+
public class CreditBlockListInvoicesParamsTest : TestBase
7+
{
8+
[Fact]
9+
public void FieldRoundtrip_Works()
10+
{
11+
var parameters = new CreditBlockListInvoicesParams { 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+
CreditBlockListInvoicesParams 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/invoices"), url);
26+
}
27+
28+
[Fact]
29+
public void CopyConstructor_Works()
30+
{
31+
var parameters = new CreditBlockListInvoicesParams { BlockID = "block_id" };
32+
33+
CreditBlockListInvoicesParams copied = new(parameters);
34+
35+
Assert.Equal(parameters, copied);
36+
}
37+
}

0 commit comments

Comments
 (0)