@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/bin/mcp-server.js CHANGED
@@ -4026,9 +4026,9 @@ var init_config = __esm(() => {
4026
4026
  SDK_METADATA = {
4027
4027
  language: "typescript",
4028
4028
  openapiDocVersion: "1.0.0",
4029
- sdkVersion: "0.18.16",
4030
- genVersion: "2.593.4",
4031
- userAgent: "speakeasy-sdk/typescript 0.18.16 2.593.4 1.0.0 @gr4vy/sdk"
4029
+ sdkVersion: "0.18.17",
4030
+ genVersion: "2.597.9",
4031
+ userAgent: "speakeasy-sdk/typescript 0.18.17 2.597.9 1.0.0 @gr4vy/sdk"
4032
4032
  };
4033
4033
  });
4034
4034
 
@@ -34828,26 +34828,22 @@ class ClientSDK {
34828
34828
  }
34829
34829
  cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
34830
34830
  headers.set("cookie", cookie);
34831
- const userHeaders = new Headers(options?.fetchOptions?.headers);
34831
+ const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
34832
34832
  for (const [k2, v2] of userHeaders) {
34833
34833
  headers.set(k2, v2);
34834
34834
  }
34835
34835
  if (!isBrowserLike) {
34836
34836
  headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
34837
34837
  }
34838
- let fetchOptions = options?.fetchOptions;
34838
+ const fetchOptions = {
34839
+ ...options?.fetchOptions,
34840
+ ...options
34841
+ };
34839
34842
  if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
34840
34843
  const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
34841
- if (!fetchOptions) {
34842
- fetchOptions = { signal: timeoutSignal };
34843
- } else {
34844
- fetchOptions.signal = timeoutSignal;
34845
- }
34844
+ fetchOptions.signal = timeoutSignal;
34846
34845
  }
34847
34846
  if (conf.body instanceof ReadableStream) {
34848
- if (!fetchOptions) {
34849
- fetchOptions = {};
34850
- }
34851
34847
  Object.assign(fetchOptions, { duplex: "half" });
34852
34848
  }
34853
34849
  let input;
@@ -39236,6 +39232,465 @@ var init_collectionpaymentmethod = __esm(() => {
39236
39232
  })(CollectionPaymentMethod$ ||= {});
39237
39233
  });
39238
39234
 
39235
+ // src/models/components/field.ts
39236
+ var Field$inboundSchema, Field$outboundSchema, Field$;
39237
+ var init_field = __esm(() => {
39238
+ init_lib();
39239
+ Field$inboundSchema = objectType({
39240
+ key: stringType(),
39241
+ value: stringType()
39242
+ });
39243
+ Field$outboundSchema = objectType({
39244
+ key: stringType(),
39245
+ value: stringType()
39246
+ });
39247
+ ((Field$) => {
39248
+ Field$.inboundSchema = Field$inboundSchema;
39249
+ Field$.outboundSchema = Field$outboundSchema;
39250
+ })(Field$ ||= {});
39251
+ });
39252
+
39253
+ // src/models/components/merchantprofileschemesummary.ts
39254
+ var MerchantProfileSchemeSummary$inboundSchema, MerchantProfileSchemeSummary$outboundSchema, MerchantProfileSchemeSummary$;
39255
+ var init_merchantprofileschemesummary = __esm(() => {
39256
+ init_lib();
39257
+ init_primitives();
39258
+ MerchantProfileSchemeSummary$inboundSchema = objectType({
39259
+ merchant_acquirer_bin: stringType(),
39260
+ merchant_url: stringType(),
39261
+ merchant_acquirer_id: stringType(),
39262
+ merchant_name: stringType(),
39263
+ merchant_country_code: stringType(),
39264
+ merchant_category_code: stringType(),
39265
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
39266
+ }).transform((v2) => {
39267
+ return remap(v2, {
39268
+ merchant_acquirer_bin: "merchantAcquirerBin",
39269
+ merchant_url: "merchantUrl",
39270
+ merchant_acquirer_id: "merchantAcquirerId",
39271
+ merchant_name: "merchantName",
39272
+ merchant_country_code: "merchantCountryCode",
39273
+ merchant_category_code: "merchantCategoryCode",
39274
+ created_at: "createdAt"
39275
+ });
39276
+ });
39277
+ MerchantProfileSchemeSummary$outboundSchema = objectType({
39278
+ merchantAcquirerBin: stringType(),
39279
+ merchantUrl: stringType(),
39280
+ merchantAcquirerId: stringType(),
39281
+ merchantName: stringType(),
39282
+ merchantCountryCode: stringType(),
39283
+ merchantCategoryCode: stringType(),
39284
+ createdAt: dateType().transform((v2) => v2.toISOString())
39285
+ }).transform((v2) => {
39286
+ return remap(v2, {
39287
+ merchantAcquirerBin: "merchant_acquirer_bin",
39288
+ merchantUrl: "merchant_url",
39289
+ merchantAcquirerId: "merchant_acquirer_id",
39290
+ merchantName: "merchant_name",
39291
+ merchantCountryCode: "merchant_country_code",
39292
+ merchantCategoryCode: "merchant_category_code",
39293
+ createdAt: "created_at"
39294
+ });
39295
+ });
39296
+ ((MerchantProfileSchemeSummary$) => {
39297
+ MerchantProfileSchemeSummary$.inboundSchema = MerchantProfileSchemeSummary$inboundSchema;
39298
+ MerchantProfileSchemeSummary$.outboundSchema = MerchantProfileSchemeSummary$outboundSchema;
39299
+ })(MerchantProfileSchemeSummary$ ||= {});
39300
+ });
39301
+
39302
+ // src/models/components/paymentservicestatus.ts
39303
+ var PaymentServiceStatus, PaymentServiceStatus$inboundSchema, PaymentServiceStatus$outboundSchema, PaymentServiceStatus$;
39304
+ var init_paymentservicestatus = __esm(() => {
39305
+ init_lib();
39306
+ PaymentServiceStatus = {
39307
+ Pending: "pending",
39308
+ Created: "created",
39309
+ Failed: "failed"
39310
+ };
39311
+ PaymentServiceStatus$inboundSchema = unionType([
39312
+ nativeEnumType(PaymentServiceStatus),
39313
+ stringType().transform(catchUnrecognizedEnum)
39314
+ ]);
39315
+ PaymentServiceStatus$outboundSchema = unionType([
39316
+ nativeEnumType(PaymentServiceStatus),
39317
+ stringType().and(custom())
39318
+ ]);
39319
+ ((PaymentServiceStatus$) => {
39320
+ PaymentServiceStatus$.inboundSchema = PaymentServiceStatus$inboundSchema;
39321
+ PaymentServiceStatus$.outboundSchema = PaymentServiceStatus$outboundSchema;
39322
+ })(PaymentServiceStatus$ ||= {});
39323
+ });
39324
+
39325
+ // src/models/components/paymentservice.ts
39326
+ var PaymentService$inboundSchema, PaymentService$outboundSchema, PaymentService$;
39327
+ var init_paymentservice = __esm(() => {
39328
+ init_lib();
39329
+ init_primitives();
39330
+ init_field();
39331
+ init_merchantprofileschemesummary();
39332
+ init_method();
39333
+ init_paymentservicestatus();
39334
+ PaymentService$inboundSchema = objectType({
39335
+ type: literalType("payment-service").default("payment-service"),
39336
+ id: stringType().default("The ID of the payment service"),
39337
+ merchant_account_id: stringType(),
39338
+ payment_service_definition_id: stringType(),
39339
+ active: booleanType().default(true),
39340
+ method: Method$inboundSchema,
39341
+ display_name: stringType(),
39342
+ position: numberType().int(),
39343
+ status: PaymentServiceStatus$inboundSchema.optional(),
39344
+ accepted_currencies: arrayType(stringType()),
39345
+ accepted_countries: arrayType(stringType()),
39346
+ payment_method_tokenization_enabled: booleanType(),
39347
+ network_tokens_enabled: booleanType(),
39348
+ open_loop: booleanType(),
39349
+ settlement_reporting_enabled: booleanType(),
39350
+ three_d_secure_enabled: nullableType(booleanType()).optional(),
39351
+ merchant_profile: nullableType(recordType(nullableType(MerchantProfileSchemeSummary$inboundSchema))).optional(),
39352
+ webhook_url: nullableType(stringType()).optional(),
39353
+ fields: nullableType(arrayType(Field$inboundSchema)).optional(),
39354
+ reporting_fields: nullableType(arrayType(Field$inboundSchema)).optional(),
39355
+ is_deleted: booleanType().default(false),
39356
+ created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
39357
+ updated_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
39358
+ }).transform((v2) => {
39359
+ return remap(v2, {
39360
+ merchant_account_id: "merchantAccountId",
39361
+ payment_service_definition_id: "paymentServiceDefinitionId",
39362
+ display_name: "displayName",
39363
+ accepted_currencies: "acceptedCurrencies",
39364
+ accepted_countries: "acceptedCountries",
39365
+ payment_method_tokenization_enabled: "paymentMethodTokenizationEnabled",
39366
+ network_tokens_enabled: "networkTokensEnabled",
39367
+ open_loop: "openLoop",
39368
+ settlement_reporting_enabled: "settlementReportingEnabled",
39369
+ three_d_secure_enabled: "threeDSecureEnabled",
39370
+ merchant_profile: "merchantProfile",
39371
+ webhook_url: "webhookUrl",
39372
+ reporting_fields: "reportingFields",
39373
+ is_deleted: "isDeleted",
39374
+ created_at: "createdAt",
39375
+ updated_at: "updatedAt"
39376
+ });
39377
+ });
39378
+ PaymentService$outboundSchema = objectType({
39379
+ type: literalType("payment-service").default("payment-service"),
39380
+ id: stringType().default("The ID of the payment service"),
39381
+ merchantAccountId: stringType(),
39382
+ paymentServiceDefinitionId: stringType(),
39383
+ active: booleanType().default(true),
39384
+ method: Method$outboundSchema,
39385
+ displayName: stringType(),
39386
+ position: numberType().int(),
39387
+ status: PaymentServiceStatus$outboundSchema.optional(),
39388
+ acceptedCurrencies: arrayType(stringType()),
39389
+ acceptedCountries: arrayType(stringType()),
39390
+ paymentMethodTokenizationEnabled: booleanType(),
39391
+ networkTokensEnabled: booleanType(),
39392
+ openLoop: booleanType(),
39393
+ settlementReportingEnabled: booleanType(),
39394
+ threeDSecureEnabled: nullableType(booleanType()).optional(),
39395
+ merchantProfile: nullableType(recordType(nullableType(MerchantProfileSchemeSummary$outboundSchema))).optional(),
39396
+ webhookUrl: nullableType(stringType()).optional(),
39397
+ fields: nullableType(arrayType(Field$outboundSchema)).optional(),
39398
+ reportingFields: nullableType(arrayType(Field$outboundSchema)).optional(),
39399
+ isDeleted: booleanType().default(false),
39400
+ createdAt: dateType().transform((v2) => v2.toISOString()),
39401
+ updatedAt: dateType().transform((v2) => v2.toISOString())
39402
+ }).transform((v2) => {
39403
+ return remap(v2, {
39404
+ merchantAccountId: "merchant_account_id",
39405
+ paymentServiceDefinitionId: "payment_service_definition_id",
39406
+ displayName: "display_name",
39407
+ acceptedCurrencies: "accepted_currencies",
39408
+ acceptedCountries: "accepted_countries",
39409
+ paymentMethodTokenizationEnabled: "payment_method_tokenization_enabled",
39410
+ networkTokensEnabled: "network_tokens_enabled",
39411
+ openLoop: "open_loop",
39412
+ settlementReportingEnabled: "settlement_reporting_enabled",
39413
+ threeDSecureEnabled: "three_d_secure_enabled",
39414
+ merchantProfile: "merchant_profile",
39415
+ webhookUrl: "webhook_url",
39416
+ reportingFields: "reporting_fields",
39417
+ isDeleted: "is_deleted",
39418
+ createdAt: "created_at",
39419
+ updatedAt: "updated_at"
39420
+ });
39421
+ });
39422
+ ((PaymentService$) => {
39423
+ PaymentService$.inboundSchema = PaymentService$inboundSchema;
39424
+ PaymentService$.outboundSchema = PaymentService$outboundSchema;
39425
+ })(PaymentService$ ||= {});
39426
+ });
39427
+
39428
+ // src/models/components/collectionpaymentservice.ts
39429
+ var CollectionPaymentService$inboundSchema, CollectionPaymentService$outboundSchema, CollectionPaymentService$;
39430
+ var init_collectionpaymentservice = __esm(() => {
39431
+ init_lib();
39432
+ init_primitives();
39433
+ init_paymentservice();
39434
+ CollectionPaymentService$inboundSchema = objectType({
39435
+ items: arrayType(PaymentService$inboundSchema),
39436
+ limit: numberType().int().default(20),
39437
+ next_cursor: nullableType(stringType()).optional(),
39438
+ previous_cursor: nullableType(stringType()).optional()
39439
+ }).transform((v2) => {
39440
+ return remap(v2, {
39441
+ next_cursor: "nextCursor",
39442
+ previous_cursor: "previousCursor"
39443
+ });
39444
+ });
39445
+ CollectionPaymentService$outboundSchema = objectType({
39446
+ items: arrayType(PaymentService$outboundSchema),
39447
+ limit: numberType().int().default(20),
39448
+ nextCursor: nullableType(stringType()).optional(),
39449
+ previousCursor: nullableType(stringType()).optional()
39450
+ }).transform((v2) => {
39451
+ return remap(v2, {
39452
+ nextCursor: "next_cursor",
39453
+ previousCursor: "previous_cursor"
39454
+ });
39455
+ });
39456
+ ((CollectionPaymentService$) => {
39457
+ CollectionPaymentService$.inboundSchema = CollectionPaymentService$inboundSchema;
39458
+ CollectionPaymentService$.outboundSchema = CollectionPaymentService$outboundSchema;
39459
+ })(CollectionPaymentService$ ||= {});
39460
+ });
39461
+
39462
+ // src/models/components/definitionfieldformat.ts
39463
+ var DefinitionFieldFormat, DefinitionFieldFormat$inboundSchema, DefinitionFieldFormat$outboundSchema, DefinitionFieldFormat$;
39464
+ var init_definitionfieldformat = __esm(() => {
39465
+ init_lib();
39466
+ DefinitionFieldFormat = {
39467
+ Text: "text",
39468
+ Multiline: "multiline",
39469
+ Number: "number",
39470
+ Timezone: "timezone",
39471
+ Boolean: "boolean"
39472
+ };
39473
+ DefinitionFieldFormat$inboundSchema = unionType([
39474
+ nativeEnumType(DefinitionFieldFormat),
39475
+ stringType().transform(catchUnrecognizedEnum)
39476
+ ]);
39477
+ DefinitionFieldFormat$outboundSchema = unionType([
39478
+ nativeEnumType(DefinitionFieldFormat),
39479
+ stringType().and(custom())
39480
+ ]);
39481
+ ((DefinitionFieldFormat$) => {
39482
+ DefinitionFieldFormat$.inboundSchema = DefinitionFieldFormat$inboundSchema;
39483
+ DefinitionFieldFormat$.outboundSchema = DefinitionFieldFormat$outboundSchema;
39484
+ })(DefinitionFieldFormat$ ||= {});
39485
+ });
39486
+
39487
+ // src/models/components/definitionfield.ts
39488
+ var DefinitionField$inboundSchema, DefinitionField$outboundSchema, DefinitionField$;
39489
+ var init_definitionfield = __esm(() => {
39490
+ init_lib();
39491
+ init_primitives();
39492
+ init_definitionfieldformat();
39493
+ DefinitionField$inboundSchema = objectType({
39494
+ key: stringType(),
39495
+ display_name: stringType(),
39496
+ required: booleanType(),
39497
+ format: DefinitionFieldFormat$inboundSchema,
39498
+ secret: booleanType()
39499
+ }).transform((v2) => {
39500
+ return remap(v2, {
39501
+ display_name: "displayName"
39502
+ });
39503
+ });
39504
+ DefinitionField$outboundSchema = objectType({
39505
+ key: stringType(),
39506
+ displayName: stringType(),
39507
+ required: booleanType(),
39508
+ format: DefinitionFieldFormat$outboundSchema,
39509
+ secret: booleanType()
39510
+ }).transform((v2) => {
39511
+ return remap(v2, {
39512
+ displayName: "display_name"
39513
+ });
39514
+ });
39515
+ ((DefinitionField$) => {
39516
+ DefinitionField$.inboundSchema = DefinitionField$inboundSchema;
39517
+ DefinitionField$.outboundSchema = DefinitionField$outboundSchema;
39518
+ })(DefinitionField$ ||= {});
39519
+ });
39520
+
39521
+ // src/models/components/paymentserviceconfiguration.ts
39522
+ var PaymentServiceConfiguration$inboundSchema, PaymentServiceConfiguration$outboundSchema, PaymentServiceConfiguration$;
39523
+ var init_paymentserviceconfiguration = __esm(() => {
39524
+ init_lib();
39525
+ init_primitives();
39526
+ init_approvaltarget();
39527
+ PaymentServiceConfiguration$inboundSchema = objectType({
39528
+ approval_ui_target: ApprovalTarget$inboundSchema,
39529
+ approval_ui_height: stringType(),
39530
+ approval_ui_width: stringType(),
39531
+ cart_items_limit: numberType().int(),
39532
+ cart_items_required: booleanType(),
39533
+ cart_items_should_match_amount: booleanType()
39534
+ }).transform((v2) => {
39535
+ return remap(v2, {
39536
+ approval_ui_target: "approvalUiTarget",
39537
+ approval_ui_height: "approvalUiHeight",
39538
+ approval_ui_width: "approvalUiWidth",
39539
+ cart_items_limit: "cartItemsLimit",
39540
+ cart_items_required: "cartItemsRequired",
39541
+ cart_items_should_match_amount: "cartItemsShouldMatchAmount"
39542
+ });
39543
+ });
39544
+ PaymentServiceConfiguration$outboundSchema = objectType({
39545
+ approvalUiTarget: ApprovalTarget$outboundSchema,
39546
+ approvalUiHeight: stringType(),
39547
+ approvalUiWidth: stringType(),
39548
+ cartItemsLimit: numberType().int(),
39549
+ cartItemsRequired: booleanType(),
39550
+ cartItemsShouldMatchAmount: booleanType()
39551
+ }).transform((v2) => {
39552
+ return remap(v2, {
39553
+ approvalUiTarget: "approval_ui_target",
39554
+ approvalUiHeight: "approval_ui_height",
39555
+ approvalUiWidth: "approval_ui_width",
39556
+ cartItemsLimit: "cart_items_limit",
39557
+ cartItemsRequired: "cart_items_required",
39558
+ cartItemsShouldMatchAmount: "cart_items_should_match_amount"
39559
+ });
39560
+ });
39561
+ ((PaymentServiceConfiguration$) => {
39562
+ PaymentServiceConfiguration$.inboundSchema = PaymentServiceConfiguration$inboundSchema;
39563
+ PaymentServiceConfiguration$.outboundSchema = PaymentServiceConfiguration$outboundSchema;
39564
+ })(PaymentServiceConfiguration$ ||= {});
39565
+ });
39566
+
39567
+ // src/models/components/requiredcheckoutfields.ts
39568
+ var RequiredCheckoutFields$inboundSchema, RequiredCheckoutFields$outboundSchema, RequiredCheckoutFields$;
39569
+ var init_requiredcheckoutfields = __esm(() => {
39570
+ init_lib();
39571
+ init_primitives();
39572
+ RequiredCheckoutFields$inboundSchema = objectType({
39573
+ required_fields: arrayType(stringType()),
39574
+ conditions: nullableType(recordType(anyType())).optional()
39575
+ }).transform((v2) => {
39576
+ return remap(v2, {
39577
+ required_fields: "requiredFields"
39578
+ });
39579
+ });
39580
+ RequiredCheckoutFields$outboundSchema = objectType({
39581
+ requiredFields: arrayType(stringType()),
39582
+ conditions: nullableType(recordType(anyType())).optional()
39583
+ }).transform((v2) => {
39584
+ return remap(v2, {
39585
+ requiredFields: "required_fields"
39586
+ });
39587
+ });
39588
+ ((RequiredCheckoutFields$) => {
39589
+ RequiredCheckoutFields$.inboundSchema = RequiredCheckoutFields$inboundSchema;
39590
+ RequiredCheckoutFields$.outboundSchema = RequiredCheckoutFields$outboundSchema;
39591
+ })(RequiredCheckoutFields$ ||= {});
39592
+ });
39593
+
39594
+ // src/models/components/paymentservicedefinition.ts
39595
+ var PaymentServiceDefinition$inboundSchema, PaymentServiceDefinition$outboundSchema, PaymentServiceDefinition$;
39596
+ var init_paymentservicedefinition = __esm(() => {
39597
+ init_lib();
39598
+ init_primitives();
39599
+ init_definitionfield();
39600
+ init_method();
39601
+ init_mode();
39602
+ init_paymentserviceconfiguration();
39603
+ init_requiredcheckoutfields();
39604
+ PaymentServiceDefinition$inboundSchema = objectType({
39605
+ id: stringType(),
39606
+ type: literalType("payment-service-definition").default("payment-service-definition"),
39607
+ display_name: stringType(),
39608
+ method: Method$inboundSchema,
39609
+ fields: arrayType(DefinitionField$inboundSchema),
39610
+ reporting_fields: arrayType(DefinitionField$inboundSchema),
39611
+ supported_currencies: arrayType(stringType()),
39612
+ supported_countries: arrayType(stringType()),
39613
+ mode: Mode$inboundSchema,
39614
+ icon_url: nullableType(stringType()).optional(),
39615
+ supported_features: recordType(booleanType()),
39616
+ required_checkout_fields: arrayType(RequiredCheckoutFields$inboundSchema),
39617
+ configuration: PaymentServiceConfiguration$inboundSchema
39618
+ }).transform((v2) => {
39619
+ return remap(v2, {
39620
+ display_name: "displayName",
39621
+ reporting_fields: "reportingFields",
39622
+ supported_currencies: "supportedCurrencies",
39623
+ supported_countries: "supportedCountries",
39624
+ icon_url: "iconUrl",
39625
+ supported_features: "supportedFeatures",
39626
+ required_checkout_fields: "requiredCheckoutFields"
39627
+ });
39628
+ });
39629
+ PaymentServiceDefinition$outboundSchema = objectType({
39630
+ id: stringType(),
39631
+ type: literalType("payment-service-definition").default("payment-service-definition"),
39632
+ displayName: stringType(),
39633
+ method: Method$outboundSchema,
39634
+ fields: arrayType(DefinitionField$outboundSchema),
39635
+ reportingFields: arrayType(DefinitionField$outboundSchema),
39636
+ supportedCurrencies: arrayType(stringType()),
39637
+ supportedCountries: arrayType(stringType()),
39638
+ mode: Mode$outboundSchema,
39639
+ iconUrl: nullableType(stringType()).optional(),
39640
+ supportedFeatures: recordType(booleanType()),
39641
+ requiredCheckoutFields: arrayType(RequiredCheckoutFields$outboundSchema),
39642
+ configuration: PaymentServiceConfiguration$outboundSchema
39643
+ }).transform((v2) => {
39644
+ return remap(v2, {
39645
+ displayName: "display_name",
39646
+ reportingFields: "reporting_fields",
39647
+ supportedCurrencies: "supported_currencies",
39648
+ supportedCountries: "supported_countries",
39649
+ iconUrl: "icon_url",
39650
+ supportedFeatures: "supported_features",
39651
+ requiredCheckoutFields: "required_checkout_fields"
39652
+ });
39653
+ });
39654
+ ((PaymentServiceDefinition$) => {
39655
+ PaymentServiceDefinition$.inboundSchema = PaymentServiceDefinition$inboundSchema;
39656
+ PaymentServiceDefinition$.outboundSchema = PaymentServiceDefinition$outboundSchema;
39657
+ })(PaymentServiceDefinition$ ||= {});
39658
+ });
39659
+
39660
+ // src/models/components/collectionpaymentservicedefinition.ts
39661
+ var CollectionPaymentServiceDefinition$inboundSchema, CollectionPaymentServiceDefinition$outboundSchema, CollectionPaymentServiceDefinition$;
39662
+ var init_collectionpaymentservicedefinition = __esm(() => {
39663
+ init_lib();
39664
+ init_primitives();
39665
+ init_paymentservicedefinition();
39666
+ CollectionPaymentServiceDefinition$inboundSchema = objectType({
39667
+ items: arrayType(PaymentServiceDefinition$inboundSchema),
39668
+ limit: numberType().int().default(20),
39669
+ next_cursor: nullableType(stringType()).optional(),
39670
+ previous_cursor: nullableType(stringType()).optional()
39671
+ }).transform((v2) => {
39672
+ return remap(v2, {
39673
+ next_cursor: "nextCursor",
39674
+ previous_cursor: "previousCursor"
39675
+ });
39676
+ });
39677
+ CollectionPaymentServiceDefinition$outboundSchema = objectType({
39678
+ items: arrayType(PaymentServiceDefinition$outboundSchema),
39679
+ limit: numberType().int().default(20),
39680
+ nextCursor: nullableType(stringType()).optional(),
39681
+ previousCursor: nullableType(stringType()).optional()
39682
+ }).transform((v2) => {
39683
+ return remap(v2, {
39684
+ nextCursor: "next_cursor",
39685
+ previousCursor: "previous_cursor"
39686
+ });
39687
+ });
39688
+ ((CollectionPaymentServiceDefinition$) => {
39689
+ CollectionPaymentServiceDefinition$.inboundSchema = CollectionPaymentServiceDefinition$inboundSchema;
39690
+ CollectionPaymentServiceDefinition$.outboundSchema = CollectionPaymentServiceDefinition$outboundSchema;
39691
+ })(CollectionPaymentServiceDefinition$ ||= {});
39692
+ });
39693
+
39239
39694
  // src/models/components/payoutcategory.ts
