@keystrokehq/razorpay 0.1.0 → 0.1.2

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 (319) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/cancel-invoice.cjs.map +1 -1
  4. package/dist/actions/cancel-invoice.d.cts +99 -3
  5. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  6. package/dist/actions/cancel-invoice.d.mts +99 -3
  7. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  8. package/dist/actions/cancel-invoice.mjs.map +1 -1
  9. package/dist/actions/cancel-payment-link.cjs +9 -9
  10. package/dist/actions/cancel-payment-link.cjs.map +1 -1
  11. package/dist/actions/cancel-payment-link.d.cts +33 -3
  12. package/dist/actions/cancel-payment-link.d.cts.map +1 -1
  13. package/dist/actions/cancel-payment-link.d.mts +33 -3
  14. package/dist/actions/cancel-payment-link.d.mts.map +1 -1
  15. package/dist/actions/cancel-payment-link.mjs +9 -9
  16. package/dist/actions/cancel-payment-link.mjs.map +1 -1
  17. package/dist/actions/create-an-order.cjs +9 -9
  18. package/dist/actions/create-an-order.cjs.map +1 -1
  19. package/dist/actions/create-an-order.d.cts +27 -3
  20. package/dist/actions/create-an-order.d.cts.map +1 -1
  21. package/dist/actions/create-an-order.d.mts +27 -3
  22. package/dist/actions/create-an-order.d.mts.map +1 -1
  23. package/dist/actions/create-an-order.mjs +9 -9
  24. package/dist/actions/create-an-order.mjs.map +1 -1
  25. package/dist/actions/create-contact.cjs +6 -6
  26. package/dist/actions/create-contact.cjs.map +1 -1
  27. package/dist/actions/create-contact.d.cts +33 -3
  28. package/dist/actions/create-contact.d.cts.map +1 -1
  29. package/dist/actions/create-contact.d.mts +33 -3
  30. package/dist/actions/create-contact.d.mts.map +1 -1
  31. package/dist/actions/create-contact.mjs +6 -6
  32. package/dist/actions/create-contact.mjs.map +1 -1
  33. package/dist/actions/create-customer.cjs +2 -2
  34. package/dist/actions/create-customer.cjs.map +1 -1
  35. package/dist/actions/create-customer.d.cts +24 -3
  36. package/dist/actions/create-customer.d.cts.map +1 -1
  37. package/dist/actions/create-customer.d.mts +24 -3
  38. package/dist/actions/create-customer.d.mts.map +1 -1
  39. package/dist/actions/create-customer.mjs +2 -2
  40. package/dist/actions/create-customer.mjs.map +1 -1
  41. package/dist/actions/create-invoice.cjs +6 -6
  42. package/dist/actions/create-invoice.cjs.map +1 -1
  43. package/dist/actions/create-invoice.d.cts +221 -3
  44. package/dist/actions/create-invoice.d.cts.map +1 -1
  45. package/dist/actions/create-invoice.d.mts +221 -3
  46. package/dist/actions/create-invoice.d.mts.map +1 -1
  47. package/dist/actions/create-invoice.mjs +6 -6
  48. package/dist/actions/create-invoice.mjs.map +1 -1
  49. package/dist/actions/create-item.cjs +6 -6
  50. package/dist/actions/create-item.cjs.map +1 -1
  51. package/dist/actions/create-item.d.cts +29 -3
  52. package/dist/actions/create-item.d.cts.map +1 -1
  53. package/dist/actions/create-item.d.mts +29 -3
  54. package/dist/actions/create-item.d.mts.map +1 -1
  55. package/dist/actions/create-item.mjs +6 -6
  56. package/dist/actions/create-item.mjs.map +1 -1
  57. package/dist/actions/create-payment-link.cjs +6 -6
  58. package/dist/actions/create-payment-link.cjs.map +1 -1
  59. package/dist/actions/create-payment-link.d.cts +76 -3
  60. package/dist/actions/create-payment-link.d.cts.map +1 -1
  61. package/dist/actions/create-payment-link.d.mts +76 -3
  62. package/dist/actions/create-payment-link.d.mts.map +1 -1
  63. package/dist/actions/create-payment-link.mjs +6 -6
  64. package/dist/actions/create-payment-link.mjs.map +1 -1
  65. package/dist/actions/delete-invoice.cjs.map +1 -1
  66. package/dist/actions/delete-invoice.d.cts +9 -3
  67. package/dist/actions/delete-invoice.d.cts.map +1 -1
  68. package/dist/actions/delete-invoice.d.mts +9 -3
  69. package/dist/actions/delete-invoice.d.mts.map +1 -1
  70. package/dist/actions/delete-invoice.mjs.map +1 -1
  71. package/dist/actions/delete-item.cjs.map +1 -1
  72. package/dist/actions/delete-item.d.cts +9 -3
  73. package/dist/actions/delete-item.d.cts.map +1 -1
  74. package/dist/actions/delete-item.d.mts +9 -3
  75. package/dist/actions/delete-item.d.mts.map +1 -1
  76. package/dist/actions/delete-item.mjs.map +1 -1
  77. package/dist/actions/fetch-a-payment-link.cjs.map +1 -1
  78. package/dist/actions/fetch-a-payment-link.d.cts +43 -3
  79. package/dist/actions/fetch-a-payment-link.d.cts.map +1 -1
  80. package/dist/actions/fetch-a-payment-link.d.mts +43 -3
  81. package/dist/actions/fetch-a-payment-link.d.mts.map +1 -1
  82. package/dist/actions/fetch-a-payment-link.mjs.map +1 -1
  83. package/dist/actions/fetch-all-customers.cjs +6 -6
  84. package/dist/actions/fetch-all-customers.cjs.map +1 -1
  85. package/dist/actions/fetch-all-customers.d.cts +22 -3
  86. package/dist/actions/fetch-all-customers.d.cts.map +1 -1
  87. package/dist/actions/fetch-all-customers.d.mts +22 -3
  88. package/dist/actions/fetch-all-customers.d.mts.map +1 -1
  89. package/dist/actions/fetch-all-customers.mjs +6 -6
  90. package/dist/actions/fetch-all-customers.mjs.map +1 -1
  91. package/dist/actions/fetch-all-invoices.cjs +7 -7
  92. package/dist/actions/fetch-all-invoices.cjs.map +1 -1
  93. package/dist/actions/fetch-all-invoices.d.cts +115 -3
  94. package/dist/actions/fetch-all-invoices.d.cts.map +1 -1
  95. package/dist/actions/fetch-all-invoices.d.mts +115 -3
  96. package/dist/actions/fetch-all-invoices.d.mts.map +1 -1
  97. package/dist/actions/fetch-all-invoices.mjs +7 -7
  98. package/dist/actions/fetch-all-invoices.mjs.map +1 -1
  99. package/dist/actions/fetch-all-payment-links.cjs +5 -5
  100. package/dist/actions/fetch-all-payment-links.cjs.map +1 -1
  101. package/dist/actions/fetch-all-payment-links.d.cts +45 -3
  102. package/dist/actions/fetch-all-payment-links.d.cts.map +1 -1
  103. package/dist/actions/fetch-all-payment-links.d.mts +45 -3
  104. package/dist/actions/fetch-all-payment-links.d.mts.map +1 -1
  105. package/dist/actions/fetch-all-payment-links.mjs +5 -5
  106. package/dist/actions/fetch-all-payment-links.mjs.map +1 -1
  107. package/dist/actions/fetch-all-payments.cjs +12 -12
  108. package/dist/actions/fetch-all-payments.cjs.map +1 -1
  109. package/dist/actions/fetch-all-payments.d.cts +50 -3
  110. package/dist/actions/fetch-all-payments.d.cts.map +1 -1
  111. package/dist/actions/fetch-all-payments.d.mts +50 -3
  112. package/dist/actions/fetch-all-payments.d.mts.map +1 -1
  113. package/dist/actions/fetch-all-payments.mjs +12 -12
  114. package/dist/actions/fetch-all-payments.mjs.map +1 -1
  115. package/dist/actions/fetch-all-refunds-for-a-payment.cjs.map +1 -1
  116. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts +35 -3
  117. package/dist/actions/fetch-all-refunds-for-a-payment.d.cts.map +1 -1
  118. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts +35 -3
  119. package/dist/actions/fetch-all-refunds-for-a-payment.d.mts.map +1 -1
  120. package/dist/actions/fetch-all-refunds-for-a-payment.mjs.map +1 -1
  121. package/dist/actions/fetch-invoice-by-id.cjs +6 -6
  122. package/dist/actions/fetch-invoice-by-id.cjs.map +1 -1
  123. package/dist/actions/fetch-invoice-by-id.d.cts +97 -3
  124. package/dist/actions/fetch-invoice-by-id.d.cts.map +1 -1
  125. package/dist/actions/fetch-invoice-by-id.d.mts +97 -3
  126. package/dist/actions/fetch-invoice-by-id.d.mts.map +1 -1
  127. package/dist/actions/fetch-invoice-by-id.mjs +6 -6
  128. package/dist/actions/fetch-invoice-by-id.mjs.map +1 -1
  129. package/dist/actions/fetch-orders-by-id.cjs +8 -8
  130. package/dist/actions/fetch-orders-by-id.cjs.map +1 -1
  131. package/dist/actions/fetch-orders-by-id.d.cts +20 -3
  132. package/dist/actions/fetch-orders-by-id.d.cts.map +1 -1
  133. package/dist/actions/fetch-orders-by-id.d.mts +20 -3
  134. package/dist/actions/fetch-orders-by-id.d.mts.map +1 -1
  135. package/dist/actions/fetch-orders-by-id.mjs +8 -8
  136. package/dist/actions/fetch-orders-by-id.mjs.map +1 -1
  137. package/dist/actions/fetch-orders.cjs +10 -10
  138. package/dist/actions/fetch-orders.cjs.map +1 -1
  139. package/dist/actions/fetch-orders.d.cts +34 -3
  140. package/dist/actions/fetch-orders.d.cts.map +1 -1
  141. package/dist/actions/fetch-orders.d.mts +34 -3
  142. package/dist/actions/fetch-orders.d.mts.map +1 -1
  143. package/dist/actions/fetch-orders.mjs +10 -10
  144. package/dist/actions/fetch-orders.mjs.map +1 -1
  145. package/dist/actions/fetch-payments-by-order.cjs +7 -7
  146. package/dist/actions/fetch-payments-by-order.cjs.map +1 -1
  147. package/dist/actions/fetch-payments-by-order.d.cts +43 -3
  148. package/dist/actions/fetch-payments-by-order.d.cts.map +1 -1
  149. package/dist/actions/fetch-payments-by-order.d.mts +43 -3
  150. package/dist/actions/fetch-payments-by-order.d.mts.map +1 -1
  151. package/dist/actions/fetch-payments-by-order.mjs +7 -7
  152. package/dist/actions/fetch-payments-by-order.mjs.map +1 -1
  153. package/dist/actions/fetch-refunds.cjs.map +1 -1
  154. package/dist/actions/fetch-refunds.d.cts +33 -3
  155. package/dist/actions/fetch-refunds.d.cts.map +1 -1
  156. package/dist/actions/fetch-refunds.d.mts +33 -3
  157. package/dist/actions/fetch-refunds.d.mts.map +1 -1
  158. package/dist/actions/fetch-refunds.mjs.map +1 -1
  159. package/dist/actions/get-contact.cjs +6 -6
  160. package/dist/actions/get-contact.cjs.map +1 -1
  161. package/dist/actions/get-contact.d.cts +19 -3
  162. package/dist/actions/get-contact.d.cts.map +1 -1
  163. package/dist/actions/get-contact.d.mts +19 -3
  164. package/dist/actions/get-contact.d.mts.map +1 -1
  165. package/dist/actions/get-contact.mjs +6 -6
  166. package/dist/actions/get-contact.mjs.map +1 -1
  167. package/dist/actions/get-customer.cjs +2 -2
  168. package/dist/actions/get-customer.cjs.map +1 -1
  169. package/dist/actions/get-customer.d.cts +16 -3
  170. package/dist/actions/get-customer.d.cts.map +1 -1
  171. package/dist/actions/get-customer.d.mts +16 -3
  172. package/dist/actions/get-customer.d.mts.map +1 -1
  173. package/dist/actions/get-customer.mjs +2 -2
  174. package/dist/actions/get-customer.mjs.map +1 -1
  175. package/dist/actions/get-fund-account.cjs +6 -6
  176. package/dist/actions/get-fund-account.cjs.map +1 -1
  177. package/dist/actions/get-fund-account.d.cts +32 -3
  178. package/dist/actions/get-fund-account.d.cts.map +1 -1
  179. package/dist/actions/get-fund-account.d.mts +32 -3
  180. package/dist/actions/get-fund-account.d.mts.map +1 -1
  181. package/dist/actions/get-fund-account.mjs +6 -6
  182. package/dist/actions/get-fund-account.mjs.map +1 -1
  183. package/dist/actions/get-item.cjs +9 -9
  184. package/dist/actions/get-item.cjs.map +1 -1
  185. package/dist/actions/get-item.d.cts +24 -3
  186. package/dist/actions/get-item.d.cts.map +1 -1
  187. package/dist/actions/get-item.d.mts +24 -3
  188. package/dist/actions/get-item.d.mts.map +1 -1
  189. package/dist/actions/get-item.mjs +9 -9
  190. package/dist/actions/get-item.mjs.map +1 -1
  191. package/dist/actions/get-settlement-recon.cjs.map +1 -1
  192. package/dist/actions/get-settlement-recon.d.cts +28 -3
  193. package/dist/actions/get-settlement-recon.d.cts.map +1 -1
  194. package/dist/actions/get-settlement-recon.d.mts +28 -3
  195. package/dist/actions/get-settlement-recon.d.mts.map +1 -1
  196. package/dist/actions/get-settlement-recon.mjs.map +1 -1
  197. package/dist/actions/get-transfer-reversals.cjs.map +1 -1
  198. package/dist/actions/get-transfer-reversals.d.cts +32 -3
  199. package/dist/actions/get-transfer-reversals.d.cts.map +1 -1
  200. package/dist/actions/get-transfer-reversals.d.mts +32 -3
  201. package/dist/actions/get-transfer-reversals.d.mts.map +1 -1
  202. package/dist/actions/get-transfer-reversals.mjs.map +1 -1
  203. package/dist/actions/issue-an-invoice.cjs +6 -6
  204. package/dist/actions/issue-an-invoice.cjs.map +1 -1
  205. package/dist/actions/issue-an-invoice.d.cts +97 -3
  206. package/dist/actions/issue-an-invoice.d.cts.map +1 -1
  207. package/dist/actions/issue-an-invoice.d.mts +97 -3
  208. package/dist/actions/issue-an-invoice.d.mts.map +1 -1
  209. package/dist/actions/issue-an-invoice.mjs +6 -6
  210. package/dist/actions/issue-an-invoice.mjs.map +1 -1
  211. package/dist/actions/list-customer-tokens.cjs +6 -6
  212. package/dist/actions/list-customer-tokens.cjs.map +1 -1
  213. package/dist/actions/list-customer-tokens.d.cts +40 -3
  214. package/dist/actions/list-customer-tokens.d.cts.map +1 -1
  215. package/dist/actions/list-customer-tokens.d.mts +40 -3
  216. package/dist/actions/list-customer-tokens.d.mts.map +1 -1
  217. package/dist/actions/list-customer-tokens.mjs +6 -6
  218. package/dist/actions/list-customer-tokens.mjs.map +1 -1
  219. package/dist/actions/list-disputes.cjs.map +1 -1
  220. package/dist/actions/list-disputes.d.cts +46 -3
  221. package/dist/actions/list-disputes.d.cts.map +1 -1
  222. package/dist/actions/list-disputes.d.mts +46 -3
  223. package/dist/actions/list-disputes.d.mts.map +1 -1
  224. package/dist/actions/list-disputes.mjs.map +1 -1
  225. package/dist/actions/list-fund-accounts.cjs.map +1 -1
  226. package/dist/actions/list-fund-accounts.d.cts +40 -3
  227. package/dist/actions/list-fund-accounts.d.cts.map +1 -1
  228. package/dist/actions/list-fund-accounts.d.mts +40 -3
  229. package/dist/actions/list-fund-accounts.d.mts.map +1 -1
  230. package/dist/actions/list-fund-accounts.mjs.map +1 -1
  231. package/dist/actions/list-fund-validations.cjs.map +1 -1
  232. package/dist/actions/list-fund-validations.d.cts +45 -3
  233. package/dist/actions/list-fund-validations.d.cts.map +1 -1
  234. package/dist/actions/list-fund-validations.d.mts +45 -3
  235. package/dist/actions/list-fund-validations.d.mts.map +1 -1
  236. package/dist/actions/list-fund-validations.mjs.map +1 -1
  237. package/dist/actions/list-items.cjs.map +1 -1
  238. package/dist/actions/list-items.d.cts +36 -3
  239. package/dist/actions/list-items.d.cts.map +1 -1
  240. package/dist/actions/list-items.d.mts +36 -3
  241. package/dist/actions/list-items.d.mts.map +1 -1
  242. package/dist/actions/list-items.mjs.map +1 -1
  243. package/dist/actions/list-payment-downtimes.cjs.map +1 -1
  244. package/dist/actions/list-payment-downtimes.d.cts +3 -3
  245. package/dist/actions/list-payment-downtimes.d.cts.map +1 -1
  246. package/dist/actions/list-payment-downtimes.d.mts +3 -3
  247. package/dist/actions/list-payment-downtimes.d.mts.map +1 -1
  248. package/dist/actions/list-payment-downtimes.mjs.map +1 -1
  249. package/dist/actions/notify-payment-link.cjs +1 -1
  250. package/dist/actions/notify-payment-link.cjs.map +1 -1
  251. package/dist/actions/notify-payment-link.d.cts +14 -3
  252. package/dist/actions/notify-payment-link.d.cts.map +1 -1
  253. package/dist/actions/notify-payment-link.d.mts +14 -3
  254. package/dist/actions/notify-payment-link.d.mts.map +1 -1
  255. package/dist/actions/notify-payment-link.mjs +1 -1
  256. package/dist/actions/notify-payment-link.mjs.map +1 -1
  257. package/dist/actions/send-or-resend-notification.cjs +1 -1
  258. package/dist/actions/send-or-resend-notification.cjs.map +1 -1
  259. package/dist/actions/send-or-resend-notification.d.cts +14 -3
  260. package/dist/actions/send-or-resend-notification.d.cts.map +1 -1
  261. package/dist/actions/send-or-resend-notification.d.mts +14 -3
  262. package/dist/actions/send-or-resend-notification.d.mts.map +1 -1
  263. package/dist/actions/send-or-resend-notification.mjs +1 -1
  264. package/dist/actions/send-or-resend-notification.mjs.map +1 -1
  265. package/dist/actions/update-contact.cjs +6 -6
  266. package/dist/actions/update-contact.cjs.map +1 -1
  267. package/dist/actions/update-contact.d.cts +35 -3
  268. package/dist/actions/update-contact.d.cts.map +1 -1
  269. package/dist/actions/update-contact.d.mts +35 -3
  270. package/dist/actions/update-contact.d.mts.map +1 -1
  271. package/dist/actions/update-contact.mjs +6 -6
  272. package/dist/actions/update-contact.mjs.map +1 -1
  273. package/dist/actions/update-customer.cjs +6 -6
  274. package/dist/actions/update-customer.cjs.map +1 -1
  275. package/dist/actions/update-customer.d.cts +22 -3
  276. package/dist/actions/update-customer.d.cts.map +1 -1
  277. package/dist/actions/update-customer.d.mts +22 -3
  278. package/dist/actions/update-customer.d.mts.map +1 -1
  279. package/dist/actions/update-customer.mjs +6 -6
  280. package/dist/actions/update-customer.mjs.map +1 -1
  281. package/dist/actions/update-invoice.cjs +5 -5
  282. package/dist/actions/update-invoice.cjs.map +1 -1
  283. package/dist/actions/update-invoice.d.cts +227 -3
  284. package/dist/actions/update-invoice.d.cts.map +1 -1
  285. package/dist/actions/update-invoice.d.mts +227 -3
  286. package/dist/actions/update-invoice.d.mts.map +1 -1
  287. package/dist/actions/update-invoice.mjs +5 -5
  288. package/dist/actions/update-invoice.mjs.map +1 -1
  289. package/dist/actions/update-item.cjs +9 -9
  290. package/dist/actions/update-item.cjs.map +1 -1
  291. package/dist/actions/update-item.d.cts +30 -3
  292. package/dist/actions/update-item.d.cts.map +1 -1
  293. package/dist/actions/update-item.d.mts +30 -3
  294. package/dist/actions/update-item.d.mts.map +1 -1
  295. package/dist/actions/update-item.mjs +9 -9
  296. package/dist/actions/update-item.mjs.map +1 -1
  297. package/dist/actions/update-order.cjs +9 -9
  298. package/dist/actions/update-order.cjs.map +1 -1
  299. package/dist/actions/update-order.d.cts +22 -3
  300. package/dist/actions/update-order.d.cts.map +1 -1
  301. package/dist/actions/update-order.d.mts +22 -3
  302. package/dist/actions/update-order.d.mts.map +1 -1
  303. package/dist/actions/update-order.mjs +9 -9
  304. package/dist/actions/update-order.mjs.map +1 -1
  305. package/dist/actions/update-payment-link.cjs +5 -5
  306. package/dist/actions/update-payment-link.cjs.map +1 -1
  307. package/dist/actions/update-payment-link.d.cts +52 -3
  308. package/dist/actions/update-payment-link.d.cts.map +1 -1
  309. package/dist/actions/update-payment-link.d.mts +52 -3
  310. package/dist/actions/update-payment-link.d.mts.map +1 -1
  311. package/dist/actions/update-payment-link.mjs +5 -5
  312. package/dist/actions/update-payment-link.mjs.map +1 -1
  313. package/dist/catalog.cjs +13 -1
  314. package/dist/catalog.cjs.map +1 -1
  315. package/dist/catalog.d.cts +12 -0
  316. package/dist/catalog.d.mts +12 -0
  317. package/dist/catalog.mjs +13 -1
  318. package/dist/catalog.mjs.map +1 -1
  319. package/package.json +2 -2
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-all-payment-links.d.ts
4
- declare const RazorpayFetchAllPaymentLinksInput: z.ZodTypeAny;
5
- declare const RazorpayFetchAllPaymentLinksOutput: z.ZodTypeAny;
6
- declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchAllPaymentLinksInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodNumber>;
6
+ from: z.ZodOptional<z.ZodNumber>;
7
+ skip: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ payment_id: z.ZodOptional<z.ZodString>;
10
+ reference_id: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
13
+ payment_links: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ amount: z.ZodNullable<z.ZodNumber>;
16
+ notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
+ }, z.core.$strip>>>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ currency: z.ZodNullable<z.ZodString>;
23
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>>>;
28
+ expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ created_at: z.ZodNullable<z.ZodNumber>;
31
+ expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
+ reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ to?: number | undefined;
43
+ from?: number | undefined;
44
+ skip?: number | undefined;
45
+ count?: number | undefined;
46
+ payment_id?: string | undefined;
47
+ reference_id?: string | undefined;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { razorpayFetchAllPaymentLinks };
9
51
  //# sourceMappingURL=fetch-all-payment-links.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payment-links.d.cts","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOwC;AAAA,cA8B7E,kCAAA,EAAoC,CAAA,CAAE,UAEU;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-all-payment-links.d.cts","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;cAqCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,51 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-all-payment-links.d.ts
