Skip to content

Commit a33be5b

Browse files
authored
Merge pull request #7 from formancehq/speakeasy-sdk-regen-1741097115
chore: 🐝 Update SDK - Generate 1.0.1
2 parents ab659ae + cad0590 commit a33be5b

39 files changed

+201
-331
lines changed

.speakeasy/gen.lock

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
lockVersion: 2.0.0
22
id: bb4a1c17-4efb-4cf4-a5bb-53737f9f624b
33
management:
4-
docChecksum: 98f21a9b47a7a10e2efba8e8081d5312
5-
docVersion: v3.0.0
6-
speakeasyVersion: 1.487.1
7-
generationVersion: 2.506.0
8-
releaseVersion: 1.0.0
9-
configChecksum: bfef548f4f695cf0b00eb90bf24e6d5e
4+
docChecksum: c41faf2a0390b8c6621c8b1cf31eb698
5+
docVersion: v3.0.1
6+
speakeasyVersion: 1.509.0
7+
generationVersion: 2.539.0
8+
releaseVersion: 1.0.1
9+
configChecksum: 02abcc82b819b7a27c792e113359dc78
1010
repoURL: https://github.com/formancehq/formance-sdk-csharp.git
1111
published: true
1212
features:
1313
csharp:
1414
additionalDependencies: 0.1.0
1515
bigint: 0.2.0
1616
constsAndDefaults: 0.0.1
17-
core: 3.10.13
17+
core: 3.10.14
1818
deprecations: 2.81.2
1919
errors: 0.2.0
2020
flattening: 2.81.3
2121
getRequestBodies: 2.81.1
22-
globalSecurity: 2.83.6
22+
globalSecurity: 2.83.7
2323
globalSecurityCallbacks: 0.1.0
2424
globalServerURLs: 2.82.3
2525
ignores: 2.81.1
2626
intellisenseMarkdownSupport: 0.1.0
2727
methodArguments: 0.2.0
2828
nameOverrides: 2.81.2
29-
nullables: 0.1.0
29+
nullables: 0.1.1
3030
oauth2ClientCredentials: 0.1.1
3131
responseFormat: 0.0.4
3232
sdkHooks: 0.1.0
@@ -477,7 +477,6 @@ generatedFiles:
477477
- docs/Models/Components/V3BankAccountsCursorResponse.md
478478
- docs/Models/Components/V3BankAccountsCursorResponseCursor.md
479479
- docs/Models/Components/V3BankingcircleConfig.md
480-
- docs/Models/Components/V3ConfigInfoResponse.md
481480
- docs/Models/Components/V3Connector.md
482481
- docs/Models/Components/V3ConnectorConfig.md
483482
- docs/Models/Components/V3ConnectorConfig1.md
@@ -566,6 +565,7 @@ generatedFiles:
566565
- docs/Models/Components/Volume.md
567566
- docs/Models/Components/Wallet.md
568567
- docs/Models/Components/WalletSubject.md
568+
- docs/Models/Components/WalletSummary.md
569569
- docs/Models/Components/WalletWithBalances.md
570570
- docs/Models/Components/WalletWithBalancesBalances.md
571571
- docs/Models/Components/WalletsTransaction.md
@@ -930,7 +930,6 @@ generatedFiles:
930930
- docs/Models/Requests/V3GetConnectorConfigResponse.md
931931
- docs/Models/Requests/V3GetConnectorScheduleRequest.md
932932
- docs/Models/Requests/V3GetConnectorScheduleResponse.md
933-
- docs/Models/Requests/V3GetInfoResponse.md
934933
- docs/Models/Requests/V3GetPaymentInitiationRequest.md
935934
- docs/Models/Requests/V3GetPaymentInitiationResponse.md
936935
- docs/Models/Requests/V3GetPaymentRequest.md
@@ -1462,7 +1461,6 @@ generatedFiles:
14621461
- src/FormanceSDK/Models/Components/V3BankAccountsCursorResponse.cs
14631462
- src/FormanceSDK/Models/Components/V3BankAccountsCursorResponseCursor.cs
14641463
- src/FormanceSDK/Models/Components/V3BankingcircleConfig.cs
1465-
- src/FormanceSDK/Models/Components/V3ConfigInfoResponse.cs
14661464
- src/FormanceSDK/Models/Components/V3Connector.cs
14671465
- src/FormanceSDK/Models/Components/V3ConnectorConfig.cs
14681466
- src/FormanceSDK/Models/Components/V3ConnectorConfig1.cs
@@ -1551,6 +1549,7 @@ generatedFiles:
15511549
- src/FormanceSDK/Models/Components/Volume.cs
15521550
- src/FormanceSDK/Models/Components/Wallet.cs
15531551
- src/FormanceSDK/Models/Components/WalletSubject.cs
1552+
- src/FormanceSDK/Models/Components/WalletSummary.cs
15541553
- src/FormanceSDK/Models/Components/WalletWithBalances.cs
15551554
- src/FormanceSDK/Models/Components/WalletWithBalancesBalances.cs
15561555
- src/FormanceSDK/Models/Components/WalletsTransaction.cs
@@ -1916,7 +1915,6 @@ generatedFiles:
19161915
- src/FormanceSDK/Models/Requests/V3GetConnectorConfigResponse.cs
19171916
- src/FormanceSDK/Models/Requests/V3GetConnectorScheduleRequest.cs
19181917
- src/FormanceSDK/Models/Requests/V3GetConnectorScheduleResponse.cs
1919-
- src/FormanceSDK/Models/Requests/V3GetInfoResponse.cs
19201918
- src/FormanceSDK/Models/Requests/V3GetPaymentInitiationRequest.cs
19211919
- src/FormanceSDK/Models/Requests/V3GetPaymentInitiationResponse.cs
19221920
- src/FormanceSDK/Models/Requests/V3GetPaymentRequest.cs
@@ -2396,10 +2394,10 @@ examples:
23962394
atomic: true
23972395
parallel: true
23982396
requestBody:
2399-
application/json: [{"action": "<value>"}]
2397+
application/json: [{"action": "<value>", "data": {"postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}, {"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}, {"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "script": {"plain": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n", "vars": {"user": "users:042"}}, "reference": "ref:001", "metadata": {"admin": "true"}}}]
24002398
responses:
24012399
"200":
2402-
application/json: {"data": [{"responseType": "<value>", "logID": 642842, "data": {"timestamp": "2023-05-07T17:50:11.166Z", "postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}, {"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "reference": "ref:001", "metadata": {"admin": "true"}, "id": 860718, "reverted": true, "preCommitVolumes": {"orders:1": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}, "orders:2": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}}, "postCommitVolumes": {"orders:1": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}, "orders:2": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}, "orders:2": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}, "orders:2": {"USD": {"input": 100, "output": 20, "balance": 80}, "EUR": {"input": 100, "output": 20, "balance": 80}}}}}], "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9"}
2400+
application/json: {"data": [{"responseType": "<value>", "logID": 53724}], "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9"}
24032401
"400":
24042402
application/json: {"data": [], "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9"}
24052403
default:
@@ -2823,7 +2821,7 @@ examples:
28232821
accountId: "XXX"
28242822
responses:
28252823
"200":
2826-
application/json: {"data": {"id": "<id>", "createdAt": "2024-11-12T03:25:46.461Z", "reference": "<value>", "connectorID": "<id>", "defaultCurrency": "<value>", "defaultAsset": "<value>", "accountName": "<value>", "type": "UNKNOWN", "raw": {}}}
2824+
application/json: {"data": {"id": "<id>", "createdAt": "2024-11-12T03:25:46.461Z", "reference": "<value>", "connectorID": "<id>", "defaultCurrency": "<value>", "defaultAsset": "<value>", "accountName": "<value>", "type": "UNKNOWN", "metadata": {"key": "<value>", "key1": "<value>"}, "raw": {}}}
28272825
default:
28282826
application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"}
28292827
getAccountBalances:
@@ -2913,7 +2911,7 @@ examples:
29132911
path:
29142912
connector: "ATLAR"
29152913
requestBody:
2916-
application/json: {"name": "My Wise Account", "apiKey": "XXX", "pollingPeriod": "60s"}
2914+
application/json: {"name": "My Stripe Account", "pollingPeriod": "60s", "apiKey": "XXX", "pageSize": 50}
29172915
responses:
29182916
"201":
29192917
application/json: {"data": {"connectorID": "<id>"}}
@@ -3609,7 +3607,7 @@ examples:
36093607
id: "<id>"
36103608
responses:
36113609
"200":
3612-
application/json: {"balances": [{"name": "<value>", "assets": {"key": 425645}}, {"name": "<value>", "assets": {"key": 2769}}], "availableFunds": {}, "expiredFunds": {"key": 937378, "key1": 696335, "key2": 846984}, "expirableFunds": {"key": 930990, "key1": 132783, "key2": 515347}, "holdFunds": {"key": 213691, "key1": 198747}}
3610+
application/json: {"data": {"balances": [{"name": "<value>", "assets": {"key": 425645}}, {"name": "<value>", "assets": {"key": 2769}}], "availableFunds": {}, "expiredFunds": {"key": 937378, "key1": 696335, "key2": 846984}, "expirableFunds": {"key": 930990, "key1": 132783, "key2": 515347}, "holdFunds": {"key": 213691, "key1": 198747}}}
36133611
default:
36143612
application/json: {"errorCode": "HOLD_CLOSED", "errorMessage": "<value>"}
36153613
listBalances:

