@moovio/sdk 26.4.0-dev.15 → 26.4.0-dev.17
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 +77 -61
- package/bin/mcp-server.js +650 -284
- package/bin/mcp-server.js.map +197 -186
- package/funcs/accountTerminalApplicationsGet.js.map +1 -1
- package/funcs/accountTerminalApplicationsGetConfiguration.js.map +1 -1
- package/funcs/accountTerminalApplicationsLink.js.map +1 -1
- package/funcs/accountTerminalApplicationsList.js.map +1 -1
- package/funcs/accountsAssignCountries.js.map +1 -1
- package/funcs/accountsConnect.js.map +1 -1
- package/funcs/accountsDisconnect.js.map +1 -1
- package/funcs/accountsGet.js.map +1 -1
- package/funcs/accountsGetCountries.js.map +1 -1
- package/funcs/accountsGetMerchantProcessingAgreement.js.map +1 -1
- package/funcs/accountsListConnected.js.map +1 -1
- package/funcs/accountsUpdate.js.map +1 -1
- package/funcs/adjustmentsGet.js.map +1 -1
- package/funcs/adjustmentsList.js.map +1 -1
- package/funcs/applePayCreateSession.js.map +1 -1
- package/funcs/applePayGetMerchantDomains.js.map +1 -1
- package/funcs/applePayLinkToken.js.map +1 -1
- package/funcs/applePayRegisterMerchantDomains.js.map +1 -1
- package/funcs/applePayUpdateMerchantDomains.js.map +1 -1
- package/funcs/avatarsGet.js.map +1 -1
- package/funcs/bankAccountsCompleteMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsCompleteVerification.js.map +1 -1
- package/funcs/bankAccountsDisable.js.map +1 -1
- package/funcs/bankAccountsGet.js.map +1 -1
- package/funcs/bankAccountsGetVerification.js.map +1 -1
- package/funcs/bankAccountsInitiateMicroDeposits.js.map +1 -1
- package/funcs/bankAccountsInitiateVerification.js.map +1 -1
- package/funcs/bankAccountsLink.js.map +1 -1
- package/funcs/bankAccountsList.js.map +1 -1
- package/funcs/brandingCreate.js.map +1 -1
- package/funcs/brandingGet.js.map +1 -1
- package/funcs/brandingUpsert.js.map +1 -1
- package/funcs/capabilitiesDisable.js.map +1 -1
- package/funcs/capabilitiesGet.js.map +1 -1
- package/funcs/capabilitiesList.js.map +1 -1
- package/funcs/capabilitiesRequest.js.map +1 -1
- package/funcs/cardIssuingGet.js.map +1 -1
- package/funcs/cardIssuingGetFull.js.map +1 -1
- package/funcs/cardIssuingList.js.map +1 -1
- package/funcs/cardIssuingRequest.js.map +1 -1
- package/funcs/cardIssuingUpdate.d.ts +1 -1
- package/funcs/cardIssuingUpdate.d.ts.map +1 -1
- package/funcs/cardIssuingUpdate.js +2 -1
- package/funcs/cardIssuingUpdate.js.map +1 -1
- package/funcs/cardsDisable.js.map +1 -1
- package/funcs/cardsGet.js.map +1 -1
- package/funcs/cardsLink.js.map +1 -1
- package/funcs/cardsList.js.map +1 -1
- package/funcs/cardsUpdate.js.map +1 -1
- package/funcs/disputesAccept.js.map +1 -1
- package/funcs/disputesDeleteEvidence.js.map +1 -1
- package/funcs/disputesGet.js.map +1 -1
- package/funcs/disputesGetEvidence.js.map +1 -1
- package/funcs/disputesGetEvidenceData.js.map +1 -1
- package/funcs/disputesList.js.map +1 -1
- package/funcs/disputesListEvidence.js.map +1 -1
- package/funcs/disputesSubmitEvidence.js.map +1 -1
- package/funcs/disputesUpdateEvidence.js.map +1 -1
- package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
- package/funcs/disputesUploadEvidenceFile.js +6 -12
- package/funcs/disputesUploadEvidenceFile.js.map +1 -1
- package/funcs/disputesUploadEvidenceText.js.map +1 -1
- package/funcs/feePlansCreateFeePlanAgreements.js.map +1 -1
- package/funcs/feePlansGetResidual.js.map +1 -1
- package/funcs/feePlansListFeePlanAgreements.js.map +1 -1
- package/funcs/feePlansListFeePlans.js.map +1 -1
- package/funcs/feePlansListFeeRevenue.js.map +1 -1
- package/funcs/feePlansListFeesFetch.js.map +1 -1
- package/funcs/feePlansListPartnerPricingAgreements.js.map +1 -1
- package/funcs/feePlansListResidualFees.js.map +1 -1
- package/funcs/feePlansListResiduals.js.map +1 -1
- package/funcs/feePlansRetrieveFees.js.map +1 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +6 -12
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/imagesDelete.js.map +1 -1
- package/funcs/imagesGetMetadata.js.map +1 -1
- package/funcs/imagesGetPublic.js.map +1 -1
- package/funcs/imagesList.js.map +1 -1
- package/funcs/imagesUpdate.d.ts.map +1 -1
- package/funcs/imagesUpdate.js +6 -13
- package/funcs/imagesUpdate.js.map +1 -1
- package/funcs/imagesUpdateMetadata.js.map +1 -1
- package/funcs/imagesUpload.d.ts.map +1 -1
- package/funcs/imagesUpload.js +6 -13
- package/funcs/imagesUpload.js.map +1 -1
- package/funcs/invoicesCreateInvoice.js.map +1 -1
- package/funcs/invoicesCreateInvoicePayment.js.map +1 -1
- package/funcs/invoicesDelete.js.map +1 -1
- package/funcs/invoicesGetInvoice.js.map +1 -1
- package/funcs/invoicesListInvoicePayments.js.map +1 -1
- package/funcs/invoicesListInvoices.js.map +1 -1
- package/funcs/invoicesUpdateInvoice.js.map +1 -1
- package/funcs/issuingTransactionsGet.js.map +1 -1
- package/funcs/issuingTransactionsGetAuthorization.js.map +1 -1
- package/funcs/issuingTransactionsList.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizationEvents.js.map +1 -1
- package/funcs/issuingTransactionsListAuthorizations.js.map +1 -1
- package/funcs/onboardingGetInvite.js.map +1 -1
- package/funcs/onboardingRevokeInvite.js.map +1 -1
- package/funcs/paymentLinksCreate.js.map +1 -1
- package/funcs/paymentLinksDisable.js.map +1 -1
- package/funcs/paymentLinksGet.js.map +1 -1
- package/funcs/paymentLinksGetQRCode.js.map +1 -1
- package/funcs/paymentLinksList.js.map +1 -1
- package/funcs/paymentLinksUpdate.js.map +1 -1
- package/funcs/paymentMethodsGet.js.map +1 -1
- package/funcs/paymentMethodsList.js.map +1 -1
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsDisable.js.map +1 -1
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/representativesCreate.js.map +1 -1
- package/funcs/representativesDelete.js.map +1 -1
- package/funcs/representativesGet.js.map +1 -1
- package/funcs/representativesList.js.map +1 -1
- package/funcs/representativesUpdate.js.map +1 -1
- package/funcs/resolutionLinksCreate.js.map +1 -1
- package/funcs/resolutionLinksDisable.js.map +1 -1
- package/funcs/resolutionLinksGet.js.map +1 -1
- package/funcs/resolutionLinksList.js.map +1 -1
- package/funcs/schedulingCancel.js.map +1 -1
- package/funcs/schedulingCreate.js.map +1 -1
- package/funcs/schedulingGet.js.map +1 -1
- package/funcs/schedulingGetOccurrance.js.map +1 -1
- package/funcs/schedulingList.js.map +1 -1
- package/funcs/schedulingUpdate.js.map +1 -1
- package/funcs/statementsGet.js.map +1 -1
- package/funcs/statementsList.js.map +1 -1
- package/funcs/supportCreateTicket.js.map +1 -1
- package/funcs/supportGetTicket.js.map +1 -1
- package/funcs/supportListTicketMessages.js.map +1 -1
- package/funcs/supportListTickets.js.map +1 -1
- package/funcs/supportUpdateTicket.js.map +1 -1
- package/funcs/sweepsCreateConfig.js.map +1 -1
- package/funcs/sweepsGet.js.map +1 -1
- package/funcs/sweepsGetConfig.js.map +1 -1
- package/funcs/sweepsList.js.map +1 -1
- package/funcs/sweepsListConfigs.js.map +1 -1
- package/funcs/sweepsUpdateConfig.js.map +1 -1
- package/funcs/terminalApplicationsCreateVersion.js.map +1 -1
- package/funcs/terminalApplicationsDelete.js.map +1 -1
- package/funcs/terminalApplicationsGet.js.map +1 -1
- package/funcs/transfersBatchGetTransfers.d.ts +21 -0
- package/funcs/transfersBatchGetTransfers.d.ts.map +1 -0
- package/funcs/transfersBatchGetTransfers.js +131 -0
- package/funcs/transfersBatchGetTransfers.js.map +1 -0
- package/funcs/transfersCreate.js.map +1 -1
- package/funcs/transfersCreateCancellation.js.map +1 -1
- package/funcs/transfersCreateReversal.js.map +1 -1
- package/funcs/transfersGenerateOptions.js.map +1 -1
- package/funcs/transfersGet.js.map +1 -1
- package/funcs/transfersGetCancellation.js.map +1 -1
- package/funcs/transfersGetRefund.js.map +1 -1
- package/funcs/transfersInitiateRefund.js.map +1 -1
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersListRefunds.js.map +1 -1
- package/funcs/transfersUpdate.js.map +1 -1
- package/funcs/underwritingGet.js.map +1 -1
- package/funcs/underwritingSave.js.map +1 -1
- package/funcs/underwritingUpsert.js.map +1 -1
- package/funcs/walletTransactionsGet.js.map +1 -1
- package/funcs/walletTransactionsList.js.map +1 -1
- package/funcs/walletsCreate.js.map +1 -1
- package/funcs/walletsGet.js.map +1 -1
- package/funcs/walletsList.js.map +1 -1
- package/funcs/walletsUpdate.js.map +1 -1
- package/funcs/webhooksDisable.js.map +1 -1
- package/funcs/webhooksGet.js.map +1 -1
- package/funcs/webhooksGetSecret.js.map +1 -1
- package/funcs/webhooksPing.js.map +1 -1
- package/funcs/webhooksUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +1 -0
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +27 -5
- package/lib/encodings.js.map +1 -1
- package/lib/files.d.ts +13 -0
- package/lib/files.d.ts.map +1 -1
- package/lib/files.js +19 -0
- package/lib/files.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +8 -4
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +18 -7
- package/lib/security.js.map +1 -1
- package/lib/url.d.ts.map +1 -1
- package/lib/url.js +4 -2
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/applePayLinkToken.js +3 -3
- package/mcp-server/tools/cardIssuingUpdate.d.ts.map +1 -1
- package/mcp-server/tools/cardIssuingUpdate.js +2 -1
- package/mcp-server/tools/cardIssuingUpdate.js.map +1 -1
- package/mcp-server/tools/transfersBatchGetTransfers.d.ts +8 -0
- package/mcp-server/tools/transfersBatchGetTransfers.d.ts.map +1 -0
- package/mcp-server/tools/transfersBatchGetTransfers.js +69 -0
- package/mcp-server/tools/transfersBatchGetTransfers.js.map +1 -0
- package/models/components/batchgettransfersrequest.d.ts +20 -0
- package/models/components/batchgettransfersrequest.d.ts.map +1 -0
- package/models/components/batchgettransfersrequest.js +58 -0
- package/models/components/batchgettransfersrequest.js.map +1 -0
- package/models/components/cardpayouttype.d.ts +17 -0
- package/models/components/cardpayouttype.d.ts.map +1 -0
- package/models/components/cardpayouttype.js +51 -0
- package/models/components/cardpayouttype.js.map +1 -0
- package/models/components/createtransferdestinationcard.d.ts +6 -0
- package/models/components/createtransferdestinationcard.d.ts.map +1 -1
- package/models/components/createtransferdestinationcard.js +3 -0
- package/models/components/createtransferdestinationcard.js.map +1 -1
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/paymentmethod.d.ts +4 -2
- package/models/components/paymentmethod.d.ts.map +1 -1
- package/models/components/paymentmethod.js +6 -0
- package/models/components/paymentmethod.js.map +1 -1
- package/models/components/paymentmethodtype.d.ts +2 -0
- package/models/components/paymentmethodtype.d.ts.map +1 -1
- package/models/components/paymentmethodtype.js +2 -0
- package/models/components/paymentmethodtype.js.map +1 -1
- package/models/components/pullfromapplepaypaymentmethod.d.ts +28 -0
- package/models/components/pullfromapplepaypaymentmethod.d.ts.map +1 -0
- package/models/components/pullfromapplepaypaymentmethod.js +63 -0
- package/models/components/pullfromapplepaypaymentmethod.js.map +1 -0
- package/models/components/pullfromapplepaytransferpaymentmethod.d.ts +28 -0
- package/models/components/pullfromapplepaytransferpaymentmethod.d.ts.map +1 -0
- package/models/components/pullfromapplepaytransferpaymentmethod.js +63 -0
- package/models/components/pullfromapplepaytransferpaymentmethod.js.map +1 -0
- package/models/components/pushtoapplepaypaymentmethod.d.ts +28 -0
- package/models/components/pushtoapplepaypaymentmethod.d.ts.map +1 -0
- package/models/components/pushtoapplepaypaymentmethod.js +63 -0
- package/models/components/pushtoapplepaypaymentmethod.js.map +1 -0
- package/models/components/pushtoapplepaytransferpaymentmethod.d.ts +28 -0
- package/models/components/pushtoapplepaytransferpaymentmethod.d.ts.map +1 -0
- package/models/components/pushtoapplepaytransferpaymentmethod.js +63 -0
- package/models/components/pushtoapplepaytransferpaymentmethod.js.map +1 -0
- package/models/components/rtpfailurecode.d.ts +26 -0
- package/models/components/rtpfailurecode.d.ts.map +1 -0
- package/models/components/rtpfailurecode.js +60 -0
- package/models/components/rtpfailurecode.js.map +1 -0
- package/models/components/rtptransactionstatus.d.ts +20 -0
- package/models/components/rtptransactionstatus.d.ts.map +1 -0
- package/models/components/rtptransactionstatus.js +54 -0
- package/models/components/rtptransactionstatus.js.map +1 -0
- package/models/components/transferdestination.d.ts +46 -0
- package/models/components/transferdestination.d.ts.map +1 -1
- package/models/components/transferdestination.js +36 -1
- package/models/components/transferdestination.js.map +1 -1
- package/models/components/transferpaymentmethod.d.ts +4 -2
- package/models/components/transferpaymentmethod.d.ts.map +1 -1
- package/models/components/transferpaymentmethod.js +6 -0
- package/models/components/transferpaymentmethod.js.map +1 -1
- package/models/components/transferpaymentmethodtype.d.ts +2 -0
- package/models/components/transferpaymentmethodtype.d.ts.map +1 -1
- package/models/components/transferpaymentmethodtype.js +2 -0
- package/models/components/transferpaymentmethodtype.js.map +1 -1
- package/models/components/wallettransactiontype.d.ts +1 -0
- package/models/components/wallettransactiontype.d.ts.map +1 -1
- package/models/components/wallettransactiontype.js +1 -0
- package/models/components/wallettransactiontype.js.map +1 -1
- package/models/components/webhookbillingstatementcreated.d.ts +2 -0
- package/models/components/webhookbillingstatementcreated.d.ts.map +1 -1
- package/models/components/webhookbillingstatementcreated.js +2 -0
- package/models/components/webhookbillingstatementcreated.js.map +1 -1
- package/models/components/webhookdata.d.ts +2 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +2 -2
- package/models/components/webhookdata.js.map +1 -1
- package/models/operations/batchgettransfers.d.ts +43 -0
- package/models/operations/batchgettransfers.d.ts.map +1 -0
- package/models/operations/batchgettransfers.js +98 -0
- package/models/operations/batchgettransfers.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/linkapplepaytoken.d.ts +2 -2
- package/models/operations/linkapplepaytoken.d.ts.map +1 -1
- package/models/operations/linkapplepaytoken.js +2 -2
- package/models/operations/linkapplepaytoken.js.map +1 -1
- package/models/operations/updateissuedcard.d.ts +2 -0
- package/models/operations/updateissuedcard.d.ts.map +1 -1
- package/models/operations/updateissuedcard.js +4 -0
- package/models/operations/updateissuedcard.js.map +1 -1
- package/package.json +1 -1
- package/sdk/cardissuing.d.ts +1 -1
- package/sdk/cardissuing.d.ts.map +1 -1
- package/sdk/transfers.d.ts +11 -0
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +14 -0
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/accountTerminalApplicationsGet.ts +0 -1
- package/src/funcs/accountTerminalApplicationsGetConfiguration.ts +0 -1
- package/src/funcs/accountTerminalApplicationsLink.ts +0 -1
- package/src/funcs/accountTerminalApplicationsList.ts +0 -1
- package/src/funcs/accountsAssignCountries.ts +0 -1
- package/src/funcs/accountsConnect.ts +0 -1
- package/src/funcs/accountsDisconnect.ts +0 -1
- package/src/funcs/accountsGet.ts +0 -1
- package/src/funcs/accountsGetCountries.ts +0 -1
- package/src/funcs/accountsGetMerchantProcessingAgreement.ts +0 -1
- package/src/funcs/accountsListConnected.ts +0 -1
- package/src/funcs/accountsUpdate.ts +0 -1
- package/src/funcs/adjustmentsGet.ts +0 -1
- package/src/funcs/adjustmentsList.ts +0 -1
- package/src/funcs/applePayCreateSession.ts +0 -1
- package/src/funcs/applePayGetMerchantDomains.ts +0 -1
- package/src/funcs/applePayLinkToken.ts +0 -1
- package/src/funcs/applePayRegisterMerchantDomains.ts +0 -1
- package/src/funcs/applePayUpdateMerchantDomains.ts +0 -1
- package/src/funcs/avatarsGet.ts +0 -1
- package/src/funcs/bankAccountsCompleteMicroDeposits.ts +0 -1
- package/src/funcs/bankAccountsCompleteVerification.ts +0 -1
- package/src/funcs/bankAccountsDisable.ts +0 -1
- package/src/funcs/bankAccountsGet.ts +0 -1
- package/src/funcs/bankAccountsGetVerification.ts +0 -1
- package/src/funcs/bankAccountsInitiateMicroDeposits.ts +0 -1
- package/src/funcs/bankAccountsInitiateVerification.ts +0 -1
- package/src/funcs/bankAccountsLink.ts +0 -1
- package/src/funcs/bankAccountsList.ts +0 -1
- package/src/funcs/brandingCreate.ts +0 -1
- package/src/funcs/brandingGet.ts +0 -1
- package/src/funcs/brandingUpsert.ts +0 -1
- package/src/funcs/capabilitiesDisable.ts +0 -1
- package/src/funcs/capabilitiesGet.ts +0 -1
- package/src/funcs/capabilitiesList.ts +0 -1
- package/src/funcs/capabilitiesRequest.ts +0 -1
- package/src/funcs/cardIssuingGet.ts +0 -1
- package/src/funcs/cardIssuingGetFull.ts +0 -1
- package/src/funcs/cardIssuingList.ts +0 -1
- package/src/funcs/cardIssuingRequest.ts +0 -1
- package/src/funcs/cardIssuingUpdate.ts +5 -5
- package/src/funcs/cardsDisable.ts +0 -1
- package/src/funcs/cardsGet.ts +0 -1
- package/src/funcs/cardsLink.ts +0 -1
- package/src/funcs/cardsList.ts +0 -1
- package/src/funcs/cardsUpdate.ts +0 -1
- package/src/funcs/disputesAccept.ts +0 -1
- package/src/funcs/disputesDeleteEvidence.ts +0 -1
- package/src/funcs/disputesGet.ts +0 -1
- package/src/funcs/disputesGetEvidence.ts +0 -1
- package/src/funcs/disputesGetEvidenceData.ts +0 -1
- package/src/funcs/disputesList.ts +0 -1
- package/src/funcs/disputesListEvidence.ts +0 -1
- package/src/funcs/disputesSubmitEvidence.ts +0 -1
- package/src/funcs/disputesUpdateEvidence.ts +0 -1
- package/src/funcs/disputesUploadEvidenceFile.ts +11 -23
- package/src/funcs/disputesUploadEvidenceText.ts +0 -1
- package/src/funcs/feePlansCreateFeePlanAgreements.ts +0 -1
- package/src/funcs/feePlansGetResidual.ts +0 -1
- package/src/funcs/feePlansListFeePlanAgreements.ts +0 -1
- package/src/funcs/feePlansListFeePlans.ts +0 -1
- package/src/funcs/feePlansListFeeRevenue.ts +0 -1
- package/src/funcs/feePlansListFeesFetch.ts +0 -1
- package/src/funcs/feePlansListPartnerPricingAgreements.ts +0 -1
- package/src/funcs/feePlansListResidualFees.ts +0 -1
- package/src/funcs/feePlansListResiduals.ts +0 -1
- package/src/funcs/feePlansRetrieveFees.ts +0 -1
- package/src/funcs/filesGet.ts +0 -1
- package/src/funcs/filesList.ts +0 -1
- package/src/funcs/filesUpload.ts +8 -23
- package/src/funcs/imagesDelete.ts +0 -1
- package/src/funcs/imagesGetMetadata.ts +0 -1
- package/src/funcs/imagesGetPublic.ts +0 -1
- package/src/funcs/imagesList.ts +0 -1
- package/src/funcs/imagesUpdate.ts +16 -24
- package/src/funcs/imagesUpdateMetadata.ts +0 -1
- package/src/funcs/imagesUpload.ts +16 -24
- package/src/funcs/invoicesCreateInvoice.ts +0 -1
- package/src/funcs/invoicesCreateInvoicePayment.ts +0 -1
- package/src/funcs/invoicesDelete.ts +0 -1
- package/src/funcs/invoicesGetInvoice.ts +0 -1
- package/src/funcs/invoicesListInvoicePayments.ts +0 -1
- package/src/funcs/invoicesListInvoices.ts +0 -1
- package/src/funcs/invoicesUpdateInvoice.ts +0 -1
- package/src/funcs/issuingTransactionsGet.ts +0 -1
- package/src/funcs/issuingTransactionsGetAuthorization.ts +0 -1
- package/src/funcs/issuingTransactionsList.ts +0 -1
- package/src/funcs/issuingTransactionsListAuthorizationEvents.ts +0 -1
- package/src/funcs/issuingTransactionsListAuthorizations.ts +0 -1
- package/src/funcs/onboardingGetInvite.ts +0 -1
- package/src/funcs/onboardingRevokeInvite.ts +0 -1
- package/src/funcs/paymentLinksCreate.ts +0 -1
- package/src/funcs/paymentLinksDisable.ts +0 -1
- package/src/funcs/paymentLinksGet.ts +0 -1
- package/src/funcs/paymentLinksGetQRCode.ts +0 -1
- package/src/funcs/paymentLinksList.ts +0 -1
- package/src/funcs/paymentLinksUpdate.ts +0 -1
- package/src/funcs/paymentMethodsGet.ts +0 -1
- package/src/funcs/paymentMethodsList.ts +0 -1
- package/src/funcs/productsCreate.ts +0 -1
- package/src/funcs/productsDisable.ts +0 -1
- package/src/funcs/productsGet.ts +0 -1
- package/src/funcs/productsList.ts +0 -1
- package/src/funcs/productsUpdate.ts +0 -1
- package/src/funcs/representativesCreate.ts +0 -1
- package/src/funcs/representativesDelete.ts +0 -1
- package/src/funcs/representativesGet.ts +0 -1
- package/src/funcs/representativesList.ts +0 -1
- package/src/funcs/representativesUpdate.ts +0 -1
- package/src/funcs/resolutionLinksCreate.ts +0 -1
- package/src/funcs/resolutionLinksDisable.ts +0 -1
- package/src/funcs/resolutionLinksGet.ts +0 -1
- package/src/funcs/resolutionLinksList.ts +0 -1
- package/src/funcs/schedulingCancel.ts +0 -1
- package/src/funcs/schedulingCreate.ts +0 -1
- package/src/funcs/schedulingGet.ts +0 -1
- package/src/funcs/schedulingGetOccurrance.ts +0 -1
- package/src/funcs/schedulingList.ts +0 -1
- package/src/funcs/schedulingUpdate.ts +0 -1
- package/src/funcs/statementsGet.ts +0 -1
- package/src/funcs/statementsList.ts +0 -1
- package/src/funcs/supportCreateTicket.ts +0 -1
- package/src/funcs/supportGetTicket.ts +0 -1
- package/src/funcs/supportListTicketMessages.ts +0 -1
- package/src/funcs/supportListTickets.ts +0 -1
- package/src/funcs/supportUpdateTicket.ts +0 -1
- package/src/funcs/sweepsCreateConfig.ts +0 -1
- package/src/funcs/sweepsGet.ts +0 -1
- package/src/funcs/sweepsGetConfig.ts +0 -1
- package/src/funcs/sweepsList.ts +0 -1
- package/src/funcs/sweepsListConfigs.ts +0 -1
- package/src/funcs/sweepsUpdateConfig.ts +0 -1
- package/src/funcs/terminalApplicationsCreateVersion.ts +0 -1
- package/src/funcs/terminalApplicationsDelete.ts +0 -1
- package/src/funcs/terminalApplicationsGet.ts +0 -1
- package/src/funcs/transfersBatchGetTransfers.ts +180 -0
- package/src/funcs/transfersCreate.ts +0 -1
- package/src/funcs/transfersCreateCancellation.ts +0 -1
- package/src/funcs/transfersCreateReversal.ts +0 -1
- package/src/funcs/transfersGenerateOptions.ts +0 -1
- package/src/funcs/transfersGet.ts +0 -1
- package/src/funcs/transfersGetCancellation.ts +0 -1
- package/src/funcs/transfersGetRefund.ts +0 -1
- package/src/funcs/transfersInitiateRefund.ts +0 -1
- package/src/funcs/transfersList.ts +0 -1
- package/src/funcs/transfersListRefunds.ts +0 -1
- package/src/funcs/transfersUpdate.ts +0 -1
- package/src/funcs/underwritingGet.ts +0 -1
- package/src/funcs/underwritingSave.ts +0 -1
- package/src/funcs/underwritingUpsert.ts +0 -1
- package/src/funcs/walletTransactionsGet.ts +0 -1
- package/src/funcs/walletTransactionsList.ts +0 -1
- package/src/funcs/walletsCreate.ts +0 -1
- package/src/funcs/walletsGet.ts +0 -1
- package/src/funcs/walletsList.ts +0 -1
- package/src/funcs/walletsUpdate.ts +0 -1
- package/src/funcs/webhooksDisable.ts +0 -1
- package/src/funcs/webhooksGet.ts +0 -1
- package/src/funcs/webhooksGetSecret.ts +0 -1
- package/src/funcs/webhooksPing.ts +0 -1
- package/src/funcs/webhooksUpdate.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +32 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/security.ts +14 -2
- package/src/lib/url.ts +16 -14
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/applePayLinkToken.ts +3 -3
- package/src/mcp-server/tools/cardIssuingUpdate.ts +3 -1
- package/src/mcp-server/tools/transfersBatchGetTransfers.ts +43 -0
- package/src/models/components/batchgettransfersrequest.ts +54 -0
- package/src/models/components/cardpayouttype.ts +26 -0
- package/src/models/components/createtransferdestinationcard.ts +12 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/paymentmethod.ts +22 -2
- package/src/models/components/paymentmethodtype.ts +2 -0
- package/src/models/components/pullfromapplepaypaymentmethod.ts +73 -0
- package/src/models/components/pullfromapplepaytransferpaymentmethod.ts +74 -0
- package/src/models/components/pushtoapplepaypaymentmethod.ts +73 -0
- package/src/models/components/pushtoapplepaytransferpaymentmethod.ts +74 -0
- package/src/models/components/rtpfailurecode.ts +35 -0
- package/src/models/components/rtptransactionstatus.ts +29 -0
- package/src/models/components/transferdestination.ts +99 -0
- package/src/models/components/transferpaymentmethod.ts +22 -2
- package/src/models/components/transferpaymentmethodtype.ts +2 -0
- package/src/models/components/wallettransactiontype.ts +1 -0
- package/src/models/components/webhookbillingstatementcreated.ts +4 -0
- package/src/models/components/webhookdata.ts +6 -6
- package/src/models/operations/batchgettransfers.ts +122 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/linkapplepaytoken.ts +4 -4
- package/src/models/operations/updateissuedcard.ts +6 -0
- package/src/sdk/cardissuing.ts +1 -1
- package/src/sdk/transfers.ts +22 -0
package/src/lib/files.ts
CHANGED
|
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
|
|
|
80
80
|
|
|
81
81
|
return mimeTypes[ext] || null;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a Blob from file content with the given MIME type.
|
|
86
|
+
*
|
|
87
|
+
* Node.js Buffers are Uint8Array subclasses that may share a pooled
|
|
88
|
+
* ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
|
|
89
|
+
* such a Buffer directly to `new Blob([buf])` can include the entire
|
|
90
|
+
* underlying pool on some runtimes, producing a Blob with extra bytes
|
|
91
|
+
* that corrupts multipart uploads.
|
|
92
|
+
*
|
|
93
|
+
* Copying into a standalone Uint8Array ensures the Blob receives only the
|
|
94
|
+
* intended bytes regardless of runtime behaviour.
|
|
95
|
+
*/
|
|
96
|
+
export function bytesToBlob(
|
|
97
|
+
content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
|
|
98
|
+
contentType: string,
|
|
99
|
+
): Blob {
|
|
100
|
+
if (content instanceof Uint8Array) {
|
|
101
|
+
return new Blob([new Uint8Array(content)], { type: contentType });
|
|
102
|
+
}
|
|
103
|
+
return new Blob([content as BlobPart], { type: contentType });
|
|
104
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -123,13 +123,15 @@ export class ClientSDK {
|
|
|
123
123
|
if (!base) {
|
|
124
124
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
const baseURL = new URL(base);
|
|
127
|
+
let reqURL: URL;
|
|
129
128
|
if (path) {
|
|
130
|
-
|
|
131
|
-
reqURL
|
|
129
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
130
|
+
reqURL = new URL(path, baseURL);
|
|
131
|
+
} else {
|
|
132
|
+
reqURL = baseURL;
|
|
132
133
|
}
|
|
134
|
+
reqURL.hash = "";
|
|
133
135
|
|
|
134
136
|
let finalQuery = query || "";
|
|
135
137
|
|
package/src/lib/security.ts
CHANGED
|
@@ -239,15 +239,27 @@ function applyBearer(
|
|
|
239
239
|
|
|
240
240
|
export function resolveGlobalSecurity(
|
|
241
241
|
security: Partial<components.Security> | null | undefined,
|
|
242
|
+
allowedFields?: number[],
|
|
242
243
|
): SecurityState | null {
|
|
243
|
-
|
|
244
|
+
let inputs: SecurityInput[][] = [
|
|
244
245
|
[
|
|
245
246
|
{
|
|
246
247
|
type: "http:basic",
|
|
247
248
|
value: { username: security?.username, password: security?.password },
|
|
248
249
|
},
|
|
249
250
|
],
|
|
250
|
-
|
|
251
|
+
];
|
|
252
|
+
|
|
253
|
+
if (allowedFields) {
|
|
254
|
+
inputs = allowedFields.map((i) => {
|
|
255
|
+
if (i < 0 || i >= inputs.length) {
|
|
256
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
257
|
+
}
|
|
258
|
+
return inputs[i]!;
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return resolveSecurity(...inputs);
|
|
251
263
|
}
|
|
252
264
|
|
|
253
265
|
export async function extractSecurity<
|
package/src/lib/url.ts
CHANGED
|
@@ -13,21 +13,23 @@ export function pathToFunc(
|
|
|
13
13
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
|
-
return pathPattern
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return pathPattern
|
|
17
|
+
.replace(paramRE, function (_, placeholder) {
|
|
18
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const value = params[placeholder];
|
|
23
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return options?.charEncoding === "percent"
|
|
30
|
+
? encodeURIComponent(`${value}`)
|
|
31
|
+
: `${value}`;
|
|
32
|
+
})
|
|
33
|
+
.replace(/^\/+/, "");
|
|
32
34
|
};
|
|
33
35
|
}
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -167,6 +167,7 @@ import { tool$terminalApplicationsCreateVersion } from "./tools/terminalApplicat
|
|
|
167
167
|
import { tool$terminalApplicationsDelete } from "./tools/terminalApplicationsDelete.js";
|
|
168
168
|
import { tool$terminalApplicationsGet } from "./tools/terminalApplicationsGet.js";
|
|
169
169
|
import { tool$terminalApplicationsList } from "./tools/terminalApplicationsList.js";
|
|
170
|
+
import { tool$transfersBatchGetTransfers } from "./tools/transfersBatchGetTransfers.js";
|
|
170
171
|
import { tool$transfersCreate } from "./tools/transfersCreate.js";
|
|
171
172
|
import { tool$transfersCreateCancellation } from "./tools/transfersCreateCancellation.js";
|
|
172
173
|
import { tool$transfersCreateReversal } from "./tools/transfersCreateReversal.js";
|
|
@@ -206,7 +207,7 @@ export function createMCPServer(deps: {
|
|
|
206
207
|
}) {
|
|
207
208
|
const server = new McpServer({
|
|
208
209
|
name: "Moov",
|
|
209
|
-
version: "26.4.0-dev.
|
|
210
|
+
version: "26.4.0-dev.17",
|
|
210
211
|
});
|
|
211
212
|
|
|
212
213
|
const client = new MoovCore({
|
|
@@ -361,6 +362,7 @@ export function createMCPServer(deps: {
|
|
|
361
362
|
tool(tool$transfersGenerateOptions);
|
|
362
363
|
tool(tool$transfersCreate);
|
|
363
364
|
tool(tool$transfersList);
|
|
365
|
+
tool(tool$transfersBatchGetTransfers);
|
|
364
366
|
tool(tool$transfersGet);
|
|
365
367
|
tool(tool$transfersUpdate);
|
|
366
368
|
tool(tool$transfersCreateCancellation);
|
|
@@ -12,12 +12,12 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$applePayLinkToken: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "apple-pay-link-token",
|
|
15
|
-
description: `Connect an Apple Pay token to the specified account.
|
|
15
|
+
description: `Connect an Apple Pay token to the specified account.
|
|
16
16
|
|
|
17
|
-
Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
17
|
+
Read our [Apple Pay tutorial](https://docs.moov.io/guides/sources/cards/apple-pay/#register-your-domains) to learn more.
|
|
18
18
|
The \`token\` data is defined by Apple Pay and should be passed through from Apple Pay's response unmodified.
|
|
19
19
|
|
|
20
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
21
21
|
you'll need to specify the \`/accounts/{accountID}/cards.write\` scope.`,
|
|
22
22
|
args,
|
|
23
23
|
tool: async (client, args, ctx) => {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { transfersBatchGetTransfers } from "../../funcs/transfersBatchGetTransfers.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.BatchGetTransfersRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$transfersBatchGetTransfers: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "transfers-batch-get-transfers",
|
|
15
|
+
description:
|
|
16
|
+
`Retrieve transfer details for multiple transfers in one request. The response is a map from each
|
|
17
|
+
requested transfer ID to its full transfer details when available; IDs that are not found or not
|
|
18
|
+
accessible under this account are omitted from the map.
|
|
19
|
+
|
|
20
|
+
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
21
|
+
|
|
22
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
23
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
24
|
+
args,
|
|
25
|
+
tool: async (client, args, ctx) => {
|
|
26
|
+
const [result, apiCall] = await transfersBatchGetTransfers(
|
|
27
|
+
client,
|
|
28
|
+
args.request,
|
|
29
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
30
|
+
).$inspect();
|
|
31
|
+
|
|
32
|
+
if (!result.ok) {
|
|
33
|
+
return {
|
|
34
|
+
content: [{ type: "text", text: result.error.message }],
|
|
35
|
+
isError: true,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const value = result.value.result;
|
|
40
|
+
|
|
41
|
+
return formatResult(value, apiCall);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Array of transfer IDs to fetch.
|
|
12
|
+
*/
|
|
13
|
+
export type BatchGetTransfersRequest = {
|
|
14
|
+
transferIDs: Array<string>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const BatchGetTransfersRequest$inboundSchema: z.ZodType<
|
|
19
|
+
BatchGetTransfersRequest,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
transferIDs: z.array(z.string()),
|
|
24
|
+
});
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type BatchGetTransfersRequest$Outbound = {
|
|
27
|
+
transferIDs: Array<string>;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const BatchGetTransfersRequest$outboundSchema: z.ZodType<
|
|
32
|
+
BatchGetTransfersRequest$Outbound,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
BatchGetTransfersRequest
|
|
35
|
+
> = z.object({
|
|
36
|
+
transferIDs: z.array(z.string()),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function batchGetTransfersRequestToJSON(
|
|
40
|
+
batchGetTransfersRequest: BatchGetTransfersRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
BatchGetTransfersRequest$outboundSchema.parse(batchGetTransfersRequest),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export function batchGetTransfersRequestFromJSON(
|
|
47
|
+
jsonString: string,
|
|
48
|
+
): SafeParseResult<BatchGetTransfersRequest, SDKValidationError> {
|
|
49
|
+
return safeParse(
|
|
50
|
+
jsonString,
|
|
51
|
+
(x) => BatchGetTransfersRequest$inboundSchema.parse(JSON.parse(x)),
|
|
52
|
+
`Failed to parse 'BatchGetTransfersRequest' from JSON`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the type of card payout for push-to-card transfers, used to determine the business application identifier (BAI) sent to the card network.
|
|
10
|
+
*/
|
|
11
|
+
export const CardPayoutType = {
|
|
12
|
+
Loyalty: "loyalty",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the type of card payout for push-to-card transfers, used to determine the business application identifier (BAI) sent to the card network.
|
|
16
|
+
*/
|
|
17
|
+
export type CardPayoutType = ClosedEnum<typeof CardPayoutType>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const CardPayoutType$inboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof CardPayoutType
|
|
22
|
+
> = z.nativeEnum(CardPayoutType);
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const CardPayoutType$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof CardPayoutType
|
|
26
|
+
> = CardPayoutType$inboundSchema;
|
|
@@ -6,12 +6,21 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
CardPayoutType,
|
|
11
|
+
CardPayoutType$inboundSchema,
|
|
12
|
+
CardPayoutType$outboundSchema,
|
|
13
|
+
} from "./cardpayouttype.js";
|
|
9
14
|
|
|
10
15
|
export type CreateTransferDestinationCard = {
|
|
11
16
|
/**
|
|
12
17
|
* An optional override of the default card statement descriptor for a transfer. Accounts must be enabled by Moov to set this field.
|
|
13
18
|
*/
|
|
14
19
|
dynamicDescriptor?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* An optional field to specify the type of card payout, used to route the transfer with the appropriate business application identifier (BAI).
|
|
22
|
+
*/
|
|
23
|
+
payoutType?: CardPayoutType | undefined;
|
|
15
24
|
};
|
|
16
25
|
|
|
17
26
|
/** @internal */
|
|
@@ -21,10 +30,12 @@ export const CreateTransferDestinationCard$inboundSchema: z.ZodType<
|
|
|
21
30
|
unknown
|
|
22
31
|
> = z.object({
|
|
23
32
|
dynamicDescriptor: z.string().optional(),
|
|
33
|
+
payoutType: CardPayoutType$inboundSchema.optional(),
|
|
24
34
|
});
|
|
25
35
|
/** @internal */
|
|
26
36
|
export type CreateTransferDestinationCard$Outbound = {
|
|
27
37
|
dynamicDescriptor?: string | undefined;
|
|
38
|
+
payoutType?: string | undefined;
|
|
28
39
|
};
|
|
29
40
|
|
|
30
41
|
/** @internal */
|
|
@@ -34,6 +45,7 @@ export const CreateTransferDestinationCard$outboundSchema: z.ZodType<
|
|
|
34
45
|
CreateTransferDestinationCard
|
|
35
46
|
> = z.object({
|
|
36
47
|
dynamicDescriptor: z.string().optional(),
|
|
48
|
+
payoutType: CardPayoutType$outboundSchema.optional(),
|
|
37
49
|
});
|
|
38
50
|
|
|
39
51
|
export function createTransferDestinationCardToJSON(
|
|
@@ -69,6 +69,7 @@ export * from "./bankaccountverificationmethod.js";
|
|
|
69
69
|
export * from "./bankaccountverificationstatus.js";
|
|
70
70
|
export * from "./bankaccountwaitfor.js";
|
|
71
71
|
export * from "./basicpaymentmethod.js";
|
|
72
|
+
export * from "./batchgettransfersrequest.js";
|
|
72
73
|
export * from "./billablefee.js";
|
|
73
74
|
export * from "./billingcountandamount.js";
|
|
74
75
|
export * from "./billinginterchangeprogramfee.js";
|
|
@@ -112,6 +113,7 @@ export * from "./cardpaymentdetailserror.js";
|
|
|
112
113
|
export * from "./cardpaymentpaymentmethod.js";
|
|
113
114
|
export * from "./cardpaymentsettings.js";
|
|
114
115
|
export * from "./cardpaymenttransferpaymentmethod.js";
|
|
116
|
+
export * from "./cardpayouttype.js";
|
|
115
117
|
export * from "./cardpresentpaymentpaymentmethod.js";
|
|
116
118
|
export * from "./cardpresentpaymenttransferpaymentmethod.js";
|
|
117
119
|
export * from "./cardtransactiondetails.js";
|
|
@@ -393,8 +395,12 @@ export * from "./productoptiongroupvalidationerror.js";
|
|
|
393
395
|
export * from "./productoptionvalidationerror.js";
|
|
394
396
|
export * from "./productrequest.js";
|
|
395
397
|
export * from "./profile.js";
|
|
398
|
+
export * from "./pullfromapplepaypaymentmethod.js";
|
|
399
|
+
export * from "./pullfromapplepaytransferpaymentmethod.js";
|
|
396
400
|
export * from "./pullfromcardpaymentmethod.js";
|
|
397
401
|
export * from "./pullfromcardtransferpaymentmethod.js";
|
|
402
|
+
export * from "./pushtoapplepaypaymentmethod.js";
|
|
403
|
+
export * from "./pushtoapplepaytransferpaymentmethod.js";
|
|
398
404
|
export * from "./pushtocardpaymentmethod.js";
|
|
399
405
|
export * from "./pushtocardtransferpaymentmethod.js";
|
|
400
406
|
export * from "./qrcode.js";
|
|
@@ -425,9 +431,11 @@ export * from "./reversedwithrefund.js";
|
|
|
425
431
|
export * from "./revoketokenrequest.js";
|
|
426
432
|
export * from "./rtpcreditpaymentmethod.js";
|
|
427
433
|
export * from "./rtpcredittransferpaymentmethod.js";
|
|
434
|
+
export * from "./rtpfailurecode.js";
|
|
428
435
|
export * from "./rtpinstitution.js";
|
|
429
436
|
export * from "./rtprejectioncode.js";
|
|
430
437
|
export * from "./rtpservices.js";
|
|
438
|
+
export * from "./rtptransactionstatus.js";
|
|
431
439
|
export * from "./runtransfer.js";
|
|
432
440
|
export * from "./scheduledtransferimagemetadata.js";
|
|
433
441
|
export * from "./scheduledtransferlineitem.js";
|
|
@@ -60,12 +60,24 @@ import {
|
|
|
60
60
|
MoovWalletPaymentMethod$Outbound,
|
|
61
61
|
MoovWalletPaymentMethod$outboundSchema,
|
|
62
62
|
} from "./moovwalletpaymentmethod.js";
|
|
63
|
+
import {
|
|
64
|
+
PullFromApplePayPaymentMethod,
|
|
65
|
+
PullFromApplePayPaymentMethod$inboundSchema,
|
|
66
|
+
PullFromApplePayPaymentMethod$Outbound,
|
|
67
|
+
PullFromApplePayPaymentMethod$outboundSchema,
|
|
68
|
+
} from "./pullfromapplepaypaymentmethod.js";
|
|
63
69
|
import {
|
|
64
70
|
PullFromCardPaymentMethod,
|
|
65
71
|
PullFromCardPaymentMethod$inboundSchema,
|
|
66
72
|
PullFromCardPaymentMethod$Outbound,
|
|
67
73
|
PullFromCardPaymentMethod$outboundSchema,
|
|
68
74
|
} from "./pullfromcardpaymentmethod.js";
|
|
75
|
+
import {
|
|
76
|
+
PushToApplePayPaymentMethod,
|
|
77
|
+
PushToApplePayPaymentMethod$inboundSchema,
|
|
78
|
+
PushToApplePayPaymentMethod$Outbound,
|
|
79
|
+
PushToApplePayPaymentMethod$outboundSchema,
|
|
80
|
+
} from "./pushtoapplepaypaymentmethod.js";
|
|
69
81
|
import {
|
|
70
82
|
PushToCardPaymentMethod,
|
|
71
83
|
PushToCardPaymentMethod$inboundSchema,
|
|
@@ -94,7 +106,9 @@ export type PaymentMethod =
|
|
|
94
106
|
| PullFromCardPaymentMethod
|
|
95
107
|
| ApplePayPaymentMethod
|
|
96
108
|
| CardPresentPaymentPaymentMethod
|
|
97
|
-
| InstantBankCreditPaymentMethod
|
|
109
|
+
| InstantBankCreditPaymentMethod
|
|
110
|
+
| PushToApplePayPaymentMethod
|
|
111
|
+
| PullFromApplePayPaymentMethod;
|
|
98
112
|
|
|
99
113
|
/** @internal */
|
|
100
114
|
export const PaymentMethod$inboundSchema: z.ZodType<
|
|
@@ -114,6 +128,8 @@ export const PaymentMethod$inboundSchema: z.ZodType<
|
|
|
114
128
|
ApplePayPaymentMethod$inboundSchema,
|
|
115
129
|
CardPresentPaymentPaymentMethod$inboundSchema,
|
|
116
130
|
InstantBankCreditPaymentMethod$inboundSchema,
|
|
131
|
+
PushToApplePayPaymentMethod$inboundSchema,
|
|
132
|
+
PullFromApplePayPaymentMethod$inboundSchema,
|
|
117
133
|
]);
|
|
118
134
|
/** @internal */
|
|
119
135
|
export type PaymentMethod$Outbound =
|
|
@@ -128,7 +144,9 @@ export type PaymentMethod$Outbound =
|
|
|
128
144
|
| PullFromCardPaymentMethod$Outbound
|
|
129
145
|
| ApplePayPaymentMethod$Outbound
|
|
130
146
|
| CardPresentPaymentPaymentMethod$Outbound
|
|
131
|
-
| InstantBankCreditPaymentMethod$Outbound
|
|
147
|
+
| InstantBankCreditPaymentMethod$Outbound
|
|
148
|
+
| PushToApplePayPaymentMethod$Outbound
|
|
149
|
+
| PullFromApplePayPaymentMethod$Outbound;
|
|
132
150
|
|
|
133
151
|
/** @internal */
|
|
134
152
|
export const PaymentMethod$outboundSchema: z.ZodType<
|
|
@@ -148,6 +166,8 @@ export const PaymentMethod$outboundSchema: z.ZodType<
|
|
|
148
166
|
ApplePayPaymentMethod$outboundSchema,
|
|
149
167
|
CardPresentPaymentPaymentMethod$outboundSchema,
|
|
150
168
|
InstantBankCreditPaymentMethod$outboundSchema,
|
|
169
|
+
PushToApplePayPaymentMethod$outboundSchema,
|
|
170
|
+
PullFromApplePayPaymentMethod$outboundSchema,
|
|
151
171
|
]);
|
|
152
172
|
|
|
153
173
|
export function paymentMethodToJSON(paymentMethod: PaymentMethod): string {
|
|
@@ -21,6 +21,8 @@ export const PaymentMethodType = {
|
|
|
21
21
|
ApplePay: "apple-pay",
|
|
22
22
|
CardPresentPayment: "card-present-payment",
|
|
23
23
|
InstantBankCredit: "instant-bank-credit",
|
|
24
|
+
PushToApplePay: "push-to-apple-pay",
|
|
25
|
+
PullFromApplePay: "pull-from-apple-pay",
|
|
24
26
|
} as const;
|
|
25
27
|
/**
|
|
26
28
|
* The payment method type that represents a payment rail and directionality
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ApplePayResponse,
|
|
11
|
+
ApplePayResponse$inboundSchema,
|
|
12
|
+
ApplePayResponse$Outbound,
|
|
13
|
+
ApplePayResponse$outboundSchema,
|
|
14
|
+
} from "./applepayresponse.js";
|
|
15
|
+
|
|
16
|
+
export type PullFromApplePayPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "pull-from-apple-pay";
|
|
22
|
+
/**
|
|
23
|
+
* Describes an Apple Pay token on a Moov account.
|
|
24
|
+
*/
|
|
25
|
+
applePay: ApplePayResponse;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PullFromApplePayPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PullFromApplePayPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("pull-from-apple-pay"),
|
|
36
|
+
applePay: ApplePayResponse$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PullFromApplePayPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "pull-from-apple-pay";
|
|
42
|
+
applePay: ApplePayResponse$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PullFromApplePayPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PullFromApplePayPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PullFromApplePayPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("pull-from-apple-pay"),
|
|
53
|
+
applePay: ApplePayResponse$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pullFromApplePayPaymentMethodToJSON(
|
|
57
|
+
pullFromApplePayPaymentMethod: PullFromApplePayPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PullFromApplePayPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pullFromApplePayPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pullFromApplePayPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PullFromApplePayPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PullFromApplePayPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PullFromApplePayPaymentMethod' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ApplePayResponse,
|
|
11
|
+
ApplePayResponse$inboundSchema,
|
|
12
|
+
ApplePayResponse$Outbound,
|
|
13
|
+
ApplePayResponse$outboundSchema,
|
|
14
|
+
} from "./applepayresponse.js";
|
|
15
|
+
|
|
16
|
+
export type PullFromApplePayTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "pull-from-apple-pay";
|
|
22
|
+
/**
|
|
23
|
+
* Describes an Apple Pay token on a Moov account.
|
|
24
|
+
*/
|
|
25
|
+
applePay: ApplePayResponse;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PullFromApplePayTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PullFromApplePayTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("pull-from-apple-pay"),
|
|
36
|
+
applePay: ApplePayResponse$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PullFromApplePayTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "pull-from-apple-pay";
|
|
42
|
+
applePay: ApplePayResponse$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PullFromApplePayTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PullFromApplePayTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PullFromApplePayTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("pull-from-apple-pay"),
|
|
53
|
+
applePay: ApplePayResponse$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pullFromApplePayTransferPaymentMethodToJSON(
|
|
57
|
+
pullFromApplePayTransferPaymentMethod: PullFromApplePayTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PullFromApplePayTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pullFromApplePayTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pullFromApplePayTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PullFromApplePayTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) =>
|
|
71
|
+
PullFromApplePayTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'PullFromApplePayTransferPaymentMethod' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|