4
- declare const RazorpayFetchAllPaymentLinksInput: z.ZodTypeAny;
5
- declare const RazorpayFetchAllPaymentLinksOutput: z.ZodTypeAny;
6
- declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchAllPaymentLinksInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodNumber>;
6
+ from: z.ZodOptional<z.ZodNumber>;
7
+ skip: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ payment_id: z.ZodOptional<z.ZodString>;
10
+ reference_id: z.ZodOptional<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const RazorpayFetchAllPaymentLinksOutput: z.ZodObject<{
13
+ payment_links: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ amount: z.ZodNullable<z.ZodNumber>;
16
+ notify: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ sms: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
19
+ }, z.core.$strip>>>;
20
+ status: z.ZodNullable<z.ZodString>;
21
+ user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ currency: z.ZodNullable<z.ZodString>;
23
+ customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ }, z.core.$strip>>>;
28
+ expire_by: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ short_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ created_at: z.ZodNullable<z.ZodNumber>;
31
+ expired_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
+ amount_paid: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
33
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ cancelled_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ accept_partial: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
+ reminder_enable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ first_min_partial_amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ }, z.core.$strip>>;
40
+ }, z.core.$strip>;
41
+ declare const razorpayFetchAllPaymentLinks: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ to?: number | undefined;
43
+ from?: number | undefined;
44
+ skip?: number | undefined;
45
+ count?: number | undefined;
46
+ payment_id?: string | undefined;
47
+ reference_id?: string | undefined;
48
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
49
  //#endregion
