From 8d009a6ce7089bde01c0a3b4b2f71677fd7542bd Mon Sep 17 00:00:00 2001 From: Github Actions Bot Date: Wed, 23 Oct 2024 20:40:46 +0000 Subject: [PATCH] feat: sync SDK to OpenAPI doc v2.13.0 --- OPENAPI_VERSION | 2 +- sdk.json | 421 ++++++++++++++- src/generated/.openapi-generator/FILES | 8 + src/generated/api.ts | 1 + src/generated/apis/cubixapi.ts | 510 ++++++++++++++++++ src/generated/apis/payouts-api.ts | 16 +- src/generated/index.ts | 3 + ...usiness-account-payout-destination-type.ts | 3 +- .../models/business-destination-request.ts | 1 + .../create-business-cubix-account-response.ts | 25 + .../cubix-fiat-account-creation-request.ts | 27 + .../models/cubix-fiat-account-response.ts | 64 +++ src/generated/models/cubix-instruction.ts | 27 + .../get-business-cubix-account-response.ts | 25 + src/generated/models/index.ts | 7 + ...ess-cubix-account-instructions-response.ts | 25 + .../list-business-cubix-accounts-response.ts | 25 + .../models/pix-fiat-account-response.ts | 9 + 18 files changed, 1166 insertions(+), 33 deletions(-) create mode 100644 src/generated/apis/cubixapi.ts create mode 100644 src/generated/models/create-business-cubix-account-response.ts create mode 100644 src/generated/models/cubix-fiat-account-creation-request.ts create mode 100644 src/generated/models/cubix-fiat-account-response.ts create mode 100644 src/generated/models/cubix-instruction.ts create mode 100644 src/generated/models/get-business-cubix-account-response.ts create mode 100644 src/generated/models/list-business-cubix-account-instructions-response.ts create mode 100644 src/generated/models/list-business-cubix-accounts-response.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d8b6989..fb2c076 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -2.12.0 +2.13.0 diff --git a/sdk.json b/sdk.json index b8c276b..1b01b33 100644 --- a/sdk.json +++ b/sdk.json @@ -6,7 +6,7 @@ } ], "info": { - "version": "2.12.0", + "version": "2.13.0", "title": "All Circle APIs", "description": "Circle's General, Core Functionality, Payments, Payouts, Accounts, and Crypto Payments APIs bundled into one OpenAPI Specification." }, @@ -83,6 +83,10 @@ "name": "CBIT", "description": "Create and get information on CBIT accounts." }, + { + "name": "CUBIX", + "description": "Create and get information on CUBIX accounts." + }, { "name": "PIX", "description": "Create and get information on PIX accounts." @@ -1084,9 +1088,11 @@ "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "wire": { + "currencies": ["USD", "EUR"] + }, + "rtgs": { + "currencies": ["USD"] } }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", @@ -1164,9 +1170,11 @@ "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "wire": { + "currencies": ["USD", "EUR"] + }, + "rtgs": { + "currencies": ["USD"] } }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", @@ -1245,9 +1253,11 @@ "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "wire": { + "currencies": ["USD", "EUR"] + }, + "rtgs": { + "currencies": ["USD"] } }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", @@ -1406,9 +1416,8 @@ "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "cbit": { + "currencies": ["USD"] } }, "createDate": "2020-04-10T02:13:30.000Z", @@ -1468,9 +1477,8 @@ "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "cbit": { + "currencies": ["USD"] } }, "createDate": "2020-04-10T02:13:30.000Z", @@ -1531,9 +1539,8 @@ "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", "transferTypesInfo": { - "currencies": ["USD"], - "additionalProperties": { - "transactionLimits": 100000 + "cbit": { + "currencies": ["USD"] } }, "createDate": "2020-04-10T02:13:30.000Z", @@ -1610,6 +1617,253 @@ } } }, + "/v1/businessAccount/banks/cubix": { + "post": { + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Create a CUBIX bank account", + "operationId": "createBusinessCubixAccount", + "tags": ["CUBIX"], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CubixFiatAccountCreationRequest" + } + } + } + }, + "responses": { + "201": { + "description": "Successfully created a bank account for CUBIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "CreateBusinessCubixAccountResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CubixFiatAccountResponse" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "trackingRef": "CIR25XSXT8", + "accountId": "ff2212d7-8476-4d1e-9d95-eda6455f4f54", + "transferTypesInfo": { + "cubix": { + "currencies": ["USD"] + } + }, + "createDate": "2020-04-10T02:13:30.000Z", + "updateDate": "2020-04-10T02:13:30.000Z" + } + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + } + } + }, + "get": { + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "List all CUBIX bank accounts.", + "operationId": "listBusinessCubixAccounts", + "tags": ["CUBIX"], + "responses": { + "200": { + "description": "Successfully retrieved all bank accounts for CUBIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "ListBusinessCubixAccountsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CubixFiatAccountResponse" + } + } + } + }, + "examples": { + "response": { + "value": { + "data": [ + { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "trackingRef": "CIR25XSXT8", + "accountId": "ff2212d7-8476-4d1e-9d95-eda6455f4f54", + "transferTypesInfo": { + "cubix": { + "currencies": ["USD"] + } + }, + "createDate": "2020-04-10T02:13:30.000Z", + "updateDate": "2020-04-10T02:13:30.000Z" + } + ] + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + } + } + } + }, + "/v1/businessAccount/banks/cubix/{id}": { + "get": { + "parameters": [ + { + "$ref": "#/components/parameters/IdPath" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Get a CUBIX bank account", + "operationId": "getBusinessCubixAccount", + "tags": ["CUBIX"], + "responses": { + "200": { + "description": "Successfully retrieved a bank account for CUBIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "GetBusinessCubixAccountResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CubixFiatAccountResponse" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "trackingRef": "CIR25XSXT8", + "accountId": "ff2212d7-8476-4d1e-9d95-eda6455f4f54", + "transferTypesInfo": { + "cubix": { + "currencies": ["USD"] + } + }, + "createDate": "2020-04-10T02:13:30.000Z", + "updateDate": "2020-04-10T02:13:30.000Z" + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + }, + "404": { + "$ref": "#/components/responses/NotFound" + } + } + } + }, + "/v1/businessAccount/banks/cubix/{id}/instructions": { + "get": { + "parameters": [ + { + "$ref": "#/components/parameters/IdPath" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Get CUBIX instructions", + "description": "Get the CUBIX transfer instructions into the Circle bank account given your fiat account id.", + "operationId": "getBusinessCubixAccountInstructions", + "tags": ["CUBIX"], + "responses": { + "200": { + "description": "Successfully retrieved CUBIX transfer instructions for the fiat account.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "ListBusinessCubixAccountInstructionsResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CubixInstruction" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "trackingRef": "CIR25XSXT8", + "accountId": "ff2212d7-8476-4d1e-9d95-eda6455f4f54" + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + }, + "404": { + "$ref": "#/components/responses/NotFound" + } + } + } + }, "/v1/businessAccount/banks/pix": { "post": { "security": [ @@ -1655,6 +1909,11 @@ "status": "pending", "description": "BTG Pactual ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "pix": { + "currencies": ["BRL"] + } + }, "riskEvaluation": { "decision": "approved", "reason": "3000" @@ -1716,6 +1975,11 @@ "status": "pending", "description": "BTG Pactual ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "pix": { + "currencies": ["BRL"] + } + }, "riskEvaluation": { "decision": "approved", "reason": "3000" @@ -1778,6 +2042,11 @@ "status": "pending", "description": "BTG Pactual ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "pix": { + "currencies": ["BRL"] + } + }, "riskEvaluation": { "decision": "approved", "reason": "3000" @@ -4776,7 +5045,7 @@ "required": false, "schema": { "type": "string", - "enum": ["wire", "cbit"] + "enum": ["wire", "cbit", "cubix"] } }, { @@ -8552,6 +8821,14 @@ "description": "A map which shows transfer types supported on this account as well as additional information for each.", "additionalProperties": { "$ref": "#/components/schemas/TransferTypeInfo" + }, + "example": { + "wire": { + "currencies": ["USD", "EUR"] + }, + "rtgs": { + "currencies": ["USD"] + } } }, "fingerprint": { @@ -8883,6 +9160,11 @@ "description": "A map which shows transfer types supported on this account as well as additional information for each. For CBIT accounts this will always only show information for CBIT transfers.", "additionalProperties": { "$ref": "#/components/schemas/TransferTypeInfo" + }, + "example": { + "cbit": { + "currencies": ["USD"] + } } }, "createDate": { @@ -8922,6 +9204,86 @@ } } }, + "CubixFiatAccountResponse": { + "type": "object", + "required": [ + "id", + "status", + "trackingRef", + "accountId", + "createDate", + "updateDate", + "transferTypesInfo" + ], + "properties": { + "id": { + "$ref": "#/components/schemas/Id" + }, + "status": { + "$ref": "#/components/schemas/ExternalFiatAccountStatus" + }, + "trackingRef": { + "type": "string", + "description": "Tracking ref that needs to be set in the public description field when you send the funds to Circle's CUBIX account.", + "example": "CIR25XSXT8" + }, + "accountId": { + "type": "string", + "format": "uuid", + "description": "Your CUBIX Account ID.", + "example": "ff2212d7-8476-4d1e-9d95-eda6455f4f54" + }, + "transferTypesInfo": { + "type": "object", + "description": "A map which shows transfer types supported on this account as well as additional information for each. For CUBIX accounts this will always only show information for CUBIX transfers.", + "additionalProperties": { + "$ref": "#/components/schemas/TransferTypeInfo" + }, + "example": { + "cubix": { + "currencies": ["USD"] + } + } + }, + "createDate": { + "$ref": "#/components/schemas/UtcTimestamp" + }, + "updateDate": { + "$ref": "#/components/schemas/UtcTimestamp" + } + } + }, + "CubixFiatAccountCreationRequest": { + "type": "object", + "required": ["idempotencyKey", "accountId"], + "properties": { + "idempotencyKey": { + "$ref": "#/components/schemas/IdempotencyKey" + }, + "accountId": { + "type": "string", + "format": "uuid", + "description": "Cubix Account ID.", + "example": "ff2212d7-8476-4d1e-9d95-eda6455f4f54" + } + } + }, + "CubixInstruction": { + "type": "object", + "properties": { + "trackingRef": { + "type": "string", + "description": "Circle tracking reference that needs to be set in the CUBIX public memo field.", + "example": "CIR25XSXT8" + }, + "accountId": { + "type": "string", + "format": "uuid", + "description": "Circle account ID that needs to be set in the CUBIX account ID field.", + "example": "ff2212d7-8476-4d1e-9d95-eda6455f4f54" + } + } + }, "PixFiatAccountResponse": { "type": "object", "required": [ @@ -8931,7 +9293,8 @@ "trackingRef", "fingerprint", "createDate", - "updateDate" + "updateDate", + "transferTypesInfo" ], "properties": { "id": { @@ -8950,6 +9313,18 @@ "description": "Wire tracking ref that needs to be set in the wire reference to beneficiary field.", "example": "CIR13FB13A" }, + "transferTypesInfo": { + "type": "object", + "description": "A map which shows transfer types supported on this account as well as additional information for each. For PIX accounts this will always only show information for PIX transfers.", + "additionalProperties": { + "$ref": "#/components/schemas/TransferTypeInfo" + }, + "example": { + "pix": { + "currencies": ["BRL"] + } + } + }, "riskEvaluation": { "$ref": "#/components/schemas/RiskEvaluation" }, @@ -10940,7 +11315,7 @@ "BusinessAccountPayoutDestinationType": { "type": "string", "description": "The destination bank account type.", - "enum": ["wire", "cbit"] + "enum": ["wire", "cbit", "cubix"] }, "BankDestination": { "type": "object", @@ -11104,7 +11479,7 @@ "properties": { "type": { "type": "string", - "enum": ["wire", "cbit", "pix", "sepa", "sepa_instant"] + "enum": ["wire", "cbit", "cubix", "pix", "sepa", "sepa_instant"] }, "id": { "$ref": "#/components/schemas/Id" diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index 931dd4f..3804887 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -9,6 +9,7 @@ apis/checkout-sessions-api.ts apis/crypto-address-book-api.ts apis/crypto-exchange-rates-api.ts apis/crypto-payment-intents-api.ts +apis/cubixapi.ts apis/deposits-api.ts apis/encryption-api.ts apis/health-api.ts @@ -84,6 +85,7 @@ models/continuous-payment-intent-creation-request.ts models/continuous-payment-intent.ts models/create-address-book-recipient-response.ts models/create-business-cbit-account-response.ts +models/create-business-cubix-account-response.ts models/create-business-deposit-address-response.ts models/create-business-payout-response.ts models/create-business-pix-account-response.ts @@ -123,6 +125,9 @@ models/crypto-refund-creation-request-amount.ts models/crypto-refund-creation-request-to-amount.ts models/crypto-refund-creation-request.ts models/crypto-refund-destination.ts +models/cubix-fiat-account-creation-request.ts +models/cubix-fiat-account-response.ts +models/cubix-instruction.ts models/currency.ts models/cvv-results.ts models/delete-subscription-response.ts @@ -155,6 +160,7 @@ models/generate-address-request.ts models/generate-address-response.ts models/get-address-book-recipient-response.ts models/get-business-cbit-account-response.ts +models/get-business-cubix-account-response.ts models/get-business-deposit-address-response.ts models/get-business-payout-response.ts models/get-business-pix-account-response.ts @@ -187,6 +193,8 @@ models/list-burn-fee-calculations-response.ts models/list-business-balances-response.ts models/list-business-cbit-account-instructions-response.ts models/list-business-cbit-accounts-response.ts +models/list-business-cubix-account-instructions-response.ts +models/list-business-cubix-accounts-response.ts models/list-business-deposits-response.ts models/list-business-payouts-response.ts models/list-business-pix-accounts-response.ts diff --git a/src/generated/api.ts b/src/generated/api.ts index 3620fb5..6cedf5b 100644 --- a/src/generated/api.ts +++ b/src/generated/api.ts @@ -9,6 +9,7 @@ export * from "./apis/addresses-api"; export * from "./apis/balances-api"; export * from "./apis/cbitapi"; +export * from "./apis/cubixapi"; export * from "./apis/cards-api"; export * from "./apis/channels-api"; export * from "./apis/chargebacks-api"; diff --git a/src/generated/apis/cubixapi.ts b/src/generated/apis/cubixapi.ts new file mode 100644 index 0000000..2461341 --- /dev/null +++ b/src/generated/apis/cubixapi.ts @@ -0,0 +1,510 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import globalAxios, { + AxiosPromise, + AxiosInstance, + AxiosRequestConfig +} from "axios"; +import { Configuration } from "../configuration"; +// Some imports not used depending on template conditions +// @ts-ignore +import { + DUMMY_BASE_URL, + assertParamExists, + setBearerAuthToObject, + setSearchParams, + serializeDataIfNeeded, + toPathString, + createRequestFunction +} from "../common"; +// @ts-ignore +import { + BASE_PATH, + COLLECTION_FORMATS, + RequestArgs, + BaseAPI, + RequiredError +} from "../base"; +// @ts-ignore +import { BadRequest } from "../models"; +// @ts-ignore +import { CreateBusinessCubixAccountResponse } from "../models"; +// @ts-ignore +import { CubixFiatAccountCreationRequest } from "../models"; +// @ts-ignore +import { GetBusinessCubixAccountResponse } from "../models"; +// @ts-ignore +import { ListBusinessCubixAccountInstructionsResponse } from "../models"; +// @ts-ignore +import { ListBusinessCubixAccountsResponse } from "../models"; +// @ts-ignore +import { NotAuthorized } from "../models"; +// @ts-ignore +import { NotFound } from "../models"; +/** + * CUBIXApi - axios parameter creator + * @export + */ +export const CUBIXApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Create a CUBIX bank account + * @param {CubixFiatAccountCreationRequest} [cubixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createBusinessCubixAccount: async ( + cubixFiatAccountCreationRequest?: CubixFiatAccountCreationRequest, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/v1/businessAccount/banks/cubix`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "POST", + ...baseOptions, + ...options + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers + }; + localVarRequestOptions.data = serializeDataIfNeeded( + cubixFiatAccountCreationRequest, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, + /** + * + * @summary Get a CUBIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessCubixAccount: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getBusinessCubixAccount", "id", id); + const localVarPath = `/v1/businessAccount/banks/cubix/{id}`.replace( + `{${"id"}}`, + encodeURIComponent(String(id)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, + /** + * Get the CUBIX transfer instructions into the Circle bank account given your fiat account id. + * @summary Get CUBIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessCubixAccountInstructions: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getBusinessCubixAccountInstructions", "id", id); + const localVarPath = + `/v1/businessAccount/banks/cubix/{id}/instructions`.replace( + `{${"id"}}`, + encodeURIComponent(String(id)) + ); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, + /** + * + * @summary List all CUBIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBusinessCubixAccounts: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/v1/businessAccount/banks/cubix`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { + method: "GET", + ...baseOptions, + ...options + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication bearerAuth required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration); + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers + }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + } + }; +}; + +/** + * CUBIXApi - functional programming interface + * @export + */ +export const CUBIXApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = CUBIXApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Create a CUBIX bank account + * @param {CubixFiatAccountCreationRequest} [cubixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createBusinessCubixAccount( + cubixFiatAccountCreationRequest?: CubixFiatAccountCreationRequest, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.createBusinessCubixAccount( + cubixFiatAccountCreationRequest, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a CUBIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBusinessCubixAccount( + id: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getBusinessCubixAccount(id, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Get the CUBIX transfer instructions into the Circle bank account given your fiat account id. + * @summary Get CUBIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBusinessCubixAccountInstructions( + id: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getBusinessCubixAccountInstructions( + id, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List all CUBIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listBusinessCubixAccounts( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.listBusinessCubixAccounts(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + } + }; +}; + +/** + * CUBIXApi - factory interface + * @export + */ +export const CUBIXApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = CUBIXApiFp(configuration); + return { + /** + * + * @summary Create a CUBIX bank account + * @param {CubixFiatAccountCreationRequest} [cubixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createBusinessCubixAccount( + cubixFiatAccountCreationRequest?: CubixFiatAccountCreationRequest, + options?: any + ): AxiosPromise { + return localVarFp + .createBusinessCubixAccount(cubixFiatAccountCreationRequest, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a CUBIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessCubixAccount( + id: string, + options?: any + ): AxiosPromise { + return localVarFp + .getBusinessCubixAccount(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get the CUBIX transfer instructions into the Circle bank account given your fiat account id. + * @summary Get CUBIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessCubixAccountInstructions( + id: string, + options?: any + ): AxiosPromise { + return localVarFp + .getBusinessCubixAccountInstructions(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List all CUBIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBusinessCubixAccounts( + options?: any + ): AxiosPromise { + return localVarFp + .listBusinessCubixAccounts(options) + .then((request) => request(axios, basePath)); + } + }; +}; + +/** + * CUBIXApi - object-oriented interface + * @export + * @class CUBIXApi + * @extends {BaseAPI} + */ +export class CUBIXApi extends BaseAPI { + /** + * + * @summary Create a CUBIX bank account + * @param {CubixFiatAccountCreationRequest} [cubixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CUBIXApi + */ + public createBusinessCubixAccount( + cubixFiatAccountCreationRequest?: CubixFiatAccountCreationRequest, + options?: AxiosRequestConfig + ) { + return CUBIXApiFp(this.configuration) + .createBusinessCubixAccount(cubixFiatAccountCreationRequest, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a CUBIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CUBIXApi + */ + public getBusinessCubixAccount(id: string, options?: AxiosRequestConfig) { + return CUBIXApiFp(this.configuration) + .getBusinessCubixAccount(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the CUBIX transfer instructions into the Circle bank account given your fiat account id. + * @summary Get CUBIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CUBIXApi + */ + public getBusinessCubixAccountInstructions( + id: string, + options?: AxiosRequestConfig + ) { + return CUBIXApiFp(this.configuration) + .getBusinessCubixAccountInstructions(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List all CUBIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CUBIXApi + */ + public listBusinessCubixAccounts(options?: AxiosRequestConfig) { + return CUBIXApiFp(this.configuration) + .listBusinessCubixAccounts(options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/generated/apis/payouts-api.ts b/src/generated/apis/payouts-api.ts index 304bc43..d0eefe8 100644 --- a/src/generated/apis/payouts-api.ts +++ b/src/generated/apis/payouts-api.ts @@ -275,7 +275,7 @@ export const PayoutsApiAxiosParamCreator = function ( * * @summary List all payouts * @param {string} [destination] Universally unique identifier (UUID v4) for the destination bank account. Filters the results to fetch all payouts made to a destination bank account. - * @param {'wire' | 'cbit'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. + * @param {'wire' | 'cbit' | 'cubix'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. * @param {Set} [status] Queries items with the specified status. Matches any status if unspecified. * @param {string} [from] Queries items created since the specified date-time (inclusive). * @param {string} [to] Queries items created before the specified date-time (inclusive). @@ -287,7 +287,7 @@ export const PayoutsApiAxiosParamCreator = function ( */ listBusinessPayouts: async ( destination?: string, - type?: "wire" | "cbit", + type?: "wire" | "cbit" | "cubix", status?: Set, from?: string, to?: string, @@ -713,7 +713,7 @@ export const PayoutsApiFp = function (configuration?: Configuration) { * * @summary List all payouts * @param {string} [destination] Universally unique identifier (UUID v4) for the destination bank account. Filters the results to fetch all payouts made to a destination bank account. - * @param {'wire' | 'cbit'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. + * @param {'wire' | 'cbit' | 'cubix'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. * @param {Set} [status] Queries items with the specified status. Matches any status if unspecified. * @param {string} [from] Queries items created since the specified date-time (inclusive). * @param {string} [to] Queries items created before the specified date-time (inclusive). @@ -725,7 +725,7 @@ export const PayoutsApiFp = function (configuration?: Configuration) { */ async listBusinessPayouts( destination?: string, - type?: "wire" | "cbit", + type?: "wire" | "cbit" | "cubix", status?: Set, from?: string, to?: string, @@ -963,7 +963,7 @@ export const PayoutsApiFactory = function ( * * @summary List all payouts * @param {string} [destination] Universally unique identifier (UUID v4) for the destination bank account. Filters the results to fetch all payouts made to a destination bank account. - * @param {'wire' | 'cbit'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. + * @param {'wire' | 'cbit' | 'cubix'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. * @param {Set} [status] Queries items with the specified status. Matches any status if unspecified. * @param {string} [from] Queries items created since the specified date-time (inclusive). * @param {string} [to] Queries items created before the specified date-time (inclusive). @@ -975,7 +975,7 @@ export const PayoutsApiFactory = function ( */ listBusinessPayouts( destination?: string, - type?: "wire" | "cbit", + type?: "wire" | "cbit" | "cubix", status?: Set, from?: string, to?: string, @@ -1185,7 +1185,7 @@ export class PayoutsApi extends BaseAPI { * * @summary List all payouts * @param {string} [destination] Universally unique identifier (UUID v4) for the destination bank account. Filters the results to fetch all payouts made to a destination bank account. - * @param {'wire' | 'cbit'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. + * @param {'wire' | 'cbit' | 'cubix'} [type] Destination bank account type. Filters the results to fetch all payouts made to a specified destination bank account type. This query parameter can be passed multiple times to fetch results matching multiple destination bank account types. * @param {Set} [status] Queries items with the specified status. Matches any status if unspecified. * @param {string} [from] Queries items created since the specified date-time (inclusive). * @param {string} [to] Queries items created before the specified date-time (inclusive). @@ -1198,7 +1198,7 @@ export class PayoutsApi extends BaseAPI { */ public listBusinessPayouts( destination?: string, - type?: "wire" | "cbit", + type?: "wire" | "cbit" | "cubix", status?: Set, from?: string, to?: string, diff --git a/src/generated/index.ts b/src/generated/index.ts index 479c749..f3c549c 100644 --- a/src/generated/index.ts +++ b/src/generated/index.ts @@ -10,6 +10,7 @@ import { AddressesApi, BalancesApi, CBITApi, + CUBIXApi, CardsApi, ChannelsApi, ChargebacksApi, @@ -41,6 +42,7 @@ export class Circle { public addresses: AddressesApi; public balances: BalancesApi; public cbit: CBITApi; + public cubix: CUBIXApi; public cards: CardsApi; public channels: ChannelsApi; public chargebacks: ChargebacksApi; @@ -69,6 +71,7 @@ export class Circle { this.addresses = new AddressesApi(configuration); this.balances = new BalancesApi(configuration); this.cbit = new CBITApi(configuration); + this.cubix = new CUBIXApi(configuration); this.cards = new CardsApi(configuration); this.channels = new ChannelsApi(configuration); this.chargebacks = new ChargebacksApi(configuration); diff --git a/src/generated/models/business-account-payout-destination-type.ts b/src/generated/models/business-account-payout-destination-type.ts index 5689f61..b106711 100644 --- a/src/generated/models/business-account-payout-destination-type.ts +++ b/src/generated/models/business-account-payout-destination-type.ts @@ -14,7 +14,8 @@ export const BusinessAccountPayoutDestinationType = { Wire: "wire", - Cbit: "cbit" + Cbit: "cbit", + Cubix: "cubix" } as const; export type BusinessAccountPayoutDestinationType = diff --git a/src/generated/models/business-destination-request.ts b/src/generated/models/business-destination-request.ts index 5258876..4c8c26c 100644 --- a/src/generated/models/business-destination-request.ts +++ b/src/generated/models/business-destination-request.ts @@ -29,6 +29,7 @@ export interface BusinessDestinationRequest { export const BusinessDestinationRequestTypeEnum = { Wire: "wire", Cbit: "cbit", + Cubix: "cubix", Pix: "pix", Sepa: "sepa", SepaInstant: "sepa_instant" diff --git a/src/generated/models/create-business-cubix-account-response.ts b/src/generated/models/create-business-cubix-account-response.ts new file mode 100644 index 0000000..49f3cf6 --- /dev/null +++ b/src/generated/models/create-business-cubix-account-response.ts @@ -0,0 +1,25 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +// May contain unused imports in some cases +// @ts-ignore +import { CubixFiatAccountResponse } from "./cubix-fiat-account-response"; + +/** + * + * @export + * @interface CreateBusinessCubixAccountResponse + */ +export interface CreateBusinessCubixAccountResponse { + /** + * + * @type {CubixFiatAccountResponse} + * @memberof CreateBusinessCubixAccountResponse + */ + data?: CubixFiatAccountResponse; +} diff --git a/src/generated/models/cubix-fiat-account-creation-request.ts b/src/generated/models/cubix-fiat-account-creation-request.ts new file mode 100644 index 0000000..2b96c91 --- /dev/null +++ b/src/generated/models/cubix-fiat-account-creation-request.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * + * @export + * @interface CubixFiatAccountCreationRequest + */ +export interface CubixFiatAccountCreationRequest { + /** + * Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. + * @type {string} + * @memberof CubixFiatAccountCreationRequest + */ + idempotencyKey: string; + /** + * Cubix Account ID. + * @type {string} + * @memberof CubixFiatAccountCreationRequest + */ + accountId: string; +} diff --git a/src/generated/models/cubix-fiat-account-response.ts b/src/generated/models/cubix-fiat-account-response.ts new file mode 100644 index 0000000..0fd54e0 --- /dev/null +++ b/src/generated/models/cubix-fiat-account-response.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +// May contain unused imports in some cases +// @ts-ignore +import { ExternalFiatAccountStatus } from "./external-fiat-account-status"; +// May contain unused imports in some cases +// @ts-ignore +import { TransferTypeInfo } from "./transfer-type-info"; + +/** + * + * @export + * @interface CubixFiatAccountResponse + */ +export interface CubixFiatAccountResponse { + /** + * Unique system generated identifier for the entity. + * @type {string} + * @memberof CubixFiatAccountResponse + */ + id: string; + /** + * + * @type {ExternalFiatAccountStatus} + * @memberof CubixFiatAccountResponse + */ + status: ExternalFiatAccountStatus; + /** + * Tracking ref that needs to be set in the public description field when you send the funds to Circle\'s CUBIX account. + * @type {string} + * @memberof CubixFiatAccountResponse + */ + trackingRef: string; + /** + * Your CUBIX Account ID. + * @type {string} + * @memberof CubixFiatAccountResponse + */ + accountId: string; + /** + * A map which shows transfer types supported on this account as well as additional information for each. For CUBIX accounts this will always only show information for CUBIX transfers. + * @type {{ [key: string]: TransferTypeInfo; }} + * @memberof CubixFiatAccountResponse + */ + transferTypesInfo: { [key: string]: TransferTypeInfo }; + /** + * ISO-8601 UTC date/time format. + * @type {string} + * @memberof CubixFiatAccountResponse + */ + createDate: string; + /** + * ISO-8601 UTC date/time format. + * @type {string} + * @memberof CubixFiatAccountResponse + */ + updateDate: string; +} diff --git a/src/generated/models/cubix-instruction.ts b/src/generated/models/cubix-instruction.ts new file mode 100644 index 0000000..57ce3c8 --- /dev/null +++ b/src/generated/models/cubix-instruction.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +/** + * + * @export + * @interface CubixInstruction + */ +export interface CubixInstruction { + /** + * Circle tracking reference that needs to be set in the CUBIX public memo field. + * @type {string} + * @memberof CubixInstruction + */ + trackingRef?: string; + /** + * Circle account ID that needs to be set in the CUBIX account ID field. + * @type {string} + * @memberof CubixInstruction + */ + accountId?: string; +} diff --git a/src/generated/models/get-business-cubix-account-response.ts b/src/generated/models/get-business-cubix-account-response.ts new file mode 100644 index 0000000..3e1671d --- /dev/null +++ b/src/generated/models/get-business-cubix-account-response.ts @@ -0,0 +1,25 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +// May contain unused imports in some cases +// @ts-ignore +import { CubixFiatAccountResponse } from "./cubix-fiat-account-response"; + +/** + * + * @export + * @interface GetBusinessCubixAccountResponse + */ +export interface GetBusinessCubixAccountResponse { + /** + * + * @type {CubixFiatAccountResponse} + * @memberof GetBusinessCubixAccountResponse + */ + data?: CubixFiatAccountResponse; +} diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts index 4a52b91..32d01fd 100644 --- a/src/generated/models/index.ts +++ b/src/generated/models/index.ts @@ -54,6 +54,7 @@ export * from "./continuous-payment-intent"; export * from "./continuous-payment-intent-creation-request"; export * from "./create-address-book-recipient-response"; export * from "./create-business-cbit-account-response"; +export * from "./create-business-cubix-account-response"; export * from "./create-business-deposit-address-response"; export * from "./create-business-payout-response"; export * from "./create-business-pix-account-response"; @@ -93,6 +94,9 @@ export * from "./crypto-refund-creation-request"; export * from "./crypto-refund-creation-request-amount"; export * from "./crypto-refund-creation-request-to-amount"; export * from "./crypto-refund-destination"; +export * from "./cubix-fiat-account-creation-request"; +export * from "./cubix-fiat-account-response"; +export * from "./cubix-instruction"; export * from "./currency"; export * from "./cvv-results"; export * from "./delete-subscription-response"; @@ -125,6 +129,7 @@ export * from "./generate-address-request"; export * from "./generate-address-response"; export * from "./get-address-book-recipient-response"; export * from "./get-business-cbit-account-response"; +export * from "./get-business-cubix-account-response"; export * from "./get-business-deposit-address-response"; export * from "./get-business-payout-response"; export * from "./get-business-pix-account-response"; @@ -156,6 +161,8 @@ export * from "./list-burn-fee-calculations-response"; export * from "./list-business-balances-response"; export * from "./list-business-cbit-account-instructions-response"; export * from "./list-business-cbit-accounts-response"; +export * from "./list-business-cubix-account-instructions-response"; +export * from "./list-business-cubix-accounts-response"; export * from "./list-business-deposits-response"; export * from "./list-business-payouts-response"; export * from "./list-business-pix-accounts-response"; diff --git a/src/generated/models/list-business-cubix-account-instructions-response.ts b/src/generated/models/list-business-cubix-account-instructions-response.ts new file mode 100644 index 0000000..25bf9ca --- /dev/null +++ b/src/generated/models/list-business-cubix-account-instructions-response.ts @@ -0,0 +1,25 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +// May contain unused imports in some cases +// @ts-ignore +import { CubixInstruction } from "./cubix-instruction"; + +/** + * + * @export + * @interface ListBusinessCubixAccountInstructionsResponse + */ +export interface ListBusinessCubixAccountInstructionsResponse { + /** + * + * @type {CubixInstruction} + * @memberof ListBusinessCubixAccountInstructionsResponse + */ + data?: CubixInstruction; +} diff --git a/src/generated/models/list-business-cubix-accounts-response.ts b/src/generated/models/list-business-cubix-accounts-response.ts new file mode 100644 index 0000000..749429f --- /dev/null +++ b/src/generated/models/list-business-cubix-accounts-response.ts @@ -0,0 +1,25 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +// May contain unused imports in some cases +// @ts-ignore +import { CubixFiatAccountResponse } from "./cubix-fiat-account-response"; + +/** + * + * @export + * @interface ListBusinessCubixAccountsResponse + */ +export interface ListBusinessCubixAccountsResponse { + /** + * + * @type {Array} + * @memberof ListBusinessCubixAccountsResponse + */ + data?: Array; +} diff --git a/src/generated/models/pix-fiat-account-response.ts b/src/generated/models/pix-fiat-account-response.ts index c347580..b0684fc 100644 --- a/src/generated/models/pix-fiat-account-response.ts +++ b/src/generated/models/pix-fiat-account-response.ts @@ -12,6 +12,9 @@ import { ExternalFiatAccountStatus } from "./external-fiat-account-status"; // May contain unused imports in some cases // @ts-ignore import { RiskEvaluation } from "./risk-evaluation"; +// May contain unused imports in some cases +// @ts-ignore +import { TransferTypeInfo } from "./transfer-type-info"; /** * @@ -43,6 +46,12 @@ export interface PixFiatAccountResponse { * @memberof PixFiatAccountResponse */ trackingRef: string; + /** + * A map which shows transfer types supported on this account as well as additional information for each. For PIX accounts this will always only show information for PIX transfers. + * @type {{ [key: string]: TransferTypeInfo; }} + * @memberof PixFiatAccountResponse + */ + transferTypesInfo: { [key: string]: TransferTypeInfo }; /** * * @type {RiskEvaluation}