Skip to content

Commit 9aa126d

Browse files
authored
Merge pull request #7 from apideck-libraries/speakeasy-sdk-regen-1734701694
chore: 🐝 Update SDK - Generate 0.2.1
2 parents 6a9cf7d + ae60991 commit 9aa126d

File tree

322 files changed

+1655
-1778
lines changed

Some content is hidden

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

322 files changed

+1655
-1778
lines changed

.speakeasy/gen.lock

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: f306da52-7172-441d-9f8c-9d055cef9c2a
33
management:
4-
docChecksum: cda8452b07ff6e11825be9a5d1f08751
4+
docChecksum: 7dcfb4378c6b67f6f82c84503a30eb9f
55
docVersion: 10.9.0
6-
speakeasyVersion: 1.456.0
7-
generationVersion: 2.481.0
8-
releaseVersion: 0.2.0
9-
configChecksum: a3cd09c04de2bb9d2c46cd086264842d
6+
speakeasyVersion: 1.460.3
7+
generationVersion: 2.484.0
8+
releaseVersion: 0.2.1
9+
configChecksum: 15cbb1f518f62e6ec74c6c3733356d9f
1010
repoURL: https://github.com/apideck-libraries/sdk-csharp.git
1111
published: true
1212
features:
1313
csharp:
1414
additionalDependencies: 0.1.0
1515
constsAndDefaults: 0.0.1
16-
core: 3.10.9
16+
core: 3.10.10
1717
deprecations: 2.81.2
1818
errors: 0.2.0
1919
flattening: 2.81.3
@@ -590,8 +590,9 @@ generatedFiles:
590590
- docs/Models/Components/Options.md
591591
- docs/Models/Components/OrdersSort.md
592592
- docs/Models/Components/OrdersSortBy.md
593-
- docs/Models/Components/OutstandingBalance.md
594593
- docs/Models/Components/OutstandingBalanceByCurrency.md
594+
- docs/Models/Components/OutstandingBalanceByCustomer.md
595+
- docs/Models/Components/OutstandingBalanceBySupplier.md
595596
- docs/Models/Components/Owner.md
596597
- docs/Models/Components/PaginationCoverage.md
597598
- docs/Models/Components/PaginationCoverageMode.md
@@ -2016,8 +2017,9 @@ generatedFiles:
20162017
- src/ApideckUnifySdk/Models/Components/Options.cs
20172018
- src/ApideckUnifySdk/Models/Components/OrdersSort.cs
20182019
- src/ApideckUnifySdk/Models/Components/OrdersSortBy.cs
2019-
- src/ApideckUnifySdk/Models/Components/OutstandingBalance.cs
20202020
- src/ApideckUnifySdk/Models/Components/OutstandingBalanceByCurrency.cs
2021+
- src/ApideckUnifySdk/Models/Components/OutstandingBalanceByCustomer.cs
2022+
- src/ApideckUnifySdk/Models/Components/OutstandingBalanceBySupplier.cs
20212023
- src/ApideckUnifySdk/Models/Components/Owner.cs
20222024
- src/ApideckUnifySdk/Models/Components/PaginationCoverage.cs
20232025
- src/ApideckUnifySdk/Models/Components/PaginationCoverageMode.cs
@@ -9451,7 +9453,7 @@ examples:
94519453
"":
94529454
parameters:
94539455
query:
9454-
filter: {"customer_id": "123abc", "report_as_of_date": "2024-01-01", "period_count": 3, "period_length": 30}
9456+
filter: {"customer_id": "123abc", "supplier_id": "123abc", "report_as_of_date": "2024-01-01", "period_count": 3, "period_length": 30}
94559457
pass_through: {"search": "San Francisco"}
94569458
fields: "id,updated_at"
94579459
header:
@@ -9460,7 +9462,7 @@ examples:
94609462
x-apideck-service-id: "salesforce"
94619463
responses:
94629464
"200":
9463-
application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "AgedCreditors", "operation": "one", "data": {"report_generated_at": "2024-11-14T12:00:00.000Z", "report_as_of_date": "2024-11-13", "period_count": 4, "period_length": 30, "outstanding_balances": [{"customer_id": "123", "customer_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}]}]}, {"customer_id": "123", "customer_name": "Super Store", "outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": []}]}]}}
9465+
application/json: {"status_code": 200, "status": "OK", "service": "quickbooks", "resource": "AgedCreditors", "operation": "one", "data": {"report_generated_at": "2024-11-14T12:00:00.000Z", "report_as_of_date": "2024-11-13", "period_count": 4, "period_length": 30, "outstanding_balances": [{"outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}, {"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}, {"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}]}, {"currency": "USD", "balances_by_period": [{"start_date": "2024-01-01", "end_date": "2024-01-30", "total_amount": 1500, "balances_by_transaction": [{"transaction_id": "INV-1001", "transaction_date": "2024-01-15", "transaction_type": "invoice", "due_date": "2024-02-15", "original_amount": 1000, "outstanding_balance": 800}]}]}]}, {"outstanding_balances_by_currency": [{"currency": "USD", "balances_by_period": []}]}]}}
94649466
"400":
94659467
application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": {"missing": [{"foobar": "required"}]}, "ref": "https://developers.apideck.com/errors#requestvalidationerror"}
94669468
"401":
@@ -9477,7 +9479,7 @@ examples:
94779479
"":
94789480
parameters:
94799481
query:
9480-
filter: {"customer_id": "123abc", "report_as_of_date": "2024-01-01", "period_count": 3, "period_length": 30}
9482+
filter: {"customer_id": "123abc", "supplier_id": "123abc", "report_as_of_date": "2024-01-01", "period_count": 3, "period_length": 30}
94819483
pass_through: {"search": "San Francisco"}
94829484
fields: "id,updated_at"
94839485
header:

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: true
1515
csharp:
16-
version: 0.2.0
16+
version: 0.2.1
1717
additionalDependencies: []
1818
author: Speakeasy
1919
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.456.0
1+
speakeasyVersion: 1.460.3
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:dd573ab08c8632998e0236b4c194dad60218bacc11e5a435c0b71b85209432f8
6-
sourceBlobDigest: sha256:d9b57d424d9989e57085f25130300d8a9518374868c3c490ec15433c5ae50a96
5+
sourceRevisionDigest: sha256:d1b081efbfe26cff1c25c03c1c6e5c6a0e5a58c87f435dadcd7058a7365c164f
6+
sourceBlobDigest: sha256:6f14d7b19054d88262d5b57d85b909579b0fa66e54405da78a9dee274ab1c557
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1734448026
9+
- speakeasy-sdk-regen-1734701694
1010
- 10.9.0
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:dd573ab08c8632998e0236b4c194dad60218bacc11e5a435c0b71b85209432f8
16-
sourceBlobDigest: sha256:d9b57d424d9989e57085f25130300d8a9518374868c3c490ec15433c5ae50a96
15+
sourceRevisionDigest: sha256:d1b081efbfe26cff1c25c03c1c6e5c6a0e5a58c87f435dadcd7058a7365c164f
16+
sourceBlobDigest: sha256:6f14d7b19054d88262d5b57d85b909579b0fa66e54405da78a9dee274ab1c557
1717
codeSamplesNamespace: apideck-csharp-code-samples
18-
codeSamplesRevisionDigest: sha256:0b60bdbfa188af37d79feb8012fb69c2c636627c722513ff86fb2bec1af1053a
18+
codeSamplesRevisionDigest: sha256:603949e41d570caf391688005844330f1941922a9dbd60ff676153b300ce3f13
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

NUGET.md

Lines changed: 32 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
```csharp
1010
using ApideckUnifySdk;
11-
using ApideckUnifySdk.Models.Requests;
1211
using ApideckUnifySdk.Models.Components;
12+
using ApideckUnifySdk.Models.Requests;
1313
using System.Collections.Generic;
1414

1515
var sdk = new Apideck(
@@ -33,17 +33,13 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
3333
Fields = "id,updated_at",
3434
};
3535

36-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
36+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
3737

38-
while(true)
38+
while(res != null)
3939
{
4040
// handle items
4141
42-
res = await res.Next();
43-
if (res == null)
44-
{
45-
break;
46-
}
42+
res = await res.Next!();
4743
}
4844
```
4945
<!-- End SDK Example Usage [usage] -->
@@ -62,8 +58,8 @@ This SDK supports the following security scheme globally:
6258
To authenticate with the API the `ApiKey` parameter must be set when initializing the SDK client instance. For example:
6359
```csharp
6460
using ApideckUnifySdk;
65-
using ApideckUnifySdk.Models.Requests;
6661
using ApideckUnifySdk.Models.Components;
62+
using ApideckUnifySdk.Models.Requests;
6763
using System.Collections.Generic;
6864

6965
var sdk = new Apideck(
@@ -87,17 +83,13 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
8783
Fields = "id,updated_at",
8884
};
8985

90-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
86+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
9187

92-
while(true)
88+
while(res != null)
9389
{
9490
// handle items
9591
96-
res = await res.Next();
97-
if (res == null)
98-
{
99-
break;
100-
}
92+
res = await res.Next!();
10193
}
10294
```
10395
<!-- End Authentication [security] -->
@@ -112,8 +104,8 @@ return value of `Next` is `null`, then there are no more pages to be fetched.
112104
Here's an example of one such pagination call:
113105
```csharp
114106
using ApideckUnifySdk;
115-
using ApideckUnifySdk.Models.Requests;
116107
using ApideckUnifySdk.Models.Components;
108+
using ApideckUnifySdk.Models.Requests;
117109
using System.Collections.Generic;
118110

119111
var sdk = new Apideck(
@@ -137,17 +129,13 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
137129
Fields = "id,updated_at",
138130
};
139131

140-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
132+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
141133

142-
while(true)
134+
while(res != null)
143135
{
144136
// handle items
145137
146-
res = await res.Next();
147-
if (res == null)
148-
{
149-
break;
150-
}
138+
res = await res.Next!();
151139
}
152140
```
153141
<!-- End Pagination [pagination] -->
@@ -160,8 +148,8 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
160148
To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
161149
```csharp
162150
using ApideckUnifySdk;
163-
using ApideckUnifySdk.Models.Requests;
164151
using ApideckUnifySdk.Models.Components;
152+
using ApideckUnifySdk.Models.Requests;
165153
using System.Collections.Generic;
166154

167155
var sdk = new Apideck(
@@ -185,7 +173,7 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
185173
Fields = "id,updated_at",
186174
};
187175

188-
var res = await sdk.Accounting.TaxRates.ListAsync(
176+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(
189177
retryConfig: new RetryConfig(
190178
strategy: RetryConfig.RetryStrategy.BACKOFF,
191179
backoff: new BackoffStrategy(
@@ -196,26 +184,22 @@ var res = await sdk.Accounting.TaxRates.ListAsync(
196184
),
197185
retryConnectionErrors: false
198186
),
199-
req
187+
request: req
200188
);
201189

202-
while(true)
190+
while(res != null)
203191
{
204192
// handle items
205193
206-
res = await res.Next();
207-
if (res == null)
208-
{
209-
break;
210-
}
194+
res = await res.Next!();
211195
}
212196
```
213197

214198
If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
215199
```csharp
216200
using ApideckUnifySdk;
217-
using ApideckUnifySdk.Models.Requests;
218201
using ApideckUnifySdk.Models.Components;
202+
using ApideckUnifySdk.Models.Requests;
219203
using System.Collections.Generic;
220204

221205
var sdk = new Apideck(
@@ -249,17 +233,13 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
249233
Fields = "id,updated_at",
250234
};
251235

252-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
236+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
253237

254-
while(true)
238+
while(res != null)
255239
{
256240
// handle items
257241
258-
res = await res.Next();
259-
if (res == null)
260-
{
261-
break;
262-
}
242+
res = await res.Next!();
263243
}
264244
```
265245
<!-- End Retries [retries] -->
@@ -292,11 +272,10 @@ When custom error responses are specified for an operation, the SDK may also thr
292272

293273
```csharp
294274
using ApideckUnifySdk;
295-
using ApideckUnifySdk.Models.Requests;
296275
using ApideckUnifySdk.Models.Components;
297-
using System.Collections.Generic;
298-
using System;
299276
using ApideckUnifySdk.Models.Errors;
277+
using ApideckUnifySdk.Models.Requests;
278+
using System.Collections.Generic;
300279

301280
var sdk = new Apideck(
302281
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
@@ -321,17 +300,13 @@ try
321300
Fields = "id,updated_at",
322301
};
323302

324-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
303+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
325304

326-
while(true)
305+
while(res != null)
327306
{
328307
// handle items
329308
330-
res = await res.Next();
331-
if (res == null)
332-
{
333-
break;
334-
}
309+
res = await res.Next!();
335310
}
336311
}
337312
catch (Exception ex)
@@ -378,8 +353,8 @@ catch (Exception ex)
378353
The default server can also be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example:
379354
```csharp
380355
using ApideckUnifySdk;
381-
using ApideckUnifySdk.Models.Requests;
382356
using ApideckUnifySdk.Models.Components;
357+
using ApideckUnifySdk.Models.Requests;
383358
using System.Collections.Generic;
384359

385360
var sdk = new Apideck(
@@ -404,17 +379,13 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
404379
Fields = "id,updated_at",
405380
};
406381

407-
var res = await sdk.Accounting.TaxRates.ListAsync(req);
382+
AccountingTaxRatesAllResponse? res = await sdk.Accounting.TaxRates.ListAsync(req);
408383

409-
while(true)
384+
while(res != null)
410385
{
411386
// handle items
412387
413-
res = await res.Next();
414-
if (res == null)
415-
{
416-
break;
417-
}
388+
res = await res.Next!();
418389
}
419390
```
420391

@@ -423,8 +394,8 @@ while(true)
423394
The server URL can also be overridden on a per-operation basis, provided a server list was specified for the operation. For example:
424395
```csharp
425396
using ApideckUnifySdk;
426-
using ApideckUnifySdk.Models.Requests;
427397
using ApideckUnifySdk.Models.Components;
398+
using ApideckUnifySdk.Models.Requests;
428399
using System.Collections.Generic;
429400

430401
var sdk = new Apideck(
@@ -459,7 +430,7 @@ FileStorageUploadSessionsAddRequest req = new FileStorageUploadSessionsAddReques
459430
};
460431

461432
var res = await sdk.FileStorage.UploadSessions.CreateAsync(
462-
req,
433+
request: req,
463434
serverUrl: "https://upload.apideck.com"
464435
);
465436

0 commit comments

Comments
 (0)