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,192 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 35ab1f6a4a10
4
+ */
5
+
6
+ import { ClientCore } from "../core.js";
7
+ import * as b64$ from "../lib/base64.js";
8
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
9
+ import { matchStatusCode } from "../lib/http.js";
10
+ import * as M from "../lib/matchers.js";
11
+ import { compactMap } from "../lib/primitives.js";
12
+ import { safeParse } from "../lib/schemas.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
15
+ import { pathToFunc } from "../lib/url.js";
16
+ import { ClientError } from "../models/errors/clienterror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { OauthGenerateTokensServerList } from "../models/operations/oauthgeneratetokens.js";
28
+ import { APICall, APIPromise } from "../types/async.js";
29
+ import { Result } from "../types/fp.js";
30
+
31
+ /**
32
+ * Generate tokens
33
+ *
34
+ * @remarks
35
+ * Exchange the authorization code you received from the [Authorize endpoint](oauth-authorize) for an 'access token'
36
+ * API credential, with which you can communicate with the Mollie API on behalf of the consenting merchant.
37
+ *
38
+ * This endpoint can only be accessed using **OAuth client credentials**.
39
+ *
40
+ * If set, this operation will use {@link Security.oAuth} from the global security.
41
+ */
42
+ export function oauthGenerate(
43
+ client: ClientCore,
44
+ request?: operations.OauthGenerateTokensRequest | undefined,
45
+ options?: RequestOptions,
46
+ ): APIPromise<
47
+ Result<
48
+ Uint8Array,
49
+ | ClientError
50
+ | ResponseValidationError
51
+ | ConnectionError
52
+ | RequestAbortedError
53
+ | RequestTimeoutError
54
+ | InvalidRequestError
55
+ | UnexpectedClientError
56
+ | SDKValidationError
57
+ >
58
+ > {
59
+ return new APIPromise($do(
60
+ client,
61
+ request,
62
+ options,
63
+ ));
64
+ }
65
+
66
+ async function $do(
67
+ client: ClientCore,
68
+ request?: operations.OauthGenerateTokensRequest | undefined,
69
+ options?: RequestOptions,
70
+ ): Promise<
71
+ [
72
+ Result<
73
+ Uint8Array,
74
+ | ClientError
75
+ | ResponseValidationError
76
+ | ConnectionError
77
+ | RequestAbortedError
78
+ | RequestTimeoutError
79
+ | InvalidRequestError
80
+ | UnexpectedClientError
81
+ | SDKValidationError
82
+ >,
83
+ APICall,
84
+ ]
85
+ > {
86
+ const parsed = safeParse(
87
+ request,
88
+ (value) =>
89
+ operations.OauthGenerateTokensRequest$outboundSchema.optional().parse(
90
+ value,
91
+ ),
92
+ "Input validation failed",
93
+ );
94
+ if (!parsed.ok) {
95
+ return [parsed, { status: "invalid" }];
96
+ }
97
+ const payload = parsed.value;
98
+ const body = encodeJSON("body", payload?.RequestBody, { explode: true });
99
+
100
+ const baseURL = options?.serverURL
101
+ || pathToFunc(OauthGenerateTokensServerList[0], {
102
+ charEncoding: "percent",
103
+ })();
104
+
105
+ const path = pathToFunc("/oauth2/tokens")();
106
+
107
+ const headers = new Headers(compactMap({
108
+ "Content-Type": "application/json",
109
+ Accept: "text/html",
110
+ "idempotency-key": encodeSimple(
111
+ "idempotency-key",
112
+ payload?.["idempotency-key"],
113
+ { explode: false, charEncoding: "none" },
114
+ ),
115
+ }));
116
+
117
+ const securityInput = await extractSecurity(client._options.security);
118
+ const requestSecurity = resolveGlobalSecurity(securityInput, [2]);
119
+
120
+ const context = {
121
+ options: client._options,
122
+ baseURL: baseURL ?? "",
123
+ operationID: "oauth-generate-tokens",
124
+ oAuth2Scopes: null,
125
+
126
+ resolvedSecurity: requestSecurity,
127
+
128
+ securitySource: client._options.security,
129
+ retryConfig: options?.retries
130
+ || client._options.retryConfig
131
+ || {
132
+ strategy: "backoff",
133
+ backoff: {
134
+ initialInterval: 500,
135
+ maxInterval: 5000,
136
+ exponent: 2,
137
+ maxElapsedTime: 7500,
138
+ },
139
+ retryConnectionErrors: true,
140
+ }
141
+ || { strategy: "none" },
142
+ retryCodes: options?.retryCodes || ["5xx"],
143
+ };
144
+
145
+ const requestRes = client._createRequest(context, {
146
+ security: requestSecurity,
147
+ method: "POST",
148
+ baseURL: baseURL,
149
+ path: path,
150
+ headers: headers,
151
+ body: body,
152
+ userAgent: client._options.userAgent,
153
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
154
+ }, options);
155
+ if (!requestRes.ok) {
156
+ return [requestRes, { status: "invalid" }];
157
+ }
158
+ const req = requestRes.value;
159
+
160
+ const doResult = await client._do(req, {
161
+ context,
162
+ isErrorStatusCode: (statusCode: number) =>
163
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
164
+ retryConfig: context.retryConfig,
165
+ retryCodes: context.retryCodes,
166
+ });
167
+ if (!doResult.ok) {
168
+ return [doResult, { status: "request-error", request: req }];
169
+ }
170
+ const response = doResult.value;
171
+
172
+ const [result] = await M.match<
173
+ Uint8Array,
174
+ | ClientError
175
+ | ResponseValidationError
176
+ | ConnectionError
177
+ | RequestAbortedError
178
+ | RequestTimeoutError
179
+ | InvalidRequestError
180
+ | UnexpectedClientError
181
+ | SDKValidationError
182
+ >(
183
+ M.bytes(200, b64$.zodInbound, { ctype: "text/html" }),
184
+ M.fail("4XX"),
185
+ M.fail("5XX"),
186
+ )(response, req);
187
+ if (!result.ok) {
188
+ return [result, { status: "complete", request: req, response }];
189
+ }
190
+
191
+ return [result, { status: "complete", request: req, response }];
192
+ }
@@ -0,0 +1,193 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: cccdc1a76839
4
+ */
5
+
6
+ import * as z from "zod/v3";
7
+ import { ClientCore } from "../core.js";
8
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
9
+ import { matchStatusCode } from "../lib/http.js";
10
+ import * as M from "../lib/matchers.js";
11
+ import { compactMap } from "../lib/primitives.js";
12
+ import { safeParse } from "../lib/schemas.js";
13
+ import { RequestOptions } from "../lib/sdks.js";
14
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
15
+ import { pathToFunc } from "../lib/url.js";
16
+ import { ClientError } from "../models/errors/clienterror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
25
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { OauthRevokeTokensServerList } from "../models/operations/oauthrevoketokens.js";
28
+ import { APICall, APIPromise } from "../types/async.js";
29
+ import { Result } from "../types/fp.js";
30
+
31
+ /**
32
+ * Revoke tokens
33
+ *
34
+ * @remarks
35
+ * Revoke an access token or refresh token. Once revoked, the token can no longer be used.
36
+ *
37
+ * Revoking a refresh token revokes all access tokens that were created using the same authorization.
38
+ *
39
+ * This endpoint can only be accessed using **OAuth client credentials**.
40
+ *
41
+ * If set, this operation will use {@link Security.oAuth} from the global security.
42
+ */
43
+ export function oauthRevoke(
44
+ client: ClientCore,
45
+ request?: operations.OauthRevokeTokensRequest | undefined,
46
+ options?: RequestOptions,
47
+ ): APIPromise<
48
+ Result<
49
+ void,
50
+ | ClientError
51
+ | ResponseValidationError
52
+ | ConnectionError
53
+ | RequestAbortedError
54
+ | RequestTimeoutError
55
+ | InvalidRequestError
56
+ | UnexpectedClientError
57
+ | SDKValidationError
58
+ >
59
+ > {
60
+ return new APIPromise($do(
61
+ client,
62
+ request,
63
+ options,
64
+ ));
65
+ }
66
+
67
+ async function $do(
68
+ client: ClientCore,
69
+ request?: operations.OauthRevokeTokensRequest | undefined,
70
+ options?: RequestOptions,
71
+ ): Promise<
72
+ [
73
+ Result<
74
+ void,
75
+ | ClientError
76
+ | ResponseValidationError
77
+ | ConnectionError
78
+ | RequestAbortedError
79
+ | RequestTimeoutError
80
+ | InvalidRequestError
81
+ | UnexpectedClientError
82
+ | SDKValidationError
83
+ >,
84
+ APICall,
85
+ ]
86
+ > {
87
+ const parsed = safeParse(
88
+ request,
89
+ (value) =>
90
+ operations.OauthRevokeTokensRequest$outboundSchema.optional().parse(
91
+ value,
92
+ ),
93
+ "Input validation failed",
94
+ );
95
+ if (!parsed.ok) {
96
+ return [parsed, { status: "invalid" }];
97
+ }
98
+ const payload = parsed.value;
99
+ const body = encodeJSON("body", payload?.RequestBody, { explode: true });
100
+
101
+ const baseURL = options?.serverURL
102
+ || pathToFunc(OauthRevokeTokensServerList[0], {
103
+ charEncoding: "percent",
104
+ })();
105
+
106
+ const path = pathToFunc("/oauth2/tokens")();
107
+
108
+ const headers = new Headers(compactMap({
109
+ "Content-Type": "application/json",
110
+ Accept: "*/*",
111
+ "idempotency-key": encodeSimple(
112
+ "idempotency-key",
113
+ payload?.["idempotency-key"],
114
+ { explode: false, charEncoding: "none" },
115
+ ),
116
+ }));
117
+
118
+ const securityInput = await extractSecurity(client._options.security);
119
+ const requestSecurity = resolveGlobalSecurity(securityInput, [2]);
120
+
121
+ const context = {
122
+ options: client._options,
123
+ baseURL: baseURL ?? "",
124
+ operationID: "oauth-revoke-tokens",
125
+ oAuth2Scopes: null,
126
+
127
+ resolvedSecurity: requestSecurity,
128
+
129
+ securitySource: client._options.security,
130
+ retryConfig: options?.retries
131
+ || client._options.retryConfig
132
+ || {
133
+ strategy: "backoff",
134
+ backoff: {
135
+ initialInterval: 500,
136
+ maxInterval: 5000,
137
+ exponent: 2,
138
+ maxElapsedTime: 7500,
139
+ },
140
+ retryConnectionErrors: true,
141
+ }
142
+ || { strategy: "none" },
143
+ retryCodes: options?.retryCodes || ["5xx"],
144
+ };
145
+
146
+ const requestRes = client._createRequest(context, {
147
+ security: requestSecurity,
148
+ method: "DELETE",
149
+ baseURL: baseURL,
150
+ path: path,
151
+ headers: headers,
152
+ body: body,
153
+ userAgent: client._options.userAgent,
154
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
155
+ }, options);
156
+ if (!requestRes.ok) {
157
+ return [requestRes, { status: "invalid" }];
158
+ }
159
+ const req = requestRes.value;
160
+
161
+ const doResult = await client._do(req, {
162
+ context,
163
+ isErrorStatusCode: (statusCode: number) =>
164
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
165
+ retryConfig: context.retryConfig,
166
+ retryCodes: context.retryCodes,
167
+ });
168
+ if (!doResult.ok) {
169
+ return [doResult, { status: "request-error", request: req }];
170
+ }
171
+ const response = doResult.value;
172
+
173
+ const [result] = await M.match<
174
+ void,
175
+ | ClientError
176
+ | ResponseValidationError
177
+ | ConnectionError
178
+ | RequestAbortedError
179
+ | RequestTimeoutError
180
+ | InvalidRequestError
181
+ | UnexpectedClientError
182
+ | SDKValidationError
183
+ >(
184
+ M.nil(204, z.void()),
185
+ M.fail("4XX"),
186
+ M.fail("5XX"),
187
+ )(response, req);
188
+ if (!result.ok) {
189
+ return [result, { status: "complete", request: req, response }];
190
+ }
191
+
192
+ return [result, { status: "complete", request: req, response }];
193
+ }
@@ -93,7 +93,7 @@ async function $do(
93
93
  const payload = parsed.value;
94
94
  const body = null;
95
95
 
96
- const path = pathToFunc("/onboarding/me")();
96
+ const path = pathToFunc("/v2/onboarding/me")();
97
97
 
98
98
  const headers = new Headers(compactMap({
99
99
  Accept: "application/hal+json",
@@ -98,7 +98,7 @@ async function $do(
98
98
  const payload = parsed.value;
99
99
  const body = encodeJSON("body", payload?.RequestBody, { explode: true });
100
100
 
101
- const path = pathToFunc("/onboarding/me")();
101
+ const path = pathToFunc("/v2/onboarding/me")();
102
102
 
103
103
  const headers = new Headers(compactMap({
104
104
  "Content-Type": "application/json",
@@ -104,7 +104,7 @@ async function $do(
104
104
  charEncoding: "percent",
105
105
  }),
106
106
  };
107
- const path = pathToFunc("/organizations/{organizationId}")(pathParams);
107
+ const path = pathToFunc("/v2/organizations/{organizationId}")(pathParams);
108
108
 
109
109
  const query = encodeFormQuery({
110
110
  "testmode": payload.testmode ?? client._options.testmode,
@@ -97,7 +97,7 @@ async function $do(
97
97
  const payload = parsed.value;
98
98
  const body = null;
99
99
 
100
- const path = pathToFunc("/organizations/me")();
100
+ const path = pathToFunc("/v2/organizations/me")();
101
101
 
102
102
  const headers = new Headers(compactMap({
103
103
  Accept: "application/hal+json",
@@ -91,7 +91,7 @@ async function $do(
91
91
  const payload = parsed.value;
92
92
  const body = null;
93
93
 
94
- const path = pathToFunc("/organizations/me/partner")();
94
+ const path = pathToFunc("/v2/organizations/me/partner")();
95
95
 
96
96
  const headers = new Headers(compactMap({
97
97
  Accept: "application/hal+json",
@@ -96,7 +96,7 @@ async function $do(
96
96
  const payload = parsed.value;
97
97
  const body = encodeJSON("body", payload?.RequestBody, { explode: true });
98
98
 
99
- const path = pathToFunc("/payment-links")();
99
+ const path = pathToFunc("/v2/payment-links")();
100
100
 
101
101
  const headers = new Headers(compactMap({
102
102
  "Content-Type": "application/json",
@@ -103,7 +103,7 @@ async function $do(
103
103
  charEncoding: "percent",
104
104
  }),
105
105
  };
106
- const path = pathToFunc("/payment-links/{paymentLinkId}")(pathParams);
106
+ const path = pathToFunc("/v2/payment-links/{paymentLinkId}")(pathParams);
107
107
 
108
108
  const headers = new Headers(compactMap({
109
109
  "Content-Type": "application/json",
@@ -97,7 +97,7 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
- const path = pathToFunc("/payment-links/{paymentLinkId}")(pathParams);
100
+ const path = pathToFunc("/v2/payment-links/{paymentLinkId}")(pathParams);
101
101
 
102
102
  const query = encodeFormQuery({
103
103
  "testmode": payload.testmode ?? client._options.testmode,
@@ -109,7 +109,7 @@ async function $do(
109
109
 
110
110
  const path = options?.[URL_OVERRIDE]
111
111
  ? ""
112
- : pathToFunc("/payment-links")();
112
+ : pathToFunc("/v2/payment-links")();
113
113
 
114
114
  const query = options?.[URL_OVERRIDE]
115
115
  ? options[URL_OVERRIDE].search.substring(1)
@@ -115,7 +115,7 @@ async function $do(
115
115
  };
116
116
  const path = options?.[URL_OVERRIDE]
117
117
  ? ""
118
- : pathToFunc("/payment-links/{paymentLinkId}/payments")(pathParams);
118
+ : pathToFunc("/v2/payment-links/{paymentLinkId}/payments")(pathParams);
119
119
 
120
120
  const query = options?.[URL_OVERRIDE]
121
121
  ? options[URL_OVERRIDE].search.substring(1)
@@ -97,7 +97,7 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
- const path = pathToFunc("/payment-links/{paymentLinkId}")(pathParams);
100
+ const path = pathToFunc("/v2/payment-links/{paymentLinkId}")(pathParams);
101
101
 
102
102
  const headers = new Headers(compactMap({
103
103
  "Content-Type": "application/json",
@@ -102,7 +102,7 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
- const path = pathToFunc("/payments/{paymentId}")(pathParams);
105
+ const path = pathToFunc("/v2/payments/{paymentId}")(pathParams);
106
106
 
107
107
  const headers = new Headers(compactMap({
108
108
  "Content-Type": "application/json",
@@ -105,7 +105,7 @@ async function $do(
105
105
  explode: true,
106
106
  });
107
107
 
108
- const path = pathToFunc("/payments")();
108
+ const path = pathToFunc("/v2/payments")();
109
109
 
110
110
  const query = encodeFormQuery({
111
111
  "include": payload?.include,
@@ -97,7 +97,7 @@ async function $do(
97
97
  charEncoding: "percent",
98
98
  }),
99
99
  };
100
- const path = pathToFunc("/payments/{paymentId}")(pathParams);
100
+ const path = pathToFunc("/v2/payments/{paymentId}")(pathParams);
101
101
 
102
102
  const query = encodeFormQuery({
103
103
  "embed": payload.embed,
@@ -109,7 +109,7 @@ async function $do(
109
109
 
110
110
  const path = options?.[URL_OVERRIDE]
111
111
  ? ""
112
- : pathToFunc("/payments")();
112
+ : pathToFunc("/v2/payments")();
113
113
 
114
114
  const query = options?.[URL_OVERRIDE]
115
115
  ? options[URL_OVERRIDE].search.substring(1)
@@ -105,7 +105,7 @@ async function $do(
105
105
  charEncoding: "percent",
106
106
  }),
107
107
  };
108
- const path = pathToFunc("/payments/{paymentId}/release-authorization")(
108
+ const path = pathToFunc("/v2/payments/{paymentId}/release-authorization")(
109
109
  pathParams,
110
110
  );
111
111
 
@@ -99,7 +99,7 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
- const path = pathToFunc("/payments/{paymentId}")(pathParams);
102
+ const path = pathToFunc("/v2/payments/{paymentId}")(pathParams);
103
103
 
104
104
  const headers = new Headers(compactMap({
105
105
  "Content-Type": "application/json",
@@ -99,7 +99,7 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
- const path = pathToFunc("/permissions/{permissionId}")(pathParams);
102
+ const path = pathToFunc("/v2/permissions/{permissionId}")(pathParams);
103
103
 
104
104
  const query = encodeFormQuery({
105
105
  "testmode": payload.testmode ?? client._options.testmode,
@@ -95,7 +95,7 @@ async function $do(
95
95
  const payload = parsed.value;
96
96
  const body = null;
97
97
 
98
- const path = pathToFunc("/permissions")();
98
+ const path = pathToFunc("/v2/permissions")();
99
99
 
100
100
  const headers = new Headers(compactMap({
101
101
  Accept: "application/hal+json",
@@ -98,7 +98,7 @@ async function $do(
98
98
  explode: true,
99
99
  });
100
100
 
101
- const path = pathToFunc("/profiles")();
101
+ const path = pathToFunc("/v2/profiles")();
102
102
 
103
103
  const headers = new Headers(compactMap({
104
104
  "Content-Type": "application/json",
@@ -99,7 +99,7 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
- const path = pathToFunc("/profiles/{profileId}")(pathParams);
102
+ const path = pathToFunc("/v2/profiles/{profileId}")(pathParams);
103
103
 
104
104
  const headers = new Headers(compactMap({
105
105
  Accept: "application/hal+json",
@@ -99,7 +99,7 @@ async function $do(
99
99
  charEncoding: "percent",
100
100
  }),
101
101
  };
102
- const path = pathToFunc("/profiles/{profileId}")(pathParams);
102
+ const path = pathToFunc("/v2/profiles/{profileId}")(pathParams);
103
103
 
104
104
  const query = encodeFormQuery({
105
105
  "testmode": payload.testmode ?? client._options.testmode,
@@ -97,7 +97,7 @@ async function $do(
97
97
  const payload = parsed.value;
98
98
  const body = null;
99
99
 
100
- const path = pathToFunc("/profiles/me")();
100
+ const path = pathToFunc("/v2/profiles/me")();
101
101
 
102
102
  const headers = new Headers(compactMap({
103
103
  Accept: "application/hal+json",
@@ -111,7 +111,7 @@ async function $do(
111
111
 
112
112
  const path = options?.[URL_OVERRIDE]
113
113
  ? ""
114
- : pathToFunc("/profiles")();
114
+ : pathToFunc("/v2/profiles")();
115
115
 
116
116
  const query = options?.[URL_OVERRIDE]
117
117
  ? options[URL_OVERRIDE].search.substring(1)
@@ -102,7 +102,7 @@ async function $do(
102
102
  charEncoding: "percent",
103
103
  }),
104
104
  };
105
- const path = pathToFunc("/profiles/{profileId}")(pathParams);
105
+ const path = pathToFunc("/v2/profiles/{profileId}")(pathParams);
106
106
 
107
107
  const headers = new Headers(compactMap({
108
108
  "Content-Type": "application/json",
@@ -109,7 +109,7 @@ async function $do(
109
109
 
110
110
  const path = options?.[URL_OVERRIDE]
111
111
  ? ""
112
- : pathToFunc("/refunds")();
112
+ : pathToFunc("/v2/refunds")();
113
113
 
114
114
  const query = options?.[URL_OVERRIDE]
115
115
  ? options[URL_OVERRIDE].search.substring(1)
@@ -105,7 +105,7 @@ async function $do(
105
105
  charEncoding: "percent",
106
106
  }),
107
107
  };
108
- const path = pathToFunc("/payments/{paymentId}/refunds/{refundId}")(
108
+ const path = pathToFunc("/v2/payments/{paymentId}/refunds/{refundId}")(
109
109
  pathParams,
110
110
  );
111
111
 
@@ -98,7 +98,7 @@ async function $do(
98
98
  charEncoding: "percent",
99
99
  }),
100
100
  };
101
- const path = pathToFunc("/payments/{paymentId}/refunds")(pathParams);
101
+ const path = pathToFunc("/v2/payments/{paymentId}/refunds")(pathParams);
102
102
 
103
103
  const headers = new Headers(compactMap({
104
104
  "Content-Type": "application/json",