mollie-api-typescript 1.5.4 → 1.6.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/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/listpaymentresponse.d.ts +1 -1
- package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +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/models/operations/updatepayment.d.ts +1 -1
- package/dist/commonjs/models/paymentrequest.d.ts +1 -1
- package/dist/commonjs/models/paymentresponse.d.ts +1 -1
- 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/listpaymentresponse.d.ts +1 -1
- package/dist/esm/models/listsettlementpaymentresponse.d.ts +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/models/operations/updatepayment.d.ts +1 -1
- package/dist/esm/models/paymentrequest.d.ts +1 -1
- package/dist/esm/models/paymentresponse.d.ts +1 -1
- 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/listpaymentresponse.ts +1 -1
- package/src/models/listsettlementpaymentresponse.ts +1 -1
- 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/models/operations/updatepayment.ts +1 -1
- package/src/models/paymentrequest.ts +1 -1
- package/src/models/paymentresponse.ts +1 -1
- package/src/sdk/oauth.ts +53 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d5e2632adf8f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export const OauthGenerateTokensServerList = [
|
|
13
|
+
"https://api.mollie.com/oauth2",
|
|
14
|
+
] as const;
|
|
15
|
+
|
|
16
|
+
export type OauthGenerateTokensRequestBody = {
|
|
17
|
+
/**
|
|
18
|
+
* If you wish to exchange your authorization code for an app access token, use grant type
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* `authorization_code`. If you wish to renew your app access token with your refresh token, use grant type
|
|
22
|
+
* `refresh_token`.
|
|
23
|
+
*
|
|
24
|
+
* Possible values: `authorization_code` `refresh_token`
|
|
25
|
+
*/
|
|
26
|
+
grantType: string;
|
|
27
|
+
/**
|
|
28
|
+
* The authorization code you received when creating the authorization. Only use this field when using
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* grant type `authorization_code`.
|
|
32
|
+
*/
|
|
33
|
+
code?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The refresh token you received when creating the authorization. Only use this field when using grant
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* type `refresh_token`.
|
|
39
|
+
*/
|
|
40
|
+
refreshToken?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The URL the merchant is sent back to once the request has been authorized. It must match the URL you set
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* when registering your app.
|
|
46
|
+
*
|
|
47
|
+
* For consecutive refresh token requests, this parameter is required only if the initial authorization
|
|
48
|
+
* code grant request also contained a `redirect_uri`.
|
|
49
|
+
*/
|
|
50
|
+
redirectUri?: string | null | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type OauthGenerateTokensRequest = {
|
|
54
|
+
/**
|
|
55
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
56
|
+
*/
|
|
57
|
+
idempotencyKey?: string | undefined;
|
|
58
|
+
requestBody?: OauthGenerateTokensRequestBody | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The newly generated access token and refresh token.
|
|
63
|
+
*/
|
|
64
|
+
export type OauthGenerateTokensResponseBody = {
|
|
65
|
+
/**
|
|
66
|
+
* The app access token, with which you will be able to access the Mollie API on the merchant's behalf.
|
|
67
|
+
*/
|
|
68
|
+
accessToken?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The refresh token, with which you will be able to retrieve new app access tokens on this endpoint. The
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* refresh token does not expire.
|
|
74
|
+
*/
|
|
75
|
+
refreshToken?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* The number of seconds left before the app access token expires. Be sure to renew your app access token
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* before this reaches zero.
|
|
81
|
+
*/
|
|
82
|
+
expiresIn?: number | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* As per OAuth standards, the provided app access token can only be used with `bearer` authentication.
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
*
|
|
88
|
+
* Possible values: `bearer`
|
|
89
|
+
*/
|
|
90
|
+
tokenType?: string | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* A space-separated list of [permissions](https://docs.mollie.com/docs/permissions).
|
|
93
|
+
*/
|
|
94
|
+
scope?: string | undefined;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type OauthGenerateTokensRequestBody$Outbound = {
|
|
99
|
+
grant_type: string;
|
|
100
|
+
code?: string | null | undefined;
|
|
101
|
+
refresh_token?: string | null | undefined;
|
|
102
|
+
redirect_uri?: string | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const OauthGenerateTokensRequestBody$outboundSchema: z.ZodType<
|
|
107
|
+
OauthGenerateTokensRequestBody$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
OauthGenerateTokensRequestBody
|
|
110
|
+
> = z.object({
|
|
111
|
+
grantType: z.string(),
|
|
112
|
+
code: z.nullable(z.string()).optional(),
|
|
113
|
+
refreshToken: z.nullable(z.string()).optional(),
|
|
114
|
+
redirectUri: z.nullable(z.string()).optional(),
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
grantType: "grant_type",
|
|
118
|
+
refreshToken: "refresh_token",
|
|
119
|
+
redirectUri: "redirect_uri",
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
export function oauthGenerateTokensRequestBodyToJSON(
|
|
124
|
+
oauthGenerateTokensRequestBody: OauthGenerateTokensRequestBody,
|
|
125
|
+
): string {
|
|
126
|
+
return JSON.stringify(
|
|
127
|
+
OauthGenerateTokensRequestBody$outboundSchema.parse(
|
|
128
|
+
oauthGenerateTokensRequestBody,
|
|
129
|
+
),
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type OauthGenerateTokensRequest$Outbound = {
|
|
135
|
+
"idempotency-key"?: string | undefined;
|
|
136
|
+
RequestBody?: OauthGenerateTokensRequestBody$Outbound | undefined;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const OauthGenerateTokensRequest$outboundSchema: z.ZodType<
|
|
141
|
+
OauthGenerateTokensRequest$Outbound,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
OauthGenerateTokensRequest
|
|
144
|
+
> = z.object({
|
|
145
|
+
idempotencyKey: z.string().optional(),
|
|
146
|
+
requestBody: z.lazy(() => OauthGenerateTokensRequestBody$outboundSchema)
|
|
147
|
+
.optional(),
|
|
148
|
+
}).transform((v) => {
|
|
149
|
+
return remap$(v, {
|
|
150
|
+
idempotencyKey: "idempotency-key",
|
|
151
|
+
requestBody: "RequestBody",
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
export function oauthGenerateTokensRequestToJSON(
|
|
156
|
+
oauthGenerateTokensRequest: OauthGenerateTokensRequest,
|
|
157
|
+
): string {
|
|
158
|
+
return JSON.stringify(
|
|
159
|
+
OauthGenerateTokensRequest$outboundSchema.parse(oauthGenerateTokensRequest),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const OauthGenerateTokensResponseBody$inboundSchema: z.ZodType<
|
|
165
|
+
OauthGenerateTokensResponseBody,
|
|
166
|
+
z.ZodTypeDef,
|
|
167
|
+
unknown
|
|
168
|
+
> = z.object({
|
|
169
|
+
access_token: z.string().optional(),
|
|
170
|
+
refresh_token: z.string().optional(),
|
|
171
|
+
expires_in: z.number().int().optional(),
|
|
172
|
+
token_type: z.string().optional(),
|
|
173
|
+
scope: z.string().optional(),
|
|
174
|
+
}).transform((v) => {
|
|
175
|
+
return remap$(v, {
|
|
176
|
+
"access_token": "accessToken",
|
|
177
|
+
"refresh_token": "refreshToken",
|
|
178
|
+
"expires_in": "expiresIn",
|
|
179
|
+
"token_type": "tokenType",
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
export function oauthGenerateTokensResponseBodyFromJSON(
|
|
184
|
+
jsonString: string,
|
|
185
|
+
): SafeParseResult<OauthGenerateTokensResponseBody, SDKValidationError> {
|
|
186
|
+
return safeParse(
|
|
187
|
+
jsonString,
|
|
188
|
+
(x) => OauthGenerateTokensResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
189
|
+
`Failed to parse 'OauthGenerateTokensResponseBody' from JSON`,
|
|
190
|
+
);
|
|
191
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7c9c50253889
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
|
|
9
|
+
export const OauthRevokeTokensServerList = [
|
|
10
|
+
"https://api.mollie.com/oauth2",
|
|
11
|
+
] as const;
|
|
12
|
+
|
|
13
|
+
export type OauthRevokeTokensRequestBody = {
|
|
14
|
+
/**
|
|
15
|
+
* The type of token you want to revoke.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
*
|
|
19
|
+
* Possible values: `access_token` `refresh_token`
|
|
20
|
+
*/
|
|
21
|
+
tokenTypeHint: string;
|
|
22
|
+
/**
|
|
23
|
+
* The token you want to revoke.
|
|
24
|
+
*/
|
|
25
|
+
token: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export type OauthRevokeTokensRequest = {
|
|
29
|
+
/**
|
|
30
|
+
* A unique key to ensure idempotent requests. This key should be a UUID v4 string.
|
|
31
|
+
*/
|
|
32
|
+
idempotencyKey?: string | undefined;
|
|
33
|
+
requestBody?: OauthRevokeTokensRequestBody | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export type OauthRevokeTokensRequestBody$Outbound = {
|
|
38
|
+
token_type_hint: string;
|
|
39
|
+
token: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const OauthRevokeTokensRequestBody$outboundSchema: z.ZodType<
|
|
44
|
+
OauthRevokeTokensRequestBody$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
OauthRevokeTokensRequestBody
|
|
47
|
+
> = z.object({
|
|
48
|
+
tokenTypeHint: z.string(),
|
|
49
|
+
token: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
tokenTypeHint: "token_type_hint",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function oauthRevokeTokensRequestBodyToJSON(
|
|
57
|
+
oauthRevokeTokensRequestBody: OauthRevokeTokensRequestBody,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
OauthRevokeTokensRequestBody$outboundSchema.parse(
|
|
61
|
+
oauthRevokeTokensRequestBody,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export type OauthRevokeTokensRequest$Outbound = {
|
|
68
|
+
"idempotency-key"?: string | undefined;
|
|
69
|
+
RequestBody?: OauthRevokeTokensRequestBody$Outbound | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const OauthRevokeTokensRequest$outboundSchema: z.ZodType<
|
|
74
|
+
OauthRevokeTokensRequest$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
OauthRevokeTokensRequest
|
|
77
|
+
> = z.object({
|
|
78
|
+
idempotencyKey: z.string().optional(),
|
|
79
|
+
requestBody: z.lazy(() => OauthRevokeTokensRequestBody$outboundSchema)
|
|
80
|
+
.optional(),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return remap$(v, {
|
|
83
|
+
idempotencyKey: "idempotency-key",
|
|
84
|
+
requestBody: "RequestBody",
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export function oauthRevokeTokensRequestToJSON(
|
|
89
|
+
oauthRevokeTokensRequest: OauthRevokeTokensRequest,
|
|
90
|
+
): string {
|
|
91
|
+
return JSON.stringify(
|
|
92
|
+
OauthRevokeTokensRequest$outboundSchema.parse(oauthRevokeTokensRequest),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -9,7 +9,7 @@ import * as models from "../index.js";
|
|
|
9
9
|
|
|
10
10
|
export type UpdatePaymentRequestBody = {
|
|
11
11
|
/**
|
|
12
|
-
* The description of the payment
|
|
12
|
+
* The description of the payment will be shown to your customer on their card or bank statement when possible.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
15
|
* We truncate the description automatically according to the limits of the used payment method. The description is
|
|
@@ -259,7 +259,7 @@ export type Company = {
|
|
|
259
259
|
|
|
260
260
|
export type PaymentRequest = {
|
|
261
261
|
/**
|
|
262
|
-
* The description of the payment
|
|
262
|
+
* The description of the payment will be shown to your customer on their card or bank statement when possible.
|
|
263
263
|
*
|
|
264
264
|
* @remarks
|
|
265
265
|
* We truncate the description automatically according to the limits of the used payment method. The description is
|
|
@@ -810,7 +810,7 @@ export type PaymentResponse = {
|
|
|
810
810
|
*/
|
|
811
811
|
mode: Mode;
|
|
812
812
|
/**
|
|
813
|
-
* The description of the payment
|
|
813
|
+
* The description of the payment will be shown to your customer on their card or bank statement when possible.
|
|
814
814
|
*
|
|
815
815
|
* @remarks
|
|
816
816
|
* We truncate the description automatically according to the limits of the used payment method. The description is
|
package/src/sdk/oauth.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 37b7f9b2970b
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { oauthGenerate } from "../funcs/oauthGenerate.js";
|
|
7
|
+
import { oauthRevoke } from "../funcs/oauthRevoke.js";
|
|
8
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
9
|
+
import * as operations from "../models/operations/index.js";
|
|
10
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
11
|
+
|
|
12
|
+
export class Oauth extends ClientSDK {
|
|
13
|
+
/**
|
|
14
|
+
* Generate tokens
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* Exchange the authorization code you received from the [Authorize endpoint](oauth-authorize) for an 'access token'
|
|
18
|
+
* API credential, with which you can communicate with the Mollie API on behalf of the consenting merchant.
|
|
19
|
+
*
|
|
20
|
+
* This endpoint can only be accessed using **OAuth client credentials**.
|
|
21
|
+
*/
|
|
22
|
+
async generate(
|
|
23
|
+
request?: operations.OauthGenerateTokensRequest | undefined,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<Uint8Array> {
|
|
26
|
+
return unwrapAsync(oauthGenerate(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Revoke tokens
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Revoke an access token or refresh token. Once revoked, the token can no longer be used.
|
|
38
|
+
*
|
|
39
|
+
* Revoking a refresh token revokes all access tokens that were created using the same authorization.
|
|
40
|
+
*
|
|
41
|
+
* This endpoint can only be accessed using **OAuth client credentials**.
|
|
42
|
+
*/
|
|
43
|
+
async revoke(
|
|
44
|
+
request?: operations.OauthRevokeTokensRequest | undefined,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): Promise<void> {
|
|
47
|
+
return unwrapAsync(oauthRevoke(
|
|
48
|
+
this,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { DelayedRouting } from "./delayedrouting.js";
|
|
|
17
17
|
import { Invoices } from "./invoices.js";
|
|
18
18
|
import { Mandates } from "./mandates.js";
|
|
19
19
|
import { Methods } from "./methods.js";
|
|
20
|
+
import { Oauth } from "./oauth.js";
|
|
20
21
|
import { Onboarding } from "./onboarding.js";
|
|
21
22
|
import { Organizations } from "./organizations.js";
|
|
22
23
|
import { PaymentLinks } from "./paymentlinks.js";
|
|
@@ -37,6 +38,11 @@ import { WebhookEvents } from "./webhookevents.js";
|
|
|
37
38
|
import { Webhooks } from "./webhooks.js";
|
|
38
39
|
|
|
39
40
|
export class Client extends ClientSDK {
|
|
41
|
+
private _oauth?: Oauth;
|
|
42
|
+
get oauth(): Oauth {
|
|
43
|
+
return (this._oauth ??= new Oauth(this._options));
|
|
44
|
+
}
|
|
45
|
+
|
|
40
46
|
private _balances?: Balances;
|
|
41
47
|
get balances(): Balances {
|
|
42
48
|
return (this._balances ??= new Balances(this._options));
|