@@ -35,7 +35,6 @@ and standard method from web, mobile and desktop applications.
3535 * [ Authentication] ( #authentication-1 )
3636 * [ Available Resources and Operations] ( #available-resources-and-operations )
3737 * [ Error Handling] ( #error-handling )
38- * [ Server Selection] ( #server-selection )
3938* [ Development] ( #development )
4039 * [ Maturity] ( #maturity )
4140 * [ Contributions] ( #contributions )
@@ -137,7 +136,7 @@ if ($response->getVersionsResponse !== null) {
137136* [ deleteClient] ( docs/sdks/v1/README.md#deleteclient ) - Delete client
138137* [ deleteSecret] ( docs/sdks/v1/README.md#deletesecret ) - Delete a secret from a client
139138* [ getOIDCWellKnowns] ( docs/sdks/v1/README.md#getoidcwellknowns ) - Retrieve OpenID connect well-knowns.
140- * [ getServerInfo ] ( docs/sdks/v1/README.md#getserverinfo ) - Get server info
139+ * [ getServerInfoAuth ] ( docs/sdks/v1/README.md#getserverinfoauth ) - Get server info
141140* [ listClients] ( docs/sdks/v1/README.md#listclients ) - List clients
142141* [ listUsers] ( docs/sdks/v1/README.md#listusers ) - List users
143142* [ readClient] ( docs/sdks/v1/README.md#readclient ) - Read client
@@ -157,14 +156,14 @@ if ($response->getVersionsResponse !== null) {
157156* [ countAccounts] ( docs/sdks/sdkv1/README.md#countaccounts ) - Count the accounts from a ledger
158157* [ countTransactions] ( docs/sdks/sdkv1/README.md#counttransactions ) - Count the transactions from a ledger
159158* [ createTransaction] ( docs/sdks/sdkv1/README.md#createtransaction ) - Create a new transaction to a ledger
160- * [ getAccount ] ( docs/sdks/sdkv1/README.md#getaccount ) - Get account by its address
159+ * [ getAccountLedger ] ( docs/sdks/sdkv1/README.md#getaccountledger ) - Get account by its address
161160* [ getBalances] ( docs/sdks/sdkv1/README.md#getbalances ) - Get the balances from a ledger's account
162161* [ getBalancesAggregated] ( docs/sdks/sdkv1/README.md#getbalancesaggregated ) - Get the aggregated balances from selected accounts
163162* [ getInfo] ( docs/sdks/sdkv1/README.md#getinfo ) - Show server information
164163* [ getLedgerInfo] ( docs/sdks/sdkv1/README.md#getledgerinfo ) - Get information about a ledger
165164* [ getMapping] ( docs/sdks/sdkv1/README.md#getmapping ) - Get the mapping of a ledger
166165* [ getTransaction] ( docs/sdks/sdkv1/README.md#gettransaction ) - Get transaction from a ledger by its ID
167- * [ listAccounts ] ( docs/sdks/sdkv1/README.md#listaccounts ) - List accounts from a ledger
166+ * [ listAccountsLedger ] ( docs/sdks/sdkv1/README.md#listaccountsledger ) - List accounts from a ledger
168167* [ listLogs] ( docs/sdks/sdkv1/README.md#listlogs ) - List the logs from a ledger
169168* [ listTransactions] ( docs/sdks/sdkv1/README.md#listtransactions ) - List transactions from a ledger
170169* [ readStats] ( docs/sdks/sdkv1/README.md#readstats ) - Get statistics from a ledger
@@ -228,12 +227,12 @@ if ($response->getVersionsResponse !== null) {
228227* [ getInstance] ( docs/sdks/sdkorchestrationv1/README.md#getinstance ) - Get a workflow instance by id
229228* [ getInstanceHistory] ( docs/sdks/sdkorchestrationv1/README.md#getinstancehistory ) - Get a workflow instance history by id
230229* [ getInstanceStageHistory] ( docs/sdks/sdkorchestrationv1/README.md#getinstancestagehistory ) - Get a workflow instance stage history
230+ * [ getServerInfoOrchestration] ( docs/sdks/sdkorchestrationv1/README.md#getserverinfoorchestration ) - Get server info
231231* [ getWorkflow] ( docs/sdks/sdkorchestrationv1/README.md#getworkflow ) - Get a flow by id
232232* [ listInstances] ( docs/sdks/sdkorchestrationv1/README.md#listinstances ) - List instances of a workflow
233233* [ listTriggers] ( docs/sdks/sdkorchestrationv1/README.md#listtriggers ) - List triggers
234234* [ listTriggersOccurrences] ( docs/sdks/sdkorchestrationv1/README.md#listtriggersoccurrences ) - List triggers occurrences
235235* [ listWorkflows] ( docs/sdks/sdkorchestrationv1/README.md#listworkflows ) - List registered workflows
236- * [ orchestrationgetServerInfo] ( docs/sdks/sdkorchestrationv1/README.md#orchestrationgetserverinfo ) - Get server info
237236* [ readTrigger] ( docs/sdks/sdkorchestrationv1/README.md#readtrigger ) - Read trigger
238237* [ runWorkflow] ( docs/sdks/sdkorchestrationv1/README.md#runworkflow ) - Run workflow
239238* [ sendEvent] ( docs/sdks/sdkorchestrationv1/README.md#sendevent ) - Send an event to a running workflow
@@ -272,15 +271,18 @@ if ($response->getVersionsResponse !== null) {
272271* [ deleteTransferInitiation] ( docs/sdks/sdkpaymentsv1/README.md#deletetransferinitiation ) - Delete a transfer initiation
273272* [ forwardBankAccount] ( docs/sdks/sdkpaymentsv1/README.md#forwardbankaccount ) - Forward a bank account to a connector
274273* [ getAccountBalances] ( docs/sdks/sdkpaymentsv1/README.md#getaccountbalances ) - Get account balances
274+ * [ getAccountPayments] ( docs/sdks/sdkpaymentsv1/README.md#getaccountpayments ) - Get an account
275275* [ getBankAccount] ( docs/sdks/sdkpaymentsv1/README.md#getbankaccount ) - Get a bank account created by user on Formance
276276* [ ~~ getConnectorTask~~ ] ( docs/sdks/sdkpaymentsv1/README.md#getconnectortask ) - Read a specific task of the connector :warning : ** Deprecated**
277277* [ getConnectorTaskV1] ( docs/sdks/sdkpaymentsv1/README.md#getconnectortaskv1 ) - Read a specific task of the connector
278278* [ getPayment] ( docs/sdks/sdkpaymentsv1/README.md#getpayment ) - Get a payment
279279* [ getPool] ( docs/sdks/sdkpaymentsv1/README.md#getpool ) - Get a Pool
280280* [ getPoolBalances] ( docs/sdks/sdkpaymentsv1/README.md#getpoolbalances ) - Get historical pool balances at a particular point in time
281281* [ getPoolBalancesLatest] ( docs/sdks/sdkpaymentsv1/README.md#getpoolbalanceslatest ) - Get latest pool balances
282+ * [ getServerInfoPayments] ( docs/sdks/sdkpaymentsv1/README.md#getserverinfopayments ) - Get server info
282283* [ getTransferInitiation] ( docs/sdks/sdkpaymentsv1/README.md#gettransferinitiation ) - Get a transfer initiation
283284* [ installConnector] ( docs/sdks/sdkpaymentsv1/README.md#installconnector ) - Install a connector
285+ * [ listAccountsPayments] ( docs/sdks/sdkpaymentsv1/README.md#listaccountspayments ) - List accounts
284286* [ listAllConnectors] ( docs/sdks/sdkpaymentsv1/README.md#listallconnectors ) - List all installed connectors
285287* [ listBankAccounts] ( docs/sdks/sdkpaymentsv1/README.md#listbankaccounts ) - List bank accounts created by user on Formance
286288* [ listConfigsAvailableConnectors] ( docs/sdks/sdkpaymentsv1/README.md#listconfigsavailableconnectors ) - List the configs of each available connector
@@ -289,9 +291,6 @@ if ($response->getVersionsResponse !== null) {
289291* [ listPayments] ( docs/sdks/sdkpaymentsv1/README.md#listpayments ) - List payments
290292* [ listPools] ( docs/sdks/sdkpaymentsv1/README.md#listpools ) - List Pools
291293* [ listTransferInitiations] ( docs/sdks/sdkpaymentsv1/README.md#listtransferinitiations ) - List Transfer Initiations
292- * [ paymentsgetAccount] ( docs/sdks/sdkpaymentsv1/README.md#paymentsgetaccount ) - Get an account
293- * [ paymentsgetServerInfo] ( docs/sdks/sdkpaymentsv1/README.md#paymentsgetserverinfo ) - Get server info
294- * [ paymentslistAccounts] ( docs/sdks/sdkpaymentsv1/README.md#paymentslistaccounts ) - List accounts
295294* [ ~~ readConnectorConfig~~ ] ( docs/sdks/sdkpaymentsv1/README.md#readconnectorconfig ) - Read the config of a connector :warning : ** Deprecated**
296295* [ readConnectorConfigV1] ( docs/sdks/sdkpaymentsv1/README.md#readconnectorconfigv1 ) - Read the config of a connector
297296* [ removeAccountFromPool] ( docs/sdks/sdkpaymentsv1/README.md#removeaccountfrompool ) - Remove an account from a pool
@@ -379,15 +378,15 @@ Allows to check if users used the link and completed the oauth flow.
379378* [ deletePolicy] ( docs/sdks/sdkreconciliationv1/README.md#deletepolicy ) - Delete a policy
380379* [ getPolicy] ( docs/sdks/sdkreconciliationv1/README.md#getpolicy ) - Get a policy
381380* [ getReconciliation] ( docs/sdks/sdkreconciliationv1/README.md#getreconciliation ) - Get a reconciliation
381+ * [ getServerInfoReconciliation] ( docs/sdks/sdkreconciliationv1/README.md#getserverinforeconciliation ) - Get server info
382382* [ listPolicies] ( docs/sdks/sdkreconciliationv1/README.md#listpolicies ) - List policies
383383* [ listReconciliations] ( docs/sdks/sdkreconciliationv1/README.md#listreconciliations ) - List reconciliations
384384* [ reconcile] ( docs/sdks/sdkreconciliationv1/README.md#reconcile ) - Reconcile using a policy
385- * [ reconciliationgetServerInfo] ( docs/sdks/sdkreconciliationv1/README.md#reconciliationgetserverinfo ) - Get server info
386385
387386### [ ~~ Search.V1~~ ] ( docs/sdks/sdksearchv1/README.md )
388387
388+ * [ ~~ getServerInfoSearch~~ ] ( docs/sdks/sdksearchv1/README.md#getserverinfosearch ) - Get server info :warning : ** Deprecated**
389389* [ ~~ search~~ ] ( docs/sdks/sdksearchv1/README.md#search ) - search.v1 :warning : ** Deprecated**
390- * [ ~~ searchgetServerInfo~~ ] ( docs/sdks/sdksearchv1/README.md#searchgetserverinfo ) - Get server info :warning : ** Deprecated**
391390
392391### [ Wallets.V1] ( docs/sdks/sdkwalletsv1/README.md )
393392
@@ -399,14 +398,14 @@ Allows to check if users used the link and completed the oauth flow.
399398* [ getBalance] ( docs/sdks/sdkwalletsv1/README.md#getbalance ) - Get detailed balance
400399* [ getHold] ( docs/sdks/sdkwalletsv1/README.md#gethold ) - Get a hold
401400* [ getHolds] ( docs/sdks/sdkwalletsv1/README.md#getholds ) - Get all holds for a wallet
401+ * [ getServerInfoWallets] ( docs/sdks/sdkwalletsv1/README.md#getserverinfowallets ) - Get server info
402402* [ getTransactions] ( docs/sdks/sdkwalletsv1/README.md#gettransactions )
403403* [ getWallet] ( docs/sdks/sdkwalletsv1/README.md#getwallet ) - Get a wallet
404404* [ getWalletSummary] ( docs/sdks/sdkwalletsv1/README.md#getwalletsummary ) - Get wallet summary
405405* [ listBalances] ( docs/sdks/sdkwalletsv1/README.md#listbalances ) - List balances of a wallet
406406* [ listWallets] ( docs/sdks/sdkwalletsv1/README.md#listwallets ) - List all wallets
407407* [ updateWallet] ( docs/sdks/sdkwalletsv1/README.md#updatewallet ) - Update a wallet
408408* [ voidHold] ( docs/sdks/sdkwalletsv1/README.md#voidhold ) - Cancel a hold
409- * [ walletsgetServerInfo] ( docs/sdks/sdkwalletsv1/README.md#walletsgetserverinfo ) - Get server info
410409
411410### [ Webhooks.V1] ( docs/sdks/sdkwebhooksv1/README.md )
412411
@@ -438,10 +437,10 @@ By default an API error will raise a `Errors\SDKException` exception, which has
438437
439438When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective * Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the ` getInfo ` method throws the following exceptions:
440439
441- | Error Type | Status Code | Content Type |
442- | ---------------------- | ----------- | ---------------- |
443- | Errors\V2ErrorResponse | default | application/json |
444- | Errors\SDKException | 4XX, 5XX | \* /\* |
440+ | Error Type | Status Code | Content Type |
441+ | -------------------------------------------------- | ----------- | ---------------- |
442+ | \formance\stack\Models\Ledger\V2ErrorResponseError | default | application/json |
443+ | Errors\SDKException | 4XX, 5XX | \* /\* |
445444
446445### Example
447446
@@ -451,7 +450,6 @@ declare(strict_types=1);
451450require 'vendor/autoload.php';
452451
453452use formance\stack;
454- use formance\stack\Models\Errors;
455453use formance\stack\Models\Shared;
456454
457455$sdk = stack\SDK::builder()
@@ -468,10 +466,10 @@ try {
468466
469467 );
470468
471- if ($response->v2ConfigInfoResponse !== null) {
469+ if ($response->v2ConfigInfo !== null) {
472470 // handle response
473471 }
474- } catch (Errors\V2ErrorResponseThrowable $e) {
472+ } catch (\formance\stack\Models\Ledger\V2ErrorResponseErrorThrowable $e) {
475473 // handle $e->$container data
476474 throw $e;
477475} catch (Errors\SDKException $e) {
@@ -481,77 +479,6 @@ try {
481479```
482480<!-- End Error Handling [errors] -->
483481
484- <!-- Start Server Selection [server] -->
485- ## Server Selection
486-
487- ### Select Server by Index
488-
489- You can override the default server globally using the ` setServerIndex(int $serverIdx) ` builder method 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:
490-
491- | # | Server | Variables | Description |
492- | --- | ----------------------------------------------------- | -------------------------------- | ------------------------------------------ |
493- | 0 | ` http://localhost ` | | local server |
494- | 1 | ` https://{organization}.{environment}.formance.cloud ` | ` environment ` <br />` organization ` | A per-organization and per-environment API |
495-
496- If the selected server has variables, you may override its default values using the associated builder method(s):
497-
498- | Variable | BuilderMethod | Supported Values | Default | Description |
499- | -------------- | ----------------------------------------------------- | -------------------------------------------------------- | ----------------- | ------------------------------------------------------------- |
500- | ` environment ` | ` setEnvironment(stack\ServerEnvironment environment) ` | - ` "eu.sandbox" ` <br />- ` "eu-west-1" ` <br />- ` "us-east-1" ` | ` "eu.sandbox" ` | The environment name. Defaults to the production environment. |
501- | ` organization ` | ` setOrganization(string organization) ` | string | ` "orgID-stackID" ` | The organization name. Defaults to a generic organization. |
502-
503- #### Example
504-
505- ``` php
506- declare(strict_types=1);
507-
508- require 'vendor/autoload.php';
509-
510- use formance\stack;
511-
512- $sdk = stack\SDK::builder()
513- ->setServerIndex(1)
514- ->setEnvironment('us-east-1')
515- ->setOrganization('orgID-stackID')
516- ->build();
517-
518-
519-
520- $response = $sdk->getVersions(
521-
522- );
523-
524- if ($response->getVersionsResponse !== null) {
525- // handle response
526- }
527- ```
528-
529- ### Override Server URL Per-Client
530-
531- The default server can also be overridden globally using the ` setServerUrl(string $serverUrl) ` builder method when initializing the SDK client instance. For example:
532- ``` php
533- declare(strict_types=1);
534-
535- require 'vendor/autoload.php';
536-
537- use formance\stack;
538-
539- $sdk = stack\SDK::builder()
540- ->setServerURL('https://orgID-stackID.eu.sandbox.formance.cloud')
541- ->build();
542-
543-
544-
545- $response = $sdk->getVersions(
546-
547- );
548-
549- if ($response->getVersionsResponse !== null) {
550- // handle response
551- }
552- ```
553- <!-- End Server Selection [server] -->
554-
555482<!-- Placeholder for Future Speakeasy SDK Sections -->
556483
557484# Development
0 commit comments