Skip to content

Commit

Permalink
release(sdk): v2.0.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
NumaryBot committed Feb 5, 2024
1 parent cd72e49 commit 16be59c
Show file tree
Hide file tree
Showing 19 changed files with 424 additions and 12 deletions.
17 changes: 12 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: edc2b505-907f-48cf-8eaf-f84ad81ac592
id: 2287823e-f7ab-4121-950f-2215b11c6542
management:
docChecksum: 7dfe7c153410dab21130617af7d17ee2
docVersion: v2.0.0-rc.2
docChecksum: 25f7693c65559e6fd8db6433caadba98
docVersion: v2.0.0-rc.3
speakeasyVersion: internal
generationVersion: 2.237.2
releaseVersion: v2.0.0-rc.2
configChecksum: dc92b71f7ca59241894a554e0f481f75
releaseVersion: v2.0.0-rc.3
configChecksum: 6396749c22a1f59ca1814888c1bb27e9
features:
typescript:
constsAndDefaults: 0.1.1
Expand Down Expand Up @@ -142,6 +142,7 @@ generatedFiles:
- src/sdk/models/operations/createtransferinitiation.ts
- src/sdk/models/operations/deletepool.ts
- src/sdk/models/operations/deletetransferinitiation.ts
- src/sdk/models/operations/forwardbankaccount.ts
- src/sdk/models/operations/getaccountbalances.ts
- src/sdk/models/operations/getbankaccount.ts
- src/sdk/models/operations/getconnectortask.ts
Expand Down Expand Up @@ -435,6 +436,7 @@ generatedFiles:
- src/sdk/models/shared/transferrequest.ts
- src/sdk/models/shared/bankaccountresponse.ts
- src/sdk/models/shared/bankaccount.ts
- src/sdk/models/shared/bankaccountadjustment.ts
- src/sdk/models/shared/bankaccountrequest.ts
- src/sdk/models/shared/paymentresponse.ts
- src/sdk/models/shared/payment.ts
Expand All @@ -452,6 +454,7 @@ generatedFiles:
- src/sdk/models/shared/transferinitiationpayments.ts
- src/sdk/models/shared/transferinitiationadjusments.ts
- src/sdk/models/shared/transferinitiationrequest.ts
- src/sdk/models/shared/forwardbankaccountrequest.ts
- src/sdk/models/shared/balancescursor.ts
- src/sdk/models/shared/accountbalance.ts
- src/sdk/models/shared/taskresponse.ts
Expand Down Expand Up @@ -702,6 +705,8 @@ generatedFiles:
- docs/sdk/models/operations/deletepoolresponse.md
- docs/sdk/models/operations/deletetransferinitiationrequest.md
- docs/sdk/models/operations/deletetransferinitiationresponse.md
- docs/sdk/models/operations/forwardbankaccountrequest.md
- docs/sdk/models/operations/forwardbankaccountresponse.md
- docs/sdk/models/operations/getaccountbalancesrequest.md
- docs/sdk/models/operations/getaccountbalancesresponse.md
- docs/sdk/models/operations/getbankaccountrequest.md
Expand Down Expand Up @@ -1094,6 +1099,7 @@ generatedFiles:
- docs/sdk/models/shared/transferrequest.md
- docs/sdk/models/shared/bankaccountresponse.md
- docs/sdk/models/shared/bankaccount.md
- docs/sdk/models/shared/bankaccountadjustment.md
- docs/sdk/models/shared/bankaccountrequest.md
- docs/sdk/models/shared/paymentresponse.md
- docs/sdk/models/shared/raw.md
Expand All @@ -1115,6 +1121,7 @@ generatedFiles:
- docs/sdk/models/shared/transferinitiationadjusments.md
- docs/sdk/models/shared/transferinitiationrequesttype.md
- docs/sdk/models/shared/transferinitiationrequest.md
- docs/sdk/models/shared/forwardbankaccountrequest.md
- docs/sdk/models/shared/balancescursorcursor.md
- docs/sdk/models/shared/balancescursor.md
- docs/sdk/models/shared/accountbalance.md
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ run();
* [createTransferInitiation](docs/sdks/payments/README.md#createtransferinitiation) - Create a TransferInitiation
* [deletePool](docs/sdks/payments/README.md#deletepool) - Delete a Pool
* [deleteTransferInitiation](docs/sdks/payments/README.md#deletetransferinitiation) - Delete a transfer initiation
* [forwardBankAccount](docs/sdks/payments/README.md#forwardbankaccount) - Forward a bank account to a connector
* [getAccountBalances](docs/sdks/payments/README.md#getaccountbalances) - Get account balances
* [getBankAccount](docs/sdks/payments/README.md#getbankaccount) - Get a bank account created by user on Formance
* [~~getConnectorTask~~](docs/sdks/payments/README.md#getconnectortask) - Read a specific task of the connector :warning: **Deprecated**
Expand Down
9 changes: 9 additions & 0 deletions docs/sdk/models/operations/forwardbankaccountrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ForwardBankAccountRequest


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| `forwardBankAccountRequest` | [shared.ForwardBankAccountRequest](../../../sdk/models/shared/forwardbankaccountrequest.md) | :heavy_check_mark: | N/A |
| `bankAccountId` | *string* | :heavy_check_mark: | The bank account ID. |
11 changes: 11 additions & 0 deletions docs/sdk/models/operations/forwardbankaccountresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ForwardBankAccountResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| `bankAccountResponse` | [shared.BankAccountResponse](../../../sdk/models/shared/bankaccountresponse.md) | :heavy_minus_sign: | OK |
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
1 change: 1 addition & 0 deletions docs/sdk/models/shared/bankaccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `accountID` | *string* | :heavy_minus_sign: | N/A |
| `accountNumber` | *string* | :heavy_minus_sign: | N/A |
| `adjustments` | [shared.BankAccountAdjustment](../../../sdk/models/shared/bankaccountadjustment.md)[] | :heavy_minus_sign: | N/A |
| `connectorID` | *string* | :heavy_check_mark: | N/A |
| `country` | *string* | :heavy_check_mark: | N/A |
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
Expand Down
12 changes: 12 additions & 0 deletions docs/sdk/models/shared/bankaccountadjustment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# BankAccountAdjustment


## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `accountID` | *string* | :heavy_check_mark: | N/A |
| `connectorID` | *string* | :heavy_check_mark: | N/A |
| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_check_mark: | N/A |
| `id` | *string* | :heavy_check_mark: | N/A |
| `provider` | *string* | :heavy_check_mark: | N/A |
8 changes: 8 additions & 0 deletions docs/sdk/models/shared/forwardbankaccountrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ForwardBankAccountRequest


## Fields

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `connectorID` | *string* | :heavy_check_mark: | N/A |
47 changes: 47 additions & 0 deletions docs/sdks/payments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* [createTransferInitiation](#createtransferinitiation) - Create a TransferInitiation
* [deletePool](#deletepool) - Delete a Pool
* [deleteTransferInitiation](#deletetransferinitiation) - Delete a transfer initiation
* [forwardBankAccount](#forwardbankaccount) - Forward a bank account to a connector
* [getAccountBalances](#getaccountbalances) - Get account balances
* [getBankAccount](#getbankaccount) - Get a bank account created by user on Formance
* [~~getConnectorTask~~](#getconnectortask) - Read a specific task of the connector :warning: **Deprecated**
Expand Down Expand Up @@ -426,6 +427,52 @@ run();
| --------------- | --------------- | --------------- |
| errors.SDKError | 4xx-5xx | */* |

## forwardBankAccount

Forward a bank account to a connector

### Example Usage

```typescript
import { SDK } from "@formance/formance-sdk";

async function run() {
const sdk = new SDK({
authorization: "Bearer <YOUR_ACCESS_TOKEN_HERE>",
});

const result = await sdk.payments.forwardBankAccount({
forwardBankAccountRequest: {
connectorID: "string",
},
bankAccountId: "string",
});

// Handle the result
console.log(result)
}

run();
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `request` | [operations.ForwardBankAccountRequest](../../sdk/models/operations/forwardbankaccountrequest.md) | :heavy_check_mark: | The request object to use for the request. |
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |


### Response

**Promise<[operations.ForwardBankAccountResponse](../../sdk/models/operations/forwardbankaccountresponse.md)>**
### Errors

| Error Object | Status Code | Content Type |
| --------------- | --------------- | --------------- |
| errors.SDKError | 4xx-5xx | */* |

## getAccountBalances

Get account balances
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ generation:
comments: {}
telemetryEnabled: false
typescript:
version: v2.0.0-rc.2
version: v2.0.0-rc.3
author: Formance
clientServerStatusCodesAsErrors: false
flattenGlobalSecurity: true
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "commonjs",
"name": "@formance/formance-sdk",
"version": "v2.0.0-rc.2",
"version": "v2.0.0-rc.3",
"author": "Formance",
"main": "./index.js",
"sideEffects": false,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function serverURLFromOptions(options: SDKOptions): URL {

export const SDK_METADATA = Object.freeze({
language: "typescript",
openapiDocVersion: "v2.0.0-rc.2",
sdkVersion: "v2.0.0-rc.2",
openapiDocVersion: "v2.0.0-rc.3",
sdkVersion: "v2.0.0-rc.3",
genVersion: "2.237.2",
userAgent: "speakeasy-sdk/typescript v2.0.0-rc.2 2.237.2 v2.0.0-rc.2 @formance/formance-sdk",
userAgent: "speakeasy-sdk/typescript v2.0.0-rc.3 2.237.2 v2.0.0-rc.3 @formance/formance-sdk",
});
Loading

0 comments on commit 16be59c

Please sign in to comment.