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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9,606 changes: 7,555 additions & 2,051 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ speakeasyVersion: 1.770.0
sources:
stacks-source:
sourceNamespace: stacks-source
sourceRevisionDigest: sha256:e21e54e7818b64f5bd5b04dc7d0f16434b7d6cd22ec399eab0b8b4353ca72c21
sourceBlobDigest: sha256:bab4ef7cb2db033bdbfea628f9fa8831eea64b2990bdc91e35552809d3497e9b
sourceRevisionDigest: sha256:81809589e414851cb94c9f33a17477b7b0cff9c659bf3f2c8bc56aec4fb1bfba
sourceBlobDigest: sha256:35d612ee0cf107496665ea5ac01ad8433ba7b1d572ca32b2189f903da610374f
tags:
- latest
targets:
formance:
source: stacks-source
sourceNamespace: stacks-source
sourceRevisionDigest: sha256:e21e54e7818b64f5bd5b04dc7d0f16434b7d6cd22ec399eab0b8b4353ca72c21
sourceBlobDigest: sha256:bab4ef7cb2db033bdbfea628f9fa8831eea64b2990bdc91e35552809d3497e9b
sourceRevisionDigest: sha256:81809589e414851cb94c9f33a17477b7b0cff9c659bf3f2c8bc56aec4fb1bfba
sourceBlobDigest: sha256:35d612ee0cf107496665ea5ac01ad8433ba7b1d572ca32b2189f903da610374f
codeSamplesNamespace: stacks-source-csharp-code-samples
codeSamplesRevisionDigest: sha256:95cd1b33372068d10b4e54778856daab827875dbd851f5a61f1cbb3bfdf5c121
codeSamplesRevisionDigest: sha256:afbfbc12c3a5caafadfae24b4b78ebf5b5961c55b0e394a8a3ec8ce7a5246411
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.770.0
Expand Down
40 changes: 32 additions & 8 deletions NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,20 @@ catch (System.Net.Http.HttpRequestException ex)
**Primary exception:**
* [`SDKBaseException`](./src/FormanceSDK/Models/Errors/SDKBaseException.cs): The base class for HTTP error responses.

**Less common exceptions (9)**
**Less common exceptions (11)**

* [`System.Net.Http.HttpRequestException`](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httprequestexception): Network connectivity error. For more details about the underlying cause, inspect the `ex.InnerException`.

* Inheriting from [`SDKBaseException`](./src/FormanceSDK/Models/Errors/SDKBaseException.cs):
* [`V3ErrorResponse`](./src/FormanceSDK/Models/Errors/V3ErrorResponse.cs): Error. Applicable to 63 of 276 methods.*
* [`PaymentsErrorResponse`](./src/FormanceSDK/Models/Errors/PaymentsErrorResponse.cs): Error. Applicable to 46 of 276 methods.*
* [`V2ErrorResponseError`](./src/FormanceSDK/Models/Errors/V2ErrorResponseError.cs): Applicable to 44 of 276 methods.*
* [`ErrorResponseError`](./src/FormanceSDK/Models/Errors/ErrorResponseError.cs): Applicable to 43 of 276 methods.*
* [`ErrorResponse`](./src/FormanceSDK/Models/Errors/ErrorResponse.cs): Applicable to 28 of 276 methods.*
* [`V2Error`](./src/FormanceSDK/Models/Errors/V2Error.cs): General error. Applicable to 18 of 276 methods.*
* [`Error`](./src/FormanceSDK/Models/Errors/Error.cs): General error. Applicable to 17 of 276 methods.*
* [`V3ErrorResponse`](./src/FormanceSDK/Models/Errors/V3ErrorResponse.cs): Error. Applicable to 63 of 353 methods.*
* [`PaymentsErrorResponse`](./src/FormanceSDK/Models/Errors/PaymentsErrorResponse.cs): Error. Applicable to 46 of 353 methods.*
* [`V2ErrorResponseError`](./src/FormanceSDK/Models/Errors/V2ErrorResponseError.cs): Applicable to 45 of 353 methods.*
* [`ErrorResponseError`](./src/FormanceSDK/Models/Errors/ErrorResponseError.cs): Applicable to 43 of 353 methods.*
* [`ErrorResponse`](./src/FormanceSDK/Models/Errors/ErrorResponse.cs): Applicable to 28 of 353 methods.*
* [`V2Error1`](./src/FormanceSDK/Models/Errors/V2Error1.cs): General error. Applicable to 18 of 353 methods.*
* [`Error1`](./src/FormanceSDK/Models/Errors/Error1.cs): General error. Applicable to 17 of 353 methods.*
* [`Error`](./src/FormanceSDK/Models/Errors/Error.cs): Request or server error. The HTTP status and code identify the failure. Applicable to 14 of 353 methods.*
* [`HealthError`](./src/FormanceSDK/Models/Errors/HealthError.cs): Ready. Status code `500`. Applicable to 1 of 353 methods.*
* [`ResponseValidationError`](./src/FormanceSDK/Models/Errors/ResponseValidationError.cs): Thrown when the response data could not be deserialized into the expected type.

\* Refer to the [relevant documentation](#available-resources-and-operations) to determine whether an exception applies to a specific operation.
Expand Down Expand Up @@ -125,6 +127,28 @@ var sdk = new Formance(security: new Security() {

var res = await sdk.GetVersionsAsync();

// handle response
```

### Per-Operation Security Schemes

Some operations in this SDK require the security scheme to be specified at the request level. For example:
```csharp
using FormanceSDK;
using FormanceSDK.Models.LedgerV3;
using FormanceSDK.Models.Requests;

var sdk = new Formance();

var res = await sdk.Ledger.V3.ListAllLedgersAsync(
security: new V3ListAllLedgersSecurity() {

},
xConsistency: Consistency.Linearizable,
pageSize: 100,
reverse: false
);

// handle response
```
<!-- End Authentication [security] -->
Expand Down
Loading