.speakeasy/workflow.lock

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.487.1
1+
speakeasyVersion: 1.509.0
22
sources:
33
stacks-source:
44
sourceNamespace: stacks-source
5-
sourceRevisionDigest: sha256:e9840ca1f03d358900f8232cfceb17ce33fbfff5d43e2a2f1a8afbecc8871b95
6-
sourceBlobDigest: sha256:c4b18881641c3898b7b6dd5676a2f39abfbb54a22bbe8516e5135e67b373dbd5
5+
sourceRevisionDigest: sha256:486a05ec0d4ae08f2c1904dbe76a8f52372ddcfe11d840d2873e4d3b27ff3e29
6+
sourceBlobDigest: sha256:bef074165ef8986ef76c256b6be930614e892093488c3d37d7c276d2a27d9370
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1737418195
10-
- v3.0.0
9+
- speakeasy-sdk-regen-1741097115
10+
- v3.0.1
1111
targets:
1212
formance:
1313
source: stacks-source
1414
sourceNamespace: stacks-source
15-
sourceRevisionDigest: sha256:e9840ca1f03d358900f8232cfceb17ce33fbfff5d43e2a2f1a8afbecc8871b95
16-
sourceBlobDigest: sha256:c4b18881641c3898b7b6dd5676a2f39abfbb54a22bbe8516e5135e67b373dbd5
15+
sourceRevisionDigest: sha256:486a05ec0d4ae08f2c1904dbe76a8f52372ddcfe11d840d2873e4d3b27ff3e29
16+
sourceBlobDigest: sha256:bef074165ef8986ef76c256b6be930614e892093488c3d37d7c276d2a27d9370
1717
codeSamplesNamespace: stacks-source-csharp-code-samples
18-
codeSamplesRevisionDigest: sha256:8c23f661ae27b5b04abd59f2540c4d85831c9a9d84d1bffb2a70f8f866f71135
18+
codeSamplesRevisionDigest: sha256:54f725cb27b809783980d5b2d908d6d918c48f686972ac26082b77a12a1ec946
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