39240
39695
  var PayoutCategory, PayoutCategory$inboundSchema, PayoutCategory$outboundSchema, PayoutCategory$;
39241
39696
  var init_payoutcategory = __esm(() => {
@@ -40035,6 +40490,64 @@ var init_connectionoptions = __esm(() => {
40035
40490
  })(ConnectionOptions$ ||= {});
40036
40491
  });
40037
40492
 
40493
+ // src/models/components/createsessionstatus.ts
40494
+ var CreateSessionStatus, CreateSessionStatus$inboundSchema, CreateSessionStatus$outboundSchema, CreateSessionStatus$;
40495
+ var init_createsessionstatus = __esm(() => {
40496
+ init_lib();
40497
+ CreateSessionStatus = {
40498
+ Succeeded: "succeeded",
40499
+ Failed: "failed"
40500
+ };
40501
+ CreateSessionStatus$inboundSchema = unionType([
40502
+ nativeEnumType(CreateSessionStatus),
40503
+ stringType().transform(catchUnrecognizedEnum)
40504
+ ]);
40505
+ CreateSessionStatus$outboundSchema = unionType([
40506
+ nativeEnumType(CreateSessionStatus),
40507
+ stringType().and(custom())
40508
+ ]);
40509
+ ((CreateSessionStatus$) => {
40510
+ CreateSessionStatus$.inboundSchema = CreateSessionStatus$inboundSchema;
40511
+ CreateSessionStatus$.outboundSchema = CreateSessionStatus$outboundSchema;
40512
+ })(CreateSessionStatus$ ||= {});
40513
+ });
40514
+
40515
+ // src/models/components/createsession.ts
40516
+ var CreateSession$inboundSchema, CreateSession$outboundSchema, CreateSession$;
40517
+ var init_createsession = __esm(() => {
40518
+ init_lib();
40519
+ init_primitives();
40520
+ init_createsessionstatus();
40521
+ CreateSession$inboundSchema = objectType({
40522
+ type: literalType("payment-service-session").default("payment-service-session"),
40523
+ status: CreateSessionStatus$inboundSchema,
40524
+ code: nullableType(stringType()).optional(),
40525
+ status_code: nullableType(numberType().int()).optional(),
40526
+ response_body: nullableType(recordType(anyType())).optional()
40527
+ }).transform((v2) => {
40528
+ return remap(v2, {
40529
+ status_code: "statusCode",
40530
+ response_body: "responseBody"
40531
+ });
40532
+ });
40533
+ CreateSession$outboundSchema = objectType({
40534
+ type: literalType("payment-service-session").default("payment-service-session"),
40535
+ status: CreateSessionStatus$outboundSchema,
40536
+ code: nullableType(stringType()).optional(),
40537
+ statusCode: nullableType(numberType().int()).optional(),
40538
+ responseBody: nullableType(recordType(anyType())).optional()
40539
+ }).transform((v2) => {
40540
+ return remap(v2, {
40541
+ statusCode: "status_code",
40542
+ responseBody: "response_body"
40543
+ });
40544
+ });
40545
+ ((CreateSession$) => {
40546
+ CreateSession$.inboundSchema = CreateSession$inboundSchema;
40547
+ CreateSession$.outboundSchema = CreateSession$outboundSchema;
40548
+ })(CreateSession$ ||= {});
40549
+ });
40550
+
40038
40551
  // src/models/components/cryptogram.ts
40039
40552
  var Cryptogram$inboundSchema, Cryptogram$outboundSchema, Cryptogram$;
40040
40553
  var init_cryptogram = __esm(() => {
@@ -40806,6 +41319,51 @@ var init_merchantaccountupdate = __esm(() => {
40806
41319
  })(MerchantAccountUpdate$ ||= {});
40807
41320
  });
40808
41321
 
41322
+ // src/models/components/merchantprofilescheme.ts
41323
+ var MerchantProfileScheme$inboundSchema, MerchantProfileScheme$outboundSchema, MerchantProfileScheme$;
41324
+ var init_merchantprofilescheme = __esm(() => {
41325
+ init_lib();
41326
+ init_primitives();
41327
+ MerchantProfileScheme$inboundSchema = objectType({
41328
+ merchant_acquirer_bin: stringType(),
41329
+ merchant_url: stringType(),
41330
+ merchant_acquirer_id: stringType(),
41331
+ merchant_name: stringType(),
41332
+ merchant_country_code: stringType(),
41333
+ merchant_category_code: stringType()
41334
+ }).transform((v2) => {
41335
+ return remap(v2, {
41336
+ merchant_acquirer_bin: "merchantAcquirerBin",
41337
+ merchant_url: "merchantUrl",
41338
+ merchant_acquirer_id: "merchantAcquirerId",
41339
+ merchant_name: "merchantName",
41340
+ merchant_country_code: "merchantCountryCode",
41341
+ merchant_category_code: "merchantCategoryCode"
41342
+ });
41343
+ });
41344
+ MerchantProfileScheme$outboundSchema = objectType({
41345
+ merchantAcquirerBin: stringType(),
41346
+ merchantUrl: stringType(),
41347
+ merchantAcquirerId: stringType(),
41348
+ merchantName: stringType(),
41349
+ merchantCountryCode: stringType(),
41350
+ merchantCategoryCode: stringType()
41351
+ }).transform((v2) => {
41352
+ return remap(v2, {
41353
+ merchantAcquirerBin: "merchant_acquirer_bin",
41354
+ merchantUrl: "merchant_url",
41355
+ merchantAcquirerId: "merchant_acquirer_id",
41356
+ merchantName: "merchant_name",
41357
+ merchantCountryCode: "merchant_country_code",
41358
+ merchantCategoryCode: "merchant_category_code"
41359
+ });
41360
+ });
41361
+ ((MerchantProfileScheme$) => {
41362
+ MerchantProfileScheme$.inboundSchema = MerchantProfileScheme$inboundSchema;
41363
+ MerchantProfileScheme$.outboundSchema = MerchantProfileScheme$outboundSchema;
41364
+ })(MerchantProfileScheme$ ||= {});
41365
+ });
41366
+
40809
41367
  // src/models/components/networktokencreate.ts
40810
41368
  var NetworkTokenCreate$inboundSchema, NetworkTokenCreate$outboundSchema, NetworkTokenCreate$;
40811
41369
  var init_networktokencreate = __esm(() => {
@@ -41001,6 +41559,79 @@ var init_paymentoptionrequest = __esm(() => {
41001
41559
  })(PaymentOptionRequest$ ||= {});
41002
41560
  });
41003
41561
 
41562
+ // src/models/components/paymentservicecreate.ts
41563
+ var PaymentServiceCreate$inboundSchema, PaymentServiceCreate$outboundSchema, PaymentServiceCreate$;
41564
+ var init_paymentservicecreate = __esm(() => {
41565
+ init_lib();
41566
+ init_primitives();
41567
+ init_field();
41568
+ init_merchantprofilescheme();
41569
+ PaymentServiceCreate$inboundSchema = objectType({
41570
+ display_name: stringType(),
41571
+ payment_service_definition_id: stringType(),
41572
+ fields: arrayType(Field$inboundSchema),
41573
+ reporting_fields: nullableType(arrayType(Field$inboundSchema)).optional(),
41574
+ position: nullableType(numberType().int()).optional(),
41575
+ accepted_currencies: arrayType(stringType()),
41576
+ accepted_countries: arrayType(stringType()),
41577
+ active: nullableType(booleanType()).optional(),
41578
+ three_d_secure_enabled: booleanType().default(false),
41579
+ merchant_profile: nullableType(recordType(nullableType(MerchantProfileScheme$inboundSchema))).optional(),
41580
+ payment_method_tokenization_enabled: nullableType(booleanType()).optional(),
41581
+ network_tokens_enabled: nullableType(booleanType()).optional(),
41582
+ open_loop: nullableType(booleanType()).optional(),
41583
+ settlement_reporting_enabled: booleanType().default(false)
41584
+ }).transform((v2) => {
41585
+ return remap(v2, {
41586
+ display_name: "displayName",
41587
+ payment_service_definition_id: "paymentServiceDefinitionId",
41588
+ reporting_fields: "reportingFields",
41589
+ accepted_currencies: "acceptedCurrencies",
41590
+ accepted_countries: "acceptedCountries",
41591
+ three_d_secure_enabled: "threeDSecureEnabled",
41592
+ merchant_profile: "merchantProfile",
41593
+ payment_method_tokenization_enabled: "paymentMethodTokenizationEnabled",
41594
+ network_tokens_enabled: "networkTokensEnabled",
41595
+ open_loop: "openLoop",
41596
+ settlement_reporting_enabled: "settlementReportingEnabled"
41597
+ });
41598
+ });
41599
+ PaymentServiceCreate$outboundSchema = objectType({
41600
+ displayName: stringType(),
41601
+ paymentServiceDefinitionId: stringType(),
41602
+ fields: arrayType(Field$outboundSchema),
41603
+ reportingFields: nullableType(arrayType(Field$outboundSchema)).optional(),
41604
+ position: nullableType(numberType().int()).optional(),
41605
+ acceptedCurrencies: arrayType(stringType()),
41606
+ acceptedCountries: arrayType(stringType()),
41607
+ active: nullableType(booleanType()).optional(),
41608
+ threeDSecureEnabled: booleanType().default(false),
41609
+ merchantProfile: nullableType(recordType(nullableType(MerchantProfileScheme$outboundSchema))).optional(),
41610
+ paymentMethodTokenizationEnabled: nullableType(booleanType()).optional(),
41611
+ networkTokensEnabled: nullableType(booleanType()).optional(),
41612
+ openLoop: nullableType(booleanType()).optional(),
41613
+ settlementReportingEnabled: booleanType().default(false)
41614
+ }).transform((v2) => {
41615
+ return remap(v2, {
41616
+ displayName: "display_name",
41617
+ paymentServiceDefinitionId: "payment_service_definition_id",
41618
+ reportingFields: "reporting_fields",
41619
+ acceptedCurrencies: "accepted_currencies",
41620
+ acceptedCountries: "accepted_countries",
41621
+ threeDSecureEnabled: "three_d_secure_enabled",
41622
+ merchantProfile: "merchant_profile",
41623
+ paymentMethodTokenizationEnabled: "payment_method_tokenization_enabled",
41624
+ networkTokensEnabled: "network_tokens_enabled",
41625
+ openLoop: "open_loop",
41626
+ settlementReportingEnabled: "settlement_reporting_enabled"
41627
+ });
41628
+ });
41629
+ ((PaymentServiceCreate$) => {
41630
+ PaymentServiceCreate$.inboundSchema = PaymentServiceCreate$inboundSchema;
41631
+ PaymentServiceCreate$.outboundSchema = PaymentServiceCreate$outboundSchema;
41632
+ })(PaymentServiceCreate$ ||= {});
41633
+ });
41634
+
41004
41635
  // src/models/components/paymentservicetokencreate.ts
41005
41636
  var PaymentServiceTokenCreate$inboundSchema, PaymentServiceTokenCreate$outboundSchema, PaymentServiceTokenCreate$;
41006
41637
  var init_paymentservicetokencreate = __esm(() => {
@@ -41034,6 +41665,93 @@ var init_paymentservicetokencreate = __esm(() => {
41034
41665
  })(PaymentServiceTokenCreate$ ||= {});
41035
41666
  });
41036
41667
 
41668
+ // src/models/components/voidablefield.ts
41669
+ var VoidableField$inboundSchema, VoidableField$outboundSchema, VoidableField$;
41670
+ var init_voidablefield = __esm(() => {
41671
+ init_lib();
41672
+ VoidableField$inboundSchema = objectType({
41673
+ key: stringType(),
41674
+ value: stringType()
41675
+ });
41676
+ VoidableField$outboundSchema = objectType({
41677
+ key: stringType(),
41678
+ value: stringType()
41679
+ });
41680
+ ((VoidableField$) => {
41681
+ VoidableField$.inboundSchema = VoidableField$inboundSchema;
41682
+ VoidableField$.outboundSchema = VoidableField$outboundSchema;
41683
+ })(VoidableField$ ||= {});
41684
+ });
41685
+
41686
+ // src/models/components/paymentserviceupdate.ts
41687
+ var PaymentServiceUpdate$inboundSchema, PaymentServiceUpdate$outboundSchema, PaymentServiceUpdate$;
41688
+ var init_paymentserviceupdate = __esm(() => {
41689
+ init_lib();
41690
+ init_primitives();
41691
+ init_merchantprofilescheme();
41692
+ init_voidablefield();
41693
+ PaymentServiceUpdate$inboundSchema = objectType({
41694
+ display_name: nullableType(stringType()).optional(),
41695
+ fields: nullableType(arrayType(VoidableField$inboundSchema)).optional(),
41696
+ reporting_fields: nullableType(arrayType(VoidableField$inboundSchema)).optional(),
41697
+ position: nullableType(numberType().int()).optional(),
41698
+ accepted_currencies: nullableType(arrayType(stringType())).optional(),
41699
+ accepted_countries: nullableType(arrayType(stringType())).optional(),
41700
+ active: nullableType(booleanType()).optional(),
41701
+ three_d_secure_enabled: nullableType(booleanType()).optional(),
41702
+ merchant_profile: nullableType(recordType(nullableType(MerchantProfileScheme$inboundSchema))).optional(),
41703
+ payment_method_tokenization_enabled: nullableType(booleanType()).optional(),
41704
+ network_tokens_enabled: nullableType(booleanType()).optional(),
41705
+ open_loop: nullableType(booleanType()).optional(),
41706
+ settlement_reporting_enabled: booleanType().default(false)
41707
+ }).transform((v2) => {
41708
+ return remap(v2, {
41709
+ display_name: "displayName",
41710
+ reporting_fields: "reportingFields",
41711
+ accepted_currencies: "acceptedCurrencies",
41712
+ accepted_countries: "acceptedCountries",
41713
+ three_d_secure_enabled: "threeDSecureEnabled",
41714
+ merchant_profile: "merchantProfile",
41715
+ payment_method_tokenization_enabled: "paymentMethodTokenizationEnabled",
41716
+ network_tokens_enabled: "networkTokensEnabled",
41717
+ open_loop: "openLoop",
41718
+ settlement_reporting_enabled: "settlementReportingEnabled"
41719
+ });
41720
+ });
41721
+ PaymentServiceUpdate$outboundSchema = objectType({
41722
+ displayName: nullableType(stringType()).optional(),
41723
+ fields: nullableType(arrayType(VoidableField$outboundSchema)).optional(),
41724
+ reportingFields: nullableType(arrayType(VoidableField$outboundSchema)).optional(),
41725
+ position: nullableType(numberType().int()).optional(),
41726
+ acceptedCurrencies: nullableType(arrayType(stringType())).optional(),
41727
+ acceptedCountries: nullableType(arrayType(stringType())).optional(),
41728
+ active: nullableType(booleanType()).optional(),
41729
+ threeDSecureEnabled: nullableType(booleanType()).optional(),
41730
+ merchantProfile: nullableType(recordType(nullableType(MerchantProfileScheme$outboundSchema))).optional(),
41731
+ paymentMethodTokenizationEnabled: nullableType(booleanType()).optional(),
41732
+ networkTokensEnabled: nullableType(booleanType()).optional(),
41733
+ openLoop: nullableType(booleanType()).optional(),
41734
+ settlementReportingEnabled: booleanType().default(false)
41735
+ }).transform((v2) => {
41736
+ return remap(v2, {
41737
+ displayName: "display_name",
41738
+ reportingFields: "reporting_fields",
41739
+ acceptedCurrencies: "accepted_currencies",
41740
+ acceptedCountries: "accepted_countries",
41741
+ threeDSecureEnabled: "three_d_secure_enabled",
41742
+ merchantProfile: "merchant_profile",
41743
+ paymentMethodTokenizationEnabled: "payment_method_tokenization_enabled",
41744
+ networkTokensEnabled: "network_tokens_enabled",
41745
+ openLoop: "open_loop",
41746
+ settlementReportingEnabled: "settlement_reporting_enabled"
41747
+ });
41748
+ });
41749
+ ((PaymentServiceUpdate$) => {
41750
+ PaymentServiceUpdate$.inboundSchema = PaymentServiceUpdate$inboundSchema;
41751
+ PaymentServiceUpdate$.outboundSchema = PaymentServiceUpdate$outboundSchema;
41752
+ })(PaymentServiceUpdate$ ||= {});
41753
+ });
41754
+
41037
41755
  // src/models/components/payoutmerchant.ts
41038
41756
  var PayoutMerchant$inboundSchema, PayoutMerchant$outboundSchema, PayoutMerchant$;
41039
41757
  var init_payoutmerchant = __esm(() => {
@@ -42364,6 +43082,38 @@ var init_validationerror = __esm(() => {
42364
43082
  })(ValidationError$ ||= {});
42365
43083
  });
42366
43084
 
43085
+ // src/models/components/verifycredentials.ts
43086
+ var VerifyCredentials$inboundSchema, VerifyCredentials$outboundSchema, VerifyCredentials$;
43087
+ var init_verifycredentials = __esm(() => {
43088
+ init_lib();
43089
+ init_primitives();
43090
+ init_field();
43091
+ VerifyCredentials$inboundSchema = objectType({
43092
+ payment_service_definition_id: stringType(),
43093
+ payment_service_id: nullableType(stringType()).optional(),
43094
+ fields: arrayType(Field$inboundSchema)
43095
+ }).transform((v2) => {
43096
+ return remap(v2, {
43097
+ payment_service_definition_id: "paymentServiceDefinitionId",
43098
+ payment_service_id: "paymentServiceId"
43099
+ });
43100
+ });
43101
+ VerifyCredentials$outboundSchema = objectType({
43102
+ paymentServiceDefinitionId: stringType(),
43103
+ paymentServiceId: nullableType(stringType()).optional(),
43104
+ fields: arrayType(Field$outboundSchema)
43105
+ }).transform((v2) => {
43106
+ return remap(v2, {
43107
+ paymentServiceDefinitionId: "payment_service_definition_id",
43108
+ paymentServiceId: "payment_service_id"
43109
+ });
43110
+ });
43111
+ ((VerifyCredentials$) => {
43112
+ VerifyCredentials$.inboundSchema = VerifyCredentials$inboundSchema;
43113
+ VerifyCredentials$.outboundSchema = VerifyCredentials$outboundSchema;
43114
+ })(VerifyCredentials$ ||= {});
43115
+ });
43116
+
42367
43117
  // src/models/components/index.ts
