mollie-api-typescript 1.5.4 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +5 -11
- package/README.md +45 -39
- package/dist/commonjs/funcs/accountsGet.js +1 -1
- package/dist/commonjs/funcs/accountsGet.js.map +1 -1
- package/dist/commonjs/funcs/accountsGetAccount.js +1 -1
- package/dist/commonjs/funcs/accountsGetAccount.js.map +1 -1
- package/dist/commonjs/funcs/accountsList.js +1 -1
- package/dist/commonjs/funcs/accountsList.js.map +1 -1
- package/dist/commonjs/funcs/accountsListAccounts.js +1 -1
- package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersCreate.js +1 -1
- package/dist/commonjs/funcs/balanceTransfersCreate.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersGet.js +1 -1
- package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js +1 -1
- package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/balancesGet.js +1 -1
- package/dist/commonjs/funcs/balancesGet.js.map +1 -1
- package/dist/commonjs/funcs/balancesGetPrimary.js +1 -1
- package/dist/commonjs/funcs/balancesGetPrimary.js.map +1 -1
- package/dist/commonjs/funcs/balancesGetReport.js +1 -1
- package/dist/commonjs/funcs/balancesGetReport.js.map +1 -1
- package/dist/commonjs/funcs/balancesList.js +1 -1
- package/dist/commonjs/funcs/balancesList.js.map +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js +1 -1
- package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
- package/dist/commonjs/funcs/capabilitiesList.js +1 -1
- package/dist/commonjs/funcs/capabilitiesList.js.map +1 -1
- package/dist/commonjs/funcs/capturesCreate.js +1 -1
- package/dist/commonjs/funcs/capturesCreate.js.map +1 -1
- package/dist/commonjs/funcs/capturesGet.js +1 -1
- package/dist/commonjs/funcs/capturesGet.js.map +1 -1
- package/dist/commonjs/funcs/capturesList.js +1 -1
- package/dist/commonjs/funcs/capturesList.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksAll.js +1 -1
- package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksGet.js +1 -1
- package/dist/commonjs/funcs/chargebacksGet.js.map +1 -1
- package/dist/commonjs/funcs/chargebacksList.js +1 -1
- package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
- package/dist/commonjs/funcs/clientLinksCreate.js +1 -1
- package/dist/commonjs/funcs/clientLinksCreate.js.map +1 -1
- package/dist/commonjs/funcs/clientsGet.js +1 -1
- package/dist/commonjs/funcs/clientsGet.js.map +1 -1
- package/dist/commonjs/funcs/clientsList.js +1 -1
- package/dist/commonjs/funcs/clientsList.js.map +1 -1
- package/dist/commonjs/funcs/customersCreate.js +1 -1
- package/dist/commonjs/funcs/customersCreate.js.map +1 -1
- package/dist/commonjs/funcs/customersCreatePayment.js +1 -1
- package/dist/commonjs/funcs/customersCreatePayment.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js +1 -1
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersList.js +1 -1
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/customersListPayments.js +1 -1
- package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingCreate.js +1 -1
- package/dist/commonjs/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingGet.js +1 -1
- package/dist/commonjs/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/commonjs/funcs/delayedRoutingList.js +1 -1
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/invoicesGet.js +1 -1
- package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/invoicesList.js +1 -1
- package/dist/commonjs/funcs/invoicesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesCreate.js +1 -1
- package/dist/commonjs/funcs/mandatesCreate.js.map +1 -1
- package/dist/commonjs/funcs/mandatesGet.js +1 -1
- package/dist/commonjs/funcs/mandatesGet.js.map +1 -1
- package/dist/commonjs/funcs/mandatesList.js +1 -1
- package/dist/commonjs/funcs/mandatesList.js.map +1 -1
- package/dist/commonjs/funcs/mandatesRevoke.js +1 -1
- package/dist/commonjs/funcs/mandatesRevoke.js.map +1 -1
- package/dist/commonjs/funcs/methodsAll.js +1 -1
- package/dist/commonjs/funcs/methodsAll.js.map +1 -1
- package/dist/commonjs/funcs/methodsGet.js +1 -1
- package/dist/commonjs/funcs/methodsGet.js.map +1 -1
- package/dist/commonjs/funcs/methodsList.js +1 -1
- package/dist/commonjs/funcs/methodsList.js.map +1 -1
- package/dist/commonjs/funcs/oauthGenerate.d.ts +22 -0
- package/dist/commonjs/funcs/oauthGenerate.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauthGenerate.js +137 -0
- package/dist/commonjs/funcs/oauthGenerate.js.map +1 -0
- package/dist/commonjs/funcs/oauthRevoke.d.ts +23 -0
- package/dist/commonjs/funcs/oauthRevoke.d.ts.map +1 -0
- package/dist/commonjs/funcs/oauthRevoke.js +138 -0
- package/dist/commonjs/funcs/oauthRevoke.js.map +1 -0
- package/dist/commonjs/funcs/onboardingGet.js +1 -1
- package/dist/commonjs/funcs/onboardingGet.js.map +1 -1
- package/dist/commonjs/funcs/onboardingSubmit.js +1 -1
- package/dist/commonjs/funcs/onboardingSubmit.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGet.js +1 -1
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGetCurrent.js +1 -1
- package/dist/commonjs/funcs/organizationsGetCurrent.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGetPartner.js +1 -1
- package/dist/commonjs/funcs/organizationsGetPartner.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksCreate.js +1 -1
- package/dist/commonjs/funcs/paymentLinksCreate.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksDelete.js +1 -1
- package/dist/commonjs/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksGet.js +1 -1
- package/dist/commonjs/funcs/paymentLinksGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksList.js +1 -1
- package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.js +1 -1
- package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/commonjs/funcs/paymentLinksUpdate.js +1 -1
- package/dist/commonjs/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/paymentsCancel.js +1 -1
- package/dist/commonjs/funcs/paymentsCancel.js.map +1 -1
- package/dist/commonjs/funcs/paymentsCreate.js +1 -1
- package/dist/commonjs/funcs/paymentsCreate.js.map +1 -1
- package/dist/commonjs/funcs/paymentsGet.js +1 -1
- package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/paymentsList.js +1 -1
- package/dist/commonjs/funcs/paymentsList.js.map +1 -1
- package/dist/commonjs/funcs/paymentsReleaseAuthorization.js +1 -1
- package/dist/commonjs/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/commonjs/funcs/paymentsUpdate.js +1 -1
- package/dist/commonjs/funcs/paymentsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/permissionsGet.js +1 -1
- package/dist/commonjs/funcs/permissionsGet.js.map +1 -1
- package/dist/commonjs/funcs/permissionsList.js +1 -1
- package/dist/commonjs/funcs/permissionsList.js.map +1 -1
- package/dist/commonjs/funcs/profilesCreate.js +1 -1
- package/dist/commonjs/funcs/profilesCreate.js.map +1 -1
- package/dist/commonjs/funcs/profilesDelete.js +1 -1
- package/dist/commonjs/funcs/profilesDelete.js.map +1 -1
- package/dist/commonjs/funcs/profilesGet.js +1 -1
- package/dist/commonjs/funcs/profilesGet.js.map +1 -1
- package/dist/commonjs/funcs/profilesGetCurrent.js +1 -1
- package/dist/commonjs/funcs/profilesGetCurrent.js.map +1 -1
- package/dist/commonjs/funcs/profilesList.js +1 -1
- package/dist/commonjs/funcs/profilesList.js.map +1 -1
- package/dist/commonjs/funcs/profilesUpdate.js +1 -1
- package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/refundsAll.js +1 -1
- package/dist/commonjs/funcs/refundsAll.js.map +1 -1
- package/dist/commonjs/funcs/refundsCancel.js +1 -1
- package/dist/commonjs/funcs/refundsCancel.js.map +1 -1
- package/dist/commonjs/funcs/refundsCreate.js +1 -1
- package/dist/commonjs/funcs/refundsCreate.js.map +1 -1
- package/dist/commonjs/funcs/refundsGet.js +1 -1
- package/dist/commonjs/funcs/refundsGet.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +1 -1
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesCreate.js +1 -1
- package/dist/commonjs/funcs/salesInvoicesCreate.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesDelete.js +1 -1
- package/dist/commonjs/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesGet.js +1 -1
- package/dist/commonjs/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.js +1 -1
- package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
- package/dist/commonjs/funcs/salesInvoicesUpdate.js +1 -1
- package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/sessionsCreate.js +1 -1
- package/dist/commonjs/funcs/sessionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/sessionsGet.js +1 -1
- package/dist/commonjs/funcs/sessionsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsGet.js +1 -1
- package/dist/commonjs/funcs/settlementsGet.js.map +1 -1
- package/dist/commonjs/funcs/settlementsGetNext.js +1 -1
- package/dist/commonjs/funcs/settlementsGetNext.js.map +1 -1
- package/dist/commonjs/funcs/settlementsGetOpen.js +1 -1
- package/dist/commonjs/funcs/settlementsGetOpen.js.map +1 -1
- package/dist/commonjs/funcs/settlementsList.js +1 -1
- package/dist/commonjs/funcs/settlementsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js +1 -1
- package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js +1 -1
- package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js +1 -1
- package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCancel.js +1 -1
- package/dist/commonjs/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsCreate.js +1 -1
- package/dist/commonjs/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.js +1 -1
- package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/terminalsGet.js +1 -1
- package/dist/commonjs/funcs/terminalsGet.js.map +1 -1
- package/dist/commonjs/funcs/terminalsList.js +1 -1
- package/dist/commonjs/funcs/terminalsList.js.map +1 -1
- package/dist/commonjs/funcs/transfersCreate.js +1 -1
- package/dist/commonjs/funcs/transfersCreate.js.map +1 -1
- package/dist/commonjs/funcs/transfersGet.js +1 -1
- package/dist/commonjs/funcs/transfersGet.js.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +1 -1
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -1
- package/dist/commonjs/funcs/verifyPayeesCreate.js +1 -1
- package/dist/commonjs/funcs/verifyPayeesCreate.js.map +1 -1
- package/dist/commonjs/funcs/walletsRequestApplePaySession.js +1 -1
- package/dist/commonjs/funcs/walletsRequestApplePaySession.js.map +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.js +1 -1
- package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksCreate.js +1 -1
- package/dist/commonjs/funcs/webhooksCreate.js.map +1 -1
- package/dist/commonjs/funcs/webhooksDelete.js +1 -1
- package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGet.js +1 -1
- package/dist/commonjs/funcs/webhooksGet.js.map +1 -1
- package/dist/commonjs/funcs/webhooksList.js +1 -1
- package/dist/commonjs/funcs/webhooksList.js.map +1 -1
- package/dist/commonjs/funcs/webhooksTest.js +1 -1
- package/dist/commonjs/funcs/webhooksTest.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.js +1 -1
- package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/oauthgeneratetokens.d.ts +104 -0
- package/dist/commonjs/models/operations/oauthgeneratetokens.d.ts.map +1 -0
- package/dist/commonjs/models/operations/oauthgeneratetokens.js +98 -0
- package/dist/commonjs/models/operations/oauthgeneratetokens.js.map +1 -0
- package/dist/commonjs/models/operations/oauthrevoketokens.d.ts +40 -0
- package/dist/commonjs/models/operations/oauthrevoketokens.d.ts.map +1 -0
- package/dist/commonjs/models/operations/oauthrevoketokens.js +74 -0
- package/dist/commonjs/models/operations/oauthrevoketokens.js.map +1 -0
- package/dist/commonjs/sdk/oauth.d.ts +26 -0
- package/dist/commonjs/sdk/oauth.d.ts.map +1 -0
- package/dist/commonjs/sdk/oauth.js +40 -0
- package/dist/commonjs/sdk/oauth.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/accountsGet.js +1 -1
- package/dist/esm/funcs/accountsGet.js.map +1 -1
- package/dist/esm/funcs/accountsGetAccount.js +1 -1
- package/dist/esm/funcs/accountsGetAccount.js.map +1 -1
- package/dist/esm/funcs/accountsList.js +1 -1
- package/dist/esm/funcs/accountsList.js.map +1 -1
- package/dist/esm/funcs/accountsListAccounts.js +1 -1
- package/dist/esm/funcs/accountsListAccounts.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersCreate.js +1 -1
- package/dist/esm/funcs/balanceTransfersCreate.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersGet.js +1 -1
- package/dist/esm/funcs/balanceTransfersGet.js.map +1 -1
- package/dist/esm/funcs/balanceTransfersList.js +1 -1
- package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
- package/dist/esm/funcs/balancesGet.js +1 -1
- package/dist/esm/funcs/balancesGet.js.map +1 -1
- package/dist/esm/funcs/balancesGetPrimary.js +1 -1
- package/dist/esm/funcs/balancesGetPrimary.js.map +1 -1
- package/dist/esm/funcs/balancesGetReport.js +1 -1
- package/dist/esm/funcs/balancesGetReport.js.map +1 -1
- package/dist/esm/funcs/balancesList.js +1 -1
- package/dist/esm/funcs/balancesList.js.map +1 -1
- package/dist/esm/funcs/balancesListTransactions.js +1 -1
- package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
- package/dist/esm/funcs/capabilitiesList.js +1 -1
- package/dist/esm/funcs/capabilitiesList.js.map +1 -1
- package/dist/esm/funcs/capturesCreate.js +1 -1
- package/dist/esm/funcs/capturesCreate.js.map +1 -1
- package/dist/esm/funcs/capturesGet.js +1 -1
- package/dist/esm/funcs/capturesGet.js.map +1 -1
- package/dist/esm/funcs/capturesList.js +1 -1
- package/dist/esm/funcs/capturesList.js.map +1 -1
- package/dist/esm/funcs/chargebacksAll.js +1 -1
- package/dist/esm/funcs/chargebacksAll.js.map +1 -1
- package/dist/esm/funcs/chargebacksGet.js +1 -1
- package/dist/esm/funcs/chargebacksGet.js.map +1 -1
- package/dist/esm/funcs/chargebacksList.js +1 -1
- package/dist/esm/funcs/chargebacksList.js.map +1 -1
- package/dist/esm/funcs/clientLinksCreate.js +1 -1
- package/dist/esm/funcs/clientLinksCreate.js.map +1 -1
- package/dist/esm/funcs/clientsGet.js +1 -1
- package/dist/esm/funcs/clientsGet.js.map +1 -1
- package/dist/esm/funcs/clientsList.js +1 -1
- package/dist/esm/funcs/clientsList.js.map +1 -1
- package/dist/esm/funcs/customersCreate.js +1 -1
- package/dist/esm/funcs/customersCreate.js.map +1 -1
- package/dist/esm/funcs/customersCreatePayment.js +1 -1
- package/dist/esm/funcs/customersCreatePayment.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js +1 -1
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersGet.js +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersList.js +1 -1
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/customersListPayments.js +1 -1
- package/dist/esm/funcs/customersListPayments.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingCreate.js +1 -1
- package/dist/esm/funcs/delayedRoutingCreate.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingGet.js +1 -1
- package/dist/esm/funcs/delayedRoutingGet.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js +1 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/invoicesGet.js +1 -1
- package/dist/esm/funcs/invoicesGet.js.map +1 -1
- package/dist/esm/funcs/invoicesList.js +1 -1
- package/dist/esm/funcs/invoicesList.js.map +1 -1
- package/dist/esm/funcs/mandatesCreate.js +1 -1
- package/dist/esm/funcs/mandatesCreate.js.map +1 -1
- package/dist/esm/funcs/mandatesGet.js +1 -1
- package/dist/esm/funcs/mandatesGet.js.map +1 -1
- package/dist/esm/funcs/mandatesList.js +1 -1
- package/dist/esm/funcs/mandatesList.js.map +1 -1
- package/dist/esm/funcs/mandatesRevoke.js +1 -1
- package/dist/esm/funcs/mandatesRevoke.js.map +1 -1
- package/dist/esm/funcs/methodsAll.js +1 -1
- package/dist/esm/funcs/methodsAll.js.map +1 -1
- package/dist/esm/funcs/methodsGet.js +1 -1
- package/dist/esm/funcs/methodsGet.js.map +1 -1
- package/dist/esm/funcs/methodsList.js +1 -1
- package/dist/esm/funcs/methodsList.js.map +1 -1
- package/dist/esm/funcs/oauthGenerate.d.ts +22 -0
- package/dist/esm/funcs/oauthGenerate.d.ts.map +1 -0
- package/dist/esm/funcs/oauthGenerate.js +101 -0
- package/dist/esm/funcs/oauthGenerate.js.map +1 -0
- package/dist/esm/funcs/oauthRevoke.d.ts +23 -0
- package/dist/esm/funcs/oauthRevoke.d.ts.map +1 -0
- package/dist/esm/funcs/oauthRevoke.js +102 -0
- package/dist/esm/funcs/oauthRevoke.js.map +1 -0
- package/dist/esm/funcs/onboardingGet.js +1 -1
- package/dist/esm/funcs/onboardingGet.js.map +1 -1
- package/dist/esm/funcs/onboardingSubmit.js +1 -1
- package/dist/esm/funcs/onboardingSubmit.js.map +1 -1
- package/dist/esm/funcs/organizationsGet.js +1 -1
- package/dist/esm/funcs/organizationsGet.js.map +1 -1
- package/dist/esm/funcs/organizationsGetCurrent.js +1 -1
- package/dist/esm/funcs/organizationsGetCurrent.js.map +1 -1
- package/dist/esm/funcs/organizationsGetPartner.js +1 -1
- package/dist/esm/funcs/organizationsGetPartner.js.map +1 -1
- package/dist/esm/funcs/paymentLinksCreate.js +1 -1
- package/dist/esm/funcs/paymentLinksCreate.js.map +1 -1
- package/dist/esm/funcs/paymentLinksDelete.js +1 -1
- package/dist/esm/funcs/paymentLinksDelete.js.map +1 -1
- package/dist/esm/funcs/paymentLinksGet.js +1 -1
- package/dist/esm/funcs/paymentLinksGet.js.map +1 -1
- package/dist/esm/funcs/paymentLinksList.js +1 -1
- package/dist/esm/funcs/paymentLinksList.js.map +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.js +1 -1
- package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
- package/dist/esm/funcs/paymentLinksUpdate.js +1 -1
- package/dist/esm/funcs/paymentLinksUpdate.js.map +1 -1
- package/dist/esm/funcs/paymentsCancel.js +1 -1
- package/dist/esm/funcs/paymentsCancel.js.map +1 -1
- package/dist/esm/funcs/paymentsCreate.js +1 -1
- package/dist/esm/funcs/paymentsCreate.js.map +1 -1
- package/dist/esm/funcs/paymentsGet.js +1 -1
- package/dist/esm/funcs/paymentsGet.js.map +1 -1
- package/dist/esm/funcs/paymentsList.js +1 -1
- package/dist/esm/funcs/paymentsList.js.map +1 -1
- package/dist/esm/funcs/paymentsReleaseAuthorization.js +1 -1
- package/dist/esm/funcs/paymentsReleaseAuthorization.js.map +1 -1
- package/dist/esm/funcs/paymentsUpdate.js +1 -1
- package/dist/esm/funcs/paymentsUpdate.js.map +1 -1
- package/dist/esm/funcs/permissionsGet.js +1 -1
- package/dist/esm/funcs/permissionsGet.js.map +1 -1
- package/dist/esm/funcs/permissionsList.js +1 -1
- package/dist/esm/funcs/permissionsList.js.map +1 -1
- package/dist/esm/funcs/profilesCreate.js +1 -1
- package/dist/esm/funcs/profilesCreate.js.map +1 -1
- package/dist/esm/funcs/profilesDelete.js +1 -1
- package/dist/esm/funcs/profilesDelete.js.map +1 -1
- package/dist/esm/funcs/profilesGet.js +1 -1
- package/dist/esm/funcs/profilesGet.js.map +1 -1
- package/dist/esm/funcs/profilesGetCurrent.js +1 -1
- package/dist/esm/funcs/profilesGetCurrent.js.map +1 -1
- package/dist/esm/funcs/profilesList.js +1 -1
- package/dist/esm/funcs/profilesList.js.map +1 -1
- package/dist/esm/funcs/profilesUpdate.js +1 -1
- package/dist/esm/funcs/profilesUpdate.js.map +1 -1
- package/dist/esm/funcs/refundsAll.js +1 -1
- package/dist/esm/funcs/refundsAll.js.map +1 -1
- package/dist/esm/funcs/refundsCancel.js +1 -1
- package/dist/esm/funcs/refundsCancel.js.map +1 -1
- package/dist/esm/funcs/refundsCreate.js +1 -1
- package/dist/esm/funcs/refundsCreate.js.map +1 -1
- package/dist/esm/funcs/refundsGet.js +1 -1
- package/dist/esm/funcs/refundsGet.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +1 -1
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesCreate.js +1 -1
- package/dist/esm/funcs/salesInvoicesCreate.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesDelete.js +1 -1
- package/dist/esm/funcs/salesInvoicesDelete.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesGet.js +1 -1
- package/dist/esm/funcs/salesInvoicesGet.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesList.js +1 -1
- package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
- package/dist/esm/funcs/salesInvoicesUpdate.js +1 -1
- package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
- package/dist/esm/funcs/sessionsCreate.js +1 -1
- package/dist/esm/funcs/sessionsCreate.js.map +1 -1
- package/dist/esm/funcs/sessionsGet.js +1 -1
- package/dist/esm/funcs/sessionsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsGet.js +1 -1
- package/dist/esm/funcs/settlementsGet.js.map +1 -1
- package/dist/esm/funcs/settlementsGetNext.js +1 -1
- package/dist/esm/funcs/settlementsGetNext.js.map +1 -1
- package/dist/esm/funcs/settlementsGetOpen.js +1 -1
- package/dist/esm/funcs/settlementsGetOpen.js.map +1 -1
- package/dist/esm/funcs/settlementsList.js +1 -1
- package/dist/esm/funcs/settlementsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js +1 -1
- package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js +1 -1
- package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
- package/dist/esm/funcs/settlementsListPayments.js +1 -1
- package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +1 -1
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCancel.js +1 -1
- package/dist/esm/funcs/subscriptionsCancel.js.map +1 -1
- package/dist/esm/funcs/subscriptionsCreate.js +1 -1
- package/dist/esm/funcs/subscriptionsCreate.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +1 -1
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.js +1 -1
- package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/terminalsGet.js +1 -1
- package/dist/esm/funcs/terminalsGet.js.map +1 -1
- package/dist/esm/funcs/terminalsList.js +1 -1
- package/dist/esm/funcs/terminalsList.js.map +1 -1
- package/dist/esm/funcs/transfersCreate.js +1 -1
- package/dist/esm/funcs/transfersCreate.js.map +1 -1
- package/dist/esm/funcs/transfersGet.js +1 -1
- package/dist/esm/funcs/transfersGet.js.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersList.js +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +1 -1
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -1
- package/dist/esm/funcs/verifyPayeesCreate.js +1 -1
- package/dist/esm/funcs/verifyPayeesCreate.js.map +1 -1
- package/dist/esm/funcs/walletsRequestApplePaySession.js +1 -1
- package/dist/esm/funcs/walletsRequestApplePaySession.js.map +1 -1
- package/dist/esm/funcs/webhookEventsGet.js +1 -1
- package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
- package/dist/esm/funcs/webhooksCreate.js +1 -1
- package/dist/esm/funcs/webhooksCreate.js.map +1 -1
- package/dist/esm/funcs/webhooksDelete.js +1 -1
- package/dist/esm/funcs/webhooksDelete.js.map +1 -1
- package/dist/esm/funcs/webhooksGet.js +1 -1
- package/dist/esm/funcs/webhooksGet.js.map +1 -1
- package/dist/esm/funcs/webhooksList.js +1 -1
- package/dist/esm/funcs/webhooksList.js.map +1 -1
- package/dist/esm/funcs/webhooksTest.js +1 -1
- package/dist/esm/funcs/webhooksTest.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdate.js +1 -1
- package/dist/esm/funcs/webhooksUpdate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/oauthgeneratetokens.d.ts +104 -0
- package/dist/esm/models/operations/oauthgeneratetokens.d.ts.map +1 -0
- package/dist/esm/models/operations/oauthgeneratetokens.js +59 -0
- package/dist/esm/models/operations/oauthgeneratetokens.js.map +1 -0
- package/dist/esm/models/operations/oauthrevoketokens.d.ts +40 -0
- package/dist/esm/models/operations/oauthrevoketokens.d.ts.map +1 -0
- package/dist/esm/models/operations/oauthrevoketokens.js +36 -0
- package/dist/esm/models/operations/oauthrevoketokens.js.map +1 -0
- package/dist/esm/sdk/oauth.d.ts +26 -0
- package/dist/esm/sdk/oauth.d.ts.map +1 -0
- package/dist/esm/sdk/oauth.js +36 -0
- package/dist/esm/sdk/oauth.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/{balancesList.example.ts → oauthGenerate.example.ts} +5 -12
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountsGet.ts +1 -1
- package/src/funcs/accountsGetAccount.ts +1 -1
- package/src/funcs/accountsList.ts +1 -1
- package/src/funcs/accountsListAccounts.ts +1 -1
- package/src/funcs/balanceTransfersCreate.ts +1 -1
- package/src/funcs/balanceTransfersGet.ts +1 -1
- package/src/funcs/balanceTransfersList.ts +1 -1
- package/src/funcs/balancesGet.ts +1 -1
- package/src/funcs/balancesGetPrimary.ts +1 -1
- package/src/funcs/balancesGetReport.ts +1 -1
- package/src/funcs/balancesList.ts +1 -1
- package/src/funcs/balancesListTransactions.ts +1 -1
- package/src/funcs/capabilitiesList.ts +1 -1
- package/src/funcs/capturesCreate.ts +1 -1
- package/src/funcs/capturesGet.ts +1 -1
- package/src/funcs/capturesList.ts +1 -1
- package/src/funcs/chargebacksAll.ts +1 -1
- package/src/funcs/chargebacksGet.ts +3 -3
- package/src/funcs/chargebacksList.ts +1 -1
- package/src/funcs/clientLinksCreate.ts +1 -1
- package/src/funcs/clientsGet.ts +1 -1
- package/src/funcs/clientsList.ts +1 -1
- package/src/funcs/customersCreate.ts +1 -1
- package/src/funcs/customersCreatePayment.ts +1 -1
- package/src/funcs/customersDelete.ts +1 -1
- package/src/funcs/customersGet.ts +1 -1
- package/src/funcs/customersList.ts +1 -1
- package/src/funcs/customersListPayments.ts +1 -1
- package/src/funcs/customersUpdate.ts +1 -1
- package/src/funcs/delayedRoutingCreate.ts +1 -1
- package/src/funcs/delayedRoutingGet.ts +3 -1
- package/src/funcs/delayedRoutingList.ts +1 -1
- package/src/funcs/invoicesGet.ts +1 -1
- package/src/funcs/invoicesList.ts +1 -1
- package/src/funcs/mandatesCreate.ts +1 -1
- package/src/funcs/mandatesGet.ts +1 -1
- package/src/funcs/mandatesList.ts +1 -1
- package/src/funcs/mandatesRevoke.ts +1 -1
- package/src/funcs/methodsAll.ts +1 -1
- package/src/funcs/methodsGet.ts +1 -1
- package/src/funcs/methodsList.ts +1 -1
- package/src/funcs/oauthGenerate.ts +192 -0
- package/src/funcs/oauthRevoke.ts +193 -0
- package/src/funcs/onboardingGet.ts +1 -1
- package/src/funcs/onboardingSubmit.ts +1 -1
- package/src/funcs/organizationsGet.ts +1 -1
- package/src/funcs/organizationsGetCurrent.ts +1 -1
- package/src/funcs/organizationsGetPartner.ts +1 -1
- package/src/funcs/paymentLinksCreate.ts +1 -1
- package/src/funcs/paymentLinksDelete.ts +1 -1
- package/src/funcs/paymentLinksGet.ts +1 -1
- package/src/funcs/paymentLinksList.ts +1 -1
- package/src/funcs/paymentLinksListPayments.ts +1 -1
- package/src/funcs/paymentLinksUpdate.ts +1 -1
- package/src/funcs/paymentsCancel.ts +1 -1
- package/src/funcs/paymentsCreate.ts +1 -1
- package/src/funcs/paymentsGet.ts +1 -1
- package/src/funcs/paymentsList.ts +1 -1
- package/src/funcs/paymentsReleaseAuthorization.ts +1 -1
- package/src/funcs/paymentsUpdate.ts +1 -1
- package/src/funcs/permissionsGet.ts +1 -1
- package/src/funcs/permissionsList.ts +1 -1
- package/src/funcs/profilesCreate.ts +1 -1
- package/src/funcs/profilesDelete.ts +1 -1
- package/src/funcs/profilesGet.ts +1 -1
- package/src/funcs/profilesGetCurrent.ts +1 -1
- package/src/funcs/profilesList.ts +1 -1
- package/src/funcs/profilesUpdate.ts +1 -1
- package/src/funcs/refundsAll.ts +1 -1
- package/src/funcs/refundsCancel.ts +1 -1
- package/src/funcs/refundsCreate.ts +1 -1
- package/src/funcs/refundsGet.ts +1 -1
- package/src/funcs/refundsList.ts +1 -1
- package/src/funcs/salesInvoicesCreate.ts +1 -1
- package/src/funcs/salesInvoicesDelete.ts +1 -1
- package/src/funcs/salesInvoicesGet.ts +1 -1
- package/src/funcs/salesInvoicesList.ts +1 -1
- package/src/funcs/salesInvoicesUpdate.ts +1 -1
- package/src/funcs/sessionsCreate.ts +1 -1
- package/src/funcs/sessionsGet.ts +1 -1
- package/src/funcs/settlementsGet.ts +1 -1
- package/src/funcs/settlementsGetNext.ts +1 -1
- package/src/funcs/settlementsGetOpen.ts +1 -1
- package/src/funcs/settlementsList.ts +1 -1
- package/src/funcs/settlementsListCaptures.ts +1 -1
- package/src/funcs/settlementsListChargebacks.ts +1 -1
- package/src/funcs/settlementsListPayments.ts +1 -1
- package/src/funcs/settlementsListRefunds.ts +1 -1
- package/src/funcs/subscriptionsAll.ts +1 -1
- package/src/funcs/subscriptionsCancel.ts +1 -1
- package/src/funcs/subscriptionsCreate.ts +3 -1
- package/src/funcs/subscriptionsGet.ts +1 -1
- package/src/funcs/subscriptionsList.ts +1 -1
- package/src/funcs/subscriptionsListPayments.ts +1 -1
- package/src/funcs/subscriptionsUpdate.ts +1 -1
- package/src/funcs/terminalsGet.ts +1 -1
- package/src/funcs/terminalsList.ts +1 -1
- package/src/funcs/transfersCreate.ts +1 -1
- package/src/funcs/transfersGet.ts +1 -1
- package/src/funcs/unmatchedCreditTransfersGet.ts +1 -1
- package/src/funcs/unmatchedCreditTransfersList.ts +1 -1
- package/src/funcs/unmatchedCreditTransfersMatch.ts +1 -1
- package/src/funcs/unmatchedCreditTransfersReturn.ts +1 -1
- package/src/funcs/verifyPayeesCreate.ts +1 -1
- package/src/funcs/walletsRequestApplePaySession.ts +1 -1
- package/src/funcs/webhookEventsGet.ts +1 -1
- package/src/funcs/webhooksCreate.ts +1 -1
- package/src/funcs/webhooksDelete.ts +1 -1
- package/src/funcs/webhooksGet.ts +1 -1
- package/src/funcs/webhooksList.ts +1 -1
- package/src/funcs/webhooksTest.ts +1 -1
- package/src/funcs/webhooksUpdate.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/oauthgeneratetokens.ts +191 -0
- package/src/models/operations/oauthrevoketokens.ts +94 -0
- package/src/sdk/oauth.ts +53 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -101,7 +101,7 @@ async function $do(
|
|
|
101
101
|
{ explode: false, charEncoding: "percent" },
|
|
102
102
|
),
|
|
103
103
|
};
|
|
104
|
-
const path = pathToFunc("/business-accounts/accounts/{businessAccountId}")(
|
|
104
|
+
const path = pathToFunc("/v2/business-accounts/accounts/{businessAccountId}")(
|
|
105
105
|
pathParams,
|
|
106
106
|
);
|
|
107
107
|
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
const path = options?.[URL_OVERRIDE]
|
|
122
122
|
? ""
|
|
123
123
|
: pathToFunc(
|
|
124
|
-
"/business-accounts/accounts/{businessAccountId}/transactions",
|
|
124
|
+
"/v2/business-accounts/accounts/{businessAccountId}/transactions",
|
|
125
125
|
)(pathParams);
|
|
126
126
|
|
|
127
127
|
const query = options?.[URL_OVERRIDE]
|
|
@@ -113,7 +113,7 @@ async function $do(
|
|
|
113
113
|
|
|
114
114
|
const path = options?.[URL_OVERRIDE]
|
|
115
115
|
? ""
|
|
116
|
-
: pathToFunc("/business-accounts/accounts")();
|
|
116
|
+
: pathToFunc("/v2/business-accounts/accounts")();
|
|
117
117
|
|
|
118
118
|
const query = options?.[URL_OVERRIDE]
|
|
119
119
|
? options[URL_OVERRIDE].search.substring(1)
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
explode: true,
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
const path = pathToFunc("/connect/balance-transfers")();
|
|
103
|
+
const path = pathToFunc("/v2/connect/balance-transfers")();
|
|
104
104
|
|
|
105
105
|
const headers = new Headers(compactMap({
|
|
106
106
|
"Content-Type": "application/json",
|
|
@@ -101,7 +101,7 @@ async function $do(
|
|
|
101
101
|
{ explode: false, charEncoding: "percent" },
|
|
102
102
|
),
|
|
103
103
|
};
|
|
104
|
-
const path = pathToFunc("/connect/balance-transfers/{balanceTransferId}")(
|
|
104
|
+
const path = pathToFunc("/v2/connect/balance-transfers/{balanceTransferId}")(
|
|
105
105
|
pathParams,
|
|
106
106
|
);
|
|
107
107
|
|
|
@@ -110,7 +110,7 @@ async function $do(
|
|
|
110
110
|
|
|
111
111
|
const path = options?.[URL_OVERRIDE]
|
|
112
112
|
? ""
|
|
113
|
-
: pathToFunc("/connect/balance-transfers")();
|
|
113
|
+
: pathToFunc("/v2/connect/balance-transfers")();
|
|
114
114
|
|
|
115
115
|
const query = options?.[URL_OVERRIDE]
|
|
116
116
|
? options[URL_OVERRIDE].search.substring(1)
|
package/src/funcs/balancesGet.ts
CHANGED
|
@@ -113,7 +113,7 @@ async function $do(
|
|
|
113
113
|
charEncoding: "percent",
|
|
114
114
|
}),
|
|
115
115
|
};
|
|
116
|
-
const path = pathToFunc("/balances/{balanceId}")(pathParams);
|
|
116
|
+
const path = pathToFunc("/v2/balances/{balanceId}")(pathParams);
|
|
117
117
|
|
|
118
118
|
const query = encodeFormQuery({
|
|
119
119
|
"testmode": payload.testmode ?? client._options.testmode,
|
|
@@ -97,7 +97,7 @@ async function $do(
|
|
|
97
97
|
const payload = parsed.value;
|
|
98
98
|
const body = null;
|
|
99
99
|
|
|
100
|
-
const path = pathToFunc("/balances/primary")();
|
|
100
|
+
const path = pathToFunc("/v2/balances/primary")();
|
|
101
101
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
Accept: "application/hal+json",
|
|
@@ -105,7 +105,7 @@ async function $do(
|
|
|
105
105
|
charEncoding: "percent",
|
|
106
106
|
}),
|
|
107
107
|
};
|
|
108
|
-
const path = pathToFunc("/balances/{balanceId}/report")(pathParams);
|
|
108
|
+
const path = pathToFunc("/v2/balances/{balanceId}/report")(pathParams);
|
|
109
109
|
|
|
110
110
|
const query = encodeFormQuery({
|
|
111
111
|
"from": payload.from,
|
|
@@ -124,7 +124,7 @@ async function $do(
|
|
|
124
124
|
};
|
|
125
125
|
const path = options?.[URL_OVERRIDE]
|
|
126
126
|
? ""
|
|
127
|
-
: pathToFunc("/balances/{balanceId}/transactions")(pathParams);
|
|
127
|
+
: pathToFunc("/v2/balances/{balanceId}/transactions")(pathParams);
|
|
128
128
|
|
|
129
129
|
const query = options?.[URL_OVERRIDE]
|
|
130
130
|
? options[URL_OVERRIDE].search.substring(1)
|
|
@@ -105,7 +105,7 @@ async function $do(
|
|
|
105
105
|
const payload = parsed.value;
|
|
106
106
|
const body = null;
|
|
107
107
|
|
|
108
|
-
const path = pathToFunc("/capabilities")();
|
|
108
|
+
const path = pathToFunc("/v2/capabilities")();
|
|
109
109
|
|
|
110
110
|
const headers = new Headers(compactMap({
|
|
111
111
|
Accept: "application/hal+json",
|
|
@@ -104,7 +104,7 @@ async function $do(
|
|
|
104
104
|
charEncoding: "percent",
|
|
105
105
|
}),
|
|
106
106
|
};
|
|
107
|
-
const path = pathToFunc("/payments/{paymentId}/captures")(pathParams);
|
|
107
|
+
const path = pathToFunc("/v2/payments/{paymentId}/captures")(pathParams);
|
|
108
108
|
|
|
109
109
|
const headers = new Headers(compactMap({
|
|
110
110
|
"Content-Type": "application/json",
|
package/src/funcs/capturesGet.ts
CHANGED
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
};
|
|
115
115
|
const path = options?.[URL_OVERRIDE]
|
|
116
116
|
? ""
|
|
117
|
-
: pathToFunc("/payments/{paymentId}/captures")(pathParams);
|
|
117
|
+
: pathToFunc("/v2/payments/{paymentId}/captures")(pathParams);
|
|
118
118
|
|
|
119
119
|
const query = options?.[URL_OVERRIDE]
|
|
120
120
|
? options[URL_OVERRIDE].search.substring(1)
|
|
@@ -101,9 +101,9 @@ async function $do(
|
|
|
101
101
|
charEncoding: "percent",
|
|
102
102
|
}),
|
|
103
103
|
};
|
|
104
|
-
const path = pathToFunc(
|
|
105
|
-
|
|
106
|
-
);
|
|
104
|
+
const path = pathToFunc(
|
|
105
|
+
"/v2/payments/{paymentId}/chargebacks/{chargebackId}",
|
|
106
|
+
)(pathParams);
|
|
107
107
|
|
|
108
108
|
const query = encodeFormQuery({
|
|
109
109
|
"embed": payload.embed,
|
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
};
|
|
115
115
|
const path = options?.[URL_OVERRIDE]
|
|
116
116
|
? ""
|
|
117
|
-
: pathToFunc("/payments/{paymentId}/chargebacks")(pathParams);
|
|
117
|
+
: pathToFunc("/v2/payments/{paymentId}/chargebacks")(pathParams);
|
|
118
118
|
|
|
119
119
|
const query = options?.[URL_OVERRIDE]
|
|
120
120
|
? options[URL_OVERRIDE].search.substring(1)
|
package/src/funcs/clientsGet.ts
CHANGED
|
@@ -98,7 +98,7 @@ async function $do(
|
|
|
98
98
|
charEncoding: "percent",
|
|
99
99
|
}),
|
|
100
100
|
};
|
|
101
|
-
const path = pathToFunc("/clients/{organizationId}")(pathParams);
|
|
101
|
+
const path = pathToFunc("/v2/clients/{organizationId}")(pathParams);
|
|
102
102
|
|
|
103
103
|
const query = encodeFormQuery({
|
|
104
104
|
"embed": payload.embed,
|
package/src/funcs/clientsList.ts
CHANGED
|
@@ -110,7 +110,7 @@ async function $do(
|
|
|
110
110
|
charEncoding: "percent",
|
|
111
111
|
}),
|
|
112
112
|
};
|
|
113
|
-
const path = pathToFunc("/customers/{customerId}/payments")(pathParams);
|
|
113
|
+
const path = pathToFunc("/v2/customers/{customerId}/payments")(pathParams);
|
|
114
114
|
|
|
115
115
|
const headers = new Headers(compactMap({
|
|
116
116
|
"Content-Type": "application/json",
|
|
@@ -97,7 +97,7 @@ async function $do(
|
|
|
97
97
|
charEncoding: "percent",
|
|
98
98
|
}),
|
|
99
99
|
};
|
|
100
|
-
const path = pathToFunc("/customers/{customerId}")(pathParams);
|
|
100
|
+
const path = pathToFunc("/v2/customers/{customerId}")(pathParams);
|
|
101
101
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
103
103
|
"Content-Type": "application/json",
|
|
@@ -96,7 +96,7 @@ async function $do(
|
|
|
96
96
|
charEncoding: "percent",
|
|
97
97
|
}),
|
|
98
98
|
};
|
|
99
|
-
const path = pathToFunc("/customers/{customerId}")(pathParams);
|
|
99
|
+
const path = pathToFunc("/v2/customers/{customerId}")(pathParams);
|
|
100
100
|
|
|
101
101
|
const query = encodeFormQuery({
|
|
102
102
|
"include": payload.include,
|
|
@@ -113,7 +113,7 @@ async function $do(
|
|
|
113
113
|
};
|
|
114
114
|
const path = options?.[URL_OVERRIDE]
|
|
115
115
|
? ""
|
|
116
|
-
: pathToFunc("/customers/{customerId}/payments")(pathParams);
|
|
116
|
+
: pathToFunc("/v2/customers/{customerId}/payments")(pathParams);
|
|
117
117
|
|
|
118
118
|
const query = options?.[URL_OVERRIDE]
|
|
119
119
|
? options[URL_OVERRIDE].search.substring(1)
|
|
@@ -99,7 +99,7 @@ async function $do(
|
|
|
99
99
|
charEncoding: "percent",
|
|
100
100
|
}),
|
|
101
101
|
};
|
|
102
|
-
const path = pathToFunc("/customers/{customerId}")(pathParams);
|
|
102
|
+
const path = pathToFunc("/v2/customers/{customerId}")(pathParams);
|
|
103
103
|
|
|
104
104
|
const headers = new Headers(compactMap({
|
|
105
105
|
"Content-Type": "application/json",
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
charEncoding: "percent",
|
|
101
101
|
}),
|
|
102
102
|
};
|
|
103
|
-
const path = pathToFunc("/payments/{paymentId}/routes")(pathParams);
|
|
103
|
+
const path = pathToFunc("/v2/payments/{paymentId}/routes")(pathParams);
|
|
104
104
|
|
|
105
105
|
const headers = new Headers(compactMap({
|
|
106
106
|
"Content-Type": "application/json",
|
|
@@ -101,7 +101,9 @@ async function $do(
|
|
|
101
101
|
charEncoding: "percent",
|
|
102
102
|
}),
|
|
103
103
|
};
|
|
104
|
-
const path = pathToFunc("/payments/{paymentId}/routes/{routeId}")(
|
|
104
|
+
const path = pathToFunc("/v2/payments/{paymentId}/routes/{routeId}")(
|
|
105
|
+
pathParams,
|
|
106
|
+
);
|
|
105
107
|
|
|
106
108
|
const headers = new Headers(compactMap({
|
|
107
109
|
Accept: "application/hal+json",
|
|
@@ -96,7 +96,7 @@ async function $do(
|
|
|
96
96
|
charEncoding: "percent",
|
|
97
97
|
}),
|
|
98
98
|
};
|
|
99
|
-
const path = pathToFunc("/payments/{paymentId}/routes")(pathParams);
|
|
99
|
+
const path = pathToFunc("/v2/payments/{paymentId}/routes")(pathParams);
|
|
100
100
|
|
|
101
101
|
const query = encodeFormQuery({
|
|
102
102
|
"testmode": payload.testmode ?? client._options.testmode,
|
package/src/funcs/invoicesGet.ts
CHANGED
|
@@ -102,7 +102,7 @@ async function $do(
|
|
|
102
102
|
charEncoding: "percent",
|
|
103
103
|
}),
|
|
104
104
|
};
|
|
105
|
-
const path = pathToFunc("/invoices/{invoiceId}")(pathParams);
|
|
105
|
+
const path = pathToFunc("/v2/invoices/{invoiceId}")(pathParams);
|
|
106
106
|
|
|
107
107
|
const headers = new Headers(compactMap({
|
|
108
108
|
Accept: "application/hal+json",
|
|
@@ -103,7 +103,7 @@ async function $do(
|
|
|
103
103
|
charEncoding: "percent",
|
|
104
104
|
}),
|
|
105
105
|
};
|
|
106
|
-
const path = pathToFunc("/customers/{customerId}/mandates")(pathParams);
|
|
106
|
+
const path = pathToFunc("/v2/customers/{customerId}/mandates")(pathParams);
|
|
107
107
|
|
|
108
108
|
const headers = new Headers(compactMap({
|
|
109
109
|
"Content-Type": "application/json",
|
package/src/funcs/mandatesGet.ts
CHANGED
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
};
|
|
115
115
|
const path = options?.[URL_OVERRIDE]
|
|
116
116
|
? ""
|
|
117
|
-
: pathToFunc("/customers/{customerId}/mandates")(pathParams);
|
|
117
|
+
: pathToFunc("/v2/customers/{customerId}/mandates")(pathParams);
|
|
118
118
|
|
|
119
119
|
const query = options?.[URL_OVERRIDE]
|
|
120
120
|
? options[URL_OVERRIDE].search.substring(1)
|
package/src/funcs/methodsAll.ts
CHANGED
package/src/funcs/methodsGet.ts
CHANGED
|
@@ -108,7 +108,7 @@ async function $do(
|
|
|
108
108
|
charEncoding: "percent",
|
|
109
109
|
}),
|
|
110
110
|
};
|
|
111
|
-
const path = pathToFunc("/methods/{methodId}")(pathParams);
|
|
111
|
+
const path = pathToFunc("/v2/methods/{methodId}")(pathParams);
|
|
112
112
|
|
|
113
113
|
const query = encodeFormQuery({
|
|
114
114
|
"currency": payload.currency,
|
package/src/funcs/methodsList.ts
CHANGED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 35ab1f6a4a10
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { ClientCore } from "../core.js";
|
|
7
|
+
import * as b64$ from "../lib/base64.js";
|
|
8
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
9
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
10
|
+
import * as M from "../lib/matchers.js";
|
|
11
|
+
import { compactMap } from "../lib/primitives.js";
|
|
12
|
+
import { safeParse } from "../lib/schemas.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
15
|
+
import { pathToFunc } from "../lib/url.js";
|
|
16
|
+
import { ClientError } from "../models/errors/clienterror.js";
|
|
17
|
+
import {
|
|
18
|
+
ConnectionError,
|
|
19
|
+
InvalidRequestError,
|
|
20
|
+
RequestAbortedError,
|
|
21
|
+
RequestTimeoutError,
|
|
22
|
+
UnexpectedClientError,
|
|
23
|
+
} from "../models/errors/httpclienterrors.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { OauthGenerateTokensServerList } from "../models/operations/oauthgeneratetokens.js";
|
|
28
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
29
|
+
import { Result } from "../types/fp.js";
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Generate tokens
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Exchange the authorization code you received from the [Authorize endpoint](oauth-authorize) for an 'access token'
|
|
36
|
+
* API credential, with which you can communicate with the Mollie API on behalf of the consenting merchant.
|
|
37
|
+
*
|
|
38
|
+
* This endpoint can only be accessed using **OAuth client credentials**.
|
|
39
|
+
*
|
|
40
|
+
* If set, this operation will use {@link Security.oAuth} from the global security.
|
|
41
|
+
*/
|
|
42
|
+
export function oauthGenerate(
|
|
43
|
+
client: ClientCore,
|
|
44
|
+
request?: operations.OauthGenerateTokensRequest | undefined,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): APIPromise<
|
|
47
|
+
Result<
|
|
48
|
+
Uint8Array,
|
|
49
|
+
| ClientError
|
|
50
|
+
| ResponseValidationError
|
|
51
|
+
| ConnectionError
|
|
52
|
+
| RequestAbortedError
|
|
53
|
+
| RequestTimeoutError
|
|
54
|
+
| InvalidRequestError
|
|
55
|
+
| UnexpectedClientError
|
|
56
|
+
| SDKValidationError
|
|
57
|
+
>
|
|
58
|
+
> {
|
|
59
|
+
return new APIPromise($do(
|
|
60
|
+
client,
|
|
61
|
+
request,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async function $do(
|
|
67
|
+
client: ClientCore,
|
|
68
|
+
request?: operations.OauthGenerateTokensRequest | undefined,
|
|
69
|
+
options?: RequestOptions,
|
|
70
|
+
): Promise<
|
|
71
|
+
[
|
|
72
|
+
Result<
|
|
73
|
+
Uint8Array,
|
|
74
|
+
| ClientError
|
|
75
|
+
| ResponseValidationError
|
|
76
|
+
| ConnectionError
|
|
77
|
+
| RequestAbortedError
|
|
78
|
+
| RequestTimeoutError
|
|
79
|
+
| InvalidRequestError
|
|
80
|
+
| UnexpectedClientError
|
|
81
|
+
| SDKValidationError
|
|
82
|
+
>,
|
|
83
|
+
APICall,
|
|
84
|
+
]
|
|
85
|
+
> {
|
|
86
|
+
const parsed = safeParse(
|
|
87
|
+
request,
|
|
88
|
+
(value) =>
|
|
89
|
+
operations.OauthGenerateTokensRequest$outboundSchema.optional().parse(
|
|
90
|
+
value,
|
|
91
|
+
),
|
|
92
|
+
"Input validation failed",
|
|
93
|
+
);
|
|
94
|
+
if (!parsed.ok) {
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
96
|
+
}
|
|
97
|
+
const payload = parsed.value;
|
|
98
|
+
const body = encodeJSON("body", payload?.RequestBody, { explode: true });
|
|
99
|
+
|
|
100
|
+
const baseURL = options?.serverURL
|
|
101
|
+
|| pathToFunc(OauthGenerateTokensServerList[0], {
|
|
102
|
+
charEncoding: "percent",
|
|
103
|
+
})();
|
|
104
|
+
|
|
105
|
+
const path = pathToFunc("/oauth2/tokens")();
|
|
106
|
+
|
|
107
|
+
const headers = new Headers(compactMap({
|
|
108
|
+
"Content-Type": "application/json",
|
|
109
|
+
Accept: "text/html",
|
|
110
|
+
"idempotency-key": encodeSimple(
|
|
111
|
+
"idempotency-key",
|
|
112
|
+
payload?.["idempotency-key"],
|
|
113
|
+
{ explode: false, charEncoding: "none" },
|
|
114
|
+
),
|
|
115
|
+
}));
|
|
116
|
+
|
|
117
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
118
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [2]);
|
|
119
|
+
|
|
120
|
+
const context = {
|
|
121
|
+
options: client._options,
|
|
122
|
+
baseURL: baseURL ?? "",
|
|
123
|
+
operationID: "oauth-generate-tokens",
|
|
124
|
+
oAuth2Scopes: null,
|
|
125
|
+
|
|
126
|
+
resolvedSecurity: requestSecurity,
|
|
127
|
+
|
|
128
|
+
securitySource: client._options.security,
|
|
129
|
+
retryConfig: options?.retries
|
|
130
|
+
|| client._options.retryConfig
|
|
131
|
+
|| {
|
|
132
|
+
strategy: "backoff",
|
|
133
|
+
backoff: {
|
|
134
|
+
initialInterval: 500,
|
|
135
|
+
maxInterval: 5000,
|
|
136
|
+
exponent: 2,
|
|
137
|
+
maxElapsedTime: 7500,
|
|
138
|
+
},
|
|
139
|
+
retryConnectionErrors: true,
|
|
140
|
+
}
|
|
141
|
+
|| { strategy: "none" },
|
|
142
|
+
retryCodes: options?.retryCodes || ["5xx"],
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
const requestRes = client._createRequest(context, {
|
|
146
|
+
security: requestSecurity,
|
|
147
|
+
method: "POST",
|
|
148
|
+
baseURL: baseURL,
|
|
149
|
+
path: path,
|
|
150
|
+
headers: headers,
|
|
151
|
+
body: body,
|
|
152
|
+
userAgent: client._options.userAgent,
|
|
153
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
154
|
+
}, options);
|
|
155
|
+
if (!requestRes.ok) {
|
|
156
|
+
return [requestRes, { status: "invalid" }];
|
|
157
|
+
}
|
|
158
|
+
const req = requestRes.value;
|
|
159
|
+
|
|
160
|
+
const doResult = await client._do(req, {
|
|
161
|
+
context,
|
|
162
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
163
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
164
|
+
retryConfig: context.retryConfig,
|
|
165
|
+
retryCodes: context.retryCodes,
|
|
166
|
+
});
|
|
167
|
+
if (!doResult.ok) {
|
|
168
|
+
return [doResult, { status: "request-error", request: req }];
|
|
169
|
+
}
|
|
170
|
+
const response = doResult.value;
|
|
171
|
+
|
|
172
|
+
const [result] = await M.match<
|
|
173
|
+
Uint8Array,
|
|
174
|
+
| ClientError
|
|
175
|
+
| ResponseValidationError
|
|
176
|
+
| ConnectionError
|
|
177
|
+
| RequestAbortedError
|
|
178
|
+
| RequestTimeoutError
|
|
179
|
+
| InvalidRequestError
|
|
180
|
+
| UnexpectedClientError
|
|
181
|
+
| SDKValidationError
|
|
182
|
+
>(
|
|
183
|
+
M.bytes(200, b64$.zodInbound, { ctype: "text/html" }),
|
|
184
|
+
M.fail("4XX"),
|
|
185
|
+
M.fail("5XX"),
|
|
186
|
+
)(response, req);
|
|
187
|
+
if (!result.ok) {
|
|
188
|
+
return [result, { status: "complete", request: req, response }];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
|
+
}
|