8
50
  export { razorpayFetchAllPaymentLinks };
9
51
  //# sourceMappingURL=fetch-all-payment-links.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payment-links.d.mts","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOwC;AAAA,cA8B7E,kCAAA,EAAoC,CAAA,CAAE,UAEU;AAAA,cAEhD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-all-payment-links.d.mts","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;cAqCjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -19,16 +19,16 @@ const RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({
19
19
  contact: z.string().describe("Contact number of the customer.").nullable().optional()
20
20
  }).describe("Customer details associated with the payment link.");
21
21
  const RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({
22
- id: z.string().describe("Unique identifier for the payment link."),
23
- amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR)."),
22
+ id: z.string().describe("Unique identifier for the payment link.").nullable(),
23
+ amount: z.number().int().describe("Amount to be paid in the smallest currency unit (e.g., paise for INR).").nullable(),
24
24
  notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),
25
- status: z.string().describe("Current status of the payment link (e.g., created, paid, cancelled, expired)."),
25
+ status: z.string().describe("Current status of the payment link (e.g., created, paid, cancelled, expired).").nullable(),
26
26
  user_id: z.string().describe("Unique identifier of the user who created the payment link.").nullable().optional(),
27
- currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD)."),
27
+ currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD).").nullable(),
28
28
  customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),
