@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
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type SearchInstitutionsGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type SearchInstitutionsRequest = {
|
|
30
|
+
/**
|
|
31
|
+
* Name of the financial institution. Either `name` or `routingNumber` is required.
|
|
32
|
+
*/
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Routing number for a financial institution. Either `routingNumber` or `name` is required.
|
|
36
|
+
*/
|
|
37
|
+
routingNumber?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Maximum results returned by a search.
|
|
40
|
+
*/
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type SearchInstitutionsResponse = {
|
|
45
|
+
headers: { [k: string]: Array<string> };
|
|
46
|
+
result: components.InstitutionsSearchResponse;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const SearchInstitutionsGlobals$inboundSchema: z.ZodType<
|
|
51
|
+
SearchInstitutionsGlobals,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
unknown
|
|
54
|
+
> = z.object({
|
|
55
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"x-moov-version": "xMoovVersion",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type SearchInstitutionsGlobals$Outbound = {
|
|
64
|
+
"x-moov-version": string;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const SearchInstitutionsGlobals$outboundSchema: z.ZodType<
|
|
69
|
+
SearchInstitutionsGlobals$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
SearchInstitutionsGlobals
|
|
72
|
+
> = z.object({
|
|
73
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
74
|
+
}).transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
xMoovVersion: "x-moov-version",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace SearchInstitutionsGlobals$ {
|
|
85
|
+
/** @deprecated use `SearchInstitutionsGlobals$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = SearchInstitutionsGlobals$inboundSchema;
|
|
87
|
+
/** @deprecated use `SearchInstitutionsGlobals$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema = SearchInstitutionsGlobals$outboundSchema;
|
|
89
|
+
/** @deprecated use `SearchInstitutionsGlobals$Outbound` instead. */
|
|
90
|
+
export type Outbound = SearchInstitutionsGlobals$Outbound;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function searchInstitutionsGlobalsToJSON(
|
|
94
|
+
searchInstitutionsGlobals: SearchInstitutionsGlobals,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
SearchInstitutionsGlobals$outboundSchema.parse(searchInstitutionsGlobals),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function searchInstitutionsGlobalsFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<SearchInstitutionsGlobals, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => SearchInstitutionsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'SearchInstitutionsGlobals' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const SearchInstitutionsRequest$inboundSchema: z.ZodType<
|
|
113
|
+
SearchInstitutionsRequest,
|
|
114
|
+
z.ZodTypeDef,
|
|
115
|
+
unknown
|
|
116
|
+
> = z.object({
|
|
117
|
+
name: z.string().optional(),
|
|
118
|
+
routingNumber: z.string().optional(),
|
|
119
|
+
limit: z.number().int().optional(),
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type SearchInstitutionsRequest$Outbound = {
|
|
124
|
+
name?: string | undefined;
|
|
125
|
+
routingNumber?: string | undefined;
|
|
126
|
+
limit?: number | undefined;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** @internal */
|
|
130
|
+
export const SearchInstitutionsRequest$outboundSchema: z.ZodType<
|
|
131
|
+
SearchInstitutionsRequest$Outbound,
|
|
132
|
+
z.ZodTypeDef,
|
|
133
|
+
SearchInstitutionsRequest
|
|
134
|
+
> = z.object({
|
|
135
|
+
name: z.string().optional(),
|
|
136
|
+
routingNumber: z.string().optional(),
|
|
137
|
+
limit: z.number().int().optional(),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
export namespace SearchInstitutionsRequest$ {
|
|
145
|
+
/** @deprecated use `SearchInstitutionsRequest$inboundSchema` instead. */
|
|
146
|
+
export const inboundSchema = SearchInstitutionsRequest$inboundSchema;
|
|
147
|
+
/** @deprecated use `SearchInstitutionsRequest$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema = SearchInstitutionsRequest$outboundSchema;
|
|
149
|
+
/** @deprecated use `SearchInstitutionsRequest$Outbound` instead. */
|
|
150
|
+
export type Outbound = SearchInstitutionsRequest$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function searchInstitutionsRequestToJSON(
|
|
154
|
+
searchInstitutionsRequest: SearchInstitutionsRequest,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
SearchInstitutionsRequest$outboundSchema.parse(searchInstitutionsRequest),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function searchInstitutionsRequestFromJSON(
|
|
162
|
+
jsonString: string,
|
|
163
|
+
): SafeParseResult<SearchInstitutionsRequest, SDKValidationError> {
|
|
164
|
+
return safeParse(
|
|
165
|
+
jsonString,
|
|
166
|
+
(x) => SearchInstitutionsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
167
|
+
`Failed to parse 'SearchInstitutionsRequest' from JSON`,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** @internal */
|
|
172
|
+
export const SearchInstitutionsResponse$inboundSchema: z.ZodType<
|
|
173
|
+
SearchInstitutionsResponse,
|
|
174
|
+
z.ZodTypeDef,
|
|
175
|
+
unknown
|
|
176
|
+
> = z.object({
|
|
177
|
+
Headers: z.record(z.array(z.string())),
|
|
178
|
+
Result: components.InstitutionsSearchResponse$inboundSchema,
|
|
179
|
+
}).transform((v) => {
|
|
180
|
+
return remap$(v, {
|
|
181
|
+
"Headers": "headers",
|
|
182
|
+
"Result": "result",
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
/** @internal */
|
|
187
|
+
export type SearchInstitutionsResponse$Outbound = {
|
|
188
|
+
Headers: { [k: string]: Array<string> };
|
|
189
|
+
Result: components.InstitutionsSearchResponse$Outbound;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const SearchInstitutionsResponse$outboundSchema: z.ZodType<
|
|
194
|
+
SearchInstitutionsResponse$Outbound,
|
|
195
|
+
z.ZodTypeDef,
|
|
196
|
+
SearchInstitutionsResponse
|
|
197
|
+
> = z.object({
|
|
198
|
+
headers: z.record(z.array(z.string())),
|
|
199
|
+
result: components.InstitutionsSearchResponse$outboundSchema,
|
|
200
|
+
}).transform((v) => {
|
|
201
|
+
return remap$(v, {
|
|
202
|
+
headers: "Headers",
|
|
203
|
+
result: "Result",
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @internal
|
|
209
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
210
|
+
*/
|
|
211
|
+
export namespace SearchInstitutionsResponse$ {
|
|
212
|
+
/** @deprecated use `SearchInstitutionsResponse$inboundSchema` instead. */
|
|
213
|
+
export const inboundSchema = SearchInstitutionsResponse$inboundSchema;
|
|
214
|
+
/** @deprecated use `SearchInstitutionsResponse$outboundSchema` instead. */
|
|
215
|
+
export const outboundSchema = SearchInstitutionsResponse$outboundSchema;
|
|
216
|
+
/** @deprecated use `SearchInstitutionsResponse$Outbound` instead. */
|
|
217
|
+
export type Outbound = SearchInstitutionsResponse$Outbound;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function searchInstitutionsResponseToJSON(
|
|
221
|
+
searchInstitutionsResponse: SearchInstitutionsResponse,
|
|
222
|
+
): string {
|
|
223
|
+
return JSON.stringify(
|
|
224
|
+
SearchInstitutionsResponse$outboundSchema.parse(searchInstitutionsResponse),
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function searchInstitutionsResponseFromJSON(
|
|
229
|
+
jsonString: string,
|
|
230
|
+
): SafeParseResult<SearchInstitutionsResponse, SDKValidationError> {
|
|
231
|
+
return safeParse(
|
|
232
|
+
jsonString,
|
|
233
|
+
(x) => SearchInstitutionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
234
|
+
`Failed to parse 'SearchInstitutionsResponse' from JSON`,
|
|
235
|
+
);
|
|
236
|
+
}
|
package/src/sdk/industries.ts
CHANGED
|
@@ -9,9 +9,9 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
9
9
|
|
|
10
10
|
export class Industries extends ClientSDK {
|
|
11
11
|
/**
|
|
12
|
-
* Returns a list of
|
|
12
|
+
* Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
13
13
|
*
|
|
14
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
14
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
15
15
|
* you'll need to specify the `/profile-enrichment.read` scope.
|
|
16
16
|
*/
|
|
17
17
|
async list(
|
package/src/sdk/institutions.ts
CHANGED
|
@@ -3,11 +3,33 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { institutionsSearch } from "../funcs/institutionsSearch.js";
|
|
6
|
+
import { institutionsSearchInstitutions } from "../funcs/institutionsSearchInstitutions.js";
|
|
6
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
8
|
import * as operations from "../models/operations/index.js";
|
|
8
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
10
|
|
|
10
11
|
export class Institutions extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Search for financial institutions by name or routing number.
|
|
14
|
+
*
|
|
15
|
+
* 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).
|
|
16
|
+
*
|
|
17
|
+
* 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.
|
|
18
|
+
*
|
|
19
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
* you'll need to specify the `/institutions.read` scope.
|
|
21
|
+
*/
|
|
22
|
+
async searchInstitutions(
|
|
23
|
+
request: operations.SearchInstitutionsRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<operations.SearchInstitutionsResponse> {
|
|
26
|
+
return unwrapAsync(institutionsSearchInstitutions(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
11
33
|
/**
|
|
12
34
|
* Search for institutions by either their name or routing number.
|
|
13
35
|
*
|
package/test/README.md
ADDED
package/test/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log("Hello via Bun!");
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "moov-typescript-test",
|
|
3
|
+
"module": "index.ts",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"format": "prettier --write \"**/*.{ts,tsx,md,json}\"",
|
|
7
|
+
"format:check": "prettier --check \"**/*.{ts,tsx,md,json}\"",
|
|
8
|
+
"test": "bun test --timeout 20000",
|
|
9
|
+
"test:verbose": "VERBOSE=1 bun test --timeout 20000"
|
|
10
|
+
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@types/bun": "latest",
|
|
13
|
+
"@types/chance": "^1.1.6",
|
|
14
|
+
"bun-types": "^1.2.2",
|
|
15
|
+
"chance": "^1.1.12",
|
|
16
|
+
"prettier": "^3.1.0",
|
|
17
|
+
"@moovio/sdk": "link:@moovio/sdk"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"typescript": "^5.0.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"remeda": "^2.20.1"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/test/setup.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { beforeAll, afterAll } from "bun:test";
|
|
2
|
+
import { Moov } from "@moovio/sdk";
|
|
3
|
+
import secrets from "./.secrets.json";
|
|
4
|
+
|
|
5
|
+
export let moov: Moov;
|
|
6
|
+
|
|
7
|
+
const verbose = process.env.VERBOSE === "1";
|
|
8
|
+
|
|
9
|
+
type Seen = {
|
|
10
|
+
accountID: string;
|
|
11
|
+
bankAccountID?: string;
|
|
12
|
+
cardID?: string;
|
|
13
|
+
representativeID?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const idsSeen: Set<Seen> = new Set();
|
|
17
|
+
|
|
18
|
+
export const ids = {
|
|
19
|
+
seen: (seen: Seen) => {
|
|
20
|
+
idsSeen.add(seen);
|
|
21
|
+
},
|
|
22
|
+
cleanup: async () => {
|
|
23
|
+
for (const seen of idsSeen) {
|
|
24
|
+
if (seen.representativeID) {
|
|
25
|
+
try {
|
|
26
|
+
console.log("🔄 Removing Representative", seen.representativeID);
|
|
27
|
+
await moov.representatives.delete({ accountID: seen.accountID, representativeID: seen.representativeID! });
|
|
28
|
+
} catch (e) {
|
|
29
|
+
// empty
|
|
30
|
+
}
|
|
31
|
+
} else if (seen.bankAccountID) {
|
|
32
|
+
try {
|
|
33
|
+
console.log("🔄 Removing Bank Account", seen.bankAccountID);
|
|
34
|
+
await moov.bankAccounts.disable({ accountID: seen.accountID, bankAccountID: seen.bankAccountID! });
|
|
35
|
+
} catch (e) {
|
|
36
|
+
// eslint-disable
|
|
37
|
+
}
|
|
38
|
+
} else if (seen.cardID) {
|
|
39
|
+
try {
|
|
40
|
+
console.log("🔄 Removing Card", seen.cardID);
|
|
41
|
+
await moov.cards.disable({ accountID: seen.accountID, cardID: seen.cardID! });
|
|
42
|
+
} catch (e) {
|
|
43
|
+
// empty
|
|
44
|
+
}
|
|
45
|
+
} else if (seen.accountID) {
|
|
46
|
+
try {
|
|
47
|
+
console.log("🔄 Removing Account", seen.accountID);
|
|
48
|
+
await moov.accounts.disconnect({ accountID: seen.accountID });
|
|
49
|
+
} catch (e) {
|
|
50
|
+
// eslint-disable
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
beforeAll(() => {
|
|
58
|
+
if (verbose) {
|
|
59
|
+
// Override global fetch to attach a logger
|
|
60
|
+
const originalFetch = global.fetch;
|
|
61
|
+
global.fetch = async (input: RequestInfo | URL, init?: RequestInit) => {
|
|
62
|
+
const url = input instanceof Request ? input.url : input.toString();
|
|
63
|
+
const headers = input instanceof Request ? input.headers : "";
|
|
64
|
+
const body = input instanceof Request ? input.body : "";
|
|
65
|
+
const method = init?.method || (input instanceof Request ? input.method : "");
|
|
66
|
+
|
|
67
|
+
// Log requests
|
|
68
|
+
console.log(`↗️ API Request | ${method} | URL: ${url}`);
|
|
69
|
+
console.log(`Headers:`);
|
|
70
|
+
console.log(headers);
|
|
71
|
+
console.log(`Body:`);
|
|
72
|
+
console.log(body);
|
|
73
|
+
console.log("\n");
|
|
74
|
+
|
|
75
|
+
// Make the actual request
|
|
76
|
+
const response = await originalFetch(input, init);
|
|
77
|
+
|
|
78
|
+
// Clone the response since it can only be read once
|
|
79
|
+
const responseClone = response.clone();
|
|
80
|
+
|
|
81
|
+
// Log responses
|
|
82
|
+
console.log(`↙️ API Response | ${method} | URL: ${url}`);
|
|
83
|
+
console.log(`Status: ${response.status} ${response.statusText}`);
|
|
84
|
+
console.log(`Headers:`);
|
|
85
|
+
console.log(response.headers);
|
|
86
|
+
console.log(`Body:`);
|
|
87
|
+
try {
|
|
88
|
+
const responseBody = await responseClone.json();
|
|
89
|
+
console.log(JSON.stringify(responseBody, null, 2));
|
|
90
|
+
} catch (e) {
|
|
91
|
+
console.log("<non-JSON response>");
|
|
92
|
+
}
|
|
93
|
+
console.log("\n");
|
|
94
|
+
|
|
95
|
+
return response;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
afterAll(() => {
|
|
99
|
+
global.fetch = originalFetch;
|
|
100
|
+
});
|
|
101
|
+
console.log("ℹ️ Logger setup complete\n\n");
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
moov = new Moov({
|
|
105
|
+
security: {
|
|
106
|
+
username: secrets.username,
|
|
107
|
+
password: secrets.password,
|
|
108
|
+
},
|
|
109
|
+
serverURL: secrets.serverURL,
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
console.log("ℹ️ Moov SDK setup complete\n\n");
|
|
113
|
+
|
|
114
|
+
afterAll(async () => {
|
|
115
|
+
console.log("\n\n🔄 Cleaning up after tests\n\n");
|
|
116
|
+
// Cleanup if we have the IDs available
|
|
117
|
+
await ids.cleanup();
|
|
118
|
+
});
|
|
119
|
+
});
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { expect, test, describe, beforeAll } from "bun:test";
|
|
2
|
+
import { Chance } from "chance";
|
|
3
|
+
import { moov } from "../setup";
|
|
4
|
+
import { createAccount } from "../utils/utils";
|
|
5
|
+
import type { Account, AccountType } from "../../models/components";
|
|
6
|
+
const chance = new Chance();
|
|
7
|
+
|
|
8
|
+
let account: Account;
|
|
9
|
+
|
|
10
|
+
describe("Accounts", () => {
|
|
11
|
+
describe("Account creation", () => {
|
|
12
|
+
test("should create an account", async () => {
|
|
13
|
+
const legalBusinessName = `${chance.company()} ${new Date().getTime()}`;
|
|
14
|
+
const acc = await createAccount({
|
|
15
|
+
profile: {
|
|
16
|
+
business: {
|
|
17
|
+
legalBusinessName,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
expect(acc).toBeDefined();
|
|
23
|
+
expect(acc.accountID).toBeDefined();
|
|
24
|
+
expect(acc.displayName).toEqual(legalBusinessName);
|
|
25
|
+
account = acc;
|
|
26
|
+
});
|
|
27
|
+
describe("Failure cases", () => {
|
|
28
|
+
test("should fail if the account type is not supported", async () => {
|
|
29
|
+
await expect(() =>
|
|
30
|
+
createAccount({
|
|
31
|
+
accountType: "not-a-valid-account-type" as AccountType,
|
|
32
|
+
}),
|
|
33
|
+
).toThrowError();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
test("should fail if we pass an empty business profile", async () => {
|
|
38
|
+
await expect(() =>
|
|
39
|
+
createAccount({
|
|
40
|
+
profile: {},
|
|
41
|
+
}),
|
|
42
|
+
).toThrow();
|
|
43
|
+
// @TODO: Once error hanling is 100% consistent, we should be able to narrow this assertion
|
|
44
|
+
// Right now it's throwing a Zod validation error, but it should be a custom error instead
|
|
45
|
+
// ).toThrowError('API error occurred: {"error":{"profile":"business profile is required for business account"}}');
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
describe("Account-dependent tests", () => {
|
|
50
|
+
beforeAll(async () => {
|
|
51
|
+
if (!account) {
|
|
52
|
+
account = await createAccount();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
describe("Account listing", () => {
|
|
57
|
+
test("should be able to list accounts", async () => {
|
|
58
|
+
const { result } = await moov.accounts.list({
|
|
59
|
+
name: account.displayName,
|
|
60
|
+
});
|
|
61
|
+
expect(result).toBeDefined();
|
|
62
|
+
expect(result.length).toBeGreaterThan(0);
|
|
63
|
+
expect(result[0].accountID).toEqual(account.accountID);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
test("Should be able to filter accounts by type and status", async () => {
|
|
67
|
+
const { result } = await moov.accounts.list({
|
|
68
|
+
type: "business",
|
|
69
|
+
capabilityStatus: "pending",
|
|
70
|
+
});
|
|
71
|
+
expect(result).toBeDefined();
|
|
72
|
+
expect(result.length).toBeGreaterThan(0);
|
|
73
|
+
const { result: result2 } = await moov.accounts.list({
|
|
74
|
+
type: "individual",
|
|
75
|
+
capabilityStatus: "enabled",
|
|
76
|
+
});
|
|
77
|
+
expect(result2).toBeDefined();
|
|
78
|
+
expect(result2.length).toBeGreaterThan(0);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test("should be able to filter accounts by capability", async () => {
|
|
82
|
+
const { result } = await moov.accounts.list({
|
|
83
|
+
capability: "transfers",
|
|
84
|
+
});
|
|
85
|
+
expect(result).toBeDefined();
|
|
86
|
+
expect(result.length).toBeGreaterThan(0);
|
|
87
|
+
const { result: result2 } = await moov.accounts.list({
|
|
88
|
+
capability: "collect-funds",
|
|
89
|
+
});
|
|
90
|
+
expect(result2).toBeDefined();
|
|
91
|
+
expect(result2.length).toBeGreaterThan(0);
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
test("should be able to get an account", async () => {
|
|
96
|
+
const { result } = await moov.accounts.get({ accountID: account.accountID });
|
|
97
|
+
expect(result).toBeDefined();
|
|
98
|
+
expect(result.accountID).toEqual(account.accountID);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
test("should be able to update an account", async () => {
|
|
102
|
+
const legalBusinessName = chance.company();
|
|
103
|
+
const { result } = await moov.accounts.update({
|
|
104
|
+
accountID: account.accountID,
|
|
105
|
+
createAccountUpdate: { profile: { business: { legalBusinessName } } },
|
|
106
|
+
});
|
|
107
|
+
expect(result).toBeDefined();
|
|
108
|
+
expect(result.accountID).toEqual(account.accountID);
|
|
109
|
+
expect(result.profile?.business?.legalBusinessName).toEqual(legalBusinessName);
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
test("should be able to get the terms of service token for an account", async () => {
|
|
113
|
+
const { result } = await moov.accounts.getTermsOfServiceToken({
|
|
114
|
+
origin: "https://example.com",
|
|
115
|
+
referer: "https://example.com",
|
|
116
|
+
});
|
|
117
|
+
expect(result).toBeDefined();
|
|
118
|
+
expect(result.token).toEqual(expect.any(String));
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test("should be able to disconnect an account", async () => {
|
|
122
|
+
const response = await moov.accounts.disconnect({ accountID: account.accountID });
|
|
123
|
+
const headers = response?.headers;
|
|
124
|
+
expect(headers).toBeDefined();
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
});
|