diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c8e38b6..6ceb272 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -2.9.0 +2.11.1 diff --git a/sdk.json b/sdk.json index a673ca1..d66111c 100644 --- a/sdk.json +++ b/sdk.json @@ -6,7 +6,7 @@ } ], "info": { - "version": "2.9.0", + "version": "2.11.1", "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": "PIX", + "description": "Create and get information on PIX accounts." + }, { "name": "Stablecoins", "description": "Retrieve stablecoins and their respective names, symbols, circulating total and per-chain amounts." @@ -1079,6 +1083,12 @@ "status": "pending", "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", "billingDetails": { "name": "Satoshi Nakamoto", @@ -1153,6 +1163,12 @@ "status": "pending", "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", "billingDetails": { "name": "Satoshi Nakamoto", @@ -1228,6 +1244,12 @@ "status": "pending", "description": "WELLS FARGO BANK, NA ****0010", "trackingRef": "CIR13FB13A", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", "billingDetails": { "name": "Satoshi Nakamoto", @@ -1383,6 +1405,12 @@ "status": "pending", "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "createDate": "2020-04-10T02:13:30.000Z", "updateDate": "2020-04-10T02:13:30.000Z" } @@ -1439,6 +1467,12 @@ "status": "pending", "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "createDate": "2020-04-10T02:13:30.000Z", "updateDate": "2020-04-10T02:13:30.000Z" } @@ -1496,6 +1530,12 @@ "status": "pending", "trackingRef": "CIR25XSXT8", "walletAddress": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e", + "transferTypesInfo": { + "currencies": ["USD"], + "additionalProperties": { + "transactionLimits": 100000 + } + }, "createDate": "2020-04-10T02:13:30.000Z", "updateDate": "2020-04-10T02:13:30.000Z" } @@ -1570,6 +1610,258 @@ } } }, + "/v1/businessAccount/banks/pix": { + "post": { + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Create a PIX bank account", + "operationId": "createBusinessPixAccount", + "tags": ["PIX"], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PixFiatAccountCreationRequest" + } + } + } + }, + "responses": { + "201": { + "description": "Successfully created a bank account for PIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "CreateBusinessPixAccountResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PixFiatAccountResponse" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "description": "BTG Pactual ****0010", + "trackingRef": "CIR13FB13A", + "riskEvaluation": { + "decision": "approved", + "reason": "3000" + }, + "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", + "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 PIX bank accounts.", + "operationId": "listBusinessPixAccounts", + "tags": ["PIX"], + "responses": { + "200": { + "description": "Successfully retrieved all bank accounts for PIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "ListBusinessPixAccountsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PixFiatAccountResponse" + } + } + } + }, + "examples": { + "response": { + "value": { + "data": [ + { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "description": "BTG Pactual ****0010", + "trackingRef": "CIR13FB13A", + "riskEvaluation": { + "decision": "approved", + "reason": "3000" + }, + "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", + "createDate": "2020-04-10T02:13:30.000Z", + "updateDate": "2020-04-10T02:13:30.000Z" + } + ] + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + } + } + } + }, + "/v1/businessAccount/banks/pix/{id}": { + "get": { + "parameters": [ + { + "$ref": "#/components/parameters/IdPath" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Get a PIX bank account", + "operationId": "getBusinessPixAccount", + "tags": ["PIX"], + "responses": { + "200": { + "description": "Successfully retrieved a bank account for PIX transfers.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "GetBusinessPixAccountResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PixFiatAccountResponse" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "id": "b8627ae8-732b-4d25-b947-1df8f4007a29", + "status": "pending", + "description": "BTG Pactual ****0010", + "trackingRef": "CIR13FB13A", + "riskEvaluation": { + "decision": "approved", + "reason": "3000" + }, + "fingerprint": "eb170539-9e1c-4e92-bf4f-1d09534fdca2", + "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/pix/{id}/instructions": { + "get": { + "parameters": [ + { + "$ref": "#/components/parameters/IdPath" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Get PIX instructions", + "description": "Get the PIX transfer instructions into the Circle bank account given your bank account id.", + "operationId": "getBusinessPixAccountInstructions", + "tags": ["PIX"], + "responses": { + "200": { + "description": "Successfully retrieved PIX transfer instructions for the bank account.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "BusinessPixAccountInstructionsResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PixInstruction" + } + } + }, + "examples": { + "response": { + "value": { + "data": { + "trackingRef": "CIR25XSXT8", + "ispb": "68033222", + "branchCode": "123", + "accountNumber": "322286803", + "accountType": "checking", + "taxId": "57112345675712", + "name": "CIRCLE INTERNET FINANCIAL INC" + } + } + } + } + } + } + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + }, + "404": { + "$ref": "#/components/responses/NotFound" + } + } + } + }, "/v1/businessAccount/wallets/addresses/deposit": { "post": { "security": [ @@ -4364,6 +4656,7 @@ } ], "summary": "Create a payout", + "description": "\nCreate a payout. \n\nThe following table includes the supported pairs of amount.currency and toAmount.currency for FX payouts:\n\n| amount.currency | toAmount.currency |\n| ---------------- | ------------ |\n | USD | BRL |\n", "operationId": "createBusinessPayout", "tags": ["Payouts"], "requestBody": { @@ -4408,6 +4701,10 @@ "amount": "3.14", "currency": "USD" }, + "toAmount": { + "amount": "3.14", + "currency": "USD" + }, "fees": { "amount": "3.14", "currency": "USD" @@ -4551,6 +4848,10 @@ "amount": "3.14", "currency": "USD" }, + "toAmount": { + "amount": "3.14", + "currency": "USD" + }, "fees": { "amount": "3.14", "currency": "USD" @@ -4652,6 +4953,10 @@ "amount": "3.14", "currency": "USD" }, + "toAmount": { + "amount": "3.14", + "currency": "USD" + }, "fees": { "amount": "3.14", "currency": "USD" @@ -5439,6 +5744,144 @@ } } }, + "/v1/exchange/quotes": { + "post": { + "security": [ + { + "bearerAuth": [] + } + ], + "summary": "Fetch exchange rate", + "operationId": "exchangeRate", + "description": "Fetches an indicative exchange rate between two currencies. Either the from currency or to currency must be USD.\n\nNote: The current market exchange rate will be applied when Circle receives the deposit.\n", + "tags": ["Payments"], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExchangeRateRequest" + }, + "examples": { + "Null amounts": { + "value": { + "from": { + "currency": "MXN" + }, + "to": { + "currency": "USD" + } + } + }, + "Non-null from amount": { + "value": { + "from": { + "amount": 5.05, + "currency": "MXN" + }, + "to": { + "currency": "USD" + } + } + }, + "Non-null to amount": { + "value": { + "from": { + "currency": "MXN" + }, + "to": { + "amount": 5.05, + "currency": "USD" + } + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Successfully fetched exchange rate.", + "headers": { + "X-Request-Id": { + "$ref": "#/components/headers/XRequestId" + } + }, + "content": { + "application/json": { + "schema": { + "title": "FetchExchangeRateResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/ExchangeRateResponse" + } + } + }, + "examples": { + "Null amounts": { + "value": { + "data": { + "id": "8755d0ea-14f9-4259-b092-de23c14b6568", + "rate": 17.0531, + "from": { + "currency": "MXN" + }, + "to": { + "currency": "USD" + }, + "timestamp": "2022-07-21T20:13:35.578678Z" + } + } + }, + "Non-null from amount": { + "value": { + "data": { + "id": "8755d0ea-14f9-4259-b092-de23c14b6568", + "rate": 17.0531, + "from": { + "amount": 5.05, + "currency": "MXN" + }, + "to": { + "amount": 0.29, + "currency": "USD" + }, + "timestamp": "2022-07-21T20:13:35.578678Z" + } + } + }, + "Non-null to amount": { + "value": { + "data": { + "id": "8755d0ea-14f9-4259-b092-de23c14b6568", + "rate": 17.0531, + "from": { + "amount": 96.12, + "currency": "MXN" + }, + "to": { + "amount": 5.05, + "currency": "USD" + }, + "timestamp": "2022-07-21T20:13:35.578678Z" + } + } + } + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/NotAuthorized" + }, + "404": { + "$ref": "#/components/responses/NotFound" + } + } + } + }, "/v1/wallets": { "post": { "security": [ @@ -7898,6 +8341,37 @@ } } }, + "FiatCurrency": { + "type": "string", + "description": "Currency code.", + "title": "Currency", + "enum": ["USD", "EUR", "MXN", "SGD", "BRL"] + }, + "TransferTypeInfo": { + "type": "object", + "required": ["currencies"], + "description": "Additional information for specific transfer type.", + "properties": { + "currencies": { + "type": "array", + "uniqueItems": true, + "items": { + "$ref": "#/components/schemas/FiatCurrency" + } + }, + "additionalProperties": { + "description": "Additional properties that apply to specific transfer type.", + "type": "object", + "properties": { + "transactionLimits": { + "type": "integer", + "description": "Transaction amount limit for the transfer type.", + "example": 100000 + } + } + } + } + }, "BankAddress": { "type": "object", "description": "The address details for the bank, as provided during bank account creation.", @@ -7951,7 +8425,8 @@ "fingerprint", "billingDetails", "createDate", - "updateDate" + "updateDate", + "transferTypesInfo" ], "properties": { "id": { @@ -7970,6 +8445,13 @@ "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.", + "additionalProperties": { + "$ref": "#/components/schemas/TransferTypeInfo" + } + }, "fingerprint": { "$ref": "#/components/schemas/Fingerprint" }, @@ -8274,7 +8756,8 @@ "trackingRef", "walletAddress", "createDate", - "updateDate" + "updateDate", + "transferTypesInfo" ], "properties": { "id": { @@ -8293,6 +8776,13 @@ "description": "Your CBIT wallet address.", "example": "0x7d8da35e03ef3a5ec5d5edbb961ef399dfb42d1e" }, + "transferTypesInfo": { + "type": "object", + "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" + } + }, "createDate": { "$ref": "#/components/schemas/UtcTimestamp" }, @@ -8330,6 +8820,137 @@ } } }, + "PixFiatAccountResponse": { + "type": "object", + "required": [ + "id", + "status", + "description", + "trackingRef", + "fingerprint", + "createDate", + "updateDate" + ], + "properties": { + "id": { + "$ref": "#/components/schemas/Id" + }, + "status": { + "$ref": "#/components/schemas/ExternalFiatAccountStatus" + }, + "description": { + "type": "string", + "description": "Bank name plus last four digits of the PIX account number.", + "example": "BTG Pactual ****0010" + }, + "trackingRef": { + "type": "string", + "description": "Wire tracking ref that needs to be set in the wire reference to beneficiary field.", + "example": "CIR13FB13A" + }, + "riskEvaluation": { + "$ref": "#/components/schemas/RiskEvaluation" + }, + "fingerprint": { + "$ref": "#/components/schemas/Fingerprint" + }, + "createDate": { + "$ref": "#/components/schemas/UtcTimestamp" + }, + "updateDate": { + "$ref": "#/components/schemas/UtcTimestamp" + } + } + }, + "PixAccountType": { + "type": "string", + "title": "Account type", + "description": "Beneficiary account type.", + "enum": ["checking", "savings", "salary", "prepaid"], + "example": "checking" + }, + "PixFiatAccountCreationRequest": { + "type": "object", + "required": [ + "idempotencyKey", + "name", + "accountNumber", + "ispb", + "taxId", + "accountType" + ], + "properties": { + "idempotencyKey": { + "$ref": "#/components/schemas/IdempotencyKey" + }, + "name": { + "type": "string", + "description": "Name of the beneficiary.", + "example": "CIRCLE INTERNET FINANCIAL INC" + }, + "accountNumber": { + "type": "string", + "description": "Beneficiary account number.", + "example": "322286803" + }, + "ispb": { + "type": "string", + "description": "Beneficiary ISPB.", + "example": "68033222" + }, + "branchCode": { + "type": "string", + "description": "Beneficiary account branch code.", + "example": "123" + }, + "taxId": { + "type": "string", + "description": "Beneficiary Tax ID.", + "example": "57112345675712" + }, + "accountType": { + "$ref": "#/components/schemas/PixAccountType" + } + } + }, + "PixInstruction": { + "type": "object", + "properties": { + "trackingRef": { + "type": "string", + "description": "Circle tracking reference that needs to be set in the PIX reference field.", + "example": "CIR25XSXT8" + }, + "ispb": { + "type": "string", + "description": "ISPB of beneficiary's bank.", + "example": "68033222" + }, + "branchCode": { + "type": "string", + "description": "Beneficiary account branch code.", + "example": "123" + }, + "accountNumber": { + "type": "string", + "description": "Beneficiary account number.", + "example": "322286803" + }, + "accountType": { + "$ref": "#/components/schemas/PixAccountType" + }, + "taxId": { + "type": "string", + "description": "Beneficiary Tax ID.", + "example": "57112345675712" + }, + "name": { + "type": "string", + "description": "Name of the beneficiary.", + "example": "CIRCLE INTERNET FINANCIAL INC" + } + } + }, "Address": { "type": "string", "description": "An alphanumeric string representing a blockchain address. Will be in different formats for different chains. It is important to preserve the exact formatting and capitalization of the address.", @@ -8461,9 +9082,7 @@ "example": "3.14" }, "currency": { - "description": "Currency code.", - "type": "string", - "enum": ["USD", "EUR"] + "$ref": "#/components/schemas/FiatCurrency" } } }, @@ -10238,6 +10857,21 @@ } } }, + "FiatPayoutToMoney": { + "type": "object", + "required": ["currency"], + "properties": { + "amount": { + "description": "Magnitude of the amount, in units of the currency, with a `.`.", + "type": "string", + "example": "3.14", + "readOnly": true + }, + "currency": { + "$ref": "#/components/schemas/FiatCurrency" + } + } + }, "PayoutErrorCode": { "type": "string", "nullable": true, @@ -10326,6 +10960,9 @@ "amount": { "$ref": "#/components/schemas/FiatMoney" }, + "toAmount": { + "$ref": "#/components/schemas/FiatPayoutToMoney" + }, "fees": { "$ref": "#/components/schemas/FiatMoneyUsd" }, @@ -10364,7 +11001,7 @@ "properties": { "type": { "type": "string", - "enum": ["wire", "cbit"] + "enum": ["wire", "cbit", "pix", "sepa", "sepa_instant"] }, "id": { "$ref": "#/components/schemas/Id" @@ -10383,6 +11020,10 @@ }, "amount": { "$ref": "#/components/schemas/FiatMoney" + }, + "toAmount": { + "description": "To be used when requesting currency exchange", + "$ref": "#/components/schemas/FiatPayoutToMoney" } } }, @@ -10754,6 +11395,66 @@ } } }, + "FiatOptionalAmountMoney": { + "type": "object", + "title": "OptionalAmountMoney", + "required": ["currency"], + "properties": { + "amount": { + "description": "Magnitude of the amount, in units of the currency, with a `.`.", + "type": "string", + "example": "3.14" + }, + "currency": { + "$ref": "#/components/schemas/FiatCurrency" + } + } + }, + "ExchangeRateRequest": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { + "allOf": [ + { + "$ref": "#/components/schemas/FiatOptionalAmountMoney" + } + ], + "description": "Amount (Optional) and currency to convert from. If an amount is provided here, then the amount in the \"to\" field must be null." + }, + "to": { + "allOf": [ + { + "$ref": "#/components/schemas/FiatOptionalAmountMoney" + } + ], + "description": "Amount (Optional) and currency to convert to. If an amount is provided here, then the amount in the \"from\" field must be null." + } + } + }, + "ExchangeRateResponse": { + "type": "object", + "required": ["id", "rate", "from", "to", "timestamp"], + "properties": { + "id": { + "$ref": "#/components/schemas/Id" + }, + "rate": { + "description": "Exchange rate", + "type": "number", + "format": "float" + }, + "from": { + "$ref": "#/components/schemas/FiatOptionalAmountMoney" + }, + "to": { + "$ref": "#/components/schemas/FiatOptionalAmountMoney" + }, + "timestamp": { + "$ref": "#/components/schemas/UtcTimestamp" + } + } + }, "Wallet": { "type": "object", "properties": { diff --git a/src/generated/.openapi-generator/FILES b/src/generated/.openapi-generator/FILES index c9854cb..89bdde4 100644 --- a/src/generated/.openapi-generator/FILES +++ b/src/generated/.openapi-generator/FILES @@ -16,6 +16,7 @@ apis/management-api.ts apis/payment-tokens-api.ts apis/payments-api.ts apis/payouts-api.ts +apis/pixapi.ts apis/pull-crypto-payments-api.ts apis/settlements-api.ts apis/stablecoins-api.ts @@ -52,6 +53,7 @@ models/business-destination-request.ts models/business-generate-address-request.ts models/business-payout-creation-request.ts models/business-payout.ts +models/business-pix-account-instructions-response.ts models/business-recipient-address-creation-request.ts models/business-recipient-address-object.ts models/business-transfer-creation-request.ts @@ -81,6 +83,7 @@ models/create-address-book-recipient-response.ts models/create-business-cbit-account-response.ts models/create-business-deposit-address-response.ts models/create-business-payout-response.ts +models/create-business-pix-account-response.ts models/create-business-recipient-address-response.ts models/create-business-transfer-response.ts models/create-business-wire-account-response.ts @@ -124,16 +127,24 @@ models/detailed-cancel.ts models/detailed-payment.ts models/detailed-refund.ts models/eci.ts +models/exchange-rate-request-from.ts +models/exchange-rate-request-to.ts +models/exchange-rate-request.ts +models/exchange-rate-response.ts models/expire-payment-intent-response.ts models/extend-checkout-session-request.ts models/extend-checkout-session-response.ts models/external-fiat-account-status.ts models/fee.ts +models/fetch-exchange-rate-response.ts models/fiat-cancel.ts +models/fiat-currency.ts models/fiat-money-usd.ts models/fiat-money.ts +models/fiat-optional-amount-money.ts models/fiat-payment-polymorphic.ts models/fiat-payment.ts +models/fiat-payout-to-money.ts models/fiat-refund.ts models/final-adjustments.ts models/forbidden.ts @@ -143,6 +154,7 @@ models/get-address-book-recipient-response.ts models/get-business-cbit-account-response.ts models/get-business-deposit-address-response.ts models/get-business-payout-response.ts +models/get-business-pix-account-response.ts models/get-business-transfer-response.ts models/get-business-wire-account-instructions-response.ts models/get-business-wire-account-response.ts @@ -173,6 +185,7 @@ models/list-business-cbit-account-instructions-response.ts models/list-business-cbit-accounts-response.ts models/list-business-deposits-response.ts models/list-business-payouts-response.ts +models/list-business-pix-accounts-response.ts models/list-business-recipient-addresses-response.ts models/list-business-transfers-response.ts models/list-business-wire-accounts-response.ts @@ -220,6 +233,10 @@ models/payout-error-code.ts models/payout-money.ts models/payout-status.ts models/ping.ts +models/pix-account-type.ts +models/pix-fiat-account-creation-request.ts +models/pix-fiat-account-response.ts +models/pix-instruction.ts models/presign-domain.ts models/presign-message-types-items.ts models/presign-message-types.ts @@ -260,6 +277,8 @@ models/transfer-request-verified-blockchain-location.ts models/transfer-source-blockchain-location.ts models/transfer-source-location.ts models/transfer-source-wallet-location.ts +models/transfer-type-info-additional-properties.ts +models/transfer-type-info.ts models/transfer.ts models/unwithdrawal-object.ts models/update-billing-details.ts diff --git a/src/generated/api.ts b/src/generated/api.ts index 1353e1b..3620fb5 100644 --- a/src/generated/api.ts +++ b/src/generated/api.ts @@ -20,6 +20,7 @@ export * from "./apis/deposits-api"; export * from "./apis/encryption-api"; export * from "./apis/health-api"; export * from "./apis/management-api"; +export * from "./apis/pixapi"; export * from "./apis/payment-tokens-api"; export * from "./apis/payments-api"; export * from "./apis/payouts-api"; diff --git a/src/generated/apis/payments-api.ts b/src/generated/apis/payments-api.ts index d0c4c17..1449a6a 100644 --- a/src/generated/apis/payments-api.ts +++ b/src/generated/apis/payments-api.ts @@ -44,6 +44,10 @@ import { CreatePaymentResponse } from "../models"; // @ts-ignore import { CreateWirePaymentResponse } from "../models"; // @ts-ignore +import { ExchangeRateRequest } from "../models"; +// @ts-ignore +import { FetchExchangeRateResponse } from "../models"; +// @ts-ignore import { GetPaymentResponse } from "../models"; // @ts-ignore import { ListPaymentsResponse } from "../models"; @@ -289,6 +293,58 @@ export const PaymentsApiAxiosParamCreator = function ( options: localVarRequestOptions }; }, + /** + * Fetches an indicative exchange rate between two currencies. Either the from currency or to currency must be USD. Note: The current market exchange rate will be applied when Circle receives the deposit. + * @summary Fetch exchange rate + * @param {ExchangeRateRequest} [exchangeRateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exchangeRate: async ( + exchangeRateRequest?: ExchangeRateRequest, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/v1/exchange/quotes`; + // 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( + exchangeRateRequest, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, /** * * @summary Get a payment @@ -625,6 +681,33 @@ export const PaymentsApiFp = function (configuration?: Configuration) { configuration ); }, + /** + * Fetches an indicative exchange rate between two currencies. Either the from currency or to currency must be USD. Note: The current market exchange rate will be applied when Circle receives the deposit. + * @summary Fetch exchange rate + * @param {ExchangeRateRequest} [exchangeRateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async exchangeRate( + exchangeRateRequest?: ExchangeRateRequest, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.exchangeRate( + exchangeRateRequest, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, /** * * @summary Get a payment @@ -814,6 +897,21 @@ export const PaymentsApiFactory = function ( .createPayment(paymentCreationRequest, options) .then((request) => request(axios, basePath)); }, + /** + * Fetches an indicative exchange rate between two currencies. Either the from currency or to currency must be USD. Note: The current market exchange rate will be applied when Circle receives the deposit. + * @summary Fetch exchange rate + * @param {ExchangeRateRequest} [exchangeRateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + exchangeRate( + exchangeRateRequest?: ExchangeRateRequest, + options?: any + ): AxiosPromise { + return localVarFp + .exchangeRate(exchangeRateRequest, options) + .then((request) => request(axios, basePath)); + }, /** * * @summary Get a payment @@ -970,6 +1068,23 @@ export class PaymentsApi extends BaseAPI { .then((request) => request(this.axios, this.basePath)); } + /** + * Fetches an indicative exchange rate between two currencies. Either the from currency or to currency must be USD. Note: The current market exchange rate will be applied when Circle receives the deposit. + * @summary Fetch exchange rate + * @param {ExchangeRateRequest} [exchangeRateRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentsApi + */ + public exchangeRate( + exchangeRateRequest?: ExchangeRateRequest, + options?: AxiosRequestConfig + ) { + return PaymentsApiFp(this.configuration) + .exchangeRate(exchangeRateRequest, options) + .then((request) => request(this.axios, this.basePath)); + } + /** * * @summary Get a payment diff --git a/src/generated/apis/payouts-api.ts b/src/generated/apis/payouts-api.ts index 1fa1ac4..f1b017d 100644 --- a/src/generated/apis/payouts-api.ts +++ b/src/generated/apis/payouts-api.ts @@ -66,7 +66,7 @@ export const PayoutsApiAxiosParamCreator = function ( ) { return { /** - * + * Create a payout. The following table includes the supported pairs of amount.currency and toAmount.currency for FX payouts: | amount.currency | toAmount.currency | | ---------------- | ------------ | | USD | BRL | * @summary Create a payout * @param {BusinessPayoutCreationRequest} [businessPayoutCreationRequest] * @param {*} [options] Override http request option. @@ -514,7 +514,7 @@ export const PayoutsApiFp = function (configuration?: Configuration) { const localVarAxiosParamCreator = PayoutsApiAxiosParamCreator(configuration); return { /** - * + * Create a payout. The following table includes the supported pairs of amount.currency and toAmount.currency for FX payouts: | amount.currency | toAmount.currency | | ---------------- | ------------ | | USD | BRL | * @summary Create a payout * @param {BusinessPayoutCreationRequest} [businessPayoutCreationRequest] * @param {*} [options] Override http request option. @@ -768,7 +768,7 @@ export const PayoutsApiFactory = function ( const localVarFp = PayoutsApiFp(configuration); return { /** - * + * Create a payout. The following table includes the supported pairs of amount.currency and toAmount.currency for FX payouts: | amount.currency | toAmount.currency | | ---------------- | ------------ | | USD | BRL | * @summary Create a payout * @param {BusinessPayoutCreationRequest} [businessPayoutCreationRequest] * @param {*} [options] Override http request option. @@ -949,7 +949,7 @@ export const PayoutsApiFactory = function ( */ export class PayoutsApi extends BaseAPI { /** - * + * Create a payout. The following table includes the supported pairs of amount.currency and toAmount.currency for FX payouts: | amount.currency | toAmount.currency | | ---------------- | ------------ | | USD | BRL | * @summary Create a payout * @param {BusinessPayoutCreationRequest} [businessPayoutCreationRequest] * @param {*} [options] Override http request option. diff --git a/src/generated/apis/pixapi.ts b/src/generated/apis/pixapi.ts new file mode 100644 index 0000000..4ebc1b4 --- /dev/null +++ b/src/generated/apis/pixapi.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 { BusinessPixAccountInstructionsResponse } from "../models"; +// @ts-ignore +import { CreateBusinessPixAccountResponse } from "../models"; +// @ts-ignore +import { GetBusinessPixAccountResponse } from "../models"; +// @ts-ignore +import { ListBusinessPixAccountsResponse } from "../models"; +// @ts-ignore +import { NotAuthorized } from "../models"; +// @ts-ignore +import { NotFound } from "../models"; +// @ts-ignore +import { PixFiatAccountCreationRequest } from "../models"; +/** + * PIXApi - axios parameter creator + * @export + */ +export const PIXApiAxiosParamCreator = function ( + configuration?: Configuration +) { + return { + /** + * + * @summary Create a PIX bank account + * @param {PixFiatAccountCreationRequest} [pixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createBusinessPixAccount: async ( + pixFiatAccountCreationRequest?: PixFiatAccountCreationRequest, + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/v1/businessAccount/banks/pix`; + // 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( + pixFiatAccountCreationRequest, + localVarRequestOptions, + configuration + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions + }; + }, + /** + * + * @summary Get a PIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessPixAccount: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getBusinessPixAccount", "id", id); + const localVarPath = `/v1/businessAccount/banks/pix/{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 PIX transfer instructions into the Circle bank account given your bank account id. + * @summary Get PIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessPixAccountInstructions: async ( + id: string, + options: AxiosRequestConfig = {} + ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists("getBusinessPixAccountInstructions", "id", id); + const localVarPath = + `/v1/businessAccount/banks/pix/{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 PIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBusinessPixAccounts: async ( + options: AxiosRequestConfig = {} + ): Promise => { + const localVarPath = `/v1/businessAccount/banks/pix`; + // 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 + }; + } + }; +}; + +/** + * PIXApi - functional programming interface + * @export + */ +export const PIXApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = PIXApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Create a PIX bank account + * @param {PixFiatAccountCreationRequest} [pixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createBusinessPixAccount( + pixFiatAccountCreationRequest?: PixFiatAccountCreationRequest, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.createBusinessPixAccount( + pixFiatAccountCreationRequest, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary Get a PIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBusinessPixAccount( + id: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getBusinessPixAccount(id, options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * Get the PIX transfer instructions into the Circle bank account given your bank account id. + * @summary Get PIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getBusinessPixAccountInstructions( + id: string, + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getBusinessPixAccountInstructions( + id, + options + ); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + }, + /** + * + * @summary List all PIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listBusinessPixAccounts( + options?: AxiosRequestConfig + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.listBusinessPixAccounts(options); + return createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration + ); + } + }; +}; + +/** + * PIXApi - factory interface + * @export + */ +export const PIXApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance +) { + const localVarFp = PIXApiFp(configuration); + return { + /** + * + * @summary Create a PIX bank account + * @param {PixFiatAccountCreationRequest} [pixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createBusinessPixAccount( + pixFiatAccountCreationRequest?: PixFiatAccountCreationRequest, + options?: any + ): AxiosPromise { + return localVarFp + .createBusinessPixAccount(pixFiatAccountCreationRequest, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary Get a PIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessPixAccount( + id: string, + options?: any + ): AxiosPromise { + return localVarFp + .getBusinessPixAccount(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * Get the PIX transfer instructions into the Circle bank account given your bank account id. + * @summary Get PIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getBusinessPixAccountInstructions( + id: string, + options?: any + ): AxiosPromise { + return localVarFp + .getBusinessPixAccountInstructions(id, options) + .then((request) => request(axios, basePath)); + }, + /** + * + * @summary List all PIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listBusinessPixAccounts( + options?: any + ): AxiosPromise { + return localVarFp + .listBusinessPixAccounts(options) + .then((request) => request(axios, basePath)); + } + }; +}; + +/** + * PIXApi - object-oriented interface + * @export + * @class PIXApi + * @extends {BaseAPI} + */ +export class PIXApi extends BaseAPI { + /** + * + * @summary Create a PIX bank account + * @param {PixFiatAccountCreationRequest} [pixFiatAccountCreationRequest] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PIXApi + */ + public createBusinessPixAccount( + pixFiatAccountCreationRequest?: PixFiatAccountCreationRequest, + options?: AxiosRequestConfig + ) { + return PIXApiFp(this.configuration) + .createBusinessPixAccount(pixFiatAccountCreationRequest, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary Get a PIX bank account + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PIXApi + */ + public getBusinessPixAccount(id: string, options?: AxiosRequestConfig) { + return PIXApiFp(this.configuration) + .getBusinessPixAccount(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * Get the PIX transfer instructions into the Circle bank account given your bank account id. + * @summary Get PIX instructions + * @param {string} id Universally unique identifier (UUID v4) of a resource. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PIXApi + */ + public getBusinessPixAccountInstructions( + id: string, + options?: AxiosRequestConfig + ) { + return PIXApiFp(this.configuration) + .getBusinessPixAccountInstructions(id, options) + .then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @summary List all PIX bank accounts. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PIXApi + */ + public listBusinessPixAccounts(options?: AxiosRequestConfig) { + return PIXApiFp(this.configuration) + .listBusinessPixAccounts(options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/generated/index.ts b/src/generated/index.ts index c0d8ca9..479c749 100644 --- a/src/generated/index.ts +++ b/src/generated/index.ts @@ -21,6 +21,7 @@ import { EncryptionApi, HealthApi, ManagementApi, + PIXApi, PaymentTokensApi, PaymentsApi, PayoutsApi, @@ -51,6 +52,7 @@ export class Circle { public encryption: EncryptionApi; public health: HealthApi; public management: ManagementApi; + public pix: PIXApi; public paymentTokens: PaymentTokensApi; public payments: PaymentsApi; public payouts: PayoutsApi; @@ -78,6 +80,7 @@ export class Circle { this.encryption = new EncryptionApi(configuration); this.health = new HealthApi(configuration); this.management = new ManagementApi(configuration); + this.pix = new PIXApi(configuration); this.paymentTokens = new PaymentTokensApi(configuration); this.payments = new PaymentsApi(configuration); this.payouts = new PayoutsApi(configuration); diff --git a/src/generated/models/business-destination-request.ts b/src/generated/models/business-destination-request.ts index 67ffefb..5258876 100644 --- a/src/generated/models/business-destination-request.ts +++ b/src/generated/models/business-destination-request.ts @@ -28,7 +28,10 @@ export interface BusinessDestinationRequest { export const BusinessDestinationRequestTypeEnum = { Wire: "wire", - Cbit: "cbit" + Cbit: "cbit", + Pix: "pix", + Sepa: "sepa", + SepaInstant: "sepa_instant" } as const; export type BusinessDestinationRequestTypeEnum = diff --git a/src/generated/models/business-payout-creation-request.ts b/src/generated/models/business-payout-creation-request.ts index 8091239..b63c33c 100644 --- a/src/generated/models/business-payout-creation-request.ts +++ b/src/generated/models/business-payout-creation-request.ts @@ -12,6 +12,9 @@ import { BusinessDestinationRequest } from "./business-destination-request"; // May contain unused imports in some cases // @ts-ignore import { FiatMoney } from "./fiat-money"; +// May contain unused imports in some cases +// @ts-ignore +import { FiatPayoutToMoney } from "./fiat-payout-to-money"; /** * @@ -37,4 +40,10 @@ export interface BusinessPayoutCreationRequest { * @memberof BusinessPayoutCreationRequest */ amount: FiatMoney; + /** + * + * @type {FiatPayoutToMoney} + * @memberof BusinessPayoutCreationRequest + */ + toAmount?: FiatPayoutToMoney; } diff --git a/src/generated/models/business-payout.ts b/src/generated/models/business-payout.ts index 7ac4058..5a61ee9 100644 --- a/src/generated/models/business-payout.ts +++ b/src/generated/models/business-payout.ts @@ -17,6 +17,9 @@ import { FiatMoney } from "./fiat-money"; import { FiatMoneyUsd } from "./fiat-money-usd"; // May contain unused imports in some cases // @ts-ignore +import { FiatPayoutToMoney } from "./fiat-payout-to-money"; +// May contain unused imports in some cases +// @ts-ignore import { FinalAdjustments } from "./final-adjustments"; // May contain unused imports in some cases // @ts-ignore @@ -61,6 +64,12 @@ export interface BusinessPayout { * @memberof BusinessPayout */ amount?: FiatMoney; + /** + * + * @type {FiatPayoutToMoney} + * @memberof BusinessPayout + */ + toAmount?: FiatPayoutToMoney; /** * * @type {FiatMoneyUsd} diff --git a/src/generated/models/business-pix-account-instructions-response.ts b/src/generated/models/business-pix-account-instructions-response.ts new file mode 100644 index 0000000..b7213fc --- /dev/null +++ b/src/generated/models/business-pix-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 { PixInstruction } from "./pix-instruction"; + +/** + * + * @export + * @interface BusinessPixAccountInstructionsResponse + */ +export interface BusinessPixAccountInstructionsResponse { + /** + * + * @type {PixInstruction} + * @memberof BusinessPixAccountInstructionsResponse + */ + data?: PixInstruction; +} diff --git a/src/generated/models/cbit-fiat-account-response.ts b/src/generated/models/cbit-fiat-account-response.ts index 3ce18ab..9fcec90 100644 --- a/src/generated/models/cbit-fiat-account-response.ts +++ b/src/generated/models/cbit-fiat-account-response.ts @@ -9,6 +9,9 @@ // 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"; /** * @@ -40,6 +43,12 @@ export interface CbitFiatAccountResponse { * @memberof CbitFiatAccountResponse */ walletAddress: string; + /** + * 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. + * @type {{ [key: string]: TransferTypeInfo; }} + * @memberof CbitFiatAccountResponse + */ + transferTypesInfo: { [key: string]: TransferTypeInfo }; /** * ISO-8601 UTC date/time format. * @type {string} diff --git a/src/generated/models/create-business-pix-account-response.ts b/src/generated/models/create-business-pix-account-response.ts new file mode 100644 index 0000000..42d11dc --- /dev/null +++ b/src/generated/models/create-business-pix-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 { PixFiatAccountResponse } from "./pix-fiat-account-response"; + +/** + * + * @export + * @interface CreateBusinessPixAccountResponse + */ +export interface CreateBusinessPixAccountResponse { + /** + * + * @type {PixFiatAccountResponse} + * @memberof CreateBusinessPixAccountResponse + */ + data?: PixFiatAccountResponse; +} diff --git a/src/generated/models/exchange-rate-request-from.ts b/src/generated/models/exchange-rate-request-from.ts new file mode 100644 index 0000000..b1febb2 --- /dev/null +++ b/src/generated/models/exchange-rate-request-from.ts @@ -0,0 +1,21 @@ +/* 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 { FiatCurrency } from "./fiat-currency"; +// May contain unused imports in some cases +// @ts-ignore +import { FiatOptionalAmountMoney } from "./fiat-optional-amount-money"; + +/** + * @type ExchangeRateRequestFrom + * Amount (Optional) and currency to convert from. If an amount is provided here, then the amount in the \"to\" field must be null. + * @export + */ +export type ExchangeRateRequestFrom = FiatOptionalAmountMoney; diff --git a/src/generated/models/exchange-rate-request-to.ts b/src/generated/models/exchange-rate-request-to.ts new file mode 100644 index 0000000..ed02a6f --- /dev/null +++ b/src/generated/models/exchange-rate-request-to.ts @@ -0,0 +1,21 @@ +/* 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 { FiatCurrency } from "./fiat-currency"; +// May contain unused imports in some cases +// @ts-ignore +import { FiatOptionalAmountMoney } from "./fiat-optional-amount-money"; + +/** + * @type ExchangeRateRequestTo + * Amount (Optional) and currency to convert to. If an amount is provided here, then the amount in the \"from\" field must be null. + * @export + */ +export type ExchangeRateRequestTo = FiatOptionalAmountMoney; diff --git a/src/generated/models/exchange-rate-request.ts b/src/generated/models/exchange-rate-request.ts new file mode 100644 index 0000000..6729914 --- /dev/null +++ b/src/generated/models/exchange-rate-request.ts @@ -0,0 +1,34 @@ +/* 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 { ExchangeRateRequestFrom } from "./exchange-rate-request-from"; +// May contain unused imports in some cases +// @ts-ignore +import { ExchangeRateRequestTo } from "./exchange-rate-request-to"; + +/** + * + * @export + * @interface ExchangeRateRequest + */ +export interface ExchangeRateRequest { + /** + * + * @type {ExchangeRateRequestFrom} + * @memberof ExchangeRateRequest + */ + from: ExchangeRateRequestFrom; + /** + * + * @type {ExchangeRateRequestTo} + * @memberof ExchangeRateRequest + */ + to: ExchangeRateRequestTo; +} diff --git a/src/generated/models/exchange-rate-response.ts b/src/generated/models/exchange-rate-response.ts new file mode 100644 index 0000000..cf7b836 --- /dev/null +++ b/src/generated/models/exchange-rate-response.ts @@ -0,0 +1,49 @@ +/* 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 { FiatOptionalAmountMoney } from "./fiat-optional-amount-money"; + +/** + * + * @export + * @interface ExchangeRateResponse + */ +export interface ExchangeRateResponse { + /** + * Unique system generated identifier for the entity. + * @type {string} + * @memberof ExchangeRateResponse + */ + id: string; + /** + * Exchange rate + * @type {number} + * @memberof ExchangeRateResponse + */ + rate: number; + /** + * + * @type {FiatOptionalAmountMoney} + * @memberof ExchangeRateResponse + */ + from: FiatOptionalAmountMoney; + /** + * + * @type {FiatOptionalAmountMoney} + * @memberof ExchangeRateResponse + */ + to: FiatOptionalAmountMoney; + /** + * ISO-8601 UTC date/time format. + * @type {string} + * @memberof ExchangeRateResponse + */ + timestamp: string; +} diff --git a/src/generated/models/fetch-exchange-rate-response.ts b/src/generated/models/fetch-exchange-rate-response.ts new file mode 100644 index 0000000..0f13208 --- /dev/null +++ b/src/generated/models/fetch-exchange-rate-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 { ExchangeRateResponse } from "./exchange-rate-response"; + +/** + * + * @export + * @interface FetchExchangeRateResponse + */ +export interface FetchExchangeRateResponse { + /** + * + * @type {ExchangeRateResponse} + * @memberof FetchExchangeRateResponse + */ + data?: ExchangeRateResponse; +} diff --git a/src/generated/models/fiat-currency.ts b/src/generated/models/fiat-currency.ts new file mode 100644 index 0000000..fb6c0c3 --- /dev/null +++ b/src/generated/models/fiat-currency.ts @@ -0,0 +1,23 @@ +/* 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. + */ + +/** + * Currency code. + * @export + * @enum {string} + */ + +export const FiatCurrency = { + Usd: "USD", + Eur: "EUR", + Mxn: "MXN", + Sgd: "SGD", + Brl: "BRL" +} as const; + +export type FiatCurrency = typeof FiatCurrency[keyof typeof FiatCurrency]; diff --git a/src/generated/models/fiat-money.ts b/src/generated/models/fiat-money.ts index cdc3298..9aad67c 100644 --- a/src/generated/models/fiat-money.ts +++ b/src/generated/models/fiat-money.ts @@ -6,6 +6,10 @@ * Do not edit the class manually. */ +// May contain unused imports in some cases +// @ts-ignore +import { FiatCurrency } from "./fiat-currency"; + /** * * @export @@ -19,17 +23,9 @@ export interface FiatMoney { */ amount: string; /** - * Currency code. - * @type {string} + * + * @type {FiatCurrency} * @memberof FiatMoney */ - currency: FiatMoneyCurrencyEnum; + currency: FiatCurrency; } - -export const FiatMoneyCurrencyEnum = { - Usd: "USD", - Eur: "EUR" -} as const; - -export type FiatMoneyCurrencyEnum = - typeof FiatMoneyCurrencyEnum[keyof typeof FiatMoneyCurrencyEnum]; diff --git a/src/generated/models/fiat-optional-amount-money.ts b/src/generated/models/fiat-optional-amount-money.ts new file mode 100644 index 0000000..62000d6 --- /dev/null +++ b/src/generated/models/fiat-optional-amount-money.ts @@ -0,0 +1,31 @@ +/* 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 { FiatCurrency } from "./fiat-currency"; + +/** + * + * @export + * @interface FiatOptionalAmountMoney + */ +export interface FiatOptionalAmountMoney { + /** + * Magnitude of the amount, in units of the currency, with a `.`. + * @type {string} + * @memberof FiatOptionalAmountMoney + */ + amount?: string; + /** + * + * @type {FiatCurrency} + * @memberof FiatOptionalAmountMoney + */ + currency: FiatCurrency; +} diff --git a/src/generated/models/fiat-payout-to-money.ts b/src/generated/models/fiat-payout-to-money.ts new file mode 100644 index 0000000..2aeecc9 --- /dev/null +++ b/src/generated/models/fiat-payout-to-money.ts @@ -0,0 +1,31 @@ +/* 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 { FiatCurrency } from "./fiat-currency"; + +/** + * + * @export + * @interface FiatPayoutToMoney + */ +export interface FiatPayoutToMoney { + /** + * Magnitude of the amount, in units of the currency, with a `.`. + * @type {string} + * @memberof FiatPayoutToMoney + */ + amount?: string; + /** + * + * @type {FiatCurrency} + * @memberof FiatPayoutToMoney + */ + currency: FiatCurrency; +} diff --git a/src/generated/models/get-business-pix-account-response.ts b/src/generated/models/get-business-pix-account-response.ts new file mode 100644 index 0000000..83164e1 --- /dev/null +++ b/src/generated/models/get-business-pix-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 { PixFiatAccountResponse } from "./pix-fiat-account-response"; + +/** + * + * @export + * @interface GetBusinessPixAccountResponse + */ +export interface GetBusinessPixAccountResponse { + /** + * + * @type {PixFiatAccountResponse} + * @memberof GetBusinessPixAccountResponse + */ + data?: PixFiatAccountResponse; +} diff --git a/src/generated/models/index.ts b/src/generated/models/index.ts index 2fd8571..5c62714 100644 --- a/src/generated/models/index.ts +++ b/src/generated/models/index.ts @@ -23,6 +23,7 @@ export * from "./business-destination-request"; export * from "./business-generate-address-request"; export * from "./business-payout"; export * from "./business-payout-creation-request"; +export * from "./business-pix-account-instructions-response"; export * from "./business-recipient-address-creation-request"; export * from "./business-recipient-address-object"; export * from "./business-transfer-creation-request"; @@ -52,6 +53,7 @@ export * from "./create-address-book-recipient-response"; export * from "./create-business-cbit-account-response"; export * from "./create-business-deposit-address-response"; export * from "./create-business-payout-response"; +export * from "./create-business-pix-account-response"; export * from "./create-business-recipient-address-response"; export * from "./create-business-transfer-response"; export * from "./create-business-wire-account-response"; @@ -95,16 +97,24 @@ export * from "./detailed-cancel"; export * from "./detailed-payment"; export * from "./detailed-refund"; export * from "./eci"; +export * from "./exchange-rate-request"; +export * from "./exchange-rate-request-from"; +export * from "./exchange-rate-request-to"; +export * from "./exchange-rate-response"; export * from "./expire-payment-intent-response"; export * from "./extend-checkout-session-request"; export * from "./extend-checkout-session-response"; export * from "./external-fiat-account-status"; export * from "./fee"; +export * from "./fetch-exchange-rate-response"; export * from "./fiat-cancel"; +export * from "./fiat-currency"; export * from "./fiat-money"; export * from "./fiat-money-usd"; +export * from "./fiat-optional-amount-money"; export * from "./fiat-payment"; export * from "./fiat-payment-polymorphic"; +export * from "./fiat-payout-to-money"; export * from "./fiat-refund"; export * from "./final-adjustments"; export * from "./forbidden"; @@ -114,6 +124,7 @@ export * from "./get-address-book-recipient-response"; export * from "./get-business-cbit-account-response"; export * from "./get-business-deposit-address-response"; export * from "./get-business-payout-response"; +export * from "./get-business-pix-account-response"; export * from "./get-business-transfer-response"; export * from "./get-business-wire-account-instructions-response"; export * from "./get-business-wire-account-response"; @@ -143,6 +154,7 @@ export * from "./list-business-cbit-account-instructions-response"; export * from "./list-business-cbit-accounts-response"; export * from "./list-business-deposits-response"; export * from "./list-business-payouts-response"; +export * from "./list-business-pix-accounts-response"; export * from "./list-business-recipient-addresses-response"; export * from "./list-business-transfers-response"; export * from "./list-business-wire-accounts-response"; @@ -190,6 +202,10 @@ export * from "./payout-error-code"; export * from "./payout-money"; export * from "./payout-status"; export * from "./ping"; +export * from "./pix-account-type"; +export * from "./pix-fiat-account-creation-request"; +export * from "./pix-fiat-account-response"; +export * from "./pix-instruction"; export * from "./presign-domain"; export * from "./presign-message"; export * from "./presign-message-types"; @@ -231,6 +247,8 @@ export * from "./transfer-request-verified-blockchain-location"; export * from "./transfer-source-blockchain-location"; export * from "./transfer-source-location"; export * from "./transfer-source-wallet-location"; +export * from "./transfer-type-info"; +export * from "./transfer-type-info-additional-properties"; export * from "./unwithdrawal-object"; export * from "./update-billing-details"; export * from "./update-card-response"; diff --git a/src/generated/models/list-business-pix-accounts-response.ts b/src/generated/models/list-business-pix-accounts-response.ts new file mode 100644 index 0000000..60384cc --- /dev/null +++ b/src/generated/models/list-business-pix-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 { PixFiatAccountResponse } from "./pix-fiat-account-response"; + +/** + * + * @export + * @interface ListBusinessPixAccountsResponse + */ +export interface ListBusinessPixAccountsResponse { + /** + * + * @type {Array} + * @memberof ListBusinessPixAccountsResponse + */ + data?: Array; +} diff --git a/src/generated/models/pix-account-type.ts b/src/generated/models/pix-account-type.ts new file mode 100644 index 0000000..8cc6058 --- /dev/null +++ b/src/generated/models/pix-account-type.ts @@ -0,0 +1,22 @@ +/* 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. + */ + +/** + * Beneficiary account type. + * @export + * @enum {string} + */ + +export const PixAccountType = { + Checking: "checking", + Savings: "savings", + Salary: "salary", + Prepaid: "prepaid" +} as const; + +export type PixAccountType = typeof PixAccountType[keyof typeof PixAccountType]; diff --git a/src/generated/models/pix-fiat-account-creation-request.ts b/src/generated/models/pix-fiat-account-creation-request.ts new file mode 100644 index 0000000..5f6d086 --- /dev/null +++ b/src/generated/models/pix-fiat-account-creation-request.ts @@ -0,0 +1,61 @@ +/* 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 { PixAccountType } from "./pix-account-type"; + +/** + * + * @export + * @interface PixFiatAccountCreationRequest + */ +export interface PixFiatAccountCreationRequest { + /** + * Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + idempotencyKey: string; + /** + * Name of the beneficiary. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + name: string; + /** + * Beneficiary account number. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + accountNumber: string; + /** + * Beneficiary ISPB. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + ispb: string; + /** + * Beneficiary account branch code. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + branchCode?: string; + /** + * Beneficiary Tax ID. + * @type {string} + * @memberof PixFiatAccountCreationRequest + */ + taxId: string; + /** + * + * @type {PixAccountType} + * @memberof PixFiatAccountCreationRequest + */ + accountType: PixAccountType; +} diff --git a/src/generated/models/pix-fiat-account-response.ts b/src/generated/models/pix-fiat-account-response.ts new file mode 100644 index 0000000..c347580 --- /dev/null +++ b/src/generated/models/pix-fiat-account-response.ts @@ -0,0 +1,70 @@ +/* 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 { RiskEvaluation } from "./risk-evaluation"; + +/** + * + * @export + * @interface PixFiatAccountResponse + */ +export interface PixFiatAccountResponse { + /** + * Unique system generated identifier for the entity. + * @type {string} + * @memberof PixFiatAccountResponse + */ + id: string; + /** + * + * @type {ExternalFiatAccountStatus} + * @memberof PixFiatAccountResponse + */ + status: ExternalFiatAccountStatus; + /** + * Bank name plus last four digits of the PIX account number. + * @type {string} + * @memberof PixFiatAccountResponse + */ + description: string; + /** + * Wire tracking ref that needs to be set in the wire reference to beneficiary field. + * @type {string} + * @memberof PixFiatAccountResponse + */ + trackingRef: string; + /** + * + * @type {RiskEvaluation} + * @memberof PixFiatAccountResponse + */ + riskEvaluation?: RiskEvaluation | null; + /** + * A UUID that uniquely identifies the account number. If the same account is used more than once, each card object will have a different id, but the fingerprint will stay the same. + * @type {string} + * @memberof PixFiatAccountResponse + */ + fingerprint: string; + /** + * ISO-8601 UTC date/time format. + * @type {string} + * @memberof PixFiatAccountResponse + */ + createDate: string; + /** + * ISO-8601 UTC date/time format. + * @type {string} + * @memberof PixFiatAccountResponse + */ + updateDate: string; +} diff --git a/src/generated/models/pix-instruction.ts b/src/generated/models/pix-instruction.ts new file mode 100644 index 0000000..4fd153a --- /dev/null +++ b/src/generated/models/pix-instruction.ts @@ -0,0 +1,61 @@ +/* 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 { PixAccountType } from "./pix-account-type"; + +/** + * + * @export + * @interface PixInstruction + */ +export interface PixInstruction { + /** + * Circle tracking reference that needs to be set in the PIX reference field. + * @type {string} + * @memberof PixInstruction + */ + trackingRef?: string; + /** + * ISPB of beneficiary\'s bank. + * @type {string} + * @memberof PixInstruction + */ + ispb?: string; + /** + * Beneficiary account branch code. + * @type {string} + * @memberof PixInstruction + */ + branchCode?: string; + /** + * Beneficiary account number. + * @type {string} + * @memberof PixInstruction + */ + accountNumber?: string; + /** + * + * @type {PixAccountType} + * @memberof PixInstruction + */ + accountType?: PixAccountType; + /** + * Beneficiary Tax ID. + * @type {string} + * @memberof PixInstruction + */ + taxId?: string; + /** + * Name of the beneficiary. + * @type {string} + * @memberof PixInstruction + */ + name?: string; +} diff --git a/src/generated/models/transfer-type-info-additional-properties.ts b/src/generated/models/transfer-type-info-additional-properties.ts new file mode 100644 index 0000000..a5e346d --- /dev/null +++ b/src/generated/models/transfer-type-info-additional-properties.ts @@ -0,0 +1,21 @@ +/* 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. + */ + +/** + * Additional properties that apply to specific transfer type. + * @export + * @interface TransferTypeInfoAdditionalProperties + */ +export interface TransferTypeInfoAdditionalProperties { + /** + * Transaction amount limit for the transfer type. + * @type {number} + * @memberof TransferTypeInfoAdditionalProperties + */ + transactionLimits?: number; +} diff --git a/src/generated/models/transfer-type-info.ts b/src/generated/models/transfer-type-info.ts new file mode 100644 index 0000000..317b41a --- /dev/null +++ b/src/generated/models/transfer-type-info.ts @@ -0,0 +1,34 @@ +/* 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 { FiatCurrency } from "./fiat-currency"; +// May contain unused imports in some cases +// @ts-ignore +import { TransferTypeInfoAdditionalProperties } from "./transfer-type-info-additional-properties"; + +/** + * Additional information for specific transfer type. + * @export + * @interface TransferTypeInfo + */ +export interface TransferTypeInfo { + /** + * + * @type {Set} + * @memberof TransferTypeInfo + */ + currencies: Set; + /** + * + * @type {TransferTypeInfoAdditionalProperties} + * @memberof TransferTypeInfo + */ + additionalProperties?: TransferTypeInfoAdditionalProperties; +} diff --git a/src/generated/models/wire.ts b/src/generated/models/wire.ts index f34d8dc..608d85e 100644 --- a/src/generated/models/wire.ts +++ b/src/generated/models/wire.ts @@ -15,6 +15,9 @@ import { BillingDetails } from "./billing-details"; // 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"; /** * @@ -46,6 +49,12 @@ export interface Wire { * @memberof Wire */ trackingRef: string; + /** + * A map which shows transfer types supported on this account as well as additional information for each. + * @type {{ [key: string]: TransferTypeInfo; }} + * @memberof Wire + */ + transferTypesInfo: { [key: string]: TransferTypeInfo }; /** * A UUID that uniquely identifies the account number. If the same account is used more than once, each card object will have a different id, but the fingerprint will stay the same. * @type {string}