@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
package/README.md
CHANGED
|
@@ -177,6 +177,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
|
|
|
177
177
|
import { Moov } from "@moovio/sdk";
|
|
178
178
|
|
|
179
179
|
const moov = new Moov({
|
|
180
|
+
xMoovVersion: "v2024.01.00",
|
|
180
181
|
security: {
|
|
181
182
|
username: "",
|
|
182
183
|
password: "",
|
|
@@ -187,95 +188,12 @@ async function run() {
|
|
|
187
188
|
const result = await moov.accounts.create({
|
|
188
189
|
accountType: "business",
|
|
189
190
|
profile: {
|
|
190
|
-
individual: {
|
|
191
|
-
name: {
|
|
192
|
-
firstName: "Jordan",
|
|
193
|
-
middleName: "Reese",
|
|
194
|
-
lastName: "Lee",
|
|
195
|
-
suffix: "Jr",
|
|
196
|
-
},
|
|
197
|
-
phone: {
|
|
198
|
-
number: "8185551212",
|
|
199
|
-
countryCode: "1",
|
|
200
|
-
},
|
|
201
|
-
email: "jordan.lee@classbooker.dev",
|
|
202
|
-
address: {
|
|
203
|
-
addressLine1: "123 Main Street",
|
|
204
|
-
addressLine2: "Apt 302",
|
|
205
|
-
city: "Boulder",
|
|
206
|
-
stateOrProvince: "CO",
|
|
207
|
-
postalCode: "80301",
|
|
208
|
-
country: "US",
|
|
209
|
-
},
|
|
210
|
-
birthDate: {
|
|
211
|
-
day: 9,
|
|
212
|
-
month: 11,
|
|
213
|
-
year: 1989,
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
191
|
business: {
|
|
217
|
-
legalBusinessName: "
|
|
218
|
-
businessType: "llc",
|
|
219
|
-
address: {
|
|
220
|
-
addressLine1: "123 Main Street",
|
|
221
|
-
addressLine2: "Apt 302",
|
|
222
|
-
city: "Boulder",
|
|
223
|
-
stateOrProvince: "CO",
|
|
224
|
-
postalCode: "80301",
|
|
225
|
-
country: "US",
|
|
226
|
-
},
|
|
227
|
-
phone: {
|
|
228
|
-
number: "8185551212",
|
|
229
|
-
countryCode: "1",
|
|
230
|
-
},
|
|
231
|
-
email: "jordan.lee@classbooker.dev",
|
|
232
|
-
description: "Local fitness gym paying out instructors",
|
|
233
|
-
taxID: {
|
|
234
|
-
ein: {
|
|
235
|
-
number: "12-3456789",
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
industryCodes: {
|
|
239
|
-
naics: "713940",
|
|
240
|
-
sic: "7991",
|
|
241
|
-
mcc: "7997",
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
metadata: {
|
|
246
|
-
"optional": "metadata",
|
|
247
|
-
},
|
|
248
|
-
termsOfService: {
|
|
249
|
-
token:
|
|
250
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
251
|
-
},
|
|
252
|
-
customerSupport: {
|
|
253
|
-
phone: {
|
|
254
|
-
number: "8185551212",
|
|
255
|
-
countryCode: "1",
|
|
256
|
-
},
|
|
257
|
-
email: "jordan.lee@classbooker.dev",
|
|
258
|
-
address: {
|
|
259
|
-
addressLine1: "123 Main Street",
|
|
260
|
-
addressLine2: "Apt 302",
|
|
261
|
-
city: "Boulder",
|
|
262
|
-
stateOrProvince: "CO",
|
|
263
|
-
postalCode: "80301",
|
|
264
|
-
country: "US",
|
|
192
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
265
193
|
},
|
|
266
194
|
},
|
|
267
|
-
settings: {
|
|
268
|
-
cardPayment: {
|
|
269
|
-
statementDescriptor: "Whole Body Fitness",
|
|
270
|
-
},
|
|
271
|
-
achPayment: {
|
|
272
|
-
companyName: "WholeBodyFitness",
|
|
273
|
-
},
|
|
274
|
-
},
|
|
275
|
-
mode: "production",
|
|
276
195
|
});
|
|
277
196
|
|
|
278
|
-
// Handle the result
|
|
279
197
|
console.log(result);
|
|
280
198
|
}
|
|
281
199
|
|
|
@@ -304,101 +222,19 @@ const moov = new Moov({
|
|
|
304
222
|
username: "",
|
|
305
223
|
password: "",
|
|
306
224
|
},
|
|
225
|
+
xMoovVersion: "v2024.01.00",
|
|
307
226
|
});
|
|
308
227
|
|
|
309
228
|
async function run() {
|
|
310
229
|
const result = await moov.accounts.create({
|
|
311
230
|
accountType: "business",
|
|
312
231
|
profile: {
|
|
313
|
-
individual: {
|
|
314
|
-
name: {
|
|
315
|
-
firstName: "Jordan",
|
|
316
|
-
middleName: "Reese",
|
|
317
|
-
lastName: "Lee",
|
|
318
|
-
suffix: "Jr",
|
|
319
|
-
},
|
|
320
|
-
phone: {
|
|
321
|
-
number: "8185551212",
|
|
322
|
-
countryCode: "1",
|
|
323
|
-
},
|
|
324
|
-
email: "jordan.lee@classbooker.dev",
|
|
325
|
-
address: {
|
|
326
|
-
addressLine1: "123 Main Street",
|
|
327
|
-
addressLine2: "Apt 302",
|
|
328
|
-
city: "Boulder",
|
|
329
|
-
stateOrProvince: "CO",
|
|
330
|
-
postalCode: "80301",
|
|
331
|
-
country: "US",
|
|
332
|
-
},
|
|
333
|
-
birthDate: {
|
|
334
|
-
day: 9,
|
|
335
|
-
month: 11,
|
|
336
|
-
year: 1989,
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
232
|
business: {
|
|
340
|
-
legalBusinessName: "
|
|
341
|
-
businessType: "llc",
|
|
342
|
-
address: {
|
|
343
|
-
addressLine1: "123 Main Street",
|
|
344
|
-
addressLine2: "Apt 302",
|
|
345
|
-
city: "Boulder",
|
|
346
|
-
stateOrProvince: "CO",
|
|
347
|
-
postalCode: "80301",
|
|
348
|
-
country: "US",
|
|
349
|
-
},
|
|
350
|
-
phone: {
|
|
351
|
-
number: "8185551212",
|
|
352
|
-
countryCode: "1",
|
|
353
|
-
},
|
|
354
|
-
email: "jordan.lee@classbooker.dev",
|
|
355
|
-
description: "Local fitness gym paying out instructors",
|
|
356
|
-
taxID: {
|
|
357
|
-
ein: {
|
|
358
|
-
number: "12-3456789",
|
|
359
|
-
},
|
|
360
|
-
},
|
|
361
|
-
industryCodes: {
|
|
362
|
-
naics: "713940",
|
|
363
|
-
sic: "7991",
|
|
364
|
-
mcc: "7997",
|
|
365
|
-
},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
metadata: {
|
|
369
|
-
"optional": "metadata",
|
|
370
|
-
},
|
|
371
|
-
termsOfService: {
|
|
372
|
-
token:
|
|
373
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
374
|
-
},
|
|
375
|
-
customerSupport: {
|
|
376
|
-
phone: {
|
|
377
|
-
number: "8185551212",
|
|
378
|
-
countryCode: "1",
|
|
379
|
-
},
|
|
380
|
-
email: "jordan.lee@classbooker.dev",
|
|
381
|
-
address: {
|
|
382
|
-
addressLine1: "123 Main Street",
|
|
383
|
-
addressLine2: "Apt 302",
|
|
384
|
-
city: "Boulder",
|
|
385
|
-
stateOrProvince: "CO",
|
|
386
|
-
postalCode: "80301",
|
|
387
|
-
country: "US",
|
|
388
|
-
},
|
|
389
|
-
},
|
|
390
|
-
settings: {
|
|
391
|
-
cardPayment: {
|
|
392
|
-
statementDescriptor: "Whole Body Fitness",
|
|
393
|
-
},
|
|
394
|
-
achPayment: {
|
|
395
|
-
companyName: "WholeBodyFitness",
|
|
233
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
396
234
|
},
|
|
397
235
|
},
|
|
398
|
-
mode: "production",
|
|
399
236
|
});
|
|
400
237
|
|
|
401
|
-
// Handle the result
|
|
402
238
|
console.log(result);
|
|
403
239
|
}
|
|
404
240
|
|
|
@@ -912,13 +748,21 @@ you'll need to specify the `/accounts/{accountID}/files.read` scope.
|
|
|
912
748
|
|
|
913
749
|
### [industries](docs/sdks/industries/README.md)
|
|
914
750
|
|
|
915
|
-
* [list](docs/sdks/industries/README.md#list) - Returns a list of
|
|
751
|
+
* [list](docs/sdks/industries/README.md#list) - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
916
752
|
|
|
917
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
753
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
918
754
|
you'll need to specify the `/profile-enrichment.read` scope.
|
|
919
755
|
|
|
920
756
|
### [institutions](docs/sdks/institutions/README.md)
|
|
921
757
|
|
|
758
|
+
* [searchInstitutions](docs/sdks/institutions/README.md#searchinstitutions) - Search for financial institutions by name or routing number.
|
|
759
|
+
|
|
760
|
+
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).
|
|
761
|
+
|
|
762
|
+
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.
|
|
763
|
+
|
|
764
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
765
|
+
you'll need to specify the `/institutions.read` scope.
|
|
922
766
|
* [search](docs/sdks/institutions/README.md#search) - Search for institutions by either their name or routing number.
|
|
923
767
|
|
|
924
768
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -1718,14 +1562,22 @@ and png.
|
|
|
1718
1562
|
|
|
1719
1563
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1720
1564
|
you'll need to specify the `/accounts/{accountID}/files.write` scope.
|
|
1721
|
-
- [`industriesList`](docs/sdks/industries/README.md#list) - Returns a list of
|
|
1565
|
+
- [`industriesList`](docs/sdks/industries/README.md#list) - Returns a list of industries relevant to merchant profile enrichment. Results are ordered by industry name.
|
|
1722
1566
|
|
|
1723
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1567
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/),
|
|
1724
1568
|
you'll need to specify the `/profile-enrichment.read` scope.
|
|
1725
1569
|
- [`institutionsSearch`](docs/sdks/institutions/README.md#search) - Search for institutions by either their name or routing number.
|
|
1726
1570
|
|
|
1727
1571
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1728
1572
|
you'll need to specify the `/fed.read` scope.
|
|
1573
|
+
- [`institutionsSearchInstitutions`](docs/sdks/institutions/README.md#searchinstitutions) - Search for financial institutions by name or routing number.
|
|
1574
|
+
|
|
1575
|
+
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).
|
|
1576
|
+
|
|
1577
|
+
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.
|
|
1578
|
+
|
|
1579
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
1580
|
+
you'll need to specify the `/institutions.read` scope.
|
|
1729
1581
|
- [`issuingTransactionsGet`](docs/sdks/issuingtransactions/README.md#get) - Retrieves details of an issued card transaction associated with a specific Moov account.
|
|
1730
1582
|
|
|
1731
1583
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
@@ -2036,6 +1888,7 @@ import { Moov } from "@moovio/sdk";
|
|
|
2036
1888
|
import { openAsBlob } from "node:fs";
|
|
2037
1889
|
|
|
2038
1890
|
const moov = new Moov({
|
|
1891
|
+
xMoovVersion: "v2024.01.00",
|
|
2039
1892
|
security: {
|
|
2040
1893
|
username: "",
|
|
2041
1894
|
password: "",
|
|
@@ -2044,15 +1897,14 @@ const moov = new Moov({
|
|
|
2044
1897
|
|
|
2045
1898
|
async function run() {
|
|
2046
1899
|
const result = await moov.disputes.uploadEvidenceFile({
|
|
2047
|
-
accountID: "
|
|
2048
|
-
disputeID: "
|
|
1900
|
+
accountID: "c09fd2f8-75fb-4ed9-be03-f8565d3ddc67",
|
|
1901
|
+
disputeID: "ad27f84d-00b1-4db0-8cf5-be001d71251d",
|
|
2049
1902
|
createEvidenceFileMultiPart: {
|
|
2050
1903
|
file: await openAsBlob("example.file"),
|
|
2051
|
-
evidenceType: "
|
|
1904
|
+
evidenceType: "cancelation-policy",
|
|
2052
1905
|
},
|
|
2053
1906
|
});
|
|
2054
1907
|
|
|
2055
|
-
// Handle the result
|
|
2056
1908
|
console.log(result);
|
|
2057
1909
|
}
|
|
2058
1910
|
|
|
@@ -2071,6 +1923,7 @@ To change the default retry strategy for a single API call, simply provide a ret
|
|
|
2071
1923
|
import { Moov } from "@moovio/sdk";
|
|
2072
1924
|
|
|
2073
1925
|
const moov = new Moov({
|
|
1926
|
+
xMoovVersion: "v2024.01.00",
|
|
2074
1927
|
security: {
|
|
2075
1928
|
username: "",
|
|
2076
1929
|
password: "",
|
|
@@ -2081,92 +1934,10 @@ async function run() {
|
|
|
2081
1934
|
const result = await moov.accounts.create({
|
|
2082
1935
|
accountType: "business",
|
|
2083
1936
|
profile: {
|
|
2084
|
-
individual: {
|
|
2085
|
-
name: {
|
|
2086
|
-
firstName: "Jordan",
|
|
2087
|
-
middleName: "Reese",
|
|
2088
|
-
lastName: "Lee",
|
|
2089
|
-
suffix: "Jr",
|
|
2090
|
-
},
|
|
2091
|
-
phone: {
|
|
2092
|
-
number: "8185551212",
|
|
2093
|
-
countryCode: "1",
|
|
2094
|
-
},
|
|
2095
|
-
email: "jordan.lee@classbooker.dev",
|
|
2096
|
-
address: {
|
|
2097
|
-
addressLine1: "123 Main Street",
|
|
2098
|
-
addressLine2: "Apt 302",
|
|
2099
|
-
city: "Boulder",
|
|
2100
|
-
stateOrProvince: "CO",
|
|
2101
|
-
postalCode: "80301",
|
|
2102
|
-
country: "US",
|
|
2103
|
-
},
|
|
2104
|
-
birthDate: {
|
|
2105
|
-
day: 9,
|
|
2106
|
-
month: 11,
|
|
2107
|
-
year: 1989,
|
|
2108
|
-
},
|
|
2109
|
-
},
|
|
2110
1937
|
business: {
|
|
2111
|
-
legalBusinessName: "
|
|
2112
|
-
businessType: "llc",
|
|
2113
|
-
address: {
|
|
2114
|
-
addressLine1: "123 Main Street",
|
|
2115
|
-
addressLine2: "Apt 302",
|
|
2116
|
-
city: "Boulder",
|
|
2117
|
-
stateOrProvince: "CO",
|
|
2118
|
-
postalCode: "80301",
|
|
2119
|
-
country: "US",
|
|
2120
|
-
},
|
|
2121
|
-
phone: {
|
|
2122
|
-
number: "8185551212",
|
|
2123
|
-
countryCode: "1",
|
|
2124
|
-
},
|
|
2125
|
-
email: "jordan.lee@classbooker.dev",
|
|
2126
|
-
description: "Local fitness gym paying out instructors",
|
|
2127
|
-
taxID: {
|
|
2128
|
-
ein: {
|
|
2129
|
-
number: "12-3456789",
|
|
2130
|
-
},
|
|
2131
|
-
},
|
|
2132
|
-
industryCodes: {
|
|
2133
|
-
naics: "713940",
|
|
2134
|
-
sic: "7991",
|
|
2135
|
-
mcc: "7997",
|
|
2136
|
-
},
|
|
1938
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
2137
1939
|
},
|
|
2138
1940
|
},
|
|
2139
|
-
metadata: {
|
|
2140
|
-
"optional": "metadata",
|
|
2141
|
-
},
|
|
2142
|
-
termsOfService: {
|
|
2143
|
-
token:
|
|
2144
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
2145
|
-
},
|
|
2146
|
-
customerSupport: {
|
|
2147
|
-
phone: {
|
|
2148
|
-
number: "8185551212",
|
|
2149
|
-
countryCode: "1",
|
|
2150
|
-
},
|
|
2151
|
-
email: "jordan.lee@classbooker.dev",
|
|
2152
|
-
address: {
|
|
2153
|
-
addressLine1: "123 Main Street",
|
|
2154
|
-
addressLine2: "Apt 302",
|
|
2155
|
-
city: "Boulder",
|
|
2156
|
-
stateOrProvince: "CO",
|
|
2157
|
-
postalCode: "80301",
|
|
2158
|
-
country: "US",
|
|
2159
|
-
},
|
|
2160
|
-
},
|
|
2161
|
-
settings: {
|
|
2162
|
-
cardPayment: {
|
|
2163
|
-
statementDescriptor: "Whole Body Fitness",
|
|
2164
|
-
},
|
|
2165
|
-
achPayment: {
|
|
2166
|
-
companyName: "WholeBodyFitness",
|
|
2167
|
-
},
|
|
2168
|
-
},
|
|
2169
|
-
mode: "production",
|
|
2170
1941
|
}, {
|
|
2171
1942
|
retries: {
|
|
2172
1943
|
strategy: "backoff",
|
|
@@ -2180,7 +1951,6 @@ async function run() {
|
|
|
2180
1951
|
},
|
|
2181
1952
|
});
|
|
2182
1953
|
|
|
2183
|
-
// Handle the result
|
|
2184
1954
|
console.log(result);
|
|
2185
1955
|
}
|
|
2186
1956
|
|
|
@@ -2203,6 +1973,7 @@ const moov = new Moov({
|
|
|
2203
1973
|
},
|
|
2204
1974
|
retryConnectionErrors: false,
|
|
2205
1975
|
},
|
|
1976
|
+
xMoovVersion: "v2024.01.00",
|
|
2206
1977
|
security: {
|
|
2207
1978
|
username: "",
|
|
2208
1979
|
password: "",
|
|
@@ -2213,95 +1984,12 @@ async function run() {
|
|
|
2213
1984
|
const result = await moov.accounts.create({
|
|
2214
1985
|
accountType: "business",
|
|
2215
1986
|
profile: {
|
|
2216
|
-
individual: {
|
|
2217
|
-
name: {
|
|
2218
|
-
firstName: "Jordan",
|
|
2219
|
-
middleName: "Reese",
|
|
2220
|
-
lastName: "Lee",
|
|
2221
|
-
suffix: "Jr",
|
|
2222
|
-
},
|
|
2223
|
-
phone: {
|
|
2224
|
-
number: "8185551212",
|
|
2225
|
-
countryCode: "1",
|
|
2226
|
-
},
|
|
2227
|
-
email: "jordan.lee@classbooker.dev",
|
|
2228
|
-
address: {
|
|
2229
|
-
addressLine1: "123 Main Street",
|
|
2230
|
-
addressLine2: "Apt 302",
|
|
2231
|
-
city: "Boulder",
|
|
2232
|
-
stateOrProvince: "CO",
|
|
2233
|
-
postalCode: "80301",
|
|
2234
|
-
country: "US",
|
|
2235
|
-
},
|
|
2236
|
-
birthDate: {
|
|
2237
|
-
day: 9,
|
|
2238
|
-
month: 11,
|
|
2239
|
-
year: 1989,
|
|
2240
|
-
},
|
|
2241
|
-
},
|
|
2242
1987
|
business: {
|
|
2243
|
-
legalBusinessName: "
|
|
2244
|
-
businessType: "llc",
|
|
2245
|
-
address: {
|
|
2246
|
-
addressLine1: "123 Main Street",
|
|
2247
|
-
addressLine2: "Apt 302",
|
|
2248
|
-
city: "Boulder",
|
|
2249
|
-
stateOrProvince: "CO",
|
|
2250
|
-
postalCode: "80301",
|
|
2251
|
-
country: "US",
|
|
2252
|
-
},
|
|
2253
|
-
phone: {
|
|
2254
|
-
number: "8185551212",
|
|
2255
|
-
countryCode: "1",
|
|
2256
|
-
},
|
|
2257
|
-
email: "jordan.lee@classbooker.dev",
|
|
2258
|
-
description: "Local fitness gym paying out instructors",
|
|
2259
|
-
taxID: {
|
|
2260
|
-
ein: {
|
|
2261
|
-
number: "12-3456789",
|
|
2262
|
-
},
|
|
2263
|
-
},
|
|
2264
|
-
industryCodes: {
|
|
2265
|
-
naics: "713940",
|
|
2266
|
-
sic: "7991",
|
|
2267
|
-
mcc: "7997",
|
|
2268
|
-
},
|
|
1988
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
2269
1989
|
},
|
|
2270
1990
|
},
|
|
2271
|
-
metadata: {
|
|
2272
|
-
"optional": "metadata",
|
|
2273
|
-
},
|
|
2274
|
-
termsOfService: {
|
|
2275
|
-
token:
|
|
2276
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
2277
|
-
},
|
|
2278
|
-
customerSupport: {
|
|
2279
|
-
phone: {
|
|
2280
|
-
number: "8185551212",
|
|
2281
|
-
countryCode: "1",
|
|
2282
|
-
},
|
|
2283
|
-
email: "jordan.lee@classbooker.dev",
|
|
2284
|
-
address: {
|
|
2285
|
-
addressLine1: "123 Main Street",
|
|
2286
|
-
addressLine2: "Apt 302",
|
|
2287
|
-
city: "Boulder",
|
|
2288
|
-
stateOrProvince: "CO",
|
|
2289
|
-
postalCode: "80301",
|
|
2290
|
-
country: "US",
|
|
2291
|
-
},
|
|
2292
|
-
},
|
|
2293
|
-
settings: {
|
|
2294
|
-
cardPayment: {
|
|
2295
|
-
statementDescriptor: "Whole Body Fitness",
|
|
2296
|
-
},
|
|
2297
|
-
achPayment: {
|
|
2298
|
-
companyName: "WholeBodyFitness",
|
|
2299
|
-
},
|
|
2300
|
-
},
|
|
2301
|
-
mode: "production",
|
|
2302
1991
|
});
|
|
2303
1992
|
|
|
2304
|
-
// Handle the result
|
|
2305
1993
|
console.log(result);
|
|
2306
1994
|
}
|
|
2307
1995
|
|
|
@@ -2313,25 +2001,25 @@ run();
|
|
|
2313
2001
|
<!-- Start Error Handling [errors] -->
|
|
2314
2002
|
## Error Handling
|
|
2315
2003
|
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
| Error Type | Status Code | Content Type |
|
|
2319
|
-
| -------------------------------- | ----------- | ---------------- |
|
|
2320
|
-
| errors.GenericError | 400, 409 | application/json |
|
|
2321
|
-
| errors.CreateAccountResponseBody | 422 | application/json |
|
|
2322
|
-
| errors.APIError | 4XX, 5XX | \*/\* |
|
|
2004
|
+
This table shows properties which are common on error classes. For full details see [error classes](#error-classes).
|
|
2323
2005
|
|
|
2324
|
-
|
|
2006
|
+
| Property | Type | Description |
|
|
2007
|
+
| ------------------- | ---------- | --------------------------------------------------------------------------------------- |
|
|
2008
|
+
| `error.name` | `string` | Error class name eg `APIError` |
|
|
2009
|
+
| `error.message` | `string` | Error message |
|
|
2010
|
+
| `error.statusCode` | `number` | HTTP status code eg `404` |
|
|
2011
|
+
| `error.contentType` | `string` | HTTP content type eg `application/json` |
|
|
2012
|
+
| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
|
|
2013
|
+
| `error.rawResponse` | `Response` | Raw HTTP response. Access to headers and more. |
|
|
2014
|
+
| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
|
|
2325
2015
|
|
|
2016
|
+
### Example
|
|
2326
2017
|
```typescript
|
|
2327
2018
|
import { Moov } from "@moovio/sdk";
|
|
2328
|
-
import
|
|
2329
|
-
CreateAccountResponseBody,
|
|
2330
|
-
GenericError,
|
|
2331
|
-
SDKValidationError,
|
|
2332
|
-
} from "@moovio/sdk/models/errors";
|
|
2019
|
+
import * as errors from "@moovio/sdk/models/errors";
|
|
2333
2020
|
|
|
2334
2021
|
const moov = new Moov({
|
|
2022
|
+
xMoovVersion: "v2024.01.00",
|
|
2335
2023
|
security: {
|
|
2336
2024
|
username: "",
|
|
2337
2025
|
password: "",
|
|
@@ -2339,125 +2027,30 @@ const moov = new Moov({
|
|
|
2339
2027
|
});
|
|
2340
2028
|
|
|
2341
2029
|
async function run() {
|
|
2342
|
-
let result;
|
|
2343
2030
|
try {
|
|
2344
|
-
result = await moov.accounts.create({
|
|
2031
|
+
const result = await moov.accounts.create({
|
|
2345
2032
|
accountType: "business",
|
|
2346
2033
|
profile: {
|
|
2347
|
-
individual: {
|
|
2348
|
-
name: {
|
|
2349
|
-
firstName: "Jordan",
|
|
2350
|
-
middleName: "Reese",
|
|
2351
|
-
lastName: "Lee",
|
|
2352
|
-
suffix: "Jr",
|
|
2353
|
-
},
|
|
2354
|
-
phone: {
|
|
2355
|
-
number: "8185551212",
|
|
2356
|
-
countryCode: "1",
|
|
2357
|
-
},
|
|
2358
|
-
email: "jordan.lee@classbooker.dev",
|
|
2359
|
-
address: {
|
|
2360
|
-
addressLine1: "123 Main Street",
|
|
2361
|
-
addressLine2: "Apt 302",
|
|
2362
|
-
city: "Boulder",
|
|
2363
|
-
stateOrProvince: "CO",
|
|
2364
|
-
postalCode: "80301",
|
|
2365
|
-
country: "US",
|
|
2366
|
-
},
|
|
2367
|
-
birthDate: {
|
|
2368
|
-
day: 9,
|
|
2369
|
-
month: 11,
|
|
2370
|
-
year: 1989,
|
|
2371
|
-
},
|
|
2372
|
-
},
|
|
2373
2034
|
business: {
|
|
2374
|
-
legalBusinessName: "
|
|
2375
|
-
businessType: "llc",
|
|
2376
|
-
address: {
|
|
2377
|
-
addressLine1: "123 Main Street",
|
|
2378
|
-
addressLine2: "Apt 302",
|
|
2379
|
-
city: "Boulder",
|
|
2380
|
-
stateOrProvince: "CO",
|
|
2381
|
-
postalCode: "80301",
|
|
2382
|
-
country: "US",
|
|
2383
|
-
},
|
|
2384
|
-
phone: {
|
|
2385
|
-
number: "8185551212",
|
|
2386
|
-
countryCode: "1",
|
|
2387
|
-
},
|
|
2388
|
-
email: "jordan.lee@classbooker.dev",
|
|
2389
|
-
description: "Local fitness gym paying out instructors",
|
|
2390
|
-
taxID: {
|
|
2391
|
-
ein: {
|
|
2392
|
-
number: "12-3456789",
|
|
2393
|
-
},
|
|
2394
|
-
},
|
|
2395
|
-
industryCodes: {
|
|
2396
|
-
naics: "713940",
|
|
2397
|
-
sic: "7991",
|
|
2398
|
-
mcc: "7997",
|
|
2399
|
-
},
|
|
2035
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
2400
2036
|
},
|
|
2401
2037
|
},
|
|
2402
|
-
metadata: {
|
|
2403
|
-
"optional": "metadata",
|
|
2404
|
-
},
|
|
2405
|
-
termsOfService: {
|
|
2406
|
-
token:
|
|
2407
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
2408
|
-
},
|
|
2409
|
-
customerSupport: {
|
|
2410
|
-
phone: {
|
|
2411
|
-
number: "8185551212",
|
|
2412
|
-
countryCode: "1",
|
|
2413
|
-
},
|
|
2414
|
-
email: "jordan.lee@classbooker.dev",
|
|
2415
|
-
address: {
|
|
2416
|
-
addressLine1: "123 Main Street",
|
|
2417
|
-
addressLine2: "Apt 302",
|
|
2418
|
-
city: "Boulder",
|
|
2419
|
-
stateOrProvince: "CO",
|
|
2420
|
-
postalCode: "80301",
|
|
2421
|
-
country: "US",
|
|
2422
|
-
},
|
|
2423
|
-
},
|
|
2424
|
-
settings: {
|
|
2425
|
-
cardPayment: {
|
|
2426
|
-
statementDescriptor: "Whole Body Fitness",
|
|
2427
|
-
},
|
|
2428
|
-
achPayment: {
|
|
2429
|
-
companyName: "WholeBodyFitness",
|
|
2430
|
-
},
|
|
2431
|
-
},
|
|
2432
|
-
mode: "production",
|
|
2433
2038
|
});
|
|
2434
2039
|
|
|
2435
|
-
// Handle the result
|
|
2436
2040
|
console.log(result);
|
|
2437
|
-
} catch (
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
return;
|
|
2451
|
-
}
|
|
2452
|
-
case (err instanceof CreateAccountResponseBody): {
|
|
2453
|
-
// Handle err.data$: CreateAccountResponseBodyData
|
|
2454
|
-
console.error(err);
|
|
2455
|
-
return;
|
|
2456
|
-
}
|
|
2457
|
-
default: {
|
|
2458
|
-
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
2459
|
-
throw err;
|
|
2460
|
-
}
|
|
2041
|
+
} catch (error) {
|
|
2042
|
+
// Depending on the method different errors may be thrown
|
|
2043
|
+
if (error instanceof errors.GenericError) {
|
|
2044
|
+
console.log(error.message);
|
|
2045
|
+
console.log(error.data$.error); // string
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
// Fallback error class, if no other more specific error class is matched
|
|
2049
|
+
if (error instanceof errors.APIError) {
|
|
2050
|
+
console.log(error.message);
|
|
2051
|
+
console.log(error.statusCode);
|
|
2052
|
+
console.log(error.body);
|
|
2053
|
+
console.log(error.rawResponse.headers);
|
|
2461
2054
|
}
|
|
2462
2055
|
}
|
|
2463
2056
|
}
|
|
@@ -2466,17 +2059,56 @@ run();
|
|
|
2466
2059
|
|
|
2467
2060
|
```
|
|
2468
2061
|
|
|
2469
|
-
|
|
2062
|
+
### Error Classes
|
|
2063
|
+
* `APIError`: The fallback error class, if no other more specific error class is matched.
|
|
2064
|
+
* `SDKValidationError`: Type mismatch between the data returned from the server and the structure expected by the SDK. This can also be thrown for invalid method arguments. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
2065
|
+
* Network errors:
|
|
2066
|
+
* `ConnectionError`: HTTP client was unable to make a request to a server.
|
|
2067
|
+
* `RequestTimeoutError`: HTTP request timed out due to an AbortSignal signal.
|
|
2068
|
+
* `RequestAbortedError`: HTTP request was aborted by the client.
|
|
2069
|
+
* `InvalidRequestError`: Any input used to create a request is invalid.
|
|
2070
|
+
* `UnexpectedClientError`: Unrecognised or unexpected error.
|
|
2071
|
+
|
|
2072
|
+
<details><summary>Less common errors, applicable to a subset of methods (34)</summary>
|
|
2073
|
+
|
|
2074
|
+
* [`GenericError`](docs/models/errors/genericerror.md): Applicable to 58 of 136 methods.*
|
|
2075
|
+
* [`BrandValidationError`](docs/models/errors/brandvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 3 of 136 methods.*
|
|
2076
|
+
* [`ScheduleValidationError`](docs/models/errors/schedulevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 2 of 136 methods.*
|
|
2077
|
+
* [`Transfer`](docs/models/errors/transfer.md): Details of a Transfer. Status code `409`. Applicable to 1 of 136 methods.*
|
|
2078
|
+
* [`CardAcquiringRefund`](docs/models/errors/cardacquiringrefund.md): Details of a card refund. Status code `409`. Applicable to 1 of 136 methods.*
|
|
2079
|
+
* [`CreateAccountResponseBody`](docs/models/errors/createaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2080
|
+
* [`UpdateAccountResponseBody`](docs/models/errors/updateaccountresponsebody.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2081
|
+
* [`AssignCountriesError`](docs/models/errors/assigncountrieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2082
|
+
* [`LinkApplePayError`](docs/models/errors/linkapplepayerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2083
|
+
* [`BankAccountValidationError`](docs/models/errors/bankaccountvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2084
|
+
* [`MicroDepositValidationError`](docs/models/errors/microdepositvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2085
|
+
* [`AddCapabilitiesError`](docs/models/errors/addcapabilitieserror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2086
|
+
* [`LinkCardError`](docs/models/errors/linkcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2087
|
+
* [`UpdateCardError`](docs/models/errors/updatecarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2088
|
+
* [`FileUploadValidationError`](docs/models/errors/fileuploadvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2089
|
+
* [`FeePlanAgreementError`](docs/models/errors/feeplanagreementerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2090
|
+
* [`FileValidationError`](docs/models/errors/filevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2091
|
+
* [`CreatePaymentLinkError`](docs/models/errors/createpaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2092
|
+
* [`UpdatePaymentLinkError`](docs/models/errors/updatepaymentlinkerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2093
|
+
* [`RepresentativeValidationError`](docs/models/errors/representativevalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2094
|
+
* [`CreateSweepConfigError`](docs/models/errors/createsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2095
|
+
* [`PatchSweepConfigError`](docs/models/errors/patchsweepconfigerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2096
|
+
* [`AccountTerminalApplicationError`](docs/models/errors/accountterminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2097
|
+
* [`TransferValidationError`](docs/models/errors/transfervalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2098
|
+
* [`RefundValidationError`](docs/models/errors/refundvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2099
|
+
* [`ReversalValidationError`](docs/models/errors/reversalvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2100
|
+
* [`TransferOptionsValidationError`](docs/models/errors/transferoptionsvalidationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2101
|
+
* [`UpdateUnderwritingError`](docs/models/errors/updateunderwritingerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2102
|
+
* [`RequestCardError`](docs/models/errors/requestcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2103
|
+
* [`UpdateIssuedCardError`](docs/models/errors/updateissuedcarderror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2104
|
+
* [`RevokeTokenRequestError`](docs/models/errors/revoketokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2105
|
+
* [`AuthTokenRequestError`](docs/models/errors/authtokenrequesterror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2106
|
+
* [`OnboardingInviteError`](docs/models/errors/onboardinginviteerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2107
|
+
* [`TerminalApplicationError`](docs/models/errors/terminalapplicationerror.md): The request was well-formed, but the contents failed validation. Check the request for missing or invalid fields. Status code `422`. Applicable to 1 of 136 methods.*
|
|
2108
|
+
</details>
|
|
2470
2109
|
|
|
2471
|
-
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
|
|
2472
2110
|
|
|
2473
|
-
|
|
2474
|
-
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
2475
|
-
| RequestAbortedError | HTTP request was aborted by the client |
|
|
2476
|
-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
2477
|
-
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
2478
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
2479
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
2111
|
+
\* Check [the method documentation](#available-resources-and-operations) to see if the error is applicable.
|
|
2480
2112
|
<!-- End Error Handling [errors] -->
|
|
2481
2113
|
|
|
2482
2114
|
<!-- Start Server Selection [server] -->
|
|
@@ -2490,6 +2122,7 @@ import { Moov } from "@moovio/sdk";
|
|
|
2490
2122
|
|
|
2491
2123
|
const moov = new Moov({
|
|
2492
2124
|
serverURL: "https://api.moov.io",
|
|
2125
|
+
xMoovVersion: "v2024.01.00",
|
|
2493
2126
|
security: {
|
|
2494
2127
|
username: "",
|
|
2495
2128
|
password: "",
|
|
@@ -2500,95 +2133,12 @@ async function run() {
|
|
|
2500
2133
|
const result = await moov.accounts.create({
|
|
2501
2134
|
accountType: "business",
|
|
2502
2135
|
profile: {
|
|
2503
|
-
individual: {
|
|
2504
|
-
name: {
|
|
2505
|
-
firstName: "Jordan",
|
|
2506
|
-
middleName: "Reese",
|
|
2507
|
-
lastName: "Lee",
|
|
2508
|
-
suffix: "Jr",
|
|
2509
|
-
},
|
|
2510
|
-
phone: {
|
|
2511
|
-
number: "8185551212",
|
|
2512
|
-
countryCode: "1",
|
|
2513
|
-
},
|
|
2514
|
-
email: "jordan.lee@classbooker.dev",
|
|
2515
|
-
address: {
|
|
2516
|
-
addressLine1: "123 Main Street",
|
|
2517
|
-
addressLine2: "Apt 302",
|
|
2518
|
-
city: "Boulder",
|
|
2519
|
-
stateOrProvince: "CO",
|
|
2520
|
-
postalCode: "80301",
|
|
2521
|
-
country: "US",
|
|
2522
|
-
},
|
|
2523
|
-
birthDate: {
|
|
2524
|
-
day: 9,
|
|
2525
|
-
month: 11,
|
|
2526
|
-
year: 1989,
|
|
2527
|
-
},
|
|
2528
|
-
},
|
|
2529
2136
|
business: {
|
|
2530
|
-
legalBusinessName: "
|
|
2531
|
-
businessType: "llc",
|
|
2532
|
-
address: {
|
|
2533
|
-
addressLine1: "123 Main Street",
|
|
2534
|
-
addressLine2: "Apt 302",
|
|
2535
|
-
city: "Boulder",
|
|
2536
|
-
stateOrProvince: "CO",
|
|
2537
|
-
postalCode: "80301",
|
|
2538
|
-
country: "US",
|
|
2539
|
-
},
|
|
2540
|
-
phone: {
|
|
2541
|
-
number: "8185551212",
|
|
2542
|
-
countryCode: "1",
|
|
2543
|
-
},
|
|
2544
|
-
email: "jordan.lee@classbooker.dev",
|
|
2545
|
-
description: "Local fitness gym paying out instructors",
|
|
2546
|
-
taxID: {
|
|
2547
|
-
ein: {
|
|
2548
|
-
number: "12-3456789",
|
|
2549
|
-
},
|
|
2550
|
-
},
|
|
2551
|
-
industryCodes: {
|
|
2552
|
-
naics: "713940",
|
|
2553
|
-
sic: "7991",
|
|
2554
|
-
mcc: "7997",
|
|
2555
|
-
},
|
|
2556
|
-
},
|
|
2557
|
-
},
|
|
2558
|
-
metadata: {
|
|
2559
|
-
"optional": "metadata",
|
|
2560
|
-
},
|
|
2561
|
-
termsOfService: {
|
|
2562
|
-
token:
|
|
2563
|
-
"kgT1uxoMAk7QKuyJcmQE8nqW_HjpyuXBabiXPi6T83fUQoxsyWYPcYzuHQTqrt7YRp4gCwyDQvb6U5REM9Pgl2EloCe35t-eiMAbUWGo3Kerxme6aqNcKrP_6-v0MTXViOEJ96IBxPFTvMV7EROI2dq3u4e-x4BbGSCedAX-ViAQND6hcreCDXwrO6sHuzh5Xi2IzSqZHxaovnWEboaxuZKRJkA3dsFID6fzitMpm2qrOh4",
|
|
2564
|
-
},
|
|
2565
|
-
customerSupport: {
|
|
2566
|
-
phone: {
|
|
2567
|
-
number: "8185551212",
|
|
2568
|
-
countryCode: "1",
|
|
2569
|
-
},
|
|
2570
|
-
email: "jordan.lee@classbooker.dev",
|
|
2571
|
-
address: {
|
|
2572
|
-
addressLine1: "123 Main Street",
|
|
2573
|
-
addressLine2: "Apt 302",
|
|
2574
|
-
city: "Boulder",
|
|
2575
|
-
stateOrProvince: "CO",
|
|
2576
|
-
postalCode: "80301",
|
|
2577
|
-
country: "US",
|
|
2578
|
-
},
|
|
2579
|
-
},
|
|
2580
|
-
settings: {
|
|
2581
|
-
cardPayment: {
|
|
2582
|
-
statementDescriptor: "Whole Body Fitness",
|
|
2583
|
-
},
|
|
2584
|
-
achPayment: {
|
|
2585
|
-
companyName: "WholeBodyFitness",
|
|
2137
|
+
legalBusinessName: "Whole Body Fitness LLC",
|
|
2586
2138
|
},
|
|
2587
2139
|
},
|
|
2588
|
-
mode: "production",
|
|
2589
2140
|
});
|
|
2590
2141
|
|
|
2591
|
-
// Handle the result
|
|
2592
2142
|
console.log(result);
|
|
2593
2143
|
}
|
|
2594
2144
|
|