29
29
  expire_by: z.number().int().describe("Unix timestamp when the payment link will expire.").nullable().optional(),
30
30
  short_url: z.string().describe("Short shareable URL for the payment link.").nullable().optional(),
31
- created_at: z.number().int().describe("Unix timestamp when the payment link was created."),
31
+ created_at: z.number().int().describe("Unix timestamp when the payment link was created.").nullable(),
32
32
  expired_at: z.number().int().describe("Unix timestamp when the payment link expired.").nullable().optional(),
33
33
  amount_paid: z.number().int().describe("Amount paid so far if partial payments are enabled.").nullable().optional(),
34
34
  description: z.string().describe("Description of the payment link.").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payment-links.mjs","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema: z.ZodTypeAny = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\"),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\"),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\"),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\"),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\"),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput: z.ZodTypeAny = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input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AC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,2DAA2D,EAC7I,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-all-payment-links.mjs","names":[],"sources":["../../src/actions/fetch-all-payment-links.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentLinksInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) before which the payment links were created. Use for date range filtering.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) after which the payment links were created. Use for date range filtering.\").optional(),\n skip: z.number().int().describe(\"Number of payment links to skip from the beginning of the result set. Use for pagination. Default is 0.\").optional(),\n count: z.number().int().describe(\"Number of payment links to fetch per request. Default is 10 if not specified. Maximum is typically 100.\").optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment associated with the Payment Link. Use to filter payment links by payment ID.\").optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link. Use to filter payment links by your custom reference.\").optional(),\n}).describe(\"Request model for fetching all payment links with pagination and filtering.\");\nconst RazorpayFetchAllPaymentLinks_NotifySchema = z.object({\n sms: z.boolean().describe(\"Whether SMS notifications are enabled.\").nullable().optional(),\n email: z.boolean().describe(\"Whether email notifications are enabled.\").nullable().optional(),\n}).describe(\"Notification settings for the payment link.\");\nconst RazorpayFetchAllPaymentLinks_CustomerSchema = z.object({\n name: z.string().describe(\"Name of the customer.\").nullable().optional(),\n email: z.string().describe(\"Email address of the customer.\").nullable().optional(),\n contact: z.string().describe(\"Contact number of the customer.\").nullable().optional(),\n}).describe(\"Customer details associated with the payment link.\");\nconst RazorpayFetchAllPaymentLinks_PaymentLinkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment link.\").nullable(),\n amount: z.number().int().describe(\"Amount to be paid in the smallest currency unit (e.g., paise for INR).\").nullable(),\n notify: RazorpayFetchAllPaymentLinks_NotifySchema.nullable().optional(),\n status: z.string().describe(\"Current status of the payment link (e.g., created, paid, cancelled, expired).\").nullable(),\n user_id: z.string().describe(\"Unique identifier of the user who created the payment link.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n customer: RazorpayFetchAllPaymentLinks_CustomerSchema.nullable().optional(),\n expire_by: z.number().int().describe(\"Unix timestamp when the payment link will expire.\").nullable().optional(),\n short_url: z.string().describe(\"Short shareable URL for the payment link.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the payment link was created.\").nullable(),\n expired_at: z.number().int().describe(\"Unix timestamp when the payment link expired.\").nullable().optional(),\n amount_paid: z.number().int().describe(\"Amount paid so far if partial payments are enabled.\").nullable().optional(),\n description: z.string().describe(\"Description of the payment link.\").nullable().optional(),\n cancelled_at: z.number().int().describe(\"Unix timestamp when the payment link was cancelled.\").nullable().optional(),\n reference_id: z.string().describe(\"The unique reference number entered while creating the Payment Link.\").nullable().optional(),\n accept_partial: z.boolean().describe(\"Whether partial payments are accepted.\").nullable().optional(),\n reminder_enable: z.boolean().describe(\"Whether payment reminders are enabled for this link.\").nullable().optional(),\n first_min_partial_amount: z.number().int().describe(\"Minimum amount for the first partial payment.\").nullable().optional(),\n}).describe(\"Represents a single payment link object.\");\nexport const RazorpayFetchAllPaymentLinksOutput = z.object({\n payment_links: z.array(RazorpayFetchAllPaymentLinks_PaymentLinkSchema).describe(\"List of payment link objects matching the query criteria.\"),\n}).describe(\"Response containing the list of payment links.\");\n\nexport const razorpayFetchAllPaymentLinks = action(\"RAZORPAY_FETCH_ALL_PAYMENT_LINKS\", {\n slug: \"razorpay-fetch-all-payment-links\",\n name: \"Fetch All Payment Links\",\n description: \"Tool to fetch all payment links with pagination and filtering support. Use when you need to retrieve a list of payment links, optionally filtered by payment ID, reference ID, or date range.\",\n input: RazorpayFetchAllPaymentLinksInput,\n output: RazorpayFetchAllPaymentLinksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACjJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACrJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAC1J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC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AC,SAAS;CAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATgD,EAAE,OAAO,EACzD,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,2DAA2D,EAC7I,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
@@ -9,24 +9,24 @@ const RazorpayFetchAllPaymentsInput = zod.z.object({
9
9
  }).describe("Request model for fetching all payments with pagination and time filtering.");
10
10
  const RazorpayFetchAllPayments_AcquirerDataSchema = zod.z.object({ bank_transaction_id: zod.z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).describe("Acquirer data containing bank/processor transaction details.");
11
11
  const RazorpayFetchAllPayments_PaymentItemSchema = zod.z.object({
12
- id: zod.z.string().describe("Unique identifier for the payment."),
12
+ id: zod.z.string().describe("Unique identifier for the payment.").nullable(),
13
13
  fee: zod.z.number().int().describe("Transaction fee charged in smallest currency unit.").nullable().optional(),
14
14
  tax: zod.z.number().int().describe("Tax component of the transaction fee in smallest currency unit.").nullable().optional(),
15
15
  vpa: zod.z.string().describe("Virtual Payment Address for UPI payments.").nullable().optional(),
16
16
  bank: zod.z.string().describe("Bank code for netbanking payments.").nullable().optional(),
17
17
  email: zod.z.string().describe("Customer email address.").nullable().optional(),
18
18
  notes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata associated with the payment.").nullable().optional(),
19
- amount: zod.z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD)."),
20
- entity: zod.z.string().describe("String representing the object type. Always 'payment'."),
21
- method: zod.z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd."),
22
- status: zod.z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending."),
19
+ amount: zod.z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD).").nullable(),
20
+ entity: zod.z.string().describe("String representing the object type. Always 'payment'.").nullable(),
21
+ method: zod.z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.").nullable(),
22
+ status: zod.z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending.").nullable(),
23
23
  wallet: zod.z.string().describe("Wallet provider name for wallet payments.").nullable().optional(),
24
24
  card_id: zod.z.string().describe("Card identifier for card payments.").nullable().optional(),
25
25
  contact: zod.z.string().describe("Customer phone number.").nullable().optional(),
26
- captured: zod.z.boolean().describe("Indicates if the payment has been captured."),
27
- currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR, USD)."),
26
+ captured: zod.z.boolean().describe("Indicates if the payment has been captured.").nullable(),
27
+ currency: zod.z.string().describe("Three-letter ISO currency code (e.g., INR, USD).").nullable(),
28
28
  order_id: zod.z.string().describe("Identifier of the order associated with this payment.").nullable().optional(),
29
- created_at: zod.z.number().int().describe("Unix timestamp (in seconds) of payment creation."),
29
+ created_at: zod.z.number().int().describe("Unix timestamp (in seconds) of payment creation.").nullable(),
30
30
  error_code: zod.z.string().describe("Error code for failed payments.").nullable().optional(),
31
31
  error_step: zod.z.string().describe("Step at which the error occurred.").nullable().optional(),
32
32
  invoice_id: zod.z.string().describe("Identifier of the invoice linked to this payment.").nullable().optional(),
@@ -35,15 +35,15 @@ const RazorpayFetchAllPayments_PaymentItemSchema = zod.z.object({
35
35
  error_reason: zod.z.string().describe("Reason for the payment failure.").nullable().optional(),
36
36
  error_source: zod.z.string().describe("Source of the error (customer, business, or bank).").nullable().optional(),
37
37
  acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),
38
- international: zod.z.boolean().describe("Indicates if this is an international (cross-border) payment."),
38
+ international: zod.z.boolean().describe("Indicates if this is an international (cross-border) payment.").nullable(),
39
39
  refund_status: zod.z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
40
- amount_refunded: zod.z.number().int().describe("Amount refunded in smallest currency unit."),
40
+ amount_refunded: zod.z.number().int().describe("Amount refunded in smallest currency unit.").nullable(),
41
41
  error_description: zod.z.string().describe("Human-readable error message for failed payments.").nullable().optional()
42
42
  }).describe("Detailed model representing a single payment object from Razorpay.");
