@gr4vy/sdk 0.18.16 → 0.18.17

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 (371) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +87 -36
  3. package/bin/mcp-server.js +3139 -371
  4. package/bin/mcp-server.js.map +71 -13
  5. package/docs/sdks/all/README.md +2 -2
  6. package/docs/sdks/balances/README.md +2 -2
  7. package/docs/sdks/buyers/README.md +6 -6
  8. package/docs/sdks/checkoutsessions/README.md +8 -8
  9. package/docs/sdks/digitalwallets/README.md +6 -6
  10. package/docs/sdks/domains/README.md +4 -4
  11. package/docs/sdks/giftcards/README.md +4 -4
  12. package/docs/sdks/gr4vygiftcards/README.md +2 -2
  13. package/docs/sdks/gr4vyrefunds/README.md +2 -2
  14. package/docs/sdks/jobs/README.md +2 -2
  15. package/docs/sdks/merchantaccounts/README.md +28 -28
  16. package/docs/sdks/networktokens/README.md +8 -8
  17. package/docs/sdks/paymentmethods/README.md +2 -2
  18. package/docs/sdks/paymentservicedefinitions/README.md +309 -0
  19. package/docs/sdks/paymentservices/README.md +901 -0
  20. package/docs/sdks/paymentservicetokens/README.md +4 -4
  21. package/docs/sdks/payouts/README.md +4 -4
  22. package/docs/sdks/shippingdetails/README.md +4 -4
  23. package/docs/sdks/transactions/README.md +8 -8
  24. package/funcs/paymentServiceDefinitionsGet.d.ts +17 -0
  25. package/funcs/paymentServiceDefinitionsGet.d.ts.map +1 -0
  26. package/funcs/paymentServiceDefinitionsGet.js +138 -0
  27. package/funcs/paymentServiceDefinitionsGet.js.map +1 -0
  28. package/funcs/paymentServiceDefinitionsList.d.ts +20 -0
  29. package/funcs/paymentServiceDefinitionsList.d.ts.map +1 -0
  30. package/funcs/paymentServiceDefinitionsList.js +160 -0
  31. package/funcs/paymentServiceDefinitionsList.js.map +1 -0
  32. package/funcs/paymentServiceDefinitionsSession.d.ts +19 -0
  33. package/funcs/paymentServiceDefinitionsSession.d.ts.map +1 -0
  34. package/funcs/paymentServiceDefinitionsSession.js +131 -0
  35. package/funcs/paymentServiceDefinitionsSession.js.map +1 -0
  36. package/funcs/paymentServicesCreate.d.ts +17 -0
  37. package/funcs/paymentServicesCreate.d.ts.map +1 -0
  38. package/funcs/paymentServicesCreate.js +129 -0
  39. package/funcs/paymentServicesCreate.js.map +1 -0
  40. package/funcs/paymentServicesDelete.d.ts +16 -0
  41. package/funcs/paymentServicesDelete.d.ts.map +1 -0
  42. package/funcs/paymentServicesDelete.js +134 -0
  43. package/funcs/paymentServicesDelete.js.map +1 -0
  44. package/funcs/paymentServicesGet.d.ts +17 -0
  45. package/funcs/paymentServicesGet.d.ts.map +1 -0
  46. package/funcs/paymentServicesGet.js +139 -0
  47. package/funcs/paymentServicesGet.js.map +1 -0
  48. package/funcs/paymentServicesList.d.ts +20 -0
  49. package/funcs/paymentServicesList.d.ts.map +1 -0
  50. package/funcs/paymentServicesList.js +162 -0
  51. package/funcs/paymentServicesList.js.map +1 -0
  52. package/funcs/paymentServicesSession.d.ts +19 -0
  53. package/funcs/paymentServicesSession.d.ts.map +1 -0
  54. package/funcs/paymentServicesSession.js +132 -0
  55. package/funcs/paymentServicesSession.js.map +1 -0
  56. package/funcs/paymentServicesUpdate.d.ts +17 -0
  57. package/funcs/paymentServicesUpdate.d.ts.map +1 -0
  58. package/funcs/paymentServicesUpdate.js +133 -0
  59. package/funcs/paymentServicesUpdate.js.map +1 -0
  60. package/funcs/paymentServicesVerify.d.ts +17 -0
  61. package/funcs/paymentServicesVerify.d.ts.map +1 -0
  62. package/funcs/paymentServicesVerify.js +133 -0
  63. package/funcs/paymentServicesVerify.js.map +1 -0
  64. package/jsr.json +1 -1
  65. package/lib/config.d.ts +3 -3
  66. package/lib/config.js +3 -3
  67. package/lib/sdks.d.ts +3 -1
  68. package/lib/sdks.d.ts.map +1 -1
  69. package/lib/sdks.js +6 -11
  70. package/lib/sdks.js.map +1 -1
  71. package/mcp-server/mcp-server.js +1 -1
  72. package/mcp-server/server.d.ts.map +1 -1
  73. package/mcp-server/server.js +21 -1
  74. package/mcp-server/server.js.map +1 -1
  75. package/mcp-server/tools/paymentServiceDefinitionsGet.d.ts +8 -0
  76. package/mcp-server/tools/paymentServiceDefinitionsGet.d.ts.map +1 -0
  77. package/mcp-server/tools/paymentServiceDefinitionsGet.js +54 -0
  78. package/mcp-server/tools/paymentServiceDefinitionsGet.js.map +1 -0
  79. package/mcp-server/tools/paymentServiceDefinitionsList.d.ts +9 -0
  80. package/mcp-server/tools/paymentServiceDefinitionsList.d.ts.map +1 -0
  81. package/mcp-server/tools/paymentServiceDefinitionsList.js +55 -0
  82. package/mcp-server/tools/paymentServiceDefinitionsList.js.map +1 -0
  83. package/mcp-server/tools/paymentServiceDefinitionsSession.d.ts +9 -0
  84. package/mcp-server/tools/paymentServiceDefinitionsSession.d.ts.map +1 -0
  85. package/mcp-server/tools/paymentServiceDefinitionsSession.js +55 -0
  86. package/mcp-server/tools/paymentServiceDefinitionsSession.js.map +1 -0
  87. package/mcp-server/tools/paymentServicesCreate.d.ts +10 -0
  88. package/mcp-server/tools/paymentServicesCreate.d.ts.map +1 -0
  89. package/mcp-server/tools/paymentServicesCreate.js +56 -0
  90. package/mcp-server/tools/paymentServicesCreate.js.map +1 -0
  91. package/mcp-server/tools/paymentServicesDelete.d.ts +10 -0
  92. package/mcp-server/tools/paymentServicesDelete.d.ts.map +1 -0
  93. package/mcp-server/tools/paymentServicesDelete.js +56 -0
  94. package/mcp-server/tools/paymentServicesDelete.js.map +1 -0
  95. package/mcp-server/tools/paymentServicesGet.d.ts +9 -0
  96. package/mcp-server/tools/paymentServicesGet.d.ts.map +1 -0
  97. package/mcp-server/tools/paymentServicesGet.js +55 -0
  98. package/mcp-server/tools/paymentServicesGet.js.map +1 -0
  99. package/mcp-server/tools/paymentServicesList.d.ts +8 -0
  100. package/mcp-server/tools/paymentServicesList.d.ts.map +1 -0
  101. package/mcp-server/tools/paymentServicesList.js +54 -0
  102. package/mcp-server/tools/paymentServicesList.js.map +1 -0
  103. package/mcp-server/tools/paymentServicesSession.d.ts +10 -0
  104. package/mcp-server/tools/paymentServicesSession.d.ts.map +1 -0
  105. package/mcp-server/tools/paymentServicesSession.js +56 -0
  106. package/mcp-server/tools/paymentServicesSession.js.map +1 -0
  107. package/mcp-server/tools/paymentServicesUpdate.d.ts +11 -0
  108. package/mcp-server/tools/paymentServicesUpdate.d.ts.map +1 -0
  109. package/mcp-server/tools/paymentServicesUpdate.js +57 -0
  110. package/mcp-server/tools/paymentServicesUpdate.js.map +1 -0
  111. package/mcp-server/tools/paymentServicesVerify.d.ts +11 -0
  112. package/mcp-server/tools/paymentServicesVerify.d.ts.map +1 -0
  113. package/mcp-server/tools/paymentServicesVerify.js +57 -0
  114. package/mcp-server/tools/paymentServicesVerify.js.map +1 -0
  115. package/models/components/collectionpaymentservice.d.ts +48 -0
  116. package/models/components/collectionpaymentservice.d.ts.map +1 -0
  117. package/models/components/collectionpaymentservice.js +77 -0
  118. package/models/components/collectionpaymentservice.js.map +1 -0
  119. package/models/components/collectionpaymentservicedefinition.d.ts +48 -0
  120. package/models/components/collectionpaymentservicedefinition.d.ts.map +1 -0
  121. package/models/components/collectionpaymentservicedefinition.js +77 -0
  122. package/models/components/collectionpaymentservicedefinition.js.map +1 -0
  123. package/models/components/createsession.d.ts +57 -0
  124. package/models/components/createsession.d.ts.map +1 -0
  125. package/models/components/createsession.js +79 -0
  126. package/models/components/createsession.js.map +1 -0
  127. package/models/components/createsessionstatus.d.ts +22 -0
  128. package/models/components/createsessionstatus.d.ts.map +1 -0
  129. package/models/components/createsessionstatus.js +58 -0
  130. package/models/components/createsessionstatus.js.map +1 -0
  131. package/models/components/definitionfield.d.ts +53 -0
  132. package/models/components/definitionfield.d.ts.map +1 -0
  133. package/models/components/definitionfield.js +77 -0
  134. package/models/components/definitionfield.js.map +1 -0
  135. package/models/components/definitionfieldformat.d.ts +25 -0
  136. package/models/components/definitionfieldformat.d.ts.map +1 -0
  137. package/models/components/definitionfieldformat.js +61 -0
  138. package/models/components/definitionfieldformat.js.map +1 -0
  139. package/models/components/field.d.ts +40 -0
  140. package/models/components/field.d.ts.map +1 -0
  141. package/models/components/field.js +62 -0
  142. package/models/components/field.js.map +1 -0
  143. package/models/components/index.d.ts +18 -0
  144. package/models/components/index.d.ts.map +1 -1
  145. package/models/components/index.js +18 -0
  146. package/models/components/index.js.map +1 -1
  147. package/models/components/merchantprofilescheme.d.ts +54 -0
  148. package/models/components/merchantprofilescheme.d.ts.map +1 -0
  149. package/models/components/merchantprofilescheme.js +88 -0
  150. package/models/components/merchantprofilescheme.js.map +1 -0
  151. package/models/components/merchantprofileschemesummary.d.ts +59 -0
  152. package/models/components/merchantprofileschemesummary.d.ts.map +1 -0
  153. package/models/components/merchantprofileschemesummary.js +92 -0
  154. package/models/components/merchantprofileschemesummary.js.map +1 -0
  155. package/models/components/paymentservice.d.ts +141 -0
  156. package/models/components/paymentservice.d.ts.map +1 -0
  157. package/models/components/paymentservice.js +146 -0
  158. package/models/components/paymentservice.js.map +1 -0
  159. package/models/components/paymentserviceconfiguration.d.ts +55 -0
  160. package/models/components/paymentserviceconfiguration.d.ts.map +1 -0
  161. package/models/components/paymentserviceconfiguration.js +89 -0
  162. package/models/components/paymentserviceconfiguration.js.map +1 -0
  163. package/models/components/paymentservicecreate.d.ts +106 -0
  164. package/models/components/paymentservicecreate.d.ts.map +1 -0
  165. package/models/components/paymentservicecreate.js +116 -0
  166. package/models/components/paymentservicecreate.js.map +1 -0
  167. package/models/components/paymentservicedefinition.d.ts +92 -0
  168. package/models/components/paymentservicedefinition.d.ts.map +1 -0
  169. package/models/components/paymentservicedefinition.js +109 -0
  170. package/models/components/paymentservicedefinition.js.map +1 -0
  171. package/models/components/paymentservicestatus.d.ts +23 -0
  172. package/models/components/paymentservicestatus.d.ts.map +1 -0
  173. package/models/components/paymentservicestatus.js +59 -0
  174. package/models/components/paymentservicestatus.js.map +1 -0
  175. package/models/components/paymentserviceupdate.d.ts +101 -0
  176. package/models/components/paymentserviceupdate.d.ts.map +1 -0
  177. package/models/components/paymentserviceupdate.js +112 -0
  178. package/models/components/paymentserviceupdate.js.map +1 -0
  179. package/models/components/requiredcheckoutfields.d.ts +44 -0
  180. package/models/components/requiredcheckoutfields.d.ts.map +1 -0
  181. package/models/components/requiredcheckoutfields.js +70 -0
  182. package/models/components/requiredcheckoutfields.js.map +1 -0
  183. package/models/components/verifycredentials.d.ts +43 -0
  184. package/models/components/verifycredentials.d.ts.map +1 -0
  185. package/models/components/verifycredentials.js +75 -0
  186. package/models/components/verifycredentials.js.map +1 -0
  187. package/models/components/voidablefield.d.ts +31 -0
  188. package/models/components/voidablefield.d.ts.map +1 -0
  189. package/models/components/voidablefield.js +61 -0
  190. package/models/components/voidablefield.js.map +1 -0
  191. package/models/errors/createpaymentservice.d.ts +31 -0
  192. package/models/errors/createpaymentservice.d.ts.map +1 -0
  193. package/models/errors/createpaymentservice.js +66 -0
  194. package/models/errors/createpaymentservice.js.map +1 -0
  195. package/models/errors/createpaymentservicedefinitionsession.d.ts +31 -0
  196. package/models/errors/createpaymentservicedefinitionsession.d.ts.map +1 -0
  197. package/models/errors/createpaymentservicedefinitionsession.js +68 -0
  198. package/models/errors/createpaymentservicedefinitionsession.js.map +1 -0
  199. package/models/errors/createpaymentservicesession.d.ts +31 -0
  200. package/models/errors/createpaymentservicesession.d.ts.map +1 -0
  201. package/models/errors/createpaymentservicesession.js +68 -0
  202. package/models/errors/createpaymentservicesession.js.map +1 -0
  203. package/models/errors/deletepaymentservice.d.ts +31 -0
  204. package/models/errors/deletepaymentservice.d.ts.map +1 -0
  205. package/models/errors/deletepaymentservice.js +66 -0
  206. package/models/errors/deletepaymentservice.js.map +1 -0
  207. package/models/errors/getpaymentservice.d.ts +31 -0
  208. package/models/errors/getpaymentservice.d.ts.map +1 -0
  209. package/models/errors/getpaymentservice.js +66 -0
  210. package/models/errors/getpaymentservice.js.map +1 -0
  211. package/models/errors/getpaymentservicedefinition.d.ts +31 -0
  212. package/models/errors/getpaymentservicedefinition.d.ts.map +1 -0
  213. package/models/errors/getpaymentservicedefinition.js +68 -0
  214. package/models/errors/getpaymentservicedefinition.js.map +1 -0
  215. package/models/errors/index.d.ts +10 -0
  216. package/models/errors/index.d.ts.map +1 -1
  217. package/models/errors/index.js +10 -0
  218. package/models/errors/index.js.map +1 -1
  219. package/models/errors/listpaymentservicedefinitions.d.ts +31 -0
  220. package/models/errors/listpaymentservicedefinitions.d.ts.map +1 -0
  221. package/models/errors/listpaymentservicedefinitions.js +68 -0
  222. package/models/errors/listpaymentservicedefinitions.js.map +1 -0
  223. package/models/errors/listpaymentservices.d.ts +31 -0
  224. package/models/errors/listpaymentservices.d.ts.map +1 -0
  225. package/models/errors/listpaymentservices.js +66 -0
  226. package/models/errors/listpaymentservices.js.map +1 -0
  227. package/models/errors/updatepaymentservice.d.ts +31 -0
  228. package/models/errors/updatepaymentservice.d.ts.map +1 -0
  229. package/models/errors/updatepaymentservice.js +66 -0
  230. package/models/errors/updatepaymentservice.js.map +1 -0
  231. package/models/errors/verifypaymentservicecredentials.d.ts +31 -0
  232. package/models/errors/verifypaymentservicecredentials.d.ts.map +1 -0
  233. package/models/errors/verifypaymentservicecredentials.js +68 -0
  234. package/models/errors/verifypaymentservicecredentials.js.map +1 -0
  235. package/models/operations/createpaymentservice.d.ts +65 -0
  236. package/models/operations/createpaymentservice.d.ts.map +1 -0
  237. package/models/operations/createpaymentservice.js +102 -0
  238. package/models/operations/createpaymentservice.js.map +1 -0
  239. package/models/operations/createpaymentservicedefinitionsession.d.ts +35 -0
  240. package/models/operations/createpaymentservicedefinitionsession.d.ts.map +1 -0
  241. package/models/operations/createpaymentservicedefinitionsession.js +72 -0
  242. package/models/operations/createpaymentservicedefinitionsession.js.map +1 -0
  243. package/models/operations/createpaymentservicesession.d.ts +68 -0
  244. package/models/operations/createpaymentservicesession.d.ts.map +1 -0
  245. package/models/operations/createpaymentservicesession.js +101 -0
  246. package/models/operations/createpaymentservicesession.js.map +1 -0
  247. package/models/operations/deletepaymentservice.d.ts +64 -0
  248. package/models/operations/deletepaymentservice.d.ts.map +1 -0
  249. package/models/operations/deletepaymentservice.js +101 -0
  250. package/models/operations/deletepaymentservice.js.map +1 -0
  251. package/models/operations/getmerchantaccount.d.ts +3 -0
  252. package/models/operations/getmerchantaccount.d.ts.map +1 -1
  253. package/models/operations/getmerchantaccount.js.map +1 -1
  254. package/models/operations/getpaymentservice.d.ts +62 -0
  255. package/models/operations/getpaymentservice.d.ts.map +1 -0
  256. package/models/operations/getpaymentservice.js +97 -0
  257. package/models/operations/getpaymentservice.js.map +1 -0
  258. package/models/operations/getpaymentservicedefinition.d.ts +29 -0
  259. package/models/operations/getpaymentservicedefinition.d.ts.map +1 -0
  260. package/models/operations/getpaymentservicedefinition.js +68 -0
  261. package/models/operations/getpaymentservicedefinition.js.map +1 -0
  262. package/models/operations/index.d.ts +10 -0
  263. package/models/operations/index.d.ts.map +1 -1
  264. package/models/operations/index.js +10 -0
  265. package/models/operations/index.js.map +1 -1
  266. package/models/operations/listmerchantaccounts.d.ts +9 -0
  267. package/models/operations/listmerchantaccounts.d.ts.map +1 -1
  268. package/models/operations/listmerchantaccounts.js.map +1 -1
  269. package/models/operations/listpaymentservicedefinitions.d.ts +63 -0
  270. package/models/operations/listpaymentservicedefinitions.d.ts.map +1 -0
  271. package/models/operations/listpaymentservicedefinitions.js +98 -0
  272. package/models/operations/listpaymentservicedefinitions.js.map +1 -0
  273. package/models/operations/listpaymentservices.d.ts +103 -0
  274. package/models/operations/listpaymentservices.d.ts.map +1 -0
  275. package/models/operations/listpaymentservices.js +131 -0
  276. package/models/operations/listpaymentservices.js.map +1 -0
  277. package/models/operations/updatemerchantaccount.d.ts +3 -0
  278. package/models/operations/updatemerchantaccount.d.ts.map +1 -1
  279. package/models/operations/updatemerchantaccount.js.map +1 -1
  280. package/models/operations/updatepaymentservice.d.ts +60 -0
  281. package/models/operations/updatepaymentservice.d.ts.map +1 -0
  282. package/models/operations/updatepaymentservice.js +98 -0
  283. package/models/operations/updatepaymentservice.js.map +1 -0
  284. package/models/operations/verifypaymentservicecredentials.d.ts +62 -0
  285. package/models/operations/verifypaymentservicecredentials.d.ts.map +1 -0
  286. package/models/operations/verifypaymentservicecredentials.js +102 -0
  287. package/models/operations/verifypaymentservicecredentials.js.map +1 -0
  288. package/package.json +1 -1
  289. package/sdk/paymentservicedefinitions.d.ts +32 -0
  290. package/sdk/paymentservicedefinitions.d.ts.map +1 -0
  291. package/sdk/paymentservicedefinitions.js +43 -0
  292. package/sdk/paymentservicedefinitions.js.map +1 -0
  293. package/sdk/paymentservices.d.ts +60 -0
  294. package/sdk/paymentservices.d.ts.map +1 -0
  295. package/sdk/paymentservices.js +83 -0
  296. package/sdk/paymentservices.js.map +1 -0
  297. package/sdk/sdk.d.ts +6 -0
  298. package/sdk/sdk.d.ts.map +1 -1
  299. package/sdk/sdk.js +8 -0
  300. package/sdk/sdk.js.map +1 -1
  301. package/src/funcs/paymentServiceDefinitionsGet.ts +251 -0
  302. package/src/funcs/paymentServiceDefinitionsList.ts +322 -0
  303. package/src/funcs/paymentServiceDefinitionsSession.ts +247 -0
  304. package/src/funcs/paymentServicesCreate.ts +242 -0
  305. package/src/funcs/paymentServicesDelete.ts +256 -0
  306. package/src/funcs/paymentServicesGet.ts +256 -0
  307. package/src/funcs/paymentServicesList.ts +321 -0
  308. package/src/funcs/paymentServicesSession.ts +255 -0
  309. package/src/funcs/paymentServicesUpdate.ts +254 -0
  310. package/src/funcs/paymentServicesVerify.ts +253 -0
  311. package/src/lib/config.ts +3 -3
  312. package/src/lib/sdks.ts +11 -11
  313. package/src/mcp-server/mcp-server.ts +1 -1
  314. package/src/mcp-server/server.ts +21 -1
  315. package/src/mcp-server/tools/paymentServiceDefinitionsGet.ts +37 -0
  316. package/src/mcp-server/tools/paymentServiceDefinitionsList.ts +39 -0
  317. package/src/mcp-server/tools/paymentServiceDefinitionsSession.ts +41 -0
  318. package/src/mcp-server/tools/paymentServicesCreate.ts +40 -0
  319. package/src/mcp-server/tools/paymentServicesDelete.ts +41 -0
  320. package/src/mcp-server/tools/paymentServicesGet.ts +39 -0
  321. package/src/mcp-server/tools/paymentServicesList.ts +37 -0
  322. package/src/mcp-server/tools/paymentServicesSession.ts +41 -0
  323. package/src/mcp-server/tools/paymentServicesUpdate.ts +42 -0
  324. package/src/mcp-server/tools/paymentServicesVerify.ts +42 -0
  325. package/src/models/components/collectionpaymentservice.ts +107 -0
  326. package/src/models/components/collectionpaymentservicedefinition.ts +111 -0
  327. package/src/models/components/createsession.ts +111 -0
  328. package/src/models/components/createsessionstatus.ts +48 -0
  329. package/src/models/components/definitionfield.ts +109 -0
  330. package/src/models/components/definitionfieldformat.ts +51 -0
  331. package/src/models/components/field.ts +72 -0
  332. package/src/models/components/index.ts +18 -0
  333. package/src/models/components/merchantprofilescheme.ts +120 -0
  334. package/src/models/components/merchantprofileschemesummary.ts +131 -0
  335. package/src/models/components/paymentservice.ts +281 -0
  336. package/src/models/components/paymentserviceconfiguration.ts +127 -0
  337. package/src/models/components/paymentservicecreate.ts +214 -0
  338. package/src/models/components/paymentservicedefinition.ts +193 -0
  339. package/src/models/components/paymentservicestatus.ts +49 -0
  340. package/src/models/components/paymentserviceupdate.ts +205 -0
  341. package/src/models/components/requiredcheckoutfields.ts +88 -0
  342. package/src/models/components/verifycredentials.ts +100 -0
  343. package/src/models/components/voidablefield.ts +66 -0
  344. package/src/models/errors/createpaymentservice.ts +107 -0
  345. package/src/models/errors/createpaymentservicedefinitionsession.ts +107 -0
  346. package/src/models/errors/createpaymentservicesession.ts +105 -0
  347. package/src/models/errors/deletepaymentservice.ts +107 -0
  348. package/src/models/errors/getpaymentservice.ts +106 -0
  349. package/src/models/errors/getpaymentservicedefinition.ts +105 -0
  350. package/src/models/errors/index.ts +10 -0
  351. package/src/models/errors/listpaymentservicedefinitions.ts +107 -0
  352. package/src/models/errors/listpaymentservices.ts +107 -0
  353. package/src/models/errors/updatepaymentservice.ts +107 -0
  354. package/src/models/errors/verifypaymentservicecredentials.ts +107 -0
  355. package/src/models/operations/createpaymentservice.ts +154 -0
  356. package/src/models/operations/createpaymentservicedefinitionsession.ts +94 -0
  357. package/src/models/operations/createpaymentservicesession.ts +157 -0
  358. package/src/models/operations/deletepaymentservice.ts +153 -0
  359. package/src/models/operations/getmerchantaccount.ts +3 -0
  360. package/src/models/operations/getpaymentservice.ts +143 -0
  361. package/src/models/operations/getpaymentservicedefinition.ts +79 -0
  362. package/src/models/operations/index.ts +10 -0
  363. package/src/models/operations/listmerchantaccounts.ts +9 -0
  364. package/src/models/operations/listpaymentservicedefinitions.ts +154 -0
  365. package/src/models/operations/listpaymentservices.ts +225 -0
  366. package/src/models/operations/updatemerchantaccount.ts +3 -0
  367. package/src/models/operations/updatepaymentservice.ts +145 -0
  368. package/src/models/operations/verifypaymentservicecredentials.ts +159 -0
  369. package/src/sdk/paymentservicedefinitions.ts +74 -0
  370. package/src/sdk/paymentservices.ts +159 -0
  371. package/src/sdk/sdk.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gr4vy/sdk",