NUGET.md

+12-5
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,17 @@ catch (Exception ex)
8282

8383
You can override the default server globally by passing a server index to the `serverIndex: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
8484

85-
| # | Server | Variables | Default values |
86-
| --- | ----------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------ |
87-
| 0 | `http://localhost` | | |
88-
| 1 | `https://{organization}.{environment}.formance.cloud` | `organization: string`<br/>`environment: ServerEnvironment` | `"orgID-stackID"`<br/>`"eu.sandbox"` |
85+
| # | Server | Variables | Description |
86+
| --- | ----------------------------------------------------- | -------------------------------- | ------------------------------------------ |
87+
| 0 | `http://localhost` | | local server |
88+
| 1 | `https://{organization}.{environment}.formance.cloud` | `organization`<br/>`environment` | A per-organization and per-environment API |
8989

90-
If the selected server has variables, you may override their default values through the additional parameters made available in the SDK constructor.
90+
If the selected server has variables, you may override its default values through the additional parameters made available in the SDK constructor:
91+
92+
| Variable | Parameter | Supported Values | Default | Description |
93+
| -------------- | --------------------------------------------------- | -------------------------------------------------------------------------- | ----------------- | ------------------------------------------------------------- |
94+
| `organization` | `organization: string` | string | `"orgID-stackID"` | The organization name. Defaults to a generic organization. |
95+
| `environment` | `environment: FormanceSDK.Models.ServerEnvironment` | - `"eu.sandbox"`<br/>- `"sandbox"`<br/>- `"eu-west-1"`<br/>- `"us-east-1"` | `"eu.sandbox"` | The environment name. Defaults to the production environment. |
9196

