@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
|
@@ -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 PushToApplePayPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "push-to-apple-pay";
|
|
22
|
+
/**
|
|
23
|
+
* Describes an Apple Pay token on a Moov account.
|
|
24
|
+
*/
|
|
25
|
+
applePay: ApplePayResponse;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PushToApplePayPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PushToApplePayPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("push-to-apple-pay"),
|
|
36
|
+
applePay: ApplePayResponse$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PushToApplePayPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "push-to-apple-pay";
|
|
42
|
+
applePay: ApplePayResponse$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PushToApplePayPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PushToApplePayPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PushToApplePayPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("push-to-apple-pay"),
|
|
53
|
+
applePay: ApplePayResponse$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pushToApplePayPaymentMethodToJSON(
|
|
57
|
+
pushToApplePayPaymentMethod: PushToApplePayPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PushToApplePayPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pushToApplePayPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pushToApplePayPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PushToApplePayPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => PushToApplePayPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'PushToApplePayPaymentMethod' 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 PushToApplePayTransferPaymentMethod = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the payment method.
|
|
19
|
+
*/
|
|
20
|
+
paymentMethodID: string;
|
|
21
|
+
paymentMethodType: "push-to-apple-pay";
|
|
22
|
+
/**
|
|
23
|
+
* Describes an Apple Pay token on a Moov account.
|
|
24
|
+
*/
|
|
25
|
+
applePay: ApplePayResponse;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PushToApplePayTransferPaymentMethod$inboundSchema: z.ZodType<
|
|
30
|
+
PushToApplePayTransferPaymentMethod,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
paymentMethodID: z.string(),
|
|
35
|
+
paymentMethodType: z.literal("push-to-apple-pay"),
|
|
36
|
+
applePay: ApplePayResponse$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type PushToApplePayTransferPaymentMethod$Outbound = {
|
|
40
|
+
paymentMethodID: string;
|
|
41
|
+
paymentMethodType: "push-to-apple-pay";
|
|
42
|
+
applePay: ApplePayResponse$Outbound;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PushToApplePayTransferPaymentMethod$outboundSchema: z.ZodType<
|
|
47
|
+
PushToApplePayTransferPaymentMethod$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
PushToApplePayTransferPaymentMethod
|
|
50
|
+
> = z.object({
|
|
51
|
+
paymentMethodID: z.string(),
|
|
52
|
+
paymentMethodType: z.literal("push-to-apple-pay"),
|
|
53
|
+
applePay: ApplePayResponse$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function pushToApplePayTransferPaymentMethodToJSON(
|
|
57
|
+
pushToApplePayTransferPaymentMethod: PushToApplePayTransferPaymentMethod,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
PushToApplePayTransferPaymentMethod$outboundSchema.parse(
|
|
61
|
+
pushToApplePayTransferPaymentMethod,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export function pushToApplePayTransferPaymentMethodFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<PushToApplePayTransferPaymentMethod, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) =>
|
|
71
|
+
PushToApplePayTransferPaymentMethod$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'PushToApplePayTransferPaymentMethod' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
* Status codes for RTP failures.
|
|
10
|
+
*/
|
|
11
|
+
export const RTPFailureCode = {
|
|
12
|
+
ProcessingError: "processing-error",
|
|
13
|
+
InvalidAccount: "invalid-account",
|
|
14
|
+
AccountClosed: "account-closed",
|
|
15
|
+
AccountBlocked: "account-blocked",
|
|
16
|
+
InvalidField: "invalid-field",
|
|
17
|
+
TransactionNotSupported: "transaction-not-supported",
|
|
18
|
+
LimitExceeded: "limit-exceeded",
|
|
19
|
+
InvalidAmount: "invalid-amount",
|
|
20
|
+
CustomerDeceased: "customer-deceased",
|
|
21
|
+
Other: "other",
|
|
22
|
+
} as const;
|
|
23
|
+
/**
|
|
24
|
+
* Status codes for RTP failures.
|
|
25
|
+
*/
|
|
26
|
+
export type RTPFailureCode = ClosedEnum<typeof RTPFailureCode>;
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const RTPFailureCode$inboundSchema: z.ZodNativeEnum<
|
|
30
|
+
typeof RTPFailureCode
|
|
31
|
+
> = z.nativeEnum(RTPFailureCode);
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const RTPFailureCode$outboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof RTPFailureCode
|
|
35
|
+
> = RTPFailureCode$inboundSchema;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Status of a transaction within the RTP lifecycle.
|
|
10
|
+
*/
|
|
11
|
+
export const RTPTransactionStatus = {
|
|
12
|
+
Initiated: "initiated",
|
|
13
|
+
Completed: "completed",
|
|
14
|
+
Failed: "failed",
|
|
15
|
+
AcceptedWithoutPosting: "accepted-without-posting",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Status of a transaction within the RTP lifecycle.
|
|
19
|
+
*/
|
|
20
|
+
export type RTPTransactionStatus = ClosedEnum<typeof RTPTransactionStatus>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const RTPTransactionStatus$inboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof RTPTransactionStatus
|
|
25
|
+
> = z.nativeEnum(RTPTransactionStatus);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const RTPTransactionStatus$outboundSchema: z.ZodNativeEnum<
|
|
28
|
+
typeof RTPTransactionStatus
|
|
29
|
+
> = RTPTransactionStatus$inboundSchema;
|
|
@@ -30,6 +30,16 @@ import {
|
|
|
30
30
|
InstantBankTransactionDetails$Outbound,
|
|
31
31
|
InstantBankTransactionDetails$outboundSchema,
|
|
32
32
|
} from "./instantbanktransactiondetails.js";
|
|
33
|
+
import {
|
|
34
|
+
RTPFailureCode,
|
|
35
|
+
RTPFailureCode$inboundSchema,
|
|
36
|
+
RTPFailureCode$outboundSchema,
|
|
37
|
+
} from "./rtpfailurecode.js";
|
|
38
|
+
import {
|
|
39
|
+
RTPTransactionStatus,
|
|
40
|
+
RTPTransactionStatus$inboundSchema,
|
|
41
|
+
RTPTransactionStatus$outboundSchema,
|
|
42
|
+
} from "./rtptransactionstatus.js";
|
|
33
43
|
import {
|
|
34
44
|
TransferAccount,
|
|
35
45
|
TransferAccount$inboundSchema,
|
|
@@ -60,6 +70,30 @@ import {
|
|
|
60
70
|
TransferPaymentMethodType$outboundSchema,
|
|
61
71
|
} from "./transferpaymentmethodtype.js";
|
|
62
72
|
|
|
73
|
+
/**
|
|
74
|
+
* DEPRECATED: use `InstantBankTransactionDetails` instead (v2026.04.00 or later). RTP specific details about the transaction.
|
|
75
|
+
*
|
|
76
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
77
|
+
*/
|
|
78
|
+
export type RtpDetails = {
|
|
79
|
+
/**
|
|
80
|
+
* Status of a transaction within the RTP lifecycle.
|
|
81
|
+
*/
|
|
82
|
+
status?: RTPTransactionStatus | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Response code returned by network on failure.
|
|
85
|
+
*/
|
|
86
|
+
networkResponseCode?: string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Status codes for RTP failures.
|
|
89
|
+
*/
|
|
90
|
+
failureCode?: RTPFailureCode | undefined;
|
|
91
|
+
initiatedOn?: Date | undefined;
|
|
92
|
+
completedOn?: Date | undefined;
|
|
93
|
+
failedOn?: Date | undefined;
|
|
94
|
+
acceptedWithoutPostingOn?: Date | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
63
97
|
export type TransferDestination = {
|
|
64
98
|
paymentMethodID: string;
|
|
65
99
|
/**
|
|
@@ -88,12 +122,74 @@ export type TransferDestination = {
|
|
|
88
122
|
* Card-specific details about the transaction.
|
|
89
123
|
*/
|
|
90
124
|
cardDetails?: CardTransactionDetails | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
127
|
+
*/
|
|
128
|
+
rtpDetails?: RtpDetails | undefined;
|
|
91
129
|
/**
|
|
92
130
|
* Instant-bank specific details about the transaction.
|
|
93
131
|
*/
|
|
94
132
|
instantBankDetails?: InstantBankTransactionDetails | undefined;
|
|
95
133
|
};
|
|
96
134
|
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const RtpDetails$inboundSchema: z.ZodType<
|
|
137
|
+
RtpDetails,
|
|
138
|
+
z.ZodTypeDef,
|
|
139
|
+
unknown
|
|
140
|
+
> = z.object({
|
|
141
|
+
status: RTPTransactionStatus$inboundSchema.optional(),
|
|
142
|
+
networkResponseCode: z.string().optional(),
|
|
143
|
+
failureCode: RTPFailureCode$inboundSchema.optional(),
|
|
144
|
+
initiatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
145
|
+
.optional(),
|
|
146
|
+
completedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
147
|
+
.optional(),
|
|
148
|
+
failedOn: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
149
|
+
.optional(),
|
|
150
|
+
acceptedWithoutPostingOn: z.string().datetime({ offset: true }).transform(v =>
|
|
151
|
+
new Date(v)
|
|
152
|
+
).optional(),
|
|
153
|
+
});
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type RtpDetails$Outbound = {
|
|
156
|
+
status?: string | undefined;
|
|
157
|
+
networkResponseCode?: string | undefined;
|
|
158
|
+
failureCode?: string | undefined;
|
|
159
|
+
initiatedOn?: string | undefined;
|
|
160
|
+
completedOn?: string | undefined;
|
|
161
|
+
failedOn?: string | undefined;
|
|
162
|
+
acceptedWithoutPostingOn?: string | undefined;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/** @internal */
|
|
166
|
+
export const RtpDetails$outboundSchema: z.ZodType<
|
|
167
|
+
RtpDetails$Outbound,
|
|
168
|
+
z.ZodTypeDef,
|
|
169
|
+
RtpDetails
|
|
170
|
+
> = z.object({
|
|
171
|
+
status: RTPTransactionStatus$outboundSchema.optional(),
|
|
172
|
+
networkResponseCode: z.string().optional(),
|
|
173
|
+
failureCode: RTPFailureCode$outboundSchema.optional(),
|
|
174
|
+
initiatedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
175
|
+
completedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
176
|
+
failedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
177
|
+
acceptedWithoutPostingOn: z.date().transform(v => v.toISOString()).optional(),
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
export function rtpDetailsToJSON(rtpDetails: RtpDetails): string {
|
|
181
|
+
return JSON.stringify(RtpDetails$outboundSchema.parse(rtpDetails));
|
|
182
|
+
}
|
|
183
|
+
export function rtpDetailsFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<RtpDetails, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => RtpDetails$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'RtpDetails' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
97
193
|
/** @internal */
|
|
98
194
|
export const TransferDestination$inboundSchema: z.ZodType<
|
|
99
195
|
TransferDestination,
|
|
@@ -109,6 +205,7 @@ export const TransferDestination$inboundSchema: z.ZodType<
|
|
|
109
205
|
achDetails: ACHTransactionDetails$inboundSchema.optional(),
|
|
110
206
|
applePay: ApplePayResponse$inboundSchema.optional(),
|
|
111
207
|
cardDetails: CardTransactionDetails$inboundSchema.optional(),
|
|
208
|
+
rtpDetails: z.lazy(() => RtpDetails$inboundSchema).optional(),
|
|
112
209
|
instantBankDetails: InstantBankTransactionDetails$inboundSchema.optional(),
|
|
113
210
|
});
|
|
114
211
|
/** @internal */
|
|
@@ -122,6 +219,7 @@ export type TransferDestination$Outbound = {
|
|
|
122
219
|
achDetails?: ACHTransactionDetails$Outbound | undefined;
|
|
123
220
|
applePay?: ApplePayResponse$Outbound | undefined;
|
|
124
221
|
cardDetails?: CardTransactionDetails$Outbound | undefined;
|
|
222
|
+
rtpDetails?: RtpDetails$Outbound | undefined;
|
|
125
223
|
instantBankDetails?: InstantBankTransactionDetails$Outbound | undefined;
|
|
126
224
|
};
|
|
127
225
|
|
|
@@ -140,6 +238,7 @@ export const TransferDestination$outboundSchema: z.ZodType<
|
|
|
140
238
|
achDetails: ACHTransactionDetails$outboundSchema.optional(),
|
|
141
239
|
applePay: ApplePayResponse$outboundSchema.optional(),
|
|
142
240
|
cardDetails: CardTransactionDetails$outboundSchema.optional(),
|
|
241
|
+
rtpDetails: z.lazy(() => RtpDetails$outboundSchema).optional(),
|
|
143
242
|
instantBankDetails: InstantBankTransactionDetails$outboundSchema.optional(),
|
|
144
243
|
});
|
|
145
244
|
|
|
@@ -60,12 +60,24 @@ import {
|
|
|
60
60
|
MoovWalletTransferPaymentMethod$Outbound,
|
|
61
61
|
MoovWalletTransferPaymentMethod$outboundSchema,
|
|
62
62
|
} from "./moovwallettransferpaymentmethod.js";
|
|
63
|
+
import {
|
|
64
|
+
PullFromApplePayTransferPaymentMethod,
|
|
65
|
+
PullFromApplePayTransferPaymentMethod$inboundSchema,
|
|
66
|
+
PullFromApplePayTransferPaymentMethod$Outbound,
|
|
67
|
+
PullFromApplePayTransferPaymentMethod$outboundSchema,
|
|
68
|
+
} from "./pullfromapplepaytransferpaymentmethod.js";
|
|
63
69
|
import {
|
|
64
70
|
PullFromCardTransferPaymentMethod,
|
|
65
71
|
PullFromCardTransferPaymentMethod$inboundSchema,
|
|
66
72
|
PullFromCardTransferPaymentMethod$Outbound,
|
|
67
73
|
PullFromCardTransferPaymentMethod$outboundSchema,
|
|
68
74
|
} from "./pullfromcardtransferpaymentmethod.js";
|
|
75
|
+
import {
|
|
76
|
+
PushToApplePayTransferPaymentMethod,
|
|
77
|
+
PushToApplePayTransferPaymentMethod$inboundSchema,
|
|
78
|
+
PushToApplePayTransferPaymentMethod$Outbound,
|
|
79
|
+
PushToApplePayTransferPaymentMethod$outboundSchema,
|
|
80
|
+
} from "./pushtoapplepaytransferpaymentmethod.js";
|
|
69
81
|
import {
|
|
70
82
|
PushToCardTransferPaymentMethod,
|
|
71
83
|
PushToCardTransferPaymentMethod$inboundSchema,
|
|
@@ -94,7 +106,9 @@ export type TransferPaymentMethod =
|
|
|
94
106
|
| PullFromCardTransferPaymentMethod
|
|
95
107
|
| ApplePayTransferPaymentMethod
|
|
96
108
|
| CardPresentPaymentTransferPaymentMethod
|
|
97
|
-
| InstantBankCreditTransferPaymentMethod
|
|
109
|
+
| InstantBankCreditTransferPaymentMethod
|
|
110
|
+
| PushToApplePayTransferPaymentMethod
|
|
111
|
+
| PullFromApplePayTransferPaymentMethod;
|
|
98
112
|
|
|
99
113
|
/** @internal */
|
|
100
114
|
export const TransferPaymentMethod$inboundSchema: z.ZodType<
|
|
@@ -114,6 +128,8 @@ export const TransferPaymentMethod$inboundSchema: z.ZodType<
|
|
|
114
128
|
ApplePayTransferPaymentMethod$inboundSchema,
|
|
115
129
|
CardPresentPaymentTransferPaymentMethod$inboundSchema,
|
|
116
130
|
InstantBankCreditTransferPaymentMethod$inboundSchema,
|
|
131
|
+
PushToApplePayTransferPaymentMethod$inboundSchema,
|
|
132
|
+
PullFromApplePayTransferPaymentMethod$inboundSchema,
|
|
117
133
|
]);
|
|
118
134
|
/** @internal */
|
|
119
135
|
export type TransferPaymentMethod$Outbound =
|
|
@@ -128,7 +144,9 @@ export type TransferPaymentMethod$Outbound =
|
|
|
128
144
|
| PullFromCardTransferPaymentMethod$Outbound
|
|
129
145
|
| ApplePayTransferPaymentMethod$Outbound
|
|
130
146
|
| CardPresentPaymentTransferPaymentMethod$Outbound
|
|
131
|
-
| InstantBankCreditTransferPaymentMethod$Outbound
|
|
147
|
+
| InstantBankCreditTransferPaymentMethod$Outbound
|
|
148
|
+
| PushToApplePayTransferPaymentMethod$Outbound
|
|
149
|
+
| PullFromApplePayTransferPaymentMethod$Outbound;
|
|
132
150
|
|
|
133
151
|
/** @internal */
|
|
134
152
|
export const TransferPaymentMethod$outboundSchema: z.ZodType<
|
|
@@ -148,6 +166,8 @@ export const TransferPaymentMethod$outboundSchema: z.ZodType<
|
|
|
148
166
|
ApplePayTransferPaymentMethod$outboundSchema,
|
|
149
167
|
CardPresentPaymentTransferPaymentMethod$outboundSchema,
|
|
150
168
|
InstantBankCreditTransferPaymentMethod$outboundSchema,
|
|
169
|
+
PushToApplePayTransferPaymentMethod$outboundSchema,
|
|
170
|
+
PullFromApplePayTransferPaymentMethod$outboundSchema,
|
|
151
171
|
]);
|
|
152
172
|
|
|
153
173
|
export function transferPaymentMethodToJSON(
|
|
@@ -21,6 +21,8 @@ export const TransferPaymentMethodType = {
|
|
|
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
|
|
@@ -33,6 +33,7 @@ export const WalletTransactionType = {
|
|
|
33
33
|
Adjustment: "adjustment",
|
|
34
34
|
FeeRevenue: "fee-revenue",
|
|
35
35
|
Residual: "residual",
|
|
36
|
+
InstantBankFailure: "instant-bank-failure",
|
|
36
37
|
} as const;
|
|
37
38
|
export type WalletTransactionType = ClosedEnum<typeof WalletTransactionType>;
|
|
38
39
|
|
|
@@ -8,6 +8,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type WebhookBillingStatementCreated = {
|
|
11
|
+
accountID: string;
|
|
11
12
|
statementID: string;
|
|
12
13
|
};
|
|
13
14
|
|
|
@@ -17,10 +18,12 @@ export const WebhookBillingStatementCreated$inboundSchema: z.ZodType<
|
|
|
17
18
|
z.ZodTypeDef,
|
|
18
19
|
unknown
|
|
19
20
|
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
20
22
|
statementID: z.string(),
|
|
21
23
|
});
|
|
22
24
|
/** @internal */
|
|
23
25
|
export type WebhookBillingStatementCreated$Outbound = {
|
|
26
|
+
accountID: string;
|
|
24
27
|
statementID: string;
|
|
25
28
|
};
|
|
26
29
|
|
|
@@ -30,6 +33,7 @@ export const WebhookBillingStatementCreated$outboundSchema: z.ZodType<
|
|
|
30
33
|
z.ZodTypeDef,
|
|
31
34
|
WebhookBillingStatementCreated
|
|
32
35
|
> = z.object({
|
|
36
|
+
accountID: z.string(),
|
|
33
37
|
statementID: z.string(),
|
|
34
38
|
});
|
|
35
39
|
|
|
@@ -265,11 +265,11 @@ export type WebhookData =
|
|
|
265
265
|
| WebhookDataTicketCreated
|
|
266
266
|
| WebhookDataTicketMessageAdded
|
|
267
267
|
| WebhookDataWalletCreated
|
|
268
|
+
| WebhookBillingStatementCreated
|
|
268
269
|
| WebhookDataAccountCreated
|
|
269
270
|
| WebhookDataAccountUpdated
|
|
270
271
|
| WebhookDataAccountDisconnected
|
|
271
|
-
| WebhookDataNetworkIDUpdated
|
|
272
|
-
| WebhookBillingStatementCreated;
|
|
272
|
+
| WebhookDataNetworkIDUpdated;
|
|
273
273
|
|
|
274
274
|
/** @internal */
|
|
275
275
|
export const WebhookData$inboundSchema: z.ZodType<
|
|
@@ -309,11 +309,11 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
309
309
|
WebhookDataTicketCreated$inboundSchema,
|
|
310
310
|
WebhookDataTicketMessageAdded$inboundSchema,
|
|
311
311
|
WebhookDataWalletCreated$inboundSchema,
|
|
312
|
+
WebhookBillingStatementCreated$inboundSchema,
|
|
312
313
|
WebhookDataAccountCreated$inboundSchema,
|
|
313
314
|
WebhookDataAccountUpdated$inboundSchema,
|
|
314
315
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
315
316
|
WebhookDataNetworkIDUpdated$inboundSchema,
|
|
316
|
-
WebhookBillingStatementCreated$inboundSchema,
|
|
317
317
|
]);
|
|
318
318
|
/** @internal */
|
|
319
319
|
export type WebhookData$Outbound =
|
|
@@ -349,11 +349,11 @@ export type WebhookData$Outbound =
|
|
|
349
349
|
| WebhookDataTicketCreated$Outbound
|
|
350
350
|
| WebhookDataTicketMessageAdded$Outbound
|
|
351
351
|
| WebhookDataWalletCreated$Outbound
|
|
352
|
+
| WebhookBillingStatementCreated$Outbound
|
|
352
353
|
| WebhookDataAccountCreated$Outbound
|
|
353
354
|
| WebhookDataAccountUpdated$Outbound
|
|
354
355
|
| WebhookDataAccountDisconnected$Outbound
|
|
355
|
-
| WebhookDataNetworkIDUpdated$Outbound
|
|
356
|
-
| WebhookBillingStatementCreated$Outbound;
|
|
356
|
+
| WebhookDataNetworkIDUpdated$Outbound;
|
|
357
357
|
|
|
358
358
|
/** @internal */
|
|
359
359
|
export const WebhookData$outboundSchema: z.ZodType<
|
|
@@ -393,11 +393,11 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
393
393
|
WebhookDataTicketCreated$outboundSchema,
|
|
394
394
|
WebhookDataTicketMessageAdded$outboundSchema,
|
|
395
395
|
WebhookDataWalletCreated$outboundSchema,
|
|
396
|
+
WebhookBillingStatementCreated$outboundSchema,
|
|
396
397
|
WebhookDataAccountCreated$outboundSchema,
|
|
397
398
|
WebhookDataAccountUpdated$outboundSchema,
|
|
398
399
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
399
400
|
WebhookDataNetworkIDUpdated$outboundSchema,
|
|
400
|
-
WebhookBillingStatementCreated$outboundSchema,
|
|
401
401
|
]);
|
|
402
402
|
|
|
403
403
|
export function webhookDataToJSON(webhookData: WebhookData): string {
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type BatchGetTransfersRequest = {
|
|
13
|
+
accountID: string;
|
|
14
|
+
batchGetTransfersRequest: components.BatchGetTransfersRequest;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type BatchGetTransfersResponse = {
|
|
18
|
+
headers: { [k: string]: Array<string> };
|
|
19
|
+
result: { [k: string]: components.Transfer };
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const BatchGetTransfersRequest$inboundSchema: z.ZodType<
|
|
24
|
+
BatchGetTransfersRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
accountID: z.string(),
|
|
29
|
+
BatchGetTransfersRequest: components.BatchGetTransfersRequest$inboundSchema,
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
"BatchGetTransfersRequest": "batchGetTransfersRequest",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type BatchGetTransfersRequest$Outbound = {
|
|
37
|
+
accountID: string;
|
|
38
|
+
BatchGetTransfersRequest: components.BatchGetTransfersRequest$Outbound;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const BatchGetTransfersRequest$outboundSchema: z.ZodType<
|
|
43
|
+
BatchGetTransfersRequest$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
BatchGetTransfersRequest
|
|
46
|
+
> = z.object({
|
|
47
|
+
accountID: z.string(),
|
|
48
|
+
batchGetTransfersRequest: components.BatchGetTransfersRequest$outboundSchema,
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
batchGetTransfersRequest: "BatchGetTransfersRequest",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function batchGetTransfersRequestToJSON(
|
|
56
|
+
batchGetTransfersRequest: BatchGetTransfersRequest,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(
|
|
59
|
+
BatchGetTransfersRequest$outboundSchema.parse(batchGetTransfersRequest),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
export function batchGetTransfersRequestFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<BatchGetTransfersRequest, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => BatchGetTransfersRequest$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'BatchGetTransfersRequest' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const BatchGetTransfersResponse$inboundSchema: z.ZodType<
|
|
74
|
+
BatchGetTransfersResponse,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = z.object({
|
|
78
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
79
|
+
Result: z.record(components.Transfer$inboundSchema),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
"Headers": "headers",
|
|
83
|
+
"Result": "result",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
/** @internal */
|
|
87
|
+
export type BatchGetTransfersResponse$Outbound = {
|
|
88
|
+
Headers: { [k: string]: Array<string> };
|
|
89
|
+
Result: { [k: string]: components.Transfer$Outbound };
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const BatchGetTransfersResponse$outboundSchema: z.ZodType<
|
|
94
|
+
BatchGetTransfersResponse$Outbound,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
BatchGetTransfersResponse
|
|
97
|
+
> = z.object({
|
|
98
|
+
headers: z.record(z.array(z.string())),
|
|
99
|
+
result: z.record(components.Transfer$outboundSchema),
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return remap$(v, {
|
|
102
|
+
headers: "Headers",
|
|
103
|
+
result: "Result",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export function batchGetTransfersResponseToJSON(
|
|
108
|
+
batchGetTransfersResponse: BatchGetTransfersResponse,
|
|
109
|
+
): string {
|
|
110
|
+
return JSON.stringify(
|
|
111
|
+
BatchGetTransfersResponse$outboundSchema.parse(batchGetTransfersResponse),
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
export function batchGetTransfersResponseFromJSON(
|
|
115
|
+
jsonString: string,
|
|
116
|
+
): SafeParseResult<BatchGetTransfersResponse, SDKValidationError> {
|
|
117
|
+
return safeParse(
|
|
118
|
+
jsonString,
|
|
119
|
+
(x) => BatchGetTransfersResponse$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'BatchGetTransfersResponse' from JSON`,
|
|
121
|
+
);
|
|
122
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
export * from "./acceptdispute.js";
|
|
6
6
|
export * from "./assignaccountcountries.js";
|
|
7
|
+
export * from "./batchgettransfers.js";
|
|
7
8
|
export * from "./cancelschedule.js";
|
|
8
9
|
export * from "./completebankaccountverification.js";
|
|
9
10
|
export * from "./completemicrodeposits.js";
|
|
@@ -19,7 +19,7 @@ export type LinkApplePayTokenRequest = {
|
|
|
19
19
|
|
|
20
20
|
export type LinkApplePayTokenResponse = {
|
|
21
21
|
headers: { [k: string]: Array<string> };
|
|
22
|
-
result: components.LinkedApplePayPaymentMethod
|
|
22
|
+
result: Array<components.LinkedApplePayPaymentMethod>;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
@@ -79,7 +79,7 @@ export const LinkApplePayTokenResponse$inboundSchema: z.ZodType<
|
|
|
79
79
|
unknown
|
|
80
80
|
> = z.object({
|
|
81
81
|
Headers: z.record(z.array(z.string())).default({}),
|
|
82
|
-
Result: components.LinkedApplePayPaymentMethod$inboundSchema,
|
|
82
|
+
Result: z.array(components.LinkedApplePayPaymentMethod$inboundSchema),
|
|
83
83
|
}).transform((v) => {
|
|
84
84
|
return remap$(v, {
|
|
85
85
|
"Headers": "headers",
|
|
@@ -89,7 +89,7 @@ export const LinkApplePayTokenResponse$inboundSchema: z.ZodType<
|
|
|
89
89
|
/** @internal */
|
|
90
90
|
export type LinkApplePayTokenResponse$Outbound = {
|
|
91
91
|
Headers: { [k: string]: Array<string> };
|
|
92
|
-
Result: components.LinkedApplePayPaymentMethod$Outbound
|
|
92
|
+
Result: Array<components.LinkedApplePayPaymentMethod$Outbound>;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
/** @internal */
|
|
@@ -99,7 +99,7 @@ export const LinkApplePayTokenResponse$outboundSchema: z.ZodType<
|
|
|
99
99
|
LinkApplePayTokenResponse
|
|
100
100
|
> = z.object({
|
|
101
101
|
headers: z.record(z.array(z.string())),
|
|
102
|
-
result: components.LinkedApplePayPaymentMethod$outboundSchema,
|
|
102
|
+
result: z.array(components.LinkedApplePayPaymentMethod$outboundSchema),
|
|
103
103
|
}).transform((v) => {
|
|
104
104
|
return remap$(v, {
|
|
105
105
|
headers: "Headers",
|