3
- "version": "0.18.16",
3
+ "version": "0.18.17",
4
4
  "author": "Gr4vy",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
@@ -0,0 +1,32 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ import { PageIterator } from "../types/operations.js";
5
+ export declare class PaymentServiceDefinitions extends ClientSDK {
6
+ /**
7
+ * List payment service definitions
8
+ *
9
+ * @remarks
10
+ * List the definitions of each payment service that can be configured.
11
+ */
12
+ list(cursor?: string | null | undefined, limit?: number | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListPaymentServiceDefinitionsResponse, {
13
+ cursor: string;
14
+ }>>;
15
+ /**
16
+ * Get a payment service definition
17
+ *
18
+ * @remarks
19
+ * Get the definition of a payment service that can be configured.
20
+ */
21
+ get(paymentServiceDefinitionId: string, options?: RequestOptions): Promise<components.PaymentServiceDefinition>;
22
+ /**
23
+ * Create a session for apayment service definition
24
+ *
25
+ * @remarks
26
+ * Creates a session for a payment service that supports sessions.
27
+ */
28
+ session(requestBody: {
29
+ [k: string]: any;
30
+ }, paymentServiceDefinitionId: string, options?: RequestOptions): Promise<components.CreateSession>;
31
+ }
32
+ //# sourceMappingURL=paymentservicedefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentservicedefinitions.d.ts","sourceRoot":"","sources":["../src/sdk/paymentservicedefinitions.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,yBAA0B,SAAQ,SAAS;IACtD;;;;;OAKG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CACV,UAAU,CAAC,qCAAqC,EAChD;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CACnB,CACF;IASD;;;;;OAKG;IACG,GAAG,CACP,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;IAQ/C;;;;;OAKG;IACG,OAAO,CACX,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EACjC,0BAA0B,EAAE,MAAM,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CAQrC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PaymentServiceDefinitions = void 0;
7
+ const paymentServiceDefinitionsGet_js_1 = require("../funcs/paymentServiceDefinitionsGet.js");
8
+ const paymentServiceDefinitionsList_js_1 = require("../funcs/paymentServiceDefinitionsList.js");
9
+ const paymentServiceDefinitionsSession_js_1 = require("../funcs/paymentServiceDefinitionsSession.js");
10
+ const sdks_js_1 = require("../lib/sdks.js");
11
+ const fp_js_1 = require("../types/fp.js");
12
+ const operations_js_1 = require("../types/operations.js");
13
+ class PaymentServiceDefinitions extends sdks_js_1.ClientSDK {
14
+ /**
15
+ * List payment service definitions
16
+ *
17
+ * @remarks
18
+ * List the definitions of each payment service that can be configured.
19
+ */
20
+ async list(cursor, limit, options) {
21
+ return (0, operations_js_1.unwrapResultIterator)((0, paymentServiceDefinitionsList_js_1.paymentServiceDefinitionsList)(this, cursor, limit, options));
22
+ }
23
+ /**
24
+ * Get a payment service definition
25
+ *
26
+ * @remarks
27
+ * Get the definition of a payment service that can be configured.
28
+ */
29
+ async get(paymentServiceDefinitionId, options) {
30
+ return (0, fp_js_1.unwrapAsync)((0, paymentServiceDefinitionsGet_js_1.paymentServiceDefinitionsGet)(this, paymentServiceDefinitionId, options));
31
+ }
32
+ /**
33
+ * Create a session for apayment service definition
34
+ *
35
+ * @remarks
36
+ * Creates a session for a payment service that supports sessions.
37
+ */
38
+ async session(requestBody, paymentServiceDefinitionId, options) {
39
+ return (0, fp_js_1.unwrapAsync)((0, paymentServiceDefinitionsSession_js_1.paymentServiceDefinitionsSession)(this, requestBody, paymentServiceDefinitionId, options));
40
+ }
41
+ }
42
+ exports.PaymentServiceDefinitions = PaymentServiceDefinitions;
43
+ //# sourceMappingURL=paymentservicedefinitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentservicedefinitions.js","sourceRoot":"","sources":["../src/sdk/paymentservicedefinitions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,gGAA0F;AAC1F,sGAAgG;AAChG,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,yBAA0B,SAAQ,mBAAS;IACtD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,MAAkC,EAClC,KAA0B,EAC1B,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,gEAA6B,EACvD,IAAI,EACJ,MAAM,EACN,KAAK,EACL,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,0BAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,0BAA0B,EAC1B,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,WAAiC,EACjC,0BAAkC,EAClC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sEAAgC,EACjD,IAAI,EACJ,WAAW,EACX,0BAA0B,EAC1B,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5DD,8DA4DC"}
@@ -0,0 +1,60 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ import { PageIterator } from "../types/operations.js";
5
+ export declare class PaymentServices extends ClientSDK {
6
+ /**
7
+ * List payment services
8
+ *
9
+ * @remarks
10
+ * List the configured payment services.
11
+ */
12
+ list(request?: operations.ListPaymentServicesRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListPaymentServicesResponse, {
13
+ cursor: string;
14
+ }>>;
15
+ /**
16
+ * Update a configured payment service
17
+ *
18
+ * @remarks
19
+ * Updates the configuration of a payment service.
20
+ */
21
+ create(paymentServiceCreate: components.PaymentServiceCreate, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
22
+ /**
23
+ * Get payment service
24
+ *
25
+ * @remarks
26
+ * Get the details of a configured payment service.
27
+ */
28
+ get(paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
29
+ /**
30
+ * Configure a payment service
31
+ *
32
+ * @remarks
33
+ * Configures a new payment service for use by merchants.
34
+ */
35
+ update(paymentServiceUpdate: components.PaymentServiceUpdate, paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.PaymentService>;
36
+ /**
37
+ * Delete a configured payment service
38
+ *
39
+ * @remarks
40
+ * Deletes all the configuration of a payment service.
41
+ */
42
+ delete(paymentServiceId: string, timeoutInSeconds?: number | undefined, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<any>;
43
+ /**
44
+ * Verify payment service credentials
45
+ *
46
+ * @remarks
47
+ * Verify the credentials of a configured payment service
48
+ */
49
+ verify(verifyCredentials: components.VerifyCredentials, timeoutInSeconds?: number | undefined, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<any>;
50
+ /**
51
+ * Create a session for apayment service definition
52
+ *
53
+ * @remarks
54
+ * Creates a session for a payment service that supports sessions.
55
+ */
56
+ session(requestBody: {
57
+ [k: string]: any;
58
+ }, paymentServiceId: string, merchantAccountId?: string | null | undefined, options?: RequestOptions): Promise<components.CreateSession>;
59
+ }
60
+ //# sourceMappingURL=paymentservices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentservices.d.ts","sourceRoot":"","sources":["../src/sdk/paymentservices.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,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IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;IAUf;;;;;OAKG;IACG,OAAO,CACX,WAAW,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,EACjC,gBAAgB,EAAE,MAAM,EACxB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CASrC"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PaymentServices = void 0;
7
+ const paymentServicesCreate_js_1 = require("../funcs/paymentServicesCreate.js");
8
+ const paymentServicesDelete_js_1 = require("../funcs/paymentServicesDelete.js");
9
+ const paymentServicesGet_js_1 = require("../funcs/paymentServicesGet.js");
10
+ const paymentServicesList_js_1 = require("../funcs/paymentServicesList.js");
11
+ const paymentServicesSession_js_1 = require("../funcs/paymentServicesSession.js");
12
+ const paymentServicesUpdate_js_1 = require("../funcs/paymentServicesUpdate.js");
13
+ const paymentServicesVerify_js_1 = require("../funcs/paymentServicesVerify.js");
14
+ const sdks_js_1 = require("../lib/sdks.js");
15
+ const fp_js_1 = require("../types/fp.js");
16
+ const operations_js_1 = require("../types/operations.js");
17
+ class PaymentServices extends sdks_js_1.ClientSDK {
18
+ /**
19
+ * List payment services
20
+ *
21
+ * @remarks
22
+ * List the configured payment services.
23
+ */
24
+ async list(request, options) {
25
+ return (0, operations_js_1.unwrapResultIterator)((0, paymentServicesList_js_1.paymentServicesList)(this, request, options));
26
+ }
27
+ /**
28
+ * Update a configured payment service
29
+ *
30
+ * @remarks
31
+ * Updates the configuration of a payment service.
32
+ */
33
+ async create(paymentServiceCreate, merchantAccountId, options) {
34
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesCreate_js_1.paymentServicesCreate)(this, paymentServiceCreate, merchantAccountId, options));
35
+ }
36
+ /**
37
+ * Get payment service
38
+ *
39
+ * @remarks
40
+ * Get the details of a configured payment service.
41
+ */
42
+ async get(paymentServiceId, merchantAccountId, options) {
43
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesGet_js_1.paymentServicesGet)(this, paymentServiceId, merchantAccountId, options));
44
+ }
45
+ /**
46
+ * Configure a payment service
47
+ *
48
+ * @remarks
49
+ * Configures a new payment service for use by merchants.
50
+ */
51
+ async update(paymentServiceUpdate, paymentServiceId, merchantAccountId, options) {
52
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesUpdate_js_1.paymentServicesUpdate)(this, paymentServiceUpdate, paymentServiceId, merchantAccountId, options));
53
+ }
54
+ /**
55
+ * Delete a configured payment service
56
+ *
57
+ * @remarks
58
+ * Deletes all the configuration of a payment service.
59
+ */
60
+ async delete(paymentServiceId, timeoutInSeconds, merchantAccountId, options) {
61
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesDelete_js_1.paymentServicesDelete)(this, paymentServiceId, timeoutInSeconds, merchantAccountId, options));
62
+ }
63
+ /**
64
+ * Verify payment service credentials
65
+ *
66
+ * @remarks
67
+ * Verify the credentials of a configured payment service
68
+ */
69
+ async verify(verifyCredentials, timeoutInSeconds, merchantAccountId, options) {
70
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesVerify_js_1.paymentServicesVerify)(this, verifyCredentials, timeoutInSeconds, merchantAccountId, options));
71
+ }
72
+ /**
73
+ * Create a session for apayment service definition
74
+ *
75
+ * @remarks
76
+ * Creates a session for a payment service that supports sessions.
77
+ */
78
+ async session(requestBody, paymentServiceId, merchantAccountId, options) {
79
+ return (0, fp_js_1.unwrapAsync)((0, paymentServicesSession_js_1.paymentServicesSession)(this, requestBody, paymentServiceId, merchantAccountId, options));
80
+ }
81
+ }
82
+ exports.PaymentServices = PaymentServices;
83
+ //# sourceMappingURL=paymentservices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentservices.js","sourceRoot":"","sources":["../src/sdk/paymentservices.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,gFAA0E;AAC1E,0EAAoE;AACpE,4EAAsE;AACtE,kFAA4E;AAC5E,gFAA0E;AAC1E,gFAA0E;AAC1E,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,eAAgB,SAAQ,mBAAS;IAC5C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA2D,EAC3D,OAAwB;QAIxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4CAAmB,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,oBAAqD,EACrD,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,oBAAoB,EACpB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,gBAAwB,EACxB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,oBAAqD,EACrD,gBAAwB,EACxB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,oBAAoB,EACpB,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,gBAAwB,EACxB,gBAAqC,EACrC,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,iBAA+C,EAC/C,gBAAqC,EACrC,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,WAAiC,EACjC,gBAAwB,EACxB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7ID,0CA6IC"}
package/sdk/sdk.d.ts CHANGED
@@ -9,6 +9,8 @@ import { GiftCards } from "./giftcards.js";
9
9
  import { MerchantAccounts } from "./merchantaccounts.js";