42368
43118
  var init_components = __esm(() => {
42369
43119
  init_accountupdaterinquirysummary();
@@ -42420,14 +43170,20 @@ var init_components = __esm(() => {
42420
43170
  init_collectionnocursorrefund();
42421
43171
  init_collectionnocursorshippingdetails();
42422
43172
  init_collectionpaymentmethod();
43173
+ init_collectionpaymentservice();
43174
+ init_collectionpaymentservicedefinition();
42423
43175
  init_collectionpayoutsummary();
42424
43176
  init_collectionrefund();
42425
43177
  init_collectiontransactionsummary();
42426
43178
  init_connectionoptions();
43179
+ init_createsession();
43180
+ init_createsessionstatus();
42427
43181
  init_creator();
42428
43182
  init_cryptogram();
42429
43183
  init_cryptogramcreate();
42430
43184
  init_cvvresponsecode();
43185
+ init_definitionfield();
43186
+ init_definitionfieldformat();
42431
43187
  init_digitalwallet();
42432
43188
  init_digitalwalletcreate();
42433
43189
  init_digitalwalletdomain();
@@ -42435,6 +43191,7 @@ var init_components = __esm(() => {
42435
43191
  init_digitalwalletupdate();
42436
43192
  init_errordetail();
42437
43193
  init_errorlocation();
43194
+ init_field();
42438
43195
  init_giftcard();
42439
43196
  init_giftcardbalancerequest();
42440
43197
  init_giftcardcreate();
@@ -42460,6 +43217,8 @@ var init_components = __esm(() => {
42460
43217
  init_merchantaccount();
42461
43218
  init_merchantaccountcreate();
42462
43219
  init_merchantaccountupdate();
43220
+ init_merchantprofilescheme();
43221
+ init_merchantprofileschemesummary();
42463
43222
  init_method();
42464
43223
  init_mode();
42465
43224
  init_networktoken();
@@ -42476,8 +43235,14 @@ var init_components = __esm(() => {
42476
43235
  init_paymentoptioncontext();
42477
43236
  init_paymentoptioncontextapprovalui();
42478
43237
  init_paymentoptionrequest();
43238
+ init_paymentservice();
43239
+ init_paymentserviceconfiguration();
43240
+ init_paymentservicecreate();
43241
+ init_paymentservicedefinition();
43242
+ init_paymentservicestatus();
42479
43243
  init_paymentservicetoken();
42480
43244
  init_paymentservicetokencreate();
43245
+ init_paymentserviceupdate();
42481
43246
  init_payoutcategory();
42482
43247
  init_payoutcreate();
42483
43248
  init_payoutmerchant();
@@ -42491,6 +43256,7 @@ var init_components = __esm(() => {
42491
43256
  init_refund();
42492
43257
  init_refundstatus();
42493
43258
  init_refundtargettype();
43259
+ init_requiredcheckoutfields();
42494
43260
  init_security2();
42495
43261
  init_shippingdetails();
42496
43262
  init_shippingdetailscreate();
@@ -42523,6 +43289,8 @@ var init_components = __esm(() => {
42523
43289
  init_transactionthreedsecuresummary();
42524
43290
  init_userstatus();
42525
43291
  init_validationerror();
43292
+ init_verifycredentials();
43293
+ init_voidablefield();
42526
43294
  init_walletpaymentoptioncontext();
42527
43295
  });
42528
43296
 
@@ -43038,6 +43806,75 @@ var init_createpaymentmethodpaymentservicetoken = __esm(() => {
43038
43806
  })(CreatePaymentMethodPaymentServiceTokenResponse403CreatePaymentMethodPaymentServiceToken$ ||= {});
43039
43807
  });
43040
43808
 
43809
+ // src/models/errors/createpaymentservice.ts
43810
+ var CreatePaymentServiceResponse403CreatePaymentService$inboundSchema, CreatePaymentServiceResponse403CreatePaymentService$outboundSchema, CreatePaymentServiceResponse403CreatePaymentService$;
43811
+ var init_createpaymentservice = __esm(() => {
43812
+ init_lib();
43813
+ init_error403();
43814
+ init_error403active();
43815
+ init_error403forbidden();
43816
+ CreatePaymentServiceResponse403CreatePaymentService$inboundSchema = unionType([
43817
+ Error403$inboundSchema,
43818
+ Error403Forbidden$inboundSchema,
43819
+ Error403Active$inboundSchema
43820
+ ]);
43821
+ CreatePaymentServiceResponse403CreatePaymentService$outboundSchema = unionType([
43822
+ Error403$outboundSchema,
43823
+ Error403Forbidden$outboundSchema,
43824
+ Error403Active$outboundSchema
43825
+ ]);
43826
+ ((CreatePaymentServiceResponse403CreatePaymentService$) => {
43827
+ CreatePaymentServiceResponse403CreatePaymentService$.inboundSchema = CreatePaymentServiceResponse403CreatePaymentService$inboundSchema;
43828
+ CreatePaymentServiceResponse403CreatePaymentService$.outboundSchema = CreatePaymentServiceResponse403CreatePaymentService$outboundSchema;
43829
+ })(CreatePaymentServiceResponse403CreatePaymentService$ ||= {});
43830
+ });
43831
+
43832
+ // src/models/errors/createpaymentservicedefinitionsession.ts
43833
+ var CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$inboundSchema, CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$outboundSchema, CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$;
43834
+ var init_createpaymentservicedefinitionsession = __esm(() => {
43835
+ init_lib();
43836
+ init_error403();
43837
+ init_error403active();
43838
+ init_error403forbidden();
43839
+ CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$inboundSchema = unionType([
43840
+ Error403$inboundSchema,
43841
+ Error403Forbidden$inboundSchema,
43842
+ Error403Active$inboundSchema
43843
+ ]);
43844
+ CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$outboundSchema = unionType([
43845
+ Error403$outboundSchema,
43846
+ Error403Forbidden$outboundSchema,
43847
+ Error403Active$outboundSchema
43848
+ ]);
43849
+ ((CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$) => {
43850
+ CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$.inboundSchema = CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$inboundSchema;
43851
+ CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$.outboundSchema = CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$outboundSchema;
43852
+ })(CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$ ||= {});
43853
+ });
43854
+
43855
+ // src/models/errors/createpaymentservicesession.ts
43856
+ var CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$inboundSchema, CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$outboundSchema, CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$;
43857
+ var init_createpaymentservicesession = __esm(() => {
43858
+ init_lib();
43859
+ init_error403();
43860
+ init_error403active();
43861
+ init_error403forbidden();
43862
+ CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$inboundSchema = unionType([
43863
+ Error403$inboundSchema,
43864
+ Error403Forbidden$inboundSchema,
43865
+ Error403Active$inboundSchema
43866
+ ]);
43867
+ CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$outboundSchema = unionType([
43868
+ Error403$outboundSchema,
43869
+ Error403Forbidden$outboundSchema,
43870
+ Error403Active$outboundSchema
43871
+ ]);
43872
+ ((CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$) => {
43873
+ CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$.inboundSchema = CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$inboundSchema;
43874
+ CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$.outboundSchema = CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$outboundSchema;
43875
+ })(CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$ ||= {});
43876
+ });
43877
+
43041
43878
  // src/models/errors/createpayout.ts
43042
43879
  var CreatePayoutResponse403CreatePayout$inboundSchema, CreatePayoutResponse403CreatePayout$outboundSchema, CreatePayoutResponse403CreatePayout$;
43043
43880
  var init_createpayout = __esm(() => {
@@ -43291,6 +44128,29 @@ var init_deletepaymentmethodpaymentservicetoken = __esm(() => {
43291
44128
  })(DeletePaymentMethodPaymentServiceTokenResponse403DeletePaymentMethodPaymentServiceToken$ ||= {});
43292
44129
  });
43293
44130
 
44131
+ // src/models/errors/deletepaymentservice.ts
44132
+ var DeletePaymentServiceResponse403DeletePaymentService$inboundSchema, DeletePaymentServiceResponse403DeletePaymentService$outboundSchema, DeletePaymentServiceResponse403DeletePaymentService$;
44133
+ var init_deletepaymentservice = __esm(() => {
44134
+ init_lib();
44135
+ init_error403();
44136
+ init_error403active();
44137
+ init_error403forbidden();
44138
+ DeletePaymentServiceResponse403DeletePaymentService$inboundSchema = unionType([
44139
+ Error403$inboundSchema,
44140
+ Error403Forbidden$inboundSchema,
44141
+ Error403Active$inboundSchema
44142
+ ]);
44143
+ DeletePaymentServiceResponse403DeletePaymentService$outboundSchema = unionType([
44144
+ Error403$outboundSchema,
44145
+ Error403Forbidden$outboundSchema,
44146
+ Error403Active$outboundSchema
44147
+ ]);
44148
+ ((DeletePaymentServiceResponse403DeletePaymentService$) => {
44149
+ DeletePaymentServiceResponse403DeletePaymentService$.inboundSchema = DeletePaymentServiceResponse403DeletePaymentService$inboundSchema;
44150
+ DeletePaymentServiceResponse403DeletePaymentService$.outboundSchema = DeletePaymentServiceResponse403DeletePaymentService$outboundSchema;
44151
+ })(DeletePaymentServiceResponse403DeletePaymentService$ ||= {});
44152
+ });
44153
+
43294
44154
  // src/models/errors/error400.ts
43295
44155
  var Error400, Error400$inboundSchema, Error400$outboundSchema, Error400$;
43296
44156
  var init_error400 = __esm(() => {
@@ -43932,6 +44792,52 @@ var init_getpaymentmethod = __esm(() => {
43932
44792
  })(GetPaymentMethodResponse403GetPaymentMethod$ ||= {});
43933
44793
  });
43934
44794
 
44795
+ // src/models/errors/getpaymentservice.ts
44796
+ var GetPaymentServiceResponse403GetPaymentService$inboundSchema, GetPaymentServiceResponse403GetPaymentService$outboundSchema, GetPaymentServiceResponse403GetPaymentService$;
44797
+ var init_getpaymentservice = __esm(() => {
44798
+ init_lib();
44799
+ init_error403();
44800
+ init_error403active();
44801
+ init_error403forbidden();
44802
+ GetPaymentServiceResponse403GetPaymentService$inboundSchema = unionType([
44803
+ Error403$inboundSchema,
44804
+ Error403Forbidden$inboundSchema,
44805
+ Error403Active$inboundSchema
44806
+ ]);
44807
+ GetPaymentServiceResponse403GetPaymentService$outboundSchema = unionType([
44808
+ Error403$outboundSchema,
44809
+ Error403Forbidden$outboundSchema,
44810
+ Error403Active$outboundSchema
44811
+ ]);
44812
+ ((GetPaymentServiceResponse403GetPaymentService$) => {
44813
+ GetPaymentServiceResponse403GetPaymentService$.inboundSchema = GetPaymentServiceResponse403GetPaymentService$inboundSchema;
44814
+ GetPaymentServiceResponse403GetPaymentService$.outboundSchema = GetPaymentServiceResponse403GetPaymentService$outboundSchema;
44815
+ })(GetPaymentServiceResponse403GetPaymentService$ ||= {});
44816
+ });
44817
+
44818
+ // src/models/errors/getpaymentservicedefinition.ts
44819
+ var GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$inboundSchema, GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$outboundSchema, GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$;
44820
+ var init_getpaymentservicedefinition = __esm(() => {
44821
+ init_lib();
44822
+ init_error403();
44823
+ init_error403active();
44824
+ init_error403forbidden();
44825
+ GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$inboundSchema = unionType([
44826
+ Error403$inboundSchema,
44827
+ Error403Forbidden$inboundSchema,
44828
+ Error403Active$inboundSchema
44829
+ ]);
44830
+ GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$outboundSchema = unionType([
44831
+ Error403$outboundSchema,
44832
+ Error403Forbidden$outboundSchema,
44833
+ Error403Active$outboundSchema
44834
+ ]);
44835
+ ((GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$) => {
44836
+ GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$.inboundSchema = GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$inboundSchema;
44837
+ GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$.outboundSchema = GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$outboundSchema;
44838
+ })(GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$ ||= {});
44839
+ });
44840
+
43935
44841
  // src/models/errors/getpayout.ts
43936
44842
  var GetPayoutResponse403GetPayout$inboundSchema, GetPayoutResponse403GetPayout$outboundSchema, GetPayoutResponse403GetPayout$;
43937
44843
  var init_getpayout = __esm(() => {
@@ -44400,6 +45306,52 @@ var init_listpaymentoptions = __esm(() => {
44400
45306
  })(ListPaymentOptionsResponse403ListPaymentOptions$ ||= {});
44401
45307
  });
44402
45308
 
45309
+ // src/models/errors/listpaymentservicedefinitions.ts
45310
+ var ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$inboundSchema, ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$outboundSchema, ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$;
45311
+ var init_listpaymentservicedefinitions = __esm(() => {
45312
+ init_lib();
45313
+ init_error403();
45314
+ init_error403active();
45315
+ init_error403forbidden();
45316
+ ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$inboundSchema = unionType([
45317
+ Error403$inboundSchema,
45318
+ Error403Forbidden$inboundSchema,
45319
+ Error403Active$inboundSchema
45320
+ ]);
45321
+ ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$outboundSchema = unionType([
45322
+ Error403$outboundSchema,
45323
+ Error403Forbidden$outboundSchema,
45324
+ Error403Active$outboundSchema
45325
+ ]);
45326
+ ((ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$) => {
45327
+ ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$.inboundSchema = ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$inboundSchema;
45328
+ ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$.outboundSchema = ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$outboundSchema;
45329
+ })(ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$ ||= {});
45330
+ });
45331
+
45332
+ // src/models/errors/listpaymentservices.ts
45333
+ var ListPaymentServicesResponse403ListPaymentServices$inboundSchema, ListPaymentServicesResponse403ListPaymentServices$outboundSchema, ListPaymentServicesResponse403ListPaymentServices$;
45334
+ var init_listpaymentservices = __esm(() => {
45335
+ init_lib();
45336
+ init_error403();
45337
+ init_error403active();
45338
+ init_error403forbidden();
45339
+ ListPaymentServicesResponse403ListPaymentServices$inboundSchema = unionType([
45340
+ Error403$inboundSchema,
45341
+ Error403Forbidden$inboundSchema,
45342
+ Error403Active$inboundSchema
45343
+ ]);
45344
+ ListPaymentServicesResponse403ListPaymentServices$outboundSchema = unionType([
45345
+ Error403$outboundSchema,
45346
+ Error403Forbidden$outboundSchema,
45347
+ Error403Active$outboundSchema
45348
+ ]);
45349
+ ((ListPaymentServicesResponse403ListPaymentServices$) => {
45350
+ ListPaymentServicesResponse403ListPaymentServices$.inboundSchema = ListPaymentServicesResponse403ListPaymentServices$inboundSchema;
45351
+ ListPaymentServicesResponse403ListPaymentServices$.outboundSchema = ListPaymentServicesResponse403ListPaymentServices$outboundSchema;
45352
+ })(ListPaymentServicesResponse403ListPaymentServices$ ||= {});
45353
+ });
45354
+
44403
45355
  // src/models/errors/listpayouts.ts
44404
45356
  var ListPayoutsResponse403ListPayouts$inboundSchema, ListPayoutsResponse403ListPayouts$outboundSchema, ListPayoutsResponse403ListPayouts$;
44405
45357
  var init_listpayouts = __esm(() => {
@@ -44699,6 +45651,52 @@ var init_updatemerchantaccount = __esm(() => {
44699
45651
  })(UpdateMerchantAccountResponse403UpdateMerchantAccount$ ||= {});
44700
45652
  });
44701
45653
 
45654
+ // src/models/errors/updatepaymentservice.ts
45655
+ var UpdatePaymentServiceResponse403UpdatePaymentService$inboundSchema, UpdatePaymentServiceResponse403UpdatePaymentService$outboundSchema, UpdatePaymentServiceResponse403UpdatePaymentService$;
45656
+ var init_updatepaymentservice = __esm(() => {
45657
+ init_lib();
45658
+ init_error403();
45659
+ init_error403active();
45660
+ init_error403forbidden();
45661
+ UpdatePaymentServiceResponse403UpdatePaymentService$inboundSchema = unionType([
45662
+ Error403$inboundSchema,
45663
+ Error403Forbidden$inboundSchema,
45664
+ Error403Active$inboundSchema
45665
+ ]);
45666
+ UpdatePaymentServiceResponse403UpdatePaymentService$outboundSchema = unionType([
45667
+ Error403$outboundSchema,
45668
+ Error403Forbidden$outboundSchema,
45669
+ Error403Active$outboundSchema
45670
+ ]);
45671
+ ((UpdatePaymentServiceResponse403UpdatePaymentService$) => {
45672
+ UpdatePaymentServiceResponse403UpdatePaymentService$.inboundSchema = UpdatePaymentServiceResponse403UpdatePaymentService$inboundSchema;
45673
+ UpdatePaymentServiceResponse403UpdatePaymentService$.outboundSchema = UpdatePaymentServiceResponse403UpdatePaymentService$outboundSchema;
45674
+ })(UpdatePaymentServiceResponse403UpdatePaymentService$ ||= {});
45675
+ });
45676
+
45677
+ // src/models/errors/verifypaymentservicecredentials.ts
45678
+ var VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$inboundSchema, VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$outboundSchema, VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$;
45679
+ var init_verifypaymentservicecredentials = __esm(() => {
45680
+ init_lib();
45681
+ init_error403();
45682
+ init_error403active();
45683
+ init_error403forbidden();
45684
+ VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$inboundSchema = unionType([
45685
+ Error403$inboundSchema,
45686
+ Error403Forbidden$inboundSchema,
45687
+ Error403Active$inboundSchema
45688
+ ]);
45689
+ VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$outboundSchema = unionType([
45690
+ Error403$outboundSchema,
45691
+ Error403Forbidden$outboundSchema,
45692
+ Error403Active$outboundSchema
45693
+ ]);
45694
+ ((VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$) => {
45695
+ VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$.inboundSchema = VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$inboundSchema;
45696
+ VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$.outboundSchema = VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$outboundSchema;
45697
+ })(VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$ ||= {});
45698
+ });
45699
+
44702
45700
  // src/models/errors/voidtransaction.ts
44703
45701
  var VoidTransactionResponse403VoidTransaction$inboundSchema, VoidTransactionResponse403VoidTransaction$outboundSchema, VoidTransactionResponse403VoidTransaction$;
44704
45702
  var init_voidtransaction = __esm(() => {
@@ -44740,6 +45738,9 @@ var init_errors = __esm(() => {
44740
45738
  init_createpaymentmethodnetworktoken();
44741
45739
  init_createpaymentmethodnetworktokencryptogram();
44742
45740
  init_createpaymentmethodpaymentservicetoken();
45741
+ init_createpaymentservice();
45742
+ init_createpaymentservicedefinitionsession();
45743
+ init_createpaymentservicesession();
44743
45744
  init_createpayout();
44744
45745
  init_createtransaction();
44745
45746
  init_createtransactionrefund();
@@ -44751,6 +45752,7 @@ var init_errors = __esm(() => {
44751
45752
  init_deletepaymentmethod();
44752
45753
  init_deletepaymentmethodnetworktoken();
44753
45754
  init_deletepaymentmethodpaymentservicetoken();
45755
+ init_deletepaymentservice();
44754
45756
  init_error400();
44755
45757
  init_error401();
44756
45758
  init_error403();
@@ -44771,6 +45773,8 @@ var init_errors = __esm(() => {
44771
45773
  init_getgiftcard();
44772
45774
  init_getmerchantaccount();
44773
45775
  init_getpaymentmethod();
45776
+ init_getpaymentservice();
45777
+ init_getpaymentservicedefinition();
44774
45778
  init_getpayout();
44775
45779
  init_getrefund();
44776
45780
  init_gettransaction();
@@ -44792,6 +45796,8 @@ var init_errors = __esm(() => {
44792
45796
  init_listpaymentmethodpaymentservicetokens();
44793
45797
  init_listpaymentmethods();
44794
45798
  init_listpaymentoptions();
45799
+ init_listpaymentservicedefinitions();
45800
+ init_listpaymentservices();
44795
45801
  init_listpayouts();
44796
45802
  init_listtransactionrefunds();
44797
45803
  init_listtransactions();
@@ -44807,6 +45813,8 @@ var init_errors = __esm(() => {
44807
45813
  init_updatecheckoutsession();
44808
45814
  init_updatedigitalwallet();
44809
45815
  init_updatemerchantaccount();
45816
+ init_updatepaymentservice();
45817
+ init_verifypaymentservicecredentials();
44810
45818
  init_voidtransaction();
44811
45819
  });
44812
45820
 
@@ -45488,6 +46496,118 @@ var init_createpaymentmethodpaymentservicetoken2 = __esm(() => {
45488
46496
  })(CreatePaymentMethodPaymentServiceTokenRequest$ ||= {});
45489
46497
  });
45490
46498
 
46499
+ // src/models/operations/createpaymentservice.ts
46500
+ var CreatePaymentServiceGlobals$inboundSchema, CreatePaymentServiceGlobals$outboundSchema, CreatePaymentServiceGlobals$, CreatePaymentServiceRequest$inboundSchema, CreatePaymentServiceRequest$outboundSchema, CreatePaymentServiceRequest$;
46501
+ var init_createpaymentservice2 = __esm(() => {
46502
+ init_lib();
46503
+ init_primitives();
46504
+ init_components();
46505
+ CreatePaymentServiceGlobals$inboundSchema = objectType({
46506
+ merchantAccountId: stringType().optional()
46507
+ });
46508
+ CreatePaymentServiceGlobals$outboundSchema = objectType({
46509
+ merchantAccountId: stringType().optional()
46510
+ });
46511
+ ((CreatePaymentServiceGlobals$) => {
46512
+ CreatePaymentServiceGlobals$.inboundSchema = CreatePaymentServiceGlobals$inboundSchema;
46513
+ CreatePaymentServiceGlobals$.outboundSchema = CreatePaymentServiceGlobals$outboundSchema;
46514
+ })(CreatePaymentServiceGlobals$ ||= {});
46515
+ CreatePaymentServiceRequest$inboundSchema = objectType({
46516
+ payment_service_id: stringType(),
46517
+ merchantAccountId: nullableType(stringType()).optional(),
46518
+ PaymentServiceUpdate: PaymentServiceUpdate$inboundSchema
46519
+ }).transform((v2) => {
46520
+ return remap(v2, {
46521
+ payment_service_id: "paymentServiceId",
46522
+ PaymentServiceUpdate: "paymentServiceUpdate"
46523
+ });
46524
+ });
46525
+ CreatePaymentServiceRequest$outboundSchema = objectType({
46526
+ paymentServiceId: stringType(),
46527
+ merchantAccountId: nullableType(stringType()).optional(),
46528
+ paymentServiceUpdate: PaymentServiceUpdate$outboundSchema
46529
+ }).transform((v2) => {
46530
+ return remap(v2, {
46531
+ paymentServiceId: "payment_service_id",
46532
+ paymentServiceUpdate: "PaymentServiceUpdate"
46533
+ });
46534
+ });
46535
+ ((CreatePaymentServiceRequest$) => {
46536
+ CreatePaymentServiceRequest$.inboundSchema = CreatePaymentServiceRequest$inboundSchema;
46537
+ CreatePaymentServiceRequest$.outboundSchema = CreatePaymentServiceRequest$outboundSchema;
46538
+ })(CreatePaymentServiceRequest$ ||= {});
46539
+ });
46540
+
46541
+ // src/models/operations/createpaymentservicedefinitionsession.ts
46542
+ var CreatePaymentServiceDefinitionSessionRequest$inboundSchema, CreatePaymentServiceDefinitionSessionRequest$outboundSchema, CreatePaymentServiceDefinitionSessionRequest$;
46543
+ var init_createpaymentservicedefinitionsession2 = __esm(() => {
46544
+ init_lib();
46545
+ init_primitives();
46546
+ CreatePaymentServiceDefinitionSessionRequest$inboundSchema = objectType({
46547
+ payment_service_definition_id: stringType(),
46548
+ RequestBody: recordType(anyType())
46549
+ }).transform((v2) => {
46550
+ return remap(v2, {
46551
+ payment_service_definition_id: "paymentServiceDefinitionId",
46552
+ RequestBody: "requestBody"
46553
+ });
46554
+ });
46555
+ CreatePaymentServiceDefinitionSessionRequest$outboundSchema = objectType({
46556
+ paymentServiceDefinitionId: stringType(),
46557
+ requestBody: recordType(anyType())
46558
+ }).transform((v2) => {
46559
+ return remap(v2, {
46560
+ paymentServiceDefinitionId: "payment_service_definition_id",
46561
+ requestBody: "RequestBody"
46562
+ });
46563
+ });
46564
+ ((CreatePaymentServiceDefinitionSessionRequest$) => {
46565
+ CreatePaymentServiceDefinitionSessionRequest$.inboundSchema = CreatePaymentServiceDefinitionSessionRequest$inboundSchema;
46566
+ CreatePaymentServiceDefinitionSessionRequest$.outboundSchema = CreatePaymentServiceDefinitionSessionRequest$outboundSchema;
46567
+ })(CreatePaymentServiceDefinitionSessionRequest$ ||= {});
46568
+ });
46569
+
46570
+ // src/models/operations/createpaymentservicesession.ts
46571
+ var CreatePaymentServiceSessionGlobals$inboundSchema, CreatePaymentServiceSessionGlobals$outboundSchema, CreatePaymentServiceSessionGlobals$, CreatePaymentServiceSessionRequest$inboundSchema, CreatePaymentServiceSessionRequest$outboundSchema, CreatePaymentServiceSessionRequest$;
46572
+ var init_createpaymentservicesession2 = __esm(() => {
46573
+ init_lib();
46574
+ init_primitives();
46575
+ CreatePaymentServiceSessionGlobals$inboundSchema = objectType({
46576
+ merchantAccountId: stringType().optional()
46577
+ });
46578
+ CreatePaymentServiceSessionGlobals$outboundSchema = objectType({
46579
+ merchantAccountId: stringType().optional()
46580
+ });
46581
+ ((CreatePaymentServiceSessionGlobals$) => {
46582
+ CreatePaymentServiceSessionGlobals$.inboundSchema = CreatePaymentServiceSessionGlobals$inboundSchema;
46583
+ CreatePaymentServiceSessionGlobals$.outboundSchema = CreatePaymentServiceSessionGlobals$outboundSchema;
46584
+ })(CreatePaymentServiceSessionGlobals$ ||= {});
46585
+ CreatePaymentServiceSessionRequest$inboundSchema = objectType({
46586
+ payment_service_id: stringType(),
46587
+ merchantAccountId: nullableType(stringType()).optional(),
46588
+ RequestBody: recordType(anyType())
46589
+ }).transform((v2) => {
46590
+ return remap(v2, {
46591
+ payment_service_id: "paymentServiceId",
46592
+ RequestBody: "requestBody"
46593
+ });
46594
+ });
46595
+ CreatePaymentServiceSessionRequest$outboundSchema = objectType({
46596
+ paymentServiceId: stringType(),
46597
+ merchantAccountId: nullableType(stringType()).optional(),
46598
+ requestBody: recordType(anyType())
46599
+ }).transform((v2) => {
46600
+ return remap(v2, {
46601
+ paymentServiceId: "payment_service_id",
46602
+ requestBody: "RequestBody"
46603
+ });
46604
+ });
46605
+ ((CreatePaymentServiceSessionRequest$) => {
46606
+ CreatePaymentServiceSessionRequest$.inboundSchema = CreatePaymentServiceSessionRequest$inboundSchema;
46607
+ CreatePaymentServiceSessionRequest$.outboundSchema = CreatePaymentServiceSessionRequest$outboundSchema;
46608
+ })(CreatePaymentServiceSessionRequest$ ||= {});
46609
+ });
46610
+
45491
46611
  // src/models/operations/createpayout.ts
45492
46612
  var CreatePayoutGlobals$inboundSchema, CreatePayoutGlobals$outboundSchema, CreatePayoutGlobals$, CreatePayoutRequest$inboundSchema, CreatePayoutRequest$outboundSchema, CreatePayoutRequest$;
45493
46613
  var init_createpayout2 = __esm(() => {
@@ -45964,6 +47084,47 @@ var init_deletepaymentmethodpaymentservicetoken2 = __esm(() => {
45964
47084
  })(DeletePaymentMethodPaymentServiceTokenRequest$ ||= {});
45965
47085
  });
45966
47086
 
47087
+ // src/models/operations/deletepaymentservice.ts
47088
+ var DeletePaymentServiceGlobals$inboundSchema, DeletePaymentServiceGlobals$outboundSchema, DeletePaymentServiceGlobals$, DeletePaymentServiceRequest$inboundSchema, DeletePaymentServiceRequest$outboundSchema, DeletePaymentServiceRequest$;
47089
+ var init_deletepaymentservice2 = __esm(() => {
47090
+ init_lib();
47091
+ init_primitives();
47092
+ DeletePaymentServiceGlobals$inboundSchema = objectType({
47093
+ merchantAccountId: stringType().optional()
47094
+ });
47095
+ DeletePaymentServiceGlobals$outboundSchema = objectType({
47096
+ merchantAccountId: stringType().optional()
47097
+ });
47098
+ ((DeletePaymentServiceGlobals$) => {
47099
+ DeletePaymentServiceGlobals$.inboundSchema = DeletePaymentServiceGlobals$inboundSchema;
47100
+ DeletePaymentServiceGlobals$.outboundSchema = DeletePaymentServiceGlobals$outboundSchema;
47101
+ })(DeletePaymentServiceGlobals$ ||= {});
47102
+ DeletePaymentServiceRequest$inboundSchema = objectType({
47103
+ payment_service_id: stringType(),
47104
+ timeout_in_seconds: numberType().default(1),
47105
+ merchantAccountId: nullableType(stringType()).optional()
47106
+ }).transform((v2) => {
47107
+ return remap(v2, {
47108
+ payment_service_id: "paymentServiceId",
47109
+ timeout_in_seconds: "timeoutInSeconds"
47110
+ });
47111
+ });
47112
+ DeletePaymentServiceRequest$outboundSchema = objectType({
47113
+ paymentServiceId: stringType(),
47114
+ timeoutInSeconds: numberType().default(1),
47115
+ merchantAccountId: nullableType(stringType()).optional()
47116
+ }).transform((v2) => {
47117
+ return remap(v2, {
47118
+ paymentServiceId: "payment_service_id",
47119
+ timeoutInSeconds: "timeout_in_seconds"
47120
+ });
47121
+ });
47122
+ ((DeletePaymentServiceRequest$) => {
47123
+ DeletePaymentServiceRequest$.inboundSchema = DeletePaymentServiceRequest$inboundSchema;
47124
+ DeletePaymentServiceRequest$.outboundSchema = DeletePaymentServiceRequest$outboundSchema;
47125
+ })(DeletePaymentServiceRequest$ ||= {});
47126
+ });
47127
+
45967
47128
  // src/models/operations/getbuyer.ts
45968
47129
  var GetBuyerGlobals$inboundSchema, GetBuyerGlobals$outboundSchema, GetBuyerGlobals$, GetBuyerRequest$inboundSchema, GetBuyerRequest$outboundSchema, GetBuyerRequest$;
45969
47130
  var init_getbuyer2 = __esm(() => {
@@ -46219,6 +47380,68 @@ var init_getpaymentmethod2 = __esm(() => {
46219
47380
  })(GetPaymentMethodRequest$ ||= {});
46220
47381
  });
46221
47382
 
47383
+ // src/models/operations/getpaymentservice.ts
47384
+ var GetPaymentServiceGlobals$inboundSchema, GetPaymentServiceGlobals$outboundSchema, GetPaymentServiceGlobals$, GetPaymentServiceRequest$inboundSchema, GetPaymentServiceRequest$outboundSchema, GetPaymentServiceRequest$;
47385
+ var init_getpaymentservice2 = __esm(() => {
47386
+ init_lib();
47387
+ init_primitives();
47388
+ GetPaymentServiceGlobals$inboundSchema = objectType({
47389
+ merchantAccountId: stringType().optional()
47390
+ });
47391
+ GetPaymentServiceGlobals$outboundSchema = objectType({
47392
+ merchantAccountId: stringType().optional()
47393
+ });
47394
+ ((GetPaymentServiceGlobals$) => {
47395
+ GetPaymentServiceGlobals$.inboundSchema = GetPaymentServiceGlobals$inboundSchema;
47396
+ GetPaymentServiceGlobals$.outboundSchema = GetPaymentServiceGlobals$outboundSchema;
47397
+ })(GetPaymentServiceGlobals$ ||= {});
47398
+ GetPaymentServiceRequest$inboundSchema = objectType({
47399
+ payment_service_id: stringType(),
47400
+ merchantAccountId: nullableType(stringType()).optional()
47401
+ }).transform((v2) => {
47402
+ return remap(v2, {
47403
+ payment_service_id: "paymentServiceId"
47404
+ });
47405
+ });
47406
+ GetPaymentServiceRequest$outboundSchema = objectType({
47407
+ paymentServiceId: stringType(),
47408
+ merchantAccountId: nullableType(stringType()).optional()
47409
+ }).transform((v2) => {
47410
+ return remap(v2, {
47411
+ paymentServiceId: "payment_service_id"
47412
+ });
47413
+ });
47414
+ ((GetPaymentServiceRequest$) => {
47415
+ GetPaymentServiceRequest$.inboundSchema = GetPaymentServiceRequest$inboundSchema;
47416
+ GetPaymentServiceRequest$.outboundSchema = GetPaymentServiceRequest$outboundSchema;
47417
+ })(GetPaymentServiceRequest$ ||= {});
47418
+ });
47419
+
47420
+ // src/models/operations/getpaymentservicedefinition.ts
47421
+ var GetPaymentServiceDefinitionRequest$inboundSchema, GetPaymentServiceDefinitionRequest$outboundSchema, GetPaymentServiceDefinitionRequest$;
47422
+ var init_getpaymentservicedefinition2 = __esm(() => {
47423
+ init_lib();
47424
+ init_primitives();
47425
+ GetPaymentServiceDefinitionRequest$inboundSchema = objectType({
47426
+ payment_service_definition_id: stringType()
47427
+ }).transform((v2) => {
47428
+ return remap(v2, {
47429
+ payment_service_definition_id: "paymentServiceDefinitionId"
47430
+ });
47431
+ });
47432
+ GetPaymentServiceDefinitionRequest$outboundSchema = objectType({
47433
+ paymentServiceDefinitionId: stringType()
47434
+ }).transform((v2) => {
47435
+ return remap(v2, {
47436
+ paymentServiceDefinitionId: "payment_service_definition_id"
47437
+ });
47438
+ });
47439
+ ((GetPaymentServiceDefinitionRequest$) => {
47440
+ GetPaymentServiceDefinitionRequest$.inboundSchema = GetPaymentServiceDefinitionRequest$inboundSchema;
47441
+ GetPaymentServiceDefinitionRequest$.outboundSchema = GetPaymentServiceDefinitionRequest$outboundSchema;
47442
+ })(GetPaymentServiceDefinitionRequest$ ||= {});
47443
+ });
47444
+
46222
47445
  // src/models/operations/getpayout.ts
46223
47446
  var GetPayoutGlobals$inboundSchema, GetPayoutGlobals$outboundSchema, GetPayoutGlobals$, GetPayoutRequest$inboundSchema, GetPayoutRequest$outboundSchema, GetPayoutRequest$;
46224
47447
  var init_getpayout2 = __esm(() => {
@@ -47071,6 +48294,98 @@ var init_listpaymentoptions2 = __esm(() => {
47071
48294
  })(ListPaymentOptionsRequest$ ||= {});
47072
48295
  });
47073
48296
 
48297
+ // src/models/operations/listpaymentservicedefinitions.ts
48298
+ var ListPaymentServiceDefinitionsRequest$inboundSchema, ListPaymentServiceDefinitionsRequest$outboundSchema, ListPaymentServiceDefinitionsRequest$, ListPaymentServiceDefinitionsResponse$inboundSchema, ListPaymentServiceDefinitionsResponse$outboundSchema, ListPaymentServiceDefinitionsResponse$;
48299
+ var init_listpaymentservicedefinitions2 = __esm(() => {
48300
+ init_lib();
48301
+ init_primitives();
48302
+ init_components();
48303
+ ListPaymentServiceDefinitionsRequest$inboundSchema = objectType({
48304
+ cursor: nullableType(stringType()).optional(),
48305
+ limit: numberType().int().default(20)
48306
+ });
48307
+ ListPaymentServiceDefinitionsRequest$outboundSchema = objectType({
48308
+ cursor: nullableType(stringType()).optional(),
48309
+ limit: numberType().int().default(20)
48310
+ });
48311
+ ((ListPaymentServiceDefinitionsRequest$) => {
48312
+ ListPaymentServiceDefinitionsRequest$.inboundSchema = ListPaymentServiceDefinitionsRequest$inboundSchema;
48313
+ ListPaymentServiceDefinitionsRequest$.outboundSchema = ListPaymentServiceDefinitionsRequest$outboundSchema;
48314
+ })(ListPaymentServiceDefinitionsRequest$ ||= {});
48315
+ ListPaymentServiceDefinitionsResponse$inboundSchema = objectType({
48316
+ Result: CollectionPaymentServiceDefinition$inboundSchema
48317
+ }).transform((v2) => {
48318
+ return remap(v2, {
48319
+ Result: "result"
48320
+ });
48321
+ });
48322
+ ListPaymentServiceDefinitionsResponse$outboundSchema = objectType({
48323
+ result: CollectionPaymentServiceDefinition$outboundSchema
48324
+ }).transform((v2) => {
48325
+ return remap(v2, {
48326
+ result: "Result"
48327
+ });
48328
+ });
48329
+ ((ListPaymentServiceDefinitionsResponse$) => {
48330
+ ListPaymentServiceDefinitionsResponse$.inboundSchema = ListPaymentServiceDefinitionsResponse$inboundSchema;
48331
+ ListPaymentServiceDefinitionsResponse$.outboundSchema = ListPaymentServiceDefinitionsResponse$outboundSchema;
48332
+ })(ListPaymentServiceDefinitionsResponse$ ||= {});
48333
+ });
48334
+
48335
+ // src/models/operations/listpaymentservices.ts
48336
+ var ListPaymentServicesGlobals$inboundSchema, ListPaymentServicesGlobals$outboundSchema, ListPaymentServicesGlobals$, ListPaymentServicesRequest$inboundSchema, ListPaymentServicesRequest$outboundSchema, ListPaymentServicesRequest$, ListPaymentServicesResponse$inboundSchema, ListPaymentServicesResponse$outboundSchema, ListPaymentServicesResponse$;
48337
+ var init_listpaymentservices2 = __esm(() => {
48338
+ init_lib();
48339
+ init_primitives();
48340
+ init_components();
48341
+ ListPaymentServicesGlobals$inboundSchema = objectType({
48342
+ merchantAccountId: stringType().optional()
48343
+ });
48344
+ ListPaymentServicesGlobals$outboundSchema = objectType({
48345
+ merchantAccountId: stringType().optional()
48346
+ });
48347
+ ((ListPaymentServicesGlobals$) => {
48348
+ ListPaymentServicesGlobals$.inboundSchema = ListPaymentServicesGlobals$inboundSchema;
48349
+ ListPaymentServicesGlobals$.outboundSchema = ListPaymentServicesGlobals$outboundSchema;
48350
+ })(ListPaymentServicesGlobals$ ||= {});
48351
+ ListPaymentServicesRequest$inboundSchema = objectType({
48352
+ method: nullableType(Method$inboundSchema).optional(),
48353
+ cursor: nullableType(stringType()).optional(),
48354
+ limit: numberType().int().default(20),
48355
+ deleted: nullableType(booleanType()).optional(),
48356
+ merchantAccountId: nullableType(stringType()).optional()
48357
+ });
48358
+ ListPaymentServicesRequest$outboundSchema = objectType({
48359
+ method: nullableType(Method$outboundSchema).optional(),
48360
+ cursor: nullableType(stringType()).optional(),
48361
+ limit: numberType().int().default(20),
48362
+ deleted: nullableType(booleanType()).optional(),
48363
+ merchantAccountId: nullableType(stringType()).optional()
48364
+ });
48365
+ ((ListPaymentServicesRequest$) => {
48366
+ ListPaymentServicesRequest$.inboundSchema = ListPaymentServicesRequest$inboundSchema;
48367
+ ListPaymentServicesRequest$.outboundSchema = ListPaymentServicesRequest$outboundSchema;
48368
+ })(ListPaymentServicesRequest$ ||= {});
48369
+ ListPaymentServicesResponse$inboundSchema = objectType({
48370
+ Result: CollectionPaymentService$inboundSchema
48371
+ }).transform((v2) => {
48372
+ return remap(v2, {
48373
+ Result: "result"
48374
+ });
48375
+ });
48376
+ ListPaymentServicesResponse$outboundSchema = objectType({
48377
+ result: CollectionPaymentService$outboundSchema
48378
+ }).transform((v2) => {
48379
+ return remap(v2, {
48380
+ result: "Result"
48381
+ });
48382
+ });
48383
+ ((ListPaymentServicesResponse$) => {
48384
+ ListPaymentServicesResponse$.inboundSchema = ListPaymentServicesResponse$inboundSchema;
48385
+ ListPaymentServicesResponse$.outboundSchema = ListPaymentServicesResponse$outboundSchema;
48386
+ })(ListPaymentServicesResponse$ ||= {});
48387
+ });
48388
+
47074
48389
  // src/models/operations/listpayouts.ts
47075
48390
  var ListPayoutsGlobals$inboundSchema, ListPayoutsGlobals$outboundSchema, ListPayoutsGlobals$, ListPayoutsRequest$inboundSchema, ListPayoutsRequest$outboundSchema, ListPayoutsRequest$, ListPayoutsResponse$inboundSchema, ListPayoutsResponse$outboundSchema, ListPayoutsResponse$;
47076
48391
  var init_listpayouts2 = __esm(() => {
@@ -47787,6 +49102,86 @@ var init_updatemerchantaccount2 = __esm(() => {
47787
49102
  })(UpdateMerchantAccountRequest$ ||= {});
47788
49103
  });
47789
49104
 
49105
+ // src/models/operations/updatepaymentservice.ts
49106
+ var UpdatePaymentServiceGlobals$inboundSchema, UpdatePaymentServiceGlobals$outboundSchema, UpdatePaymentServiceGlobals$, UpdatePaymentServiceRequest$inboundSchema, UpdatePaymentServiceRequest$outboundSchema, UpdatePaymentServiceRequest$;
49107
+ var init_updatepaymentservice2 = __esm(() => {
49108
+ init_lib();
49109
+ init_primitives();
49110
+ init_components();
49111
+ UpdatePaymentServiceGlobals$inboundSchema = objectType({
49112
+ merchantAccountId: stringType().optional()
49113
+ });
49114
+ UpdatePaymentServiceGlobals$outboundSchema = objectType({
49115
+ merchantAccountId: stringType().optional()
49116
+ });
49117
+ ((UpdatePaymentServiceGlobals$) => {
49118
+ UpdatePaymentServiceGlobals$.inboundSchema = UpdatePaymentServiceGlobals$inboundSchema;
49119
+ UpdatePaymentServiceGlobals$.outboundSchema = UpdatePaymentServiceGlobals$outboundSchema;
49120
+ })(UpdatePaymentServiceGlobals$ ||= {});
49121
+ UpdatePaymentServiceRequest$inboundSchema = objectType({
49122
+ merchantAccountId: nullableType(stringType()).optional(),
49123
+ PaymentServiceCreate: PaymentServiceCreate$inboundSchema
49124
+ }).transform((v2) => {
49125
+ return remap(v2, {
49126
+ PaymentServiceCreate: "paymentServiceCreate"
49127
+ });
49128
+ });
49129
+ UpdatePaymentServiceRequest$outboundSchema = objectType({
49130
+ merchantAccountId: nullableType(stringType()).optional(),
49131
+ paymentServiceCreate: PaymentServiceCreate$outboundSchema
49132
+ }).transform((v2) => {
49133
+ return remap(v2, {
49134
+ paymentServiceCreate: "PaymentServiceCreate"
49135
+ });
49136
+ });
49137
+ ((UpdatePaymentServiceRequest$) => {
49138
+ UpdatePaymentServiceRequest$.inboundSchema = UpdatePaymentServiceRequest$inboundSchema;
49139
+ UpdatePaymentServiceRequest$.outboundSchema = UpdatePaymentServiceRequest$outboundSchema;
49140
+ })(UpdatePaymentServiceRequest$ ||= {});
49141
+ });
49142
+
49143
+ // src/models/operations/verifypaymentservicecredentials.ts
49144
+ var VerifyPaymentServiceCredentialsGlobals$inboundSchema, VerifyPaymentServiceCredentialsGlobals$outboundSchema, VerifyPaymentServiceCredentialsGlobals$, VerifyPaymentServiceCredentialsRequest$inboundSchema, VerifyPaymentServiceCredentialsRequest$outboundSchema, VerifyPaymentServiceCredentialsRequest$;
49145
+ var init_verifypaymentservicecredentials2 = __esm(() => {
49146
+ init_lib();
49147
+ init_primitives();
49148
+ init_components();
49149
+ VerifyPaymentServiceCredentialsGlobals$inboundSchema = objectType({
49150
+ merchantAccountId: stringType().optional()
49151
+ });
49152
+ VerifyPaymentServiceCredentialsGlobals$outboundSchema = objectType({
49153
+ merchantAccountId: stringType().optional()
49154
+ });
49155
+ ((VerifyPaymentServiceCredentialsGlobals$) => {
49156
+ VerifyPaymentServiceCredentialsGlobals$.inboundSchema = VerifyPaymentServiceCredentialsGlobals$inboundSchema;
49157
+ VerifyPaymentServiceCredentialsGlobals$.outboundSchema = VerifyPaymentServiceCredentialsGlobals$outboundSchema;
49158
+ })(VerifyPaymentServiceCredentialsGlobals$ ||= {});
49159
+ VerifyPaymentServiceCredentialsRequest$inboundSchema = objectType({
49160
+ timeout_in_seconds: numberType().default(1),
49161
+ merchantAccountId: nullableType(stringType()).optional(),
49162
+ VerifyCredentials: VerifyCredentials$inboundSchema
49163
+ }).transform((v2) => {
49164
+ return remap(v2, {
49165
+ timeout_in_seconds: "timeoutInSeconds",
49166
+ VerifyCredentials: "verifyCredentials"
49167
+ });
49168
+ });
49169
+ VerifyPaymentServiceCredentialsRequest$outboundSchema = objectType({
49170
+ timeoutInSeconds: numberType().default(1),
49171
+ merchantAccountId: nullableType(stringType()).optional(),
49172
+ verifyCredentials: VerifyCredentials$outboundSchema
49173
+ }).transform((v2) => {
49174
+ return remap(v2, {
49175
+ timeoutInSeconds: "timeout_in_seconds",
49176
+ verifyCredentials: "VerifyCredentials"
49177
+ });
49178
+ });
49179
+ ((VerifyPaymentServiceCredentialsRequest$) => {
49180
+ VerifyPaymentServiceCredentialsRequest$.inboundSchema = VerifyPaymentServiceCredentialsRequest$inboundSchema;
49181
+ VerifyPaymentServiceCredentialsRequest$.outboundSchema = VerifyPaymentServiceCredentialsRequest$outboundSchema;
49182
+ })(VerifyPaymentServiceCredentialsRequest$ ||= {});
49183
+ });
49184
+
47790
49185
  // src/models/operations/voidtransaction.ts
47791
49186
  var VoidTransactionGlobals$inboundSchema, VoidTransactionGlobals$outboundSchema, VoidTransactionGlobals$, VoidTransactionRequest$inboundSchema, VoidTransactionRequest$outboundSchema, VoidTransactionRequest$;
47792
49187
  var init_voidtransaction2 = __esm(() => {
@@ -47845,6 +49240,9 @@ var init_operations = __esm(() => {
47845
49240
  init_createpaymentmethodnetworktoken2();
47846
49241
  init_createpaymentmethodnetworktokencryptogram2();
47847
49242
  init_createpaymentmethodpaymentservicetoken2();
49243
+ init_createpaymentservice2();
49244
+ init_createpaymentservicedefinitionsession2();
49245
+ init_createpaymentservicesession2();
47848
49246
  init_createpayout2();
47849
49247
  init_createtransaction2();
47850
49248
  init_createtransactionrefund2();
@@ -47856,6 +49254,7 @@ var init_operations = __esm(() => {
47856
49254
  init_deletepaymentmethod2();
47857
49255
  init_deletepaymentmethodnetworktoken2();
47858
49256
  init_deletepaymentmethodpaymentservicetoken2();
49257
+ init_deletepaymentservice2();
47859
49258
  init_getbuyer2();
47860
49259
  init_getbuyershippingdetails2();
47861
49260
  init_getcheckoutsession2();
@@ -47863,6 +49262,8 @@ var init_operations = __esm(() => {
47863
49262
  init_getgiftcard2();
47864
49263
  init_getmerchantaccount2();
47865
49264
  init_getpaymentmethod2();
49265
+ init_getpaymentservice2();
49266
+ init_getpaymentservicedefinition2();
47866
49267
  init_getpayout2();
47867
49268
  init_getrefund2();
47868
49269
  init_gettransaction2();
@@ -47882,6 +49283,8 @@ var init_operations = __esm(() => {
47882
49283
  init_listpaymentmethodpaymentservicetokens2();
47883
49284
  init_listpaymentmethods2();
47884
49285
  init_listpaymentoptions2();
49286
+ init_listpaymentservicedefinitions2();
49287
+ init_listpaymentservices2();
47885
49288
  init_listpayouts2();
47886
49289
  init_listtransactionrefunds2();
47887
49290
  init_listtransactions2();
@@ -47895,6 +49298,8 @@ var init_operations = __esm(() => {
47895
49298
  init_updatecheckoutsession2();
47896
49299
  init_updatedigitalwallet2();
47897
49300
  init_updatemerchantaccount2();
49301
+ init_updatepaymentservice2();
49302
+ init_verifypaymentservicecredentials2();
47898
49303
  init_voidtransaction2();
47899
49304
  });
47900
49305
 
@@ -54994,168 +56399,33 @@ List the payment options available at checkout. filtering by country, currency,
54994
56399
  };
54995
56400
  });
54996
56401
 
54997
- // src/funcs/payoutsCreate.ts
54998
- function payoutsCreate(client, payoutCreate, timeoutInSeconds, merchantAccountId, options) {
54999
- return new APIPromise($do53(client, payoutCreate, timeoutInSeconds, merchantAccountId, options));
55000
- }
55001
- async function $do53(client, payoutCreate, timeoutInSeconds, merchantAccountId, options) {
55002
- const input = {
55003
- payoutCreate,
55004
- timeoutInSeconds,
55005
- merchantAccountId
55006
- };
55007
- const parsed = safeParse(input, (value) => CreatePayoutRequest$outboundSchema.parse(value), "Input validation failed");
55008
- if (!parsed.ok) {
55009
- return [parsed, { status: "invalid" }];
55010
- }
55011
- const payload = parsed.value;
55012
- const body = encodeJSON("body", payload.PayoutCreate, { explode: true });
55013
- const path = pathToFunc("/payouts")();
55014
- const query = encodeFormQuery({
55015
- timeout_in_seconds: payload.timeout_in_seconds
55016
- });
55017
- const headers = new Headers(compactMap({
55018
- "Content-Type": "application/json",
55019
- Accept: "application/json",
55020
- "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
55021
- }));
55022
- const secConfig = await extractSecurity(client._options.bearerAuth);
55023
- const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
55024
- const requestSecurity = resolveGlobalSecurity(securityInput);
55025
- const context = {
55026
- baseURL: options?.serverURL ?? client._baseURL ?? "",
55027
- operationID: "create_payout",
55028
- oAuth2Scopes: [],
55029
- resolvedSecurity: requestSecurity,
55030
- securitySource: client._options.bearerAuth,
55031
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
55032
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
55033
- };
55034
- const requestRes = client._createRequest(context, {
55035
- security: requestSecurity,
55036
- method: "POST",
55037
- baseURL: options?.serverURL,
55038
- path,
55039
- headers,
55040
- query,
55041
- body,
55042
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
55043
- }, options);
55044
- if (!requestRes.ok) {
55045
- return [requestRes, { status: "invalid" }];
55046
- }
55047
- const req = requestRes.value;
55048
- const doResult = await client._do(req, {
55049
- context,
55050
- errorCodes: [
55051
- "400",
55052
- "401",
55053
- "403",
55054
- "404",
55055
- "405",
55056
- "409",
55057
- "422",
55058
- "425",
55059
- "429",
55060
- "4XX",
55061
- "500",
55062
- "502",
55063
- "504",
55064
- "5XX"
55065
- ],
55066
- retryConfig: context.retryConfig,
55067
- retryCodes: context.retryCodes
55068
- });
55069
- if (!doResult.ok) {
55070
- return [doResult, { status: "request-error", request: req }];
55071
- }
55072
- const response = doResult.value;
55073
- const responseFields = {
55074
- HttpMeta: { Response: response, Request: req }
55075
- };
55076
- const [result] = await match(json(201, PayoutSummary$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreatePayoutResponse403CreatePayout$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55077
- if (!result.ok) {
55078
- return [result, { status: "complete", request: req, response }];
55079
- }
55080
- return [result, { status: "complete", request: req, response }];
55081
- }
55082
- var init_payoutsCreate = __esm(() => {
55083
- init_encodings();
55084
- init_matchers();
55085
- init_primitives();
55086
- init_schemas();
55087
- init_security();
55088
- init_url();
55089
- init_components();
55090
- init_errors();
55091
- init_operations();
55092
- init_async();
55093
- });
55094
-
55095
- // src/mcp-server/tools/payoutsCreate.ts
55096
- var args53, tool$payoutsCreate;
55097
- var init_payoutsCreate2 = __esm(() => {
55098
- init_lib();
55099
- init_payoutsCreate();
55100
- init_components();
55101
- init_tools();
55102
- args53 = {
55103
- payoutCreate: PayoutCreate$inboundSchema,
55104
- timeoutInSeconds: numberType().default(1),
55105
- merchantAccountId: nullableType(stringType()).optional()
55106
- };
55107
- tool$payoutsCreate = {
55108
- name: "payouts-create",
55109
- description: `Create a payout.
55110
-
55111
- Creates a new payout.`,
55112
- args: args53,
55113
- tool: async (client, args54, ctx) => {
55114
- const [result, apiCall] = await payoutsCreate(client, args54.payoutCreate, args54.timeoutInSeconds, args54.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55115
- if (!result.ok) {
55116
- return {
55117
- content: [{ type: "text", text: result.error.message }],
55118
- isError: true
55119
- };
55120
- }
55121
- const value = result.value;
55122
- return formatResult(value, apiCall);
55123
- }
55124
- };
55125
- });
55126
-
55127
- // src/funcs/payoutsGet.ts
55128
- function payoutsGet(client, payoutId, merchantAccountId, options) {
55129
- return new APIPromise($do54(client, payoutId, merchantAccountId, options));
56402
+ // src/funcs/paymentServiceDefinitionsGet.ts
56403
+ function paymentServiceDefinitionsGet(client, paymentServiceDefinitionId, options) {
56404
+ return new APIPromise($do53(client, paymentServiceDefinitionId, options));
55130
56405
  }
55131
- async function $do54(client, payoutId, merchantAccountId, options) {
56406
+ async function $do53(client, paymentServiceDefinitionId, options) {
55132
56407
  const input = {
55133
- payoutId,
55134
- merchantAccountId
56408
+ paymentServiceDefinitionId
55135
56409
  };
55136
- const parsed = safeParse(input, (value) => GetPayoutRequest$outboundSchema.parse(value), "Input validation failed");
56410
+ const parsed = safeParse(input, (value) => GetPaymentServiceDefinitionRequest$outboundSchema.parse(value), "Input validation failed");
55137
56411
  if (!parsed.ok) {
55138
56412
  return [parsed, { status: "invalid" }];
55139
56413
  }
55140
56414
  const payload = parsed.value;
55141
56415
  const body = null;
55142
56416
  const pathParams = {
55143
- payout_id: encodeSimple("payout_id", payload.payout_id, {
55144
- explode: false,
55145
- charEncoding: "percent"
55146
- })
56417
+ payment_service_definition_id: encodeSimple("payment_service_definition_id", payload.payment_service_definition_id, { explode: false, charEncoding: "percent" })
55147
56418
  };
55148
- const path = pathToFunc("/payouts/{payout_id}")(pathParams);
56419
+ const path = pathToFunc("/payment-service-definitions/{payment_service_definition_id}")(pathParams);
55149
56420
  const headers = new Headers(compactMap({
55150
- Accept: "application/json",
55151
- "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
56421
+ Accept: "application/json"
55152
56422
  }));
55153
56423
  const secConfig = await extractSecurity(client._options.bearerAuth);
55154
56424
  const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
55155
56425
  const requestSecurity = resolveGlobalSecurity(securityInput);
55156
56426
  const context = {
55157
56427
  baseURL: options?.serverURL ?? client._baseURL ?? "",
55158
- operationID: "get_payout",
56428
+ operationID: "get_payment_service_definition",
55159
56429
  oAuth2Scopes: [],
55160
56430
  resolvedSecurity: requestSecurity,
55161
56431
  securitySource: client._options.bearerAuth,
@@ -55212,13 +56482,13 @@ async function $do54(client, payoutId, merchantAccountId, options) {
55212
56482
  const responseFields = {
55213
56483
  HttpMeta: { Response: response, Request: req }
55214
56484
  };
55215
- const [result] = await match(json(200, PayoutSummary$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetPayoutResponse403GetPayout$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56485
+ const [result] = await match(json(200, PaymentServiceDefinition$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetPaymentServiceDefinitionResponse403GetPaymentServiceDefinition$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55216
56486
  if (!result.ok) {
55217
56487
  return [result, { status: "complete", request: req, response }];
55218
56488
  }
55219
56489
  return [result, { status: "complete", request: req, response }];
55220
56490
  }
55221
- var init_payoutsGet = __esm(() => {
56491
+ var init_paymentServiceDefinitionsGet = __esm(() => {
55222
56492
  init_encodings();
55223
56493
  init_matchers();
55224
56494
  init_primitives();
@@ -55231,24 +56501,23 @@ var init_payoutsGet = __esm(() => {
55231
56501
  init_async();
55232
56502
  });
55233
56503
 
55234
- // src/mcp-server/tools/payoutsGet.ts
55235
- var args54, tool$payoutsGet;
55236
- var init_payoutsGet2 = __esm(() => {
56504
+ // src/mcp-server/tools/paymentServiceDefinitionsGet.ts
56505
+ var args53, tool$paymentServiceDefinitionsGet;
56506
+ var init_paymentServiceDefinitionsGet2 = __esm(() => {
55237
56507
  init_lib();
55238
- init_payoutsGet();
56508
+ init_paymentServiceDefinitionsGet();
55239
56509
  init_tools();
55240
- args54 = {
55241
- payoutId: stringType(),
55242
- merchantAccountId: nullableType(stringType()).optional()
56510
+ args53 = {
56511
+ paymentServiceDefinitionId: stringType()
55243
56512
  };
55244
- tool$payoutsGet = {
55245
- name: "payouts-get",
55246
- description: `Get a payout.
56513
+ tool$paymentServiceDefinitionsGet = {
56514
+ name: "payment-service-definitions-get",
56515
+ description: `Get a payment service definition
55247
56516
 
55248
- Retreives a payout.`,
55249
- args: args54,
55250
- tool: async (client, args55, ctx) => {
55251
- const [result, apiCall] = await payoutsGet(client, args55.payoutId, args55.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56517
+ Get the definition of a payment service that can be configured.`,
56518
+ args: args53,
56519
+ tool: async (client, args54, ctx) => {
56520
+ const [result, apiCall] = await paymentServiceDefinitionsGet(client, args54.paymentServiceDefinitionId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55252
56521
  if (!result.ok) {
55253
56522
  return {
55254
56523
  content: [{ type: "text", text: result.error.message }],
@@ -55261,37 +56530,35 @@ Retreives a payout.`,
55261
56530
  };
55262
56531
  });
55263
56532
 
55264
- // src/funcs/payoutsList.ts
55265
- function payoutsList(client, cursor, limit, merchantAccountId, options) {
55266
- return new APIPromise($do55(client, cursor, limit, merchantAccountId, options));
56533
+ // src/funcs/paymentServiceDefinitionsList.ts
56534
+ function paymentServiceDefinitionsList(client, cursor, limit, options) {
56535
+ return new APIPromise($do54(client, cursor, limit, options));
55267
56536
  }
55268
- async function $do55(client, cursor, limit, merchantAccountId, options) {
56537
+ async function $do54(client, cursor, limit, options) {
55269
56538
  const input = {
55270
56539
  cursor,
55271
- limit,
55272
- merchantAccountId
56540
+ limit
55273
56541
  };
55274
- const parsed = safeParse(input, (value) => ListPayoutsRequest$outboundSchema.optional().parse(value), "Input validation failed");
56542
+ const parsed = safeParse(input, (value) => ListPaymentServiceDefinitionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
55275
56543
  if (!parsed.ok) {
55276
56544
  return [haltIterator(parsed), { status: "invalid" }];
55277
56545
  }
55278
56546
  const payload = parsed.value;
55279
56547
  const body = null;
55280
- const path = pathToFunc("/payouts")();
56548
+ const path = pathToFunc("/payment-service-definitions")();
55281
56549
  const query = encodeFormQuery({
55282
56550
  cursor: payload?.cursor,
55283
56551
  limit: payload?.limit
55284
56552
  });
55285
56553
  const headers = new Headers(compactMap({
55286
- Accept: "application/json",
55287
- "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload?.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
56554
+ Accept: "application/json"
55288
56555
  }));
55289
56556
  const secConfig = await extractSecurity(client._options.bearerAuth);
55290
56557
  const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
55291
56558
  const requestSecurity = resolveGlobalSecurity(securityInput);
55292
56559
  const context = {
55293
56560
  baseURL: options?.serverURL ?? client._baseURL ?? "",
55294
- operationID: "list_payouts",
56561
+ operationID: "list_payment_service_definitions",
55295
56562
  oAuth2Scopes: [],
55296
56563
  resolvedSecurity: requestSecurity,
55297
56564
  securitySource: client._options.bearerAuth,
@@ -55349,9 +56616,7 @@ async function $do55(client, cursor, limit, merchantAccountId, options) {
55349
56616
  const responseFields = {
55350
56617
  HttpMeta: { Response: response, Request: req }
55351
56618
  };
55352
- const [result, raw] = await match(json(200, ListPayoutsResponse$inboundSchema, {
55353
- key: "Result"
55354
- }), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, ListPayoutsResponse403ListPayouts$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56619
+ const [result, raw] = await match(json(200, ListPaymentServiceDefinitionsResponse$inboundSchema, { key: "Result" }), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, ListPaymentServiceDefinitionsResponse403ListPaymentServiceDefinitions$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55355
56620
  if (!result.ok) {
55356
56621
  return [haltIterator(result), {
55357
56622
  status: "complete",
@@ -55364,7 +56629,7 @@ async function $do55(client, cursor, limit, merchantAccountId, options) {
55364
56629
  if (typeof nextCursor !== "string") {
55365
56630
  return { next: () => null };
55366
56631
  }
55367
- const nextVal = () => payoutsList(client, nextCursor, limit, merchantAccountId, options);
56632
+ const nextVal = () => paymentServiceDefinitionsList(client, nextCursor, limit, options);
55368
56633
  return { next: nextVal, "~next": { cursor: nextCursor } };
55369
56634
  };
55370
56635
  const page = { ...result, ...nextFunc(raw) };
@@ -55374,7 +56639,7 @@ async function $do55(client, cursor, limit, merchantAccountId, options) {
55374
56639
  response
55375
56640
  }];
55376
56641
  }
55377
- var init_payoutsList = __esm(() => {
56642
+ var init_paymentServiceDefinitionsList = __esm(() => {
55378
56643
  init_encodings();
55379
56644
  init_matchers();
55380
56645
  init_primitives();
@@ -55387,25 +56652,24 @@ var init_payoutsList = __esm(() => {
55387
56652
  init_operations2();
55388
56653
  });
55389
56654
 
55390
- // src/mcp-server/tools/payoutsList.ts
55391
- var args55, tool$payoutsList;
55392
- var init_payoutsList2 = __esm(() => {
56655
+ // src/mcp-server/tools/paymentServiceDefinitionsList.ts
56656
+ var args54, tool$paymentServiceDefinitionsList;
56657
+ var init_paymentServiceDefinitionsList2 = __esm(() => {
55393
56658
  init_lib();
55394
- init_payoutsList();
56659
+ init_paymentServiceDefinitionsList();
55395
56660
  init_tools();
55396
- args55 = {
56661
+ args54 = {
55397
56662
  cursor: nullableType(stringType()).optional(),
55398
- limit: numberType().int().default(20),
55399
- merchantAccountId: nullableType(stringType()).optional()
56663
+ limit: numberType().int().default(20)
55400
56664
  };
55401
- tool$payoutsList = {
55402
- name: "payouts-list",
55403
- description: `List payouts created.
56665
+ tool$paymentServiceDefinitionsList = {
56666
+ name: "payment-service-definitions-list",
56667
+ description: `List payment service definitions
55404
56668
 
55405
- Returns a list of payouts made.`,
55406
- args: args55,
55407
- tool: async (client, args56, ctx) => {
55408
- const [result, apiCall] = await payoutsList(client, args56.cursor, args56.limit, args56.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56669
+ List the definitions of each payment service that can be configured.`,
56670
+ args: args54,
56671
+ tool: async (client, args55, ctx) => {
56672
+ const [result, apiCall] = await paymentServiceDefinitionsList(client, args55.cursor, args55.limit, { fetchOptions: { signal: ctx.signal } }).$inspect();
55409
56673
  if (!result.ok) {
55410
56674
  return {
55411
56675
  content: [{ type: "text", text: result.error.message }],
@@ -55418,29 +56682,151 @@ Returns a list of payouts made.`,
55418
56682
  };
55419
56683
  });
55420
56684
 
55421
- // src/funcs/refundsGet.ts
55422
- function refundsGet(client, refundId, merchantAccountId, options) {
55423
- return new APIPromise($do56(client, refundId, merchantAccountId, options));
56685
+ // src/funcs/paymentServiceDefinitionsSession.ts
56686
+ function paymentServiceDefinitionsSession(client, requestBody, paymentServiceDefinitionId, options) {
56687
+ return new APIPromise($do55(client, requestBody, paymentServiceDefinitionId, options));
55424
56688
  }
55425
- async function $do56(client, refundId, merchantAccountId, options) {
56689
+ async function $do55(client, requestBody, paymentServiceDefinitionId, options) {
55426
56690
  const input = {
55427
- refundId,
55428
- merchantAccountId
56691
+ requestBody,
56692
+ paymentServiceDefinitionId
55429
56693
  };
55430
- const parsed = safeParse(input, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
56694
+ const parsed = safeParse(input, (value) => CreatePaymentServiceDefinitionSessionRequest$outboundSchema.parse(value), "Input validation failed");
55431
56695
  if (!parsed.ok) {
55432
56696
  return [parsed, { status: "invalid" }];
55433
56697
  }
55434
56698
  const payload = parsed.value;
55435
- const body = null;
56699
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
55436
56700
  const pathParams = {
55437
- refund_id: encodeSimple("refund_id", payload.refund_id, {
55438
- explode: false,
55439
- charEncoding: "percent"
55440
- })
56701
+ payment_service_definition_id: encodeSimple("payment_service_definition_id", payload.payment_service_definition_id, { explode: false, charEncoding: "percent" })
55441
56702
  };
55442
- const path = pathToFunc("/refunds/{refund_id}")(pathParams);
56703
+ const path = pathToFunc("/payment-service-definitions/{payment_service_definition_id}/sessions")(pathParams);
55443
56704
  const headers = new Headers(compactMap({
56705
+ "Content-Type": "application/json",
56706
+ Accept: "application/json"
56707
+ }));
56708
+ const secConfig = await extractSecurity(client._options.bearerAuth);
56709
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
56710
+ const requestSecurity = resolveGlobalSecurity(securityInput);
56711
+ const context = {
56712
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
56713
+ operationID: "create_payment_service_definition_session",
56714
+ oAuth2Scopes: [],
56715
+ resolvedSecurity: requestSecurity,
56716
+ securitySource: client._options.bearerAuth,
56717
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
56718
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
56719
+ };
56720
+ const requestRes = client._createRequest(context, {
56721
+ security: requestSecurity,
56722
+ method: "POST",
56723
+ baseURL: options?.serverURL,
56724
+ path,
56725
+ headers,
56726
+ body,
56727
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
56728
+ }, options);
56729
+ if (!requestRes.ok) {
56730
+ return [requestRes, { status: "invalid" }];
56731
+ }
56732
+ const req = requestRes.value;
56733
+ const doResult = await client._do(req, {
56734
+ context,
56735
+ errorCodes: [
56736
+ "400",
56737
+ "401",
56738
+ "403",
56739
+ "404",
56740
+ "405",
56741
+ "409",
56742
+ "422",
56743
+ "425",
56744
+ "429",
56745
+ "4XX",
56746
+ "500",
56747
+ "502",
56748
+ "504",
56749
+ "5XX"
56750
+ ],
56751
+ retryConfig: context.retryConfig,
56752
+ retryCodes: context.retryCodes
56753
+ });
56754
+ if (!doResult.ok) {
56755
+ return [doResult, { status: "request-error", request: req }];
56756
+ }
56757
+ const response = doResult.value;
56758
+ const responseFields = {
56759
+ HttpMeta: { Response: response, Request: req }
56760
+ };
56761
+ const [result] = await match(json(200, CreateSession$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreatePaymentServiceDefinitionSessionResponse403CreatePaymentServiceDefinitionSession$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56762
+ if (!result.ok) {
56763
+ return [result, { status: "complete", request: req, response }];
56764
+ }
56765
+ return [result, { status: "complete", request: req, response }];
56766
+ }
56767
+ var init_paymentServiceDefinitionsSession = __esm(() => {
56768
+ init_encodings();
56769
+ init_matchers();
56770
+ init_primitives();
56771
+ init_schemas();
56772
+ init_security();
56773
+ init_url();
56774
+ init_components();
56775
+ init_errors();
56776
+ init_operations();
56777
+ init_async();
56778
+ });
56779
+
56780
+ // src/mcp-server/tools/paymentServiceDefinitionsSession.ts
56781
+ var args55, tool$paymentServiceDefinitionsSession;
56782
+ var init_paymentServiceDefinitionsSession2 = __esm(() => {
56783
+ init_lib();
56784
+ init_paymentServiceDefinitionsSession();
56785
+ init_tools();
56786
+ args55 = {
56787
+ requestBody: recordType(anyType()),
56788
+ paymentServiceDefinitionId: stringType()
56789
+ };
56790
+ tool$paymentServiceDefinitionsSession = {
56791
+ name: "payment-service-definitions-session",
56792
+ description: `Create a session for apayment service definition
56793
+
56794
+ Creates a session for a payment service that supports sessions.`,
56795
+ args: args55,
56796
+ tool: async (client, args56, ctx) => {
56797
+ const [result, apiCall] = await paymentServiceDefinitionsSession(client, args56.requestBody, args56.paymentServiceDefinitionId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56798
+ if (!result.ok) {
56799
+ return {
56800
+ content: [{ type: "text", text: result.error.message }],
56801
+ isError: true
56802
+ };
56803
+ }
56804
+ const value = result.value;
56805
+ return formatResult(value, apiCall);
56806
+ }
56807
+ };
56808
+ });
56809
+
56810
+ // src/funcs/paymentServicesCreate.ts
56811
+ function paymentServicesCreate(client, paymentServiceCreate, merchantAccountId, options) {
56812
+ return new APIPromise($do56(client, paymentServiceCreate, merchantAccountId, options));
56813
+ }
56814
+ async function $do56(client, paymentServiceCreate, merchantAccountId, options) {
56815
+ const input = {
56816
+ paymentServiceCreate,
56817
+ merchantAccountId
56818
+ };
56819
+ const parsed = safeParse(input, (value) => UpdatePaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
56820
+ if (!parsed.ok) {
56821
+ return [parsed, { status: "invalid" }];
56822
+ }
56823
+ const payload = parsed.value;
56824
+ const body = encodeJSON("body", payload.PaymentServiceCreate, {
56825
+ explode: true
56826
+ });
56827
+ const path = pathToFunc("/payment-services")();
56828
+ const headers = new Headers(compactMap({
56829
+ "Content-Type": "application/json",
55444
56830
  Accept: "application/json",
55445
56831
  "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
55446
56832
  }));
@@ -55449,25 +56835,16 @@ async function $do56(client, refundId, merchantAccountId, options) {
55449
56835
  const requestSecurity = resolveGlobalSecurity(securityInput);
55450
56836
  const context = {
55451
56837
  baseURL: options?.serverURL ?? client._baseURL ?? "",
55452
- operationID: "get_refund",
56838
+ operationID: "update_payment_service",
55453
56839
  oAuth2Scopes: [],
55454
56840
  resolvedSecurity: requestSecurity,
55455
56841
  securitySource: client._options.bearerAuth,
55456
- retryConfig: options?.retries || client._options.retryConfig || {
55457
- strategy: "backoff",
55458
- backoff: {
55459
- initialInterval: 200,
55460
- maxInterval: 200,
55461
- exponent: 1,
55462
- maxElapsedTime: 1000
55463
- },
55464
- retryConnectionErrors: true
55465
- },
55466
- retryCodes: options?.retryCodes || ["5XX"]
56842
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
56843
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
55467
56844
  };
55468
56845
  const requestRes = client._createRequest(context, {
55469
56846
  security: requestSecurity,
55470
- method: "GET",
56847
+ method: "POST",
55471
56848
  baseURL: options?.serverURL,
55472
56849
  path,
55473
56850
  headers,
@@ -55506,13 +56883,13 @@ async function $do56(client, refundId, merchantAccountId, options) {
55506
56883
  const responseFields = {
55507
56884
  HttpMeta: { Response: response, Request: req }
55508
56885
  };
55509
- const [result] = await match(json(200, Refund$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetRefundResponse403GetRefund$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
56886
+ const [result] = await match(json(201, PaymentService$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, UpdatePaymentServiceResponse403UpdatePaymentService$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55510
56887
  if (!result.ok) {
55511
56888
  return [result, { status: "complete", request: req, response }];
55512
56889
  }
55513
56890
  return [result, { status: "complete", request: req, response }];
55514
56891
  }
55515
- var init_refundsGet = __esm(() => {
56892
+ var init_paymentServicesCreate = __esm(() => {
55516
56893
  init_encodings();
55517
56894
  init_matchers();
55518
56895
  init_primitives();
@@ -55525,24 +56902,25 @@ var init_refundsGet = __esm(() => {
55525
56902
  init_async();
55526
56903
  });
55527
56904
 
55528
- // src/mcp-server/tools/refundsGet.ts
55529
- var args56, tool$refundsGet;
55530
- var init_refundsGet2 = __esm(() => {
56905
+ // src/mcp-server/tools/paymentServicesCreate.ts
56906
+ var args56, tool$paymentServicesCreate;
56907
+ var init_paymentServicesCreate2 = __esm(() => {
55531
56908
  init_lib();
55532
- init_refundsGet();
56909
+ init_paymentServicesCreate();
56910
+ init_components();
55533
56911
  init_tools();
55534
56912
  args56 = {
55535
- refundId: stringType(),
56913
+ paymentServiceCreate: PaymentServiceCreate$inboundSchema,
55536
56914
  merchantAccountId: nullableType(stringType()).optional()
55537
56915
  };
55538
- tool$refundsGet = {
55539
- name: "refunds-get",
55540
- description: `Get refund
56916
+ tool$paymentServicesCreate = {
56917
+ name: "payment-services-create",
56918
+ description: `Update a configured payment service
55541
56919
 
55542
- Fetch a refund.`,
56920
+ Updates the configuration of a payment service.`,
55543
56921
  args: args56,
55544
56922
  tool: async (client, args57, ctx) => {
55545
- const [result, apiCall] = await refundsGet(client, args57.refundId, args57.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56923
+ const [result, apiCall] = await paymentServicesCreate(client, args57.paymentServiceCreate, args57.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55546
56924
  if (!result.ok) {
55547
56925
  return {
55548
56926
  content: [{ type: "text", text: result.error.message }],
@@ -55555,37 +56933,30 @@ Fetch a refund.`,
55555
56933
  };
55556
56934
  });
55557
56935
 
55558
- // src/funcs/transactionRefundsAllCreate.ts
55559
- function transactionRefundsAllCreate(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options) {
55560
- return new APIPromise($do57(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options));
56936
+ // src/funcs/paymentServicesDelete.ts
56937
+ function paymentServicesDelete(client, paymentServiceId, timeoutInSeconds, merchantAccountId, options) {
56938
+ return new APIPromise($do57(client, paymentServiceId, timeoutInSeconds, merchantAccountId, options));
55561
56939
  }
55562
- async function $do57(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options) {
56940
+ async function $do57(client, paymentServiceId, timeoutInSeconds, merchantAccountId, options) {
55563
56941
  const input = {
55564
- transactionId,
55565
- transactionRefundAllCreate,
56942
+ paymentServiceId,
55566
56943
  timeoutInSeconds,
55567
56944
  merchantAccountId
55568
56945
  };
55569
- const parsed = safeParse(input, (value) => CreateFullTransactionRefundRequest$outboundSchema.parse(value), "Input validation failed");
56946
+ const parsed = safeParse(input, (value) => DeletePaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
55570
56947
  if (!parsed.ok) {
55571
56948
  return [parsed, { status: "invalid" }];
55572
56949
  }
55573
56950
  const payload = parsed.value;
55574
- const body = encodeJSON("body", payload.TransactionRefundAllCreate, {
55575
- explode: true
55576
- });
56951
+ const body = null;
55577
56952
  const pathParams = {
55578
- transaction_id: encodeSimple("transaction_id", payload.transaction_id, {
55579
- explode: false,
55580
- charEncoding: "percent"
55581
- })
56953
+ payment_service_id: encodeSimple("payment_service_id", payload.payment_service_id, { explode: false, charEncoding: "percent" })
55582
56954
  };
55583
- const path = pathToFunc("/transactions/{transaction_id}/refunds/all")(pathParams);
56955
+ const path = pathToFunc("/payment-services/{payment_service_id}")(pathParams);
55584
56956
  const query = encodeFormQuery({
55585
56957
  timeout_in_seconds: payload.timeout_in_seconds
55586
56958
  });
55587
56959
  const headers = new Headers(compactMap({
55588
- "Content-Type": "application/json",
55589
56960
  Accept: "application/json",
55590
56961
  "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
55591
56962
  }));
@@ -55594,7 +56965,7 @@ async function $do57(client, transactionId, transactionRefundAllCreate, timeoutI
55594
56965
  const requestSecurity = resolveGlobalSecurity(securityInput);
55595
56966
  const context = {
55596
56967
  baseURL: options?.serverURL ?? client._baseURL ?? "",
55597
- operationID: "create_full_transaction_refund",
56968
+ operationID: "delete_payment_service",
55598
56969
  oAuth2Scopes: [],
55599
56970
  resolvedSecurity: requestSecurity,
55600
56971
  securitySource: client._options.bearerAuth,
@@ -55603,7 +56974,7 @@ async function $do57(client, transactionId, transactionRefundAllCreate, timeoutI
55603
56974
  };
55604
56975
  const requestRes = client._createRequest(context, {
55605
56976
  security: requestSecurity,
55606
- method: "POST",
56977
+ method: "DELETE",
55607
56978
  baseURL: options?.serverURL,
55608
56979
  path,
55609
56980
  headers,
@@ -55643,46 +57014,44 @@ async function $do57(client, transactionId, transactionRefundAllCreate, timeoutI
55643
57014
  const responseFields = {
55644
57015
  HttpMeta: { Response: response, Request: req }
55645
57016
  };
55646
- const [result] = await match(json(201, CollectionNoCursorRefund$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreateFullTransactionRefundResponse403CreateFullTransactionRefund$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57017
+ const [result] = await match(json(200, anyType()), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, DeletePaymentServiceResponse403DeletePaymentService$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
55647
57018
  if (!result.ok) {
55648
57019
  return [result, { status: "complete", request: req, response }];
55649
57020
  }
55650
57021
  return [result, { status: "complete", request: req, response }];
55651
57022
  }
55652
- var init_transactionRefundsAllCreate = __esm(() => {
57023
+ var init_paymentServicesDelete = __esm(() => {
57024
+ init_lib();
55653
57025
  init_encodings();
55654
57026
  init_matchers();
55655
57027
  init_primitives();
55656
57028
  init_schemas();
55657
57029
  init_security();
55658
57030
  init_url();
55659
- init_components();
55660
57031
  init_errors();
55661
57032
  init_operations();
55662
57033
  init_async();
55663
57034
  });
55664
57035
 
55665
- // src/mcp-server/tools/transactionRefundsAllCreate.ts
55666
- var args57, tool$transactionRefundsAllCreate;
55667
- var init_transactionRefundsAllCreate2 = __esm(() => {
57036
+ // src/mcp-server/tools/paymentServicesDelete.ts
57037
+ var args57, tool$paymentServicesDelete;
57038
+ var init_paymentServicesDelete2 = __esm(() => {
55668
57039
  init_lib();
55669
- init_transactionRefundsAllCreate();
55670
- init_components();
57040
+ init_paymentServicesDelete();
55671
57041
  init_tools();
55672
57042
  args57 = {
55673
- transactionId: stringType(),
55674
- transactionRefundAllCreate: nullableType(TransactionRefundAllCreate$inboundSchema).optional(),
57043
+ paymentServiceId: stringType(),
55675
57044
  timeoutInSeconds: numberType().default(1),
55676
57045
  merchantAccountId: nullableType(stringType()).optional()
55677
57046
  };
55678
- tool$transactionRefundsAllCreate = {
55679
- name: "transaction-refunds-all-create",
55680
- description: `Create batch transaction refund
57047
+ tool$paymentServicesDelete = {
57048
+ name: "payment-services-delete",
57049
+ description: `Delete a configured payment service
55681
57050
 
55682
- Create a refund for all instruments on a transaction.`,
57051
+ Deletes all the configuration of a payment service.`,
55683
57052
  args: args57,
55684
57053
  tool: async (client, args58, ctx) => {
55685
- const [result, apiCall] = await transactionRefundsAllCreate(client, args58.transactionId, args58.transactionRefundAllCreate, args58.timeoutInSeconds, args58.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57054
+ const [result, apiCall] = await paymentServicesDelete(client, args58.paymentServiceId, args58.timeoutInSeconds, args58.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55686
57055
  if (!result.ok) {
55687
57056
  return {
55688
57057
  content: [{ type: "text", text: result.error.message }],
@@ -55695,37 +57064,26 @@ Create a refund for all instruments on a transaction.`,
55695
57064
  };
55696
57065
  });
55697
57066
 
55698
- // src/funcs/transactionRefundsCreate.ts
55699
- function transactionRefundsCreate(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options) {
55700
- return new APIPromise($do58(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options));
57067
+ // src/funcs/paymentServicesGet.ts
57068
+ function paymentServicesGet(client, paymentServiceId, merchantAccountId, options) {
57069
+ return new APIPromise($do58(client, paymentServiceId, merchantAccountId, options));
55701
57070
  }
55702
- async function $do58(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options) {
57071
+ async function $do58(client, paymentServiceId, merchantAccountId, options) {
55703
57072
  const input = {
55704
- transactionRefundCreate,
55705
- transactionId,
55706
- timeoutInSeconds,
57073
+ paymentServiceId,
55707
57074
  merchantAccountId
55708
57075
  };
55709
- const parsed = safeParse(input, (value) => CreateTransactionRefundRequest$outboundSchema.parse(value), "Input validation failed");
57076
+ const parsed = safeParse(input, (value) => GetPaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
55710
57077
  if (!parsed.ok) {
55711
57078
  return [parsed, { status: "invalid" }];
55712
57079
  }
55713
57080
  const payload = parsed.value;
55714
- const body = encodeJSON("body", payload.TransactionRefundCreate, {
55715
- explode: true
55716
- });
57081
+ const body = null;
55717
57082
  const pathParams = {
55718
- transaction_id: encodeSimple("transaction_id", payload.transaction_id, {
55719
- explode: false,
55720
- charEncoding: "percent"
55721
- })
57083
+ payment_service_id: encodeSimple("payment_service_id", payload.payment_service_id, { explode: false, charEncoding: "percent" })
55722
57084
  };
55723
- const path = pathToFunc("/transactions/{transaction_id}/refunds")(pathParams);
55724
- const query = encodeFormQuery({
55725
- timeout_in_seconds: payload.timeout_in_seconds
55726
- });
57085
+ const path = pathToFunc("/payment-services/{payment_service_id}")(pathParams);
55727
57086
  const headers = new Headers(compactMap({
55728
- "Content-Type": "application/json",
55729
57087
  Accept: "application/json",
55730
57088
  "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
55731
57089
  }));
@@ -55734,20 +57092,1410 @@ async function $do58(client, transactionRefundCreate, transactionId, timeoutInSe
55734
57092
  const requestSecurity = resolveGlobalSecurity(securityInput);
55735
57093
  const context = {
55736
57094
  baseURL: options?.serverURL ?? client._baseURL ?? "",
55737
- operationID: "create_transaction_refund",
57095
+ operationID: "get_payment_service",
55738
57096
  oAuth2Scopes: [],
55739
57097
  resolvedSecurity: requestSecurity,
55740
57098
  securitySource: client._options.bearerAuth,
55741
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
55742
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
57099
+ retryConfig: options?.retries || client._options.retryConfig || {
57100
+ strategy: "backoff",
57101
+ backoff: {
57102
+ initialInterval: 200,
57103
+ maxInterval: 200,
57104
+ exponent: 1,
57105
+ maxElapsedTime: 1000
57106
+ },
57107
+ retryConnectionErrors: true
57108
+ },
57109
+ retryCodes: options?.retryCodes || ["5XX"]
55743
57110
  };
55744
57111
  const requestRes = client._createRequest(context, {
55745
57112
  security: requestSecurity,
55746
- method: "POST",
57113
+ method: "GET",
55747
57114
  baseURL: options?.serverURL,
55748
57115
  path,
55749
57116
  headers,
55750
- query,
57117
+ body,
57118
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57119
+ }, options);
57120
+ if (!requestRes.ok) {
57121
+ return [requestRes, { status: "invalid" }];
57122
+ }
57123
+ const req = requestRes.value;
57124
+ const doResult = await client._do(req, {
57125
+ context,
57126
+ errorCodes: [
57127
+ "400",
57128
+ "401",
57129
+ "403",
57130
+ "404",
57131
+ "405",
57132
+ "409",
57133
+ "422",
57134
+ "425",
57135
+ "429",
57136
+ "4XX",
57137
+ "500",
57138
+ "502",
57139
+ "504",
57140
+ "5XX"
57141
+ ],
57142
+ retryConfig: context.retryConfig,
57143
+ retryCodes: context.retryCodes
57144
+ });
57145
+ if (!doResult.ok) {
57146
+ return [doResult, { status: "request-error", request: req }];
57147
+ }
57148
+ const response = doResult.value;
57149
+ const responseFields = {
57150
+ HttpMeta: { Response: response, Request: req }
57151
+ };
57152
+ const [result] = await match(json(200, PaymentService$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetPaymentServiceResponse403GetPaymentService$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57153
+ if (!result.ok) {
57154
+ return [result, { status: "complete", request: req, response }];
57155
+ }
57156
+ return [result, { status: "complete", request: req, response }];
57157
+ }
57158
+ var init_paymentServicesGet = __esm(() => {
57159
+ init_encodings();
57160
+ init_matchers();
57161
+ init_primitives();
57162
+ init_schemas();
57163
+ init_security();
57164
+ init_url();
57165
+ init_components();
57166
+ init_errors();
57167
+ init_operations();
57168
+ init_async();
57169
+ });
57170
+
57171
+ // src/mcp-server/tools/paymentServicesGet.ts
57172
+ var args58, tool$paymentServicesGet;
57173
+ var init_paymentServicesGet2 = __esm(() => {
57174
+ init_lib();
57175
+ init_paymentServicesGet();
57176
+ init_tools();
57177
+ args58 = {
57178
+ paymentServiceId: stringType(),
57179
+ merchantAccountId: nullableType(stringType()).optional()
57180
+ };
57181
+ tool$paymentServicesGet = {
57182
+ name: "payment-services-get",
57183
+ description: `Get payment service
57184
+
57185
+ Get the details of a configured payment service.`,
57186
+ args: args58,
57187
+ tool: async (client, args59, ctx) => {
57188
+ const [result, apiCall] = await paymentServicesGet(client, args59.paymentServiceId, args59.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57189
+ if (!result.ok) {
57190
+ return {
57191
+ content: [{ type: "text", text: result.error.message }],
57192
+ isError: true
57193
+ };
57194
+ }
57195
+ const value = result.value;
57196
+ return formatResult(value, apiCall);
57197
+ }
57198
+ };
57199
+ });
57200
+
57201
+ // src/funcs/paymentServicesList.ts
57202
+ function paymentServicesList(client, request, options) {
57203
+ return new APIPromise($do59(client, request, options));
57204
+ }
57205
+ async function $do59(client, request, options) {
57206
+ const parsed = safeParse(request, (value) => ListPaymentServicesRequest$outboundSchema.optional().parse(value), "Input validation failed");
57207
+ if (!parsed.ok) {
57208
+ return [haltIterator(parsed), { status: "invalid" }];
57209
+ }
57210
+ const payload = parsed.value;
57211
+ const body = null;
57212
+ const path = pathToFunc("/payment-services")();
57213
+ const query = encodeFormQuery({
57214
+ cursor: payload?.cursor,
57215
+ deleted: payload?.deleted,
57216
+ limit: payload?.limit,
57217
+ method: payload?.method
57218
+ });
57219
+ const headers = new Headers(compactMap({
57220
+ Accept: "application/json",
57221
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload?.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57222
+ }));
57223
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57224
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57225
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57226
+ const context = {
57227
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57228
+ operationID: "list_payment_services",
57229
+ oAuth2Scopes: [],
57230
+ resolvedSecurity: requestSecurity,
57231
+ securitySource: client._options.bearerAuth,
57232
+ retryConfig: options?.retries || client._options.retryConfig || {
57233
+ strategy: "backoff",
57234
+ backoff: {
57235
+ initialInterval: 200,
57236
+ maxInterval: 200,
57237
+ exponent: 1,
57238
+ maxElapsedTime: 1000
57239
+ },
57240
+ retryConnectionErrors: true
57241
+ },
57242
+ retryCodes: options?.retryCodes || ["5XX"]
57243
+ };
57244
+ const requestRes = client._createRequest(context, {
57245
+ security: requestSecurity,
57246
+ method: "GET",
57247
+ baseURL: options?.serverURL,
57248
+ path,
57249
+ headers,
57250
+ query,
57251
+ body,
57252
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57253
+ }, options);
57254
+ if (!requestRes.ok) {
57255
+ return [haltIterator(requestRes), { status: "invalid" }];
57256
+ }
57257
+ const req = requestRes.value;
57258
+ const doResult = await client._do(req, {
57259
+ context,
57260
+ errorCodes: [
57261
+ "400",
57262
+ "401",
57263
+ "403",
57264
+ "404",
57265
+ "405",
57266
+ "409",
57267
+ "422",
57268
+ "425",
57269
+ "429",
57270
+ "4XX",
57271
+ "500",
57272
+ "502",
57273
+ "504",
57274
+ "5XX"
57275
+ ],
57276
+ retryConfig: context.retryConfig,
57277
+ retryCodes: context.retryCodes
57278
+ });
57279
+ if (!doResult.ok) {
57280
+ return [haltIterator(doResult), { status: "request-error", request: req }];
57281
+ }
57282
+ const response = doResult.value;
57283
+ const responseFields = {
57284
+ HttpMeta: { Response: response, Request: req }
57285
+ };
57286
+ const [result, raw] = await match(json(200, ListPaymentServicesResponse$inboundSchema, {
57287
+ key: "Result"
57288
+ }), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, ListPaymentServicesResponse403ListPaymentServices$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57289
+ if (!result.ok) {
57290
+ return [haltIterator(result), {
57291
+ status: "complete",
57292
+ request: req,
57293
+ response
57294
+ }];
57295
+ }
57296
+ const nextFunc = (responseData) => {
57297
+ const nextCursor = dlv(responseData, "next_cursor");
57298
+ if (typeof nextCursor !== "string") {
57299
+ return { next: () => null };
57300
+ }
57301
+ const nextVal = () => paymentServicesList(client, {
57302
+ ...request,
57303
+ cursor: nextCursor
57304
+ }, options);
57305
+ return { next: nextVal, "~next": { cursor: nextCursor } };
57306
+ };
57307
+ const page = { ...result, ...nextFunc(raw) };
57308
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
57309
+ status: "complete",
57310
+ request: req,
57311
+ response
57312
+ }];
57313
+ }
57314
+ var init_paymentServicesList = __esm(() => {
57315
+ init_encodings();
57316
+ init_matchers();
57317
+ init_primitives();
57318
+ init_schemas();
57319
+ init_security();
57320
+ init_url();
57321
+ init_errors();
57322
+ init_operations();
57323
+ init_async();
57324
+ init_operations2();
57325
+ });
57326
+
57327
+ // src/mcp-server/tools/paymentServicesList.ts
57328
+ var args59, tool$paymentServicesList;
57329
+ var init_paymentServicesList2 = __esm(() => {
57330
+ init_paymentServicesList();
57331
+ init_operations();
57332
+ init_tools();
57333
+ args59 = {
57334
+ request: ListPaymentServicesRequest$inboundSchema.optional()
57335
+ };
57336
+ tool$paymentServicesList = {
57337
+ name: "payment-services-list",
57338
+ description: `List payment services
57339
+
57340
+ List the configured payment services.`,
57341
+ args: args59,
57342
+ tool: async (client, args60, ctx) => {
57343
+ const [result, apiCall] = await paymentServicesList(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57344
+ if (!result.ok) {
57345
+ return {
57346
+ content: [{ type: "text", text: result.error.message }],
57347
+ isError: true
57348
+ };
57349
+ }
57350
+ const value = result.value.result;
57351
+ return formatResult(value, apiCall);
57352
+ }
57353
+ };
57354
+ });
57355
+
57356
+ // src/funcs/paymentServicesSession.ts
57357
+ function paymentServicesSession(client, requestBody, paymentServiceId, merchantAccountId, options) {
57358
+ return new APIPromise($do60(client, requestBody, paymentServiceId, merchantAccountId, options));
57359
+ }
57360
+ async function $do60(client, requestBody, paymentServiceId, merchantAccountId, options) {
57361
+ const input = {
57362
+ requestBody,
57363
+ paymentServiceId,
57364
+ merchantAccountId
57365
+ };
57366
+ const parsed = safeParse(input, (value) => CreatePaymentServiceSessionRequest$outboundSchema.parse(value), "Input validation failed");
57367
+ if (!parsed.ok) {
57368
+ return [parsed, { status: "invalid" }];
57369
+ }
57370
+ const payload = parsed.value;
57371
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
57372
+ const pathParams = {
57373
+ payment_service_id: encodeSimple("payment_service_id", payload.payment_service_id, { explode: false, charEncoding: "percent" })
57374
+ };
57375
+ const path = pathToFunc("/payment-services/{payment_service_id}/sessions")(pathParams);
57376
+ const headers = new Headers(compactMap({
57377
+ "Content-Type": "application/json",
57378
+ Accept: "application/json",
57379
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57380
+ }));
57381
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57382
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57383
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57384
+ const context = {
57385
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57386
+ operationID: "create_payment_service_session",
57387
+ oAuth2Scopes: [],
57388
+ resolvedSecurity: requestSecurity,
57389
+ securitySource: client._options.bearerAuth,
57390
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
57391
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
57392
+ };
57393
+ const requestRes = client._createRequest(context, {
57394
+ security: requestSecurity,
57395
+ method: "POST",
57396
+ baseURL: options?.serverURL,
57397
+ path,
57398
+ headers,
57399
+ body,
57400
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57401
+ }, options);
57402
+ if (!requestRes.ok) {
57403
+ return [requestRes, { status: "invalid" }];
57404
+ }
57405
+ const req = requestRes.value;
57406
+ const doResult = await client._do(req, {
57407
+ context,
57408
+ errorCodes: [
57409
+ "400",
57410
+ "401",
57411
+ "403",
57412
+ "404",
57413
+ "405",
57414
+ "409",
57415
+ "422",
57416
+ "425",
57417
+ "429",
57418
+ "4XX",
57419
+ "500",
57420
+ "502",
57421
+ "504",
57422
+ "5XX"
57423
+ ],
57424
+ retryConfig: context.retryConfig,
57425
+ retryCodes: context.retryCodes
57426
+ });
57427
+ if (!doResult.ok) {
57428
+ return [doResult, { status: "request-error", request: req }];
57429
+ }
57430
+ const response = doResult.value;
57431
+ const responseFields = {
57432
+ HttpMeta: { Response: response, Request: req }
57433
+ };
57434
+ const [result] = await match(json(200, CreateSession$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreatePaymentServiceSessionResponse403CreatePaymentServiceSession$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57435
+ if (!result.ok) {
57436
+ return [result, { status: "complete", request: req, response }];
57437
+ }
57438
+ return [result, { status: "complete", request: req, response }];
57439
+ }
57440
+ var init_paymentServicesSession = __esm(() => {
57441
+ init_encodings();
57442
+ init_matchers();
57443
+ init_primitives();
57444
+ init_schemas();
57445
+ init_security();
57446
+ init_url();
57447
+ init_components();
57448
+ init_errors();
57449
+ init_operations();
57450
+ init_async();
57451
+ });
57452
+
57453
+ // src/mcp-server/tools/paymentServicesSession.ts
57454
+ var args60, tool$paymentServicesSession;
57455
+ var init_paymentServicesSession2 = __esm(() => {
57456
+ init_lib();
57457
+ init_paymentServicesSession();
57458
+ init_tools();
57459
+ args60 = {
57460
+ requestBody: recordType(anyType()),
57461
+ paymentServiceId: stringType(),
57462
+ merchantAccountId: nullableType(stringType()).optional()
57463
+ };
57464
+ tool$paymentServicesSession = {
57465
+ name: "payment-services-session",
57466
+ description: `Create a session for apayment service definition
57467
+
57468
+ Creates a session for a payment service that supports sessions.`,
57469
+ args: args60,
57470
+ tool: async (client, args61, ctx) => {
57471
+ const [result, apiCall] = await paymentServicesSession(client, args61.requestBody, args61.paymentServiceId, args61.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57472
+ if (!result.ok) {
57473
+ return {
57474
+ content: [{ type: "text", text: result.error.message }],
57475
+ isError: true
57476
+ };
57477
+ }
57478
+ const value = result.value;
57479
+ return formatResult(value, apiCall);
57480
+ }
57481
+ };
57482
+ });
57483
+
57484
+ // src/funcs/paymentServicesUpdate.ts
57485
+ function paymentServicesUpdate(client, paymentServiceUpdate, paymentServiceId, merchantAccountId, options) {
57486
+ return new APIPromise($do61(client, paymentServiceUpdate, paymentServiceId, merchantAccountId, options));
57487
+ }
57488
+ async function $do61(client, paymentServiceUpdate, paymentServiceId, merchantAccountId, options) {
57489
+ const input = {
57490
+ paymentServiceUpdate,
57491
+ paymentServiceId,
57492
+ merchantAccountId
57493
+ };
57494
+ const parsed = safeParse(input, (value) => CreatePaymentServiceRequest$outboundSchema.parse(value), "Input validation failed");
57495
+ if (!parsed.ok) {
57496
+ return [parsed, { status: "invalid" }];
57497
+ }
57498
+ const payload = parsed.value;
57499
+ const body = encodeJSON("body", payload.PaymentServiceUpdate, {
57500
+ explode: true
57501
+ });
57502
+ const pathParams = {
57503
+ payment_service_id: encodeSimple("payment_service_id", payload.payment_service_id, { explode: false, charEncoding: "percent" })
57504
+ };
57505
+ const path = pathToFunc("/payment-services/{payment_service_id}")(pathParams);
57506
+ const headers = new Headers(compactMap({
57507
+ "Content-Type": "application/json",
57508
+ Accept: "application/json",
57509
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57510
+ }));
57511
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57512
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57513
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57514
+ const context = {
57515
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57516
+ operationID: "create_payment_service",
57517
+ oAuth2Scopes: [],
57518
+ resolvedSecurity: requestSecurity,
57519
+ securitySource: client._options.bearerAuth,
57520
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
57521
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
57522
+ };
57523
+ const requestRes = client._createRequest(context, {
57524
+ security: requestSecurity,
57525
+ method: "PUT",
57526
+ baseURL: options?.serverURL,
57527
+ path,
57528
+ headers,
57529
+ body,
57530
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57531
+ }, options);
57532
+ if (!requestRes.ok) {
57533
+ return [requestRes, { status: "invalid" }];
57534
+ }
57535
+ const req = requestRes.value;
57536
+ const doResult = await client._do(req, {
57537
+ context,
57538
+ errorCodes: [
57539
+ "400",
57540
+ "401",
57541
+ "403",
57542
+ "404",
57543
+ "405",
57544
+ "409",
57545
+ "422",
57546
+ "425",
57547
+ "429",
57548
+ "4XX",
57549
+ "500",
57550
+ "502",
57551
+ "504",
57552
+ "5XX"
57553
+ ],
57554
+ retryConfig: context.retryConfig,
57555
+ retryCodes: context.retryCodes
57556
+ });
57557
+ if (!doResult.ok) {
57558
+ return [doResult, { status: "request-error", request: req }];
57559
+ }
57560
+ const response = doResult.value;
57561
+ const responseFields = {
57562
+ HttpMeta: { Response: response, Request: req }
57563
+ };
57564
+ const [result] = await match(json(200, PaymentService$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreatePaymentServiceResponse403CreatePaymentService$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57565
+ if (!result.ok) {
57566
+ return [result, { status: "complete", request: req, response }];
57567
+ }
57568
+ return [result, { status: "complete", request: req, response }];
57569
+ }
57570
+ var init_paymentServicesUpdate = __esm(() => {
57571
+ init_encodings();
57572
+ init_matchers();
57573
+ init_primitives();
57574
+ init_schemas();
57575
+ init_security();
57576
+ init_url();
57577
+ init_components();
57578
+ init_errors();
57579
+ init_operations();
57580
+ init_async();
57581
+ });
57582
+
57583
+ // src/mcp-server/tools/paymentServicesUpdate.ts
57584
+ var args61, tool$paymentServicesUpdate;
57585
+ var init_paymentServicesUpdate2 = __esm(() => {
57586
+ init_lib();
57587
+ init_paymentServicesUpdate();
57588
+ init_components();
57589
+ init_tools();
57590
+ args61 = {
57591
+ paymentServiceUpdate: PaymentServiceUpdate$inboundSchema,
57592
+ paymentServiceId: stringType(),
57593
+ merchantAccountId: nullableType(stringType()).optional()
57594
+ };
57595
+ tool$paymentServicesUpdate = {
57596
+ name: "payment-services-update",
57597
+ description: `Configure a payment service
57598
+
57599
+ Configures a new payment service for use by merchants.`,
57600
+ args: args61,
57601
+ tool: async (client, args62, ctx) => {
57602
+ const [result, apiCall] = await paymentServicesUpdate(client, args62.paymentServiceUpdate, args62.paymentServiceId, args62.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57603
+ if (!result.ok) {
57604
+ return {
57605
+ content: [{ type: "text", text: result.error.message }],
57606
+ isError: true
57607
+ };
57608
+ }
57609
+ const value = result.value;
57610
+ return formatResult(value, apiCall);
57611
+ }
57612
+ };
57613
+ });
57614
+
57615
+ // src/funcs/paymentServicesVerify.ts
57616
+ function paymentServicesVerify(client, verifyCredentials, timeoutInSeconds, merchantAccountId, options) {
57617
+ return new APIPromise($do62(client, verifyCredentials, timeoutInSeconds, merchantAccountId, options));
57618
+ }
57619
+ async function $do62(client, verifyCredentials, timeoutInSeconds, merchantAccountId, options) {
57620
+ const input = {
57621
+ verifyCredentials,
57622
+ timeoutInSeconds,
57623
+ merchantAccountId
57624
+ };
57625
+ const parsed = safeParse(input, (value) => VerifyPaymentServiceCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
57626
+ if (!parsed.ok) {
57627
+ return [parsed, { status: "invalid" }];
57628
+ }
57629
+ const payload = parsed.value;
57630
+ const body = encodeJSON("body", payload.VerifyCredentials, { explode: true });
57631
+ const path = pathToFunc("/payment-services/verify")();
57632
+ const query = encodeFormQuery({
57633
+ timeout_in_seconds: payload.timeout_in_seconds
57634
+ });
57635
+ const headers = new Headers(compactMap({
57636
+ "Content-Type": "application/json",
57637
+ Accept: "application/json",
57638
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57639
+ }));
57640
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57641
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57642
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57643
+ const context = {
57644
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57645
+ operationID: "verify_payment_service_credentials",
57646
+ oAuth2Scopes: [],
57647
+ resolvedSecurity: requestSecurity,
57648
+ securitySource: client._options.bearerAuth,
57649
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
57650
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
57651
+ };
57652
+ const requestRes = client._createRequest(context, {
57653
+ security: requestSecurity,
57654
+ method: "POST",
57655
+ baseURL: options?.serverURL,
57656
+ path,
57657
+ headers,
57658
+ query,
57659
+ body,
57660
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57661
+ }, options);
57662
+ if (!requestRes.ok) {
57663
+ return [requestRes, { status: "invalid" }];
57664
+ }
57665
+ const req = requestRes.value;
57666
+ const doResult = await client._do(req, {
57667
+ context,
57668
+ errorCodes: [
57669
+ "400",
57670
+ "401",
57671
+ "403",
57672
+ "404",
57673
+ "405",
57674
+ "409",
57675
+ "422",
57676
+ "425",
57677
+ "429",
57678
+ "4XX",
57679
+ "500",
57680
+ "502",
57681
+ "504",
57682
+ "5XX"
57683
+ ],
57684
+ retryConfig: context.retryConfig,
57685
+ retryCodes: context.retryCodes
57686
+ });
57687
+ if (!doResult.ok) {
57688
+ return [doResult, { status: "request-error", request: req }];
57689
+ }
57690
+ const response = doResult.value;
57691
+ const responseFields = {
57692
+ HttpMeta: { Response: response, Request: req }
57693
+ };
57694
+ const [result] = await match(json(200, anyType()), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, VerifyPaymentServiceCredentialsResponse403VerifyPaymentServiceCredentials$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57695
+ if (!result.ok) {
57696
+ return [result, { status: "complete", request: req, response }];
57697
+ }
57698
+ return [result, { status: "complete", request: req, response }];
57699
+ }
57700
+ var init_paymentServicesVerify = __esm(() => {
57701
+ init_lib();
57702
+ init_encodings();
57703
+ init_matchers();
57704
+ init_primitives();
57705
+ init_schemas();
57706
+ init_security();
57707
+ init_url();
57708
+ init_errors();
57709
+ init_operations();
57710
+ init_async();
57711
+ });
57712
+
57713
+ // src/mcp-server/tools/paymentServicesVerify.ts
57714
+ var args62, tool$paymentServicesVerify;
57715
+ var init_paymentServicesVerify2 = __esm(() => {
57716
+ init_lib();
57717
+ init_paymentServicesVerify();
57718
+ init_components();
57719
+ init_tools();
57720
+ args62 = {
57721
+ verifyCredentials: VerifyCredentials$inboundSchema,
57722
+ timeoutInSeconds: numberType().default(1),
57723
+ merchantAccountId: nullableType(stringType()).optional()
57724
+ };
57725
+ tool$paymentServicesVerify = {
57726
+ name: "payment-services-verify",
57727
+ description: `Verify payment service credentials
57728
+
57729
+ Verify the credentials of a configured payment service`,
57730
+ args: args62,
57731
+ tool: async (client, args63, ctx) => {
57732
+ const [result, apiCall] = await paymentServicesVerify(client, args63.verifyCredentials, args63.timeoutInSeconds, args63.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57733
+ if (!result.ok) {
57734
+ return {
57735
+ content: [{ type: "text", text: result.error.message }],
57736
+ isError: true
57737
+ };
57738
+ }
57739
+ const value = result.value;
57740
+ return formatResult(value, apiCall);
57741
+ }
57742
+ };
57743
+ });
57744
+
57745
+ // src/funcs/payoutsCreate.ts
57746
+ function payoutsCreate(client, payoutCreate, timeoutInSeconds, merchantAccountId, options) {
57747
+ return new APIPromise($do63(client, payoutCreate, timeoutInSeconds, merchantAccountId, options));
57748
+ }
57749
+ async function $do63(client, payoutCreate, timeoutInSeconds, merchantAccountId, options) {
57750
+ const input = {
57751
+ payoutCreate,
57752
+ timeoutInSeconds,
57753
+ merchantAccountId
57754
+ };
57755
+ const parsed = safeParse(input, (value) => CreatePayoutRequest$outboundSchema.parse(value), "Input validation failed");
57756
+ if (!parsed.ok) {
57757
+ return [parsed, { status: "invalid" }];
57758
+ }
57759
+ const payload = parsed.value;
57760
+ const body = encodeJSON("body", payload.PayoutCreate, { explode: true });
57761
+ const path = pathToFunc("/payouts")();
57762
+ const query = encodeFormQuery({
57763
+ timeout_in_seconds: payload.timeout_in_seconds
57764
+ });
57765
+ const headers = new Headers(compactMap({
57766
+ "Content-Type": "application/json",
57767
+ Accept: "application/json",
57768
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57769
+ }));
57770
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57771
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57772
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57773
+ const context = {
57774
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57775
+ operationID: "create_payout",
57776
+ oAuth2Scopes: [],
57777
+ resolvedSecurity: requestSecurity,
57778
+ securitySource: client._options.bearerAuth,
57779
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
57780
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
57781
+ };
57782
+ const requestRes = client._createRequest(context, {
57783
+ security: requestSecurity,
57784
+ method: "POST",
57785
+ baseURL: options?.serverURL,
57786
+ path,
57787
+ headers,
57788
+ query,
57789
+ body,
57790
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57791
+ }, options);
57792
+ if (!requestRes.ok) {
57793
+ return [requestRes, { status: "invalid" }];
57794
+ }
57795
+ const req = requestRes.value;
57796
+ const doResult = await client._do(req, {
57797
+ context,
57798
+ errorCodes: [
57799
+ "400",
57800
+ "401",
57801
+ "403",
57802
+ "404",
57803
+ "405",
57804
+ "409",
57805
+ "422",
57806
+ "425",
57807
+ "429",
57808
+ "4XX",
57809
+ "500",
57810
+ "502",
57811
+ "504",
57812
+ "5XX"
57813
+ ],
57814
+ retryConfig: context.retryConfig,
57815
+ retryCodes: context.retryCodes
57816
+ });
57817
+ if (!doResult.ok) {
57818
+ return [doResult, { status: "request-error", request: req }];
57819
+ }
57820
+ const response = doResult.value;
57821
+ const responseFields = {
57822
+ HttpMeta: { Response: response, Request: req }
57823
+ };
57824
+ const [result] = await match(json(201, PayoutSummary$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreatePayoutResponse403CreatePayout$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57825
+ if (!result.ok) {
57826
+ return [result, { status: "complete", request: req, response }];
57827
+ }
57828
+ return [result, { status: "complete", request: req, response }];
57829
+ }
57830
+ var init_payoutsCreate = __esm(() => {
57831
+ init_encodings();
57832
+ init_matchers();
57833
+ init_primitives();
57834
+ init_schemas();
57835
+ init_security();
57836
+ init_url();
57837
+ init_components();
57838
+ init_errors();
57839
+ init_operations();
57840
+ init_async();
57841
+ });
57842
+
57843
+ // src/mcp-server/tools/payoutsCreate.ts
57844
+ var args63, tool$payoutsCreate;
57845
+ var init_payoutsCreate2 = __esm(() => {
57846
+ init_lib();
57847
+ init_payoutsCreate();
57848
+ init_components();
57849
+ init_tools();
57850
+ args63 = {
57851
+ payoutCreate: PayoutCreate$inboundSchema,
57852
+ timeoutInSeconds: numberType().default(1),
57853
+ merchantAccountId: nullableType(stringType()).optional()
57854
+ };
57855
+ tool$payoutsCreate = {
57856
+ name: "payouts-create",
57857
+ description: `Create a payout.
57858
+
57859
+ Creates a new payout.`,
57860
+ args: args63,
57861
+ tool: async (client, args64, ctx) => {
57862
+ const [result, apiCall] = await payoutsCreate(client, args64.payoutCreate, args64.timeoutInSeconds, args64.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57863
+ if (!result.ok) {
57864
+ return {
57865
+ content: [{ type: "text", text: result.error.message }],
57866
+ isError: true
57867
+ };
57868
+ }
57869
+ const value = result.value;
57870
+ return formatResult(value, apiCall);
57871
+ }
57872
+ };
57873
+ });
57874
+
57875
+ // src/funcs/payoutsGet.ts
57876
+ function payoutsGet(client, payoutId, merchantAccountId, options) {
57877
+ return new APIPromise($do64(client, payoutId, merchantAccountId, options));
57878
+ }
57879
+ async function $do64(client, payoutId, merchantAccountId, options) {
57880
+ const input = {
57881
+ payoutId,
57882
+ merchantAccountId
57883
+ };
57884
+ const parsed = safeParse(input, (value) => GetPayoutRequest$outboundSchema.parse(value), "Input validation failed");
57885
+ if (!parsed.ok) {
57886
+ return [parsed, { status: "invalid" }];
57887
+ }
57888
+ const payload = parsed.value;
57889
+ const body = null;
57890
+ const pathParams = {
57891
+ payout_id: encodeSimple("payout_id", payload.payout_id, {
57892
+ explode: false,
57893
+ charEncoding: "percent"
57894
+ })
57895
+ };
57896
+ const path = pathToFunc("/payouts/{payout_id}")(pathParams);
57897
+ const headers = new Headers(compactMap({
57898
+ Accept: "application/json",
57899
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
57900
+ }));
57901
+ const secConfig = await extractSecurity(client._options.bearerAuth);
57902
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
57903
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57904
+ const context = {
57905
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
57906
+ operationID: "get_payout",
57907
+ oAuth2Scopes: [],
57908
+ resolvedSecurity: requestSecurity,
57909
+ securitySource: client._options.bearerAuth,
57910
+ retryConfig: options?.retries || client._options.retryConfig || {
57911
+ strategy: "backoff",
57912
+ backoff: {
57913
+ initialInterval: 200,
57914
+ maxInterval: 200,
57915
+ exponent: 1,
57916
+ maxElapsedTime: 1000
57917
+ },
57918
+ retryConnectionErrors: true
57919
+ },
57920
+ retryCodes: options?.retryCodes || ["5XX"]
57921
+ };
57922
+ const requestRes = client._createRequest(context, {
57923
+ security: requestSecurity,
57924
+ method: "GET",
57925
+ baseURL: options?.serverURL,
57926
+ path,
57927
+ headers,
57928
+ body,
57929
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
57930
+ }, options);
57931
+ if (!requestRes.ok) {
57932
+ return [requestRes, { status: "invalid" }];
57933
+ }
57934
+ const req = requestRes.value;
57935
+ const doResult = await client._do(req, {
57936
+ context,
57937
+ errorCodes: [
57938
+ "400",
57939
+ "401",
57940
+ "403",
57941
+ "404",
57942
+ "405",
57943
+ "409",
57944
+ "422",
57945
+ "425",
57946
+ "429",
57947
+ "4XX",
57948
+ "500",
57949
+ "502",
57950
+ "504",
57951
+ "5XX"
57952
+ ],
57953
+ retryConfig: context.retryConfig,
57954
+ retryCodes: context.retryCodes
57955
+ });
57956
+ if (!doResult.ok) {
57957
+ return [doResult, { status: "request-error", request: req }];
57958
+ }
57959
+ const response = doResult.value;
57960
+ const responseFields = {
57961
+ HttpMeta: { Response: response, Request: req }
57962
+ };
57963
+ const [result] = await match(json(200, PayoutSummary$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetPayoutResponse403GetPayout$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
57964
+ if (!result.ok) {
57965
+ return [result, { status: "complete", request: req, response }];
57966
+ }
57967
+ return [result, { status: "complete", request: req, response }];
57968
+ }
57969
+ var init_payoutsGet = __esm(() => {
57970
+ init_encodings();
57971
+ init_matchers();
57972
+ init_primitives();
57973
+ init_schemas();
57974
+ init_security();
57975
+ init_url();
57976
+ init_components();
57977
+ init_errors();
57978
+ init_operations();
57979
+ init_async();
57980
+ });
57981
+
57982
+ // src/mcp-server/tools/payoutsGet.ts
57983
+ var args64, tool$payoutsGet;
57984
+ var init_payoutsGet2 = __esm(() => {
57985
+ init_lib();
57986
+ init_payoutsGet();
57987
+ init_tools();
57988
+ args64 = {
57989
+ payoutId: stringType(),
57990
+ merchantAccountId: nullableType(stringType()).optional()
57991
+ };
57992
+ tool$payoutsGet = {
57993
+ name: "payouts-get",
57994
+ description: `Get a payout.
57995
+
57996
+ Retreives a payout.`,
57997
+ args: args64,
57998
+ tool: async (client, args65, ctx) => {
57999
+ const [result, apiCall] = await payoutsGet(client, args65.payoutId, args65.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58000
+ if (!result.ok) {
58001
+ return {
58002
+ content: [{ type: "text", text: result.error.message }],
58003
+ isError: true
58004
+ };
58005
+ }
58006
+ const value = result.value;
58007
+ return formatResult(value, apiCall);
58008
+ }
58009
+ };
58010
+ });
58011
+
58012
+ // src/funcs/payoutsList.ts
58013
+ function payoutsList(client, cursor, limit, merchantAccountId, options) {
58014
+ return new APIPromise($do65(client, cursor, limit, merchantAccountId, options));
58015
+ }
58016
+ async function $do65(client, cursor, limit, merchantAccountId, options) {
58017
+ const input = {
58018
+ cursor,
58019
+ limit,
58020
+ merchantAccountId
58021
+ };
58022
+ const parsed = safeParse(input, (value) => ListPayoutsRequest$outboundSchema.optional().parse(value), "Input validation failed");
58023
+ if (!parsed.ok) {
58024
+ return [haltIterator(parsed), { status: "invalid" }];
58025
+ }
58026
+ const payload = parsed.value;
58027
+ const body = null;
58028
+ const path = pathToFunc("/payouts")();
58029
+ const query = encodeFormQuery({
58030
+ cursor: payload?.cursor,
58031
+ limit: payload?.limit
58032
+ });
58033
+ const headers = new Headers(compactMap({
58034
+ Accept: "application/json",
58035
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload?.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
58036
+ }));
58037
+ const secConfig = await extractSecurity(client._options.bearerAuth);
58038
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
58039
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58040
+ const context = {
58041
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
58042
+ operationID: "list_payouts",
58043
+ oAuth2Scopes: [],
58044
+ resolvedSecurity: requestSecurity,
58045
+ securitySource: client._options.bearerAuth,
58046
+ retryConfig: options?.retries || client._options.retryConfig || {
58047
+ strategy: "backoff",
58048
+ backoff: {
58049
+ initialInterval: 200,
58050
+ maxInterval: 200,
58051
+ exponent: 1,
58052
+ maxElapsedTime: 1000
58053
+ },
58054
+ retryConnectionErrors: true
58055
+ },
58056
+ retryCodes: options?.retryCodes || ["5XX"]
58057
+ };
58058
+ const requestRes = client._createRequest(context, {
58059
+ security: requestSecurity,
58060
+ method: "GET",
58061
+ baseURL: options?.serverURL,
58062
+ path,
58063
+ headers,
58064
+ query,
58065
+ body,
58066
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
58067
+ }, options);
58068
+ if (!requestRes.ok) {
58069
+ return [haltIterator(requestRes), { status: "invalid" }];
58070
+ }
58071
+ const req = requestRes.value;
58072
+ const doResult = await client._do(req, {
58073
+ context,
58074
+ errorCodes: [
58075
+ "400",
58076
+ "401",
58077
+ "403",
58078
+ "404",
58079
+ "405",
58080
+ "409",
58081
+ "422",
58082
+ "425",
58083
+ "429",
58084
+ "4XX",
58085
+ "500",
58086
+ "502",
58087
+ "504",
58088
+ "5XX"
58089
+ ],
58090
+ retryConfig: context.retryConfig,
58091
+ retryCodes: context.retryCodes
58092
+ });
58093
+ if (!doResult.ok) {
58094
+ return [haltIterator(doResult), { status: "request-error", request: req }];
58095
+ }
58096
+ const response = doResult.value;
58097
+ const responseFields = {
58098
+ HttpMeta: { Response: response, Request: req }
58099
+ };
58100
+ const [result, raw] = await match(json(200, ListPayoutsResponse$inboundSchema, {
58101
+ key: "Result"
58102
+ }), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, ListPayoutsResponse403ListPayouts$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58103
+ if (!result.ok) {
58104
+ return [haltIterator(result), {
58105
+ status: "complete",
58106
+ request: req,
58107
+ response
58108
+ }];
58109
+ }
58110
+ const nextFunc = (responseData) => {
58111
+ const nextCursor = dlv(responseData, "next_cursor");
58112
+ if (typeof nextCursor !== "string") {
58113
+ return { next: () => null };
58114
+ }
58115
+ const nextVal = () => payoutsList(client, nextCursor, limit, merchantAccountId, options);
58116
+ return { next: nextVal, "~next": { cursor: nextCursor } };
58117
+ };
58118
+ const page = { ...result, ...nextFunc(raw) };
58119
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
58120
+ status: "complete",
58121
+ request: req,
58122
+ response
58123
+ }];
58124
+ }
58125
+ var init_payoutsList = __esm(() => {
58126
+ init_encodings();
58127
+ init_matchers();
58128
+ init_primitives();
58129
+ init_schemas();
58130
+ init_security();
58131
+ init_url();
58132
+ init_errors();
58133
+ init_operations();
58134
+ init_async();
58135
+ init_operations2();
58136
+ });
58137
+
58138
+ // src/mcp-server/tools/payoutsList.ts
58139
+ var args65, tool$payoutsList;
58140
+ var init_payoutsList2 = __esm(() => {
58141
+ init_lib();
58142
+ init_payoutsList();
58143
+ init_tools();
58144
+ args65 = {
58145
+ cursor: nullableType(stringType()).optional(),
58146
+ limit: numberType().int().default(20),
58147
+ merchantAccountId: nullableType(stringType()).optional()
58148
+ };
58149
+ tool$payoutsList = {
58150
+ name: "payouts-list",
58151
+ description: `List payouts created.
58152
+
58153
+ Returns a list of payouts made.`,
58154
+ args: args65,
58155
+ tool: async (client, args66, ctx) => {
58156
+ const [result, apiCall] = await payoutsList(client, args66.cursor, args66.limit, args66.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58157
+ if (!result.ok) {
58158
+ return {
58159
+ content: [{ type: "text", text: result.error.message }],
58160
+ isError: true
58161
+ };
58162
+ }
58163
+ const value = result.value.result;
58164
+ return formatResult(value, apiCall);
58165
+ }
58166
+ };
58167
+ });
58168
+
58169
+ // src/funcs/refundsGet.ts
58170
+ function refundsGet(client, refundId, merchantAccountId, options) {
58171
+ return new APIPromise($do66(client, refundId, merchantAccountId, options));
58172
+ }
58173
+ async function $do66(client, refundId, merchantAccountId, options) {
58174
+ const input = {
58175
+ refundId,
58176
+ merchantAccountId
58177
+ };
58178
+ const parsed = safeParse(input, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
58179
+ if (!parsed.ok) {
58180
+ return [parsed, { status: "invalid" }];
58181
+ }
58182
+ const payload = parsed.value;
58183
+ const body = null;
58184
+ const pathParams = {
58185
+ refund_id: encodeSimple("refund_id", payload.refund_id, {
58186
+ explode: false,
58187
+ charEncoding: "percent"
58188
+ })
58189
+ };
58190
+ const path = pathToFunc("/refunds/{refund_id}")(pathParams);
58191
+ const headers = new Headers(compactMap({
58192
+ Accept: "application/json",
58193
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
58194
+ }));
58195
+ const secConfig = await extractSecurity(client._options.bearerAuth);
58196
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
58197
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58198
+ const context = {
58199
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
58200
+ operationID: "get_refund",
58201
+ oAuth2Scopes: [],
58202
+ resolvedSecurity: requestSecurity,
58203
+ securitySource: client._options.bearerAuth,
58204
+ retryConfig: options?.retries || client._options.retryConfig || {
58205
+ strategy: "backoff",
58206
+ backoff: {
58207
+ initialInterval: 200,
58208
+ maxInterval: 200,
58209
+ exponent: 1,
58210
+ maxElapsedTime: 1000
58211
+ },
58212
+ retryConnectionErrors: true
58213
+ },
58214
+ retryCodes: options?.retryCodes || ["5XX"]
58215
+ };
58216
+ const requestRes = client._createRequest(context, {
58217
+ security: requestSecurity,
58218
+ method: "GET",
58219
+ baseURL: options?.serverURL,
58220
+ path,
58221
+ headers,
58222
+ body,
58223
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
58224
+ }, options);
58225
+ if (!requestRes.ok) {
58226
+ return [requestRes, { status: "invalid" }];
58227
+ }
58228
+ const req = requestRes.value;
58229
+ const doResult = await client._do(req, {
58230
+ context,
58231
+ errorCodes: [
58232
+ "400",
58233
+ "401",
58234
+ "403",
58235
+ "404",
58236
+ "405",
58237
+ "409",
58238
+ "422",
58239
+ "425",
58240
+ "429",
58241
+ "4XX",
58242
+ "500",
58243
+ "502",
58244
+ "504",
58245
+ "5XX"
58246
+ ],
58247
+ retryConfig: context.retryConfig,
58248
+ retryCodes: context.retryCodes
58249
+ });
58250
+ if (!doResult.ok) {
58251
+ return [doResult, { status: "request-error", request: req }];
58252
+ }
58253
+ const response = doResult.value;
58254
+ const responseFields = {
58255
+ HttpMeta: { Response: response, Request: req }
58256
+ };
58257
+ const [result] = await match(json(200, Refund$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, GetRefundResponse403GetRefund$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58258
+ if (!result.ok) {
58259
+ return [result, { status: "complete", request: req, response }];
58260
+ }
58261
+ return [result, { status: "complete", request: req, response }];
58262
+ }
58263
+ var init_refundsGet = __esm(() => {
58264
+ init_encodings();
58265
+ init_matchers();
58266
+ init_primitives();
58267
+ init_schemas();
58268
+ init_security();
58269
+ init_url();
58270
+ init_components();
58271
+ init_errors();
58272
+ init_operations();
58273
+ init_async();
58274
+ });
58275
+
58276
+ // src/mcp-server/tools/refundsGet.ts
58277
+ var args66, tool$refundsGet;
58278
+ var init_refundsGet2 = __esm(() => {
58279
+ init_lib();
58280
+ init_refundsGet();
58281
+ init_tools();
58282
+ args66 = {
58283
+ refundId: stringType(),
58284
+ merchantAccountId: nullableType(stringType()).optional()
58285
+ };
58286
+ tool$refundsGet = {
58287
+ name: "refunds-get",
58288
+ description: `Get refund
58289
+
58290
+ Fetch a refund.`,
58291
+ args: args66,
58292
+ tool: async (client, args67, ctx) => {
58293
+ const [result, apiCall] = await refundsGet(client, args67.refundId, args67.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58294
+ if (!result.ok) {
58295
+ return {
58296
+ content: [{ type: "text", text: result.error.message }],
58297
+ isError: true
58298
+ };
58299
+ }
58300
+ const value = result.value;
58301
+ return formatResult(value, apiCall);
58302
+ }
58303
+ };
58304
+ });
58305
+
58306
+ // src/funcs/transactionRefundsAllCreate.ts
58307
+ function transactionRefundsAllCreate(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options) {
58308
+ return new APIPromise($do67(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options));
58309
+ }
58310
+ async function $do67(client, transactionId, transactionRefundAllCreate, timeoutInSeconds, merchantAccountId, options) {
58311
+ const input = {
58312
+ transactionId,
58313
+ transactionRefundAllCreate,
58314
+ timeoutInSeconds,
58315
+ merchantAccountId
58316
+ };
58317
+ const parsed = safeParse(input, (value) => CreateFullTransactionRefundRequest$outboundSchema.parse(value), "Input validation failed");
58318
+ if (!parsed.ok) {
58319
+ return [parsed, { status: "invalid" }];
58320
+ }
58321
+ const payload = parsed.value;
58322
+ const body = encodeJSON("body", payload.TransactionRefundAllCreate, {
58323
+ explode: true
58324
+ });
58325
+ const pathParams = {
58326
+ transaction_id: encodeSimple("transaction_id", payload.transaction_id, {
58327
+ explode: false,
58328
+ charEncoding: "percent"
58329
+ })
58330
+ };
58331
+ const path = pathToFunc("/transactions/{transaction_id}/refunds/all")(pathParams);
58332
+ const query = encodeFormQuery({
58333
+ timeout_in_seconds: payload.timeout_in_seconds
58334
+ });
58335
+ const headers = new Headers(compactMap({
58336
+ "Content-Type": "application/json",
58337
+ Accept: "application/json",
58338
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
58339
+ }));
58340
+ const secConfig = await extractSecurity(client._options.bearerAuth);
58341
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
58342
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58343
+ const context = {
58344
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
58345
+ operationID: "create_full_transaction_refund",
58346
+ oAuth2Scopes: [],
58347
+ resolvedSecurity: requestSecurity,
58348
+ securitySource: client._options.bearerAuth,
58349
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58350
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58351
+ };
58352
+ const requestRes = client._createRequest(context, {
58353
+ security: requestSecurity,
58354
+ method: "POST",
58355
+ baseURL: options?.serverURL,
58356
+ path,
58357
+ headers,
58358
+ query,
58359
+ body,
58360
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
58361
+ }, options);
58362
+ if (!requestRes.ok) {
58363
+ return [requestRes, { status: "invalid" }];
58364
+ }
58365
+ const req = requestRes.value;
58366
+ const doResult = await client._do(req, {
58367
+ context,
58368
+ errorCodes: [
58369
+ "400",
58370
+ "401",
58371
+ "403",
58372
+ "404",
58373
+ "405",
58374
+ "409",
58375
+ "422",
58376
+ "425",
58377
+ "429",
58378
+ "4XX",
58379
+ "500",
58380
+ "502",
58381
+ "504",
58382
+ "5XX"
58383
+ ],
58384
+ retryConfig: context.retryConfig,
58385
+ retryCodes: context.retryCodes
58386
+ });
58387
+ if (!doResult.ok) {
58388
+ return [doResult, { status: "request-error", request: req }];
58389
+ }
58390
+ const response = doResult.value;
58391
+ const responseFields = {
58392
+ HttpMeta: { Response: response, Request: req }
58393
+ };
58394
+ const [result] = await match(json(201, CollectionNoCursorRefund$inboundSchema), jsonErr(400, Error400$inboundSchema), jsonErr(401, Error401$inboundSchema), jsonErr(403, CreateFullTransactionRefundResponse403CreateFullTransactionRefund$inboundSchema), jsonErr(404, Error404$inboundSchema), jsonErr(405, Error405$inboundSchema), jsonErr(409, Error409$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), jsonErr(425, Error425$inboundSchema), jsonErr(429, Error429$inboundSchema), jsonErr(500, Error500$inboundSchema), jsonErr(502, Error502$inboundSchema), jsonErr(504, Error504$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
58395
+ if (!result.ok) {
58396
+ return [result, { status: "complete", request: req, response }];
58397
+ }
58398
+ return [result, { status: "complete", request: req, response }];
58399
+ }
58400
+ var init_transactionRefundsAllCreate = __esm(() => {
58401
+ init_encodings();
58402
+ init_matchers();
58403
+ init_primitives();
58404
+ init_schemas();
58405
+ init_security();
58406
+ init_url();
58407
+ init_components();
58408
+ init_errors();
58409
+ init_operations();
58410
+ init_async();
58411
+ });
58412
+
58413
+ // src/mcp-server/tools/transactionRefundsAllCreate.ts
58414
+ var args67, tool$transactionRefundsAllCreate;
58415
+ var init_transactionRefundsAllCreate2 = __esm(() => {
58416
+ init_lib();
58417
+ init_transactionRefundsAllCreate();
58418
+ init_components();
58419
+ init_tools();
58420
+ args67 = {
58421
+ transactionId: stringType(),
58422
+ transactionRefundAllCreate: nullableType(TransactionRefundAllCreate$inboundSchema).optional(),
58423
+ timeoutInSeconds: numberType().default(1),
58424
+ merchantAccountId: nullableType(stringType()).optional()
58425
+ };
58426
+ tool$transactionRefundsAllCreate = {
58427
+ name: "transaction-refunds-all-create",
58428
+ description: `Create batch transaction refund
58429
+
58430
+ Create a refund for all instruments on a transaction.`,
58431
+ args: args67,
58432
+ tool: async (client, args68, ctx) => {
58433
+ const [result, apiCall] = await transactionRefundsAllCreate(client, args68.transactionId, args68.transactionRefundAllCreate, args68.timeoutInSeconds, args68.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58434
+ if (!result.ok) {
58435
+ return {
58436
+ content: [{ type: "text", text: result.error.message }],
58437
+ isError: true
58438
+ };
58439
+ }
58440
+ const value = result.value;
58441
+ return formatResult(value, apiCall);
58442
+ }
58443
+ };
58444
+ });
58445
+
58446
+ // src/funcs/transactionRefundsCreate.ts
58447
+ function transactionRefundsCreate(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options) {
58448
+ return new APIPromise($do68(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options));
58449
+ }
58450
+ async function $do68(client, transactionRefundCreate, transactionId, timeoutInSeconds, merchantAccountId, options) {
58451
+ const input = {
58452
+ transactionRefundCreate,
58453
+ transactionId,
58454
+ timeoutInSeconds,
58455
+ merchantAccountId
58456
+ };
58457
+ const parsed = safeParse(input, (value) => CreateTransactionRefundRequest$outboundSchema.parse(value), "Input validation failed");
58458
+ if (!parsed.ok) {
58459
+ return [parsed, { status: "invalid" }];
58460
+ }
58461
+ const payload = parsed.value;
58462
+ const body = encodeJSON("body", payload.TransactionRefundCreate, {
58463
+ explode: true
58464
+ });
58465
+ const pathParams = {
58466
+ transaction_id: encodeSimple("transaction_id", payload.transaction_id, {
58467
+ explode: false,
58468
+ charEncoding: "percent"
58469
+ })
58470
+ };
58471
+ const path = pathToFunc("/transactions/{transaction_id}/refunds")(pathParams);
58472
+ const query = encodeFormQuery({
58473
+ timeout_in_seconds: payload.timeout_in_seconds
58474
+ });
58475
+ const headers = new Headers(compactMap({
58476
+ "Content-Type": "application/json",
58477
+ Accept: "application/json",
58478
+ "x-gr4vy-merchant-account-id": encodeSimple("x-gr4vy-merchant-account-id", payload.merchantAccountId ?? client._options.merchantAccountId, { explode: false, charEncoding: "none" })
58479
+ }));
58480
+ const secConfig = await extractSecurity(client._options.bearerAuth);
58481
+ const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
58482
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58483
+ const context = {
58484
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
58485
+ operationID: "create_transaction_refund",
58486
+ oAuth2Scopes: [],
58487
+ resolvedSecurity: requestSecurity,
58488
+ securitySource: client._options.bearerAuth,
58489
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
58490
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
58491
+ };
58492
+ const requestRes = client._createRequest(context, {
58493
+ security: requestSecurity,
58494
+ method: "POST",
58495
+ baseURL: options?.serverURL,
58496
+ path,
58497
+ headers,
58498
+ query,
55751
58499
  body,
55752
58500
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
55753
58501
  }, options);
@@ -55803,13 +58551,13 @@ var init_transactionRefundsCreate = __esm(() => {
55803
58551
  });
55804
58552
 
55805
58553
  // src/mcp-server/tools/transactionRefundsCreate.ts
55806
- var args58, tool$transactionRefundsCreate;
58554
+ var args68, tool$transactionRefundsCreate;
55807
58555
  var init_transactionRefundsCreate2 = __esm(() => {
55808
58556
  init_lib();
55809
58557
  init_transactionRefundsCreate();
55810
58558
  init_components();
55811
58559
  init_tools();
55812
- args58 = {
58560
+ args68 = {
55813
58561
  transactionRefundCreate: TransactionRefundCreate$inboundSchema,
55814
58562
  transactionId: stringType(),
55815
58563
  timeoutInSeconds: numberType().default(1),
@@ -55820,9 +58568,9 @@ var init_transactionRefundsCreate2 = __esm(() => {
55820
58568
  description: `Create transaction refund
55821
58569
 
55822
58570
  Create a refund for a transaction.`,
55823
- args: args58,
55824
- tool: async (client, args59, ctx) => {
55825
- const [result, apiCall] = await transactionRefundsCreate(client, args59.transactionRefundCreate, args59.transactionId, args59.timeoutInSeconds, args59.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58571
+ args: args68,
58572
+ tool: async (client, args69, ctx) => {
58573
+ const [result, apiCall] = await transactionRefundsCreate(client, args69.transactionRefundCreate, args69.transactionId, args69.timeoutInSeconds, args69.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55826
58574
  if (!result.ok) {
55827
58575
  return {
55828
58576
  content: [{ type: "text", text: result.error.message }],
@@ -55837,9 +58585,9 @@ Create a refund for a transaction.`,
55837
58585
 
55838
58586
  // src/funcs/transactionsCapture.ts
55839
58587
  function transactionsCapture(client, transactionCapture, transactionId, timeoutInSeconds, merchantAccountId, options) {
55840
- return new APIPromise($do59(client, transactionCapture, transactionId, timeoutInSeconds, merchantAccountId, options));
58588
+ return new APIPromise($do69(client, transactionCapture, transactionId, timeoutInSeconds, merchantAccountId, options));
55841
58589
  }
55842
- async function $do59(client, transactionCapture, transactionId, timeoutInSeconds, merchantAccountId, options) {
58590
+ async function $do69(client, transactionCapture, transactionId, timeoutInSeconds, merchantAccountId, options) {
55843
58591
  const input = {
55844
58592
  transactionCapture,
55845
58593
  transactionId,
@@ -55943,13 +58691,13 @@ var init_transactionsCapture = __esm(() => {
55943
58691
  });
55944
58692
 
55945
58693
  // src/mcp-server/tools/transactionsCapture.ts
55946
- var args59, tool$transactionsCapture;
58694
+ var args69, tool$transactionsCapture;
55947
58695
  var init_transactionsCapture2 = __esm(() => {
55948
58696
  init_lib();
55949
58697
  init_transactionsCapture();
55950
58698
  init_components();
55951
58699
  init_tools();
55952
- args59 = {
58700
+ args69 = {
55953
58701
  transactionCapture: TransactionCapture$inboundSchema,
55954
58702
  transactionId: stringType(),
55955
58703
  timeoutInSeconds: numberType().default(1),
@@ -55960,9 +58708,9 @@ var init_transactionsCapture2 = __esm(() => {
55960
58708
  description: `Capture transaction
55961
58709
 
55962
58710
  Capture a previously authorized transaction.`,
55963
- args: args59,
55964
- tool: async (client, args60, ctx) => {
55965
- const [result, apiCall] = await transactionsCapture(client, args60.transactionCapture, args60.transactionId, args60.timeoutInSeconds, args60.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58711
+ args: args69,
58712
+ tool: async (client, args70, ctx) => {
58713
+ const [result, apiCall] = await transactionsCapture(client, args70.transactionCapture, args70.transactionId, args70.timeoutInSeconds, args70.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
55966
58714
  if (!result.ok) {
55967
58715
  return {
55968
58716
  content: [{ type: "text", text: result.error.message }],
@@ -55977,9 +58725,9 @@ Capture a previously authorized transaction.`,
55977
58725
 
55978
58726
  // src/funcs/transactionsCreate.ts
55979
58727
  function transactionsCreate(client, transactionCreate, timeoutInSeconds, merchantAccountId, idempotencyKey, options) {
55980
- return new APIPromise($do60(client, transactionCreate, timeoutInSeconds, merchantAccountId, idempotencyKey, options));
58728
+ return new APIPromise($do70(client, transactionCreate, timeoutInSeconds, merchantAccountId, idempotencyKey, options));
55981
58729
  }
55982
- async function $do60(client, transactionCreate, timeoutInSeconds, merchantAccountId, idempotencyKey, options) {
58730
+ async function $do70(client, transactionCreate, timeoutInSeconds, merchantAccountId, idempotencyKey, options) {
55983
58731
  const input = {
55984
58732
  transactionCreate,
55985
58733
  timeoutInSeconds,
@@ -56075,13 +58823,13 @@ var init_transactionsCreate = __esm(() => {
56075
58823
  });
56076
58824
 
56077
58825
  // src/mcp-server/tools/transactionsCreate.ts
56078
- var args60, tool$transactionsCreate;
58826
+ var args70, tool$transactionsCreate;
56079
58827
  var init_transactionsCreate2 = __esm(() => {
56080
58828
  init_lib();
56081
58829
  init_transactionsCreate();
56082
58830
  init_components();
56083
58831
  init_tools();
56084
- args60 = {
58832
+ args70 = {
56085
58833
  transactionCreate: TransactionCreate$inboundSchema,
56086
58834
  timeoutInSeconds: numberType().default(1),
56087
58835
  merchantAccountId: nullableType(stringType()).optional(),
@@ -56092,9 +58840,9 @@ var init_transactionsCreate2 = __esm(() => {
56092
58840
  description: `Create transaction
56093
58841
 
56094
58842
  Create a transaction.`,
56095
- args: args60,
56096
- tool: async (client, args61, ctx) => {
56097
- const [result, apiCall] = await transactionsCreate(client, args61.transactionCreate, args61.timeoutInSeconds, args61.merchantAccountId, args61.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
58843
+ args: args70,
58844
+ tool: async (client, args71, ctx) => {
58845
+ const [result, apiCall] = await transactionsCreate(client, args71.transactionCreate, args71.timeoutInSeconds, args71.merchantAccountId, args71.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
56098
58846
  if (!result.ok) {
56099
58847
  return {
56100
58848
  content: [{ type: "text", text: result.error.message }],
@@ -56109,9 +58857,9 @@ Create a transaction.`,
56109
58857
 
56110
58858
  // src/funcs/transactionsGet.ts
56111
58859
  function transactionsGet(client, transactionId, merchantAccountId, options) {
56112
- return new APIPromise($do61(client, transactionId, merchantAccountId, options));
58860
+ return new APIPromise($do71(client, transactionId, merchantAccountId, options));
56113
58861
  }
56114
- async function $do61(client, transactionId, merchantAccountId, options) {
58862
+ async function $do71(client, transactionId, merchantAccountId, options) {
56115
58863
  const input = {
56116
58864
  transactionId,
56117
58865
  merchantAccountId
@@ -56215,12 +58963,12 @@ var init_transactionsGet = __esm(() => {
56215
58963
  });
56216
58964
 
56217
58965
  // src/mcp-server/tools/transactionsGet.ts
56218
- var args61, tool$transactionsGet;
58966
+ var args71, tool$transactionsGet;
56219
58967
  var init_transactionsGet2 = __esm(() => {
56220
58968
  init_lib();
56221
58969
  init_transactionsGet();
56222
58970
  init_tools();
56223
- args61 = {
58971
+ args71 = {
56224
58972
  transactionId: stringType(),
56225
58973
  merchantAccountId: nullableType(stringType()).optional()
56226
58974
  };
@@ -56229,9 +58977,9 @@ var init_transactionsGet2 = __esm(() => {
56229
58977
  description: `Get transaction
56230
58978
 
56231
58979
  Fetch a single transaction by its ID.`,
56232
- args: args61,
56233
- tool: async (client, args62, ctx) => {
56234
- const [result, apiCall] = await transactionsGet(client, args62.transactionId, args62.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
58980
+ args: args71,
58981
+ tool: async (client, args72, ctx) => {
58982
+ const [result, apiCall] = await transactionsGet(client, args72.transactionId, args72.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56235
58983
  if (!result.ok) {
56236
58984
  return {
56237
58985
  content: [{ type: "text", text: result.error.message }],
@@ -56246,9 +58994,9 @@ Fetch a single transaction by its ID.`,
56246
58994
 
56247
58995
  // src/funcs/transactionsList.ts
56248
58996
  function transactionsList(client, request, options) {
56249
- return new APIPromise($do62(client, request, options));
58997
+ return new APIPromise($do72(client, request, options));
56250
58998
  }
56251
- async function $do62(client, request, options) {
58999
+ async function $do72(client, request, options) {
56252
59000
  const parsed = safeParse(request, (value) => ListTransactionsRequest$outboundSchema.optional().parse(value), "Input validation failed");
56253
59001
  if (!parsed.ok) {
56254
59002
  return [haltIterator(parsed), { status: "invalid" }];
@@ -56404,12 +59152,12 @@ var init_transactionsList = __esm(() => {
56404
59152
  });
56405
59153
 
56406
59154
  // src/mcp-server/tools/transactionsList.ts
56407
- var args62, tool$transactionsList;
59155
+ var args72, tool$transactionsList;
56408
59156
  var init_transactionsList2 = __esm(() => {
56409
59157
  init_transactionsList();
56410
59158
  init_operations();
56411
59159
  init_tools();
56412
- args62 = {
59160
+ args72 = {
56413
59161
  request: ListTransactionsRequest$inboundSchema.optional()
56414
59162
  };
56415
59163
  tool$transactionsList = {
@@ -56417,9 +59165,9 @@ var init_transactionsList2 = __esm(() => {
56417
59165
  description: `List transactions
56418
59166
 
56419
59167
  List all transactions for a specific merchant account sorted by most recently created.`,
56420
- args: args62,
56421
- tool: async (client, args63, ctx) => {
56422
- const [result, apiCall] = await transactionsList(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59168
+ args: args72,
59169
+ tool: async (client, args73, ctx) => {
59170
+ const [result, apiCall] = await transactionsList(client, args73.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56423
59171
  if (!result.ok) {
56424
59172
  return {
56425
59173
  content: [{ type: "text", text: result.error.message }],
@@ -56434,9 +59182,9 @@ List all transactions for a specific merchant account sorted by most recently cr
56434
59182
 
56435
59183
  // src/funcs/transactionsRefundsGet.ts
56436
59184
  function transactionsRefundsGet(client, transactionId, refundId, merchantAccountId, options) {
56437
- return new APIPromise($do63(client, transactionId, refundId, merchantAccountId, options));
59185
+ return new APIPromise($do73(client, transactionId, refundId, merchantAccountId, options));
56438
59186
  }
56439
- async function $do63(client, transactionId, refundId, merchantAccountId, options) {
59187
+ async function $do73(client, transactionId, refundId, merchantAccountId, options) {
56440
59188
  const input = {
56441
59189
  transactionId,
56442
59190
  refundId,
@@ -56545,12 +59293,12 @@ var init_transactionsRefundsGet = __esm(() => {
56545
59293
  });
56546
59294
 
56547
59295
  // src/mcp-server/tools/transactionsRefundsGet.ts
56548
- var args63, tool$transactionsRefundsGet;
59296
+ var args73, tool$transactionsRefundsGet;
56549
59297
  var init_transactionsRefundsGet2 = __esm(() => {
56550
59298
  init_lib();
56551
59299
  init_transactionsRefundsGet();
56552
59300
  init_tools();
56553
- args63 = {
59301
+ args73 = {
56554
59302
  transactionId: stringType(),
56555
59303
  refundId: stringType(),
56556
59304
  merchantAccountId: nullableType(stringType()).optional()
@@ -56560,9 +59308,9 @@ var init_transactionsRefundsGet2 = __esm(() => {
56560
59308
  description: `Get transaction refund
56561
59309
 
56562
59310
  Fetch refund for a transaction.`,
56563
- args: args63,
56564
- tool: async (client, args64, ctx) => {
56565
- const [result, apiCall] = await transactionsRefundsGet(client, args64.transactionId, args64.refundId, args64.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59311
+ args: args73,
59312
+ tool: async (client, args74, ctx) => {
59313
+ const [result, apiCall] = await transactionsRefundsGet(client, args74.transactionId, args74.refundId, args74.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56566
59314
  if (!result.ok) {
56567
59315
  return {
56568
59316
  content: [{ type: "text", text: result.error.message }],
@@ -56577,9 +59325,9 @@ Fetch refund for a transaction.`,
56577
59325
 
56578
59326
  // src/funcs/transactionsRefundsList.ts
56579
59327
  function transactionsRefundsList(client, transactionId, merchantAccountId, options) {
56580
- return new APIPromise($do64(client, transactionId, merchantAccountId, options));
59328
+ return new APIPromise($do74(client, transactionId, merchantAccountId, options));
56581
59329
  }
56582
- async function $do64(client, transactionId, merchantAccountId, options) {
59330
+ async function $do74(client, transactionId, merchantAccountId, options) {
56583
59331
  const input = {
56584
59332
  transactionId,
56585
59333
  merchantAccountId
@@ -56683,12 +59431,12 @@ var init_transactionsRefundsList = __esm(() => {
56683
59431
  });
56684
59432
 
56685
59433
  // src/mcp-server/tools/transactionsRefundsList.ts
56686
- var args64, tool$transactionsRefundsList;
59434
+ var args74, tool$transactionsRefundsList;
56687
59435
  var init_transactionsRefundsList2 = __esm(() => {
56688
59436
  init_lib();
56689
59437
  init_transactionsRefundsList();
56690
59438
  init_tools();
56691
- args64 = {
59439
+ args74 = {
56692
59440
  transactionId: stringType(),
56693
59441
  merchantAccountId: nullableType(stringType()).optional()
56694
59442
  };
@@ -56697,9 +59445,9 @@ var init_transactionsRefundsList2 = __esm(() => {
56697
59445
  description: `List transaction refunds
56698
59446
 
56699
59447
  List refunds for a transaction.`,
56700
- args: args64,
56701
- tool: async (client, args65, ctx) => {
56702
- const [result, apiCall] = await transactionsRefundsList(client, args65.transactionId, args65.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59448
+ args: args74,
59449
+ tool: async (client, args75, ctx) => {
59450
+ const [result, apiCall] = await transactionsRefundsList(client, args75.transactionId, args75.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56703
59451
  if (!result.ok) {
56704
59452
  return {
56705
59453
  content: [{ type: "text", text: result.error.message }],
@@ -56714,9 +59462,9 @@ List refunds for a transaction.`,
56714
59462
 
56715
59463
  // src/funcs/transactionsSummary.ts
56716
59464
  function transactionsSummary(client, transactionId, merchantAccountId, options) {
56717
- return new APIPromise($do65(client, transactionId, merchantAccountId, options));
59465
+ return new APIPromise($do75(client, transactionId, merchantAccountId, options));
56718
59466
  }
56719
- async function $do65(client, transactionId, merchantAccountId, options) {
59467
+ async function $do75(client, transactionId, merchantAccountId, options) {
56720
59468
  const input = {
56721
59469
  transactionId,
56722
59470
  merchantAccountId
@@ -56820,12 +59568,12 @@ var init_transactionsSummary = __esm(() => {
56820
59568
  });
56821
59569
 
56822
59570
  // src/mcp-server/tools/transactionsSummary.ts
56823
- var args65, tool$transactionsSummary;
59571
+ var args75, tool$transactionsSummary;
56824
59572
  var init_transactionsSummary2 = __esm(() => {
56825
59573
  init_lib();
56826
59574
  init_transactionsSummary();
56827
59575
  init_tools();
56828
- args65 = {
59576
+ args75 = {
56829
59577
  transactionId: stringType(),
56830
59578
  merchantAccountId: nullableType(stringType()).optional()
56831
59579
  };
@@ -56834,9 +59582,9 @@ var init_transactionsSummary2 = __esm(() => {
56834
59582
  description: `Get transaction summary
56835
59583
 
56836
59584
  Fetch a summary for a transaction.`,
56837
- args: args65,
56838
- tool: async (client, args66, ctx) => {
56839
- const [result, apiCall] = await transactionsSummary(client, args66.transactionId, args66.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59585
+ args: args75,
59586
+ tool: async (client, args76, ctx) => {
59587
+ const [result, apiCall] = await transactionsSummary(client, args76.transactionId, args76.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56840
59588
  if (!result.ok) {
56841
59589
  return {
56842
59590
  content: [{ type: "text", text: result.error.message }],
@@ -56851,9 +59599,9 @@ Fetch a summary for a transaction.`,
56851
59599
 
56852
59600
  // src/funcs/transactionsSync.ts
56853
59601
  function transactionsSync(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
56854
- return new APIPromise($do66(client, transactionId, timeoutInSeconds, merchantAccountId, options));
59602
+ return new APIPromise($do76(client, transactionId, timeoutInSeconds, merchantAccountId, options));
56855
59603
  }
56856
- async function $do66(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
59604
+ async function $do76(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
56857
59605
  const input = {
56858
59606
  transactionId,
56859
59607
  timeoutInSeconds,
@@ -56953,12 +59701,12 @@ var init_transactionsSync = __esm(() => {
56953
59701
  });
56954
59702
 
56955
59703
  // src/mcp-server/tools/transactionsSync.ts
56956
- var args66, tool$transactionsSync;
59704
+ var args76, tool$transactionsSync;
56957
59705
  var init_transactionsSync2 = __esm(() => {
56958
59706
  init_lib();
56959
59707
  init_transactionsSync();
56960
59708
  init_tools();
56961
- args66 = {
59709
+ args76 = {
56962
59710
  transactionId: stringType(),
56963
59711
  timeoutInSeconds: numberType().default(1),
56964
59712
  merchantAccountId: nullableType(stringType()).optional()
@@ -56968,9 +59716,9 @@ var init_transactionsSync2 = __esm(() => {
56968
59716
  description: `Sync transaction
56969
59717
 
56970
59718
  Fetch the latest status for a transaction.`,
56971
- args: args66,
56972
- tool: async (client, args67, ctx) => {
56973
- const [result, apiCall] = await transactionsSync(client, args67.transactionId, args67.timeoutInSeconds, args67.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59719
+ args: args76,
59720
+ tool: async (client, args77, ctx) => {
59721
+ const [result, apiCall] = await transactionsSync(client, args77.transactionId, args77.timeoutInSeconds, args77.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
56974
59722
  if (!result.ok) {
56975
59723
  return {
56976
59724
  content: [{ type: "text", text: result.error.message }],
@@ -56985,9 +59733,9 @@ Fetch the latest status for a transaction.`,
56985
59733
 
56986
59734
  // src/funcs/transactionsVoid.ts
56987
59735
  function transactionsVoid(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
56988
- return new APIPromise($do67(client, transactionId, timeoutInSeconds, merchantAccountId, options));
59736
+ return new APIPromise($do77(client, transactionId, timeoutInSeconds, merchantAccountId, options));
56989
59737
  }
56990
- async function $do67(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
59738
+ async function $do77(client, transactionId, timeoutInSeconds, merchantAccountId, options) {
56991
59739
  const input = {
56992
59740
  transactionId,
56993
59741
  timeoutInSeconds,
@@ -57087,12 +59835,12 @@ var init_transactionsVoid = __esm(() => {
57087
59835
  });
57088
59836
 
57089
59837
  // src/mcp-server/tools/transactionsVoid.ts
57090
- var args67, tool$transactionsVoid;
59838
+ var args77, tool$transactionsVoid;
57091
59839
  var init_transactionsVoid2 = __esm(() => {
57092
59840
  init_lib();
57093
59841
  init_transactionsVoid();
57094
59842
  init_tools();
57095
- args67 = {
59843
+ args77 = {
57096
59844
  transactionId: stringType(),
57097
59845
  timeoutInSeconds: numberType().default(1),
57098
59846
  merchantAccountId: nullableType(stringType()).optional()
@@ -57102,9 +59850,9 @@ var init_transactionsVoid2 = __esm(() => {
57102
59850
  description: `Void transaction
57103
59851
 
57104
59852
  Void a previously authorized transaction.`,
57105
- args: args67,
57106
- tool: async (client, args68, ctx) => {
57107
- const [result, apiCall] = await transactionsVoid(client, args68.transactionId, args68.timeoutInSeconds, args68.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
59853
+ args: args77,
59854
+ tool: async (client, args78, ctx) => {
59855
+ const [result, apiCall] = await transactionsVoid(client, args78.transactionId, args78.timeoutInSeconds, args78.merchantAccountId, { fetchOptions: { signal: ctx.signal } }).$inspect();
57108
59856
  if (!result.ok) {
57109
59857
  return {
57110
59858
  content: [{ type: "text", text: result.error.message }],
@@ -57121,7 +59869,7 @@ Void a previously authorized transaction.`,
57121
59869
  function createMCPServer(deps) {
57122
59870
  const server = new McpServer({
57123
59871
  name: "Gr4vy",
57124
- version: "0.18.16"
59872
+ version: "0.18.17"
57125
59873
  });
57126
59874
  const client = new Gr4vyCore({
57127
59875
  bearerAuth: deps.bearerAuth,
@@ -57165,6 +59913,16 @@ function createMCPServer(deps) {
57165
59913
  tool(tool$transactionsSync);
57166
59914
  tool(tool$refundsGet);
57167
59915
  tool(tool$paymentOptionsList);
59916
+ tool(tool$paymentServiceDefinitionsList);
59917
+ tool(tool$paymentServiceDefinitionsGet);
59918
+ tool(tool$paymentServiceDefinitionsSession);
59919
+ tool(tool$paymentServicesList);
59920
+ tool(tool$paymentServicesCreate);
59921
+ tool(tool$paymentServicesGet);
59922
+ tool(tool$paymentServicesUpdate);
59923
+ tool(tool$paymentServicesDelete);
59924
+ tool(tool$paymentServicesVerify);
59925
+ tool(tool$paymentServicesSession);
57168
59926
  tool(tool$auditLogsList);
57169
59927
  tool(tool$checkoutSessionsCreate);
57170
59928
  tool(tool$checkoutSessionsUpdate);
@@ -57263,6 +60021,16 @@ var init_server2 = __esm(() => {
57263
60021
  init_paymentMethodsPaymentServiceTokensDelete2();
57264
60022
  init_paymentMethodsPaymentServiceTokensList2();
57265
60023
  init_paymentOptionsList2();
60024
+ init_paymentServiceDefinitionsGet2();
60025
+ init_paymentServiceDefinitionsList2();
60026
+ init_paymentServiceDefinitionsSession2();
60027
+ init_paymentServicesCreate2();
60028
+ init_paymentServicesDelete2();
60029
+ init_paymentServicesGet2();
60030
+ init_paymentServicesList2();
60031
+ init_paymentServicesSession2();
60032
+ init_paymentServicesUpdate2();
60033
+ init_paymentServicesVerify2();
57266
60034
  init_payoutsCreate2();
57267
60035
  init_payoutsGet2();
57268
60036
  init_payoutsList2();
@@ -58487,7 +61255,7 @@ var routes = an({
58487
61255
  var app = He(routes, {
58488
61256
  name: "mcp",
58489
61257
  versionInfo: {
58490
- currentVersion: "0.18.16"
61258
+ currentVersion: "0.18.17"
58491
61259
  }
58492
61260
  });
58493
61261
  zt(app, process3.argv.slice(2), buildContext(process3));
@@ -58495,5 +61263,5 @@ export {
58495
61263
  app
58496
61264
  };
58497
61265
 
58498
- //# debugId=E7F60D996201A2C464756E2164756E21
61266
+ //# debugId=7D0E1A3225E6B1FC64756E2164756E21
58499
61267
  //# sourceMappingURL=mcp-server.js.map