@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,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ACHInstitution,
|
|
11
|
+
ACHInstitution$inboundSchema,
|
|
12
|
+
ACHInstitution$Outbound,
|
|
13
|
+
ACHInstitution$outboundSchema,
|
|
14
|
+
} from "./achinstitution.js";
|
|
15
|
+
import {
|
|
16
|
+
RTPInstitution,
|
|
17
|
+
RTPInstitution$inboundSchema,
|
|
18
|
+
RTPInstitution$Outbound,
|
|
19
|
+
RTPInstitution$outboundSchema,
|
|
20
|
+
} from "./rtpinstitution.js";
|
|
21
|
+
import {
|
|
22
|
+
WireInstitution,
|
|
23
|
+
WireInstitution$inboundSchema,
|
|
24
|
+
WireInstitution$Outbound,
|
|
25
|
+
WireInstitution$outboundSchema,
|
|
26
|
+
} from "./wireinstitution.js";
|
|
27
|
+
|
|
28
|
+
export type InstitutionsSearchResponse = {
|
|
29
|
+
ach: Array<ACHInstitution>;
|
|
30
|
+
rtp: Array<RTPInstitution>;
|
|
31
|
+
wire: Array<WireInstitution>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const InstitutionsSearchResponse$inboundSchema: z.ZodType<
|
|
36
|
+
InstitutionsSearchResponse,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
ach: z.array(ACHInstitution$inboundSchema),
|
|
41
|
+
rtp: z.array(RTPInstitution$inboundSchema),
|
|
42
|
+
wire: z.array(WireInstitution$inboundSchema),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type InstitutionsSearchResponse$Outbound = {
|
|
47
|
+
ach: Array<ACHInstitution$Outbound>;
|
|
48
|
+
rtp: Array<RTPInstitution$Outbound>;
|
|
49
|
+
wire: Array<WireInstitution$Outbound>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const InstitutionsSearchResponse$outboundSchema: z.ZodType<
|
|
54
|
+
InstitutionsSearchResponse$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
InstitutionsSearchResponse
|
|
57
|
+
> = z.object({
|
|
58
|
+
ach: z.array(ACHInstitution$outboundSchema),
|
|
59
|
+
rtp: z.array(RTPInstitution$outboundSchema),
|
|
60
|
+
wire: z.array(WireInstitution$outboundSchema),
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace InstitutionsSearchResponse$ {
|
|
68
|
+
/** @deprecated use `InstitutionsSearchResponse$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = InstitutionsSearchResponse$inboundSchema;
|
|
70
|
+
/** @deprecated use `InstitutionsSearchResponse$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = InstitutionsSearchResponse$outboundSchema;
|
|
72
|
+
/** @deprecated use `InstitutionsSearchResponse$Outbound` instead. */
|
|
73
|
+
export type Outbound = InstitutionsSearchResponse$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function institutionsSearchResponseToJSON(
|
|
77
|
+
institutionsSearchResponse: InstitutionsSearchResponse,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
InstitutionsSearchResponse$outboundSchema.parse(institutionsSearchResponse),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function institutionsSearchResponseFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<InstitutionsSearchResponse, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => InstitutionsSearchResponse$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'InstitutionsSearchResponse' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
RTPServices,
|
|
11
|
+
RTPServices$inboundSchema,
|
|
12
|
+
RTPServices$Outbound,
|
|
13
|
+
RTPServices$outboundSchema,
|
|
14
|
+
} from "./rtpservices.js";
|
|
15
|
+
|
|
16
|
+
export type RTPInstitution = {
|
|
17
|
+
/**
|
|
18
|
+
* Name of the financial institution.
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
routingNumber: string;
|
|
22
|
+
services: RTPServices;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const RTPInstitution$inboundSchema: z.ZodType<
|
|
27
|
+
RTPInstitution,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
name: z.string(),
|
|
32
|
+
routingNumber: z.string(),
|
|
33
|
+
services: RTPServices$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type RTPInstitution$Outbound = {
|
|
38
|
+
name: string;
|
|
39
|
+
routingNumber: string;
|
|
40
|
+
services: RTPServices$Outbound;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const RTPInstitution$outboundSchema: z.ZodType<
|
|
45
|
+
RTPInstitution$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
RTPInstitution
|
|
48
|
+
> = z.object({
|
|
49
|
+
name: z.string(),
|
|
50
|
+
routingNumber: z.string(),
|
|
51
|
+
services: RTPServices$outboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace RTPInstitution$ {
|
|
59
|
+
/** @deprecated use `RTPInstitution$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = RTPInstitution$inboundSchema;
|
|
61
|
+
/** @deprecated use `RTPInstitution$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = RTPInstitution$outboundSchema;
|
|
63
|
+
/** @deprecated use `RTPInstitution$Outbound` instead. */
|
|
64
|
+
export type Outbound = RTPInstitution$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function rtpInstitutionToJSON(rtpInstitution: RTPInstitution): string {
|
|
68
|
+
return JSON.stringify(RTPInstitution$outboundSchema.parse(rtpInstitution));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function rtpInstitutionFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<RTPInstitution, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => RTPInstitution$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'RTPInstitution' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type RTPServices = {
|
|
11
|
+
/**
|
|
12
|
+
* Can the institution receive payments
|
|
13
|
+
*/
|
|
14
|
+
receivePayments: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Can the institution receive request for payment messages
|
|
17
|
+
*/
|
|
18
|
+
receiveRequestForPayment: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const RTPServices$inboundSchema: z.ZodType<
|
|
23
|
+
RTPServices,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
receivePayments: z.boolean(),
|
|
28
|
+
receiveRequestForPayment: z.boolean(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type RTPServices$Outbound = {
|
|
33
|
+
receivePayments: boolean;
|
|
34
|
+
receiveRequestForPayment: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const RTPServices$outboundSchema: z.ZodType<
|
|
39
|
+
RTPServices$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
RTPServices
|
|
42
|
+
> = z.object({
|
|
43
|
+
receivePayments: z.boolean(),
|
|
44
|
+
receiveRequestForPayment: z.boolean(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace RTPServices$ {
|
|
52
|
+
/** @deprecated use `RTPServices$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = RTPServices$inboundSchema;
|
|
54
|
+
/** @deprecated use `RTPServices$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = RTPServices$outboundSchema;
|
|
56
|
+
/** @deprecated use `RTPServices$Outbound` instead. */
|
|
57
|
+
export type Outbound = RTPServices$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function rtpServicesToJSON(rtpServices: RTPServices): string {
|
|
61
|
+
return JSON.stringify(RTPServices$outboundSchema.parse(rtpServices));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function rtpServicesFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<RTPServices, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => RTPServices$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'RTPServices' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -11,6 +11,12 @@ import {
|
|
|
11
11
|
SweepStatus$inboundSchema,
|
|
12
12
|
SweepStatus$outboundSchema,
|
|
13
13
|
} from "./sweepstatus.js";
|
|
14
|
+
import {
|
|
15
|
+
SweepSubtotal,
|
|
16
|
+
SweepSubtotal$inboundSchema,
|
|
17
|
+
SweepSubtotal$Outbound,
|
|
18
|
+
SweepSubtotal$outboundSchema,
|
|
19
|
+
} from "./sweepsubtotal.js";
|
|
14
20
|
|
|
15
21
|
export type Sweep = {
|
|
16
22
|
sweepID: string;
|
|
@@ -52,6 +58,10 @@ export type Sweep = {
|
|
|
52
58
|
* The text that appears on the banking statement. The default descriptor is a 10 character ID if an override is not set in the sweep configs statementDescriptor.
|
|
53
59
|
*/
|
|
54
60
|
statementDescriptor?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The subtotal of each transaction type contributing to the sweep's accrued amount.
|
|
63
|
+
*/
|
|
64
|
+
subtotals?: Array<SweepSubtotal> | undefined;
|
|
55
65
|
};
|
|
56
66
|
|
|
57
67
|
/** @internal */
|
|
@@ -73,6 +83,7 @@ export const Sweep$inboundSchema: z.ZodType<Sweep, z.ZodTypeDef, unknown> = z
|
|
|
73
83
|
transferID: z.string().optional(),
|
|
74
84
|
transferAmount: z.string().optional(),
|
|
75
85
|
statementDescriptor: z.string().optional(),
|
|
86
|
+
subtotals: z.array(SweepSubtotal$inboundSchema).optional(),
|
|
76
87
|
});
|
|
77
88
|
|
|
78
89
|
/** @internal */
|
|
@@ -89,6 +100,7 @@ export type Sweep$Outbound = {
|
|
|
89
100
|
transferID?: string | undefined;
|
|
90
101
|
transferAmount?: string | undefined;
|
|
91
102
|
statementDescriptor?: string | undefined;
|
|
103
|
+
subtotals?: Array<SweepSubtotal$Outbound> | undefined;
|
|
92
104
|
};
|
|
93
105
|
|
|
94
106
|
/** @internal */
|
|
@@ -109,6 +121,7 @@ export const Sweep$outboundSchema: z.ZodType<
|
|
|
109
121
|
transferID: z.string().optional(),
|
|
110
122
|
transferAmount: z.string().optional(),
|
|
111
123
|
statementDescriptor: z.string().optional(),
|
|
124
|
+
subtotals: z.array(SweepSubtotal$outboundSchema).optional(),
|
|
112
125
|
});
|
|
113
126
|
|
|
114
127
|
/**
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AmountDecimal,
|
|
11
|
+
AmountDecimal$inboundSchema,
|
|
12
|
+
AmountDecimal$Outbound,
|
|
13
|
+
AmountDecimal$outboundSchema,
|
|
14
|
+
} from "./amountdecimal.js";
|
|
15
|
+
import {
|
|
16
|
+
WalletTransactionType,
|
|
17
|
+
WalletTransactionType$inboundSchema,
|
|
18
|
+
WalletTransactionType$outboundSchema,
|
|
19
|
+
} from "./wallettransactiontype.js";
|
|
20
|
+
|
|
21
|
+
export type SweepSubtotal = {
|
|
22
|
+
/**
|
|
23
|
+
* The type of wallet transaction the subtotal is for.
|
|
24
|
+
*/
|
|
25
|
+
type: WalletTransactionType;
|
|
26
|
+
/**
|
|
27
|
+
* The number of transactions of this type accrued in the sweep.
|
|
28
|
+
*/
|
|
29
|
+
count: number;
|
|
30
|
+
/**
|
|
31
|
+
* The value of transactions of this type accrued in the sweep.
|
|
32
|
+
*/
|
|
33
|
+
amount: AmountDecimal;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const SweepSubtotal$inboundSchema: z.ZodType<
|
|
38
|
+
SweepSubtotal,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
type: WalletTransactionType$inboundSchema,
|
|
43
|
+
count: z.number().int(),
|
|
44
|
+
amount: AmountDecimal$inboundSchema,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type SweepSubtotal$Outbound = {
|
|
49
|
+
type: string;
|
|
50
|
+
count: number;
|
|
51
|
+
amount: AmountDecimal$Outbound;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const SweepSubtotal$outboundSchema: z.ZodType<
|
|
56
|
+
SweepSubtotal$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
SweepSubtotal
|
|
59
|
+
> = z.object({
|
|
60
|
+
type: WalletTransactionType$outboundSchema,
|
|
61
|
+
count: z.number().int(),
|
|
62
|
+
amount: AmountDecimal$outboundSchema,
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export namespace SweepSubtotal$ {
|
|
70
|
+
/** @deprecated use `SweepSubtotal$inboundSchema` instead. */
|
|
71
|
+
export const inboundSchema = SweepSubtotal$inboundSchema;
|
|
72
|
+
/** @deprecated use `SweepSubtotal$outboundSchema` instead. */
|
|
73
|
+
export const outboundSchema = SweepSubtotal$outboundSchema;
|
|
74
|
+
/** @deprecated use `SweepSubtotal$Outbound` instead. */
|
|
75
|
+
export type Outbound = SweepSubtotal$Outbound;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function sweepSubtotalToJSON(sweepSubtotal: SweepSubtotal): string {
|
|
79
|
+
return JSON.stringify(SweepSubtotal$outboundSchema.parse(sweepSubtotal));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function sweepSubtotalFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<SweepSubtotal, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => SweepSubtotal$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'SweepSubtotal' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
Address,
|
|
11
|
+
Address$inboundSchema,
|
|
12
|
+
Address$Outbound,
|
|
13
|
+
Address$outboundSchema,
|
|
14
|
+
} from "./address.js";
|
|
15
|
+
import {
|
|
16
|
+
WireServices,
|
|
17
|
+
WireServices$inboundSchema,
|
|
18
|
+
WireServices$Outbound,
|
|
19
|
+
WireServices$outboundSchema,
|
|
20
|
+
} from "./wireservices.js";
|
|
21
|
+
|
|
22
|
+
export type WireInstitution = {
|
|
23
|
+
/**
|
|
24
|
+
* Name of the financial institution.
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
routingNumber: string;
|
|
28
|
+
address?: Address | undefined;
|
|
29
|
+
services: WireServices;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const WireInstitution$inboundSchema: z.ZodType<
|
|
34
|
+
WireInstitution,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
name: z.string(),
|
|
39
|
+
routingNumber: z.string(),
|
|
40
|
+
address: Address$inboundSchema.optional(),
|
|
41
|
+
services: WireServices$inboundSchema,
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type WireInstitution$Outbound = {
|
|
46
|
+
name: string;
|
|
47
|
+
routingNumber: string;
|
|
48
|
+
address?: Address$Outbound | undefined;
|
|
49
|
+
services: WireServices$Outbound;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const WireInstitution$outboundSchema: z.ZodType<
|
|
54
|
+
WireInstitution$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
WireInstitution
|
|
57
|
+
> = z.object({
|
|
58
|
+
name: z.string(),
|
|
59
|
+
routingNumber: z.string(),
|
|
60
|
+
address: Address$outboundSchema.optional(),
|
|
61
|
+
services: WireServices$outboundSchema,
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace WireInstitution$ {
|
|
69
|
+
/** @deprecated use `WireInstitution$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = WireInstitution$inboundSchema;
|
|
71
|
+
/** @deprecated use `WireInstitution$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = WireInstitution$outboundSchema;
|
|
73
|
+
/** @deprecated use `WireInstitution$Outbound` instead. */
|
|
74
|
+
export type Outbound = WireInstitution$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function wireInstitutionToJSON(
|
|
78
|
+
wireInstitution: WireInstitution,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(WireInstitution$outboundSchema.parse(wireInstitution));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function wireInstitutionFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<WireInstitution, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => WireInstitution$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'WireInstitution' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WireServices = {
|
|
11
|
+
/**
|
|
12
|
+
* The institution's capability to process standard Fedwire funds transfers.
|
|
13
|
+
*/
|
|
14
|
+
fundsTransferStatus: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The institution's capability for settlement-only transfers.
|
|
17
|
+
*/
|
|
18
|
+
fundsSettlementOnlyStatus: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The institution's capability to handle transfers of securities.
|
|
21
|
+
*/
|
|
22
|
+
bookEntrySecuritiesTransferStatus: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const WireServices$inboundSchema: z.ZodType<
|
|
27
|
+
WireServices,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
fundsTransferStatus: z.boolean(),
|
|
32
|
+
fundsSettlementOnlyStatus: z.boolean(),
|
|
33
|
+
bookEntrySecuritiesTransferStatus: z.boolean(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type WireServices$Outbound = {
|
|
38
|
+
fundsTransferStatus: boolean;
|
|
39
|
+
fundsSettlementOnlyStatus: boolean;
|
|
40
|
+
bookEntrySecuritiesTransferStatus: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const WireServices$outboundSchema: z.ZodType<
|
|
45
|
+
WireServices$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
WireServices
|
|
48
|
+
> = z.object({
|
|
49
|
+
fundsTransferStatus: z.boolean(),
|
|
50
|
+
fundsSettlementOnlyStatus: z.boolean(),
|
|
51
|
+
bookEntrySecuritiesTransferStatus: z.boolean(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace WireServices$ {
|
|
59
|
+
/** @deprecated use `WireServices$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = WireServices$inboundSchema;
|
|
61
|
+
/** @deprecated use `WireServices$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = WireServices$outboundSchema;
|
|
63
|
+
/** @deprecated use `WireServices$Outbound` instead. */
|
|
64
|
+
export type Outbound = WireServices$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function wireServicesToJSON(wireServices: WireServices): string {
|
|
68
|
+
return JSON.stringify(WireServices$outboundSchema.parse(wireServices));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function wireServicesFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<WireServices, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => WireServices$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'WireServices' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -3,22 +3,37 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export class APIError extends Error {
|
|
6
|
+
/**
|
|
7
|
+
* HTTP status code
|
|
8
|
+
*/
|
|
6
9
|
public readonly statusCode: number;
|
|
10
|
+
/**
|
|
11
|
+
* HTTP content type
|
|
12
|
+
*/
|
|
7
13
|
public readonly contentType: string;
|
|
14
|
+
/**
|
|
15
|
+
* HTTP body
|
|
16
|
+
*/
|
|
17
|
+
public readonly body: string;
|
|
18
|
+
/**
|
|
19
|
+
* Raw response
|
|
20
|
+
*/
|
|
21
|
+
public readonly rawResponse: Response;
|
|
8
22
|
|
|
9
23
|
constructor(
|
|
10
24
|
message: string,
|
|
11
|
-
|
|
12
|
-
|
|
25
|
+
rawResponse: Response,
|
|
26
|
+
body: string = "",
|
|
13
27
|
) {
|
|
14
28
|
const statusCode = rawResponse.status;
|
|
15
29
|
const contentType = rawResponse.headers.get("content-type") || "";
|
|
16
30
|
const bodyString = body.length > 0 ? `\n${body}` : "";
|
|
17
|
-
|
|
18
31
|
super(
|
|
19
32
|
`${message}: Status ${statusCode} Content-Type ${contentType} Body ${bodyString}`,
|
|
20
33
|
);
|
|
21
34
|
|
|
35
|
+
this.body = body;
|
|
36
|
+
this.rawResponse = rawResponse;
|
|
22
37
|
this.statusCode = statusCode;
|
|
23
38
|
this.contentType = contentType;
|
|
24
39
|
|
|
@@ -119,6 +119,7 @@ export * from "./requestcard.js";
|
|
|
119
119
|
export * from "./retrievefees.js";
|
|
120
120
|
export * from "./revokeaccesstoken.js";
|
|
121
121
|
export * from "./revokeonboardinginvite.js";
|
|
122
|
+
export * from "./searchinstitutions.js";
|
|
122
123
|
export * from "./submitdisputeevidence.js";
|
|
123
124
|
export * from "./testendtoendtoken.js";
|
|
124
125
|
export * from "./updateaccount.js";
|