@moovio/sdk 0.11.5 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +7 -104
- package/README.md +110 -560
- package/bin/mcp-server.js +2663 -1992
- package/bin/mcp-server.js.map +172 -152
- package/docs/sdks/accounts/README.md +79 -261
- package/docs/sdks/accountterminalapplications/README.md +28 -36
- package/docs/sdks/adjustments/README.md +20 -24
- package/docs/sdks/applepay/README.md +47 -57
- package/docs/sdks/authentication/README.md +14 -18
- package/docs/sdks/avatars/README.md +7 -9
- package/docs/sdks/bankaccounts/README.md +99 -117
- package/docs/sdks/branding/README.md +36 -44
- package/docs/sdks/capabilities/README.md +38 -46
- package/docs/sdks/cardissuing/README.md +57 -83
- package/docs/sdks/cards/README.md +45 -85
- package/docs/sdks/disputes/README.md +131 -153
- package/docs/sdks/endtoendencryption/README.md +14 -18
- package/docs/sdks/enrichedaddress/README.md +7 -9
- package/docs/sdks/enrichedprofile/README.md +9 -11
- package/docs/sdks/feeplans/README.md +65 -79
- package/docs/sdks/files/README.md +29 -35
- package/docs/sdks/industries/README.md +11 -13
- package/docs/sdks/institutions/README.md +98 -9
- package/docs/sdks/issuingtransactions/README.md +51 -61
- package/docs/sdks/onboarding/README.md +30 -206
- package/docs/sdks/paymentlinks/README.md +58 -128
- package/docs/sdks/paymentmethods/README.md +20 -24
- package/docs/sdks/ping/README.md +7 -9
- package/docs/sdks/receipts/README.md +19 -33
- package/docs/sdks/representatives/README.md +53 -71
- package/docs/sdks/scheduling/README.md +76 -88
- package/docs/sdks/sweeps/README.md +64 -76
- package/docs/sdks/terminalapplications/README.md +28 -36
- package/docs/sdks/transfers/README.md +127 -195
- package/docs/sdks/underwriting/README.md +44 -48
- package/docs/sdks/wallets/README.md +20 -24
- package/docs/sdks/wallettransactions/README.md +24 -28
- package/funcs/accountTerminalApplicationsGet.js +2 -0
- package/funcs/accountTerminalApplicationsGet.js.map +1 -1
- package/funcs/accountTerminalApplicationsGetConfiguration.js +2 -0
- package/funcs/accountTerminalApplicationsGetConfiguration.js.map +1 -1
- package/funcs/accountTerminalApplicationsLink.js +2 -0
- package/funcs/accountTerminalApplicationsLink.js.map +1 -1
- package/funcs/accountTerminalApplicationsList.js +2 -0
- package/funcs/accountTerminalApplicationsList.js.map +1 -1
- package/funcs/accountsAssignCountries.js +2 -0
- package/funcs/accountsAssignCountries.js.map +1 -1
- package/funcs/accountsCreate.js +2 -0
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/accountsDisconnect.js +2 -0
- package/funcs/accountsDisconnect.js.map +1 -1
- package/funcs/accountsGet.js +2 -0
- package/funcs/accountsGet.js.map +1 -1
- package/funcs/accountsGetCountries.js +2 -0
- package/funcs/accountsGetCountries.js.map +1 -1
- package/funcs/accountsGetMerchantProcessingAgreement.js +2 -0
- package/funcs/accountsGetMerchantProcessingAgreement.js.map +1 -1
- package/funcs/accountsGetTermsOfServiceToken.js +2 -0
- package/funcs/accountsGetTermsOfServiceToken.js.map +1 -1
- package/funcs/accountsList.js +2 -0
- package/funcs/accountsList.js.map +1 -1
- package/funcs/accountsUpdate.js +2 -0
- package/funcs/accountsUpdate.js.map +1 -1
- package/funcs/adjustmentsGet.js +2 -0
- package/funcs/adjustmentsGet.js.map +1 -1
- package/funcs/adjustmentsList.js +2 -0
- package/funcs/adjustmentsList.js.map +1 -1
- package/funcs/applePayCreateSession.js +2 -0
- package/funcs/applePayCreateSession.js.map +1 -1
- package/funcs/applePayGetMerchantDomains.js +2 -0
- package/funcs/applePayGetMerchantDomains.js.map +1 -1
- package/funcs/applePayLinkToken.js +2 -0
- package/funcs/applePayLinkToken.js.map +1 -1
- package/funcs/applePayRegisterMerchantDomains.js +2 -0
- package/funcs/applePayRegisterMerchantDomains.js.map +1 -1
- package/funcs/applePayUpdateMerchantDomains.js +2 -0
- package/funcs/applePayUpdateMerchantDomains.js.map +1 -1
- package/funcs/authenticationCreateAccessToken.js +2 -0
- package/funcs/authenticationCreateAccessToken.js.map +1 -1
- package/funcs/authenticationRevokeAccessToken.js +2 -0
- package/funcs/authenticationRevokeAccessToken.js.map +1 -1
- package/funcs/avatarsGet.js +2 -0
- package/funcs/avatarsGet.js.map +1 -1
- package/funcs/bankAccountsCompleteMicroDeposits.js +2 -0
- package/funcs/bankAccountsCompleteMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsCompleteVerification.js +2 -0
- package/funcs/bankAccountsCompleteVerification.js.map +1 -1
- package/funcs/bankAccountsDisable.js +2 -0
- package/funcs/bankAccountsDisable.js.map +1 -1
- package/funcs/bankAccountsGet.js +2 -0
- package/funcs/bankAccountsGet.js.map +1 -1
- package/funcs/bankAccountsGetVerification.js +2 -0
- package/funcs/bankAccountsGetVerification.js.map +1 -1
- package/funcs/bankAccountsInitiateMicroDeposits.js +2 -0
- package/funcs/bankAccountsInitiateMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsInitiateVerification.js +2 -0
- package/funcs/bankAccountsInitiateVerification.js.map +1 -1
- package/funcs/bankAccountsLink.js +2 -0
- package/funcs/bankAccountsLink.js.map +1 -1
- package/funcs/bankAccountsList.js +2 -0
- package/funcs/bankAccountsList.js.map +1 -1
- package/funcs/brandingCreate.js +2 -0
- package/funcs/brandingCreate.js.map +1 -1
- package/funcs/brandingGet.js +2 -0
- package/funcs/brandingGet.js.map +1 -1
- package/funcs/brandingUpdate.js +2 -0
- package/funcs/brandingUpdate.js.map +1 -1
- package/funcs/brandingUpsert.js +2 -0
- package/funcs/brandingUpsert.js.map +1 -1
- package/funcs/capabilitiesDisable.js +2 -0
- package/funcs/capabilitiesDisable.js.map +1 -1
- package/funcs/capabilitiesGet.js +2 -0
- package/funcs/capabilitiesGet.js.map +1 -1
- package/funcs/capabilitiesList.js +2 -0
- package/funcs/capabilitiesList.js.map +1 -1
- package/funcs/capabilitiesRequest.js +2 -0
- package/funcs/capabilitiesRequest.js.map +1 -1
- package/funcs/cardIssuingGet.js +2 -0
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js +2 -0
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js +2 -0
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js +2 -0
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.js +2 -0
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/cardsDisable.js +2 -0
- package/funcs/cardsDisable.js.map +1 -1
- package/funcs/cardsGet.js +2 -0
- package/funcs/cardsGet.js.map +1 -1
- package/funcs/cardsLink.js +2 -0
- package/funcs/cardsLink.js.map +1 -1
- package/funcs/cardsList.js +2 -0
- package/funcs/cardsList.js.map +1 -1
- package/funcs/cardsUpdate.js +2 -0
- package/funcs/cardsUpdate.js.map +1 -1
- package/funcs/disputesAccept.js +2 -0
- package/funcs/disputesAccept.js.map +1 -1
- package/funcs/disputesDeleteEvidence.js +2 -0
- package/funcs/disputesDeleteEvidence.js.map +1 -1
- package/funcs/disputesGet.js +2 -0
- package/funcs/disputesGet.js.map +1 -1
- package/funcs/disputesGetEvidence.js +2 -0
- package/funcs/disputesGetEvidence.js.map +1 -1
- package/funcs/disputesGetEvidenceData.js +2 -0
- package/funcs/disputesGetEvidenceData.js.map +1 -1
- package/funcs/disputesList.js +2 -0
- package/funcs/disputesList.js.map +1 -1
- package/funcs/disputesListEvidence.js +2 -0
- package/funcs/disputesListEvidence.js.map +1 -1
- package/funcs/disputesSubmitEvidence.js +2 -0
- package/funcs/disputesSubmitEvidence.js.map +1 -1
- package/funcs/disputesUpdateEvidence.js +2 -0
- package/funcs/disputesUpdateEvidence.js.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +2 -0
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/disputesUploadEvidenceText.js +2 -0
- package/funcs/disputesUploadEvidenceText.js.map +1 -1
- package/funcs/endToEndEncryptionGenerateKey.js +2 -0
- package/funcs/endToEndEncryptionGenerateKey.js.map +1 -1
- package/funcs/endToEndEncryptionTestEncryptedToken.js +2 -0
- package/funcs/endToEndEncryptionTestEncryptedToken.js.map +1 -1
- package/funcs/enrichedAddressGet.js +2 -0
- package/funcs/enrichedAddressGet.js.map +1 -1
- package/funcs/enrichedProfileGet.js +2 -0
- package/funcs/enrichedProfileGet.js.map +1 -1
- package/funcs/feePlansCreateFeePlanAgreements.js +2 -0
- package/funcs/feePlansCreateFeePlanAgreements.js.map +1 -1
- package/funcs/feePlansListFeePlanAgreements.js +2 -0
- package/funcs/feePlansListFeePlanAgreements.js.map +1 -1
- package/funcs/feePlansListFeePlans.js +2 -0
- package/funcs/feePlansListFeePlans.js.map +1 -1
- package/funcs/feePlansListFeesFetch.js +2 -0
- package/funcs/feePlansListFeesFetch.js.map +1 -1
- package/funcs/feePlansListPartnerPricing.js +2 -0
- package/funcs/feePlansListPartnerPricing.js.map +1 -1
- package/funcs/feePlansListPartnerPricingAgreements.js +2 -0
- package/funcs/feePlansListPartnerPricingAgreements.js.map +1 -1
- package/funcs/feePlansRetrieveFees.js +2 -0
- package/funcs/feePlansRetrieveFees.js.map +1 -1
- package/funcs/filesGet.js +2 -0
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.js +2 -0
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpload.js +2 -0
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/industriesList.d.ts +2 -2
- package/funcs/industriesList.js +4 -2
- package/funcs/industriesList.js.map +1 -1
- package/funcs/institutionsSearch.js +2 -0
- package/funcs/institutionsSearch.js.map +1 -1
- package/funcs/institutionsSearchInstitutions.d.ts +20 -0
- package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
- package/funcs/institutionsSearchInstitutions.js +129 -0
- package/funcs/institutionsSearchInstitutions.js.map +1 -0
- package/funcs/issuingTransactionsGet.js +2 -0
- package/funcs/issuingTransactionsGet.js.map +1 -1
- package/funcs/issuingTransactionsGetAuthorization.js +2 -0
- package/funcs/issuingTransactionsGetAuthorization.js.map +1 -1
- package/funcs/issuingTransactionsList.js +2 -0
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizationEvents.js +2 -0
- package/funcs/issuingTransactionsListAuthorizationEvents.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizations.js +2 -0
- package/funcs/issuingTransactionsListAuthorizations.js.map +1 -1
- package/funcs/onboardingCreateInvite.js +2 -0
- package/funcs/onboardingCreateInvite.js.map +1 -1
- package/funcs/onboardingGetInvite.js +2 -0
- package/funcs/onboardingGetInvite.js.map +1 -1
- package/funcs/onboardingListInvites.js +2 -0
- package/funcs/onboardingListInvites.js.map +1 -1
- package/funcs/onboardingRevokeInvite.js +2 -0
- package/funcs/onboardingRevokeInvite.js.map +1 -1
- package/funcs/paymentLinksCreate.js +2 -0
- package/funcs/paymentLinksCreate.js.map +1 -1
- package/funcs/paymentLinksDisable.js +2 -0
- package/funcs/paymentLinksDisable.js.map +1 -1
- package/funcs/paymentLinksGet.js +2 -0
- package/funcs/paymentLinksGet.js.map +1 -1
- package/funcs/paymentLinksGetQRCode.js +2 -0
- package/funcs/paymentLinksGetQRCode.js.map +1 -1
- package/funcs/paymentLinksList.js +2 -0
- package/funcs/paymentLinksList.js.map +1 -1
- package/funcs/paymentLinksUpdate.js +2 -0
- package/funcs/paymentLinksUpdate.js.map +1 -1
- package/funcs/paymentMethodsGet.js +2 -0
- package/funcs/paymentMethodsGet.js.map +1 -1
- package/funcs/paymentMethodsList.js +2 -0
- package/funcs/paymentMethodsList.js.map +1 -1
- package/funcs/pingPing.js +2 -0
- package/funcs/pingPing.js.map +1 -1
- package/funcs/receiptsCreate.js +2 -0
- package/funcs/receiptsCreate.js.map +1 -1
- package/funcs/receiptsList.js +2 -0
- package/funcs/receiptsList.js.map +1 -1
- package/funcs/representativesCreate.js +2 -0
- package/funcs/representativesCreate.js.map +1 -1
- package/funcs/representativesDelete.js +2 -0
- package/funcs/representativesDelete.js.map +1 -1
- package/funcs/representativesGet.js +2 -0
- package/funcs/representativesGet.js.map +1 -1
- package/funcs/representativesList.js +2 -0
- package/funcs/representativesList.js.map +1 -1
- package/funcs/representativesUpdate.js +2 -0
- package/funcs/representativesUpdate.js.map +1 -1
- package/funcs/schedulingCancel.js +2 -0
- package/funcs/schedulingCancel.js.map +1 -1
- package/funcs/schedulingCreate.js +2 -0
- package/funcs/schedulingCreate.js.map +1 -1
- package/funcs/schedulingGet.js +2 -0
- package/funcs/schedulingGet.js.map +1 -1
- package/funcs/schedulingGetOccurrance.js +2 -0
- package/funcs/schedulingGetOccurrance.js.map +1 -1
- package/funcs/schedulingList.js +2 -0
- package/funcs/schedulingList.js.map +1 -1
- package/funcs/schedulingUpdate.js +2 -0
- package/funcs/schedulingUpdate.js.map +1 -1
- package/funcs/sweepsCreateConfig.js +2 -0
- package/funcs/sweepsCreateConfig.js.map +1 -1
- package/funcs/sweepsGet.js +2 -0
- package/funcs/sweepsGet.js.map +1 -1
- package/funcs/sweepsGetConfig.js +2 -0
- package/funcs/sweepsGetConfig.js.map +1 -1
- package/funcs/sweepsList.js +2 -0
- package/funcs/sweepsList.js.map +1 -1
- package/funcs/sweepsListConfigs.js +2 -0
- package/funcs/sweepsListConfigs.js.map +1 -1
- package/funcs/sweepsUpdateConfig.js +2 -0
- package/funcs/sweepsUpdateConfig.js.map +1 -1
- package/funcs/terminalApplicationsCreate.js +2 -0
- package/funcs/terminalApplicationsCreate.js.map +1 -1
- package/funcs/terminalApplicationsDelete.js +2 -0
- package/funcs/terminalApplicationsDelete.js.map +1 -1
- package/funcs/terminalApplicationsGet.js +2 -0
- package/funcs/terminalApplicationsGet.js.map +1 -1
- package/funcs/terminalApplicationsList.js +2 -0
- package/funcs/terminalApplicationsList.js.map +1 -1
- package/funcs/transfersCreate.js +2 -0
- package/funcs/transfersCreate.js.map +1 -1
- package/funcs/transfersCreateCancellation.js +2 -0
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateReversal.js +2 -0
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersGenerateOptions.js +2 -0
- package/funcs/transfersGenerateOptions.js.map +1 -1
- package/funcs/transfersGet.js +2 -0
- package/funcs/transfersGet.js.map +1 -1
- package/funcs/transfersGetCancellation.js +2 -0
- package/funcs/transfersGetCancellation.js.map +1 -1
- package/funcs/transfersGetRefund.js +2 -0
- package/funcs/transfersGetRefund.js.map +1 -1
- package/funcs/transfersInitiateRefund.js +2 -0
- package/funcs/transfersInitiateRefund.js.map +1 -1
- package/funcs/transfersList.js +2 -0
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListRefunds.js +2 -0
- package/funcs/transfersListRefunds.js.map +1 -1
- package/funcs/transfersUpdate.js +2 -0
- package/funcs/transfersUpdate.js.map +1 -1
- package/funcs/underwritingGet.js +2 -0
- package/funcs/underwritingGet.js.map +1 -1
- package/funcs/underwritingUpsert.js +2 -0
- package/funcs/underwritingUpsert.js.map +1 -1
- package/funcs/walletTransactionsGet.js +2 -0
- package/funcs/walletTransactionsGet.js.map +1 -1
- package/funcs/walletTransactionsList.js +2 -0
- package/funcs/walletTransactionsList.js.map +1 -1
- package/funcs/walletsGet.js +2 -0
- package/funcs/walletsGet.js.map +1 -1
- package/funcs/walletsList.js +2 -0
- package/funcs/walletsList.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.js.map +1 -1
- package/mcp-server/cli/start/impl.js +4 -4
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/industriesList.js +2 -2
- package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
- package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
- package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
- package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
- package/models/components/achinstitution.d.ts +40 -0
- package/models/components/achinstitution.d.ts.map +1 -0
- package/models/components/achinstitution.js +77 -0
- package/models/components/achinstitution.js.map +1 -0
- package/models/components/contact.d.ts +30 -0
- package/models/components/contact.d.ts.map +1 -0
- package/models/components/{enrichedindustry.js → contact.js} +20 -25
- package/models/components/contact.js.map +1 -0
- package/models/components/enrichedindustries.d.ts +3 -3
- package/models/components/enrichedindustries.js +3 -3
- package/models/components/index.d.ts +9 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -1
- package/models/components/index.js.map +1 -1
- package/models/components/industrytaxonomy.d.ts +55 -0
- package/models/components/industrytaxonomy.d.ts.map +1 -0
- package/models/components/industrytaxonomy.js +77 -0
- package/models/components/industrytaxonomy.js.map +1 -0
- package/models/components/institutionssearchresponse.d.ts +36 -0
- package/models/components/institutionssearchresponse.d.ts.map +1 -0
- package/models/components/institutionssearchresponse.js +76 -0
- package/models/components/institutionssearchresponse.js.map +1 -0
- package/models/components/rtpinstitution.d.ts +37 -0
- package/models/components/rtpinstitution.d.ts.map +1 -0
- package/models/components/rtpinstitution.js +74 -0
- package/models/components/rtpinstitution.js.map +1 -0
- package/models/components/rtpservices.d.ts +37 -0
- package/models/components/rtpservices.d.ts.map +1 -0
- package/models/components/rtpservices.js +71 -0
- package/models/components/rtpservices.js.map +1 -0
- package/models/components/sweep.d.ts +6 -0
- package/models/components/sweep.d.ts.map +1 -1
- package/models/components/sweep.js +3 -0
- package/models/components/sweep.js.map +1 -1
- package/models/components/sweepsubtotal.d.ts +44 -0
- package/models/components/sweepsubtotal.d.ts.map +1 -0
- package/models/components/sweepsubtotal.js +75 -0
- package/models/components/sweepsubtotal.js.map +1 -0
- package/models/components/wireinstitution.d.ts +40 -0
- package/models/components/wireinstitution.d.ts.map +1 -0
- package/models/components/wireinstitution.js +77 -0
- package/models/components/wireinstitution.js.map +1 -0
- package/models/components/wireservices.d.ts +42 -0
- package/models/components/wireservices.d.ts.map +1 -0
- package/models/components/wireservices.js +73 -0
- package/models/components/wireservices.js.map +1 -0
- package/models/errors/apierror.d.ts +14 -2
- package/models/errors/apierror.d.ts.map +1 -1
- package/models/errors/apierror.js +1 -1
- package/models/errors/apierror.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/searchinstitutions.d.ts +112 -0
- package/models/operations/searchinstitutions.d.ts.map +1 -0
- package/models/operations/searchinstitutions.js +149 -0
- package/models/operations/searchinstitutions.js.map +1 -0
- package/package.json +2 -2
- package/sdk/industries.d.ts +2 -2
- package/sdk/industries.js +2 -2
- package/sdk/institutions.d.ts +11 -0
- package/sdk/institutions.d.ts.map +1 -1
- package/sdk/institutions.js +14 -0
- package/sdk/institutions.js.map +1 -1
- package/src/funcs/accountTerminalApplicationsGet.ts +2 -0
- package/src/funcs/accountTerminalApplicationsGetConfiguration.ts +2 -0
- package/src/funcs/accountTerminalApplicationsLink.ts +2 -0
- package/src/funcs/accountTerminalApplicationsList.ts +2 -0
- package/src/funcs/accountsAssignCountries.ts +2 -0
- package/src/funcs/accountsCreate.ts +2 -0
- package/src/funcs/accountsDisconnect.ts +2 -0
- package/src/funcs/accountsGet.ts +2 -0
- package/src/funcs/accountsGetCountries.ts +2 -0
- package/src/funcs/accountsGetMerchantProcessingAgreement.ts +2 -0
- package/src/funcs/accountsGetTermsOfServiceToken.ts +2 -0
- package/src/funcs/accountsList.ts +2 -0
- package/src/funcs/accountsUpdate.ts +2 -0
- package/src/funcs/adjustmentsGet.ts +2 -0
- package/src/funcs/adjustmentsList.ts +2 -0
- package/src/funcs/applePayCreateSession.ts +2 -0
- package/src/funcs/applePayGetMerchantDomains.ts +2 -0
- package/src/funcs/applePayLinkToken.ts +2 -0
- package/src/funcs/applePayRegisterMerchantDomains.ts +2 -0
- package/src/funcs/applePayUpdateMerchantDomains.ts +2 -0
- package/src/funcs/authenticationCreateAccessToken.ts +2 -0
- package/src/funcs/authenticationRevokeAccessToken.ts +2 -0
- package/src/funcs/avatarsGet.ts +2 -0
- package/src/funcs/bankAccountsCompleteMicroDeposits.ts +2 -0
- package/src/funcs/bankAccountsCompleteVerification.ts +2 -0
- package/src/funcs/bankAccountsDisable.ts +2 -0
- package/src/funcs/bankAccountsGet.ts +2 -0
- package/src/funcs/bankAccountsGetVerification.ts +2 -0
- package/src/funcs/bankAccountsInitiateMicroDeposits.ts +2 -0
- package/src/funcs/bankAccountsInitiateVerification.ts +2 -0
- package/src/funcs/bankAccountsLink.ts +2 -0
- package/src/funcs/bankAccountsList.ts +2 -0
- package/src/funcs/brandingCreate.ts +2 -0
- package/src/funcs/brandingGet.ts +2 -0
- package/src/funcs/brandingUpdate.ts +2 -0
- package/src/funcs/brandingUpsert.ts +2 -0
- package/src/funcs/capabilitiesDisable.ts +2 -0
- package/src/funcs/capabilitiesGet.ts +2 -0
- package/src/funcs/capabilitiesList.ts +2 -0
- package/src/funcs/capabilitiesRequest.ts +2 -0
- package/src/funcs/cardIssuingGet.ts +2 -0
- package/src/funcs/cardIssuingGetFull.ts +2 -0
- package/src/funcs/cardIssuingList.ts +2 -0
- package/src/funcs/cardIssuingRequest.ts +2 -0
- package/src/funcs/cardIssuingUpdate.ts +2 -0
- package/src/funcs/cardsDisable.ts +2 -0
- package/src/funcs/cardsGet.ts +2 -0
- package/src/funcs/cardsLink.ts +2 -0
- package/src/funcs/cardsList.ts +2 -0
- package/src/funcs/cardsUpdate.ts +2 -0
- package/src/funcs/disputesAccept.ts +2 -0
- package/src/funcs/disputesDeleteEvidence.ts +2 -0
- package/src/funcs/disputesGet.ts +2 -0
- package/src/funcs/disputesGetEvidence.ts +2 -0
- package/src/funcs/disputesGetEvidenceData.ts +2 -0
- package/src/funcs/disputesList.ts +2 -0
- package/src/funcs/disputesListEvidence.ts +2 -0
- package/src/funcs/disputesSubmitEvidence.ts +2 -0
- package/src/funcs/disputesUpdateEvidence.ts +2 -0
- package/src/funcs/disputesUploadEvidenceFile.ts +2 -0
- package/src/funcs/disputesUploadEvidenceText.ts +2 -0
- package/src/funcs/endToEndEncryptionGenerateKey.ts +2 -0
- package/src/funcs/endToEndEncryptionTestEncryptedToken.ts +2 -0
- package/src/funcs/enrichedAddressGet.ts +2 -0
- package/src/funcs/enrichedProfileGet.ts +2 -0
- package/src/funcs/feePlansCreateFeePlanAgreements.ts +2 -0
- package/src/funcs/feePlansListFeePlanAgreements.ts +2 -0
- package/src/funcs/feePlansListFeePlans.ts +2 -0
- package/src/funcs/feePlansListFeesFetch.ts +2 -0
- package/src/funcs/feePlansListPartnerPricing.ts +2 -0
- package/src/funcs/feePlansListPartnerPricingAgreements.ts +2 -0
- package/src/funcs/feePlansRetrieveFees.ts +2 -0
- package/src/funcs/filesGet.ts +2 -0
- package/src/funcs/filesList.ts +2 -0
- package/src/funcs/filesUpload.ts +2 -0
- package/src/funcs/industriesList.ts +4 -2
- package/src/funcs/institutionsSearch.ts +2 -0
- package/src/funcs/institutionsSearchInstitutions.ts +179 -0
- package/src/funcs/issuingTransactionsGet.ts +2 -0
- package/src/funcs/issuingTransactionsGetAuthorization.ts +2 -0
- package/src/funcs/issuingTransactionsList.ts +2 -0
- package/src/funcs/issuingTransactionsListAuthorizationEvents.ts +2 -0
- package/src/funcs/issuingTransactionsListAuthorizations.ts +2 -0
- package/src/funcs/onboardingCreateInvite.ts +2 -0
- package/src/funcs/onboardingGetInvite.ts +2 -0
- package/src/funcs/onboardingListInvites.ts +2 -0
- package/src/funcs/onboardingRevokeInvite.ts +2 -0
- package/src/funcs/paymentLinksCreate.ts +2 -0
- package/src/funcs/paymentLinksDisable.ts +2 -0
- package/src/funcs/paymentLinksGet.ts +2 -0
- package/src/funcs/paymentLinksGetQRCode.ts +2 -0
- package/src/funcs/paymentLinksList.ts +2 -0
- package/src/funcs/paymentLinksUpdate.ts +2 -0
- package/src/funcs/paymentMethodsGet.ts +2 -0
- package/src/funcs/paymentMethodsList.ts +2 -0
- package/src/funcs/pingPing.ts +2 -0
- package/src/funcs/receiptsCreate.ts +2 -0
- package/src/funcs/receiptsList.ts +2 -0
- package/src/funcs/representativesCreate.ts +2 -0
- package/src/funcs/representativesDelete.ts +2 -0
- package/src/funcs/representativesGet.ts +2 -0
- package/src/funcs/representativesList.ts +2 -0
- package/src/funcs/representativesUpdate.ts +2 -0
- package/src/funcs/schedulingCancel.ts +2 -0
- package/src/funcs/schedulingCreate.ts +2 -0
- package/src/funcs/schedulingGet.ts +2 -0
- package/src/funcs/schedulingGetOccurrance.ts +2 -0
- package/src/funcs/schedulingList.ts +2 -0
- package/src/funcs/schedulingUpdate.ts +2 -0
- package/src/funcs/sweepsCreateConfig.ts +2 -0
- package/src/funcs/sweepsGet.ts +2 -0
- package/src/funcs/sweepsGetConfig.ts +2 -0
- package/src/funcs/sweepsList.ts +2 -0
- package/src/funcs/sweepsListConfigs.ts +2 -0
- package/src/funcs/sweepsUpdateConfig.ts +2 -0
- package/src/funcs/terminalApplicationsCreate.ts +2 -0
- package/src/funcs/terminalApplicationsDelete.ts +2 -0
- package/src/funcs/terminalApplicationsGet.ts +2 -0
- package/src/funcs/terminalApplicationsList.ts +2 -0
- package/src/funcs/transfersCreate.ts +2 -0
- package/src/funcs/transfersCreateCancellation.ts +2 -0
- package/src/funcs/transfersCreateReversal.ts +2 -0
- package/src/funcs/transfersGenerateOptions.ts +2 -0
- package/src/funcs/transfersGet.ts +2 -0
- package/src/funcs/transfersGetCancellation.ts +2 -0
- package/src/funcs/transfersGetRefund.ts +2 -0
- package/src/funcs/transfersInitiateRefund.ts +2 -0
- package/src/funcs/transfersList.ts +2 -0
- package/src/funcs/transfersListRefunds.ts +2 -0
- package/src/funcs/transfersUpdate.ts +2 -0
- package/src/funcs/underwritingGet.ts +2 -0
- package/src/funcs/underwritingUpsert.ts +2 -0
- package/src/funcs/walletTransactionsGet.ts +2 -0
- package/src/funcs/walletTransactionsList.ts +2 -0
- package/src/funcs/walletsGet.ts +2 -0
- package/src/funcs/walletsList.ts +2 -0
- package/src/hooks/types.ts +2 -0
- package/src/index.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/cli/start/impl.ts +4 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/industriesList.ts +2 -2
- package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
- package/src/models/components/achinstitution.ts +89 -0
- package/src/models/components/contact.ts +65 -0
- package/src/models/components/enrichedindustries.ts +9 -9
- package/src/models/components/index.ts +9 -1
- package/src/models/components/industrytaxonomy.ts +100 -0
- package/src/models/components/institutionssearchresponse.ts +92 -0
- package/src/models/components/rtpinstitution.ts +79 -0
- package/src/models/components/rtpservices.ts +72 -0
- package/src/models/components/sweep.ts +13 -0
- package/src/models/components/sweepsubtotal.ts +90 -0
- package/src/models/components/wireinstitution.ts +91 -0
- package/src/models/components/wireservices.ts +79 -0
- package/src/models/errors/apierror.ts +18 -3
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/searchinstitutions.ts +236 -0
- package/src/sdk/industries.ts +2 -2
- package/src/sdk/institutions.ts +22 -0
- package/test/README.md +2 -0
- package/test/index.ts +1 -0
- package/test/package.json +25 -0
- package/test/setup.ts +119 -0
- package/test/tests/accounts.test.ts +127 -0
- package/test/tests/bankAccounts.test.ts +171 -0
- package/test/tests/capabilities.test.ts +147 -0
- package/test/tests/cards.test.ts +168 -0
- package/test/tests/paymentMethods.test.ts +55 -0
- package/test/tests/representatives.test.ts +83 -0
- package/test/tests/transfers.test.ts +122 -0
- package/test/tests/wallets.test.ts +31 -0
- package/test/tsconfig.json +30 -0
- package/test/utils/utils.ts +276 -0
- package/models/components/enrichedindustry.d.ts +0 -47
- package/models/components/enrichedindustry.d.ts.map +0 -1
- package/models/components/enrichedindustry.js.map +0 -1
- package/src/models/components/enrichedindustry.ts +0 -90
|
@@ -114,6 +114,7 @@ async function $do(
|
|
|
114
114
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
115
115
|
|
|
116
116
|
const context = {
|
|
117
|
+
options: client._options,
|
|
117
118
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
119
|
operationID: "getEnrichmentAddress",
|
|
119
120
|
oAuth2Scopes: [],
|
|
@@ -135,6 +136,7 @@ async function $do(
|
|
|
135
136
|
headers: headers,
|
|
136
137
|
query: query,
|
|
137
138
|
body: body,
|
|
139
|
+
userAgent: client._options.userAgent,
|
|
138
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
141
|
}, options);
|
|
140
142
|
if (!requestRes.ok) {
|
|
@@ -102,6 +102,7 @@ async function $do(
|
|
|
102
102
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
103
103
|
|
|
104
104
|
const context = {
|
|
105
|
+
options: client._options,
|
|
105
106
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
107
|
operationID: "getEnrichmentProfile",
|
|
107
108
|
oAuth2Scopes: [],
|
|
@@ -123,6 +124,7 @@ async function $do(
|
|
|
123
124
|
headers: headers,
|
|
124
125
|
query: query,
|
|
125
126
|
body: body,
|
|
127
|
+
userAgent: client._options.userAgent,
|
|
126
128
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
129
|
}, options);
|
|
128
130
|
if (!requestRes.ok) {
|
|
@@ -115,6 +115,7 @@ async function $do(
|
|
|
115
115
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
116
116
|
|
|
117
117
|
const context = {
|
|
118
|
+
options: client._options,
|
|
118
119
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
120
|
operationID: "createFeePlanAgreements",
|
|
120
121
|
oAuth2Scopes: [],
|
|
@@ -135,6 +136,7 @@ async function $do(
|
|
|
135
136
|
path: path,
|
|
136
137
|
headers: headers,
|
|
137
138
|
body: body,
|
|
139
|
+
userAgent: client._options.userAgent,
|
|
138
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
141
|
}, options);
|
|
140
142
|
if (!requestRes.ok) {
|
|
@@ -114,6 +114,7 @@ async function $do(
|
|
|
114
114
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
115
115
|
|
|
116
116
|
const context = {
|
|
117
|
+
options: client._options,
|
|
117
118
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
119
|
operationID: "listFeePlanAgreements",
|
|
119
120
|
oAuth2Scopes: [],
|
|
@@ -135,6 +136,7 @@ async function $do(
|
|
|
135
136
|
headers: headers,
|
|
136
137
|
query: query,
|
|
137
138
|
body: body,
|
|
139
|
+
userAgent: client._options.userAgent,
|
|
138
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
141
|
}, options);
|
|
140
142
|
if (!requestRes.ok) {
|
|
@@ -109,6 +109,7 @@ async function $do(
|
|
|
109
109
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
110
|
|
|
111
111
|
const context = {
|
|
112
|
+
options: client._options,
|
|
112
113
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
113
114
|
operationID: "listFeePlans",
|
|
114
115
|
oAuth2Scopes: [],
|
|
@@ -130,6 +131,7 @@ async function $do(
|
|
|
130
131
|
headers: headers,
|
|
131
132
|
query: query,
|
|
132
133
|
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
133
135
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
136
|
}, options);
|
|
135
137
|
if (!requestRes.ok) {
|
|
@@ -107,6 +107,7 @@ async function $do(
|
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
110
|
+
options: client._options,
|
|
110
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
112
|
operationID: "listFeesFetch",
|
|
112
113
|
oAuth2Scopes: [],
|
|
@@ -127,6 +128,7 @@ async function $do(
|
|
|
127
128
|
path: path,
|
|
128
129
|
headers: headers,
|
|
129
130
|
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
130
132
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
131
133
|
}, options);
|
|
132
134
|
if (!requestRes.ok) {
|
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
109
|
|
|
110
110
|
const context = {
|
|
111
|
+
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
113
|
operationID: "listPartnerPricing",
|
|
113
114
|
oAuth2Scopes: [],
|
|
@@ -129,6 +130,7 @@ async function $do(
|
|
|
129
130
|
headers: headers,
|
|
130
131
|
query: query,
|
|
131
132
|
body: body,
|
|
133
|
+
userAgent: client._options.userAgent,
|
|
132
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
135
|
}, options);
|
|
134
136
|
if (!requestRes.ok) {
|
|
@@ -116,6 +116,7 @@ async function $do(
|
|
|
116
116
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
117
|
|
|
118
118
|
const context = {
|
|
119
|
+
options: client._options,
|
|
119
120
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
121
|
operationID: "listPartnerPricingAgreements",
|
|
121
122
|
oAuth2Scopes: [],
|
|
@@ -137,6 +138,7 @@ async function $do(
|
|
|
137
138
|
headers: headers,
|
|
138
139
|
query: query,
|
|
139
140
|
body: body,
|
|
141
|
+
userAgent: client._options.userAgent,
|
|
140
142
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
141
143
|
}, options);
|
|
142
144
|
if (!requestRes.ok) {
|
|
@@ -113,6 +113,7 @@ async function $do(
|
|
|
113
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
114
|
|
|
115
115
|
const context = {
|
|
116
|
+
options: client._options,
|
|
116
117
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
118
|
operationID: "retrieveFees",
|
|
118
119
|
oAuth2Scopes: [],
|
|
@@ -134,6 +135,7 @@ async function $do(
|
|
|
134
135
|
headers: headers,
|
|
135
136
|
query: query,
|
|
136
137
|
body: body,
|
|
138
|
+
userAgent: client._options.userAgent,
|
|
137
139
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
140
|
}, options);
|
|
139
141
|
if (!requestRes.ok) {
|
package/src/funcs/filesGet.ts
CHANGED
|
@@ -108,6 +108,7 @@ async function $do(
|
|
|
108
108
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
109
109
|
|
|
110
110
|
const context = {
|
|
111
|
+
options: client._options,
|
|
111
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
113
|
operationID: "getFileDetails",
|
|
113
114
|
oAuth2Scopes: [],
|
|
@@ -128,6 +129,7 @@ async function $do(
|
|
|
128
129
|
path: path,
|
|
129
130
|
headers: headers,
|
|
130
131
|
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
131
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
134
|
}, options);
|
|
133
135
|
if (!requestRes.ok) {
|
package/src/funcs/filesList.ts
CHANGED
|
@@ -104,6 +104,7 @@ async function $do(
|
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
107
|
+
options: client._options,
|
|
107
108
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
109
|
operationID: "listFiles",
|
|
109
110
|
oAuth2Scopes: [],
|
|
@@ -124,6 +125,7 @@ async function $do(
|
|
|
124
125
|
path: path,
|
|
125
126
|
headers: headers,
|
|
126
127
|
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
127
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
130
|
}, options);
|
|
129
131
|
if (!requestRes.ok) {
|
package/src/funcs/filesUpload.ts
CHANGED
|
@@ -144,6 +144,7 @@ async function $do(
|
|
|
144
144
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
145
145
|
|
|
146
146
|
const context = {
|
|
147
|
+
options: client._options,
|
|
147
148
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
148
149
|
operationID: "uploadFile",
|
|
149
150
|
oAuth2Scopes: [],
|
|
@@ -164,6 +165,7 @@ async function $do(
|
|
|
164
165
|
path: path,
|
|
165
166
|
headers: headers,
|
|
166
167
|
body: body,
|
|
168
|
+
userAgent: client._options.userAgent,
|
|
167
169
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
168
170
|
}, options);
|
|
169
171
|
if (!requestRes.ok) {
|
|
@@ -23,9 +23,9 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* Returns a list of
|
|
26
|
+
* Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
27
27
|
*
|
|
28
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
28
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
29
29
|
* you'll need to specify the `/profile-enrichment.read` scope.
|
|
30
30
|
*/
|
|
31
31
|
export function industriesList(
|
|
@@ -85,6 +85,7 @@ async function $do(
|
|
|
85
85
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
86
|
|
|
87
87
|
const context = {
|
|
88
|
+
options: client._options,
|
|
88
89
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
90
|
operationID: "listIndustries",
|
|
90
91
|
oAuth2Scopes: [],
|
|
@@ -104,6 +105,7 @@ async function $do(
|
|
|
104
105
|
baseURL: options?.serverURL,
|
|
105
106
|
path: path,
|
|
106
107
|
headers: headers,
|
|
108
|
+
userAgent: client._options.userAgent,
|
|
107
109
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
108
110
|
}, options);
|
|
109
111
|
if (!requestRes.ok) {
|
|
@@ -107,6 +107,7 @@ async function $do(
|
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
110
|
+
options: client._options,
|
|
110
111
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
111
112
|
operationID: "listInstitutions",
|
|
112
113
|
oAuth2Scopes: [],
|
|
@@ -128,6 +129,7 @@ async function $do(
|
|
|
128
129
|
headers: headers,
|
|
129
130
|
query: query,
|
|
130
131
|
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
131
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
134
|
}, options);
|
|
133
135
|
if (!requestRes.ok) {
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { MoovCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import { APIError } from "../models/errors/apierror.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Search for financial institutions by name or routing number.
|
|
28
|
+
*
|
|
29
|
+
* This endpoint returns metadata about each matched institution, including basic identifying details (such as name, routing number, and address) and information about which payment services they support (e.g., ACH, RTP, and Wire).
|
|
30
|
+
*
|
|
31
|
+
* This can be used to validate a financial institution before initiating payment activity, or to check which payment rails are available for a given routing number.
|
|
32
|
+
*
|
|
33
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
34
|
+
* you'll need to specify the `/institutions.read` scope.
|
|
35
|
+
*/
|
|
36
|
+
export function institutionsSearchInstitutions(
|
|
37
|
+
client: MoovCore,
|
|
38
|
+
request: operations.SearchInstitutionsRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
operations.SearchInstitutionsResponse,
|
|
43
|
+
| APIError
|
|
44
|
+
| SDKValidationError
|
|
45
|
+
| UnexpectedClientError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: MoovCore,
|
|
61
|
+
request: operations.SearchInstitutionsRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
operations.SearchInstitutionsResponse,
|
|
67
|
+
| APIError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
| UnexpectedClientError
|
|
70
|
+
| InvalidRequestError
|
|
71
|
+
| RequestAbortedError
|
|
72
|
+
| RequestTimeoutError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
>,
|
|
75
|
+
APICall,
|
|
76
|
+
]
|
|
77
|
+
> {
|
|
78
|
+
const parsed = safeParse(
|
|
79
|
+
request,
|
|
80
|
+
(value) => operations.SearchInstitutionsRequest$outboundSchema.parse(value),
|
|
81
|
+
"Input validation failed",
|
|
82
|
+
);
|
|
83
|
+
if (!parsed.ok) {
|
|
84
|
+
return [parsed, { status: "invalid" }];
|
|
85
|
+
}
|
|
86
|
+
const payload = parsed.value;
|
|
87
|
+
const body = null;
|
|
88
|
+
|
|
89
|
+
const path = pathToFunc("/institutions")();
|
|
90
|
+
|
|
91
|
+
const query = encodeFormQuery({
|
|
92
|
+
"limit": payload.limit,
|
|
93
|
+
"name": payload.name,
|
|
94
|
+
"routingNumber": payload.routingNumber,
|
|
95
|
+
}, { explode: false });
|
|
96
|
+
|
|
97
|
+
const headers = new Headers(compactMap({
|
|
98
|
+
Accept: "application/json",
|
|
99
|
+
"x-moov-version": encodeSimple(
|
|
100
|
+
"x-moov-version",
|
|
101
|
+
client._options.xMoovVersion,
|
|
102
|
+
{ explode: false, charEncoding: "none" },
|
|
103
|
+
),
|
|
104
|
+
}));
|
|
105
|
+
|
|
106
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "searchInstitutions",
|
|
113
|
+
oAuth2Scopes: [],
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.security,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "GET",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
query: query,
|
|
131
|
+
body: body,
|
|
132
|
+
userAgent: client._options.userAgent,
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
|
+
}, options);
|
|
135
|
+
if (!requestRes.ok) {
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
137
|
+
}
|
|
138
|
+
const req = requestRes.value;
|
|
139
|
+
|
|
140
|
+
const doResult = await client._do(req, {
|
|
141
|
+
context,
|
|
142
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const responseFields = {
|
|
152
|
+
HttpMeta: { Response: response, Request: req },
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const [result] = await M.match<
|
|
156
|
+
operations.SearchInstitutionsResponse,
|
|
157
|
+
| APIError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| InvalidRequestError
|
|
161
|
+
| RequestAbortedError
|
|
162
|
+
| RequestTimeoutError
|
|
163
|
+
| ConnectionError
|
|
164
|
+
>(
|
|
165
|
+
M.json(200, operations.SearchInstitutionsResponse$inboundSchema, {
|
|
166
|
+
hdrs: true,
|
|
167
|
+
key: "Result",
|
|
168
|
+
}),
|
|
169
|
+
M.fail([401, 403, 404, 429]),
|
|
170
|
+
M.fail([500, 504]),
|
|
171
|
+
M.fail("4XX"),
|
|
172
|
+
M.fail("5XX"),
|
|
173
|
+
)(response, { extraFields: responseFields });
|
|
174
|
+
if (!result.ok) {
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
@@ -112,6 +112,7 @@ async function $do(
|
|
|
112
112
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
113
113
|
|
|
114
114
|
const context = {
|
|
115
|
+
options: client._options,
|
|
115
116
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
117
|
operationID: "getIssuedCardTransaction",
|
|
117
118
|
oAuth2Scopes: [],
|
|
@@ -132,6 +133,7 @@ async function $do(
|
|
|
132
133
|
path: path,
|
|
133
134
|
headers: headers,
|
|
134
135
|
body: body,
|
|
136
|
+
userAgent: client._options.userAgent,
|
|
135
137
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
138
|
}, options);
|
|
137
139
|
if (!requestRes.ok) {
|
|
@@ -111,6 +111,7 @@ async function $do(
|
|
|
111
111
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
112
|
|
|
113
113
|
const context = {
|
|
114
|
+
options: client._options,
|
|
114
115
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
116
|
operationID: "getIssuedCardAuthorization",
|
|
116
117
|
oAuth2Scopes: [],
|
|
@@ -131,6 +132,7 @@ async function $do(
|
|
|
131
132
|
path: path,
|
|
132
133
|
headers: headers,
|
|
133
134
|
body: body,
|
|
135
|
+
userAgent: client._options.userAgent,
|
|
134
136
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
137
|
}, options);
|
|
136
138
|
if (!requestRes.ok) {
|
|
@@ -113,6 +113,7 @@ async function $do(
|
|
|
113
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
114
|
|
|
115
115
|
const context = {
|
|
116
|
+
options: client._options,
|
|
116
117
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
117
118
|
operationID: "listIssuedCardTransactions",
|
|
118
119
|
oAuth2Scopes: [],
|
|
@@ -134,6 +135,7 @@ async function $do(
|
|
|
134
135
|
headers: headers,
|
|
135
136
|
query: query,
|
|
136
137
|
body: body,
|
|
138
|
+
userAgent: client._options.userAgent,
|
|
137
139
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
138
140
|
}, options);
|
|
139
141
|
if (!requestRes.ok) {
|
|
@@ -118,6 +118,7 @@ async function $do(
|
|
|
118
118
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
119
119
|
|
|
120
120
|
const context = {
|
|
121
|
+
options: client._options,
|
|
121
122
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
122
123
|
operationID: "listIssuedCardAuthorizationEvents",
|
|
123
124
|
oAuth2Scopes: [],
|
|
@@ -139,6 +140,7 @@ async function $do(
|
|
|
139
140
|
headers: headers,
|
|
140
141
|
query: query,
|
|
141
142
|
body: body,
|
|
143
|
+
userAgent: client._options.userAgent,
|
|
142
144
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
145
|
}, options);
|
|
144
146
|
if (!requestRes.ok) {
|
|
@@ -116,6 +116,7 @@ async function $do(
|
|
|
116
116
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
117
|
|
|
118
118
|
const context = {
|
|
119
|
+
options: client._options,
|
|
119
120
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
121
|
operationID: "listIssuedCardAuthorizations",
|
|
121
122
|
oAuth2Scopes: [],
|
|
@@ -137,6 +138,7 @@ async function $do(
|
|
|
137
138
|
headers: headers,
|
|
138
139
|
query: query,
|
|
139
140
|
body: body,
|
|
141
|
+
userAgent: client._options.userAgent,
|
|
140
142
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
141
143
|
}, options);
|
|
142
144
|
if (!requestRes.ok) {
|
|
@@ -104,6 +104,7 @@ async function $do(
|
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
107
|
+
options: client._options,
|
|
107
108
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
109
|
operationID: "createOnboardingInvite",
|
|
109
110
|
oAuth2Scopes: [],
|
|
@@ -124,6 +125,7 @@ async function $do(
|
|
|
124
125
|
path: path,
|
|
125
126
|
headers: headers,
|
|
126
127
|
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
127
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
130
|
}, options);
|
|
129
131
|
if (!requestRes.ok) {
|
|
@@ -105,6 +105,7 @@ async function $do(
|
|
|
105
105
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
106
|
|
|
107
107
|
const context = {
|
|
108
|
+
options: client._options,
|
|
108
109
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
110
|
operationID: "getOnboardingInvite",
|
|
110
111
|
oAuth2Scopes: [],
|
|
@@ -125,6 +126,7 @@ async function $do(
|
|
|
125
126
|
path: path,
|
|
126
127
|
headers: headers,
|
|
127
128
|
body: body,
|
|
129
|
+
userAgent: client._options.userAgent,
|
|
128
130
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
131
|
}, options);
|
|
130
132
|
if (!requestRes.ok) {
|
|
@@ -85,6 +85,7 @@ async function $do(
|
|
|
85
85
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
86
|
|
|
87
87
|
const context = {
|
|
88
|
+
options: client._options,
|
|
88
89
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
90
|
operationID: "listOnboardingInvites",
|
|
90
91
|
oAuth2Scopes: [],
|
|
@@ -104,6 +105,7 @@ async function $do(
|
|
|
104
105
|
baseURL: options?.serverURL,
|
|
105
106
|
path: path,
|
|
106
107
|
headers: headers,
|
|
108
|
+
userAgent: client._options.userAgent,
|
|
107
109
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
108
110
|
}, options);
|
|
109
111
|
if (!requestRes.ok) {
|
|
@@ -105,6 +105,7 @@ async function $do(
|
|
|
105
105
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
106
|
|
|
107
107
|
const context = {
|
|
108
|
+
options: client._options,
|
|
108
109
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
110
|
operationID: "revokeOnboardingInvite",
|
|
110
111
|
oAuth2Scopes: [],
|
|
@@ -125,6 +126,7 @@ async function $do(
|
|
|
125
126
|
path: path,
|
|
126
127
|
headers: headers,
|
|
127
128
|
body: body,
|
|
129
|
+
userAgent: client._options.userAgent,
|
|
128
130
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
129
131
|
}, options);
|
|
130
132
|
if (!requestRes.ok) {
|
|
@@ -110,6 +110,7 @@ async function $do(
|
|
|
110
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
111
|
|
|
112
112
|
const context = {
|
|
113
|
+
options: client._options,
|
|
113
114
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
115
|
operationID: "createPaymentLink",
|
|
115
116
|
oAuth2Scopes: [],
|
|
@@ -130,6 +131,7 @@ async function $do(
|
|
|
130
131
|
path: path,
|
|
131
132
|
headers: headers,
|
|
132
133
|
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
133
135
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
136
|
}, options);
|
|
135
137
|
if (!requestRes.ok) {
|
|
@@ -110,6 +110,7 @@ async function $do(
|
|
|
110
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
111
|
|
|
112
112
|
const context = {
|
|
113
|
+
options: client._options,
|
|
113
114
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
115
|
operationID: "disablePaymentLink",
|
|
115
116
|
oAuth2Scopes: [],
|
|
@@ -130,6 +131,7 @@ async function $do(
|
|
|
130
131
|
path: path,
|
|
131
132
|
headers: headers,
|
|
132
133
|
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
133
135
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
136
|
}, options);
|
|
135
137
|
if (!requestRes.ok) {
|
|
@@ -110,6 +110,7 @@ async function $do(
|
|
|
110
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
111
|
|
|
112
112
|
const context = {
|
|
113
|
+
options: client._options,
|
|
113
114
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
115
|
operationID: "getPaymentLink",
|
|
115
116
|
oAuth2Scopes: [],
|
|
@@ -130,6 +131,7 @@ async function $do(
|
|
|
130
131
|
path: path,
|
|
131
132
|
headers: headers,
|
|
132
133
|
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
133
135
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
134
136
|
}, options);
|
|
135
137
|
if (!requestRes.ok) {
|
|
@@ -119,6 +119,7 @@ async function $do(
|
|
|
119
119
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
120
120
|
|
|
121
121
|
const context = {
|
|
122
|
+
options: client._options,
|
|
122
123
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
123
124
|
operationID: "getPaymentLinkQRCode",
|
|
124
125
|
oAuth2Scopes: [],
|
|
@@ -139,6 +140,7 @@ async function $do(
|
|
|
139
140
|
path: path,
|
|
140
141
|
headers: headers,
|
|
141
142
|
body: body,
|
|
143
|
+
userAgent: client._options.userAgent,
|
|
142
144
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
145
|
}, options);
|
|
144
146
|
if (!requestRes.ok) {
|
|
@@ -104,6 +104,7 @@ async function $do(
|
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
107
|
+
options: client._options,
|
|
107
108
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
108
109
|
operationID: "listPaymentLinks",
|
|
109
110
|
oAuth2Scopes: [],
|
|
@@ -124,6 +125,7 @@ async function $do(
|
|
|
124
125
|
path: path,
|
|
125
126
|
headers: headers,
|
|
126
127
|
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
127
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
128
130
|
}, options);
|
|
129
131
|
if (!requestRes.ok) {
|
|
@@ -116,6 +116,7 @@ async function $do(
|
|
|
116
116
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
117
117
|
|
|
118
118
|
const context = {
|
|
119
|
+
options: client._options,
|
|
119
120
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
121
|
operationID: "updatePaymentLink",
|
|
121
122
|
oAuth2Scopes: [],
|
|
@@ -136,6 +137,7 @@ async function $do(
|
|
|
136
137
|
path: path,
|
|
137
138
|
headers: headers,
|
|
138
139
|
body: body,
|
|
140
|
+
userAgent: client._options.userAgent,
|
|
139
141
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
140
142
|
}, options);
|
|
141
143
|
if (!requestRes.ok) {
|