@moovio/sdk 0.3.6 → 0.4.0
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/README.md +62 -46
- package/docs/sdks/{billing → feeplans}/README.md +199 -17
- package/docs/sdks/transfers/README.md +17 -3
- package/funcs/accountsAssignCountries.d.ts +2 -1
- package/funcs/accountsAssignCountries.d.ts.map +1 -1
- package/funcs/accountsAssignCountries.js +11 -7
- package/funcs/accountsAssignCountries.js.map +1 -1
- package/funcs/accountsCreate.d.ts +2 -1
- package/funcs/accountsCreate.d.ts.map +1 -1
- package/funcs/accountsCreate.js +11 -7
- package/funcs/accountsCreate.js.map +1 -1
- package/funcs/accountsDisconnect.d.ts +2 -1
- package/funcs/accountsDisconnect.d.ts.map +1 -1
- package/funcs/accountsDisconnect.js +11 -7
- package/funcs/accountsDisconnect.js.map +1 -1
- package/funcs/accountsGet.d.ts +2 -1
- package/funcs/accountsGet.d.ts.map +1 -1
- package/funcs/accountsGet.js +11 -7
- package/funcs/accountsGet.js.map +1 -1
- package/funcs/accountsGetCountries.d.ts +2 -1
- package/funcs/accountsGetCountries.d.ts.map +1 -1
- package/funcs/accountsGetCountries.js +11 -7
- package/funcs/accountsGetCountries.js.map +1 -1
- package/funcs/accountsGetMerchantProcessingAgreement.d.ts +2 -1
- package/funcs/accountsGetMerchantProcessingAgreement.d.ts.map +1 -1
- package/funcs/accountsGetMerchantProcessingAgreement.js +11 -7
- package/funcs/accountsGetMerchantProcessingAgreement.js.map +1 -1
- package/funcs/accountsGetTermsOfServiceToken.d.ts +2 -1
- package/funcs/accountsGetTermsOfServiceToken.d.ts.map +1 -1
- package/funcs/accountsGetTermsOfServiceToken.js +11 -7
- package/funcs/accountsGetTermsOfServiceToken.js.map +1 -1
- package/funcs/accountsList.d.ts +2 -1
- package/funcs/accountsList.d.ts.map +1 -1
- package/funcs/accountsList.js +11 -7
- package/funcs/accountsList.js.map +1 -1
- package/funcs/accountsUpdate.d.ts +2 -1
- package/funcs/accountsUpdate.d.ts.map +1 -1
- package/funcs/accountsUpdate.js +11 -7
- package/funcs/accountsUpdate.js.map +1 -1
- package/funcs/adjustmentsGet.d.ts +2 -1
- package/funcs/adjustmentsGet.d.ts.map +1 -1
- package/funcs/adjustmentsGet.js +11 -7
- package/funcs/adjustmentsGet.js.map +1 -1
- package/funcs/adjustmentsList.d.ts +2 -1
- package/funcs/adjustmentsList.d.ts.map +1 -1
- package/funcs/adjustmentsList.js +11 -7
- package/funcs/adjustmentsList.js.map +1 -1
- package/funcs/applePayCreateSession.d.ts +2 -1
- package/funcs/applePayCreateSession.d.ts.map +1 -1
- package/funcs/applePayCreateSession.js +11 -7
- package/funcs/applePayCreateSession.js.map +1 -1
- package/funcs/applePayGetMerchantDomains.d.ts +2 -1
- package/funcs/applePayGetMerchantDomains.d.ts.map +1 -1
- package/funcs/applePayGetMerchantDomains.js +11 -7
- package/funcs/applePayGetMerchantDomains.js.map +1 -1
- package/funcs/applePayLinkToken.d.ts +2 -1
- package/funcs/applePayLinkToken.d.ts.map +1 -1
- package/funcs/applePayLinkToken.js +11 -7
- package/funcs/applePayLinkToken.js.map +1 -1
- package/funcs/applePayRegisterMerchantDomains.d.ts +2 -1
- package/funcs/applePayRegisterMerchantDomains.d.ts.map +1 -1
- package/funcs/applePayRegisterMerchantDomains.js +11 -7
- package/funcs/applePayRegisterMerchantDomains.js.map +1 -1
- package/funcs/applePayUpdateMerchantDomains.d.ts +2 -1
- package/funcs/applePayUpdateMerchantDomains.d.ts.map +1 -1
- package/funcs/applePayUpdateMerchantDomains.js +11 -7
- package/funcs/applePayUpdateMerchantDomains.js.map +1 -1
- package/funcs/authenticationCreateAccessToken.d.ts +2 -1
- package/funcs/authenticationCreateAccessToken.d.ts.map +1 -1
- package/funcs/authenticationCreateAccessToken.js +11 -7
- package/funcs/authenticationCreateAccessToken.js.map +1 -1
- package/funcs/authenticationRevokeAccessToken.d.ts +2 -1
- package/funcs/authenticationRevokeAccessToken.d.ts.map +1 -1
- package/funcs/authenticationRevokeAccessToken.js +11 -7
- package/funcs/authenticationRevokeAccessToken.js.map +1 -1
- package/funcs/avatarsGet.d.ts +2 -1
- package/funcs/avatarsGet.d.ts.map +1 -1
- package/funcs/avatarsGet.js +11 -7
- package/funcs/avatarsGet.js.map +1 -1
- package/funcs/bankAccountsCompleteMicroDeposits.d.ts +2 -1
- package/funcs/bankAccountsCompleteMicroDeposits.d.ts.map +1 -1
- package/funcs/bankAccountsCompleteMicroDeposits.js +11 -7
- package/funcs/bankAccountsCompleteMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsCompleteVerification.d.ts +2 -1
- package/funcs/bankAccountsCompleteVerification.d.ts.map +1 -1
- package/funcs/bankAccountsCompleteVerification.js +11 -7
- package/funcs/bankAccountsCompleteVerification.js.map +1 -1
- package/funcs/bankAccountsDisable.d.ts +2 -1
- package/funcs/bankAccountsDisable.d.ts.map +1 -1
- package/funcs/bankAccountsDisable.js +11 -7
- package/funcs/bankAccountsDisable.js.map +1 -1
- package/funcs/bankAccountsGet.d.ts +2 -1
- package/funcs/bankAccountsGet.d.ts.map +1 -1
- package/funcs/bankAccountsGet.js +11 -7
- package/funcs/bankAccountsGet.js.map +1 -1
- package/funcs/bankAccountsGetVerification.d.ts +2 -1
- package/funcs/bankAccountsGetVerification.d.ts.map +1 -1
- package/funcs/bankAccountsGetVerification.js +11 -7
- package/funcs/bankAccountsGetVerification.js.map +1 -1
- package/funcs/bankAccountsInitiateMicroDeposits.d.ts +2 -1
- package/funcs/bankAccountsInitiateMicroDeposits.d.ts.map +1 -1
- package/funcs/bankAccountsInitiateMicroDeposits.js +11 -7
- package/funcs/bankAccountsInitiateMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsInitiateVerification.d.ts +2 -1
- package/funcs/bankAccountsInitiateVerification.d.ts.map +1 -1
- package/funcs/bankAccountsInitiateVerification.js +11 -7
- package/funcs/bankAccountsInitiateVerification.js.map +1 -1
- package/funcs/bankAccountsLink.d.ts +2 -1
- package/funcs/bankAccountsLink.d.ts.map +1 -1
- package/funcs/bankAccountsLink.js +11 -7
- package/funcs/bankAccountsLink.js.map +1 -1
- package/funcs/bankAccountsList.d.ts +2 -1
- package/funcs/bankAccountsList.d.ts.map +1 -1
- package/funcs/bankAccountsList.js +11 -7
- package/funcs/bankAccountsList.js.map +1 -1
- package/funcs/brandingCreate.d.ts +2 -1
- package/funcs/brandingCreate.d.ts.map +1 -1
- package/funcs/brandingCreate.js +11 -7
- package/funcs/brandingCreate.js.map +1 -1
- package/funcs/brandingGet.d.ts +2 -1
- package/funcs/brandingGet.d.ts.map +1 -1
- package/funcs/brandingGet.js +11 -7
- package/funcs/brandingGet.js.map +1 -1
- package/funcs/brandingUpdate.d.ts +2 -1
- package/funcs/brandingUpdate.d.ts.map +1 -1
- package/funcs/brandingUpdate.js +11 -7
- package/funcs/brandingUpdate.js.map +1 -1
- package/funcs/brandingUpsert.d.ts +2 -1
- package/funcs/brandingUpsert.d.ts.map +1 -1
- package/funcs/brandingUpsert.js +11 -7
- package/funcs/brandingUpsert.js.map +1 -1
- package/funcs/capabilitiesDisable.d.ts +2 -1
- package/funcs/capabilitiesDisable.d.ts.map +1 -1
- package/funcs/capabilitiesDisable.js +11 -7
- package/funcs/capabilitiesDisable.js.map +1 -1
- package/funcs/capabilitiesGet.d.ts +2 -1
- package/funcs/capabilitiesGet.d.ts.map +1 -1
- package/funcs/capabilitiesGet.js +11 -7
- package/funcs/capabilitiesGet.js.map +1 -1
- package/funcs/capabilitiesList.d.ts +2 -1
- package/funcs/capabilitiesList.d.ts.map +1 -1
- package/funcs/capabilitiesList.js +11 -7
- package/funcs/capabilitiesList.js.map +1 -1
- package/funcs/capabilitiesRequest.d.ts +2 -1
- package/funcs/capabilitiesRequest.d.ts.map +1 -1
- package/funcs/capabilitiesRequest.js +11 -7
- package/funcs/capabilitiesRequest.js.map +1 -1
- package/funcs/cardIssuingGet.d.ts +2 -1
- package/funcs/cardIssuingGet.d.ts.map +1 -1
- package/funcs/cardIssuingGet.js +11 -7
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.d.ts +2 -1
- package/funcs/cardIssuingGetFull.d.ts.map +1 -1
- package/funcs/cardIssuingGetFull.js +11 -7
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.d.ts +2 -1
- package/funcs/cardIssuingList.d.ts.map +1 -1
- package/funcs/cardIssuingList.js +11 -7
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.d.ts +2 -1
- package/funcs/cardIssuingRequest.d.ts.map +1 -1
- package/funcs/cardIssuingRequest.js +11 -7
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.d.ts +2 -1
- package/funcs/cardIssuingUpdate.d.ts.map +1 -1
- package/funcs/cardIssuingUpdate.js +11 -7
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/cardsDisable.d.ts +2 -1
- package/funcs/cardsDisable.d.ts.map +1 -1
- package/funcs/cardsDisable.js +11 -7
- package/funcs/cardsDisable.js.map +1 -1
- package/funcs/cardsGet.d.ts +2 -1
- package/funcs/cardsGet.d.ts.map +1 -1
- package/funcs/cardsGet.js +11 -7
- package/funcs/cardsGet.js.map +1 -1
- package/funcs/cardsLink.d.ts +2 -1
- package/funcs/cardsLink.d.ts.map +1 -1
- package/funcs/cardsLink.js +11 -7
- package/funcs/cardsLink.js.map +1 -1
- package/funcs/cardsList.d.ts +2 -1
- package/funcs/cardsList.d.ts.map +1 -1
- package/funcs/cardsList.js +11 -7
- package/funcs/cardsList.js.map +1 -1
- package/funcs/cardsUpdate.d.ts +2 -1
- package/funcs/cardsUpdate.d.ts.map +1 -1
- package/funcs/cardsUpdate.js +11 -7
- package/funcs/cardsUpdate.js.map +1 -1
- package/funcs/disputesAccept.d.ts +2 -1
- package/funcs/disputesAccept.d.ts.map +1 -1
- package/funcs/disputesAccept.js +11 -7
- package/funcs/disputesAccept.js.map +1 -1
- package/funcs/disputesDeleteEvidence.d.ts +2 -1
- package/funcs/disputesDeleteEvidence.d.ts.map +1 -1
- package/funcs/disputesDeleteEvidence.js +11 -7
- package/funcs/disputesDeleteEvidence.js.map +1 -1
- package/funcs/disputesGet.d.ts +2 -1
- package/funcs/disputesGet.d.ts.map +1 -1
- package/funcs/disputesGet.js +11 -7
- package/funcs/disputesGet.js.map +1 -1
- package/funcs/disputesGetEvidence.d.ts +2 -1
- package/funcs/disputesGetEvidence.d.ts.map +1 -1
- package/funcs/disputesGetEvidence.js +11 -7
- package/funcs/disputesGetEvidence.js.map +1 -1
- package/funcs/disputesGetEvidenceData.d.ts +2 -1
- package/funcs/disputesGetEvidenceData.d.ts.map +1 -1
- package/funcs/disputesGetEvidenceData.js +11 -7
- package/funcs/disputesGetEvidenceData.js.map +1 -1
- package/funcs/disputesList.d.ts +2 -1
- package/funcs/disputesList.d.ts.map +1 -1
- package/funcs/disputesList.js +11 -7
- package/funcs/disputesList.js.map +1 -1
- package/funcs/disputesListEvidence.d.ts +2 -1
- package/funcs/disputesListEvidence.d.ts.map +1 -1
- package/funcs/disputesListEvidence.js +11 -7
- package/funcs/disputesListEvidence.js.map +1 -1
- package/funcs/disputesSubmitEvidence.d.ts +2 -1
- package/funcs/disputesSubmitEvidence.d.ts.map +1 -1
- package/funcs/disputesSubmitEvidence.js +11 -7
- package/funcs/disputesSubmitEvidence.js.map +1 -1
- package/funcs/disputesUpdateEvidence.d.ts +2 -1
- package/funcs/disputesUpdateEvidence.d.ts.map +1 -1
- package/funcs/disputesUpdateEvidence.js +11 -7
- package/funcs/disputesUpdateEvidence.js.map +1 -1
- package/funcs/disputesUploadEvidenceFile.d.ts +2 -1
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +11 -7
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/disputesUploadEvidenceText.d.ts +2 -1
- package/funcs/disputesUploadEvidenceText.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceText.js +11 -7
- package/funcs/disputesUploadEvidenceText.js.map +1 -1
- package/funcs/endToEndEncryptionGenerateKey.d.ts +2 -1
- package/funcs/endToEndEncryptionGenerateKey.d.ts.map +1 -1
- package/funcs/endToEndEncryptionGenerateKey.js +10 -6
- package/funcs/endToEndEncryptionGenerateKey.js.map +1 -1
- package/funcs/endToEndEncryptionTestEncryptedToken.d.ts +2 -1
- package/funcs/endToEndEncryptionTestEncryptedToken.d.ts.map +1 -1
- package/funcs/endToEndEncryptionTestEncryptedToken.js +11 -7
- package/funcs/endToEndEncryptionTestEncryptedToken.js.map +1 -1
- package/funcs/enrichedAddressGet.d.ts +2 -1
- package/funcs/enrichedAddressGet.d.ts.map +1 -1
- package/funcs/enrichedAddressGet.js +11 -7
- package/funcs/enrichedAddressGet.js.map +1 -1
- package/funcs/enrichedProfileGet.d.ts +2 -1
- package/funcs/enrichedProfileGet.d.ts.map +1 -1
- package/funcs/enrichedProfileGet.js +11 -7
- package/funcs/enrichedProfileGet.js.map +1 -1
- package/funcs/{billingCreateFeePlanAgreements.d.ts → feePlansCreateFeePlanAgreements.d.ts} +3 -2
- package/funcs/feePlansCreateFeePlanAgreements.d.ts.map +1 -0
- package/funcs/{billingCreateFeePlanAgreements.js → feePlansCreateFeePlanAgreements.js} +13 -9
- package/funcs/feePlansCreateFeePlanAgreements.js.map +1 -0
- package/funcs/{billingListFeePlanAgreements.d.ts → feePlansListFeePlanAgreements.d.ts} +3 -2
- package/funcs/feePlansListFeePlanAgreements.d.ts.map +1 -0
- package/funcs/{billingListFeePlanAgreements.js → feePlansListFeePlanAgreements.js} +13 -9
- package/funcs/feePlansListFeePlanAgreements.js.map +1 -0
- package/funcs/{billingListFeePlans.d.ts → feePlansListFeePlans.d.ts} +3 -2
- package/funcs/feePlansListFeePlans.d.ts.map +1 -0
- package/funcs/{billingListFeePlans.js → feePlansListFeePlans.js} +13 -9
- package/funcs/feePlansListFeePlans.js.map +1 -0
- package/funcs/feePlansListFeesFetch.d.ts +16 -0
- package/funcs/feePlansListFeesFetch.d.ts.map +1 -0
- package/funcs/feePlansListFeesFetch.js +126 -0
- package/funcs/feePlansListFeesFetch.js.map +1 -0
- package/funcs/{billingListPartnerPricing.d.ts → feePlansListPartnerPricing.d.ts} +3 -2
- package/funcs/feePlansListPartnerPricing.d.ts.map +1 -0
- package/funcs/{billingListPartnerPricing.js → feePlansListPartnerPricing.js} +13 -9
- package/funcs/feePlansListPartnerPricing.js.map +1 -0
- package/funcs/{billingListPartnerPricingAgreements.d.ts → feePlansListPartnerPricingAgreements.d.ts} +3 -2
- package/funcs/feePlansListPartnerPricingAgreements.d.ts.map +1 -0
- package/funcs/{billingListPartnerPricingAgreements.js → feePlansListPartnerPricingAgreements.js} +13 -9
- package/funcs/feePlansListPartnerPricingAgreements.js.map +1 -0
- package/funcs/feePlansRetrieveFees.d.ts +16 -0
- package/funcs/feePlansRetrieveFees.d.ts.map +1 -0
- package/funcs/feePlansRetrieveFees.js +132 -0
- package/funcs/feePlansRetrieveFees.js.map +1 -0
- package/funcs/filesGet.d.ts +2 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +11 -7
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts +2 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +11 -7
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpload.d.ts +2 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +11 -7
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/industriesList.d.ts +2 -1
- package/funcs/industriesList.d.ts.map +1 -1
- package/funcs/industriesList.js +10 -6
- package/funcs/industriesList.js.map +1 -1
- package/funcs/institutionsSearch.d.ts +2 -1
- package/funcs/institutionsSearch.d.ts.map +1 -1
- package/funcs/institutionsSearch.js +11 -7
- package/funcs/institutionsSearch.js.map +1 -1
- package/funcs/issuingTransactionsGet.d.ts +2 -1
- package/funcs/issuingTransactionsGet.d.ts.map +1 -1
- package/funcs/issuingTransactionsGet.js +11 -7
- package/funcs/issuingTransactionsGet.js.map +1 -1
- package/funcs/issuingTransactionsGetAuthorization.d.ts +2 -1
- package/funcs/issuingTransactionsGetAuthorization.d.ts.map +1 -1
- package/funcs/issuingTransactionsGetAuthorization.js +11 -7
- package/funcs/issuingTransactionsGetAuthorization.js.map +1 -1
- package/funcs/issuingTransactionsList.d.ts +2 -1
- package/funcs/issuingTransactionsList.d.ts.map +1 -1
- package/funcs/issuingTransactionsList.js +11 -7
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizationEvents.d.ts +2 -1
- package/funcs/issuingTransactionsListAuthorizationEvents.d.ts.map +1 -1
- package/funcs/issuingTransactionsListAuthorizationEvents.js +11 -7
- package/funcs/issuingTransactionsListAuthorizationEvents.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizations.d.ts +2 -1
- package/funcs/issuingTransactionsListAuthorizations.d.ts.map +1 -1
- package/funcs/issuingTransactionsListAuthorizations.js +11 -7
- package/funcs/issuingTransactionsListAuthorizations.js.map +1 -1
- package/funcs/onboardingCreateInvite.d.ts +2 -1
- package/funcs/onboardingCreateInvite.d.ts.map +1 -1
- package/funcs/onboardingCreateInvite.js +11 -7
- package/funcs/onboardingCreateInvite.js.map +1 -1
- package/funcs/onboardingGetInvite.d.ts +2 -1
- package/funcs/onboardingGetInvite.d.ts.map +1 -1
- package/funcs/onboardingGetInvite.js +11 -7
- package/funcs/onboardingGetInvite.js.map +1 -1
- package/funcs/onboardingListInvites.d.ts +2 -1
- package/funcs/onboardingListInvites.d.ts.map +1 -1
- package/funcs/onboardingListInvites.js +10 -6
- package/funcs/onboardingListInvites.js.map +1 -1
- package/funcs/onboardingRevokeInvite.d.ts +2 -1
- package/funcs/onboardingRevokeInvite.d.ts.map +1 -1
- package/funcs/onboardingRevokeInvite.js +11 -7
- package/funcs/onboardingRevokeInvite.js.map +1 -1
- package/funcs/paymentLinksCreate.d.ts +2 -1
- package/funcs/paymentLinksCreate.d.ts.map +1 -1
- package/funcs/paymentLinksCreate.js +11 -7
- package/funcs/paymentLinksCreate.js.map +1 -1
- package/funcs/paymentLinksDisable.d.ts +2 -1
- package/funcs/paymentLinksDisable.d.ts.map +1 -1
- package/funcs/paymentLinksDisable.js +11 -7
- package/funcs/paymentLinksDisable.js.map +1 -1
- package/funcs/paymentLinksGet.d.ts +2 -1
- package/funcs/paymentLinksGet.d.ts.map +1 -1
- package/funcs/paymentLinksGet.js +11 -7
- package/funcs/paymentLinksGet.js.map +1 -1
- package/funcs/paymentLinksGetQRCode.d.ts +2 -1
- package/funcs/paymentLinksGetQRCode.d.ts.map +1 -1
- package/funcs/paymentLinksGetQRCode.js +11 -7
- package/funcs/paymentLinksGetQRCode.js.map +1 -1
- package/funcs/paymentLinksList.d.ts +2 -1
- package/funcs/paymentLinksList.d.ts.map +1 -1
- package/funcs/paymentLinksList.js +11 -7
- package/funcs/paymentLinksList.js.map +1 -1
- package/funcs/paymentLinksUpdate.d.ts +2 -1
- package/funcs/paymentLinksUpdate.d.ts.map +1 -1
- package/funcs/paymentLinksUpdate.js +11 -7
- package/funcs/paymentLinksUpdate.js.map +1 -1
- package/funcs/paymentMethodsGet.d.ts +2 -1
- package/funcs/paymentMethodsGet.d.ts.map +1 -1
- package/funcs/paymentMethodsGet.js +11 -7
- package/funcs/paymentMethodsGet.js.map +1 -1
- package/funcs/paymentMethodsList.d.ts +2 -1
- package/funcs/paymentMethodsList.d.ts.map +1 -1
- package/funcs/paymentMethodsList.js +11 -7
- package/funcs/paymentMethodsList.js.map +1 -1
- package/funcs/pingPing.d.ts +2 -1
- package/funcs/pingPing.d.ts.map +1 -1
- package/funcs/pingPing.js +10 -6
- package/funcs/pingPing.js.map +1 -1
- package/funcs/representativesCreate.d.ts +2 -1
- package/funcs/representativesCreate.d.ts.map +1 -1
- package/funcs/representativesCreate.js +11 -7
- package/funcs/representativesCreate.js.map +1 -1
- package/funcs/representativesDelete.d.ts +2 -1
- package/funcs/representativesDelete.d.ts.map +1 -1
- package/funcs/representativesDelete.js +11 -7
- package/funcs/representativesDelete.js.map +1 -1
- package/funcs/representativesGet.d.ts +2 -1
- package/funcs/representativesGet.d.ts.map +1 -1
- package/funcs/representativesGet.js +11 -7
- package/funcs/representativesGet.js.map +1 -1
- package/funcs/representativesList.d.ts +2 -1
- package/funcs/representativesList.d.ts.map +1 -1
- package/funcs/representativesList.js +11 -7
- package/funcs/representativesList.js.map +1 -1
- package/funcs/representativesUpdate.d.ts +2 -1
- package/funcs/representativesUpdate.d.ts.map +1 -1
- package/funcs/representativesUpdate.js +11 -7
- package/funcs/representativesUpdate.js.map +1 -1
- package/funcs/schedulingCancel.d.ts +2 -1
- package/funcs/schedulingCancel.d.ts.map +1 -1
- package/funcs/schedulingCancel.js +11 -7
- package/funcs/schedulingCancel.js.map +1 -1
- package/funcs/schedulingCreate.d.ts +2 -1
- package/funcs/schedulingCreate.d.ts.map +1 -1
- package/funcs/schedulingCreate.js +11 -7
- package/funcs/schedulingCreate.js.map +1 -1
- package/funcs/schedulingGet.d.ts +2 -1
- package/funcs/schedulingGet.d.ts.map +1 -1
- package/funcs/schedulingGet.js +11 -7
- package/funcs/schedulingGet.js.map +1 -1
- package/funcs/schedulingGetOccurrance.d.ts +2 -1
- package/funcs/schedulingGetOccurrance.d.ts.map +1 -1
- package/funcs/schedulingGetOccurrance.js +11 -7
- package/funcs/schedulingGetOccurrance.js.map +1 -1
- package/funcs/schedulingList.d.ts +2 -1
- package/funcs/schedulingList.d.ts.map +1 -1
- package/funcs/schedulingList.js +11 -7
- package/funcs/schedulingList.js.map +1 -1
- package/funcs/schedulingUpdate.d.ts +2 -1
- package/funcs/schedulingUpdate.d.ts.map +1 -1
- package/funcs/schedulingUpdate.js +11 -7
- package/funcs/schedulingUpdate.js.map +1 -1
- package/funcs/sweepsCreateConfig.d.ts +2 -1
- package/funcs/sweepsCreateConfig.d.ts.map +1 -1
- package/funcs/sweepsCreateConfig.js +11 -7
- package/funcs/sweepsCreateConfig.js.map +1 -1
- package/funcs/sweepsGet.d.ts +2 -1
- package/funcs/sweepsGet.d.ts.map +1 -1
- package/funcs/sweepsGet.js +11 -7
- package/funcs/sweepsGet.js.map +1 -1
- package/funcs/sweepsGetConfig.d.ts +2 -1
- package/funcs/sweepsGetConfig.d.ts.map +1 -1
- package/funcs/sweepsGetConfig.js +11 -7
- package/funcs/sweepsGetConfig.js.map +1 -1
- package/funcs/sweepsList.d.ts +2 -1
- package/funcs/sweepsList.d.ts.map +1 -1
- package/funcs/sweepsList.js +11 -7
- package/funcs/sweepsList.js.map +1 -1
- package/funcs/sweepsListConfigs.d.ts +2 -1
- package/funcs/sweepsListConfigs.d.ts.map +1 -1
- package/funcs/sweepsListConfigs.js +11 -7
- package/funcs/sweepsListConfigs.js.map +1 -1
- package/funcs/sweepsUpdateConfig.d.ts +2 -1
- package/funcs/sweepsUpdateConfig.d.ts.map +1 -1
- package/funcs/sweepsUpdateConfig.js +11 -7
- package/funcs/sweepsUpdateConfig.js.map +1 -1
- package/funcs/transfersCreate.d.ts +2 -1
- package/funcs/transfersCreate.d.ts.map +1 -1
- package/funcs/transfersCreate.js +11 -7
- package/funcs/transfersCreate.js.map +1 -1
- package/funcs/transfersCreateReversal.d.ts +2 -1
- package/funcs/transfersCreateReversal.d.ts.map +1 -1
- package/funcs/transfersCreateReversal.js +11 -7
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersGenerateOptions.d.ts +3 -1
- package/funcs/transfersGenerateOptions.d.ts.map +1 -1
- package/funcs/transfersGenerateOptions.js +20 -6
- package/funcs/transfersGenerateOptions.js.map +1 -1
- package/funcs/transfersGet.d.ts +2 -1
- package/funcs/transfersGet.d.ts.map +1 -1
- package/funcs/transfersGet.js +11 -7
- package/funcs/transfersGet.js.map +1 -1
- package/funcs/transfersGetRefund.d.ts +2 -1
- package/funcs/transfersGetRefund.d.ts.map +1 -1
- package/funcs/transfersGetRefund.js +11 -7
- package/funcs/transfersGetRefund.js.map +1 -1
- package/funcs/transfersInitiateRefund.d.ts +2 -1
- package/funcs/transfersInitiateRefund.d.ts.map +1 -1
- package/funcs/transfersInitiateRefund.js +11 -7
- package/funcs/transfersInitiateRefund.js.map +1 -1
- package/funcs/transfersList.d.ts +2 -1
- package/funcs/transfersList.d.ts.map +1 -1
- package/funcs/transfersList.js +11 -7
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListRefunds.d.ts +2 -1
- package/funcs/transfersListRefunds.d.ts.map +1 -1
- package/funcs/transfersListRefunds.js +11 -7
- package/funcs/transfersListRefunds.js.map +1 -1
- package/funcs/transfersUpdate.d.ts +2 -1
- package/funcs/transfersUpdate.d.ts.map +1 -1
- package/funcs/transfersUpdate.js +11 -7
- package/funcs/transfersUpdate.js.map +1 -1
- package/funcs/underwritingGet.d.ts +2 -1
- package/funcs/underwritingGet.d.ts.map +1 -1
- package/funcs/underwritingGet.js +11 -7
- package/funcs/underwritingGet.js.map +1 -1
- package/funcs/underwritingUpsert.d.ts +2 -1
- package/funcs/underwritingUpsert.d.ts.map +1 -1
- package/funcs/underwritingUpsert.js +11 -7
- package/funcs/underwritingUpsert.js.map +1 -1
- package/funcs/walletTransactionsGet.d.ts +2 -1
- package/funcs/walletTransactionsGet.d.ts.map +1 -1
- package/funcs/walletTransactionsGet.js +11 -7
- package/funcs/walletTransactionsGet.js.map +1 -1
- package/funcs/walletTransactionsList.d.ts +2 -1
- package/funcs/walletTransactionsList.d.ts.map +1 -1
- package/funcs/walletTransactionsList.js +11 -7
- package/funcs/walletTransactionsList.js.map +1 -1
- package/funcs/walletsGet.d.ts +2 -1
- package/funcs/walletsGet.d.ts.map +1 -1
- package/funcs/walletsGet.js +11 -7
- package/funcs/walletsGet.js.map +1 -1
- package/funcs/walletsList.d.ts +2 -1
- package/funcs/walletsList.d.ts.map +1 -1
- package/funcs/walletsList.js +11 -7
- package/funcs/walletsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/models/components/createtransferoptions.d.ts +35 -0
- package/models/components/createtransferoptions.d.ts.map +1 -0
- package/models/components/createtransferoptions.js +75 -0
- package/models/components/createtransferoptions.js.map +1 -0
- package/models/components/feemodel.d.ts +3 -0
- package/models/components/feemodel.d.ts.map +1 -1
- package/models/components/feemodel.js +1 -0
- package/models/components/feemodel.js.map +1 -1
- package/models/components/generatedby.d.ts +33 -0
- package/models/components/generatedby.d.ts.map +1 -0
- package/models/components/generatedby.js +82 -0
- package/models/components/generatedby.js.map +1 -0
- package/models/components/generatedbyaccountid.d.ts +29 -0
- package/models/components/generatedbyaccountid.d.ts.map +1 -0
- package/models/components/generatedbyaccountid.js +78 -0
- package/models/components/generatedbyaccountid.js.map +1 -0
- package/models/components/generatedbybankaccountid.d.ts +29 -0
- package/models/components/generatedbybankaccountid.d.ts.map +1 -0
- package/models/components/generatedbybankaccountid.js +78 -0
- package/models/components/generatedbybankaccountid.js.map +1 -0
- package/models/components/generatedbycardid.d.ts +29 -0
- package/models/components/generatedbycardid.d.ts.map +1 -0
- package/models/components/generatedbycardid.js +78 -0
- package/models/components/generatedbycardid.js.map +1 -0
- package/models/components/generatedbydisputeid.d.ts +29 -0
- package/models/components/generatedbydisputeid.d.ts.map +1 -0
- package/models/components/generatedbydisputeid.js +78 -0
- package/models/components/generatedbydisputeid.js.map +1 -0
- package/models/components/generatedbytransferid.d.ts +29 -0
- package/models/components/generatedbytransferid.d.ts.map +1 -0
- package/models/components/generatedbytransferid.js +69 -0
- package/models/components/generatedbytransferid.js.map +1 -0
- package/models/components/incurredfee.d.ts +49 -0
- package/models/components/incurredfee.d.ts.map +1 -0
- package/models/components/incurredfee.js +84 -0
- package/models/components/incurredfee.js.map +1 -0
- package/models/components/index.d.ts +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listfeesfetchrequest.d.ts +32 -0
- package/models/components/listfeesfetchrequest.d.ts.map +1 -0
- package/models/components/listfeesfetchrequest.js +69 -0
- package/models/components/listfeesfetchrequest.js.map +1 -0
- package/models/components/sourcedestinationoptions.d.ts +31 -0
- package/models/components/sourcedestinationoptions.d.ts.map +1 -0
- package/models/components/sourcedestinationoptions.js +71 -0
- package/models/components/sourcedestinationoptions.js.map +1 -0
- package/models/operations/createtransferoptions.d.ts +0 -21
- package/models/operations/createtransferoptions.d.ts.map +1 -1
- package/models/operations/createtransferoptions.js +1 -24
- package/models/operations/createtransferoptions.js.map +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listfeesfetch.d.ts +101 -0
- package/models/operations/listfeesfetch.d.ts.map +1 -0
- package/models/operations/listfeesfetch.js +157 -0
- package/models/operations/listfeesfetch.js.map +1 -0
- package/models/operations/retrievefees.d.ts +123 -0
- package/models/operations/retrievefees.d.ts.map +1 -0
- package/models/operations/retrievefees.js +157 -0
- package/models/operations/retrievefees.js.map +1 -0
- package/package.json +1 -1
- package/sdk/{billing.d.ts → feeplans.d.ts} +16 -2
- package/sdk/feeplans.d.ts.map +1 -0
- package/sdk/feeplans.js +83 -0
- package/sdk/feeplans.js.map +1 -0
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/transfers.d.ts +2 -1
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountsAssignCountries.ts +37 -8
- package/src/funcs/accountsCreate.ts +37 -8
- package/src/funcs/accountsDisconnect.ts +36 -8
- package/src/funcs/accountsGet.ts +35 -8
- package/src/funcs/accountsGetCountries.ts +35 -8
- package/src/funcs/accountsGetMerchantProcessingAgreement.ts +35 -8
- package/src/funcs/accountsGetTermsOfServiceToken.ts +35 -8
- package/src/funcs/accountsList.ts +35 -8
- package/src/funcs/accountsUpdate.ts +37 -8
- package/src/funcs/adjustmentsGet.ts +35 -8
- package/src/funcs/adjustmentsList.ts +35 -8
- package/src/funcs/applePayCreateSession.ts +36 -8
- package/src/funcs/applePayGetMerchantDomains.ts +35 -8
- package/src/funcs/applePayLinkToken.ts +37 -8
- package/src/funcs/applePayRegisterMerchantDomains.ts +36 -8
- package/src/funcs/applePayUpdateMerchantDomains.ts +36 -8
- package/src/funcs/authenticationCreateAccessToken.ts +37 -8
- package/src/funcs/authenticationRevokeAccessToken.ts +37 -8
- package/src/funcs/avatarsGet.ts +35 -8
- package/src/funcs/bankAccountsCompleteMicroDeposits.ts +37 -8
- package/src/funcs/bankAccountsCompleteVerification.ts +36 -8
- package/src/funcs/bankAccountsDisable.ts +36 -8
- package/src/funcs/bankAccountsGet.ts +35 -8
- package/src/funcs/bankAccountsGetVerification.ts +35 -8
- package/src/funcs/bankAccountsInitiateMicroDeposits.ts +36 -8
- package/src/funcs/bankAccountsInitiateVerification.ts +36 -8
- package/src/funcs/bankAccountsLink.ts +37 -8
- package/src/funcs/bankAccountsList.ts +35 -8
- package/src/funcs/brandingCreate.ts +37 -8
- package/src/funcs/brandingGet.ts +35 -8
- package/src/funcs/brandingUpdate.ts +37 -8
- package/src/funcs/brandingUpsert.ts +37 -8
- package/src/funcs/capabilitiesDisable.ts +36 -8
- package/src/funcs/capabilitiesGet.ts +35 -8
- package/src/funcs/capabilitiesList.ts +35 -8
- package/src/funcs/capabilitiesRequest.ts +37 -8
- package/src/funcs/cardIssuingGet.ts +35 -8
- package/src/funcs/cardIssuingGetFull.ts +35 -8
- package/src/funcs/cardIssuingList.ts +35 -8
- package/src/funcs/cardIssuingRequest.ts +37 -8
- package/src/funcs/cardIssuingUpdate.ts +37 -8
- package/src/funcs/cardsDisable.ts +36 -8
- package/src/funcs/cardsGet.ts +35 -8
- package/src/funcs/cardsLink.ts +37 -8
- package/src/funcs/cardsList.ts +35 -8
- package/src/funcs/cardsUpdate.ts +37 -8
- package/src/funcs/disputesAccept.ts +36 -8
- package/src/funcs/disputesDeleteEvidence.ts +36 -8
- package/src/funcs/disputesGet.ts +35 -8
- package/src/funcs/disputesGetEvidence.ts +35 -8
- package/src/funcs/disputesGetEvidenceData.ts +37 -8
- package/src/funcs/disputesList.ts +36 -8
- package/src/funcs/disputesListEvidence.ts +35 -8
- package/src/funcs/disputesSubmitEvidence.ts +36 -8
- package/src/funcs/disputesUpdateEvidence.ts +36 -8
- package/src/funcs/disputesUploadEvidenceFile.ts +37 -8
- package/src/funcs/disputesUploadEvidenceText.ts +36 -8
- package/src/funcs/endToEndEncryptionGenerateKey.ts +34 -7
- package/src/funcs/endToEndEncryptionTestEncryptedToken.ts +36 -8
- package/src/funcs/enrichedAddressGet.ts +35 -8
- package/src/funcs/enrichedProfileGet.ts +35 -8
- package/src/funcs/{billingCreateFeePlanAgreements.ts → feePlansCreateFeePlanAgreements.ts} +37 -8
- package/src/funcs/{billingListFeePlanAgreements.ts → feePlansListFeePlanAgreements.ts} +35 -8
- package/src/funcs/{billingListFeePlans.ts → feePlansListFeePlans.ts} +35 -8
- package/src/funcs/feePlansListFeesFetch.ts +176 -0
- package/src/funcs/{billingListPartnerPricing.ts → feePlansListPartnerPricing.ts} +35 -8
- package/src/funcs/{billingListPartnerPricingAgreements.ts → feePlansListPartnerPricingAgreements.ts} +35 -8
- package/src/funcs/feePlansRetrieveFees.ts +183 -0
- package/src/funcs/filesGet.ts +35 -8
- package/src/funcs/filesList.ts +35 -8
- package/src/funcs/filesUpload.ts +37 -8
- package/src/funcs/industriesList.ts +34 -7
- package/src/funcs/institutionsSearch.ts +36 -8
- package/src/funcs/issuingTransactionsGet.ts +35 -8
- package/src/funcs/issuingTransactionsGetAuthorization.ts +35 -8
- package/src/funcs/issuingTransactionsList.ts +35 -8
- package/src/funcs/issuingTransactionsListAuthorizationEvents.ts +35 -8
- package/src/funcs/issuingTransactionsListAuthorizations.ts +35 -8
- package/src/funcs/onboardingCreateInvite.ts +37 -8
- package/src/funcs/onboardingGetInvite.ts +35 -8
- package/src/funcs/onboardingListInvites.ts +34 -7
- package/src/funcs/onboardingRevokeInvite.ts +35 -8
- package/src/funcs/paymentLinksCreate.ts +37 -8
- package/src/funcs/paymentLinksDisable.ts +35 -8
- package/src/funcs/paymentLinksGet.ts +35 -8
- package/src/funcs/paymentLinksGetQRCode.ts +35 -8
- package/src/funcs/paymentLinksList.ts +35 -8
- package/src/funcs/paymentLinksUpdate.ts +37 -8
- package/src/funcs/paymentMethodsGet.ts +35 -8
- package/src/funcs/paymentMethodsList.ts +35 -8
- package/src/funcs/pingPing.ts +34 -7
- package/src/funcs/representativesCreate.ts +37 -8
- package/src/funcs/representativesDelete.ts +36 -8
- package/src/funcs/representativesGet.ts +35 -8
- package/src/funcs/representativesList.ts +35 -8
- package/src/funcs/representativesUpdate.ts +36 -8
- package/src/funcs/schedulingCancel.ts +36 -8
- package/src/funcs/schedulingCreate.ts +37 -8
- package/src/funcs/schedulingGet.ts +35 -8
- package/src/funcs/schedulingGetOccurrance.ts +35 -8
- package/src/funcs/schedulingList.ts +35 -8
- package/src/funcs/schedulingUpdate.ts +37 -8
- package/src/funcs/sweepsCreateConfig.ts +37 -8
- package/src/funcs/sweepsGet.ts +35 -8
- package/src/funcs/sweepsGetConfig.ts +35 -8
- package/src/funcs/sweepsList.ts +35 -8
- package/src/funcs/sweepsListConfigs.ts +35 -8
- package/src/funcs/sweepsUpdateConfig.ts +37 -8
- package/src/funcs/transfersCreate.ts +38 -8
- package/src/funcs/transfersCreateReversal.ts +37 -8
- package/src/funcs/transfersGenerateOptions.ts +53 -9
- package/src/funcs/transfersGet.ts +35 -8
- package/src/funcs/transfersGetRefund.ts +35 -8
- package/src/funcs/transfersInitiateRefund.ts +38 -8
- package/src/funcs/transfersList.ts +35 -8
- package/src/funcs/transfersListRefunds.ts +35 -8
- package/src/funcs/transfersUpdate.ts +35 -8
- package/src/funcs/underwritingGet.ts +35 -8
- package/src/funcs/underwritingUpsert.ts +37 -8
- package/src/funcs/walletTransactionsGet.ts +35 -8
- package/src/funcs/walletTransactionsList.ts +35 -8
- package/src/funcs/walletsGet.ts +35 -8
- package/src/funcs/walletsList.ts +35 -8
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +1 -1
- package/src/models/components/createtransferoptions.ts +86 -0
- package/src/models/components/feemodel.ts +1 -0
- package/src/models/components/generatedby.ts +109 -0
- package/src/models/components/generatedbyaccountid.ts +75 -0
- package/src/models/components/generatedbybankaccountid.ts +75 -0
- package/src/models/components/generatedbycardid.ts +75 -0
- package/src/models/components/generatedbydisputeid.ts +75 -0
- package/src/models/components/generatedbytransferid.ts +66 -0
- package/src/models/components/incurredfee.ts +105 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/listfeesfetchrequest.ts +69 -0
- package/src/models/components/sourcedestinationoptions.ts +70 -0
- package/src/models/operations/createtransferoptions.ts +0 -52
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listfeesfetch.ts +233 -0
- package/src/models/operations/retrievefees.ts +255 -0
- package/src/sdk/{billing.ts → feeplans.ts} +47 -11
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/transfers.ts +2 -1
- package/src/types/async.ts +68 -0
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
- package/funcs/billingCreateFeePlanAgreements.d.ts.map +0 -1
- package/funcs/billingCreateFeePlanAgreements.js.map +0 -1
- package/funcs/billingListFeePlanAgreements.d.ts.map +0 -1
- package/funcs/billingListFeePlanAgreements.js.map +0 -1
- package/funcs/billingListFeePlans.d.ts.map +0 -1
- package/funcs/billingListFeePlans.js.map +0 -1
- package/funcs/billingListPartnerPricing.d.ts.map +0 -1
- package/funcs/billingListPartnerPricing.js.map +0 -1
- package/funcs/billingListPartnerPricingAgreements.d.ts.map +0 -1
- package/funcs/billingListPartnerPricingAgreements.js.map +0 -1
- package/sdk/billing.d.ts.map +0 -1
- package/sdk/billing.js +0 -63
- package/sdk/billing.js.map +0 -1
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function transfersUpdate(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.UpdateTransferRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.UpdateTransferResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function transfersUpdate(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.UpdateTransferRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.UpdateTransferResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -52,7 +79,7 @@ export async function transfersUpdate(
|
|
|
52
79
|
"Input validation failed",
|
|
53
80
|
);
|
|
54
81
|
if (!parsed.ok) {
|
|
55
|
-
return parsed;
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
56
83
|
}
|
|
57
84
|
const payload = parsed.value;
|
|
58
85
|
const body = encodeJSON("body", payload.PatchTransfer, { explode: true });
|
|
@@ -86,7 +113,7 @@ export async function transfersUpdate(
|
|
|
86
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
87
114
|
|
|
88
115
|
const context = {
|
|
89
|
-
baseURL: options?.serverURL ?? "",
|
|
116
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
90
117
|
operationID: "updateTransfer",
|
|
91
118
|
oAuth2Scopes: [],
|
|
92
119
|
|
|
@@ -109,7 +136,7 @@ export async function transfersUpdate(
|
|
|
109
136
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
110
137
|
}, options);
|
|
111
138
|
if (!requestRes.ok) {
|
|
112
|
-
return requestRes;
|
|
139
|
+
return [requestRes, { status: "invalid" }];
|
|
113
140
|
}
|
|
114
141
|
const req = requestRes.value;
|
|
115
142
|
|
|
@@ -120,7 +147,7 @@ export async function transfersUpdate(
|
|
|
120
147
|
retryCodes: context.retryCodes,
|
|
121
148
|
});
|
|
122
149
|
if (!doResult.ok) {
|
|
123
|
-
return doResult;
|
|
150
|
+
return [doResult, { status: "request-error", request: req }];
|
|
124
151
|
}
|
|
125
152
|
const response = doResult.value;
|
|
126
153
|
|
|
@@ -148,8 +175,8 @@ export async function transfersUpdate(
|
|
|
148
175
|
M.fail("5XX"),
|
|
149
176
|
)(response, { extraFields: responseFields });
|
|
150
177
|
if (!result.ok) {
|
|
151
|
-
return result;
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
152
179
|
}
|
|
153
180
|
|
|
154
|
-
return result;
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
155
182
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/profile.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function underwritingGet(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.GetUnderwritingRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.GetUnderwritingResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function underwritingGet(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.GetUnderwritingRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.GetUnderwritingResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -52,7 +79,7 @@ export async function underwritingGet(
|
|
|
52
79
|
"Input validation failed",
|
|
53
80
|
);
|
|
54
81
|
if (!parsed.ok) {
|
|
55
|
-
return parsed;
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
56
83
|
}
|
|
57
84
|
const payload = parsed.value;
|
|
58
85
|
const body = null;
|
|
@@ -79,7 +106,7 @@ export async function underwritingGet(
|
|
|
79
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
107
|
|
|
81
108
|
const context = {
|
|
82
|
-
baseURL: options?.serverURL ?? "",
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
83
110
|
operationID: "getUnderwriting",
|
|
84
111
|
oAuth2Scopes: [],
|
|
85
112
|
|
|
@@ -102,7 +129,7 @@ export async function underwritingGet(
|
|
|
102
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
130
|
}, options);
|
|
104
131
|
if (!requestRes.ok) {
|
|
105
|
-
return requestRes;
|
|
132
|
+
return [requestRes, { status: "invalid" }];
|
|
106
133
|
}
|
|
107
134
|
const req = requestRes.value;
|
|
108
135
|
|
|
@@ -113,7 +140,7 @@ export async function underwritingGet(
|
|
|
113
140
|
retryCodes: context.retryCodes,
|
|
114
141
|
});
|
|
115
142
|
if (!doResult.ok) {
|
|
116
|
-
return doResult;
|
|
143
|
+
return [doResult, { status: "request-error", request: req }];
|
|
117
144
|
}
|
|
118
145
|
const response = doResult.value;
|
|
119
146
|
|
|
@@ -141,8 +168,8 @@ export async function underwritingGet(
|
|
|
141
168
|
M.fail("5XX"),
|
|
142
169
|
)(response, { extraFields: responseFields });
|
|
143
170
|
if (!result.ok) {
|
|
144
|
-
return result;
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
145
172
|
}
|
|
146
173
|
|
|
147
|
-
return result;
|
|
174
|
+
return [result, { status: "complete", request: req, response }];
|
|
148
175
|
}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
25
|
import { Result } from "../types/fp.js";
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -31,11 +32,11 @@ import { Result } from "../types/fp.js";
|
|
|
31
32
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
33
|
* you'll need to specify the `/accounts/{accountID}/profile.write` scope.
|
|
33
34
|
*/
|
|
34
|
-
export
|
|
35
|
+
export function underwritingUpsert(
|
|
35
36
|
client: MoovCore,
|
|
36
37
|
request: operations.UpsertUnderwritingRequest,
|
|
37
38
|
options?: RequestOptions,
|
|
38
|
-
):
|
|
39
|
+
): APIPromise<
|
|
39
40
|
Result<
|
|
40
41
|
operations.UpsertUnderwritingResponse,
|
|
41
42
|
| errors.GenericError
|
|
@@ -48,6 +49,34 @@ export async function underwritingUpsert(
|
|
|
48
49
|
| RequestTimeoutError
|
|
49
50
|
| ConnectionError
|
|
50
51
|
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: MoovCore,
|
|
62
|
+
request: operations.UpsertUnderwritingRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.UpsertUnderwritingResponse,
|
|
68
|
+
| errors.GenericError
|
|
69
|
+
| errors.UpdateUnderwritingError
|
|
70
|
+
| APIError
|
|
71
|
+
| SDKValidationError
|
|
72
|
+
| UnexpectedClientError
|
|
73
|
+
| InvalidRequestError
|
|
74
|
+
| RequestAbortedError
|
|
75
|
+
| RequestTimeoutError
|
|
76
|
+
| ConnectionError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
51
80
|
> {
|
|
52
81
|
const parsed = safeParse(
|
|
53
82
|
request,
|
|
@@ -55,7 +84,7 @@ export async function underwritingUpsert(
|
|
|
55
84
|
"Input validation failed",
|
|
56
85
|
);
|
|
57
86
|
if (!parsed.ok) {
|
|
58
|
-
return parsed;
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
59
88
|
}
|
|
60
89
|
const payload = parsed.value;
|
|
61
90
|
const body = encodeJSON("body", payload.UpdateUnderwriting, {
|
|
@@ -85,7 +114,7 @@ export async function underwritingUpsert(
|
|
|
85
114
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
115
|
|
|
87
116
|
const context = {
|
|
88
|
-
baseURL: options?.serverURL ?? "",
|
|
117
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
118
|
operationID: "upsertUnderwriting",
|
|
90
119
|
oAuth2Scopes: [],
|
|
91
120
|
|
|
@@ -108,7 +137,7 @@ export async function underwritingUpsert(
|
|
|
108
137
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
109
138
|
}, options);
|
|
110
139
|
if (!requestRes.ok) {
|
|
111
|
-
return requestRes;
|
|
140
|
+
return [requestRes, { status: "invalid" }];
|
|
112
141
|
}
|
|
113
142
|
const req = requestRes.value;
|
|
114
143
|
|
|
@@ -131,7 +160,7 @@ export async function underwritingUpsert(
|
|
|
131
160
|
retryCodes: context.retryCodes,
|
|
132
161
|
});
|
|
133
162
|
if (!doResult.ok) {
|
|
134
|
-
return doResult;
|
|
163
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135
164
|
}
|
|
136
165
|
const response = doResult.value;
|
|
137
166
|
|
|
@@ -165,8 +194,8 @@ export async function underwritingUpsert(
|
|
|
165
194
|
M.fail("5XX"),
|
|
166
195
|
)(response, { extraFields: responseFields });
|
|
167
196
|
if (!result.ok) {
|
|
168
|
-
return result;
|
|
197
|
+
return [result, { status: "complete", request: req, response }];
|
|
169
198
|
}
|
|
170
199
|
|
|
171
|
-
return result;
|
|
200
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
201
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function walletTransactionsGet(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.GetWalletTransactionRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.GetWalletTransactionResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function walletTransactionsGet(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.GetWalletTransactionRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.GetWalletTransactionResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -53,7 +80,7 @@ export async function walletTransactionsGet(
|
|
|
53
80
|
"Input validation failed",
|
|
54
81
|
);
|
|
55
82
|
if (!parsed.ok) {
|
|
56
|
-
return parsed;
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
57
84
|
}
|
|
58
85
|
const payload = parsed.value;
|
|
59
86
|
const body = null;
|
|
@@ -90,7 +117,7 @@ export async function walletTransactionsGet(
|
|
|
90
117
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
91
118
|
|
|
92
119
|
const context = {
|
|
93
|
-
baseURL: options?.serverURL ?? "",
|
|
120
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
94
121
|
operationID: "getWalletTransaction",
|
|
95
122
|
oAuth2Scopes: [],
|
|
96
123
|
|
|
@@ -113,7 +140,7 @@ export async function walletTransactionsGet(
|
|
|
113
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
114
141
|
}, options);
|
|
115
142
|
if (!requestRes.ok) {
|
|
116
|
-
return requestRes;
|
|
143
|
+
return [requestRes, { status: "invalid" }];
|
|
117
144
|
}
|
|
118
145
|
const req = requestRes.value;
|
|
119
146
|
|
|
@@ -124,7 +151,7 @@ export async function walletTransactionsGet(
|
|
|
124
151
|
retryCodes: context.retryCodes,
|
|
125
152
|
});
|
|
126
153
|
if (!doResult.ok) {
|
|
127
|
-
return doResult;
|
|
154
|
+
return [doResult, { status: "request-error", request: req }];
|
|
128
155
|
}
|
|
129
156
|
const response = doResult.value;
|
|
130
157
|
|
|
@@ -152,8 +179,8 @@ export async function walletTransactionsGet(
|
|
|
152
179
|
M.fail("5XX"),
|
|
153
180
|
)(response, { extraFields: responseFields });
|
|
154
181
|
if (!result.ok) {
|
|
155
|
-
return result;
|
|
182
|
+
return [result, { status: "complete", request: req, response }];
|
|
156
183
|
}
|
|
157
184
|
|
|
158
|
-
return result;
|
|
185
|
+
return [result, { status: "complete", request: req, response }];
|
|
159
186
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function walletTransactionsList(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.ListWalletTransactionsRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.ListWalletTransactionsResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function walletTransactionsList(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.ListWalletTransactionsRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.ListWalletTransactionsResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -53,7 +80,7 @@ export async function walletTransactionsList(
|
|
|
53
80
|
"Input validation failed",
|
|
54
81
|
);
|
|
55
82
|
if (!parsed.ok) {
|
|
56
|
-
return parsed;
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
57
84
|
}
|
|
58
85
|
const payload = parsed.value;
|
|
59
86
|
const body = null;
|
|
@@ -100,7 +127,7 @@ export async function walletTransactionsList(
|
|
|
100
127
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
128
|
|
|
102
129
|
const context = {
|
|
103
|
-
baseURL: options?.serverURL ?? "",
|
|
130
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
131
|
operationID: "listWalletTransactions",
|
|
105
132
|
oAuth2Scopes: [],
|
|
106
133
|
|
|
@@ -124,7 +151,7 @@ export async function walletTransactionsList(
|
|
|
124
151
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
125
152
|
}, options);
|
|
126
153
|
if (!requestRes.ok) {
|
|
127
|
-
return requestRes;
|
|
154
|
+
return [requestRes, { status: "invalid" }];
|
|
128
155
|
}
|
|
129
156
|
const req = requestRes.value;
|
|
130
157
|
|
|
@@ -135,7 +162,7 @@ export async function walletTransactionsList(
|
|
|
135
162
|
retryCodes: context.retryCodes,
|
|
136
163
|
});
|
|
137
164
|
if (!doResult.ok) {
|
|
138
|
-
return doResult;
|
|
165
|
+
return [doResult, { status: "request-error", request: req }];
|
|
139
166
|
}
|
|
140
167
|
const response = doResult.value;
|
|
141
168
|
|
|
@@ -163,8 +190,8 @@ export async function walletTransactionsList(
|
|
|
163
190
|
M.fail("5XX"),
|
|
164
191
|
)(response, { extraFields: responseFields });
|
|
165
192
|
if (!result.ok) {
|
|
166
|
-
return result;
|
|
193
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
194
|
}
|
|
168
195
|
|
|
169
|
-
return result;
|
|
196
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
197
|
}
|
package/src/funcs/walletsGet.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function walletsGet(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.GetWalletRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.GetWalletResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function walletsGet(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.GetWalletRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.GetWalletResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -52,7 +79,7 @@ export async function walletsGet(
|
|
|
52
79
|
"Input validation failed",
|
|
53
80
|
);
|
|
54
81
|
if (!parsed.ok) {
|
|
55
|
-
return parsed;
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
56
83
|
}
|
|
57
84
|
const payload = parsed.value;
|
|
58
85
|
const body = null;
|
|
@@ -85,7 +112,7 @@ export async function walletsGet(
|
|
|
85
112
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
113
|
|
|
87
114
|
const context = {
|
|
88
|
-
baseURL: options?.serverURL ?? "",
|
|
115
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
116
|
operationID: "getWallet",
|
|
90
117
|
oAuth2Scopes: [],
|
|
91
118
|
|
|
@@ -108,7 +135,7 @@ export async function walletsGet(
|
|
|
108
135
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
109
136
|
}, options);
|
|
110
137
|
if (!requestRes.ok) {
|
|
111
|
-
return requestRes;
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
112
139
|
}
|
|
113
140
|
const req = requestRes.value;
|
|
114
141
|
|
|
@@ -119,7 +146,7 @@ export async function walletsGet(
|
|
|
119
146
|
retryCodes: context.retryCodes,
|
|
120
147
|
});
|
|
121
148
|
if (!doResult.ok) {
|
|
122
|
-
return doResult;
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
123
150
|
}
|
|
124
151
|
const response = doResult.value;
|
|
125
152
|
|
|
@@ -147,8 +174,8 @@ export async function walletsGet(
|
|
|
147
174
|
M.fail("5XX"),
|
|
148
175
|
)(response, { extraFields: responseFields });
|
|
149
176
|
if (!result.ok) {
|
|
150
|
-
return result;
|
|
177
|
+
return [result, { status: "complete", request: req, response }];
|
|
151
178
|
}
|
|
152
179
|
|
|
153
|
-
return result;
|
|
180
|
+
return [result, { status: "complete", request: req, response }];
|
|
154
181
|
}
|
package/src/funcs/walletsList.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
21
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
22
|
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
23
24
|
import { Result } from "../types/fp.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
32
|
* you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function walletsList(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.ListWalletsRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.ListWalletsResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function walletsList(
|
|
|
45
46
|
| RequestTimeoutError
|
|
46
47
|
| ConnectionError
|
|
47
48
|
>
|
|
49
|
+
> {
|
|
50
|
+
return new APIPromise($do(
|
|
51
|
+
client,
|
|
52
|
+
request,
|
|
53
|
+
options,
|
|
54
|
+
));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
async function $do(
|
|
58
|
+
client: MoovCore,
|
|
59
|
+
request: operations.ListWalletsRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.ListWalletsResponse,
|
|
65
|
+
| APIError
|
|
66
|
+
| SDKValidationError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| InvalidRequestError
|
|
69
|
+
| RequestAbortedError
|
|
70
|
+
| RequestTimeoutError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
>,
|
|
73
|
+
APICall,
|
|
74
|
+
]
|
|
48
75
|
> {
|
|
49
76
|
const parsed = safeParse(
|
|
50
77
|
request,
|
|
@@ -52,7 +79,7 @@ export async function walletsList(
|
|
|
52
79
|
"Input validation failed",
|
|
53
80
|
);
|
|
54
81
|
if (!parsed.ok) {
|
|
55
|
-
return parsed;
|
|
82
|
+
return [parsed, { status: "invalid" }];
|
|
56
83
|
}
|
|
57
84
|
const payload = parsed.value;
|
|
58
85
|
const body = null;
|
|
@@ -79,7 +106,7 @@ export async function walletsList(
|
|
|
79
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
80
107
|
|
|
81
108
|
const context = {
|
|
82
|
-
baseURL: options?.serverURL ?? "",
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
83
110
|
operationID: "listWallets",
|
|
84
111
|
oAuth2Scopes: [],
|
|
85
112
|
|
|
@@ -102,7 +129,7 @@ export async function walletsList(
|
|
|
102
129
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
103
130
|
}, options);
|
|
104
131
|
if (!requestRes.ok) {
|
|
105
|
-
return requestRes;
|
|
132
|
+
return [requestRes, { status: "invalid" }];
|
|
106
133
|
}
|
|
107
134
|
const req = requestRes.value;
|
|
108
135
|
|
|
@@ -113,7 +140,7 @@ export async function walletsList(
|
|
|
113
140
|
retryCodes: context.retryCodes,
|
|
114
141
|
});
|
|
115
142
|
if (!doResult.ok) {
|
|
116
|
-
return doResult;
|
|
143
|
+
return [doResult, { status: "request-error", request: req }];
|
|
117
144
|
}
|
|
118
145
|
const response = doResult.value;
|
|
119
146
|
|
|
@@ -141,8 +168,8 @@ export async function walletsList(
|
|
|
141
168
|
M.fail("5XX"),
|
|
142
169
|
)(response, { extraFields: responseFields });
|
|
143
170
|
if (!result.ok) {
|
|
144
|
-
return result;
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
145
172
|
}
|
|
146
173
|
|
|
147
|
-
return result;
|
|
174
|
+
return [result, { status: "complete", request: req, response }];
|
|
148
175
|
}
|