43
43
  const RazorpayFetchAllPaymentsOutput = zod.z.object({
44
- count: zod.z.number().int().describe("Number of payment items returned in this response."),
44
+ count: zod.z.number().int().describe("Number of payment items returned in this response.").nullable(),
45
45
  items: zod.z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe("Array of payment objects, with the most recent appearing first."),
46
- entity: zod.z.string().describe("String representing the collection type. Always 'collection'.")
46
+ entity: zod.z.string().describe("String representing the collection type. Always 'collection'.").nullable()
47
47
  }).describe("Response model containing a collection of payment objects with pagination metadata.");
48
48
  const razorpayFetchAllPayments = require_action.action("RAZORPAY_FETCH_ALL_PAYMENTS", {
49
49
  slug: "razorpay-fetch-all-payments",
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payments.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema: z.ZodTypeAny = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\"),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\"),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\"),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\"),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\"),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\"),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\"),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\"),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\"),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\"),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\"),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\"),\n}).describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA4DA,IAAAA,EAAE,OAAO,EACzE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA,IAAAA,EAAE,OAAO,CAAC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D;AAC7F,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-all-payments.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO,EAC3D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,KAAKA,IAAAA,EAAE,OAAO,C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ClG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,OAAOA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iEAAiE;CACrI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,qFAAqF;AAEjG,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-all-payments.d.ts
4
- declare const RazorpayFetchAllPaymentsInput: z.ZodTypeAny;
5
- declare const RazorpayFetchAllPaymentsOutput: z.ZodTypeAny;
6
- declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchAllPaymentsInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodNumber>;
6
+ from: z.ZodOptional<z.ZodNumber>;
7
+ skip: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
11
+ count: z.ZodNullable<z.ZodNumber>;
12
+ items: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ vpa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ bank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ amount: z.ZodNullable<z.ZodNumber>;
21
+ entity: z.ZodNullable<z.ZodString>;
22
+ method: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodNullable<z.ZodString>;
24
+ wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ captured: z.ZodNullable<z.ZodBoolean>;
28
+ currency: z.ZodNullable<z.ZodString>;
29
+ order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ created_at: z.ZodNullable<z.ZodNumber>;
31
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ error_step: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ error_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$strip>>>;
41
+ international: z.ZodNullable<z.ZodBoolean>;
42
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ amount_refunded: z.ZodNullable<z.ZodNumber>;
44
+ error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ }, z.core.$strip>>;
46
+ entity: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$strip>;
48
+ declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ to?: number | undefined;
50
+ from?: number | undefined;
51
+ skip?: number | undefined;
52
+ count?: number | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { razorpayFetchAllPayments };
9
56
  //# sourceMappingURL=fetch-all-payments.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payments.d.cts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAK4C;AAAA,cAoC7E,8BAAA,EAAgC,CAAA,CAAE,UAImD;AAAA,cAErF,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-all-payments.d.cts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAyC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,56 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/fetch-all-payments.d.ts
4
- declare const RazorpayFetchAllPaymentsInput: z.ZodTypeAny;
5
- declare const RazorpayFetchAllPaymentsOutput: z.ZodTypeAny;
6
- declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RazorpayFetchAllPaymentsInput: z.ZodObject<{
5
+ to: z.ZodOptional<z.ZodNumber>;
6
+ from: z.ZodOptional<z.ZodNumber>;
7
+ skip: z.ZodOptional<z.ZodNumber>;
8
+ count: z.ZodOptional<z.ZodNumber>;
9
+ }, z.core.$strip>;
10
+ declare const RazorpayFetchAllPaymentsOutput: z.ZodObject<{
11
+ count: z.ZodNullable<z.ZodNumber>;
12
+ items: z.ZodArray<z.ZodObject<{
13
+ id: z.ZodNullable<z.ZodString>;
14
+ fee: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
+ vpa: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ bank: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ notes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
+ amount: z.ZodNullable<z.ZodNumber>;
21
+ entity: z.ZodNullable<z.ZodString>;
22
+ method: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodNullable<z.ZodString>;
24
+ wallet: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ card_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ contact: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ captured: z.ZodNullable<z.ZodBoolean>;
28
+ currency: z.ZodNullable<z.ZodString>;
29
+ order_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ created_at: z.ZodNullable<z.ZodNumber>;
31
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ error_step: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ error_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ acquirer_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
+ bank_transaction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$strip>>>;
41
+ international: z.ZodNullable<z.ZodBoolean>;
42
+ refund_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ amount_refunded: z.ZodNullable<z.ZodNumber>;
44
+ error_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ }, z.core.$strip>>;
46
+ entity: z.ZodNullable<z.ZodString>;
47
+ }, z.core.$strip>;
48
+ declare const razorpayFetchAllPayments: import("@keystrokehq/action").WorkflowActionDefinition<{
49
+ to?: number | undefined;
50
+ from?: number | undefined;
51
+ skip?: number | undefined;
52
+ count?: number | undefined;
53
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
54
  //#endregion
8
55
  export { razorpayFetchAllPayments };
9
56
  //# sourceMappingURL=fetch-all-payments.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAK4C;AAAA,cAoC7E,8BAAA,EAAgC,CAAA,CAAE,UAImD;AAAA,cAErF,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"fetch-all-payments.d.mts","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;cAyC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -9,24 +9,24 @@ const RazorpayFetchAllPaymentsInput = z.object({
9
9
  }).describe("Request model for fetching all payments with pagination and time filtering.");
