mollie-api-typescript 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +239 -212
- package/bin/mcp-server.js.map +88 -86
- package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js +5 -5
- package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/balancesGet.js.map +1 -1
- package/dist/commonjs/funcs/balancesGetReport.js.map +1 -1
- package/dist/commonjs/funcs/balancesList.js +5 -5
- package/dist/commonjs/funcs/balancesList.js.map +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js +5 -5
- package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
- package/dist/commonjs/funcs/capturesCreate.js.map +1 -1
- package/dist/commonjs/funcs/capturesGet.js.map +1 -1
- package/dist/commonjs/funcs/capturesList.js +5 -5
- package/dist/commonjs/funcs/capturesList.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksAll.js +5 -5
- package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksGet.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksList.js +5 -5
- package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
- package/dist/commonjs/funcs/clientsGet.js.map +1 -1
- package/dist/commonjs/funcs/clientsList.js +5 -5
- package/dist/commonjs/funcs/clientsList.js.map +1 -1
- package/dist/commonjs/funcs/customersCreatePayment.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +5 -5
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersListPayments.js +5 -5
- package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/invoicesList.js +5 -5
- package/dist/commonjs/funcs/invoicesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesCreate.js.map +1 -1
- package/dist/commonjs/funcs/mandatesGet.js.map +1 -1
- package/dist/commonjs/funcs/mandatesList.js +5 -5
- package/dist/commonjs/funcs/mandatesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesRevoke.js.map +1 -1
- package/dist/commonjs/funcs/methodsGet.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksList.js +5 -5
- package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.js +5 -5
- package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/paymentsCancel.js.map +1 -1
- package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentsList.js +5 -5
- package/dist/commonjs/funcs/paymentsList.js.map +1 -1
- package/dist/commonjs/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/commonjs/funcs/paymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/permissionsGet.js.map +1 -1
- package/dist/commonjs/funcs/profilesDelete.js.map +1 -1
- package/dist/commonjs/funcs/profilesGet.js.map +1 -1
- package/dist/commonjs/funcs/profilesList.js +5 -5
- package/dist/commonjs/funcs/profilesList.js.map +1 -1
- package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/refundsAll.js +5 -5
- package/dist/commonjs/funcs/refundsAll.js.map +1 -1
- package/dist/commonjs/funcs/refundsCancel.js.map +1 -1
- package/dist/commonjs/funcs/refundsCreate.js.map +1 -1
- package/dist/commonjs/funcs/refundsGet.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +5 -5
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.js +5 -5
- package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/sessionsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsList.js +5 -5
- package/dist/commonjs/funcs/settlementsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js +5 -5
- package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js +5 -5
- package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js +5 -5
- package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +5 -5
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +5 -5
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +5 -5
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.js +5 -5
- package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/terminalsGet.js.map +1 -1
- package/dist/commonjs/funcs/terminalsList.js +5 -5
- package/dist/commonjs/funcs/terminalsList.js.map +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksList.js +5 -5
- package/dist/commonjs/funcs/webhooksList.js.map +1 -1
- package/dist/commonjs/funcs/webhooksTest.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -1
- package/dist/commonjs/hooks/global-usage.d.ts +2 -0
- package/dist/commonjs/hooks/global-usage.d.ts.map +1 -0
- package/dist/commonjs/hooks/global-usage.js +44 -0
- package/dist/commonjs/hooks/global-usage.js.map +1 -0
- package/dist/commonjs/hooks/mollie-auth-utils.d.ts +4 -0
- package/dist/commonjs/hooks/mollie-auth-utils.d.ts.map +1 -0
- package/dist/commonjs/hooks/mollie-auth-utils.js +19 -0
- package/dist/commonjs/hooks/mollie-auth-utils.js.map +1 -0
- package/dist/commonjs/hooks/mollie-hooks.d.ts +1 -2
- package/dist/commonjs/hooks/mollie-hooks.d.ts.map +1 -1
- package/dist/commonjs/hooks/mollie-hooks.js +27 -60
- package/dist/commonjs/hooks/mollie-hooks.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts +0 -2
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +10 -20
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/esm/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersList.js +5 -5
- package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
- package/dist/esm/funcs/balancesGet.js.map +1 -1
- package/dist/esm/funcs/balancesGetReport.js.map +1 -1
- package/dist/esm/funcs/balancesList.js +5 -5
- package/dist/esm/funcs/balancesList.js.map +1 -1
- package/dist/esm/funcs/balancesListTransactions.js +5 -5
- package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
- package/dist/esm/funcs/capturesCreate.js.map +1 -1
- package/dist/esm/funcs/capturesGet.js.map +1 -1
- package/dist/esm/funcs/capturesList.js +5 -5
- package/dist/esm/funcs/capturesList.js.map +1 -1
- package/dist/esm/funcs/chargebacksAll.js +5 -5
- package/dist/esm/funcs/chargebacksAll.js.map +1 -1
- package/dist/esm/funcs/chargebacksGet.js.map +1 -1
- package/dist/esm/funcs/chargebacksList.js +5 -5
- package/dist/esm/funcs/chargebacksList.js.map +1 -1
- package/dist/esm/funcs/clientsGet.js.map +1 -1
- package/dist/esm/funcs/clientsList.js +5 -5
- package/dist/esm/funcs/clientsList.js.map +1 -1
- package/dist/esm/funcs/customersCreatePayment.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.js +5 -5
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersListPayments.js +5 -5
- package/dist/esm/funcs/customersListPayments.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/invoicesGet.js.map +1 -1
- package/dist/esm/funcs/invoicesList.js +5 -5
- package/dist/esm/funcs/invoicesList.js.map +1 -1
- package/dist/esm/funcs/mandatesCreate.js.map +1 -1
- package/dist/esm/funcs/mandatesGet.js.map +1 -1
- package/dist/esm/funcs/mandatesList.js +5 -5
- package/dist/esm/funcs/mandatesList.js.map +1 -1
- package/dist/esm/funcs/mandatesRevoke.js.map +1 -1
- package/dist/esm/funcs/methodsGet.js.map +1 -1
- package/dist/esm/funcs/organizationsGet.js.map +1 -1
- package/dist/esm/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/esm/funcs/paymentLinksGet.js.map +1 -1
- package/dist/esm/funcs/paymentLinksList.js +5 -5
- package/dist/esm/funcs/paymentLinksList.js.map +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.js +5 -5
- package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/esm/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/esm/funcs/paymentsCancel.js.map +1 -1
- package/dist/esm/funcs/paymentsGet.js.map +1 -1
- package/dist/esm/funcs/paymentsList.js +5 -5
- package/dist/esm/funcs/paymentsList.js.map +1 -1
- package/dist/esm/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/esm/funcs/paymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/permissionsGet.js.map +1 -1
- package/dist/esm/funcs/profilesDelete.js.map +1 -1
- package/dist/esm/funcs/profilesGet.js.map +1 -1
- package/dist/esm/funcs/profilesList.js +5 -5
- package/dist/esm/funcs/profilesList.js.map +1 -1
- package/dist/esm/funcs/profilesUpdate.js.map +1 -1
- package/dist/esm/funcs/refundsAll.js +5 -5
- package/dist/esm/funcs/refundsAll.js.map +1 -1
- package/dist/esm/funcs/refundsCancel.js.map +1 -1
- package/dist/esm/funcs/refundsCreate.js.map +1 -1
- package/dist/esm/funcs/refundsGet.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +5 -5
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesList.js +5 -5
- package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/esm/funcs/sessionsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsList.js +5 -5
- package/dist/esm/funcs/settlementsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js +5 -5
- package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js +5 -5
- package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/esm/funcs/settlementsListPayments.js +5 -5
- package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +5 -5
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +5 -5
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +5 -5
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.js +5 -5
- package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/terminalsGet.js.map +1 -1
- package/dist/esm/funcs/terminalsList.js +5 -5
- package/dist/esm/funcs/terminalsList.js.map +1 -1
- package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
- package/dist/esm/funcs/webhooksDelete.js.map +1 -1
- package/dist/esm/funcs/webhooksGet.js.map +1 -1
- package/dist/esm/funcs/webhooksList.js +5 -5
- package/dist/esm/funcs/webhooksList.js.map +1 -1
- package/dist/esm/funcs/webhooksTest.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdate.js.map +1 -1
- package/dist/esm/hooks/global-usage.d.ts +2 -0
- package/dist/esm/hooks/global-usage.d.ts.map +1 -0
- package/dist/esm/hooks/global-usage.js +41 -0
- package/dist/esm/hooks/global-usage.js.map +1 -0
- package/dist/esm/hooks/mollie-auth-utils.d.ts +4 -0
- package/dist/esm/hooks/mollie-auth-utils.d.ts.map +1 -0
- package/dist/esm/hooks/mollie-auth-utils.js +15 -0
- package/dist/esm/hooks/mollie-auth-utils.js.map +1 -0
- package/dist/esm/hooks/mollie-hooks.d.ts +1 -2
- package/dist/esm/hooks/mollie-hooks.d.ts.map +1 -1
- package/dist/esm/hooks/mollie-hooks.js +27 -60
- package/dist/esm/hooks/mollie-hooks.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts +0 -2
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +10 -20
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/balanceTransfersGet.ts +0 -1
- package/src/funcs/balanceTransfersList.ts +5 -6
- package/src/funcs/balancesGet.ts +0 -1
- package/src/funcs/balancesGetReport.ts +0 -1
- package/src/funcs/balancesList.ts +5 -6
- package/src/funcs/balancesListTransactions.ts +5 -6
- package/src/funcs/capturesCreate.ts +0 -1
- package/src/funcs/capturesGet.ts +0 -1
- package/src/funcs/capturesList.ts +5 -6
- package/src/funcs/chargebacksAll.ts +5 -6
- package/src/funcs/chargebacksGet.ts +0 -1
- package/src/funcs/chargebacksList.ts +5 -6
- package/src/funcs/clientsGet.ts +0 -1
- package/src/funcs/clientsList.ts +5 -6
- package/src/funcs/customersCreatePayment.ts +0 -1
- package/src/funcs/customersDelete.ts +0 -1
- package/src/funcs/customersGet.ts +0 -1
- package/src/funcs/customersList.ts +5 -6
- package/src/funcs/customersListPayments.ts +5 -6
- package/src/funcs/customersUpdate.ts +0 -1
- package/src/funcs/delayedRoutingCreate.ts +0 -1
- package/src/funcs/delayedRoutingGet.ts +0 -1
- package/src/funcs/delayedRoutingList.ts +0 -1
- package/src/funcs/invoicesGet.ts +0 -1
- package/src/funcs/invoicesList.ts +5 -6
- package/src/funcs/mandatesCreate.ts +0 -1
- package/src/funcs/mandatesGet.ts +0 -1
- package/src/funcs/mandatesList.ts +5 -6
- package/src/funcs/mandatesRevoke.ts +0 -1
- package/src/funcs/methodsGet.ts +0 -1
- package/src/funcs/organizationsGet.ts +0 -1
- package/src/funcs/paymentLinksDelete.ts +0 -1
- package/src/funcs/paymentLinksGet.ts +0 -1
- package/src/funcs/paymentLinksList.ts +5 -6
- package/src/funcs/paymentLinksListPayments.ts +5 -6
- package/src/funcs/paymentLinksUpdate.ts +0 -1
- package/src/funcs/paymentsCancel.ts +0 -1
- package/src/funcs/paymentsGet.ts +0 -1
- package/src/funcs/paymentsList.ts +5 -6
- package/src/funcs/paymentsReleaseAuthorization.ts +0 -1
- package/src/funcs/paymentsUpdate.ts +0 -1
- package/src/funcs/permissionsGet.ts +0 -1
- package/src/funcs/profilesDelete.ts +0 -1
- package/src/funcs/profilesGet.ts +0 -1
- package/src/funcs/profilesList.ts +5 -6
- package/src/funcs/profilesUpdate.ts +0 -1
- package/src/funcs/refundsAll.ts +5 -6
- package/src/funcs/refundsCancel.ts +0 -1
- package/src/funcs/refundsCreate.ts +0 -1
- package/src/funcs/refundsGet.ts +0 -1
- package/src/funcs/refundsList.ts +5 -6
- package/src/funcs/salesInvoicesDelete.ts +0 -1
- package/src/funcs/salesInvoicesGet.ts +0 -1
- package/src/funcs/salesInvoicesList.ts +5 -6
- package/src/funcs/salesInvoicesUpdate.ts +0 -1
- package/src/funcs/sessionsGet.ts +0 -1
- package/src/funcs/settlementsGet.ts +0 -1
- package/src/funcs/settlementsList.ts +5 -6
- package/src/funcs/settlementsListCaptures.ts +5 -6
- package/src/funcs/settlementsListChargebacks.ts +5 -6
- package/src/funcs/settlementsListPayments.ts +5 -6
- package/src/funcs/settlementsListRefunds.ts +5 -6
- package/src/funcs/subscriptionsAll.ts +5 -6
- package/src/funcs/subscriptionsCancel.ts +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -1
- package/src/funcs/subscriptionsGet.ts +0 -1
- package/src/funcs/subscriptionsList.ts +5 -6
- package/src/funcs/subscriptionsListPayments.ts +5 -6
- package/src/funcs/subscriptionsUpdate.ts +0 -1
- package/src/funcs/terminalsGet.ts +0 -1
- package/src/funcs/terminalsList.ts +5 -6
- package/src/funcs/webhookEventsGet.ts +0 -1
- package/src/funcs/webhooksDelete.ts +0 -1
- package/src/funcs/webhooksGet.ts +0 -1
- package/src/funcs/webhooksList.ts +5 -6
- package/src/funcs/webhooksTest.ts +0 -1
- package/src/funcs/webhooksUpdate.ts +0 -1
- package/src/hooks/global-usage.ts +40 -0
- package/src/hooks/mollie-auth-utils.ts +17 -0
- package/src/hooks/mollie-hooks.ts +33 -76
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +9 -26
- package/src/lib/url.ts +16 -14
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
package/bin/mcp-server.js
CHANGED
|
@@ -52838,7 +52838,7 @@ function pathToFunc(pathPattern, options) {
|
|
|
52838
52838
|
throw new Error(`Parameter '${placeholder}' must be a string or number`);
|
|
52839
52839
|
}
|
|
52840
52840
|
return options?.charEncoding === "percent" ? encodeURIComponent(`${value}`) : `${value}`;
|
|
52841
|
-
});
|
|
52841
|
+
}).replace(/^\/+/, "");
|
|
52842
52842
|
};
|
|
52843
52843
|
}
|
|
52844
52844
|
var hasOwn;
|
|
@@ -52869,12 +52869,72 @@ var init_config = __esm(() => {
|
|
|
52869
52869
|
SDK_METADATA = {
|
|
52870
52870
|
language: "typescript",
|
|
52871
52871
|
openapiDocVersion: "1.0.0",
|
|
52872
|
-
sdkVersion: "1.3.
|
|
52873
|
-
genVersion: "2.
|
|
52874
|
-
userAgent: "speakeasy-sdk/typescript 1.3.
|
|
52872
|
+
sdkVersion: "1.3.1",
|
|
52873
|
+
genVersion: "2.869.10",
|
|
52874
|
+
userAgent: "speakeasy-sdk/typescript 1.3.1 2.869.10 1.0.0 mollie-api-typescript"
|
|
52875
|
+
};
|
|
52876
|
+
});
|
|
52877
|
+
|
|
52878
|
+
// src/hooks/global-usage.ts
|
|
52879
|
+
var globalUsage;
|
|
52880
|
+
var init_global_usage = __esm(() => {
|
|
52881
|
+
globalUsage = {
|
|
52882
|
+
testmode: [
|
|
52883
|
+
"create-payment",
|
|
52884
|
+
"update-payment",
|
|
52885
|
+
"cancel-payment",
|
|
52886
|
+
"release-authorization",
|
|
52887
|
+
"create-refund",
|
|
52888
|
+
"create-payment-link",
|
|
52889
|
+
"update-payment-link",
|
|
52890
|
+
"delete-payment-link",
|
|
52891
|
+
"create-session",
|
|
52892
|
+
"create-webhook",
|
|
52893
|
+
"update-webhook",
|
|
52894
|
+
"delete-webhook",
|
|
52895
|
+
"test-webhook",
|
|
52896
|
+
"create-customer",
|
|
52897
|
+
"update-customer",
|
|
52898
|
+
"delete-customer",
|
|
52899
|
+
"create-customer-payment",
|
|
52900
|
+
"create-mandate",
|
|
52901
|
+
"revoke-mandate",
|
|
52902
|
+
"create-subscription",
|
|
52903
|
+
"update-subscription",
|
|
52904
|
+
"cancel-subscription",
|
|
52905
|
+
"create-connect-balance-transfer",
|
|
52906
|
+
"create-sales-invoice",
|
|
52907
|
+
"update-sales-invoice",
|
|
52908
|
+
"delete-sales-invoice"
|
|
52909
|
+
],
|
|
52910
|
+
profileId: [
|
|
52911
|
+
"create-payment",
|
|
52912
|
+
"release-authorization",
|
|
52913
|
+
"request-apple-pay-payment-session",
|
|
52914
|
+
"create-payment-link",
|
|
52915
|
+
"create-session",
|
|
52916
|
+
"create-customer-payment",
|
|
52917
|
+
"create-subscription",
|
|
52918
|
+
"create-sales-invoice"
|
|
52919
|
+
]
|
|
52875
52920
|
};
|
|
52876
52921
|
});
|
|
52877
52922
|
|
|
52923
|
+
// src/hooks/mollie-auth-utils.ts
|
|
52924
|
+
function clientCanHaveGlobalFields(options) {
|
|
52925
|
+
const security = options.security;
|
|
52926
|
+
if (!security)
|
|
52927
|
+
return false;
|
|
52928
|
+
const securityObj = typeof security === "function" ? security() : security;
|
|
52929
|
+
if (securityObj instanceof Promise)
|
|
52930
|
+
return false;
|
|
52931
|
+
const token = securityObj.apiKey || securityObj.oAuth;
|
|
52932
|
+
return !!token && token.startsWith("access_");
|
|
52933
|
+
}
|
|
52934
|
+
function clientHasGlobalFields(options) {
|
|
52935
|
+
return !!options.testmode || !!options.profileId;
|
|
52936
|
+
}
|
|
52937
|
+
|
|
52878
52938
|
// src/hooks/mollie-hooks.ts
|
|
52879
52939
|
class MollieHooks {
|
|
52880
52940
|
beforeCreateRequest(hookContext, input) {
|
|
@@ -52889,8 +52949,8 @@ class MollieHooks {
|
|
|
52889
52949
|
headers
|
|
52890
52950
|
}
|
|
52891
52951
|
};
|
|
52892
|
-
if (
|
|
52893
|
-
input = this.
|
|
52952
|
+
if (clientCanHaveGlobalFields(hookContext.options)) {
|
|
52953
|
+
input = this.injectGlobalFields(input, hookContext);
|
|
52894
52954
|
}
|
|
52895
52955
|
return input;
|
|
52896
52956
|
}
|
|
@@ -52907,20 +52967,6 @@ class MollieHooks {
|
|
|
52907
52967
|
}
|
|
52908
52968
|
}
|
|
52909
52969
|
}
|
|
52910
|
-
isOAuthRequest(headers, hookContext) {
|
|
52911
|
-
const security = hookContext.options.security;
|
|
52912
|
-
if (typeof security === "function") {
|
|
52913
|
-
return false;
|
|
52914
|
-
}
|
|
52915
|
-
if (security === null) {
|
|
52916
|
-
return false;
|
|
52917
|
-
}
|
|
52918
|
-
const oAuth = security?.oAuth;
|
|
52919
|
-
if (!oAuth) {
|
|
52920
|
-
return false;
|
|
52921
|
-
}
|
|
52922
|
-
return headers.get("Authorization") === `Bearer ${oAuth}`;
|
|
52923
|
-
}
|
|
52924
52970
|
handleIdempotencyKey(headers) {
|
|
52925
52971
|
const idempotencyKey = "Idempotency-Key";
|
|
52926
52972
|
if (!headers.has(idempotencyKey) || !headers.get(idempotencyKey)) {
|
|
@@ -52943,22 +52989,21 @@ class MollieHooks {
|
|
|
52943
52989
|
headers.set(userAgentKey, mollieUserAgent);
|
|
52944
52990
|
return headers;
|
|
52945
52991
|
}
|
|
52946
|
-
|
|
52947
|
-
const
|
|
52948
|
-
const
|
|
52949
|
-
const
|
|
52950
|
-
|
|
52951
|
-
|
|
52952
|
-
|
|
52953
|
-
|
|
52954
|
-
|
|
52955
|
-
if (
|
|
52956
|
-
|
|
52992
|
+
injectGlobalFields(input, hookContext) {
|
|
52993
|
+
const operationID = hookContext.operationID;
|
|
52994
|
+
const options = hookContext.options;
|
|
52995
|
+
const fieldMap = {
|
|
52996
|
+
profileId: options.profileId,
|
|
52997
|
+
testmode: options.testmode
|
|
52998
|
+
};
|
|
52999
|
+
const fieldsToInject = {};
|
|
53000
|
+
for (const [field, operations] of Object.entries(globalUsage)) {
|
|
53001
|
+
if (operations.includes(operationID) && fieldMap[field] !== undefined) {
|
|
53002
|
+
fieldsToInject[field] = fieldMap[field];
|
|
52957
53003
|
}
|
|
52958
|
-
|
|
52959
|
-
|
|
52960
|
-
|
|
52961
|
-
};
|
|
53004
|
+
}
|
|
53005
|
+
if (Object.keys(fieldsToInject).length === 0) {
|
|
53006
|
+
return input;
|
|
52962
53007
|
}
|
|
52963
53008
|
let body = {};
|
|
52964
53009
|
if (input.options?.body) {
|
|
@@ -52966,32 +53011,25 @@ class MollieHooks {
|
|
|
52966
53011
|
if (typeof input.options.body === "string") {
|
|
52967
53012
|
body = JSON.parse(input.options.body);
|
|
52968
53013
|
} else if (input.options.body instanceof ArrayBuffer || input.options.body instanceof Uint8Array) {
|
|
52969
|
-
|
|
52970
|
-
const text = decoder.decode(input.options.body);
|
|
52971
|
-
body = JSON.parse(text);
|
|
53014
|
+
body = JSON.parse(new TextDecoder().decode(input.options.body));
|
|
52972
53015
|
} else {
|
|
52973
53016
|
body = input.options.body;
|
|
52974
53017
|
}
|
|
52975
|
-
} catch
|
|
53018
|
+
} catch {
|
|
52976
53019
|
return input;
|
|
52977
53020
|
}
|
|
52978
53021
|
}
|
|
52979
|
-
|
|
52980
|
-
body
|
|
52981
|
-
|
|
52982
|
-
|
|
52983
|
-
body.testmode = clientTestmode;
|
|
53022
|
+
for (const [field, value] of Object.entries(fieldsToInject)) {
|
|
53023
|
+
if (!(field in body)) {
|
|
53024
|
+
body[field] = value;
|
|
53025
|
+
}
|
|
52984
53026
|
}
|
|
52985
53027
|
const newContent = JSON.stringify(body);
|
|
52986
53028
|
const headers = new Headers(input.options?.headers);
|
|
52987
53029
|
headers.set("Content-Length", String(new TextEncoder().encode(newContent).length));
|
|
52988
53030
|
return {
|
|
52989
53031
|
...input,
|
|
52990
|
-
options: {
|
|
52991
|
-
...input.options,
|
|
52992
|
-
headers,
|
|
52993
|
-
body: newContent
|
|
52994
|
-
}
|
|
53032
|
+
options: { ...input.options, headers, body: newContent }
|
|
52995
53033
|
};
|
|
52996
53034
|
}
|
|
52997
53035
|
generateIdempotencyKey() {
|
|
@@ -53000,6 +53038,7 @@ class MollieHooks {
|
|
|
53000
53038
|
}
|
|
53001
53039
|
var init_mollie_hooks = __esm(() => {
|
|
53002
53040
|
init_config();
|
|
53041
|
+
init_global_usage();
|
|
53003
53042
|
});
|
|
53004
53043
|
|
|
53005
53044
|
// src/hooks/registration.ts
|
|
@@ -53768,39 +53807,27 @@ class ClientSDK {
|
|
|
53768
53807
|
if (!this.#logger && env().CLIENT_DEBUG) {
|
|
53769
53808
|
this.#logger = console;
|
|
53770
53809
|
}
|
|
53771
|
-
if (!
|
|
53810
|
+
if (!clientCanHaveGlobalFields(options) && clientHasGlobalFields(options)) {
|
|
53772
53811
|
throw new ClientCreationError("Invalid client configuration", {
|
|
53773
53812
|
cause: "Global fields like testmode and profileId can only be set when using an Access or oAuth Key."
|
|
53774
53813
|
});
|
|
53775
53814
|
}
|
|
53776
53815
|
}
|
|
53777
|
-
_canHaveGlobalFields(options) {
|
|
53778
|
-
const security = options.security;
|
|
53779
|
-
if (!security) {
|
|
53780
|
-
return false;
|
|
53781
|
-
}
|
|
53782
|
-
const securityObj = typeof security === "function" ? security() : security;
|
|
53783
|
-
if (securityObj instanceof Promise) {
|
|
53784
|
-
return false;
|
|
53785
|
-
}
|
|
53786
|
-
const token = securityObj.apiKey || securityObj.oAuth;
|
|
53787
|
-
return !!token && token.startsWith("access_");
|
|
53788
|
-
}
|
|
53789
|
-
_hasGlobalFields(options) {
|
|
53790
|
-
return !!options.testmode || !!options.profileId;
|
|
53791
|
-
}
|
|
53792
53816
|
_createRequest(context, conf, options) {
|
|
53793
53817
|
const { method, path, query, headers: opHeaders, security } = conf;
|
|
53794
53818
|
const base = conf.baseURL ?? this._baseURL;
|
|
53795
53819
|
if (!base) {
|
|
53796
53820
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
53797
53821
|
}
|
|
53798
|
-
const
|
|
53799
|
-
|
|
53822
|
+
const baseURL = new URL(base);
|
|
53823
|
+
let reqURL;
|
|
53800
53824
|
if (path) {
|
|
53801
|
-
|
|
53802
|
-
reqURL
|
|
53825
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
53826
|
+
reqURL = new URL(path, baseURL);
|
|
53827
|
+
} else {
|
|
53828
|
+
reqURL = baseURL;
|
|
53803
53829
|
}
|
|
53830
|
+
reqURL.hash = "";
|
|
53804
53831
|
let finalQuery = query || "";
|
|
53805
53832
|
const secQuery = [];
|
|
53806
53833
|
for (const [k2, v2] of Object.entries(security?.queryParams || {})) {
|
|
@@ -68640,7 +68667,7 @@ async function $do4(client, request, options) {
|
|
|
68640
68667
|
}
|
|
68641
68668
|
const payload = parsed.value;
|
|
68642
68669
|
const body = null;
|
|
68643
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
68670
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/balances")();
|
|
68644
68671
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
68645
68672
|
currency: payload?.currency,
|
|
68646
68673
|
from: payload?.from,
|
|
@@ -68675,7 +68702,7 @@ async function $do4(client, request, options) {
|
|
|
68675
68702
|
const requestRes = client._createRequest(context, {
|
|
68676
68703
|
security: requestSecurity,
|
|
68677
68704
|
method: "GET",
|
|
68678
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
68705
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
68679
68706
|
path,
|
|
68680
68707
|
headers,
|
|
68681
68708
|
query,
|
|
@@ -68718,10 +68745,10 @@ async function $do4(client, request, options) {
|
|
|
68718
68745
|
if (typeof nextURL !== "string") {
|
|
68719
68746
|
return { next: () => null };
|
|
68720
68747
|
}
|
|
68721
|
-
if (nextURL.startsWith("/")) {
|
|
68722
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
68723
|
-
}
|
|
68724
68748
|
try {
|
|
68749
|
+
if (nextURL.startsWith("/")) {
|
|
68750
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
68751
|
+
}
|
|
68725
68752
|
new URL(nextURL);
|
|
68726
68753
|
} catch (_error) {
|
|
68727
68754
|
return { next: () => null };
|
|
@@ -68799,7 +68826,7 @@ async function $do5(client, request, options) {
|
|
|
68799
68826
|
charEncoding: "percent"
|
|
68800
68827
|
})
|
|
68801
68828
|
};
|
|
68802
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
68829
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/balances/{balanceId}/transactions")(pathParams);
|
|
68803
68830
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
68804
68831
|
from: payload.from,
|
|
68805
68832
|
limit: payload.limit,
|
|
@@ -68833,7 +68860,7 @@ async function $do5(client, request, options) {
|
|
|
68833
68860
|
const requestRes = client._createRequest(context, {
|
|
68834
68861
|
security: requestSecurity,
|
|
68835
68862
|
method: "GET",
|
|
68836
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
68863
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
68837
68864
|
path,
|
|
68838
68865
|
headers,
|
|
68839
68866
|
query,
|
|
@@ -68876,10 +68903,10 @@ async function $do5(client, request, options) {
|
|
|
68876
68903
|
if (typeof nextURL !== "string") {
|
|
68877
68904
|
return { next: () => null };
|
|
68878
68905
|
}
|
|
68879
|
-
if (nextURL.startsWith("/")) {
|
|
68880
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
68881
|
-
}
|
|
68882
68906
|
try {
|
|
68907
|
+
if (nextURL.startsWith("/")) {
|
|
68908
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
68909
|
+
}
|
|
68883
68910
|
new URL(nextURL);
|
|
68884
68911
|
} catch (_error) {
|
|
68885
68912
|
return { next: () => null };
|
|
@@ -69203,7 +69230,7 @@ async function $do8(client, request, options) {
|
|
|
69203
69230
|
}
|
|
69204
69231
|
const payload = parsed.value;
|
|
69205
69232
|
const body = null;
|
|
69206
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69233
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/connect/balance-transfers")();
|
|
69207
69234
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69208
69235
|
from: payload?.from,
|
|
69209
69236
|
limit: payload?.limit,
|
|
@@ -69238,7 +69265,7 @@ async function $do8(client, request, options) {
|
|
|
69238
69265
|
const requestRes = client._createRequest(context, {
|
|
69239
69266
|
security: requestSecurity,
|
|
69240
69267
|
method: "GET",
|
|
69241
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69268
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69242
69269
|
path,
|
|
69243
69270
|
headers,
|
|
69244
69271
|
query,
|
|
@@ -69281,10 +69308,10 @@ async function $do8(client, request, options) {
|
|
|
69281
69308
|
if (typeof nextURL !== "string") {
|
|
69282
69309
|
return { next: () => null };
|
|
69283
69310
|
}
|
|
69284
|
-
if (nextURL.startsWith("/")) {
|
|
69285
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69286
|
-
}
|
|
69287
69311
|
try {
|
|
69312
|
+
if (nextURL.startsWith("/")) {
|
|
69313
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
69314
|
+
}
|
|
69288
69315
|
new URL(nextURL);
|
|
69289
69316
|
} catch (_error) {
|
|
69290
69317
|
return { next: () => null };
|
|
@@ -69746,7 +69773,7 @@ async function $do12(client, request, options) {
|
|
|
69746
69773
|
charEncoding: "percent"
|
|
69747
69774
|
})
|
|
69748
69775
|
};
|
|
69749
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69776
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/captures")(pathParams);
|
|
69750
69777
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69751
69778
|
embed: payload.embed,
|
|
69752
69779
|
from: payload.from,
|
|
@@ -69781,7 +69808,7 @@ async function $do12(client, request, options) {
|
|
|
69781
69808
|
const requestRes = client._createRequest(context, {
|
|
69782
69809
|
security: requestSecurity,
|
|
69783
69810
|
method: "GET",
|
|
69784
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69811
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69785
69812
|
path,
|
|
69786
69813
|
headers,
|
|
69787
69814
|
query,
|
|
@@ -69824,10 +69851,10 @@ async function $do12(client, request, options) {
|
|
|
69824
69851
|
if (typeof nextURL !== "string") {
|
|
69825
69852
|
return { next: () => null };
|
|
69826
69853
|
}
|
|
69827
|
-
if (nextURL.startsWith("/")) {
|
|
69828
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69829
|
-
}
|
|
69830
69854
|
try {
|
|
69855
|
+
if (nextURL.startsWith("/")) {
|
|
69856
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
69857
|
+
}
|
|
69831
69858
|
new URL(nextURL);
|
|
69832
69859
|
} catch (_error) {
|
|
69833
69860
|
return { next: () => null };
|
|
@@ -69899,7 +69926,7 @@ async function $do13(client, request, options) {
|
|
|
69899
69926
|
}
|
|
69900
69927
|
const payload = parsed.value;
|
|
69901
69928
|
const body = null;
|
|
69902
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
69929
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/chargebacks")();
|
|
69903
69930
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
69904
69931
|
embed: payload?.embed,
|
|
69905
69932
|
from: payload?.from,
|
|
@@ -69936,7 +69963,7 @@ async function $do13(client, request, options) {
|
|
|
69936
69963
|
const requestRes = client._createRequest(context, {
|
|
69937
69964
|
security: requestSecurity,
|
|
69938
69965
|
method: "GET",
|
|
69939
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
69966
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
69940
69967
|
path,
|
|
69941
69968
|
headers,
|
|
69942
69969
|
query,
|
|
@@ -69979,10 +70006,10 @@ async function $do13(client, request, options) {
|
|
|
69979
70006
|
if (typeof nextURL !== "string") {
|
|
69980
70007
|
return { next: () => null };
|
|
69981
70008
|
}
|
|
69982
|
-
if (nextURL.startsWith("/")) {
|
|
69983
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
69984
|
-
}
|
|
69985
70009
|
try {
|
|
70010
|
+
if (nextURL.startsWith("/")) {
|
|
70011
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70012
|
+
}
|
|
69986
70013
|
new URL(nextURL);
|
|
69987
70014
|
} catch (_error) {
|
|
69988
70015
|
return { next: () => null };
|
|
@@ -70191,7 +70218,7 @@ async function $do15(client, request, options) {
|
|
|
70191
70218
|
charEncoding: "percent"
|
|
70192
70219
|
})
|
|
70193
70220
|
};
|
|
70194
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
70221
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
|
|
70195
70222
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
70196
70223
|
embed: payload.embed,
|
|
70197
70224
|
from: payload.from,
|
|
@@ -70226,7 +70253,7 @@ async function $do15(client, request, options) {
|
|
|
70226
70253
|
const requestRes = client._createRequest(context, {
|
|
70227
70254
|
security: requestSecurity,
|
|
70228
70255
|
method: "GET",
|
|
70229
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
70256
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
70230
70257
|
path,
|
|
70231
70258
|
headers,
|
|
70232
70259
|
query,
|
|
@@ -70269,10 +70296,10 @@ async function $do15(client, request, options) {
|
|
|
70269
70296
|
if (typeof nextURL !== "string") {
|
|
70270
70297
|
return { next: () => null };
|
|
70271
70298
|
}
|
|
70272
|
-
if (nextURL.startsWith("/")) {
|
|
70273
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
70274
|
-
}
|
|
70275
70299
|
try {
|
|
70300
|
+
if (nextURL.startsWith("/")) {
|
|
70301
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70302
|
+
}
|
|
70276
70303
|
new URL(nextURL);
|
|
70277
70304
|
} catch (_error) {
|
|
70278
70305
|
return { next: () => null };
|
|
@@ -70640,7 +70667,7 @@ async function $do18(client, request, options) {
|
|
|
70640
70667
|
}
|
|
70641
70668
|
const payload = parsed.value;
|
|
70642
70669
|
const body = null;
|
|
70643
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
70670
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/clients")();
|
|
70644
70671
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
70645
70672
|
embed: payload?.embed,
|
|
70646
70673
|
from: payload?.from,
|
|
@@ -70674,7 +70701,7 @@ async function $do18(client, request, options) {
|
|
|
70674
70701
|
const requestRes = client._createRequest(context, {
|
|
70675
70702
|
security: requestSecurity,
|
|
70676
70703
|
method: "GET",
|
|
70677
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
70704
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
70678
70705
|
path,
|
|
70679
70706
|
headers,
|
|
70680
70707
|
query,
|
|
@@ -70717,10 +70744,10 @@ async function $do18(client, request, options) {
|
|
|
70717
70744
|
if (typeof nextURL !== "string") {
|
|
70718
70745
|
return { next: () => null };
|
|
70719
70746
|
}
|
|
70720
|
-
if (nextURL.startsWith("/")) {
|
|
70721
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
70722
|
-
}
|
|
70723
70747
|
try {
|
|
70748
|
+
if (nextURL.startsWith("/")) {
|
|
70749
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
70750
|
+
}
|
|
70724
70751
|
new URL(nextURL);
|
|
70725
70752
|
} catch (_error) {
|
|
70726
70753
|
return { next: () => null };
|
|
@@ -71297,7 +71324,7 @@ async function $do23(client, request, options) {
|
|
|
71297
71324
|
}
|
|
71298
71325
|
const payload = parsed.value;
|
|
71299
71326
|
const body = null;
|
|
71300
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
71327
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers")();
|
|
71301
71328
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
71302
71329
|
from: payload?.from,
|
|
71303
71330
|
limit: payload?.limit,
|
|
@@ -71332,7 +71359,7 @@ async function $do23(client, request, options) {
|
|
|
71332
71359
|
const requestRes = client._createRequest(context, {
|
|
71333
71360
|
security: requestSecurity,
|
|
71334
71361
|
method: "GET",
|
|
71335
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
71362
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
71336
71363
|
path,
|
|
71337
71364
|
headers,
|
|
71338
71365
|
query,
|
|
@@ -71375,10 +71402,10 @@ async function $do23(client, request, options) {
|
|
|
71375
71402
|
if (typeof nextURL !== "string") {
|
|
71376
71403
|
return { next: () => null };
|
|
71377
71404
|
}
|
|
71378
|
-
if (nextURL.startsWith("/")) {
|
|
71379
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
71380
|
-
}
|
|
71381
71405
|
try {
|
|
71406
|
+
if (nextURL.startsWith("/")) {
|
|
71407
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
71408
|
+
}
|
|
71382
71409
|
new URL(nextURL);
|
|
71383
71410
|
} catch (_error) {
|
|
71384
71411
|
return { next: () => null };
|
|
@@ -71456,7 +71483,7 @@ async function $do24(client, request, options) {
|
|
|
71456
71483
|
charEncoding: "percent"
|
|
71457
71484
|
})
|
|
71458
71485
|
};
|
|
71459
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
71486
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/payments")(pathParams);
|
|
71460
71487
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
71461
71488
|
from: payload.from,
|
|
71462
71489
|
limit: payload.limit,
|
|
@@ -71492,7 +71519,7 @@ async function $do24(client, request, options) {
|
|
|
71492
71519
|
const requestRes = client._createRequest(context, {
|
|
71493
71520
|
security: requestSecurity,
|
|
71494
71521
|
method: "GET",
|
|
71495
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
71522
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
71496
71523
|
path,
|
|
71497
71524
|
headers,
|
|
71498
71525
|
query,
|
|
@@ -71535,10 +71562,10 @@ async function $do24(client, request, options) {
|
|
|
71535
71562
|
if (typeof nextURL !== "string") {
|
|
71536
71563
|
return { next: () => null };
|
|
71537
71564
|
}
|
|
71538
|
-
if (nextURL.startsWith("/")) {
|
|
71539
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
71540
|
-
}
|
|
71541
71565
|
try {
|
|
71566
|
+
if (nextURL.startsWith("/")) {
|
|
71567
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
71568
|
+
}
|
|
71542
71569
|
new URL(nextURL);
|
|
71543
71570
|
} catch (_error) {
|
|
71544
71571
|
return { next: () => null };
|
|
@@ -72235,7 +72262,7 @@ async function $do30(client, request, options) {
|
|
|
72235
72262
|
}
|
|
72236
72263
|
const payload = parsed.value;
|
|
72237
72264
|
const body = null;
|
|
72238
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
72265
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/invoices")();
|
|
72239
72266
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
72240
72267
|
from: payload?.from,
|
|
72241
72268
|
limit: payload?.limit,
|
|
@@ -72271,7 +72298,7 @@ async function $do30(client, request, options) {
|
|
|
72271
72298
|
const requestRes = client._createRequest(context, {
|
|
72272
72299
|
security: requestSecurity,
|
|
72273
72300
|
method: "GET",
|
|
72274
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
72301
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
72275
72302
|
path,
|
|
72276
72303
|
headers,
|
|
72277
72304
|
query,
|
|
@@ -72314,10 +72341,10 @@ async function $do30(client, request, options) {
|
|
|
72314
72341
|
if (typeof nextURL !== "string") {
|
|
72315
72342
|
return { next: () => null };
|
|
72316
72343
|
}
|
|
72317
|
-
if (nextURL.startsWith("/")) {
|
|
72318
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
72319
|
-
}
|
|
72320
72344
|
try {
|
|
72345
|
+
if (nextURL.startsWith("/")) {
|
|
72346
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
72347
|
+
}
|
|
72321
72348
|
new URL(nextURL);
|
|
72322
72349
|
} catch (_error) {
|
|
72323
72350
|
return { next: () => null };
|
|
@@ -72656,7 +72683,7 @@ async function $do33(client, request, options) {
|
|
|
72656
72683
|
charEncoding: "percent"
|
|
72657
72684
|
})
|
|
72658
72685
|
};
|
|
72659
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
72686
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/mandates")(pathParams);
|
|
72660
72687
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
72661
72688
|
from: payload.from,
|
|
72662
72689
|
limit: payload.limit,
|
|
@@ -72691,7 +72718,7 @@ async function $do33(client, request, options) {
|
|
|
72691
72718
|
const requestRes = client._createRequest(context, {
|
|
72692
72719
|
security: requestSecurity,
|
|
72693
72720
|
method: "GET",
|
|
72694
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
72721
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
72695
72722
|
path,
|
|
72696
72723
|
headers,
|
|
72697
72724
|
query,
|
|
@@ -72734,10 +72761,10 @@ async function $do33(client, request, options) {
|
|
|
72734
72761
|
if (typeof nextURL !== "string") {
|
|
72735
72762
|
return { next: () => null };
|
|
72736
72763
|
}
|
|
72737
|
-
if (nextURL.startsWith("/")) {
|
|
72738
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
72739
|
-
}
|
|
72740
72764
|
try {
|
|
72765
|
+
if (nextURL.startsWith("/")) {
|
|
72766
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
72767
|
+
}
|
|
72741
72768
|
new URL(nextURL);
|
|
72742
72769
|
} catch (_error) {
|
|
72743
72770
|
return { next: () => null };
|
|
@@ -74303,7 +74330,7 @@ async function $do46(client, request, options) {
|
|
|
74303
74330
|
}
|
|
74304
74331
|
const payload = parsed.value;
|
|
74305
74332
|
const body = null;
|
|
74306
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
74333
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payment-links")();
|
|
74307
74334
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
74308
74335
|
from: payload?.from,
|
|
74309
74336
|
limit: payload?.limit,
|
|
@@ -74337,7 +74364,7 @@ async function $do46(client, request, options) {
|
|
|
74337
74364
|
const requestRes = client._createRequest(context, {
|
|
74338
74365
|
security: requestSecurity,
|
|
74339
74366
|
method: "GET",
|
|
74340
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
74367
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
74341
74368
|
path,
|
|
74342
74369
|
headers,
|
|
74343
74370
|
query,
|
|
@@ -74380,10 +74407,10 @@ async function $do46(client, request, options) {
|
|
|
74380
74407
|
if (typeof nextURL !== "string") {
|
|
74381
74408
|
return { next: () => null };
|
|
74382
74409
|
}
|
|
74383
|
-
if (nextURL.startsWith("/")) {
|
|
74384
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
74385
|
-
}
|
|
74386
74410
|
try {
|
|
74411
|
+
if (nextURL.startsWith("/")) {
|
|
74412
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
74413
|
+
}
|
|
74387
74414
|
new URL(nextURL);
|
|
74388
74415
|
} catch (_error) {
|
|
74389
74416
|
return { next: () => null };
|
|
@@ -74461,7 +74488,7 @@ async function $do47(client, request, options) {
|
|
|
74461
74488
|
charEncoding: "percent"
|
|
74462
74489
|
})
|
|
74463
74490
|
};
|
|
74464
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
74491
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
|
|
74465
74492
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
74466
74493
|
from: payload.from,
|
|
74467
74494
|
limit: payload.limit,
|
|
@@ -74496,7 +74523,7 @@ async function $do47(client, request, options) {
|
|
|
74496
74523
|
const requestRes = client._createRequest(context, {
|
|
74497
74524
|
security: requestSecurity,
|
|
74498
74525
|
method: "GET",
|
|
74499
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
74526
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
74500
74527
|
path,
|
|
74501
74528
|
headers,
|
|
74502
74529
|
query,
|
|
@@ -74539,10 +74566,10 @@ async function $do47(client, request, options) {
|
|
|
74539
74566
|
if (typeof nextURL !== "string") {
|
|
74540
74567
|
return { next: () => null };
|
|
74541
74568
|
}
|
|
74542
|
-
if (nextURL.startsWith("/")) {
|
|
74543
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
74544
|
-
}
|
|
74545
74569
|
try {
|
|
74570
|
+
if (nextURL.startsWith("/")) {
|
|
74571
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
74572
|
+
}
|
|
74546
74573
|
new URL(nextURL);
|
|
74547
74574
|
} catch (_error) {
|
|
74548
74575
|
return { next: () => null };
|
|
@@ -75129,7 +75156,7 @@ async function $do52(client, request, options) {
|
|
|
75129
75156
|
}
|
|
75130
75157
|
const payload = parsed.value;
|
|
75131
75158
|
const body = null;
|
|
75132
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
75159
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments")();
|
|
75133
75160
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
75134
75161
|
from: payload?.from,
|
|
75135
75162
|
limit: payload?.limit,
|
|
@@ -75165,7 +75192,7 @@ async function $do52(client, request, options) {
|
|
|
75165
75192
|
const requestRes = client._createRequest(context, {
|
|
75166
75193
|
security: requestSecurity,
|
|
75167
75194
|
method: "GET",
|
|
75168
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
75195
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
75169
75196
|
path,
|
|
75170
75197
|
headers,
|
|
75171
75198
|
query,
|
|
@@ -75208,10 +75235,10 @@ async function $do52(client, request, options) {
|
|
|
75208
75235
|
if (typeof nextURL !== "string") {
|
|
75209
75236
|
return { next: () => null };
|
|
75210
75237
|
}
|
|
75211
|
-
if (nextURL.startsWith("/")) {
|
|
75212
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
75213
|
-
}
|
|
75214
75238
|
try {
|
|
75239
|
+
if (nextURL.startsWith("/")) {
|
|
75240
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
75241
|
+
}
|
|
75215
75242
|
new URL(nextURL);
|
|
75216
75243
|
} catch (_error) {
|
|
75217
75244
|
return { next: () => null };
|
|
@@ -76259,7 +76286,7 @@ async function $do61(client, request, options) {
|
|
|
76259
76286
|
}
|
|
76260
76287
|
const payload = parsed.value;
|
|
76261
76288
|
const body = null;
|
|
76262
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
76289
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/profiles")();
|
|
76263
76290
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
76264
76291
|
from: payload?.from,
|
|
76265
76292
|
limit: payload?.limit
|
|
@@ -76292,7 +76319,7 @@ async function $do61(client, request, options) {
|
|
|
76292
76319
|
const requestRes = client._createRequest(context, {
|
|
76293
76320
|
security: requestSecurity,
|
|
76294
76321
|
method: "GET",
|
|
76295
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
76322
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
76296
76323
|
path,
|
|
76297
76324
|
headers,
|
|
76298
76325
|
query,
|
|
@@ -76335,10 +76362,10 @@ async function $do61(client, request, options) {
|
|
|
76335
76362
|
if (typeof nextURL !== "string") {
|
|
76336
76363
|
return { next: () => null };
|
|
76337
76364
|
}
|
|
76338
|
-
if (nextURL.startsWith("/")) {
|
|
76339
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
76340
|
-
}
|
|
76341
76365
|
try {
|
|
76366
|
+
if (nextURL.startsWith("/")) {
|
|
76367
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
76368
|
+
}
|
|
76342
76369
|
new URL(nextURL);
|
|
76343
76370
|
} catch (_error) {
|
|
76344
76371
|
return { next: () => null };
|
|
@@ -76536,7 +76563,7 @@ async function $do63(client, request, options) {
|
|
|
76536
76563
|
}
|
|
76537
76564
|
const payload = parsed.value;
|
|
76538
76565
|
const body = null;
|
|
76539
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
76566
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/refunds")();
|
|
76540
76567
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
76541
76568
|
embed: payload?.embed,
|
|
76542
76569
|
from: payload?.from,
|
|
@@ -76573,7 +76600,7 @@ async function $do63(client, request, options) {
|
|
|
76573
76600
|
const requestRes = client._createRequest(context, {
|
|
76574
76601
|
security: requestSecurity,
|
|
76575
76602
|
method: "GET",
|
|
76576
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
76603
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
76577
76604
|
path,
|
|
76578
76605
|
headers,
|
|
76579
76606
|
query,
|
|
@@ -76616,10 +76643,10 @@ async function $do63(client, request, options) {
|
|
|
76616
76643
|
if (typeof nextURL !== "string") {
|
|
76617
76644
|
return { next: () => null };
|
|
76618
76645
|
}
|
|
76619
|
-
if (nextURL.startsWith("/")) {
|
|
76620
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
76621
|
-
}
|
|
76622
76646
|
try {
|
|
76647
|
+
if (nextURL.startsWith("/")) {
|
|
76648
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
76649
|
+
}
|
|
76623
76650
|
new URL(nextURL);
|
|
76624
76651
|
} catch (_error) {
|
|
76625
76652
|
return { next: () => null };
|
|
@@ -77083,7 +77110,7 @@ async function $do67(client, request, options) {
|
|
|
77083
77110
|
charEncoding: "percent"
|
|
77084
77111
|
})
|
|
77085
77112
|
};
|
|
77086
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
77113
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/payments/{paymentId}/refunds")(pathParams);
|
|
77087
77114
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
77088
77115
|
embed: payload.embed,
|
|
77089
77116
|
from: payload.from,
|
|
@@ -77118,7 +77145,7 @@ async function $do67(client, request, options) {
|
|
|
77118
77145
|
const requestRes = client._createRequest(context, {
|
|
77119
77146
|
security: requestSecurity,
|
|
77120
77147
|
method: "GET",
|
|
77121
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
77148
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
77122
77149
|
path,
|
|
77123
77150
|
headers,
|
|
77124
77151
|
query,
|
|
@@ -77161,10 +77188,10 @@ async function $do67(client, request, options) {
|
|
|
77161
77188
|
if (typeof nextURL !== "string") {
|
|
77162
77189
|
return { next: () => null };
|
|
77163
77190
|
}
|
|
77164
|
-
if (nextURL.startsWith("/")) {
|
|
77165
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
77166
|
-
}
|
|
77167
77191
|
try {
|
|
77192
|
+
if (nextURL.startsWith("/")) {
|
|
77193
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
77194
|
+
}
|
|
77168
77195
|
new URL(nextURL);
|
|
77169
77196
|
} catch (_error) {
|
|
77170
77197
|
return { next: () => null };
|
|
@@ -77616,7 +77643,7 @@ async function $do71(client, request, options) {
|
|
|
77616
77643
|
}
|
|
77617
77644
|
const payload = parsed.value;
|
|
77618
77645
|
const body = null;
|
|
77619
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
77646
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/sales-invoices")();
|
|
77620
77647
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
77621
77648
|
from: payload?.from,
|
|
77622
77649
|
limit: payload?.limit,
|
|
@@ -77650,7 +77677,7 @@ async function $do71(client, request, options) {
|
|
|
77650
77677
|
const requestRes = client._createRequest(context, {
|
|
77651
77678
|
security: requestSecurity,
|
|
77652
77679
|
method: "GET",
|
|
77653
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
77680
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
77654
77681
|
path,
|
|
77655
77682
|
headers,
|
|
77656
77683
|
query,
|
|
@@ -77693,10 +77720,10 @@ async function $do71(client, request, options) {
|
|
|
77693
77720
|
if (typeof nextURL !== "string") {
|
|
77694
77721
|
return { next: () => null };
|
|
77695
77722
|
}
|
|
77696
|
-
if (nextURL.startsWith("/")) {
|
|
77697
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
77698
|
-
}
|
|
77699
77723
|
try {
|
|
77724
|
+
if (nextURL.startsWith("/")) {
|
|
77725
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
77726
|
+
}
|
|
77700
77727
|
new URL(nextURL);
|
|
77701
77728
|
} catch (_error) {
|
|
77702
77729
|
return { next: () => null };
|
|
@@ -78510,7 +78537,7 @@ async function $do78(client, request, options) {
|
|
|
78510
78537
|
}
|
|
78511
78538
|
const payload = parsed.value;
|
|
78512
78539
|
const body = null;
|
|
78513
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78540
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements")();
|
|
78514
78541
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78515
78542
|
balanceId: payload?.balanceId,
|
|
78516
78543
|
currencies: payload?.currencies,
|
|
@@ -78547,7 +78574,7 @@ async function $do78(client, request, options) {
|
|
|
78547
78574
|
const requestRes = client._createRequest(context, {
|
|
78548
78575
|
security: requestSecurity,
|
|
78549
78576
|
method: "GET",
|
|
78550
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78577
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78551
78578
|
path,
|
|
78552
78579
|
headers,
|
|
78553
78580
|
query,
|
|
@@ -78590,10 +78617,10 @@ async function $do78(client, request, options) {
|
|
|
78590
78617
|
if (typeof nextURL !== "string") {
|
|
78591
78618
|
return { next: () => null };
|
|
78592
78619
|
}
|
|
78593
|
-
if (nextURL.startsWith("/")) {
|
|
78594
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78595
|
-
}
|
|
78596
78620
|
try {
|
|
78621
|
+
if (nextURL.startsWith("/")) {
|
|
78622
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78623
|
+
}
|
|
78597
78624
|
new URL(nextURL);
|
|
78598
78625
|
} catch (_error) {
|
|
78599
78626
|
return { next: () => null };
|
|
@@ -78671,7 +78698,7 @@ async function $do79(client, request, options) {
|
|
|
78671
78698
|
charEncoding: "percent"
|
|
78672
78699
|
})
|
|
78673
78700
|
};
|
|
78674
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78701
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/captures")(pathParams);
|
|
78675
78702
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78676
78703
|
embed: payload.embed,
|
|
78677
78704
|
from: payload.from,
|
|
@@ -78706,7 +78733,7 @@ async function $do79(client, request, options) {
|
|
|
78706
78733
|
const requestRes = client._createRequest(context, {
|
|
78707
78734
|
security: requestSecurity,
|
|
78708
78735
|
method: "GET",
|
|
78709
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78736
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78710
78737
|
path,
|
|
78711
78738
|
headers,
|
|
78712
78739
|
query,
|
|
@@ -78749,10 +78776,10 @@ async function $do79(client, request, options) {
|
|
|
78749
78776
|
if (typeof nextURL !== "string") {
|
|
78750
78777
|
return { next: () => null };
|
|
78751
78778
|
}
|
|
78752
|
-
if (nextURL.startsWith("/")) {
|
|
78753
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78754
|
-
}
|
|
78755
78779
|
try {
|
|
78780
|
+
if (nextURL.startsWith("/")) {
|
|
78781
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78782
|
+
}
|
|
78756
78783
|
new URL(nextURL);
|
|
78757
78784
|
} catch (_error) {
|
|
78758
78785
|
return { next: () => null };
|
|
@@ -78830,7 +78857,7 @@ async function $do80(client, request, options) {
|
|
|
78830
78857
|
charEncoding: "percent"
|
|
78831
78858
|
})
|
|
78832
78859
|
};
|
|
78833
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
78860
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/chargebacks")(pathParams);
|
|
78834
78861
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78835
78862
|
embed: payload.embed,
|
|
78836
78863
|
from: payload.from,
|
|
@@ -78865,7 +78892,7 @@ async function $do80(client, request, options) {
|
|
|
78865
78892
|
const requestRes = client._createRequest(context, {
|
|
78866
78893
|
security: requestSecurity,
|
|
78867
78894
|
method: "GET",
|
|
78868
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
78895
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
78869
78896
|
path,
|
|
78870
78897
|
headers,
|
|
78871
78898
|
query,
|
|
@@ -78908,10 +78935,10 @@ async function $do80(client, request, options) {
|
|
|
78908
78935
|
if (typeof nextURL !== "string") {
|
|
78909
78936
|
return { next: () => null };
|
|
78910
78937
|
}
|
|
78911
|
-
if (nextURL.startsWith("/")) {
|
|
78912
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
78913
|
-
}
|
|
78914
78938
|
try {
|
|
78939
|
+
if (nextURL.startsWith("/")) {
|
|
78940
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
78941
|
+
}
|
|
78915
78942
|
new URL(nextURL);
|
|
78916
78943
|
} catch (_error) {
|
|
78917
78944
|
return { next: () => null };
|
|
@@ -78989,7 +79016,7 @@ async function $do81(client, request, options) {
|
|
|
78989
79016
|
charEncoding: "percent"
|
|
78990
79017
|
})
|
|
78991
79018
|
};
|
|
78992
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79019
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/payments")(pathParams);
|
|
78993
79020
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
78994
79021
|
from: payload.from,
|
|
78995
79022
|
limit: payload.limit,
|
|
@@ -79025,7 +79052,7 @@ async function $do81(client, request, options) {
|
|
|
79025
79052
|
const requestRes = client._createRequest(context, {
|
|
79026
79053
|
security: requestSecurity,
|
|
79027
79054
|
method: "GET",
|
|
79028
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79055
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79029
79056
|
path,
|
|
79030
79057
|
headers,
|
|
79031
79058
|
query,
|
|
@@ -79068,10 +79095,10 @@ async function $do81(client, request, options) {
|
|
|
79068
79095
|
if (typeof nextURL !== "string") {
|
|
79069
79096
|
return { next: () => null };
|
|
79070
79097
|
}
|
|
79071
|
-
if (nextURL.startsWith("/")) {
|
|
79072
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79073
|
-
}
|
|
79074
79098
|
try {
|
|
79099
|
+
if (nextURL.startsWith("/")) {
|
|
79100
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79101
|
+
}
|
|
79075
79102
|
new URL(nextURL);
|
|
79076
79103
|
} catch (_error) {
|
|
79077
79104
|
return { next: () => null };
|
|
@@ -79152,7 +79179,7 @@ async function $do82(client, request, options) {
|
|
|
79152
79179
|
charEncoding: "percent"
|
|
79153
79180
|
})
|
|
79154
79181
|
};
|
|
79155
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79182
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/settlements/{settlementId}/refunds")(pathParams);
|
|
79156
79183
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79157
79184
|
embed: payload.embed,
|
|
79158
79185
|
from: payload.from,
|
|
@@ -79187,7 +79214,7 @@ async function $do82(client, request, options) {
|
|
|
79187
79214
|
const requestRes = client._createRequest(context, {
|
|
79188
79215
|
security: requestSecurity,
|
|
79189
79216
|
method: "GET",
|
|
79190
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79217
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79191
79218
|
path,
|
|
79192
79219
|
headers,
|
|
79193
79220
|
query,
|
|
@@ -79230,10 +79257,10 @@ async function $do82(client, request, options) {
|
|
|
79230
79257
|
if (typeof nextURL !== "string") {
|
|
79231
79258
|
return { next: () => null };
|
|
79232
79259
|
}
|
|
79233
|
-
if (nextURL.startsWith("/")) {
|
|
79234
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79235
|
-
}
|
|
79236
79260
|
try {
|
|
79261
|
+
if (nextURL.startsWith("/")) {
|
|
79262
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79263
|
+
}
|
|
79237
79264
|
new URL(nextURL);
|
|
79238
79265
|
} catch (_error) {
|
|
79239
79266
|
return { next: () => null };
|
|
@@ -79305,7 +79332,7 @@ async function $do83(client, request, options) {
|
|
|
79305
79332
|
}
|
|
79306
79333
|
const payload = parsed.value;
|
|
79307
79334
|
const body = null;
|
|
79308
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79335
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/subscriptions")();
|
|
79309
79336
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79310
79337
|
from: payload?.from,
|
|
79311
79338
|
limit: payload?.limit,
|
|
@@ -79340,7 +79367,7 @@ async function $do83(client, request, options) {
|
|
|
79340
79367
|
const requestRes = client._createRequest(context, {
|
|
79341
79368
|
security: requestSecurity,
|
|
79342
79369
|
method: "GET",
|
|
79343
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79370
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79344
79371
|
path,
|
|
79345
79372
|
headers,
|
|
79346
79373
|
query,
|
|
@@ -79383,10 +79410,10 @@ async function $do83(client, request, options) {
|
|
|
79383
79410
|
if (typeof nextURL !== "string") {
|
|
79384
79411
|
return { next: () => null };
|
|
79385
79412
|
}
|
|
79386
|
-
if (nextURL.startsWith("/")) {
|
|
79387
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79388
|
-
}
|
|
79389
79413
|
try {
|
|
79414
|
+
if (nextURL.startsWith("/")) {
|
|
79415
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79416
|
+
}
|
|
79390
79417
|
new URL(nextURL);
|
|
79391
79418
|
} catch (_error) {
|
|
79392
79419
|
return { next: () => null };
|
|
@@ -79864,7 +79891,7 @@ async function $do87(client, request, options) {
|
|
|
79864
79891
|
charEncoding: "percent"
|
|
79865
79892
|
})
|
|
79866
79893
|
};
|
|
79867
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
79894
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/subscriptions")(pathParams);
|
|
79868
79895
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
79869
79896
|
from: payload.from,
|
|
79870
79897
|
limit: payload.limit,
|
|
@@ -79899,7 +79926,7 @@ async function $do87(client, request, options) {
|
|
|
79899
79926
|
const requestRes = client._createRequest(context, {
|
|
79900
79927
|
security: requestSecurity,
|
|
79901
79928
|
method: "GET",
|
|
79902
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
79929
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
79903
79930
|
path,
|
|
79904
79931
|
headers,
|
|
79905
79932
|
query,
|
|
@@ -79942,10 +79969,10 @@ async function $do87(client, request, options) {
|
|
|
79942
79969
|
if (typeof nextURL !== "string") {
|
|
79943
79970
|
return { next: () => null };
|
|
79944
79971
|
}
|
|
79945
|
-
if (nextURL.startsWith("/")) {
|
|
79946
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
79947
|
-
}
|
|
79948
79972
|
try {
|
|
79973
|
+
if (nextURL.startsWith("/")) {
|
|
79974
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
79975
|
+
}
|
|
79949
79976
|
new URL(nextURL);
|
|
79950
79977
|
} catch (_error) {
|
|
79951
79978
|
return { next: () => null };
|
|
@@ -80027,7 +80054,7 @@ async function $do88(client, request, options) {
|
|
|
80027
80054
|
charEncoding: "percent"
|
|
80028
80055
|
})
|
|
80029
80056
|
};
|
|
80030
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
80057
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/customers/{customerId}/subscriptions/{subscriptionId}/payments")(pathParams);
|
|
80031
80058
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
80032
80059
|
from: payload.from,
|
|
80033
80060
|
limit: payload.limit,
|
|
@@ -80063,7 +80090,7 @@ async function $do88(client, request, options) {
|
|
|
80063
80090
|
const requestRes = client._createRequest(context, {
|
|
80064
80091
|
security: requestSecurity,
|
|
80065
80092
|
method: "GET",
|
|
80066
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
80093
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
80067
80094
|
path,
|
|
80068
80095
|
headers,
|
|
80069
80096
|
query,
|
|
@@ -80106,10 +80133,10 @@ async function $do88(client, request, options) {
|
|
|
80106
80133
|
if (typeof nextURL !== "string") {
|
|
80107
80134
|
return { next: () => null };
|
|
80108
80135
|
}
|
|
80109
|
-
if (nextURL.startsWith("/")) {
|
|
80110
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
80111
|
-
}
|
|
80112
80136
|
try {
|
|
80137
|
+
if (nextURL.startsWith("/")) {
|
|
80138
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
80139
|
+
}
|
|
80113
80140
|
new URL(nextURL);
|
|
80114
80141
|
} catch (_error) {
|
|
80115
80142
|
return { next: () => null };
|
|
@@ -80438,7 +80465,7 @@ async function $do91(client, request, options) {
|
|
|
80438
80465
|
}
|
|
80439
80466
|
const payload = parsed.value;
|
|
80440
80467
|
const body = null;
|
|
80441
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
80468
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/terminals")();
|
|
80442
80469
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
80443
80470
|
from: payload?.from,
|
|
80444
80471
|
limit: payload?.limit,
|
|
@@ -80473,7 +80500,7 @@ async function $do91(client, request, options) {
|
|
|
80473
80500
|
const requestRes = client._createRequest(context, {
|
|
80474
80501
|
security: requestSecurity,
|
|
80475
80502
|
method: "GET",
|
|
80476
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
80503
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
80477
80504
|
path,
|
|
80478
80505
|
headers,
|
|
80479
80506
|
query,
|
|
@@ -80516,10 +80543,10 @@ async function $do91(client, request, options) {
|
|
|
80516
80543
|
if (typeof nextURL !== "string") {
|
|
80517
80544
|
return { next: () => null };
|
|
80518
80545
|
}
|
|
80519
|
-
if (nextURL.startsWith("/")) {
|
|
80520
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
80521
|
-
}
|
|
80522
80546
|
try {
|
|
80547
|
+
if (nextURL.startsWith("/")) {
|
|
80548
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
80549
|
+
}
|
|
80523
80550
|
new URL(nextURL);
|
|
80524
80551
|
} catch (_error) {
|
|
80525
80552
|
return { next: () => null };
|
|
@@ -81213,7 +81240,7 @@ async function $do97(client, request, options) {
|
|
|
81213
81240
|
}
|
|
81214
81241
|
const payload = parsed.value;
|
|
81215
81242
|
const body = null;
|
|
81216
|
-
const path = options?.[URL_OVERRIDE] ?
|
|
81243
|
+
const path = options?.[URL_OVERRIDE] ? "" : pathToFunc("/webhooks")();
|
|
81217
81244
|
const query = options?.[URL_OVERRIDE] ? options[URL_OVERRIDE].search.substring(1) : encodeFormQuery({
|
|
81218
81245
|
eventTypes: payload?.eventTypes,
|
|
81219
81246
|
from: payload?.from,
|
|
@@ -81249,7 +81276,7 @@ async function $do97(client, request, options) {
|
|
|
81249
81276
|
const requestRes = client._createRequest(context, {
|
|
81250
81277
|
security: requestSecurity,
|
|
81251
81278
|
method: "GET",
|
|
81252
|
-
baseURL: options?.[URL_OVERRIDE]?.
|
|
81279
|
+
baseURL: options?.[URL_OVERRIDE]?.href || options?.serverURL,
|
|
81253
81280
|
path,
|
|
81254
81281
|
headers,
|
|
81255
81282
|
query,
|
|
@@ -81292,10 +81319,10 @@ async function $do97(client, request, options) {
|
|
|
81292
81319
|
if (typeof nextURL !== "string") {
|
|
81293
81320
|
return { next: () => null };
|
|
81294
81321
|
}
|
|
81295
|
-
if (nextURL.startsWith("/")) {
|
|
81296
|
-
nextURL = `${client._baseURL?.origin}${nextURL}`;
|
|
81297
|
-
}
|
|
81298
81322
|
try {
|
|
81323
|
+
if (nextURL.startsWith("/")) {
|
|
81324
|
+
nextURL = new URL(nextURL, client._baseURL ?? "").href;
|
|
81325
|
+
}
|
|
81299
81326
|
new URL(nextURL);
|
|
81300
81327
|
} catch (_error) {
|
|
81301
81328
|
return { next: () => null };
|
|
@@ -81601,7 +81628,7 @@ Updates the webhook. You may edit the name, url and the list of subscribed event
|
|
|
81601
81628
|
function createMCPServer(deps) {
|
|
81602
81629
|
const server = new McpServer({
|
|
81603
81630
|
name: "Client",
|
|
81604
|
-
version: "1.3.
|
|
81631
|
+
version: "1.3.1"
|
|
81605
81632
|
});
|
|
81606
81633
|
const client = new ClientCore({
|
|
81607
81634
|
security: deps.security,
|
|
@@ -83035,7 +83062,7 @@ var routes = an({
|
|
|
83035
83062
|
var app = He(routes, {
|
|
83036
83063
|
name: "mcp",
|
|
83037
83064
|
versionInfo: {
|
|
83038
|
-
currentVersion: "1.3.
|
|
83065
|
+
currentVersion: "1.3.1"
|
|
83039
83066
|
}
|
|
83040
83067
|
});
|
|
83041
83068
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -83043,5 +83070,5 @@ export {
|
|
|
83043
83070
|
app
|
|
83044
83071
|
};
|
|
83045
83072
|
|
|
83046
|
-
//# debugId=
|
|
83073
|
+
//# debugId=2FA940F777ED119C64756E2164756E21
|
|
83047
83074
|
//# sourceMappingURL=mcp-server.js.map
|