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.
Files changed (642) hide show
  1. package/FUNCTIONS.md +5 -11
  2. package/README.md +45 -39
  3. package/dist/commonjs/funcs/accountsGet.js +1 -1
  4. package/dist/commonjs/funcs/accountsGet.js.map +1 -1
  5. package/dist/commonjs/funcs/accountsGetAccount.js +1 -1
  6. package/dist/commonjs/funcs/accountsGetAccount.js.map +1 -1
  7. package/dist/commonjs/funcs/accountsList.js +1 -1
  8. package/dist/commonjs/funcs/accountsList.js.map +1 -1
  9. package/dist/commonjs/funcs/accountsListAccounts.js +1 -1
  10. package/dist/commonjs/funcs/accountsListAccounts.js.map +1 -1
  11. package/dist/commonjs/funcs/balanceTransfersCreate.js +1 -1
  12. package/dist/commonjs/funcs/balanceTransfersCreate.js.map +1 -1
  13. package/dist/commonjs/funcs/balanceTransfersGet.js +1 -1
  14. package/dist/commonjs/funcs/balanceTransfersGet.js.map +1 -1
  15. package/dist/commonjs/funcs/balanceTransfersList.js +1 -1
  16. package/dist/commonjs/funcs/balanceTransfersList.js.map +1 -1
  17. package/dist/commonjs/funcs/balancesGet.js +1 -1
  18. package/dist/commonjs/funcs/balancesGet.js.map +1 -1
  19. package/dist/commonjs/funcs/balancesGetPrimary.js +1 -1
  20. package/dist/commonjs/funcs/balancesGetPrimary.js.map +1 -1
  21. package/dist/commonjs/funcs/balancesGetReport.js +1 -1
  22. package/dist/commonjs/funcs/balancesGetReport.js.map +1 -1
  23. package/dist/commonjs/funcs/balancesList.js +1 -1
  24. package/dist/commonjs/funcs/balancesList.js.map +1 -1
  25. package/dist/commonjs/funcs/balancesListTransactions.js +1 -1
  26. package/dist/commonjs/funcs/balancesListTransactions.js.map +1 -1
  27. package/dist/commonjs/funcs/capabilitiesList.js +1 -1
  28. package/dist/commonjs/funcs/capabilitiesList.js.map +1 -1
  29. package/dist/commonjs/funcs/capturesCreate.js +1 -1
  30. package/dist/commonjs/funcs/capturesCreate.js.map +1 -1
  31. package/dist/commonjs/funcs/capturesGet.js +1 -1
  32. package/dist/commonjs/funcs/capturesGet.js.map +1 -1
  33. package/dist/commonjs/funcs/capturesList.js +1 -1
  34. package/dist/commonjs/funcs/capturesList.js.map +1 -1
  35. package/dist/commonjs/funcs/chargebacksAll.js +1 -1
  36. package/dist/commonjs/funcs/chargebacksAll.js.map +1 -1
  37. package/dist/commonjs/funcs/chargebacksGet.js +1 -1
  38. package/dist/commonjs/funcs/chargebacksGet.js.map +1 -1
  39. package/dist/commonjs/funcs/chargebacksList.js +1 -1
  40. package/dist/commonjs/funcs/chargebacksList.js.map +1 -1
  41. package/dist/commonjs/funcs/clientLinksCreate.js +1 -1
  42. package/dist/commonjs/funcs/clientLinksCreate.js.map +1 -1
  43. package/dist/commonjs/funcs/clientsGet.js +1 -1
  44. package/dist/commonjs/funcs/clientsGet.js.map +1 -1
  45. package/dist/commonjs/funcs/clientsList.js +1 -1
  46. package/dist/commonjs/funcs/clientsList.js.map +1 -1
  47. package/dist/commonjs/funcs/customersCreate.js +1 -1
  48. package/dist/commonjs/funcs/customersCreate.js.map +1 -1
  49. package/dist/commonjs/funcs/customersCreatePayment.js +1 -1
  50. package/dist/commonjs/funcs/customersCreatePayment.js.map +1 -1
  51. package/dist/commonjs/funcs/customersDelete.js +1 -1
  52. package/dist/commonjs/funcs/customersDelete.js.map +1 -1
  53. package/dist/commonjs/funcs/customersGet.js +1 -1
  54. package/dist/commonjs/funcs/customersGet.js.map +1 -1
  55. package/dist/commonjs/funcs/customersList.js +1 -1
  56. package/dist/commonjs/funcs/customersList.js.map +1 -1
  57. package/dist/commonjs/funcs/customersListPayments.js +1 -1
  58. package/dist/commonjs/funcs/customersListPayments.js.map +1 -1
  59. package/dist/commonjs/funcs/customersUpdate.js +1 -1
  60. package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
  61. package/dist/commonjs/funcs/delayedRoutingCreate.js +1 -1
  62. package/dist/commonjs/funcs/delayedRoutingCreate.js.map +1 -1
  63. package/dist/commonjs/funcs/delayedRoutingGet.js +1 -1
  64. package/dist/commonjs/funcs/delayedRoutingGet.js.map +1 -1
  65. package/dist/commonjs/funcs/delayedRoutingList.js +1 -1
  66. package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
  67. package/dist/commonjs/funcs/invoicesGet.js +1 -1
  68. package/dist/commonjs/funcs/invoicesGet.js.map +1 -1
  69. package/dist/commonjs/funcs/invoicesList.js +1 -1
  70. package/dist/commonjs/funcs/invoicesList.js.map +1 -1
  71. package/dist/commonjs/funcs/mandatesCreate.js +1 -1
  72. package/dist/commonjs/funcs/mandatesCreate.js.map +1 -1
  73. package/dist/commonjs/funcs/mandatesGet.js +1 -1
  74. package/dist/commonjs/funcs/mandatesGet.js.map +1 -1
  75. package/dist/commonjs/funcs/mandatesList.js +1 -1
  76. package/dist/commonjs/funcs/mandatesList.js.map +1 -1
  77. package/dist/commonjs/funcs/mandatesRevoke.js +1 -1
  78. package/dist/commonjs/funcs/mandatesRevoke.js.map +1 -1
  79. package/dist/commonjs/funcs/methodsAll.js +1 -1
  80. package/dist/commonjs/funcs/methodsAll.js.map +1 -1
  81. package/dist/commonjs/funcs/methodsGet.js +1 -1
  82. package/dist/commonjs/funcs/methodsGet.js.map +1 -1
  83. package/dist/commonjs/funcs/methodsList.js +1 -1
  84. package/dist/commonjs/funcs/methodsList.js.map +1 -1
  85. package/dist/commonjs/funcs/oauthGenerate.d.ts +22 -0
  86. package/dist/commonjs/funcs/oauthGenerate.d.ts.map +1 -0
  87. package/dist/commonjs/funcs/oauthGenerate.js +137 -0
  88. package/dist/commonjs/funcs/oauthGenerate.js.map +1 -0
  89. package/dist/commonjs/funcs/oauthRevoke.d.ts +23 -0
  90. package/dist/commonjs/funcs/oauthRevoke.d.ts.map +1 -0
  91. package/dist/commonjs/funcs/oauthRevoke.js +138 -0
  92. package/dist/commonjs/funcs/oauthRevoke.js.map +1 -0
  93. package/dist/commonjs/funcs/onboardingGet.js +1 -1
  94. package/dist/commonjs/funcs/onboardingGet.js.map +1 -1
  95. package/dist/commonjs/funcs/onboardingSubmit.js +1 -1
  96. package/dist/commonjs/funcs/onboardingSubmit.js.map +1 -1
  97. package/dist/commonjs/funcs/organizationsGet.js +1 -1
  98. package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
  99. package/dist/commonjs/funcs/organizationsGetCurrent.js +1 -1
  100. package/dist/commonjs/funcs/organizationsGetCurrent.js.map +1 -1
  101. package/dist/commonjs/funcs/organizationsGetPartner.js +1 -1
  102. package/dist/commonjs/funcs/organizationsGetPartner.js.map +1 -1
  103. package/dist/commonjs/funcs/paymentLinksCreate.js +1 -1
  104. package/dist/commonjs/funcs/paymentLinksCreate.js.map +1 -1
  105. package/dist/commonjs/funcs/paymentLinksDelete.js +1 -1
  106. package/dist/commonjs/funcs/paymentLinksDelete.js.map +1 -1
  107. package/dist/commonjs/funcs/paymentLinksGet.js +1 -1
  108. package/dist/commonjs/funcs/paymentLinksGet.js.map +1 -1
  109. package/dist/commonjs/funcs/paymentLinksList.js +1 -1
  110. package/dist/commonjs/funcs/paymentLinksList.js.map +1 -1
  111. package/dist/commonjs/funcs/paymentLinksListPayments.js +1 -1
  112. package/dist/commonjs/funcs/paymentLinksListPayments.js.map +1 -1
  113. package/dist/commonjs/funcs/paymentLinksUpdate.js +1 -1
  114. package/dist/commonjs/funcs/paymentLinksUpdate.js.map +1 -1
  115. package/dist/commonjs/funcs/paymentsCancel.js +1 -1
  116. package/dist/commonjs/funcs/paymentsCancel.js.map +1 -1
  117. package/dist/commonjs/funcs/paymentsCreate.js +1 -1
  118. package/dist/commonjs/funcs/paymentsCreate.js.map +1 -1
  119. package/dist/commonjs/funcs/paymentsGet.js +1 -1
  120. package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
  121. package/dist/commonjs/funcs/paymentsList.js +1 -1
  122. package/dist/commonjs/funcs/paymentsList.js.map +1 -1
  123. package/dist/commonjs/funcs/paymentsReleaseAuthorization.js +1 -1
  124. package/dist/commonjs/funcs/paymentsReleaseAuthorization.js.map +1 -1
  125. package/dist/commonjs/funcs/paymentsUpdate.js +1 -1
  126. package/dist/commonjs/funcs/paymentsUpdate.js.map +1 -1
  127. package/dist/commonjs/funcs/permissionsGet.js +1 -1
  128. package/dist/commonjs/funcs/permissionsGet.js.map +1 -1
  129. package/dist/commonjs/funcs/permissionsList.js +1 -1
  130. package/dist/commonjs/funcs/permissionsList.js.map +1 -1
  131. package/dist/commonjs/funcs/profilesCreate.js +1 -1
  132. package/dist/commonjs/funcs/profilesCreate.js.map +1 -1
  133. package/dist/commonjs/funcs/profilesDelete.js +1 -1
  134. package/dist/commonjs/funcs/profilesDelete.js.map +1 -1
  135. package/dist/commonjs/funcs/profilesGet.js +1 -1
  136. package/dist/commonjs/funcs/profilesGet.js.map +1 -1
  137. package/dist/commonjs/funcs/profilesGetCurrent.js +1 -1
  138. package/dist/commonjs/funcs/profilesGetCurrent.js.map +1 -1
  139. package/dist/commonjs/funcs/profilesList.js +1 -1
  140. package/dist/commonjs/funcs/profilesList.js.map +1 -1
  141. package/dist/commonjs/funcs/profilesUpdate.js +1 -1
  142. package/dist/commonjs/funcs/profilesUpdate.js.map +1 -1
  143. package/dist/commonjs/funcs/refundsAll.js +1 -1
  144. package/dist/commonjs/funcs/refundsAll.js.map +1 -1
  145. package/dist/commonjs/funcs/refundsCancel.js +1 -1
  146. package/dist/commonjs/funcs/refundsCancel.js.map +1 -1
  147. package/dist/commonjs/funcs/refundsCreate.js +1 -1
  148. package/dist/commonjs/funcs/refundsCreate.js.map +1 -1
  149. package/dist/commonjs/funcs/refundsGet.js +1 -1
  150. package/dist/commonjs/funcs/refundsGet.js.map +1 -1
  151. package/dist/commonjs/funcs/refundsList.js +1 -1
  152. package/dist/commonjs/funcs/refundsList.js.map +1 -1
  153. package/dist/commonjs/funcs/salesInvoicesCreate.js +1 -1
  154. package/dist/commonjs/funcs/salesInvoicesCreate.js.map +1 -1
  155. package/dist/commonjs/funcs/salesInvoicesDelete.js +1 -1
  156. package/dist/commonjs/funcs/salesInvoicesDelete.js.map +1 -1
  157. package/dist/commonjs/funcs/salesInvoicesGet.js +1 -1
  158. package/dist/commonjs/funcs/salesInvoicesGet.js.map +1 -1
  159. package/dist/commonjs/funcs/salesInvoicesList.js +1 -1
  160. package/dist/commonjs/funcs/salesInvoicesList.js.map +1 -1
  161. package/dist/commonjs/funcs/salesInvoicesUpdate.js +1 -1
  162. package/dist/commonjs/funcs/salesInvoicesUpdate.js.map +1 -1
  163. package/dist/commonjs/funcs/sessionsCreate.js +1 -1
  164. package/dist/commonjs/funcs/sessionsCreate.js.map +1 -1
  165. package/dist/commonjs/funcs/sessionsGet.js +1 -1
  166. package/dist/commonjs/funcs/sessionsGet.js.map +1 -1
  167. package/dist/commonjs/funcs/settlementsGet.js +1 -1
  168. package/dist/commonjs/funcs/settlementsGet.js.map +1 -1
  169. package/dist/commonjs/funcs/settlementsGetNext.js +1 -1
  170. package/dist/commonjs/funcs/settlementsGetNext.js.map +1 -1
  171. package/dist/commonjs/funcs/settlementsGetOpen.js +1 -1
  172. package/dist/commonjs/funcs/settlementsGetOpen.js.map +1 -1
  173. package/dist/commonjs/funcs/settlementsList.js +1 -1
  174. package/dist/commonjs/funcs/settlementsList.js.map +1 -1
  175. package/dist/commonjs/funcs/settlementsListCaptures.js +1 -1
  176. package/dist/commonjs/funcs/settlementsListCaptures.js.map +1 -1
  177. package/dist/commonjs/funcs/settlementsListChargebacks.js +1 -1
  178. package/dist/commonjs/funcs/settlementsListChargebacks.js.map +1 -1
  179. package/dist/commonjs/funcs/settlementsListPayments.js +1 -1
  180. package/dist/commonjs/funcs/settlementsListPayments.js.map +1 -1
  181. package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
  182. package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
  183. package/dist/commonjs/funcs/subscriptionsAll.js +1 -1
  184. package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
  185. package/dist/commonjs/funcs/subscriptionsCancel.js +1 -1
  186. package/dist/commonjs/funcs/subscriptionsCancel.js.map +1 -1
  187. package/dist/commonjs/funcs/subscriptionsCreate.js +1 -1
  188. package/dist/commonjs/funcs/subscriptionsCreate.js.map +1 -1
  189. package/dist/commonjs/funcs/subscriptionsGet.js +1 -1
  190. package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
  191. package/dist/commonjs/funcs/subscriptionsList.js +1 -1
  192. package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
  193. package/dist/commonjs/funcs/subscriptionsListPayments.js +1 -1
  194. package/dist/commonjs/funcs/subscriptionsListPayments.js.map +1 -1
  195. package/dist/commonjs/funcs/subscriptionsUpdate.js +1 -1
  196. package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
  197. package/dist/commonjs/funcs/terminalsGet.js +1 -1
  198. package/dist/commonjs/funcs/terminalsGet.js.map +1 -1
  199. package/dist/commonjs/funcs/terminalsList.js +1 -1
  200. package/dist/commonjs/funcs/terminalsList.js.map +1 -1
  201. package/dist/commonjs/funcs/transfersCreate.js +1 -1
  202. package/dist/commonjs/funcs/transfersCreate.js.map +1 -1
  203. package/dist/commonjs/funcs/transfersGet.js +1 -1
  204. package/dist/commonjs/funcs/transfersGet.js.map +1 -1
  205. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +1 -1
  206. package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -1
  207. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +1 -1
  208. package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -1
  209. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +1 -1
  210. package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -1
  211. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +1 -1
  212. package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -1
  213. package/dist/commonjs/funcs/verifyPayeesCreate.js +1 -1
  214. package/dist/commonjs/funcs/verifyPayeesCreate.js.map +1 -1
  215. package/dist/commonjs/funcs/walletsRequestApplePaySession.js +1 -1
  216. package/dist/commonjs/funcs/walletsRequestApplePaySession.js.map +1 -1
  217. package/dist/commonjs/funcs/webhookEventsGet.js +1 -1
  218. package/dist/commonjs/funcs/webhookEventsGet.js.map +1 -1
  219. package/dist/commonjs/funcs/webhooksCreate.js +1 -1
  220. package/dist/commonjs/funcs/webhooksCreate.js.map +1 -1
  221. package/dist/commonjs/funcs/webhooksDelete.js +1 -1
  222. package/dist/commonjs/funcs/webhooksDelete.js.map +1 -1
  223. package/dist/commonjs/funcs/webhooksGet.js +1 -1
  224. package/dist/commonjs/funcs/webhooksGet.js.map +1 -1
  225. package/dist/commonjs/funcs/webhooksList.js +1 -1
  226. package/dist/commonjs/funcs/webhooksList.js.map +1 -1
  227. package/dist/commonjs/funcs/webhooksTest.js +1 -1
  228. package/dist/commonjs/funcs/webhooksTest.js.map +1 -1
  229. package/dist/commonjs/funcs/webhooksUpdate.js +1 -1
  230. package/dist/commonjs/funcs/webhooksUpdate.js.map +1 -1
  231. package/dist/commonjs/lib/config.d.ts +3 -3
  232. package/dist/commonjs/lib/config.d.ts.map +1 -1
  233. package/dist/commonjs/lib/config.js +3 -3
  234. package/dist/commonjs/lib/config.js.map +1 -1
  235. package/dist/commonjs/models/listpaymentresponse.d.ts +1 -1
  236. package/dist/commonjs/models/listsettlementpaymentresponse.d.ts +1 -1
  237. package/dist/commonjs/models/operations/index.d.ts +2 -0
  238. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  239. package/dist/commonjs/models/operations/index.js +2 -0
  240. package/dist/commonjs/models/operations/index.js.map +1 -1
  241. package/dist/commonjs/models/operations/oauthgeneratetokens.d.ts +104 -0
  242. package/dist/commonjs/models/operations/oauthgeneratetokens.d.ts.map +1 -0
  243. package/dist/commonjs/models/operations/oauthgeneratetokens.js +98 -0
  244. package/dist/commonjs/models/operations/oauthgeneratetokens.js.map +1 -0
  245. package/dist/commonjs/models/operations/oauthrevoketokens.d.ts +40 -0
  246. package/dist/commonjs/models/operations/oauthrevoketokens.d.ts.map +1 -0
  247. package/dist/commonjs/models/operations/oauthrevoketokens.js +74 -0
  248. package/dist/commonjs/models/operations/oauthrevoketokens.js.map +1 -0
  249. package/dist/commonjs/models/operations/updatepayment.d.ts +1 -1
  250. package/dist/commonjs/models/paymentrequest.d.ts +1 -1
  251. package/dist/commonjs/models/paymentresponse.d.ts +1 -1
  252. package/dist/commonjs/sdk/oauth.d.ts +26 -0
  253. package/dist/commonjs/sdk/oauth.d.ts.map +1 -0
  254. package/dist/commonjs/sdk/oauth.js +40 -0
  255. package/dist/commonjs/sdk/oauth.js.map +1 -0
  256. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  257. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  258. package/dist/commonjs/sdk/sdk.js +4 -0
  259. package/dist/commonjs/sdk/sdk.js.map +1 -1
  260. package/dist/esm/funcs/accountsGet.js +1 -1
  261. package/dist/esm/funcs/accountsGet.js.map +1 -1
  262. package/dist/esm/funcs/accountsGetAccount.js +1 -1
  263. package/dist/esm/funcs/accountsGetAccount.js.map +1 -1
  264. package/dist/esm/funcs/accountsList.js +1 -1
  265. package/dist/esm/funcs/accountsList.js.map +1 -1
  266. package/dist/esm/funcs/accountsListAccounts.js +1 -1
  267. package/dist/esm/funcs/accountsListAccounts.js.map +1 -1
  268. package/dist/esm/funcs/balanceTransfersCreate.js +1 -1
  269. package/dist/esm/funcs/balanceTransfersCreate.js.map +1 -1
  270. package/dist/esm/funcs/balanceTransfersGet.js +1 -1
  271. package/dist/esm/funcs/balanceTransfersGet.js.map +1 -1
  272. package/dist/esm/funcs/balanceTransfersList.js +1 -1
  273. package/dist/esm/funcs/balanceTransfersList.js.map +1 -1
  274. package/dist/esm/funcs/balancesGet.js +1 -1
  275. package/dist/esm/funcs/balancesGet.js.map +1 -1
  276. package/dist/esm/funcs/balancesGetPrimary.js +1 -1
  277. package/dist/esm/funcs/balancesGetPrimary.js.map +1 -1
  278. package/dist/esm/funcs/balancesGetReport.js +1 -1
  279. package/dist/esm/funcs/balancesGetReport.js.map +1 -1
  280. package/dist/esm/funcs/balancesList.js +1 -1
  281. package/dist/esm/funcs/balancesList.js.map +1 -1
  282. package/dist/esm/funcs/balancesListTransactions.js +1 -1
  283. package/dist/esm/funcs/balancesListTransactions.js.map +1 -1
  284. package/dist/esm/funcs/capabilitiesList.js +1 -1
  285. package/dist/esm/funcs/capabilitiesList.js.map +1 -1
  286. package/dist/esm/funcs/capturesCreate.js +1 -1
  287. package/dist/esm/funcs/capturesCreate.js.map +1 -1
  288. package/dist/esm/funcs/capturesGet.js +1 -1
  289. package/dist/esm/funcs/capturesGet.js.map +1 -1
  290. package/dist/esm/funcs/capturesList.js +1 -1
  291. package/dist/esm/funcs/capturesList.js.map +1 -1
  292. package/dist/esm/funcs/chargebacksAll.js +1 -1
  293. package/dist/esm/funcs/chargebacksAll.js.map +1 -1
  294. package/dist/esm/funcs/chargebacksGet.js +1 -1
  295. package/dist/esm/funcs/chargebacksGet.js.map +1 -1
  296. package/dist/esm/funcs/chargebacksList.js +1 -1
  297. package/dist/esm/funcs/chargebacksList.js.map +1 -1
  298. package/dist/esm/funcs/clientLinksCreate.js +1 -1
  299. package/dist/esm/funcs/clientLinksCreate.js.map +1 -1
  300. package/dist/esm/funcs/clientsGet.js +1 -1
  301. package/dist/esm/funcs/clientsGet.js.map +1 -1
  302. package/dist/esm/funcs/clientsList.js +1 -1
  303. package/dist/esm/funcs/clientsList.js.map +1 -1
  304. package/dist/esm/funcs/customersCreate.js +1 -1
  305. package/dist/esm/funcs/customersCreate.js.map +1 -1
  306. package/dist/esm/funcs/customersCreatePayment.js +1 -1
  307. package/dist/esm/funcs/customersCreatePayment.js.map +1 -1
  308. package/dist/esm/funcs/customersDelete.js +1 -1
  309. package/dist/esm/funcs/customersDelete.js.map +1 -1
  310. package/dist/esm/funcs/customersGet.js +1 -1
  311. package/dist/esm/funcs/customersGet.js.map +1 -1
  312. package/dist/esm/funcs/customersList.js +1 -1
  313. package/dist/esm/funcs/customersList.js.map +1 -1
  314. package/dist/esm/funcs/customersListPayments.js +1 -1
  315. package/dist/esm/funcs/customersListPayments.js.map +1 -1
  316. package/dist/esm/funcs/customersUpdate.js +1 -1
  317. package/dist/esm/funcs/customersUpdate.js.map +1 -1
  318. package/dist/esm/funcs/delayedRoutingCreate.js +1 -1
  319. package/dist/esm/funcs/delayedRoutingCreate.js.map +1 -1
  320. package/dist/esm/funcs/delayedRoutingGet.js +1 -1
  321. package/dist/esm/funcs/delayedRoutingGet.js.map +1 -1
  322. package/dist/esm/funcs/delayedRoutingList.js +1 -1
  323. package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
  324. package/dist/esm/funcs/invoicesGet.js +1 -1
  325. package/dist/esm/funcs/invoicesGet.js.map +1 -1
  326. package/dist/esm/funcs/invoicesList.js +1 -1
  327. package/dist/esm/funcs/invoicesList.js.map +1 -1
  328. package/dist/esm/funcs/mandatesCreate.js +1 -1
  329. package/dist/esm/funcs/mandatesCreate.js.map +1 -1
  330. package/dist/esm/funcs/mandatesGet.js +1 -1
  331. package/dist/esm/funcs/mandatesGet.js.map +1 -1
  332. package/dist/esm/funcs/mandatesList.js +1 -1
  333. package/dist/esm/funcs/mandatesList.js.map +1 -1
  334. package/dist/esm/funcs/mandatesRevoke.js +1 -1
  335. package/dist/esm/funcs/mandatesRevoke.js.map +1 -1
  336. package/dist/esm/funcs/methodsAll.js +1 -1
  337. package/dist/esm/funcs/methodsAll.js.map +1 -1
  338. package/dist/esm/funcs/methodsGet.js +1 -1
  339. package/dist/esm/funcs/methodsGet.js.map +1 -1
  340. package/dist/esm/funcs/methodsList.js +1 -1
  341. package/dist/esm/funcs/methodsList.js.map +1 -1
  342. package/dist/esm/funcs/oauthGenerate.d.ts +22 -0
  343. package/dist/esm/funcs/oauthGenerate.d.ts.map +1 -0
  344. package/dist/esm/funcs/oauthGenerate.js +101 -0
  345. package/dist/esm/funcs/oauthGenerate.js.map +1 -0
  346. package/dist/esm/funcs/oauthRevoke.d.ts +23 -0
  347. package/dist/esm/funcs/oauthRevoke.d.ts.map +1 -0
  348. package/dist/esm/funcs/oauthRevoke.js +102 -0
  349. package/dist/esm/funcs/oauthRevoke.js.map +1 -0
  350. package/dist/esm/funcs/onboardingGet.js +1 -1
  351. package/dist/esm/funcs/onboardingGet.js.map +1 -1
  352. package/dist/esm/funcs/onboardingSubmit.js +1 -1
  353. package/dist/esm/funcs/onboardingSubmit.js.map +1 -1
  354. package/dist/esm/funcs/organizationsGet.js +1 -1
  355. package/dist/esm/funcs/organizationsGet.js.map +1 -1
  356. package/dist/esm/funcs/organizationsGetCurrent.js +1 -1
  357. package/dist/esm/funcs/organizationsGetCurrent.js.map +1 -1
  358. package/dist/esm/funcs/organizationsGetPartner.js +1 -1
  359. package/dist/esm/funcs/organizationsGetPartner.js.map +1 -1
  360. package/dist/esm/funcs/paymentLinksCreate.js +1 -1
  361. package/dist/esm/funcs/paymentLinksCreate.js.map +1 -1
  362. package/dist/esm/funcs/paymentLinksDelete.js +1 -1
  363. package/dist/esm/funcs/paymentLinksDelete.js.map +1 -1
  364. package/dist/esm/funcs/paymentLinksGet.js +1 -1
  365. package/dist/esm/funcs/paymentLinksGet.js.map +1 -1
  366. package/dist/esm/funcs/paymentLinksList.js +1 -1
  367. package/dist/esm/funcs/paymentLinksList.js.map +1 -1
  368. package/dist/esm/funcs/paymentLinksListPayments.js +1 -1
  369. package/dist/esm/funcs/paymentLinksListPayments.js.map +1 -1
  370. package/dist/esm/funcs/paymentLinksUpdate.js +1 -1
  371. package/dist/esm/funcs/paymentLinksUpdate.js.map +1 -1
  372. package/dist/esm/funcs/paymentsCancel.js +1 -1
  373. package/dist/esm/funcs/paymentsCancel.js.map +1 -1
  374. package/dist/esm/funcs/paymentsCreate.js +1 -1
  375. package/dist/esm/funcs/paymentsCreate.js.map +1 -1
  376. package/dist/esm/funcs/paymentsGet.js +1 -1
  377. package/dist/esm/funcs/paymentsGet.js.map +1 -1
  378. package/dist/esm/funcs/paymentsList.js +1 -1
  379. package/dist/esm/funcs/paymentsList.js.map +1 -1
  380. package/dist/esm/funcs/paymentsReleaseAuthorization.js +1 -1
  381. package/dist/esm/funcs/paymentsReleaseAuthorization.js.map +1 -1
  382. package/dist/esm/funcs/paymentsUpdate.js +1 -1
  383. package/dist/esm/funcs/paymentsUpdate.js.map +1 -1
  384. package/dist/esm/funcs/permissionsGet.js +1 -1
  385. package/dist/esm/funcs/permissionsGet.js.map +1 -1
  386. package/dist/esm/funcs/permissionsList.js +1 -1
  387. package/dist/esm/funcs/permissionsList.js.map +1 -1
  388. package/dist/esm/funcs/profilesCreate.js +1 -1
  389. package/dist/esm/funcs/profilesCreate.js.map +1 -1
  390. package/dist/esm/funcs/profilesDelete.js +1 -1
  391. package/dist/esm/funcs/profilesDelete.js.map +1 -1
  392. package/dist/esm/funcs/profilesGet.js +1 -1
  393. package/dist/esm/funcs/profilesGet.js.map +1 -1
  394. package/dist/esm/funcs/profilesGetCurrent.js +1 -1
  395. package/dist/esm/funcs/profilesGetCurrent.js.map +1 -1
  396. package/dist/esm/funcs/profilesList.js +1 -1
  397. package/dist/esm/funcs/profilesList.js.map +1 -1
  398. package/dist/esm/funcs/profilesUpdate.js +1 -1
  399. package/dist/esm/funcs/profilesUpdate.js.map +1 -1
  400. package/dist/esm/funcs/refundsAll.js +1 -1
  401. package/dist/esm/funcs/refundsAll.js.map +1 -1
  402. package/dist/esm/funcs/refundsCancel.js +1 -1
  403. package/dist/esm/funcs/refundsCancel.js.map +1 -1
  404. package/dist/esm/funcs/refundsCreate.js +1 -1
  405. package/dist/esm/funcs/refundsCreate.js.map +1 -1
  406. package/dist/esm/funcs/refundsGet.js +1 -1
  407. package/dist/esm/funcs/refundsGet.js.map +1 -1
  408. package/dist/esm/funcs/refundsList.js +1 -1
  409. package/dist/esm/funcs/refundsList.js.map +1 -1
  410. package/dist/esm/funcs/salesInvoicesCreate.js +1 -1
  411. package/dist/esm/funcs/salesInvoicesCreate.js.map +1 -1
  412. package/dist/esm/funcs/salesInvoicesDelete.js +1 -1
  413. package/dist/esm/funcs/salesInvoicesDelete.js.map +1 -1
  414. package/dist/esm/funcs/salesInvoicesGet.js +1 -1
  415. package/dist/esm/funcs/salesInvoicesGet.js.map +1 -1
  416. package/dist/esm/funcs/salesInvoicesList.js +1 -1
  417. package/dist/esm/funcs/salesInvoicesList.js.map +1 -1
  418. package/dist/esm/funcs/salesInvoicesUpdate.js +1 -1
  419. package/dist/esm/funcs/salesInvoicesUpdate.js.map +1 -1
  420. package/dist/esm/funcs/sessionsCreate.js +1 -1
  421. package/dist/esm/funcs/sessionsCreate.js.map +1 -1
  422. package/dist/esm/funcs/sessionsGet.js +1 -1
  423. package/dist/esm/funcs/sessionsGet.js.map +1 -1
  424. package/dist/esm/funcs/settlementsGet.js +1 -1
  425. package/dist/esm/funcs/settlementsGet.js.map +1 -1
  426. package/dist/esm/funcs/settlementsGetNext.js +1 -1
  427. package/dist/esm/funcs/settlementsGetNext.js.map +1 -1
  428. package/dist/esm/funcs/settlementsGetOpen.js +1 -1
  429. package/dist/esm/funcs/settlementsGetOpen.js.map +1 -1
  430. package/dist/esm/funcs/settlementsList.js +1 -1
  431. package/dist/esm/funcs/settlementsList.js.map +1 -1
  432. package/dist/esm/funcs/settlementsListCaptures.js +1 -1
  433. package/dist/esm/funcs/settlementsListCaptures.js.map +1 -1
  434. package/dist/esm/funcs/settlementsListChargebacks.js +1 -1
  435. package/dist/esm/funcs/settlementsListChargebacks.js.map +1 -1
  436. package/dist/esm/funcs/settlementsListPayments.js +1 -1
  437. package/dist/esm/funcs/settlementsListPayments.js.map +1 -1
  438. package/dist/esm/funcs/settlementsListRefunds.js +1 -1
  439. package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
  440. package/dist/esm/funcs/subscriptionsAll.js +1 -1
  441. package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
  442. package/dist/esm/funcs/subscriptionsCancel.js +1 -1
  443. package/dist/esm/funcs/subscriptionsCancel.js.map +1 -1
  444. package/dist/esm/funcs/subscriptionsCreate.js +1 -1
  445. package/dist/esm/funcs/subscriptionsCreate.js.map +1 -1
  446. package/dist/esm/funcs/subscriptionsGet.js +1 -1
  447. package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
  448. package/dist/esm/funcs/subscriptionsList.js +1 -1
  449. package/dist/esm/funcs/subscriptionsList.js.map +1 -1
  450. package/dist/esm/funcs/subscriptionsListPayments.js +1 -1
  451. package/dist/esm/funcs/subscriptionsListPayments.js.map +1 -1
  452. package/dist/esm/funcs/subscriptionsUpdate.js +1 -1
  453. package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
  454. package/dist/esm/funcs/terminalsGet.js +1 -1
  455. package/dist/esm/funcs/terminalsGet.js.map +1 -1
  456. package/dist/esm/funcs/terminalsList.js +1 -1
  457. package/dist/esm/funcs/terminalsList.js.map +1 -1
  458. package/dist/esm/funcs/transfersCreate.js +1 -1
  459. package/dist/esm/funcs/transfersCreate.js.map +1 -1
  460. package/dist/esm/funcs/transfersGet.js +1 -1
  461. package/dist/esm/funcs/transfersGet.js.map +1 -1
  462. package/dist/esm/funcs/unmatchedCreditTransfersGet.js +1 -1
  463. package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -1
  464. package/dist/esm/funcs/unmatchedCreditTransfersList.js +1 -1
  465. package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -1
  466. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +1 -1
  467. package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -1
  468. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +1 -1
  469. package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -1
  470. package/dist/esm/funcs/verifyPayeesCreate.js +1 -1
  471. package/dist/esm/funcs/verifyPayeesCreate.js.map +1 -1
  472. package/dist/esm/funcs/walletsRequestApplePaySession.js +1 -1
  473. package/dist/esm/funcs/walletsRequestApplePaySession.js.map +1 -1
  474. package/dist/esm/funcs/webhookEventsGet.js +1 -1
  475. package/dist/esm/funcs/webhookEventsGet.js.map +1 -1
  476. package/dist/esm/funcs/webhooksCreate.js +1 -1
  477. package/dist/esm/funcs/webhooksCreate.js.map +1 -1
  478. package/dist/esm/funcs/webhooksDelete.js +1 -1
  479. package/dist/esm/funcs/webhooksDelete.js.map +1 -1
  480. package/dist/esm/funcs/webhooksGet.js +1 -1
  481. package/dist/esm/funcs/webhooksGet.js.map +1 -1
  482. package/dist/esm/funcs/webhooksList.js +1 -1
  483. package/dist/esm/funcs/webhooksList.js.map +1 -1
  484. package/dist/esm/funcs/webhooksTest.js +1 -1
  485. package/dist/esm/funcs/webhooksTest.js.map +1 -1
  486. package/dist/esm/funcs/webhooksUpdate.js +1 -1
  487. package/dist/esm/funcs/webhooksUpdate.js.map +1 -1
  488. package/dist/esm/lib/config.d.ts +3 -3
  489. package/dist/esm/lib/config.d.ts.map +1 -1
  490. package/dist/esm/lib/config.js +3 -3
  491. package/dist/esm/lib/config.js.map +1 -1
  492. package/dist/esm/models/listpaymentresponse.d.ts +1 -1
  493. package/dist/esm/models/listsettlementpaymentresponse.d.ts +1 -1
  494. package/dist/esm/models/operations/index.d.ts +2 -0
  495. package/dist/esm/models/operations/index.d.ts.map +1 -1
  496. package/dist/esm/models/operations/index.js +2 -0
  497. package/dist/esm/models/operations/index.js.map +1 -1
  498. package/dist/esm/models/operations/oauthgeneratetokens.d.ts +104 -0
  499. package/dist/esm/models/operations/oauthgeneratetokens.d.ts.map +1 -0
  500. package/dist/esm/models/operations/oauthgeneratetokens.js +59 -0
  501. package/dist/esm/models/operations/oauthgeneratetokens.js.map +1 -0
  502. package/dist/esm/models/operations/oauthrevoketokens.d.ts +40 -0
  503. package/dist/esm/models/operations/oauthrevoketokens.d.ts.map +1 -0
  504. package/dist/esm/models/operations/oauthrevoketokens.js +36 -0
  505. package/dist/esm/models/operations/oauthrevoketokens.js.map +1 -0
  506. package/dist/esm/models/operations/updatepayment.d.ts +1 -1
  507. package/dist/esm/models/paymentrequest.d.ts +1 -1
  508. package/dist/esm/models/paymentresponse.d.ts +1 -1
  509. package/dist/esm/sdk/oauth.d.ts +26 -0
  510. package/dist/esm/sdk/oauth.d.ts.map +1 -0
  511. package/dist/esm/sdk/oauth.js +36 -0
  512. package/dist/esm/sdk/oauth.js.map +1 -0
  513. package/dist/esm/sdk/sdk.d.ts +3 -0
  514. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  515. package/dist/esm/sdk/sdk.js +4 -0
  516. package/dist/esm/sdk/sdk.js.map +1 -1
  517. package/examples/{balancesList.example.ts → oauthGenerate.example.ts} +5 -12
  518. package/jsr.json +1 -1
  519. package/package.json +1 -1
  520. package/src/funcs/accountsGet.ts +1 -1
  521. package/src/funcs/accountsGetAccount.ts +1 -1
  522. package/src/funcs/accountsList.ts +1 -1
  523. package/src/funcs/accountsListAccounts.ts +1 -1
  524. package/src/funcs/balanceTransfersCreate.ts +1 -1
  525. package/src/funcs/balanceTransfersGet.ts +1 -1
  526. package/src/funcs/balanceTransfersList.ts +1 -1
  527. package/src/funcs/balancesGet.ts +1 -1
  528. package/src/funcs/balancesGetPrimary.ts +1 -1
  529. package/src/funcs/balancesGetReport.ts +1 -1
  530. package/src/funcs/balancesList.ts +1 -1
  531. package/src/funcs/balancesListTransactions.ts +1 -1
  532. package/src/funcs/capabilitiesList.ts +1 -1
  533. package/src/funcs/capturesCreate.ts +1 -1
  534. package/src/funcs/capturesGet.ts +1 -1
  535. package/src/funcs/capturesList.ts +1 -1
  536. package/src/funcs/chargebacksAll.ts +1 -1
  537. package/src/funcs/chargebacksGet.ts +3 -3
  538. package/src/funcs/chargebacksList.ts +1 -1
  539. package/src/funcs/clientLinksCreate.ts +1 -1
  540. package/src/funcs/clientsGet.ts +1 -1
  541. package/src/funcs/clientsList.ts +1 -1
  542. package/src/funcs/customersCreate.ts +1 -1
  543. package/src/funcs/customersCreatePayment.ts +1 -1
  544. package/src/funcs/customersDelete.ts +1 -1
  545. package/src/funcs/customersGet.ts +1 -1
  546. package/src/funcs/customersList.ts +1 -1
  547. package/src/funcs/customersListPayments.ts +1 -1
  548. package/src/funcs/customersUpdate.ts +1 -1
  549. package/src/funcs/delayedRoutingCreate.ts +1 -1
  550. package/src/funcs/delayedRoutingGet.ts +3 -1
  551. package/src/funcs/delayedRoutingList.ts +1 -1
  552. package/src/funcs/invoicesGet.ts +1 -1
  553. package/src/funcs/invoicesList.ts +1 -1
  554. package/src/funcs/mandatesCreate.ts +1 -1
  555. package/src/funcs/mandatesGet.ts +1 -1
  556. package/src/funcs/mandatesList.ts +1 -1
  557. package/src/funcs/mandatesRevoke.ts +1 -1
  558. package/src/funcs/methodsAll.ts +1 -1
  559. package/src/funcs/methodsGet.ts +1 -1
  560. package/src/funcs/methodsList.ts +1 -1
  561. package/src/funcs/oauthGenerate.ts +192 -0
  562. package/src/funcs/oauthRevoke.ts +193 -0
  563. package/src/funcs/onboardingGet.ts +1 -1
  564. package/src/funcs/onboardingSubmit.ts +1 -1
  565. package/src/funcs/organizationsGet.ts +1 -1
  566. package/src/funcs/organizationsGetCurrent.ts +1 -1
  567. package/src/funcs/organizationsGetPartner.ts +1 -1
  568. package/src/funcs/paymentLinksCreate.ts +1 -1
  569. package/src/funcs/paymentLinksDelete.ts +1 -1
  570. package/src/funcs/paymentLinksGet.ts +1 -1
  571. package/src/funcs/paymentLinksList.ts +1 -1
  572. package/src/funcs/paymentLinksListPayments.ts +1 -1
  573. package/src/funcs/paymentLinksUpdate.ts +1 -1
  574. package/src/funcs/paymentsCancel.ts +1 -1
  575. package/src/funcs/paymentsCreate.ts +1 -1
  576. package/src/funcs/paymentsGet.ts +1 -1
  577. package/src/funcs/paymentsList.ts +1 -1
  578. package/src/funcs/paymentsReleaseAuthorization.ts +1 -1
  579. package/src/funcs/paymentsUpdate.ts +1 -1
  580. package/src/funcs/permissionsGet.ts +1 -1
  581. package/src/funcs/permissionsList.ts +1 -1
  582. package/src/funcs/profilesCreate.ts +1 -1
  583. package/src/funcs/profilesDelete.ts +1 -1
  584. package/src/funcs/profilesGet.ts +1 -1
  585. package/src/funcs/profilesGetCurrent.ts +1 -1
  586. package/src/funcs/profilesList.ts +1 -1
  587. package/src/funcs/profilesUpdate.ts +1 -1
  588. package/src/funcs/refundsAll.ts +1 -1
  589. package/src/funcs/refundsCancel.ts +1 -1
  590. package/src/funcs/refundsCreate.ts +1 -1
  591. package/src/funcs/refundsGet.ts +1 -1
  592. package/src/funcs/refundsList.ts +1 -1
  593. package/src/funcs/salesInvoicesCreate.ts +1 -1
  594. package/src/funcs/salesInvoicesDelete.ts +1 -1
  595. package/src/funcs/salesInvoicesGet.ts +1 -1
  596. package/src/funcs/salesInvoicesList.ts +1 -1
  597. package/src/funcs/salesInvoicesUpdate.ts +1 -1
  598. package/src/funcs/sessionsCreate.ts +1 -1
  599. package/src/funcs/sessionsGet.ts +1 -1
  600. package/src/funcs/settlementsGet.ts +1 -1
  601. package/src/funcs/settlementsGetNext.ts +1 -1
  602. package/src/funcs/settlementsGetOpen.ts +1 -1
  603. package/src/funcs/settlementsList.ts +1 -1
  604. package/src/funcs/settlementsListCaptures.ts +1 -1
  605. package/src/funcs/settlementsListChargebacks.ts +1 -1
  606. package/src/funcs/settlementsListPayments.ts +1 -1
  607. package/src/funcs/settlementsListRefunds.ts +1 -1
  608. package/src/funcs/subscriptionsAll.ts +1 -1
  609. package/src/funcs/subscriptionsCancel.ts +1 -1
  610. package/src/funcs/subscriptionsCreate.ts +3 -1
  611. package/src/funcs/subscriptionsGet.ts +1 -1
  612. package/src/funcs/subscriptionsList.ts +1 -1
  613. package/src/funcs/subscriptionsListPayments.ts +1 -1
  614. package/src/funcs/subscriptionsUpdate.ts +1 -1
  615. package/src/funcs/terminalsGet.ts +1 -1
  616. package/src/funcs/terminalsList.ts +1 -1
  617. package/src/funcs/transfersCreate.ts +1 -1
  618. package/src/funcs/transfersGet.ts +1 -1
  619. package/src/funcs/unmatchedCreditTransfersGet.ts +1 -1
  620. package/src/funcs/unmatchedCreditTransfersList.ts +1 -1
  621. package/src/funcs/unmatchedCreditTransfersMatch.ts +1 -1
  622. package/src/funcs/unmatchedCreditTransfersReturn.ts +1 -1
  623. package/src/funcs/verifyPayeesCreate.ts +1 -1
  624. package/src/funcs/walletsRequestApplePaySession.ts +1 -1
  625. package/src/funcs/webhookEventsGet.ts +1 -1
  626. package/src/funcs/webhooksCreate.ts +1 -1
  627. package/src/funcs/webhooksDelete.ts +1 -1
  628. package/src/funcs/webhooksGet.ts +1 -1
  629. package/src/funcs/webhooksList.ts +1 -1
  630. package/src/funcs/webhooksTest.ts +1 -1
  631. package/src/funcs/webhooksUpdate.ts +1 -1
  632. package/src/lib/config.ts +3 -3
  633. package/src/models/listpaymentresponse.ts +1 -1
  634. package/src/models/listsettlementpaymentresponse.ts +1 -1
  635. package/src/models/operations/index.ts +2 -0
  636. package/src/models/operations/oauthgeneratetokens.ts +191 -0
  637. package/src/models/operations/oauthrevoketokens.ts +94 -0
  638. package/src/models/operations/updatepayment.ts +1 -1
  639. package/src/models/paymentrequest.ts +1 -1
  640. package/src/models/paymentresponse.ts +1 -1
  641. package/src/sdk/oauth.ts +53 -0
  642. 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. This will be shown to your customer on their card or bank statement when possible.
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. This will be shown to your customer on their card or bank statement when possible.
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. This will be shown to your customer on their card or bank statement when possible.
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
@@ -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));