@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
|
@@ -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
|
/**
|
|
@@ -29,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
31
|
* you'll need to specify the `/accounts/{accountID}/branding.write` scope.
|
|
31
32
|
*/
|
|
32
|
-
export
|
|
33
|
+
export function brandingUpdate(
|
|
33
34
|
client: MoovCore,
|
|
34
35
|
request: operations.UpdateBrandRequest,
|
|
35
36
|
options?: RequestOptions,
|
|
36
|
-
):
|
|
37
|
+
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.UpdateBrandResponse,
|
|
39
40
|
| errors.GenericError
|
|
@@ -46,6 +47,34 @@ export async function brandingUpdate(
|
|
|
46
47
|
| RequestTimeoutError
|
|
47
48
|
| ConnectionError
|
|
48
49
|
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MoovCore,
|
|
60
|
+
request: operations.UpdateBrandRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
operations.UpdateBrandResponse,
|
|
66
|
+
| errors.GenericError
|
|
67
|
+
| errors.BrandValidationError
|
|
68
|
+
| APIError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
49
78
|
> {
|
|
50
79
|
const parsed = safeParse(
|
|
51
80
|
request,
|
|
@@ -53,7 +82,7 @@ export async function brandingUpdate(
|
|
|
53
82
|
"Input validation failed",
|
|
54
83
|
);
|
|
55
84
|
if (!parsed.ok) {
|
|
56
|
-
return parsed;
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
57
86
|
}
|
|
58
87
|
const payload = parsed.value;
|
|
59
88
|
const body = encodeJSON("body", payload.UpdateBrand, { explode: true });
|
|
@@ -81,7 +110,7 @@ export async function brandingUpdate(
|
|
|
81
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
111
|
|
|
83
112
|
const context = {
|
|
84
|
-
baseURL: options?.serverURL ?? "",
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
114
|
operationID: "updateBrand",
|
|
86
115
|
oAuth2Scopes: [],
|
|
87
116
|
|
|
@@ -104,7 +133,7 @@ export async function brandingUpdate(
|
|
|
104
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
134
|
}, options);
|
|
106
135
|
if (!requestRes.ok) {
|
|
107
|
-
return requestRes;
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
108
137
|
}
|
|
109
138
|
const req = requestRes.value;
|
|
110
139
|
|
|
@@ -127,7 +156,7 @@ export async function brandingUpdate(
|
|
|
127
156
|
retryCodes: context.retryCodes,
|
|
128
157
|
});
|
|
129
158
|
if (!doResult.ok) {
|
|
130
|
-
return doResult;
|
|
159
|
+
return [doResult, { status: "request-error", request: req }];
|
|
131
160
|
}
|
|
132
161
|
const response = doResult.value;
|
|
133
162
|
|
|
@@ -159,8 +188,8 @@ export async function brandingUpdate(
|
|
|
159
188
|
M.fail("5XX"),
|
|
160
189
|
)(response, { extraFields: responseFields });
|
|
161
190
|
if (!result.ok) {
|
|
162
|
-
return result;
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
192
|
}
|
|
164
193
|
|
|
165
|
-
return result;
|
|
194
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
195
|
}
|
|
@@ -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
|
/**
|
|
@@ -29,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
31
|
* you'll need to specify the `/accounts/{accountID}/branding.write` scope.
|
|
31
32
|
*/
|
|
32
|
-
export
|
|
33
|
+
export function brandingUpsert(
|
|
33
34
|
client: MoovCore,
|
|
34
35
|
request: operations.UpsertBrandRequest,
|
|
35
36
|
options?: RequestOptions,
|
|
36
|
-
):
|
|
37
|
+
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.UpsertBrandResponse,
|
|
39
40
|
| errors.GenericError
|
|
@@ -46,6 +47,34 @@ export async function brandingUpsert(
|
|
|
46
47
|
| RequestTimeoutError
|
|
47
48
|
| ConnectionError
|
|
48
49
|
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MoovCore,
|
|
60
|
+
request: operations.UpsertBrandRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
operations.UpsertBrandResponse,
|
|
66
|
+
| errors.GenericError
|
|
67
|
+
| errors.BrandValidationError
|
|
68
|
+
| APIError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
49
78
|
> {
|
|
50
79
|
const parsed = safeParse(
|
|
51
80
|
request,
|
|
@@ -53,7 +82,7 @@ export async function brandingUpsert(
|
|
|
53
82
|
"Input validation failed",
|
|
54
83
|
);
|
|
55
84
|
if (!parsed.ok) {
|
|
56
|
-
return parsed;
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
57
86
|
}
|
|
58
87
|
const payload = parsed.value;
|
|
59
88
|
const body = encodeJSON("body", payload.BrandProperties, { explode: true });
|
|
@@ -81,7 +110,7 @@ export async function brandingUpsert(
|
|
|
81
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
111
|
|
|
83
112
|
const context = {
|
|
84
|
-
baseURL: options?.serverURL ?? "",
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
85
114
|
operationID: "upsertBrand",
|
|
86
115
|
oAuth2Scopes: [],
|
|
87
116
|
|
|
@@ -104,7 +133,7 @@ export async function brandingUpsert(
|
|
|
104
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
134
|
}, options);
|
|
106
135
|
if (!requestRes.ok) {
|
|
107
|
-
return requestRes;
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
108
137
|
}
|
|
109
138
|
const req = requestRes.value;
|
|
110
139
|
|
|
@@ -127,7 +156,7 @@ export async function brandingUpsert(
|
|
|
127
156
|
retryCodes: context.retryCodes,
|
|
128
157
|
});
|
|
129
158
|
if (!doResult.ok) {
|
|
130
|
-
return doResult;
|
|
159
|
+
return [doResult, { status: "request-error", request: req }];
|
|
131
160
|
}
|
|
132
161
|
const response = doResult.value;
|
|
133
162
|
|
|
@@ -159,8 +188,8 @@ export async function brandingUpsert(
|
|
|
159
188
|
M.fail("5XX"),
|
|
160
189
|
)(response, { extraFields: responseFields });
|
|
161
190
|
if (!result.ok) {
|
|
162
|
-
return result;
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
192
|
}
|
|
164
193
|
|
|
165
|
-
return result;
|
|
194
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
195
|
}
|
|
@@ -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
|
/**
|
|
@@ -29,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
31
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
31
32
|
*/
|
|
32
|
-
export
|
|
33
|
+
export function capabilitiesDisable(
|
|
33
34
|
client: MoovCore,
|
|
34
35
|
request: operations.DisableCapabilityRequest,
|
|
35
36
|
options?: RequestOptions,
|
|
36
|
-
):
|
|
37
|
+
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.DisableCapabilityResponse | undefined,
|
|
39
40
|
| errors.GenericError
|
|
@@ -45,6 +46,33 @@ export async function capabilitiesDisable(
|
|
|
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.DisableCapabilityRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.DisableCapabilityResponse | undefined,
|
|
65
|
+
| errors.GenericError
|
|
66
|
+
| APIError
|
|
67
|
+
| SDKValidationError
|
|
68
|
+
| UnexpectedClientError
|
|
69
|
+
| InvalidRequestError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| ConnectionError
|
|
73
|
+
>,
|
|
74
|
+
APICall,
|
|
75
|
+
]
|
|
48
76
|
> {
|
|
49
77
|
const parsed = safeParse(
|
|
50
78
|
request,
|
|
@@ -52,7 +80,7 @@ export async function capabilitiesDisable(
|
|
|
52
80
|
"Input validation failed",
|
|
53
81
|
);
|
|
54
82
|
if (!parsed.ok) {
|
|
55
|
-
return parsed;
|
|
83
|
+
return [parsed, { status: "invalid" }];
|
|
56
84
|
}
|
|
57
85
|
const payload = parsed.value;
|
|
58
86
|
const body = null;
|
|
@@ -85,7 +113,7 @@ export async function capabilitiesDisable(
|
|
|
85
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
86
114
|
|
|
87
115
|
const context = {
|
|
88
|
-
baseURL: options?.serverURL ?? "",
|
|
116
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
117
|
operationID: "disableCapability",
|
|
90
118
|
oAuth2Scopes: [],
|
|
91
119
|
|
|
@@ -108,7 +136,7 @@ export async function capabilitiesDisable(
|
|
|
108
136
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
109
137
|
}, options);
|
|
110
138
|
if (!requestRes.ok) {
|
|
111
|
-
return requestRes;
|
|
139
|
+
return [requestRes, { status: "invalid" }];
|
|
112
140
|
}
|
|
113
141
|
const req = requestRes.value;
|
|
114
142
|
|
|
@@ -130,7 +158,7 @@ export async function capabilitiesDisable(
|
|
|
130
158
|
retryCodes: context.retryCodes,
|
|
131
159
|
});
|
|
132
160
|
if (!doResult.ok) {
|
|
133
|
-
return doResult;
|
|
161
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134
162
|
}
|
|
135
163
|
const response = doResult.value;
|
|
136
164
|
|
|
@@ -159,8 +187,8 @@ export async function capabilitiesDisable(
|
|
|
159
187
|
M.fail("5XX"),
|
|
160
188
|
)(response, { extraFields: responseFields });
|
|
161
189
|
if (!result.ok) {
|
|
162
|
-
return result;
|
|
190
|
+
return [result, { status: "complete", request: req, response }];
|
|
163
191
|
}
|
|
164
192
|
|
|
165
|
-
return result;
|
|
193
|
+
return [result, { status: "complete", request: req, response }];
|
|
166
194
|
}
|
|
@@ -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
|
/**
|
|
@@ -28,11 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
28
29
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
30
|
* you'll need to specify the `/accounts/{accountID}/capabilities.read` scope.
|
|
30
31
|
*/
|
|
31
|
-
export
|
|
32
|
+
export function capabilitiesGet(
|
|
32
33
|
client: MoovCore,
|
|
33
34
|
request: operations.GetCapabilityRequest,
|
|
34
35
|
options?: RequestOptions,
|
|
35
|
-
):
|
|
36
|
+
): APIPromise<
|
|
36
37
|
Result<
|
|
37
38
|
operations.GetCapabilityResponse,
|
|
38
39
|
| APIError
|
|
@@ -43,6 +44,32 @@ export async function capabilitiesGet(
|
|
|
43
44
|
| RequestTimeoutError
|
|
44
45
|
| ConnectionError
|
|
45
46
|
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: MoovCore,
|
|
57
|
+
request: operations.GetCapabilityRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.GetCapabilityResponse,
|
|
63
|
+
| APIError
|
|
64
|
+
| SDKValidationError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
>,
|
|
71
|
+
APICall,
|
|
72
|
+
]
|
|
46
73
|
> {
|
|
47
74
|
const parsed = safeParse(
|
|
48
75
|
request,
|
|
@@ -50,7 +77,7 @@ export async function capabilitiesGet(
|
|
|
50
77
|
"Input validation failed",
|
|
51
78
|
);
|
|
52
79
|
if (!parsed.ok) {
|
|
53
|
-
return parsed;
|
|
80
|
+
return [parsed, { status: "invalid" }];
|
|
54
81
|
}
|
|
55
82
|
const payload = parsed.value;
|
|
56
83
|
const body = null;
|
|
@@ -83,7 +110,7 @@ export async function capabilitiesGet(
|
|
|
83
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
84
111
|
|
|
85
112
|
const context = {
|
|
86
|
-
baseURL: options?.serverURL ?? "",
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
114
|
operationID: "getCapability",
|
|
88
115
|
oAuth2Scopes: [],
|
|
89
116
|
|
|
@@ -106,7 +133,7 @@ export async function capabilitiesGet(
|
|
|
106
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
107
134
|
}, options);
|
|
108
135
|
if (!requestRes.ok) {
|
|
109
|
-
return requestRes;
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
110
137
|
}
|
|
111
138
|
const req = requestRes.value;
|
|
112
139
|
|
|
@@ -117,7 +144,7 @@ export async function capabilitiesGet(
|
|
|
117
144
|
retryCodes: context.retryCodes,
|
|
118
145
|
});
|
|
119
146
|
if (!doResult.ok) {
|
|
120
|
-
return doResult;
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
148
|
}
|
|
122
149
|
const response = doResult.value;
|
|
123
150
|
|
|
@@ -145,8 +172,8 @@ export async function capabilitiesGet(
|
|
|
145
172
|
M.fail("5XX"),
|
|
146
173
|
)(response, { extraFields: responseFields });
|
|
147
174
|
if (!result.ok) {
|
|
148
|
-
return result;
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
149
176
|
}
|
|
150
177
|
|
|
151
|
-
return result;
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
152
179
|
}
|
|
@@ -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}/capabilities.read` scope.
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function capabilitiesList(
|
|
34
35
|
client: MoovCore,
|
|
35
36
|
request: operations.ListCapabilitiesRequest,
|
|
36
37
|
options?: RequestOptions,
|
|
37
|
-
):
|
|
38
|
+
): APIPromise<
|
|
38
39
|
Result<
|
|
39
40
|
operations.ListCapabilitiesResponse,
|
|
40
41
|
| APIError
|
|
@@ -45,6 +46,32 @@ export async function capabilitiesList(
|
|
|
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.ListCapabilitiesRequest,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<
|
|
62
|
+
[
|
|
63
|
+
Result<
|
|
64
|
+
operations.ListCapabilitiesResponse,
|
|
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 capabilitiesList(
|
|
|
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 capabilitiesList(
|
|
|
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: "listCapabilities",
|
|
84
111
|
oAuth2Scopes: [],
|
|
85
112
|
|
|
@@ -102,7 +129,7 @@ export async function capabilitiesList(
|
|
|
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 capabilitiesList(
|
|
|
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 capabilitiesList(
|
|
|
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
|
/**
|
|
@@ -29,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
31
|
* you'll need to specify the `/accounts/{accountID}/capabilities.write` scope.
|
|
31
32
|
*/
|
|
32
|
-
export
|
|
33
|
+
export function capabilitiesRequest(
|
|
33
34
|
client: MoovCore,
|
|
34
35
|
request: operations.RequestCapabilitiesRequest,
|
|
35
36
|
options?: RequestOptions,
|
|
36
|
-
):
|
|
37
|
+
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.RequestCapabilitiesResponse,
|
|
39
40
|
| errors.GenericError
|
|
@@ -46,6 +47,34 @@ export async function capabilitiesRequest(
|
|
|
46
47
|
| RequestTimeoutError
|
|
47
48
|
| ConnectionError
|
|
48
49
|
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MoovCore,
|
|
60
|
+
request: operations.RequestCapabilitiesRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
operations.RequestCapabilitiesResponse,
|
|
66
|
+
| errors.GenericError
|
|
67
|
+
| errors.AddCapabilitiesError
|
|
68
|
+
| APIError
|
|
69
|
+
| SDKValidationError
|
|
70
|
+
| UnexpectedClientError
|
|
71
|
+
| InvalidRequestError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
49
78
|
> {
|
|
50
79
|
const parsed = safeParse(
|
|
51
80
|
request,
|
|
@@ -54,7 +83,7 @@ export async function capabilitiesRequest(
|
|
|
54
83
|
"Input validation failed",
|
|
55
84
|
);
|
|
56
85
|
if (!parsed.ok) {
|
|
57
|
-
return parsed;
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
58
87
|
}
|
|
59
88
|
const payload = parsed.value;
|
|
60
89
|
const body = encodeJSON("body", payload.AddCapabilities, { explode: true });
|
|
@@ -82,7 +111,7 @@ export async function capabilitiesRequest(
|
|
|
82
111
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
83
112
|
|
|
84
113
|
const context = {
|
|
85
|
-
baseURL: options?.serverURL ?? "",
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
115
|
operationID: "requestCapabilities",
|
|
87
116
|
oAuth2Scopes: [],
|
|
88
117
|
|
|
@@ -105,7 +134,7 @@ export async function capabilitiesRequest(
|
|
|
105
134
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
106
135
|
}, options);
|
|
107
136
|
if (!requestRes.ok) {
|
|
108
|
-
return requestRes;
|
|
137
|
+
return [requestRes, { status: "invalid" }];
|
|
109
138
|
}
|
|
110
139
|
const req = requestRes.value;
|
|
111
140
|
|
|
@@ -128,7 +157,7 @@ export async function capabilitiesRequest(
|
|
|
128
157
|
retryCodes: context.retryCodes,
|
|
129
158
|
});
|
|
130
159
|
if (!doResult.ok) {
|
|
131
|
-
return doResult;
|
|
160
|
+
return [doResult, { status: "request-error", request: req }];
|
|
132
161
|
}
|
|
133
162
|
const response = doResult.value;
|
|
134
163
|
|
|
@@ -160,8 +189,8 @@ export async function capabilitiesRequest(
|
|
|
160
189
|
M.fail("5XX"),
|
|
161
190
|
)(response, { extraFields: responseFields });
|
|
162
191
|
if (!result.ok) {
|
|
163
|
-
return result;
|
|
192
|
+
return [result, { status: "complete", request: req, response }];
|
|
164
193
|
}
|
|
165
194
|
|
|
166
|
-
return result;
|
|
195
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
196
|
}
|
|
@@ -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
|
/**
|
|
@@ -28,11 +29,11 @@ import { Result } from "../types/fp.js";
|
|
|
28
29
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
30
|
* you'll need to specify the `/accounts/{accountID}/issued-cards.read` scope.
|
|
30
31
|
*/
|
|
31
|
-
export
|
|
32
|
+
export function cardIssuingGet(
|
|
32
33
|
client: MoovCore,
|
|
33
34
|
request: operations.GetIssuedCardRequest,
|
|
34
35
|
options?: RequestOptions,
|
|
35
|
-
):
|
|
36
|
+
): APIPromise<
|
|
36
37
|
Result<
|
|
37
38
|
operations.GetIssuedCardResponse,
|
|
38
39
|
| APIError
|
|
@@ -43,6 +44,32 @@ export async function cardIssuingGet(
|
|
|
43
44
|
| RequestTimeoutError
|
|
44
45
|
| ConnectionError
|
|
45
46
|
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
request,
|
|
51
|
+
options,
|
|
52
|
+
));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
async function $do(
|
|
56
|
+
client: MoovCore,
|
|
57
|
+
request: operations.GetIssuedCardRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<
|
|
60
|
+
[
|
|
61
|
+
Result<
|
|
62
|
+
operations.GetIssuedCardResponse,
|
|
63
|
+
| APIError
|
|
64
|
+
| SDKValidationError
|
|
65
|
+
| UnexpectedClientError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| RequestAbortedError
|
|
68
|
+
| RequestTimeoutError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
>,
|
|
71
|
+
APICall,
|
|
72
|
+
]
|
|
46
73
|
> {
|
|
47
74
|
const parsed = safeParse(
|
|
48
75
|
request,
|
|
@@ -50,7 +77,7 @@ export async function cardIssuingGet(
|
|
|
50
77
|
"Input validation failed",
|
|
51
78
|
);
|
|
52
79
|
if (!parsed.ok) {
|
|
53
|
-
return parsed;
|
|
80
|
+
return [parsed, { status: "invalid" }];
|
|
54
81
|
}
|
|
55
82
|
const payload = parsed.value;
|
|
56
83
|
const body = null;
|
|
@@ -83,7 +110,7 @@ export async function cardIssuingGet(
|
|
|
83
110
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
84
111
|
|
|
85
112
|
const context = {
|
|
86
|
-
baseURL: options?.serverURL ?? "",
|
|
113
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
114
|
operationID: "getIssuedCard",
|
|
88
115
|
oAuth2Scopes: [],
|
|
89
116
|
|
|
@@ -106,7 +133,7 @@ export async function cardIssuingGet(
|
|
|
106
133
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
107
134
|
}, options);
|
|
108
135
|
if (!requestRes.ok) {
|
|
109
|
-
return requestRes;
|
|
136
|
+
return [requestRes, { status: "invalid" }];
|
|
110
137
|
}
|
|
111
138
|
const req = requestRes.value;
|
|
112
139
|
|
|
@@ -117,7 +144,7 @@ export async function cardIssuingGet(
|
|
|
117
144
|
retryCodes: context.retryCodes,
|
|
118
145
|
});
|
|
119
146
|
if (!doResult.ok) {
|
|
120
|
-
return doResult;
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
148
|
}
|
|
122
149
|
const response = doResult.value;
|
|
123
150
|
|
|
@@ -145,8 +172,8 @@ export async function cardIssuingGet(
|
|
|
145
172
|
M.fail("5XX"),
|
|
146
173
|
)(response, { extraFields: responseFields });
|
|
147
174
|
if (!result.ok) {
|
|
148
|
-
return result;
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
149
176
|
}
|
|
150
177
|
|
|
151
|
-
return result;
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
152
179
|
}
|