10
10
  import { PaymentMethods } from "./paymentmethods.js";
11
11
  import { PaymentOptions } from "./paymentoptions.js";
12
+ import { PaymentServiceDefinitions } from "./paymentservicedefinitions.js";
13
+ import { PaymentServices } from "./paymentservices.js";
12
14
  import { Payouts } from "./payouts.js";
13
15
  import { Refunds } from "./refunds.js";
14
16
  import { Transaction } from "./transaction.js";
@@ -34,6 +36,10 @@ export declare class Gr4vy extends ClientSDK {
34
36
  get refunds(): Refunds;
35
37
  private _paymentOptions?;
36
38
  get paymentOptions(): PaymentOptions;
39
+ private _paymentServiceDefinitions?;
40
+ get paymentServiceDefinitions(): PaymentServiceDefinitions;
41
+ private _paymentServices?;
42
+ get paymentServices(): PaymentServices;
37
43
  private _auditLogs?;
38
44
  get auditLogs(): AuditLogs;
39
45
  private _checkoutSessions?;
package/s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BAA0B,CAAC,CAA4B;IAC/D,IAAI,yBAAyB,IAAI,yBAAyB,CAIzD;IAED,OAAO,CAAC,gBAAgB,CAAC,CAAkB;IAC3C,IAAI,eAAe,IAAI,eAAe,CAErC;IAED,OAAO,CAAC,UAAU,CAAC,CAAY;IAC/B,IAAI,SAAS,IAAI,SAAS,CAEzB;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,IAAI,gBAAgB,IAAI,gBAAgB,CAEvC;IAED,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;CACF"}
package/sdk/sdk.js CHANGED
@@ -15,6 +15,8 @@ const giftcards_js_1 = require("./giftcards.js");
15
15
  const merchantaccounts_js_1 = require("./merchantaccounts.js");
16
16
  const paymentmethods_js_1 = require("./paymentmethods.js");
17
17
  const paymentoptions_js_1 = require("./paymentoptions.js");
18
+ const paymentservicedefinitions_js_1 = require("./paymentservicedefinitions.js");
19
+ const paymentservices_js_1 = require("./paymentservices.js");
18
20
  const payouts_js_1 = require("./payouts.js");
19
21
  const refunds_js_1 = require("./refunds.js");
20
22
  const transaction_js_1 = require("./transaction.js");
@@ -50,6 +52,12 @@ class Gr4vy extends sdks_js_1.ClientSDK {
50
52
  get paymentOptions() {
51
53
  return (this._paymentOptions ?? (this._paymentOptions = new paymentoptions_js_1.PaymentOptions(this._options)));
52
54
  }
55
+ get paymentServiceDefinitions() {
56
+ return (this._paymentServiceDefinitions ?? (this._paymentServiceDefinitions = new paymentservicedefinitions_js_1.PaymentServiceDefinitions(this._options)));
57
+ }
58
+ get paymentServices() {
59
+ return (this._paymentServices ?? (this._paymentServices = new paymentservices_js_1.PaymentServices(this._options)));
60
+ }
53
61
  get auditLogs() {
54
62
  return (this._auditLogs ?? (this._auditLogs = new auditlogs_js_1.AuditLogs(this._options)));
55
63
  }
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AAC,CAAC;IAC5D,CAAC;IAGD,IAAI,gBAAgB;QAClB,OAAO,CAAC,IAAI,CAAC,iBAAiB,KAAtB,IAAI,CAAC,iBAAiB,GAAK,IAAI,sCAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1E,CAAC;IAGD,IAAI,gBAAgB;QAClB,OAAO,CAAC,IAAI,CAAC,iBAAiB,KAAtB,IAAI,CAAC,iBAAiB,GAAK,IAAI,sCAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC1E,CAAC;IAGD,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;CACF;AApFD,sBAoFC"}
@@ -0,0 +1,251 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { Gr4vyCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Get a payment service definition
30
+ *
31
+ * @remarks
32
+ * Get the definition of a payment service that can be configured.
33
+ */
34
+ export function paymentServiceDefinitionsGet(
35
+ client: Gr4vyCore,
36
+ paymentServiceDefinitionId: string,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ components.PaymentServiceDefinition,
41
+ | errors.Error400
42
+ | errors.Error401
43
+ | errors.GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition
44
+ | errors.Error404
45
+ | errors.Error405
46
+ | errors.Error409
47
+ | errors.HTTPValidationError
48
+ | errors.Error425
49
+ | errors.Error429
50
+ | errors.Error500
51
+ | errors.Error502
52
+ | errors.Error504
53
+ | SDKError
54
+ | SDKValidationError
55
+ | UnexpectedClientError
56
+ | InvalidRequestError
57
+ | RequestAbortedError
58
+ | RequestTimeoutError
59
+ | ConnectionError
60
+ >
61
+ > {
62
+ return new APIPromise($do(
63
+ client,
64
+ paymentServiceDefinitionId,
65
+ options,
66
+ ));
67
+ }
68
+
69
+ async function $do(
70
+ client: Gr4vyCore,
71
+ paymentServiceDefinitionId: string,
72
+ options?: RequestOptions,
73
+ ): Promise<
74
+ [
75
+ Result<
76
+ components.PaymentServiceDefinition,
77
+ | errors.Error400
78
+ | errors.Error401
79
+ | errors.GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition
80
+ | errors.Error404
81
+ | errors.Error405
82
+ | errors.Error409
83
+ | errors.HTTPValidationError
84
+ | errors.Error425
85
+ | errors.Error429
86
+ | errors.Error500
87
+ | errors.Error502
88
+ | errors.Error504
89
+ | SDKError
90
+ | SDKValidationError
91
+ | UnexpectedClientError
92
+ | InvalidRequestError
93
+ | RequestAbortedError
94
+ | RequestTimeoutError
95
+ | ConnectionError
96
+ >,
97
+ APICall,
98
+ ]
99
+ > {
100
+ const input: operations.GetPaymentServiceDefinitionRequest = {
101
+ paymentServiceDefinitionId: paymentServiceDefinitionId,
102
+ };
103
+
104
+ const parsed = safeParse(
105
+ input,
106
+ (value) =>
107
+ operations.GetPaymentServiceDefinitionRequest$outboundSchema.parse(value),
108
+ "Input validation failed",
109
+ );
110
+ if (!parsed.ok) {
111
+ return [parsed, { status: "invalid" }];
112
+ }
113
+ const payload = parsed.value;
114
+ const body = null;
115
+
116
+ const pathParams = {
117
+ payment_service_definition_id: encodeSimple(
118
+ "payment_service_definition_id",
119
+ payload.payment_service_definition_id,
120
+ { explode: false, charEncoding: "percent" },
121
+ ),
122
+ };
123
+
124
+ const path = pathToFunc(
125
+ "/payment-service-definitions/{payment_service_definition_id}",
126
+ )(pathParams);
127
+
128
+ const headers = new Headers(compactMap({
129
+ Accept: "application/json",
130
+ }));
131
+
132
+ const secConfig = await extractSecurity(client._options.bearerAuth);
133
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
134
+ const requestSecurity = resolveGlobalSecurity(securityInput);
135
+
136
+ const context = {
137
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
138
+ operationID: "get_payment_service_definition",
139
+ oAuth2Scopes: [],
140
+
141
+ resolvedSecurity: requestSecurity,
142
+
143
+ securitySource: client._options.bearerAuth,
144
+ retryConfig: options?.retries
145
+ || client._options.retryConfig
146
+ || {
147
+ strategy: "backoff",
148
+ backoff: {
149
+ initialInterval: 200,
150
+ maxInterval: 200,
151
+ exponent: 1,
152
+ maxElapsedTime: 1000,
153
+ },
154
+ retryConnectionErrors: true,
155
+ }
156
+ || { strategy: "none" },
157
+ retryCodes: options?.retryCodes || ["5XX"],
158
+ };
159
+
160
+ const requestRes = client._createRequest(context, {
161
+ security: requestSecurity,
162
+ method: "GET",
163
+ baseURL: options?.serverURL,
164
+ path: path,
165
+ headers: headers,
166
+ body: body,
167
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
168
+ }, options);
169
+ if (!requestRes.ok) {
170
+ return [requestRes, { status: "invalid" }];
171
+ }
172
+ const req = requestRes.value;
173
+
174
+ const doResult = await client._do(req, {
175
+ context,
176
+ errorCodes: [
177
+ "400",
178
+ "401",
179
+ "403",
180
+ "404",
181
+ "405",
182
+ "409",
183
+ "422",
184
+ "425",
185
+ "429",
186
+ "4XX",
187
+ "500",
188
+ "502",
189
+ "504",
190
+ "5XX",
191
+ ],
192
+ retryConfig: context.retryConfig,
193
+ retryCodes: context.retryCodes,
194
+ });
195
+ if (!doResult.ok) {
196
+ return [doResult, { status: "request-error", request: req }];
197
+ }
198
+ const response = doResult.value;
199
+
200
+ const responseFields = {
201
+ HttpMeta: { Response: response, Request: req },
202
+ };
203
+
204
+ const [result] = await M.match<
205
+ components.PaymentServiceDefinition,
206
+ | errors.Error400
207
+ | errors.Error401
208
+ | errors.GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition
209
+ | errors.Error404
210
+ | errors.Error405
211
+ | errors.Error409
212
+ | errors.HTTPValidationError
213
+ | errors.Error425
214
+ | errors.Error429
215
+ | errors.Error500
216
+ | errors.Error502
217
+ | errors.Error504
218
+ | SDKError
219
+ | SDKValidationError
220
+ | UnexpectedClientError
221
+ | InvalidRequestError
222
+ | RequestAbortedError
223
+ | RequestTimeoutError
224
+ | ConnectionError
225
+ >(
226
+ M.json(200, components.PaymentServiceDefinition$inboundSchema),
227
+ M.jsonErr(400, errors.Error400$inboundSchema),
228
+ M.jsonErr(401, errors.Error401$inboundSchema),
229
+ M.jsonErr(
230
+ 403,
231
+ errors
232
+ .GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$inboundSchema,
233
+ ),
234
+ M.jsonErr(404, errors.Error404$inboundSchema),
235
+ M.jsonErr(405, errors.Error405$inboundSchema),
236
+ M.jsonErr(409, errors.Error409$inboundSchema),
237
+ M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
238
+ M.jsonErr(425, errors.Error425$inboundSchema),
239
+ M.jsonErr(429, errors.Error429$inboundSchema),
240
+ M.jsonErr(500, errors.Error500$inboundSchema),
241
+ M.jsonErr(502, errors.Error502$inboundSchema),
242
+ M.jsonErr(504, errors.Error504$inboundSchema),
243
+ M.fail("4XX"),
244
+ M.fail("5XX"),
245
+ )(response, { extraFields: responseFields });
246
+ if (!result.ok) {
247
+ return [result, { status: "complete", request: req, response }];
248
+ }
249
+
250
+ return [result, { status: "complete", request: req, response }];
251
+ }