9297
#### Example
9398

@@ -97,6 +102,8 @@ using FormanceSDK.Models.Components;
97102

98103
var sdk = new Formance(
99104
serverIndex: 1,
105+
organization: "<value>",
106+
environment: "us-east-1",
100107
security: new Security() {
101108
ClientID = "<YOUR_CLIENT_ID_HERE>",
102109
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ var res = await sdk.GetVersionsAsync();
269269

270270
#### [Payments.V3](docs/sdks/v3/README.md)
271271

272-
* [GetInfo](docs/sdks/v3/README.md#getinfo) - Show server information
273272
* [CreateAccount](docs/sdks/v3/README.md#createaccount) - Create a formance account object. This object will not be forwarded to the connector. It is only used for internal purposes.
274273

275274
* [ListAccounts](docs/sdks/v3/README.md#listaccounts) - List all accounts
@@ -436,12 +435,17 @@ catch (Exception ex)
436435

437436
You can override the default server globally by passing a server index to the `serverIndex: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
438437

439-
| # | Server | Variables | Default values |
440-
| --- | ----------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------ |
441-
| 0 | `http://localhost` | | |
442-
| 1 | `https://{organization}.{environment}.formance.cloud` | `organization: string`<br/>`environment: ServerEnvironment` | `"orgID-stackID"`<br/>`"eu.sandbox"` |
438+
| # | Server | Variables | Description |
439+
| --- | ----------------------------------------------------- | -------------------------------- | ------------------------------------------ |
440+
| 0 | `http://localhost` | | local server |
441+
| 1 | `https://{organization}.{environment}.formance.cloud` | `organization`<br/>`environment` | A per-organization and per-environment API |
443442

444-
If the selected server has variables, you may override their default values through the additional parameters made available in the SDK constructor.
443+
If the selected server has variables, you may override its default values through the additional parameters made available in the SDK constructor:
444+
445+
| Variable | Parameter | Supported Values | Default | Description |
446+
| -------------- | --------------------------------------------------- | -------------------------------------------------------------------------- | ----------------- | ------------------------------------------------------------- |
447+
| `organization` | `organization: string` | string | `"orgID-stackID"` | The organization name. Defaults to a generic organization. |
448+
| `environment` | `environment: FormanceSDK.Models.ServerEnvironment` | - `"eu.sandbox"`<br/>- `"sandbox"`<br/>- `"eu-west-1"`<br/>- `"us-east-1"` | `"eu.sandbox"` | The environment name. Defaults to the production environment. |
445449

446450
#### Example
447451

@@ -451,6 +455,8 @@ using FormanceSDK.Models.Components;
451455

452456
var sdk = new Formance(
453457
serverIndex: 1,
458+
organization: "<value>",
459+
environment: "us-east-1",
454460
security: new Security() {
455461
ClientID = "<YOUR_CLIENT_ID_HERE>",
456462
ClientSecret = "<YOUR_CLIENT_SECRET_HERE>",

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@ Based on:
3838
### Generated
3939
- [csharp v1.0.0] .
4040
### Releases
41-
- [NuGet v1.0.0] https://www.nuget.org/packages/FormanceSDK/1.0.0 - .
41+
- [NuGet v1.0.0] https://www.nuget.org/packages/FormanceSDK/1.0.0 - .
42+
43+
## 2025-03-04 14:04:58
44+
### Changes
45+
Based on:
46+
- OpenAPI Doc
47+
- Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy
48+
### Generated
49+
- [csharp v1.0.1] .
50+
### Releases
51+
- [NuGet v1.0.1] https://www.nuget.org/packages/FormanceSDK/1.0.1 - .

0 commit comments

Comments
 (0)