10
10
  const RazorpayFetchAllPayments_AcquirerDataSchema = z.object({ bank_transaction_id: z.string().describe("Bank transaction identifier from the payment processor.").nullable().optional() }).describe("Acquirer data containing bank/processor transaction details.");
11
11
  const RazorpayFetchAllPayments_PaymentItemSchema = z.object({
12
- id: z.string().describe("Unique identifier for the payment."),
12
+ id: z.string().describe("Unique identifier for the payment.").nullable(),
13
13
  fee: z.number().int().describe("Transaction fee charged in smallest currency unit.").nullable().optional(),
14
14
  tax: z.number().int().describe("Tax component of the transaction fee in smallest currency unit.").nullable().optional(),
15
15
  vpa: z.string().describe("Virtual Payment Address for UPI payments.").nullable().optional(),
16
16
  bank: z.string().describe("Bank code for netbanking payments.").nullable().optional(),
17
17
  email: z.string().describe("Customer email address.").nullable().optional(),
18
18
  notes: z.record(z.string(), z.unknown()).describe("Custom key-value metadata associated with the payment.").nullable().optional(),
19
- amount: z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD)."),
20
- entity: z.string().describe("String representing the object type. Always 'payment'."),
21
- method: z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd."),
22
- status: z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending."),
19
+ amount: z.number().int().describe("Payment amount in smallest currency unit (paise for INR, cents for USD).").nullable(),
20
+ entity: z.string().describe("String representing the object type. Always 'payment'.").nullable(),
21
+ method: z.string().describe("Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.").nullable(),
22
+ status: z.string().describe("Payment status. Values: created, authorized, captured, refunded, failed, pending.").nullable(),
23
23
  wallet: z.string().describe("Wallet provider name for wallet payments.").nullable().optional(),
24
24
  card_id: z.string().describe("Card identifier for card payments.").nullable().optional(),
25
25
  contact: z.string().describe("Customer phone number.").nullable().optional(),
26
- captured: z.boolean().describe("Indicates if the payment has been captured."),
27
- currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD)."),
26
+ captured: z.boolean().describe("Indicates if the payment has been captured.").nullable(),
27
+ currency: z.string().describe("Three-letter ISO currency code (e.g., INR, USD).").nullable(),
28
28
  order_id: z.string().describe("Identifier of the order associated with this payment.").nullable().optional(),
29
- created_at: z.number().int().describe("Unix timestamp (in seconds) of payment creation."),
29
+ created_at: z.number().int().describe("Unix timestamp (in seconds) of payment creation.").nullable(),
30
30
  error_code: z.string().describe("Error code for failed payments.").nullable().optional(),
31
31
  error_step: z.string().describe("Step at which the error occurred.").nullable().optional(),
32
32
  invoice_id: z.string().describe("Identifier of the invoice linked to this payment.").nullable().optional(),
@@ -35,9 +35,9 @@ const RazorpayFetchAllPayments_PaymentItemSchema = z.object({
35
35
  error_reason: z.string().describe("Reason for the payment failure.").nullable().optional(),
36
36
  error_source: z.string().describe("Source of the error (customer, business, or bank).").nullable().optional(),
37
37
  acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),
38
- international: z.boolean().describe("Indicates if this is an international (cross-border) payment."),
38
+ international: z.boolean().describe("Indicates if this is an international (cross-border) payment.").nullable(),
39
39
  refund_status: z.string().describe("Refund status. Values: null, partial, full.").nullable().optional(),
40
- amount_refunded: z.number().int().describe("Amount refunded in smallest currency unit."),
40
+ amount_refunded: z.number().int().describe("Amount refunded in smallest currency unit.").nullable(),
41
41
  error_description: z.string().describe("Human-readable error message for failed payments.").nullable().optional()
42
42
  }).describe("Detailed model representing a single payment object from Razorpay.");
43
43
  const razorpayFetchAllPayments = action("RAZORPAY_FETCH_ALL_PAYMENTS", {
@@ -46,9 +46,9 @@ const razorpayFetchAllPayments = action("RAZORPAY_FETCH_ALL_PAYMENTS", {
46
46
  description: "Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).",
47
47
  input: RazorpayFetchAllPaymentsInput,
48
48
  output: z.object({
49
- count: z.number().int().describe("Number of payment items returned in this response."),
49
+ count: z.number().int().describe("Number of payment items returned in this response.").nullable(),
50
50
  items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe("Array of payment objects, with the most recent appearing first."),
51
- entity: z.string().describe("String representing the collection type. Always 'collection'.")
51
+ entity: z.string().describe("String representing the collection type. Always 'collection'.").nullable()
52
52
  }).describe("Response model containing a collection of payment objects with pagination metadata.")
53
53
  });
54
54
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput: z.ZodTypeAny = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema: z.ZodTypeAny = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\"),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\"),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\"),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\"),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\"),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\"),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\"),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\"),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\"),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\"),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\"),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\"),\n}).describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA4D,EAAE,OAAO,EACzE,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAA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+DAA+D;CAC7F,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-all-payments.mjs","names":[],"sources":["../../src/actions/fetch-all-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllPaymentsInput = z.object({\n to: z.number().int().describe(\"Unix timestamp (in seconds) until which to fetch payments. Filters payments created on or before this timestamp.\").optional(),\n from: z.number().int().describe(\"Unix timestamp (in seconds) from which to fetch payments. Filters payments created on or after this timestamp.\").optional(),\n skip: z.number().int().describe(\"Number of payments to skip for pagination. Use this to paginate through results.\").optional(),\n count: z.number().int().describe(\"Number of payments to fetch. Default is 10, maximum is 100.\").optional(),\n}).describe(\"Request model for fetching all payments with pagination and time filtering.\");\nconst RazorpayFetchAllPayments_AcquirerDataSchema = z.object({\n bank_transaction_id: z.string().describe(\"Bank transaction identifier from the payment processor.\").nullable().optional(),\n}).describe(\"Acquirer data containing bank/processor transaction details.\");\nconst RazorpayFetchAllPayments_PaymentItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the payment.\").nullable(),\n fee: z.number().int().describe(\"Transaction fee charged in smallest currency unit.\").nullable().optional(),\n tax: z.number().int().describe(\"Tax component of the transaction fee in smallest currency unit.\").nullable().optional(),\n vpa: z.string().describe(\"Virtual Payment Address for UPI payments.\").nullable().optional(),\n bank: z.string().describe(\"Bank code for netbanking payments.\").nullable().optional(),\n email: z.string().describe(\"Customer email address.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the payment.\").nullable().optional(),\n amount: z.number().int().describe(\"Payment amount in smallest currency unit (paise for INR, cents for USD).\").nullable(),\n entity: z.string().describe(\"String representing the object type. Always 'payment'.\").nullable(),\n method: z.string().describe(\"Payment method used. Values: card, netbanking, wallet, emi, upi, cardless_emi, paylater, bank_transfer, offline, qr_code, emandate, nach, recurring, third_party, cheque, dd.\").nullable(),\n status: z.string().describe(\"Payment status. Values: created, authorized, captured, refunded, failed, pending.\").nullable(),\n wallet: z.string().describe(\"Wallet provider name for wallet payments.\").nullable().optional(),\n card_id: z.string().describe(\"Card identifier for card payments.\").nullable().optional(),\n contact: z.string().describe(\"Customer phone number.\").nullable().optional(),\n captured: z.boolean().describe(\"Indicates if the payment has been captured.\").nullable(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable(),\n order_id: z.string().describe(\"Identifier of the order associated with this payment.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) of payment creation.\").nullable(),\n error_code: z.string().describe(\"Error code for failed payments.\").nullable().optional(),\n error_step: z.string().describe(\"Step at which the error occurred.\").nullable().optional(),\n invoice_id: z.string().describe(\"Identifier of the invoice linked to this payment.\").nullable().optional(),\n customer_id: z.string().describe(\"Identifier of the customer associated with this payment.\").nullable().optional(),\n description: z.string().describe(\"Description provided during payment creation.\").nullable().optional(),\n error_reason: z.string().describe(\"Reason for the payment failure.\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (customer, business, or bank).\").nullable().optional(),\n acquirer_data: RazorpayFetchAllPayments_AcquirerDataSchema.nullable().optional(),\n international: z.boolean().describe(\"Indicates if this is an international (cross-border) payment.\").nullable(),\n refund_status: z.string().describe(\"Refund status. Values: null, partial, full.\").nullable().optional(),\n amount_refunded: z.number().int().describe(\"Amount refunded in smallest currency unit.\").nullable(),\n error_description: z.string().describe(\"Human-readable error message for failed payments.\").nullable().optional(),\n}).describe(\"Detailed model representing a single payment object from Razorpay.\");\nexport const RazorpayFetchAllPaymentsOutput = z.object({\n count: z.number().int().describe(\"Number of payment items returned in this response.\").nullable(),\n items: z.array(RazorpayFetchAllPayments_PaymentItemSchema).describe(\"Array of payment objects, with the most recent appearing first.\"),\n entity: z.string().describe(\"String representing the collection type. Always 'collection'.\").nullable(),\n}).describe(\"Response model containing a collection of payment objects with pagination metadata.\");\n\nexport const razorpayFetchAllPayments = action(\"RAZORPAY_FETCH_ALL_PAYMENTS\", {\n slug: \"razorpay-fetch-all-payments\",\n name: \"Fetch All Payments\",\n description: \"Tool to retrieve all payments from your Razorpay account with pagination and time filtering support. Use when you need to list payments, audit transactions, or analyze payment history. Returns payments in descending order by creation time (newest first).\",\n input: RazorpayFetchAllPaymentsInput,\n output: RazorpayFetchAllPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC3J,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,8CAA8C,EAAE,OAAO,EAC3D,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,OAAO,CAA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SAAS,+DAA+D,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,qFAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput: z.ZodTypeAny = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema: z.ZodTypeAny = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput: z.ZodTypeAny = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,cAAcA,IAAAA,EA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AAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAe,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,OAAOA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,qCAAqCC,eAAAA,OAAO,4CAA4C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"fetch-all-refunds-for-a-payment.cjs","names":["z","action"],"sources":["../../src/actions/fetch-all-refunds-for-a-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RazorpayFetchAllRefundsForAPaymentInput = z.object({\n skip: z.number().int().describe(\"Number of refunds to skip for pagination. Use with count to navigate through pages.\").optional(),\n count: z.number().int().describe(\"Number of refunds to fetch. Default is 10.\").optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment for which to fetch refunds.\"),\n to_timestamp: z.number().int().describe(\"Unix timestamp before which the refunds were created. Filter refunds created on or before this time.\").optional(),\n from_timestamp: z.number().int().describe(\"Unix timestamp after which the refunds were created. Filter refunds created on or after this time.\").optional(),\n}).describe(\"Request parameters for fetching all refunds for a specific payment.\");\nconst RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema = z.object({\n arn: z.string().describe(\"Acquirer Reference Number (ARN) from the bank.\").nullable().optional(),\n}).describe(\"Acquirer data for a refund.\");\nconst RazorpayFetchAllRefundsForAPayment_RefundSchema = z.object({\n id: z.string().describe(\"Unique identifier for the refund.\").nullable().optional(),\n notes: z.record(z.string(), z.unknown()).describe(\"Key-value pairs for custom data associated with the refund.\").nullable().optional(),\n amount: z.number().int().describe(\"Refund amount in currency subunits (e.g., paise for INR). For example, 10000 means ₹100.00.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, always 'refund' for refund objects.\").nullable().optional(),\n status: z.string().describe(\"Current status of the refund (e.g., 'processed', 'pending', 'failed').\").nullable().optional(),\n receipt: z.string().describe(\"Optional receipt identifier for the refund.\").nullable().optional(),\n batch_id: z.string().describe(\"Batch processing identifier, typically null for individual refunds.\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code (e.g., INR, USD).\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the refund was created.\").nullable().optional(),\n payment_id: z.string().describe(\"Unique identifier of the payment that was refunded.\").nullable().optional(),\n acquirer_data: RazorpayFetchAllRefundsForAPayment_AcquirerDataSchema.nullable().optional(),\n speed_processed: z.string().describe(\"Actual speed at which the refund was processed (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n speed_requested: z.string().describe(\"Speed requested for the refund processing (e.g., 'normal', 'instant', 'optimum').\").nullable().optional(),\n}).describe(\"Represents an individual refund in the Razorpay system.\");\nexport const RazorpayFetchAllRefundsForAPaymentOutput = z.object({\n count: z.number().int().describe(\"Number of refunds returned in this response.\").nullable().optional(),\n items: z.array(RazorpayFetchAllRefundsForAPayment_RefundSchema).describe(\"Array of refund objects for the specified payment.\").nullable().optional(),\n entity: z.string().describe(\"Entity type, typically 'collection' for list responses.\").nullable().optional(),\n}).describe(\"Response schema for fetching all refunds for a specific payment.\");\n\nexport const razorpayFetchAllRefundsForAPayment = action(\"RAZORPAY_FETCH_ALL_REFUNDS_FOR_A_PAYMENT\", {\n slug: \"razorpay-fetch-all-refunds-for-a-payment\",\n name: \"Fetch all refunds for a payment\",\n description: \"Tool to retrieve all refunds for a specific payment using the Razorpay API. Use when you need to check refund status, track refund history, or list all refunds associated with a particular payment.\",\n input: RazorpayFetchAllRefundsForAPaymentInput,\n output: RazorpayFetchAllRefundsForAPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAChI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACzJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,wDAAwDA,IAAAA,EAAE,OAAO,EACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjG,C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