@keystrokehq/paystack 0.1.0 → 0.1.3

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 (905) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-products-to-page.cjs +18 -18
  4. package/dist/actions/add-products-to-page.cjs.map +1 -1
  5. package/dist/actions/add-products-to-page.d.cts +52 -3
  6. package/dist/actions/add-products-to-page.d.cts.map +1 -1
  7. package/dist/actions/add-products-to-page.d.mts +52 -3
  8. package/dist/actions/add-products-to-page.d.mts.map +1 -1
  9. package/dist/actions/add-products-to-page.mjs +18 -18
  10. package/dist/actions/add-products-to-page.mjs.map +1 -1
  11. package/dist/actions/add-products-to-storefront.cjs +3 -3
  12. package/dist/actions/add-products-to-storefront.cjs.map +1 -1
  13. package/dist/actions/add-products-to-storefront.d.cts +13 -3
  14. package/dist/actions/add-products-to-storefront.d.cts.map +1 -1
  15. package/dist/actions/add-products-to-storefront.d.mts +13 -3
  16. package/dist/actions/add-products-to-storefront.d.mts.map +1 -1
  17. package/dist/actions/add-products-to-storefront.mjs +3 -3
  18. package/dist/actions/add-products-to-storefront.mjs.map +1 -1
  19. package/dist/actions/add-split-code-to-virtual-terminal.cjs +18 -18
  20. package/dist/actions/add-split-code-to-virtual-terminal.cjs.map +1 -1
  21. package/dist/actions/add-split-code-to-virtual-terminal.d.cts +32 -3
  22. package/dist/actions/add-split-code-to-virtual-terminal.d.cts.map +1 -1
  23. package/dist/actions/add-split-code-to-virtual-terminal.d.mts +32 -3
  24. package/dist/actions/add-split-code-to-virtual-terminal.d.mts.map +1 -1
  25. package/dist/actions/add-split-code-to-virtual-terminal.mjs +18 -18
  26. package/dist/actions/add-split-code-to-virtual-terminal.mjs.map +1 -1
  27. package/dist/actions/add-subaccount-to-split.cjs +19 -19
  28. package/dist/actions/add-subaccount-to-split.cjs.map +1 -1
  29. package/dist/actions/add-subaccount-to-split.d.cts +34 -3
  30. package/dist/actions/add-subaccount-to-split.d.cts.map +1 -1
  31. package/dist/actions/add-subaccount-to-split.d.mts +34 -3
  32. package/dist/actions/add-subaccount-to-split.d.mts.map +1 -1
  33. package/dist/actions/add-subaccount-to-split.mjs +19 -19
  34. package/dist/actions/add-subaccount-to-split.mjs.map +1 -1
  35. package/dist/actions/archive-payment-request.cjs +3 -3
  36. package/dist/actions/archive-payment-request.cjs.map +1 -1
  37. package/dist/actions/archive-payment-request.d.cts +10 -3
  38. package/dist/actions/archive-payment-request.d.cts.map +1 -1
  39. package/dist/actions/archive-payment-request.d.mts +10 -3
  40. package/dist/actions/archive-payment-request.d.mts.map +1 -1
  41. package/dist/actions/archive-payment-request.mjs +3 -3
  42. package/dist/actions/archive-payment-request.mjs.map +1 -1
  43. package/dist/actions/assign-destination-to-virtual-terminal.cjs +12 -12
  44. package/dist/actions/assign-destination-to-virtual-terminal.cjs.map +1 -1
  45. package/dist/actions/assign-destination-to-virtual-terminal.d.cts +28 -3
  46. package/dist/actions/assign-destination-to-virtual-terminal.d.cts.map +1 -1
  47. package/dist/actions/assign-destination-to-virtual-terminal.d.mts +28 -3
  48. package/dist/actions/assign-destination-to-virtual-terminal.d.mts.map +1 -1
  49. package/dist/actions/assign-destination-to-virtual-terminal.mjs +12 -12
  50. package/dist/actions/assign-destination-to-virtual-terminal.mjs.map +1 -1
  51. package/dist/actions/check-pending-charge.cjs +30 -30
  52. package/dist/actions/check-pending-charge.cjs.map +1 -1
  53. package/dist/actions/check-pending-charge.d.cts +46 -3
  54. package/dist/actions/check-pending-charge.d.cts.map +1 -1
  55. package/dist/actions/check-pending-charge.d.mts +46 -3
  56. package/dist/actions/check-pending-charge.d.mts.map +1 -1
  57. package/dist/actions/check-pending-charge.mjs +30 -30
  58. package/dist/actions/check-pending-charge.mjs.map +1 -1
  59. package/dist/actions/check-slug-availability.cjs +3 -3
  60. package/dist/actions/check-slug-availability.cjs.map +1 -1
  61. package/dist/actions/check-slug-availability.d.cts +10 -3
  62. package/dist/actions/check-slug-availability.d.cts.map +1 -1
  63. package/dist/actions/check-slug-availability.d.mts +10 -3
  64. package/dist/actions/check-slug-availability.d.mts.map +1 -1
  65. package/dist/actions/check-slug-availability.mjs +3 -3
  66. package/dist/actions/check-slug-availability.mjs.map +1 -1
  67. package/dist/actions/create-bulk-transfer-recipient.cjs +7 -7
  68. package/dist/actions/create-bulk-transfer-recipient.cjs.map +1 -1
  69. package/dist/actions/create-bulk-transfer-recipient.d.cts +53 -3
  70. package/dist/actions/create-bulk-transfer-recipient.d.cts.map +1 -1
  71. package/dist/actions/create-bulk-transfer-recipient.d.mts +53 -3
  72. package/dist/actions/create-bulk-transfer-recipient.d.mts.map +1 -1
  73. package/dist/actions/create-bulk-transfer-recipient.mjs +7 -7
  74. package/dist/actions/create-bulk-transfer-recipient.mjs.map +1 -1
  75. package/dist/actions/create-charge.cjs +40 -40
  76. package/dist/actions/create-charge.cjs.map +1 -1
  77. package/dist/actions/create-charge.d.cts +124 -3
  78. package/dist/actions/create-charge.d.cts.map +1 -1
  79. package/dist/actions/create-charge.d.mts +124 -3
  80. package/dist/actions/create-charge.d.mts.map +1 -1
  81. package/dist/actions/create-charge.mjs +40 -40
  82. package/dist/actions/create-charge.mjs.map +1 -1
  83. package/dist/actions/create-customer.cjs +7 -7
  84. package/dist/actions/create-customer.cjs.map +1 -1
  85. package/dist/actions/create-customer.d.cts +37 -3
  86. package/dist/actions/create-customer.d.cts.map +1 -1
  87. package/dist/actions/create-customer.d.mts +37 -3
  88. package/dist/actions/create-customer.d.mts.map +1 -1
  89. package/dist/actions/create-customer.mjs +7 -7
  90. package/dist/actions/create-customer.mjs.map +1 -1
  91. package/dist/actions/create-payment-page.cjs +17 -17
  92. package/dist/actions/create-payment-page.cjs.map +1 -1
  93. package/dist/actions/create-payment-page.d.cts +64 -3
  94. package/dist/actions/create-payment-page.d.cts.map +1 -1
  95. package/dist/actions/create-payment-page.d.mts +64 -3
  96. package/dist/actions/create-payment-page.d.mts.map +1 -1
  97. package/dist/actions/create-payment-page.mjs +17 -17
  98. package/dist/actions/create-payment-page.mjs.map +1 -1
  99. package/dist/actions/create-payment-request.cjs +18 -18
  100. package/dist/actions/create-payment-request.cjs.map +1 -1
  101. package/dist/actions/create-payment-request.d.cts +76 -3
  102. package/dist/actions/create-payment-request.d.cts.map +1 -1
  103. package/dist/actions/create-payment-request.d.mts +76 -3
  104. package/dist/actions/create-payment-request.d.mts.map +1 -1
  105. package/dist/actions/create-payment-request.mjs +18 -18
  106. package/dist/actions/create-payment-request.mjs.map +1 -1
  107. package/dist/actions/create-plan.cjs +20 -20
  108. package/dist/actions/create-plan.cjs.map +1 -1
  109. package/dist/actions/create-plan.d.cts +48 -3
  110. package/dist/actions/create-plan.d.cts.map +1 -1
  111. package/dist/actions/create-plan.d.mts +48 -3
  112. package/dist/actions/create-plan.d.mts.map +1 -1
  113. package/dist/actions/create-plan.mjs +20 -20
  114. package/dist/actions/create-plan.mjs.map +1 -1
  115. package/dist/actions/create-refund.cjs +19 -19
  116. package/dist/actions/create-refund.cjs.map +1 -1
  117. package/dist/actions/create-refund.d.cts +59 -3
  118. package/dist/actions/create-refund.d.cts.map +1 -1
  119. package/dist/actions/create-refund.d.mts +59 -3
  120. package/dist/actions/create-refund.d.mts.map +1 -1
  121. package/dist/actions/create-refund.mjs +19 -19
  122. package/dist/actions/create-refund.mjs.map +1 -1
  123. package/dist/actions/create-split.cjs +19 -19
  124. package/dist/actions/create-split.cjs.map +1 -1
  125. package/dist/actions/create-split.d.cts +61 -3
  126. package/dist/actions/create-split.d.cts.map +1 -1
  127. package/dist/actions/create-split.d.mts +61 -3
  128. package/dist/actions/create-split.d.mts.map +1 -1
  129. package/dist/actions/create-split.mjs +19 -19
  130. package/dist/actions/create-split.mjs.map +1 -1
  131. package/dist/actions/create-storefront.cjs +21 -21
  132. package/dist/actions/create-storefront.cjs.map +1 -1
  133. package/dist/actions/create-storefront.d.cts +46 -3
  134. package/dist/actions/create-storefront.d.cts.map +1 -1
  135. package/dist/actions/create-storefront.d.mts +46 -3
  136. package/dist/actions/create-storefront.d.mts.map +1 -1
  137. package/dist/actions/create-storefront.mjs +21 -21
  138. package/dist/actions/create-storefront.mjs.map +1 -1
  139. package/dist/actions/create-subaccount.cjs +22 -22
  140. package/dist/actions/create-subaccount.cjs.map +1 -1
  141. package/dist/actions/create-subaccount.d.cts +52 -3
  142. package/dist/actions/create-subaccount.d.cts.map +1 -1
  143. package/dist/actions/create-subaccount.d.mts +52 -3
  144. package/dist/actions/create-subaccount.d.mts.map +1 -1
  145. package/dist/actions/create-subaccount.mjs +22 -22
  146. package/dist/actions/create-subaccount.mjs.map +1 -1
  147. package/dist/actions/create-transfer-recipient.cjs +20 -20
  148. package/dist/actions/create-transfer-recipient.cjs.map +1 -1
  149. package/dist/actions/create-transfer-recipient.d.cts +55 -3
  150. package/dist/actions/create-transfer-recipient.d.cts.map +1 -1
  151. package/dist/actions/create-transfer-recipient.d.mts +55 -3
  152. package/dist/actions/create-transfer-recipient.d.mts.map +1 -1
  153. package/dist/actions/create-transfer-recipient.mjs +20 -20
  154. package/dist/actions/create-transfer-recipient.mjs.map +1 -1
  155. package/dist/actions/create-virtual-terminal.cjs +16 -16
  156. package/dist/actions/create-virtual-terminal.cjs.map +1 -1
  157. package/dist/actions/create-virtual-terminal.d.cts +38 -3
  158. package/dist/actions/create-virtual-terminal.d.cts.map +1 -1
  159. package/dist/actions/create-virtual-terminal.d.mts +38 -3
  160. package/dist/actions/create-virtual-terminal.d.mts.map +1 -1
  161. package/dist/actions/create-virtual-terminal.mjs +16 -16
  162. package/dist/actions/create-virtual-terminal.mjs.map +1 -1
  163. package/dist/actions/deactivate-authorization.cjs +3 -3
  164. package/dist/actions/deactivate-authorization.cjs.map +1 -1
  165. package/dist/actions/deactivate-authorization.d.cts +10 -3
  166. package/dist/actions/deactivate-authorization.d.cts.map +1 -1
  167. package/dist/actions/deactivate-authorization.d.mts +10 -3
  168. package/dist/actions/deactivate-authorization.d.mts.map +1 -1
  169. package/dist/actions/deactivate-authorization.mjs +3 -3
  170. package/dist/actions/deactivate-authorization.mjs.map +1 -1
  171. package/dist/actions/deactivate-virtual-terminal.cjs +3 -3
  172. package/dist/actions/deactivate-virtual-terminal.cjs.map +1 -1
  173. package/dist/actions/deactivate-virtual-terminal.d.cts +10 -3
  174. package/dist/actions/deactivate-virtual-terminal.d.cts.map +1 -1
  175. package/dist/actions/deactivate-virtual-terminal.d.mts +10 -3
  176. package/dist/actions/deactivate-virtual-terminal.d.mts.map +1 -1
  177. package/dist/actions/deactivate-virtual-terminal.mjs +3 -3
  178. package/dist/actions/deactivate-virtual-terminal.mjs.map +1 -1
  179. package/dist/actions/delete-product.cjs +1 -1
  180. package/dist/actions/delete-product.cjs.map +1 -1
  181. package/dist/actions/delete-product.d.cts +10 -3
  182. package/dist/actions/delete-product.d.cts.map +1 -1
  183. package/dist/actions/delete-product.d.mts +10 -3
  184. package/dist/actions/delete-product.d.mts.map +1 -1
  185. package/dist/actions/delete-product.mjs +1 -1
  186. package/dist/actions/delete-product.mjs.map +1 -1
  187. package/dist/actions/delete-storefront.cjs +1 -1
  188. package/dist/actions/delete-storefront.cjs.map +1 -1
  189. package/dist/actions/delete-storefront.d.cts +10 -3
  190. package/dist/actions/delete-storefront.d.cts.map +1 -1
  191. package/dist/actions/delete-storefront.d.mts +10 -3
  192. package/dist/actions/delete-storefront.d.mts.map +1 -1
  193. package/dist/actions/delete-storefront.mjs +1 -1
  194. package/dist/actions/delete-storefront.mjs.map +1 -1
  195. package/dist/actions/delete-transfer-recipient.cjs +1 -1
  196. package/dist/actions/delete-transfer-recipient.cjs.map +1 -1
  197. package/dist/actions/delete-transfer-recipient.d.cts +10 -3
  198. package/dist/actions/delete-transfer-recipient.d.cts.map +1 -1
  199. package/dist/actions/delete-transfer-recipient.d.mts +10 -3
  200. package/dist/actions/delete-transfer-recipient.d.mts.map +1 -1
  201. package/dist/actions/delete-transfer-recipient.mjs +1 -1
  202. package/dist/actions/delete-transfer-recipient.mjs.map +1 -1
  203. package/dist/actions/disable-otp-for-transfers.cjs +3 -3
  204. package/dist/actions/disable-otp-for-transfers.cjs.map +1 -1
  205. package/dist/actions/disable-otp-for-transfers.d.cts +6 -3
  206. package/dist/actions/disable-otp-for-transfers.d.cts.map +1 -1
  207. package/dist/actions/disable-otp-for-transfers.d.mts +6 -3
  208. package/dist/actions/disable-otp-for-transfers.d.mts.map +1 -1
  209. package/dist/actions/disable-otp-for-transfers.mjs +3 -3
  210. package/dist/actions/disable-otp-for-transfers.mjs.map +1 -1
  211. package/dist/actions/disable-subscription.cjs +4 -4
  212. package/dist/actions/disable-subscription.cjs.map +1 -1
  213. package/dist/actions/disable-subscription.d.cts +15 -3
  214. package/dist/actions/disable-subscription.d.cts.map +1 -1
  215. package/dist/actions/disable-subscription.d.mts +15 -3
  216. package/dist/actions/disable-subscription.d.mts.map +1 -1
  217. package/dist/actions/disable-subscription.mjs +4 -4
  218. package/dist/actions/disable-subscription.mjs.map +1 -1
  219. package/dist/actions/duplicate-storefront.cjs +4 -4
  220. package/dist/actions/duplicate-storefront.cjs.map +1 -1
  221. package/dist/actions/duplicate-storefront.d.cts +19 -3
  222. package/dist/actions/duplicate-storefront.d.cts.map +1 -1
  223. package/dist/actions/duplicate-storefront.d.mts +19 -3
  224. package/dist/actions/duplicate-storefront.d.mts.map +1 -1
  225. package/dist/actions/duplicate-storefront.mjs +4 -4
  226. package/dist/actions/duplicate-storefront.mjs.map +1 -1
  227. package/dist/actions/enable-otp-requirement-for-transfers.cjs +3 -3
  228. package/dist/actions/enable-otp-requirement-for-transfers.cjs.map +1 -1
  229. package/dist/actions/enable-otp-requirement-for-transfers.d.cts +6 -3
  230. package/dist/actions/enable-otp-requirement-for-transfers.d.cts.map +1 -1
  231. package/dist/actions/enable-otp-requirement-for-transfers.d.mts +6 -3
  232. package/dist/actions/enable-otp-requirement-for-transfers.d.mts.map +1 -1
  233. package/dist/actions/enable-otp-requirement-for-transfers.mjs +3 -3
  234. package/dist/actions/enable-otp-requirement-for-transfers.mjs.map +1 -1
  235. package/dist/actions/export-transactions.cjs +6 -6
  236. package/dist/actions/export-transactions.cjs.map +1 -1
  237. package/dist/actions/export-transactions.d.cts +30 -3
  238. package/dist/actions/export-transactions.d.cts.map +1 -1
  239. package/dist/actions/export-transactions.d.mts +30 -3
  240. package/dist/actions/export-transactions.d.mts.map +1 -1
  241. package/dist/actions/export-transactions.mjs +6 -6
  242. package/dist/actions/export-transactions.mjs.map +1 -1
  243. package/dist/actions/fetch-balance-ledger.cjs +21 -21
  244. package/dist/actions/fetch-balance-ledger.cjs.map +1 -1
  245. package/dist/actions/fetch-balance-ledger.d.cts +36 -3
  246. package/dist/actions/fetch-balance-ledger.d.cts.map +1 -1
  247. package/dist/actions/fetch-balance-ledger.d.mts +36 -3
  248. package/dist/actions/fetch-balance-ledger.d.mts.map +1 -1
  249. package/dist/actions/fetch-balance-ledger.mjs +21 -21
  250. package/dist/actions/fetch-balance-ledger.mjs.map +1 -1
  251. package/dist/actions/fetch-balance.cjs +6 -6
  252. package/dist/actions/fetch-balance.cjs.map +1 -1
  253. package/dist/actions/fetch-balance.d.cts +10 -3
  254. package/dist/actions/fetch-balance.d.cts.map +1 -1
  255. package/dist/actions/fetch-balance.d.mts +10 -3
  256. package/dist/actions/fetch-balance.d.mts.map +1 -1
  257. package/dist/actions/fetch-balance.mjs +6 -6
  258. package/dist/actions/fetch-balance.mjs.map +1 -1
  259. package/dist/actions/fetch-bulk-charge-batch.cjs +14 -14
  260. package/dist/actions/fetch-bulk-charge-batch.cjs.map +1 -1
  261. package/dist/actions/fetch-bulk-charge-batch.d.cts +22 -3
  262. package/dist/actions/fetch-bulk-charge-batch.d.cts.map +1 -1
  263. package/dist/actions/fetch-bulk-charge-batch.d.mts +22 -3
  264. package/dist/actions/fetch-bulk-charge-batch.d.mts.map +1 -1
  265. package/dist/actions/fetch-bulk-charge-batch.mjs +14 -14
  266. package/dist/actions/fetch-bulk-charge-batch.mjs.map +1 -1
  267. package/dist/actions/fetch-customer.cjs +21 -21
  268. package/dist/actions/fetch-customer.cjs.map +1 -1
  269. package/dist/actions/fetch-customer.d.cts +85 -3
  270. package/dist/actions/fetch-customer.d.cts.map +1 -1
  271. package/dist/actions/fetch-customer.d.mts +85 -3
  272. package/dist/actions/fetch-customer.d.mts.map +1 -1
  273. package/dist/actions/fetch-customer.mjs +21 -21
  274. package/dist/actions/fetch-customer.mjs.map +1 -1
  275. package/dist/actions/fetch-mandate-authorizations.cjs +19 -19
  276. package/dist/actions/fetch-mandate-authorizations.cjs.map +1 -1
  277. package/dist/actions/fetch-mandate-authorizations.d.cts +38 -3
  278. package/dist/actions/fetch-mandate-authorizations.d.cts.map +1 -1
  279. package/dist/actions/fetch-mandate-authorizations.d.mts +38 -3
  280. package/dist/actions/fetch-mandate-authorizations.d.mts.map +1 -1
  281. package/dist/actions/fetch-mandate-authorizations.mjs +19 -19
  282. package/dist/actions/fetch-mandate-authorizations.mjs.map +1 -1
  283. package/dist/actions/fetch-payment-page.cjs +17 -17
  284. package/dist/actions/fetch-payment-page.cjs.map +1 -1
  285. package/dist/actions/fetch-payment-page.d.cts +33 -3
  286. package/dist/actions/fetch-payment-page.d.cts.map +1 -1
  287. package/dist/actions/fetch-payment-page.d.mts +33 -3
  288. package/dist/actions/fetch-payment-page.d.mts.map +1 -1
  289. package/dist/actions/fetch-payment-page.mjs +17 -17
  290. package/dist/actions/fetch-payment-page.mjs.map +1 -1
  291. package/dist/actions/fetch-payment-request.cjs +18 -18
  292. package/dist/actions/fetch-payment-request.cjs.map +1 -1
  293. package/dist/actions/fetch-payment-request.d.cts +58 -3
  294. package/dist/actions/fetch-payment-request.d.cts.map +1 -1
  295. package/dist/actions/fetch-payment-request.d.mts +58 -3
  296. package/dist/actions/fetch-payment-request.d.mts.map +1 -1
  297. package/dist/actions/fetch-payment-request.mjs +18 -18
  298. package/dist/actions/fetch-payment-request.mjs.map +1 -1
  299. package/dist/actions/fetch-payment-session-timeout.cjs +4 -4
  300. package/dist/actions/fetch-payment-session-timeout.cjs.map +1 -1
  301. package/dist/actions/fetch-payment-session-timeout.d.cts +9 -3
  302. package/dist/actions/fetch-payment-session-timeout.d.cts.map +1 -1
  303. package/dist/actions/fetch-payment-session-timeout.d.mts +9 -3
  304. package/dist/actions/fetch-payment-session-timeout.d.mts.map +1 -1
  305. package/dist/actions/fetch-payment-session-timeout.mjs +4 -4
  306. package/dist/actions/fetch-payment-session-timeout.mjs.map +1 -1
  307. package/dist/actions/fetch-plan.cjs +28 -28
  308. package/dist/actions/fetch-plan.cjs.map +1 -1
  309. package/dist/actions/fetch-plan.d.cts +52 -3
  310. package/dist/actions/fetch-plan.d.cts.map +1 -1
  311. package/dist/actions/fetch-plan.d.mts +52 -3
  312. package/dist/actions/fetch-plan.d.mts.map +1 -1
  313. package/dist/actions/fetch-plan.mjs +28 -28
  314. package/dist/actions/fetch-plan.mjs.map +1 -1
  315. package/dist/actions/fetch-product-orders.cjs +42 -42
  316. package/dist/actions/fetch-product-orders.cjs.map +1 -1
  317. package/dist/actions/fetch-product-orders.d.cts +53 -3
  318. package/dist/actions/fetch-product-orders.d.cts.map +1 -1
  319. package/dist/actions/fetch-product-orders.d.mts +53 -3
  320. package/dist/actions/fetch-product-orders.d.mts.map +1 -1
  321. package/dist/actions/fetch-product-orders.mjs +42 -42
  322. package/dist/actions/fetch-product-orders.mjs.map +1 -1
  323. package/dist/actions/fetch-product.cjs +29 -29
  324. package/dist/actions/fetch-product.cjs.map +1 -1
  325. package/dist/actions/fetch-product.d.cts +49 -3
  326. package/dist/actions/fetch-product.d.cts.map +1 -1
  327. package/dist/actions/fetch-product.d.mts +49 -3
  328. package/dist/actions/fetch-product.d.mts.map +1 -1
  329. package/dist/actions/fetch-product.mjs +29 -29
  330. package/dist/actions/fetch-product.mjs.map +1 -1
  331. package/dist/actions/fetch-refund.cjs +24 -24
  332. package/dist/actions/fetch-refund.cjs.map +1 -1
  333. package/dist/actions/fetch-refund.d.cts +48 -3
  334. package/dist/actions/fetch-refund.d.cts.map +1 -1
  335. package/dist/actions/fetch-refund.d.mts +48 -3
  336. package/dist/actions/fetch-refund.d.mts.map +1 -1
  337. package/dist/actions/fetch-refund.mjs +24 -24
  338. package/dist/actions/fetch-refund.mjs.map +1 -1
  339. package/dist/actions/fetch-split.cjs +18 -18
  340. package/dist/actions/fetch-split.cjs.map +1 -1
  341. package/dist/actions/fetch-split.d.cts +30 -3
  342. package/dist/actions/fetch-split.d.cts.map +1 -1
  343. package/dist/actions/fetch-split.d.mts +30 -3
  344. package/dist/actions/fetch-split.d.mts.map +1 -1
  345. package/dist/actions/fetch-split.mjs +18 -18
  346. package/dist/actions/fetch-split.mjs.map +1 -1
  347. package/dist/actions/fetch-storefront-orders.cjs +22 -22
  348. package/dist/actions/fetch-storefront-orders.cjs.map +1 -1
  349. package/dist/actions/fetch-storefront-orders.d.cts +58 -3
  350. package/dist/actions/fetch-storefront-orders.d.cts.map +1 -1
  351. package/dist/actions/fetch-storefront-orders.d.mts +58 -3
  352. package/dist/actions/fetch-storefront-orders.d.mts.map +1 -1
  353. package/dist/actions/fetch-storefront-orders.mjs +22 -22
  354. package/dist/actions/fetch-storefront-orders.mjs.map +1 -1
  355. package/dist/actions/fetch-storefront.cjs +28 -28
  356. package/dist/actions/fetch-storefront.cjs.map +1 -1
  357. package/dist/actions/fetch-storefront.d.cts +42 -3
  358. package/dist/actions/fetch-storefront.d.cts.map +1 -1
  359. package/dist/actions/fetch-storefront.d.mts +42 -3
  360. package/dist/actions/fetch-storefront.d.mts.map +1 -1
  361. package/dist/actions/fetch-storefront.mjs +28 -28
  362. package/dist/actions/fetch-storefront.mjs.map +1 -1
  363. package/dist/actions/fetch-subaccount.cjs +22 -22
  364. package/dist/actions/fetch-subaccount.cjs.map +1 -1
  365. package/dist/actions/fetch-subaccount.d.cts +36 -3
  366. package/dist/actions/fetch-subaccount.d.cts.map +1 -1
  367. package/dist/actions/fetch-subaccount.d.mts +36 -3
  368. package/dist/actions/fetch-subaccount.d.mts.map +1 -1
  369. package/dist/actions/fetch-subaccount.mjs +22 -22
  370. package/dist/actions/fetch-subaccount.mjs.map +1 -1
  371. package/dist/actions/fetch-subscription.cjs +52 -52
  372. package/dist/actions/fetch-subscription.cjs.map +1 -1
  373. package/dist/actions/fetch-subscription.d.cts +68 -3
  374. package/dist/actions/fetch-subscription.d.cts.map +1 -1
  375. package/dist/actions/fetch-subscription.d.mts +68 -3
  376. package/dist/actions/fetch-subscription.d.mts.map +1 -1
  377. package/dist/actions/fetch-subscription.mjs +52 -52
  378. package/dist/actions/fetch-subscription.mjs.map +1 -1
  379. package/dist/actions/fetch-transaction-timeline.cjs +6 -6
  380. package/dist/actions/fetch-transaction-timeline.cjs.map +1 -1
  381. package/dist/actions/fetch-transaction-timeline.d.cts +24 -3
  382. package/dist/actions/fetch-transaction-timeline.d.cts.map +1 -1
  383. package/dist/actions/fetch-transaction-timeline.d.mts +24 -3
  384. package/dist/actions/fetch-transaction-timeline.d.mts.map +1 -1
  385. package/dist/actions/fetch-transaction-timeline.mjs +6 -6
  386. package/dist/actions/fetch-transaction-timeline.mjs.map +1 -1
  387. package/dist/actions/fetch-transaction.cjs +28 -28
  388. package/dist/actions/fetch-transaction.cjs.map +1 -1
  389. package/dist/actions/fetch-transaction.d.cts +82 -3
  390. package/dist/actions/fetch-transaction.d.cts.map +1 -1
  391. package/dist/actions/fetch-transaction.d.mts +82 -3
  392. package/dist/actions/fetch-transaction.d.mts.map +1 -1
  393. package/dist/actions/fetch-transaction.mjs +28 -28
  394. package/dist/actions/fetch-transaction.mjs.map +1 -1
  395. package/dist/actions/fetch-transfer-recipient.cjs +21 -21
  396. package/dist/actions/fetch-transfer-recipient.cjs.map +1 -1
  397. package/dist/actions/fetch-transfer-recipient.d.cts +34 -3
  398. package/dist/actions/fetch-transfer-recipient.d.cts.map +1 -1
  399. package/dist/actions/fetch-transfer-recipient.d.mts +34 -3
  400. package/dist/actions/fetch-transfer-recipient.d.mts.map +1 -1
  401. package/dist/actions/fetch-transfer-recipient.mjs +21 -21
  402. package/dist/actions/fetch-transfer-recipient.mjs.map +1 -1
  403. package/dist/actions/fetch-virtual-terminal.cjs +14 -14
  404. package/dist/actions/fetch-virtual-terminal.cjs.map +1 -1
  405. package/dist/actions/fetch-virtual-terminal.d.cts +26 -3
  406. package/dist/actions/fetch-virtual-terminal.d.cts.map +1 -1
  407. package/dist/actions/fetch-virtual-terminal.d.mts +26 -3
  408. package/dist/actions/fetch-virtual-terminal.d.mts.map +1 -1
  409. package/dist/actions/fetch-virtual-terminal.mjs +14 -14
  410. package/dist/actions/fetch-virtual-terminal.mjs.map +1 -1
  411. package/dist/actions/finalize-payment-request.cjs +29 -29
  412. package/dist/actions/finalize-payment-request.cjs.map +1 -1
  413. package/dist/actions/finalize-payment-request.d.cts +59 -3
  414. package/dist/actions/finalize-payment-request.d.cts.map +1 -1
  415. package/dist/actions/finalize-payment-request.d.mts +59 -3
  416. package/dist/actions/finalize-payment-request.d.mts.map +1 -1
  417. package/dist/actions/finalize-payment-request.mjs +29 -29
  418. package/dist/actions/finalize-payment-request.mjs.map +1 -1
  419. package/dist/actions/generate-update-subscription-link.cjs +4 -4
  420. package/dist/actions/generate-update-subscription-link.cjs.map +1 -1
  421. package/dist/actions/generate-update-subscription-link.d.cts +13 -3
  422. package/dist/actions/generate-update-subscription-link.d.cts.map +1 -1
  423. package/dist/actions/generate-update-subscription-link.d.mts +13 -3
  424. package/dist/actions/generate-update-subscription-link.d.mts.map +1 -1
  425. package/dist/actions/generate-update-subscription-link.mjs +4 -4
  426. package/dist/actions/generate-update-subscription-link.mjs.map +1 -1
  427. package/dist/actions/get-payment-request-totals.cjs +7 -7
  428. package/dist/actions/get-payment-request-totals.cjs.map +1 -1
  429. package/dist/actions/get-payment-request-totals.d.cts +20 -3
  430. package/dist/actions/get-payment-request-totals.d.cts.map +1 -1
  431. package/dist/actions/get-payment-request-totals.d.mts +20 -3
  432. package/dist/actions/get-payment-request-totals.d.mts.map +1 -1
  433. package/dist/actions/get-payment-request-totals.mjs +7 -7
  434. package/dist/actions/get-payment-request-totals.mjs.map +1 -1
  435. package/dist/actions/get-transaction-totals.cjs +10 -10
  436. package/dist/actions/get-transaction-totals.cjs.map +1 -1
  437. package/dist/actions/get-transaction-totals.d.cts +25 -3
  438. package/dist/actions/get-transaction-totals.d.cts.map +1 -1
  439. package/dist/actions/get-transaction-totals.d.mts +25 -3
  440. package/dist/actions/get-transaction-totals.d.mts.map +1 -1
  441. package/dist/actions/get-transaction-totals.mjs +10 -10
  442. package/dist/actions/get-transaction-totals.mjs.map +1 -1
  443. package/dist/actions/initialize-authorization.cjs +7 -7
  444. package/dist/actions/initialize-authorization.cjs.map +1 -1
  445. package/dist/actions/initialize-authorization.d.cts +39 -3
  446. package/dist/actions/initialize-authorization.d.cts.map +1 -1
  447. package/dist/actions/initialize-authorization.d.mts +39 -3
  448. package/dist/actions/initialize-authorization.d.mts.map +1 -1
  449. package/dist/actions/initialize-authorization.mjs +7 -7
  450. package/dist/actions/initialize-authorization.mjs.map +1 -1
  451. package/dist/actions/initialize-transaction.cjs +8 -8
  452. package/dist/actions/initialize-transaction.cjs.map +1 -1
  453. package/dist/actions/initialize-transaction.d.cts +95 -3
  454. package/dist/actions/initialize-transaction.d.cts.map +1 -1
  455. package/dist/actions/initialize-transaction.d.mts +95 -3
  456. package/dist/actions/initialize-transaction.d.mts.map +1 -1
  457. package/dist/actions/initialize-transaction.mjs +8 -8
  458. package/dist/actions/initialize-transaction.mjs.map +1 -1
  459. package/dist/actions/initiate-bulk-charge.cjs +15 -15
  460. package/dist/actions/initiate-bulk-charge.cjs.map +1 -1
  461. package/dist/actions/initiate-bulk-charge.d.cts +37 -3
  462. package/dist/actions/initiate-bulk-charge.d.cts.map +1 -1
  463. package/dist/actions/initiate-bulk-charge.d.mts +37 -3
  464. package/dist/actions/initiate-bulk-charge.d.mts.map +1 -1
  465. package/dist/actions/initiate-bulk-charge.mjs +15 -15
  466. package/dist/actions/initiate-bulk-charge.mjs.map +1 -1
  467. package/dist/actions/list-banks.cjs +18 -18
  468. package/dist/actions/list-banks.cjs.map +1 -1
  469. package/dist/actions/list-banks.d.cts +76 -3
  470. package/dist/actions/list-banks.d.cts.map +1 -1
  471. package/dist/actions/list-banks.d.mts +76 -3
  472. package/dist/actions/list-banks.d.mts.map +1 -1
  473. package/dist/actions/list-banks.mjs +18 -18
  474. package/dist/actions/list-banks.mjs.map +1 -1
  475. package/dist/actions/list-bulk-charge-batches.cjs +17 -17
  476. package/dist/actions/list-bulk-charge-batches.cjs.map +1 -1
  477. package/dist/actions/list-bulk-charge-batches.d.cts +36 -3
  478. package/dist/actions/list-bulk-charge-batches.d.cts.map +1 -1
  479. package/dist/actions/list-bulk-charge-batches.d.mts +36 -3
  480. package/dist/actions/list-bulk-charge-batches.d.mts.map +1 -1
  481. package/dist/actions/list-bulk-charge-batches.mjs +17 -17
  482. package/dist/actions/list-bulk-charge-batches.mjs.map +1 -1
  483. package/dist/actions/list-charges-in-batch.cjs +27 -27
  484. package/dist/actions/list-charges-in-batch.cjs.map +1 -1
  485. package/dist/actions/list-charges-in-batch.d.cts +77 -3
  486. package/dist/actions/list-charges-in-batch.d.cts.map +1 -1
  487. package/dist/actions/list-charges-in-batch.d.mts +77 -3
  488. package/dist/actions/list-charges-in-batch.d.mts.map +1 -1
  489. package/dist/actions/list-charges-in-batch.mjs +27 -27
  490. package/dist/actions/list-charges-in-batch.mjs.map +1 -1
  491. package/dist/actions/list-countries.cjs +11 -11
  492. package/dist/actions/list-countries.cjs.map +1 -1
  493. package/dist/actions/list-countries.d.cts +17 -3
  494. package/dist/actions/list-countries.d.cts.map +1 -1
  495. package/dist/actions/list-countries.d.mts +17 -3
  496. package/dist/actions/list-countries.d.mts.map +1 -1
  497. package/dist/actions/list-countries.mjs +11 -11
  498. package/dist/actions/list-countries.mjs.map +1 -1
  499. package/dist/actions/list-customers.cjs +17 -17
  500. package/dist/actions/list-customers.cjs.map +1 -1
  501. package/dist/actions/list-customers.d.cts +43 -3
  502. package/dist/actions/list-customers.d.cts.map +1 -1
  503. package/dist/actions/list-customers.d.mts +43 -3
  504. package/dist/actions/list-customers.d.mts.map +1 -1
  505. package/dist/actions/list-customers.mjs +17 -17
  506. package/dist/actions/list-customers.mjs.map +1 -1
  507. package/dist/actions/list-disputes.cjs +35 -35
  508. package/dist/actions/list-disputes.cjs.map +1 -1
  509. package/dist/actions/list-disputes.d.cts +87 -3
  510. package/dist/actions/list-disputes.d.cts.map +1 -1
  511. package/dist/actions/list-disputes.d.mts +87 -3
  512. package/dist/actions/list-disputes.d.mts.map +1 -1
  513. package/dist/actions/list-disputes.mjs +35 -35
  514. package/dist/actions/list-disputes.mjs.map +1 -1
  515. package/dist/actions/list-domains.cjs +4 -4
  516. package/dist/actions/list-domains.cjs.map +1 -1
  517. package/dist/actions/list-domains.d.cts +17 -3
  518. package/dist/actions/list-domains.d.cts.map +1 -1
  519. package/dist/actions/list-domains.d.mts +17 -3
  520. package/dist/actions/list-domains.d.mts.map +1 -1
  521. package/dist/actions/list-domains.mjs +4 -4
  522. package/dist/actions/list-domains.mjs.map +1 -1
  523. package/dist/actions/list-mandate-authorizations.cjs +18 -18
  524. package/dist/actions/list-mandate-authorizations.cjs.map +1 -1
  525. package/dist/actions/list-mandate-authorizations.d.cts +46 -3
  526. package/dist/actions/list-mandate-authorizations.d.cts.map +1 -1
  527. package/dist/actions/list-mandate-authorizations.d.mts +46 -3
  528. package/dist/actions/list-mandate-authorizations.d.mts.map +1 -1
  529. package/dist/actions/list-mandate-authorizations.mjs +18 -18
  530. package/dist/actions/list-mandate-authorizations.mjs.map +1 -1
  531. package/dist/actions/list-orders.cjs +27 -27
  532. package/dist/actions/list-orders.cjs.map +1 -1
  533. package/dist/actions/list-orders.d.cts +52 -3
  534. package/dist/actions/list-orders.d.cts.map +1 -1
  535. package/dist/actions/list-orders.d.mts +52 -3
  536. package/dist/actions/list-orders.d.mts.map +1 -1
  537. package/dist/actions/list-orders.mjs +27 -27
  538. package/dist/actions/list-orders.mjs.map +1 -1
  539. package/dist/actions/list-payment-pages.cjs +23 -23
  540. package/dist/actions/list-payment-pages.cjs.map +1 -1
  541. package/dist/actions/list-payment-pages.d.cts +47 -3
  542. package/dist/actions/list-payment-pages.d.cts.map +1 -1
  543. package/dist/actions/list-payment-pages.d.mts +47 -3
  544. package/dist/actions/list-payment-pages.d.mts.map +1 -1
  545. package/dist/actions/list-payment-pages.mjs +23 -23
  546. package/dist/actions/list-payment-pages.mjs.map +1 -1
  547. package/dist/actions/list-payment-requests.cjs +24 -24
  548. package/dist/actions/list-payment-requests.cjs.map +1 -1
  549. package/dist/actions/list-payment-requests.d.cts +82 -3
  550. package/dist/actions/list-payment-requests.d.cts.map +1 -1
  551. package/dist/actions/list-payment-requests.d.mts +82 -3
  552. package/dist/actions/list-payment-requests.d.mts.map +1 -1
  553. package/dist/actions/list-payment-requests.mjs +24 -24
  554. package/dist/actions/list-payment-requests.mjs.map +1 -1
  555. package/dist/actions/list-plans.cjs +32 -32
  556. package/dist/actions/list-plans.cjs.map +1 -1
  557. package/dist/actions/list-plans.d.cts +60 -3
  558. package/dist/actions/list-plans.d.cts.map +1 -1
  559. package/dist/actions/list-plans.d.mts +60 -3
  560. package/dist/actions/list-plans.d.mts.map +1 -1
  561. package/dist/actions/list-plans.mjs +32 -32
  562. package/dist/actions/list-plans.mjs.map +1 -1
  563. package/dist/actions/list-products.cjs +33 -33
  564. package/dist/actions/list-products.cjs.map +1 -1
  565. package/dist/actions/list-products.d.cts +57 -3
  566. package/dist/actions/list-products.d.cts.map +1 -1
  567. package/dist/actions/list-products.d.mts +57 -3
  568. package/dist/actions/list-products.d.mts.map +1 -1
  569. package/dist/actions/list-products.mjs +33 -33
  570. package/dist/actions/list-products.mjs.map +1 -1
  571. package/dist/actions/list-refunds.cjs +33 -33
  572. package/dist/actions/list-refunds.cjs.map +1 -1
  573. package/dist/actions/list-refunds.d.cts +63 -3
  574. package/dist/actions/list-refunds.d.cts.map +1 -1
  575. package/dist/actions/list-refunds.d.mts +63 -3
  576. package/dist/actions/list-refunds.d.mts.map +1 -1
  577. package/dist/actions/list-refunds.mjs +33 -33
  578. package/dist/actions/list-refunds.mjs.map +1 -1
  579. package/dist/actions/list-settlements.cjs +16 -16
  580. package/dist/actions/list-settlements.cjs.map +1 -1
  581. package/dist/actions/list-settlements.d.cts +35 -3
  582. package/dist/actions/list-settlements.d.cts.map +1 -1
  583. package/dist/actions/list-settlements.d.mts +35 -3
  584. package/dist/actions/list-settlements.d.mts.map +1 -1
  585. package/dist/actions/list-settlements.mjs +16 -16
  586. package/dist/actions/list-settlements.mjs.map +1 -1
  587. package/dist/actions/list-splits.cjs +24 -24
  588. package/dist/actions/list-splits.cjs.map +1 -1
  589. package/dist/actions/list-splits.d.cts +49 -3
  590. package/dist/actions/list-splits.d.cts.map +1 -1
  591. package/dist/actions/list-splits.d.mts +49 -3
  592. package/dist/actions/list-splits.d.mts.map +1 -1
  593. package/dist/actions/list-splits.mjs +24 -24
  594. package/dist/actions/list-splits.mjs.map +1 -1
  595. package/dist/actions/list-states-avs.cjs +7 -7
  596. package/dist/actions/list-states-avs.cjs.map +1 -1
  597. package/dist/actions/list-states-avs.d.cts +15 -3
  598. package/dist/actions/list-states-avs.d.cts.map +1 -1
  599. package/dist/actions/list-states-avs.d.mts +15 -3
  600. package/dist/actions/list-states-avs.d.mts.map +1 -1
  601. package/dist/actions/list-states-avs.mjs +7 -7
  602. package/dist/actions/list-states-avs.mjs.map +1 -1
  603. package/dist/actions/list-storefront-products.cjs +29 -29
  604. package/dist/actions/list-storefront-products.cjs.map +1 -1
  605. package/dist/actions/list-storefront-products.d.cts +54 -3
  606. package/dist/actions/list-storefront-products.d.cts.map +1 -1
  607. package/dist/actions/list-storefront-products.d.mts +54 -3
  608. package/dist/actions/list-storefront-products.d.mts.map +1 -1
  609. package/dist/actions/list-storefront-products.mjs +29 -29
  610. package/dist/actions/list-storefront-products.mjs.map +1 -1
  611. package/dist/actions/list-storefronts.cjs +21 -21
  612. package/dist/actions/list-storefronts.cjs.map +1 -1
  613. package/dist/actions/list-storefronts.d.cts +37 -3
  614. package/dist/actions/list-storefronts.d.cts.map +1 -1
  615. package/dist/actions/list-storefronts.d.mts +37 -3
  616. package/dist/actions/list-storefronts.d.mts.map +1 -1
  617. package/dist/actions/list-storefronts.mjs +21 -21
  618. package/dist/actions/list-storefronts.mjs.map +1 -1
  619. package/dist/actions/list-subaccounts.cjs +21 -21
  620. package/dist/actions/list-subaccounts.cjs.map +1 -1
  621. package/dist/actions/list-subaccounts.d.cts +38 -3
  622. package/dist/actions/list-subaccounts.d.cts.map +1 -1
  623. package/dist/actions/list-subaccounts.d.mts +38 -3
  624. package/dist/actions/list-subaccounts.d.mts.map +1 -1
  625. package/dist/actions/list-subaccounts.mjs +21 -21
  626. package/dist/actions/list-subaccounts.mjs.map +1 -1
  627. package/dist/actions/list-subscriptions.cjs +32 -32
  628. package/dist/actions/list-subscriptions.cjs.map +1 -1
  629. package/dist/actions/list-subscriptions.d.cts +84 -3
  630. package/dist/actions/list-subscriptions.d.cts.map +1 -1
  631. package/dist/actions/list-subscriptions.d.mts +84 -3
  632. package/dist/actions/list-subscriptions.d.mts.map +1 -1
  633. package/dist/actions/list-subscriptions.mjs +32 -32
  634. package/dist/actions/list-subscriptions.mjs.map +1 -1
  635. package/dist/actions/list-transactions.cjs +33 -33
  636. package/dist/actions/list-transactions.cjs.map +1 -1
  637. package/dist/actions/list-transactions.d.cts +127 -3
  638. package/dist/actions/list-transactions.d.cts.map +1 -1
  639. package/dist/actions/list-transactions.d.mts +127 -3
  640. package/dist/actions/list-transactions.d.mts.map +1 -1
  641. package/dist/actions/list-transactions.mjs +33 -33
  642. package/dist/actions/list-transactions.mjs.map +1 -1
  643. package/dist/actions/list-transfer-recipients.cjs +21 -21
  644. package/dist/actions/list-transfer-recipients.cjs.map +1 -1
  645. package/dist/actions/list-transfer-recipients.d.cts +42 -3
  646. package/dist/actions/list-transfer-recipients.d.cts.map +1 -1
  647. package/dist/actions/list-transfer-recipients.d.mts +42 -3
  648. package/dist/actions/list-transfer-recipients.d.mts.map +1 -1
  649. package/dist/actions/list-transfer-recipients.mjs +21 -21
  650. package/dist/actions/list-transfer-recipients.mjs.map +1 -1
  651. package/dist/actions/list-transfers.cjs +23 -23
  652. package/dist/actions/list-transfers.cjs.map +1 -1
  653. package/dist/actions/list-transfers.d.cts +81 -3
  654. package/dist/actions/list-transfers.d.cts.map +1 -1
  655. package/dist/actions/list-transfers.d.mts +81 -3
  656. package/dist/actions/list-transfers.d.mts.map +1 -1
  657. package/dist/actions/list-transfers.mjs +23 -23
  658. package/dist/actions/list-transfers.mjs.map +1 -1
  659. package/dist/actions/list-virtual-terminals.cjs +14 -14
  660. package/dist/actions/list-virtual-terminals.cjs.map +1 -1
  661. package/dist/actions/list-virtual-terminals.d.cts +31 -3
  662. package/dist/actions/list-virtual-terminals.d.cts.map +1 -1
  663. package/dist/actions/list-virtual-terminals.d.mts +31 -3
  664. package/dist/actions/list-virtual-terminals.d.mts.map +1 -1
  665. package/dist/actions/list-virtual-terminals.mjs +14 -14
  666. package/dist/actions/list-virtual-terminals.mjs.map +1 -1
  667. package/dist/actions/pause-bulk-charge.cjs +3 -3
  668. package/dist/actions/pause-bulk-charge.cjs.map +1 -1
  669. package/dist/actions/pause-bulk-charge.d.cts +10 -3
  670. package/dist/actions/pause-bulk-charge.d.cts.map +1 -1
  671. package/dist/actions/pause-bulk-charge.d.mts +10 -3
  672. package/dist/actions/pause-bulk-charge.d.mts.map +1 -1
  673. package/dist/actions/pause-bulk-charge.mjs +3 -3
  674. package/dist/actions/pause-bulk-charge.mjs.map +1 -1
  675. package/dist/actions/publish-storefront.cjs +4 -4
  676. package/dist/actions/publish-storefront.cjs.map +1 -1
  677. package/dist/actions/publish-storefront.d.cts +16 -3
  678. package/dist/actions/publish-storefront.d.cts.map +1 -1
  679. package/dist/actions/publish-storefront.d.mts +16 -3
  680. package/dist/actions/publish-storefront.d.mts.map +1 -1
  681. package/dist/actions/publish-storefront.mjs +4 -4
  682. package/dist/actions/publish-storefront.mjs.map +1 -1
  683. package/dist/actions/remove-subaccount-from-split.cjs +3 -3
  684. package/dist/actions/remove-subaccount-from-split.cjs.map +1 -1
  685. package/dist/actions/remove-subaccount-from-split.d.cts +14 -3
  686. package/dist/actions/remove-subaccount-from-split.d.cts.map +1 -1
  687. package/dist/actions/remove-subaccount-from-split.d.mts +14 -3
  688. package/dist/actions/remove-subaccount-from-split.d.mts.map +1 -1
  689. package/dist/actions/remove-subaccount-from-split.mjs +3 -3
  690. package/dist/actions/remove-subaccount-from-split.mjs.map +1 -1
  691. package/dist/actions/resend-otp-for-transfer.cjs +3 -3
  692. package/dist/actions/resend-otp-for-transfer.cjs.map +1 -1
  693. package/dist/actions/resend-otp-for-transfer.d.cts +15 -3
  694. package/dist/actions/resend-otp-for-transfer.d.cts.map +1 -1
  695. package/dist/actions/resend-otp-for-transfer.d.mts +15 -3
  696. package/dist/actions/resend-otp-for-transfer.d.mts.map +1 -1
  697. package/dist/actions/resend-otp-for-transfer.mjs +3 -3
  698. package/dist/actions/resend-otp-for-transfer.mjs.map +1 -1
  699. package/dist/actions/resolve-card-bin.cjs +12 -12
  700. package/dist/actions/resolve-card-bin.cjs.map +1 -1
  701. package/dist/actions/resolve-card-bin.d.cts +21 -3
  702. package/dist/actions/resolve-card-bin.d.cts.map +1 -1
  703. package/dist/actions/resolve-card-bin.d.mts +21 -3
  704. package/dist/actions/resolve-card-bin.d.mts.map +1 -1
  705. package/dist/actions/resolve-card-bin.mjs +12 -12
  706. package/dist/actions/resolve-card-bin.mjs.map +1 -1
  707. package/dist/actions/resume-bulk-charge-batch.cjs +3 -3
  708. package/dist/actions/resume-bulk-charge-batch.cjs.map +1 -1
  709. package/dist/actions/resume-bulk-charge-batch.d.cts +10 -3
  710. package/dist/actions/resume-bulk-charge-batch.d.cts.map +1 -1
  711. package/dist/actions/resume-bulk-charge-batch.d.mts +10 -3
  712. package/dist/actions/resume-bulk-charge-batch.d.mts.map +1 -1
  713. package/dist/actions/resume-bulk-charge-batch.mjs +3 -3
  714. package/dist/actions/resume-bulk-charge-batch.mjs.map +1 -1
  715. package/dist/actions/send-payment-request-notification.cjs +3 -3
  716. package/dist/actions/send-payment-request-notification.cjs.map +1 -1
  717. package/dist/actions/send-payment-request-notification.d.cts +10 -3
  718. package/dist/actions/send-payment-request-notification.d.cts.map +1 -1
  719. package/dist/actions/send-payment-request-notification.d.mts +10 -3
  720. package/dist/actions/send-payment-request-notification.d.mts.map +1 -1
  721. package/dist/actions/send-payment-request-notification.mjs +3 -3
  722. package/dist/actions/send-payment-request-notification.mjs.map +1 -1
  723. package/dist/actions/send-subscription-update-link.cjs +4 -4
  724. package/dist/actions/send-subscription-update-link.cjs.map +1 -1
  725. package/dist/actions/send-subscription-update-link.d.cts +11 -3
  726. package/dist/actions/send-subscription-update-link.d.cts.map +1 -1
  727. package/dist/actions/send-subscription-update-link.d.mts +11 -3
  728. package/dist/actions/send-subscription-update-link.d.mts.map +1 -1
  729. package/dist/actions/send-subscription-update-link.mjs +4 -4
  730. package/dist/actions/send-subscription-update-link.mjs.map +1 -1
  731. package/dist/actions/set-risk-action.cjs +16 -16
  732. package/dist/actions/set-risk-action.cjs.map +1 -1
  733. package/dist/actions/set-risk-action.d.cts +70 -3
  734. package/dist/actions/set-risk-action.d.cts.map +1 -1
  735. package/dist/actions/set-risk-action.d.mts +70 -3
  736. package/dist/actions/set-risk-action.d.mts.map +1 -1
  737. package/dist/actions/set-risk-action.mjs +16 -16
  738. package/dist/actions/set-risk-action.mjs.map +1 -1
  739. package/dist/actions/submit-phone.cjs +30 -30
  740. package/dist/actions/submit-phone.cjs.map +1 -1
  741. package/dist/actions/submit-phone.d.cts +49 -3
  742. package/dist/actions/submit-phone.d.cts.map +1 -1
  743. package/dist/actions/submit-phone.d.mts +49 -3
  744. package/dist/actions/submit-phone.d.mts.map +1 -1
  745. package/dist/actions/submit-phone.mjs +30 -30
  746. package/dist/actions/submit-phone.mjs.map +1 -1
  747. package/dist/actions/trigger-direct-debit-activation-charge.cjs +3 -3
  748. package/dist/actions/trigger-direct-debit-activation-charge.cjs.map +1 -1
  749. package/dist/actions/trigger-direct-debit-activation-charge.d.cts +12 -3
  750. package/dist/actions/trigger-direct-debit-activation-charge.d.cts.map +1 -1
  751. package/dist/actions/trigger-direct-debit-activation-charge.d.mts +12 -3
  752. package/dist/actions/trigger-direct-debit-activation-charge.d.mts.map +1 -1
  753. package/dist/actions/trigger-direct-debit-activation-charge.mjs +3 -3
  754. package/dist/actions/trigger-direct-debit-activation-charge.mjs.map +1 -1
  755. package/dist/actions/unassign-destination-from-virtual-terminal.cjs +3 -3
  756. package/dist/actions/unassign-destination-from-virtual-terminal.cjs.map +1 -1
  757. package/dist/actions/unassign-destination-from-virtual-terminal.d.cts +12 -3
  758. package/dist/actions/unassign-destination-from-virtual-terminal.d.cts.map +1 -1
  759. package/dist/actions/unassign-destination-from-virtual-terminal.d.mts +12 -3
  760. package/dist/actions/unassign-destination-from-virtual-terminal.d.mts.map +1 -1
  761. package/dist/actions/unassign-destination-from-virtual-terminal.mjs +3 -3
  762. package/dist/actions/unassign-destination-from-virtual-terminal.mjs.map +1 -1
  763. package/dist/actions/unregister-apple-pay-domain.cjs +2 -2
  764. package/dist/actions/unregister-apple-pay-domain.cjs.map +1 -1
  765. package/dist/actions/unregister-apple-pay-domain.d.cts +11 -3
  766. package/dist/actions/unregister-apple-pay-domain.d.cts.map +1 -1
  767. package/dist/actions/unregister-apple-pay-domain.d.mts +11 -3
  768. package/dist/actions/unregister-apple-pay-domain.d.mts.map +1 -1
  769. package/dist/actions/unregister-apple-pay-domain.mjs +2 -2
  770. package/dist/actions/unregister-apple-pay-domain.mjs.map +1 -1
  771. package/dist/actions/update-customer.cjs +17 -17
  772. package/dist/actions/update-customer.cjs.map +1 -1
  773. package/dist/actions/update-customer.d.cts +34 -3
  774. package/dist/actions/update-customer.d.cts.map +1 -1
  775. package/dist/actions/update-customer.d.mts +34 -3
  776. package/dist/actions/update-customer.d.mts.map +1 -1
  777. package/dist/actions/update-customer.mjs +17 -17
  778. package/dist/actions/update-customer.mjs.map +1 -1
  779. package/dist/actions/update-payment-page.cjs +17 -17
  780. package/dist/actions/update-payment-page.cjs.map +1 -1
  781. package/dist/actions/update-payment-page.d.cts +42 -3
  782. package/dist/actions/update-payment-page.d.cts.map +1 -1
  783. package/dist/actions/update-payment-page.d.mts +42 -3
  784. package/dist/actions/update-payment-page.d.mts.map +1 -1
  785. package/dist/actions/update-payment-page.mjs +17 -17
  786. package/dist/actions/update-payment-page.mjs.map +1 -1
  787. package/dist/actions/update-payment-request.cjs +22 -22
  788. package/dist/actions/update-payment-request.cjs.map +1 -1
  789. package/dist/actions/update-payment-request.d.cts +90 -3
  790. package/dist/actions/update-payment-request.d.cts.map +1 -1
  791. package/dist/actions/update-payment-request.d.mts +90 -3
  792. package/dist/actions/update-payment-request.d.mts.map +1 -1
  793. package/dist/actions/update-payment-request.mjs +22 -22
  794. package/dist/actions/update-payment-request.mjs.map +1 -1
  795. package/dist/actions/update-payment-session-timeout.cjs +4 -4
  796. package/dist/actions/update-payment-session-timeout.cjs.map +1 -1
  797. package/dist/actions/update-payment-session-timeout.d.cts +13 -3
  798. package/dist/actions/update-payment-session-timeout.d.cts.map +1 -1
  799. package/dist/actions/update-payment-session-timeout.d.mts +13 -3
  800. package/dist/actions/update-payment-session-timeout.d.mts.map +1 -1
  801. package/dist/actions/update-payment-session-timeout.mjs +4 -4
  802. package/dist/actions/update-payment-session-timeout.mjs.map +1 -1
  803. package/dist/actions/update-plan.cjs +3 -3
  804. package/dist/actions/update-plan.cjs.map +1 -1
  805. package/dist/actions/update-plan.d.cts +37 -3
  806. package/dist/actions/update-plan.d.cts.map +1 -1
  807. package/dist/actions/update-plan.d.mts +37 -3
  808. package/dist/actions/update-plan.d.mts.map +1 -1
  809. package/dist/actions/update-plan.mjs +3 -3
  810. package/dist/actions/update-plan.mjs.map +1 -1
  811. package/dist/actions/update-product.cjs +29 -29
  812. package/dist/actions/update-product.cjs.map +1 -1
  813. package/dist/actions/update-product.d.cts +69 -3
  814. package/dist/actions/update-product.d.cts.map +1 -1
  815. package/dist/actions/update-product.d.mts +69 -3
  816. package/dist/actions/update-product.d.mts.map +1 -1
  817. package/dist/actions/update-product.mjs +29 -29
  818. package/dist/actions/update-product.mjs.map +1 -1
  819. package/dist/actions/update-split.cjs +18 -18
  820. package/dist/actions/update-split.cjs.map +1 -1
  821. package/dist/actions/update-split.d.cts +43 -3
  822. package/dist/actions/update-split.d.cts.map +1 -1
  823. package/dist/actions/update-split.d.mts +43 -3
  824. package/dist/actions/update-split.d.mts.map +1 -1
  825. package/dist/actions/update-split.mjs +18 -18
  826. package/dist/actions/update-split.mjs.map +1 -1
  827. package/dist/actions/update-storefront.cjs +3 -3
  828. package/dist/actions/update-storefront.cjs.map +1 -1
  829. package/dist/actions/update-storefront.d.cts +16 -3
  830. package/dist/actions/update-storefront.d.cts.map +1 -1
  831. package/dist/actions/update-storefront.d.mts +16 -3
  832. package/dist/actions/update-storefront.d.mts.map +1 -1
  833. package/dist/actions/update-storefront.mjs +3 -3
  834. package/dist/actions/update-storefront.mjs.map +1 -1
  835. package/dist/actions/update-subaccount.cjs +26 -26
  836. package/dist/actions/update-subaccount.cjs.map +1 -1
  837. package/dist/actions/update-subaccount.d.cts +56 -3
  838. package/dist/actions/update-subaccount.d.cts.map +1 -1
  839. package/dist/actions/update-subaccount.d.mts +56 -3
  840. package/dist/actions/update-subaccount.d.mts.map +1 -1
  841. package/dist/actions/update-subaccount.mjs +26 -26
  842. package/dist/actions/update-subaccount.mjs.map +1 -1
  843. package/dist/actions/update-transfer-recipient.cjs +20 -20
  844. package/dist/actions/update-transfer-recipient.cjs.map +1 -1
  845. package/dist/actions/update-transfer-recipient.d.cts +36 -3
  846. package/dist/actions/update-transfer-recipient.d.cts.map +1 -1
  847. package/dist/actions/update-transfer-recipient.d.mts +36 -3
  848. package/dist/actions/update-transfer-recipient.d.mts.map +1 -1
  849. package/dist/actions/update-transfer-recipient.mjs +20 -20
  850. package/dist/actions/update-transfer-recipient.mjs.map +1 -1
  851. package/dist/actions/validate-bank-account.cjs +10 -10
  852. package/dist/actions/validate-bank-account.cjs.map +1 -1
  853. package/dist/actions/validate-bank-account.d.cts +38 -3
  854. package/dist/actions/validate-bank-account.d.cts.map +1 -1
  855. package/dist/actions/validate-bank-account.d.mts +38 -3
  856. package/dist/actions/validate-bank-account.d.mts.map +1 -1
  857. package/dist/actions/validate-bank-account.mjs +10 -10
  858. package/dist/actions/validate-bank-account.mjs.map +1 -1
  859. package/dist/actions/validate-customer.cjs +3 -3
  860. package/dist/actions/validate-customer.cjs.map +1 -1
  861. package/dist/actions/validate-customer.d.cts +28 -3
  862. package/dist/actions/validate-customer.d.cts.map +1 -1
  863. package/dist/actions/validate-customer.d.mts +28 -3
  864. package/dist/actions/validate-customer.d.mts.map +1 -1
  865. package/dist/actions/validate-customer.mjs +3 -3
  866. package/dist/actions/validate-customer.mjs.map +1 -1
  867. package/dist/actions/validate-order.cjs +29 -29
  868. package/dist/actions/validate-order.cjs.map +1 -1
  869. package/dist/actions/validate-order.d.cts +53 -3
  870. package/dist/actions/validate-order.d.cts.map +1 -1
  871. package/dist/actions/validate-order.d.mts +53 -3
  872. package/dist/actions/validate-order.d.mts.map +1 -1
  873. package/dist/actions/validate-order.mjs +29 -29
  874. package/dist/actions/validate-order.mjs.map +1 -1
  875. package/dist/actions/verify-payment-request.cjs +28 -28
  876. package/dist/actions/verify-payment-request.cjs.map +1 -1
  877. package/dist/actions/verify-payment-request.d.cts +51 -3
  878. package/dist/actions/verify-payment-request.d.cts.map +1 -1
  879. package/dist/actions/verify-payment-request.d.mts +51 -3
  880. package/dist/actions/verify-payment-request.d.mts.map +1 -1
  881. package/dist/actions/verify-payment-request.mjs +28 -28
  882. package/dist/actions/verify-payment-request.mjs.map +1 -1
  883. package/dist/actions/verify-storefront-slug.cjs +3 -3
  884. package/dist/actions/verify-storefront-slug.cjs.map +1 -1
  885. package/dist/actions/verify-storefront-slug.d.cts +11 -3
  886. package/dist/actions/verify-storefront-slug.d.cts.map +1 -1
  887. package/dist/actions/verify-storefront-slug.d.mts +11 -3
  888. package/dist/actions/verify-storefront-slug.d.mts.map +1 -1
  889. package/dist/actions/verify-storefront-slug.mjs +3 -3
  890. package/dist/actions/verify-storefront-slug.mjs.map +1 -1
  891. package/dist/actions/verify-transaction.cjs +29 -29
  892. package/dist/actions/verify-transaction.cjs.map +1 -1
  893. package/dist/actions/verify-transaction.d.cts +87 -3
  894. package/dist/actions/verify-transaction.d.cts.map +1 -1
  895. package/dist/actions/verify-transaction.d.mts +87 -3
  896. package/dist/actions/verify-transaction.d.mts.map +1 -1
  897. package/dist/actions/verify-transaction.mjs +29 -29
  898. package/dist/actions/verify-transaction.mjs.map +1 -1
  899. package/dist/catalog.cjs +7 -1
  900. package/dist/catalog.cjs.map +1 -1
  901. package/dist/catalog.d.cts +8 -0
  902. package/dist/catalog.d.mts +8 -0
  903. package/dist/catalog.mjs +7 -1
  904. package/dist/catalog.mjs.map +1 -1
  905. package/package.json +2 -2
@@ -1,9 +1,67 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-split.d.ts
4
- declare const PaystackCreateSplitInput: z.ZodTypeAny;
5
- declare const PaystackCreateSplitOutput: z.ZodTypeAny;
6
- declare const paystackCreateSplit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaystackCreateSplitInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ type: z.ZodEnum<{
7
+ flat: "flat";
8
+ percentage: "percentage";
9
+ }>;
10
+ currency: z.ZodEnum<{
11
+ NGN: "NGN";
12
+ GHS: "GHS";
13
+ ZAR: "ZAR";
14
+ USD: "USD";
15
+ KES: "KES";
16
+ }>;
17
+ bearer_type: z.ZodEnum<{
18
+ subaccount: "subaccount";
19
+ account: "account";
20
+ "all-proportional": "all-proportional";
21
+ all: "all";
22
+ }>;
23
+ subaccounts: z.ZodArray<z.ZodObject<{
24
+ share: z.ZodNumber;
25
+ subaccount: z.ZodString;
26
+ }, z.core.$loose>>;
27
+ bearer_subaccount: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ declare const PaystackCreateSplitOutput: z.ZodObject<{
30
+ data: z.ZodNullable<z.ZodObject<{
31
+ id: z.ZodNullable<z.ZodNumber>;
32
+ name: z.ZodNullable<z.ZodString>;
33
+ type: z.ZodNullable<z.ZodString>;
34
+ active: z.ZodNullable<z.ZodBoolean>;
35
+ domain: z.ZodNullable<z.ZodString>;
36
+ currency: z.ZodNullable<z.ZodString>;
37
+ createdAt: z.ZodNullable<z.ZodString>;
38
+ updatedAt: z.ZodNullable<z.ZodString>;
39
+ is_dynamic: z.ZodNullable<z.ZodBoolean>;
40
+ split_code: z.ZodNullable<z.ZodString>;
41
+ bearer_type: z.ZodNullable<z.ZodString>;
42
+ integration: z.ZodNullable<z.ZodNumber>;
43
+ subaccounts: z.ZodArray<z.ZodObject<{
44
+ share: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ subaccount: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
46
+ }, z.core.$loose>>;
47
+ bearer_subaccount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ total_subaccounts: z.ZodNullable<z.ZodNumber>;
49
+ }, z.core.$loose>>;
50
+ status: z.ZodNullable<z.ZodBoolean>;
51
+ message: z.ZodNullable<z.ZodString>;
52
+ }, z.core.$loose>;
53
+ declare const paystackCreateSplit: import("@keystrokehq/action").WorkflowActionDefinition<{
54
+ name: string;
55
+ type: "flat" | "percentage";
56
+ currency: "NGN" | "GHS" | "ZAR" | "USD" | "KES";
57
+ bearer_type: "subaccount" | "account" | "all-proportional" | "all";
58
+ subaccounts: {
59
+ [x: string]: unknown;
60
+ share: number;
61
+ subaccount: string;
62
+ }[];
63
+ bearer_subaccount?: string | undefined;
64
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
65
  //#endregion
8
66
  export { paystackCreateSplit };
9
67
  //# sourceMappingURL=create-split.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-split.d.mts","names":[],"sources":["../../src/actions/create-split.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAUmC;AAAA,cAsB/D,yBAAA,EAA2B,CAAA,CAAE,UAIkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-split.d.mts","names":[],"sources":["../../src/actions/create-split.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAgCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
@@ -20,30 +20,30 @@ const PaystackCreateSplitInput = z.object({
20
20
  subaccounts: z.array(z.object({
21
21
  share: z.number().int().describe("Share amount for this subaccount. For percentage type, this is the percentage (e.g., 50 for 50%). For flat type, this is the amount in kobo/cents"),
22
22
  subaccount: z.string().describe("Subaccount code (e.g., ACCT_xxxxxxx) to receive a share of the transaction")
23
- }).describe("Subaccount with share allocation.")).describe("List of subaccounts with their respective share allocations. Each subaccount specifies the subaccount code and the share amount"),
23
+ }).passthrough().describe("Subaccount with share allocation.")).describe("List of subaccounts with their respective share allocations. Each subaccount specifies the subaccount code and the share amount"),
24
24
  bearer_subaccount: z.string().describe("Subaccount code that will bear the transaction charges. Required only when bearer_type is 'subaccount'. This subaccount will be charged for the Paystack fees").optional()
25
25
  }).describe("Request model for creating a transaction split configuration.");
26
26
  const PaystackCreateSplit_SubaccountResponseSchema = z.object({
27
27
  share: z.number().int().describe("Share amount for this subaccount").nullable().optional(),
28
28
  subaccount: z.record(z.string(), z.unknown()).describe("Subaccount details object").nullable().optional()
29
- }).describe("Subaccount information in the response.");
29
+ }).passthrough().describe("Subaccount information in the response.");
30
30
  const PaystackCreateSplit_SplitDataSchema = z.object({
31
- id: z.number().int().describe("Unique identifier for the split configuration"),
32
- name: z.string().describe("Name of the split configuration"),
33
- type: z.string().describe("Type of split (percentage or flat)"),
34
- active: z.boolean().describe("Whether the split is active"),
35
- domain: z.string().describe("Domain (test or live)"),
36
- currency: z.string().describe("Currency code for the split"),
37
- createdAt: z.string().describe("Timestamp when the split was created"),
38
- updatedAt: z.string().describe("Timestamp when the split was last updated"),
39
- is_dynamic: z.boolean().describe("Whether the split is dynamic"),
40
- split_code: z.string().describe("Unique split code (e.g., SPL_xxxxxxx)"),
41
- bearer_type: z.string().describe("Who bears the transaction charges"),
42
- integration: z.number().int().describe("Integration ID"),
31
+ id: z.number().int().describe("Unique identifier for the split configuration").nullable(),
32
+ name: z.string().describe("Name of the split configuration").nullable(),
33
+ type: z.string().describe("Type of split (percentage or flat)").nullable(),
34
+ active: z.boolean().describe("Whether the split is active").nullable(),
35
+ domain: z.string().describe("Domain (test or live)").nullable(),
36
+ currency: z.string().describe("Currency code for the split").nullable(),
37
+ createdAt: z.string().describe("Timestamp when the split was created").nullable(),
38
+ updatedAt: z.string().describe("Timestamp when the split was last updated").nullable(),
39
+ is_dynamic: z.boolean().describe("Whether the split is dynamic").nullable(),
40
+ split_code: z.string().describe("Unique split code (e.g., SPL_xxxxxxx)").nullable(),
41
+ bearer_type: z.string().describe("Who bears the transaction charges").nullable(),
42
+ integration: z.number().int().describe("Integration ID").nullable(),
43
43
  subaccounts: z.array(PaystackCreateSplit_SubaccountResponseSchema).describe("List of subaccounts in the split"),
44
44
  bearer_subaccount: z.number().int().describe("Subaccount ID bearing charges, if applicable").nullable().optional(),
45
- total_subaccounts: z.number().int().describe("Total number of subaccounts in the split")
46
- }).describe("Split configuration data returned from the API.");
45
+ total_subaccounts: z.number().int().describe("Total number of subaccounts in the split").nullable()
46
+ }).passthrough().describe("Split configuration data returned from the API.");
47
47
  const paystackCreateSplit = action("PAYSTACK_CREATE_SPLIT", {
48
48
  slug: "paystack-create-split",
49
49
  name: "Create Split Configuration",
@@ -51,9 +51,9 @@ const paystackCreateSplit = action("PAYSTACK_CREATE_SPLIT", {
51
51
  input: PaystackCreateSplitInput,
52
52
  output: z.object({
53
53
  data: PaystackCreateSplit_SplitDataSchema.nullable(),
54
- status: z.boolean().describe("Indicates if the request was successful"),
55
- message: z.string().describe("Response message from the API")
56
- }).describe("Response from creating a split configuration.")
54
+ status: z.boolean().describe("Indicates if the request was successful").nullable(),
55
+ message: z.string().describe("Response message from the API").nullable()
56
+ }).passthrough().describe("Response from creating a split configuration.")
57
57
  });
58
58
  //#endregion
59
59
  export { paystackCreateSplit };
@@ -1 +1 @@
1
- {"version":3,"file":"create-split.mjs","names":[],"sources":["../../src/actions/create-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateSplitInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name for the transaction split configuration\"),\n type: z.enum([\"percentage\", \"flat\"]).describe(\"The type of transaction split - 'percentage' for percentage-based splits or 'flat' for fixed amount splits\"),\n currency: z.enum([\"NGN\", \"GHS\", \"ZAR\", \"USD\", \"KES\"]).describe(\"The transaction currency for this split configuration\"),\n bearer_type: z.enum([\"subaccount\", \"account\", \"all-proportional\", \"all\"]).describe(\"Specifies who bears the Paystack transaction charges. 'subaccount' means a specific subaccount bears it, 'account' means the main account bears it, 'all-proportional' distributes charges proportionally, 'all' means all parties share charges\"),\n subaccounts: z.array(z.object({\n share: z.number().int().describe(\"Share amount for this subaccount. For percentage type, this is the percentage (e.g., 50 for 50%). For flat type, this is the amount in kobo/cents\"),\n subaccount: z.string().describe(\"Subaccount code (e.g., ACCT_xxxxxxx) to receive a share of the transaction\"),\n}).describe(\"Subaccount with share allocation.\")).describe(\"List of subaccounts with their respective share allocations. Each subaccount specifies the subaccount code and the share amount\"),\n bearer_subaccount: z.string().describe(\"Subaccount code that will bear the transaction charges. Required only when bearer_type is 'subaccount'. This subaccount will be charged for the Paystack fees\").optional(),\n}).describe(\"Request model for creating a transaction split configuration.\");\nconst PaystackCreateSplit_SubaccountResponseSchema: z.ZodTypeAny = z.object({\n share: z.number().int().describe(\"Share amount for this subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).describe(\"Subaccount information in the response.\");\nconst PaystackCreateSplit_SplitDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier for the split configuration\"),\n name: z.string().describe(\"Name of the split configuration\"),\n type: z.string().describe(\"Type of split (percentage or flat)\"),\n active: z.boolean().describe(\"Whether the split is active\"),\n domain: z.string().describe(\"Domain (test or live)\"),\n currency: z.string().describe(\"Currency code for the split\"),\n createdAt: z.string().describe(\"Timestamp when the split was created\"),\n updatedAt: z.string().describe(\"Timestamp when the split was last updated\"),\n is_dynamic: z.boolean().describe(\"Whether the split is dynamic\"),\n split_code: z.string().describe(\"Unique split code (e.g., SPL_xxxxxxx)\"),\n bearer_type: z.string().describe(\"Who bears the transaction charges\"),\n integration: z.number().int().describe(\"Integration ID\"),\n subaccounts: z.array(PaystackCreateSplit_SubaccountResponseSchema).describe(\"List of subaccounts in the split\"),\n bearer_subaccount: z.number().int().describe(\"Subaccount ID bearing charges, if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\"),\n}).describe(\"Split configuration data returned from the API.\");\nexport const PaystackCreateSplitOutput: z.ZodTypeAny = z.object({\n data: PaystackCreateSplit_SplitDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response from creating a split configuration.\");\n\nexport const paystackCreateSplit = action(\"PAYSTACK_CREATE_SPLIT\", {\n slug: \"paystack-create-split\",\n name: \"Create Split Configuration\",\n description: \"Tool to create a split configuration for transaction revenue sharing. Use when you need to configure how transaction revenue should be split between multiple subaccounts (e.g., for marketplace platforms, revenue sharing, or commission distribution).\",\n input: PaystackCreateSplitInput,\n output: PaystackCreateSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,MAAM,EAAE,KAAK,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,SAAS,4GAA4G;CAC1J,UAAU,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACtH,aAAa,EAAE,KAAK;EAAC;EAAc;EAAW;EAAoB;CAAK,CAAC,CAAC,CAAC,SAAS,kPAAkP;CACrU,aAAa,EAAE,MAAM,EAAE,OAAO;EAC9B,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mJAAmJ;EACpL,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC9G,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,SAAS,iIAAiI;CAC1L,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;AACnN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,+CAA6D,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAC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AOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-split.mjs","names":[],"sources":["../../src/actions/create-split.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateSplitInput = z.object({\n name: z.string().describe(\"Name for the transaction split configuration\"),\n type: z.enum([\"percentage\", \"flat\"]).describe(\"The type of transaction split - 'percentage' for percentage-based splits or 'flat' for fixed amount splits\"),\n currency: z.enum([\"NGN\", \"GHS\", \"ZAR\", \"USD\", \"KES\"]).describe(\"The transaction currency for this split configuration\"),\n bearer_type: z.enum([\"subaccount\", \"account\", \"all-proportional\", \"all\"]).describe(\"Specifies who bears the Paystack transaction charges. 'subaccount' means a specific subaccount bears it, 'account' means the main account bears it, 'all-proportional' distributes charges proportionally, 'all' means all parties share charges\"),\n subaccounts: z.array(z.object({\n share: z.number().int().describe(\"Share amount for this subaccount. For percentage type, this is the percentage (e.g., 50 for 50%). For flat type, this is the amount in kobo/cents\"),\n subaccount: z.string().describe(\"Subaccount code (e.g., ACCT_xxxxxxx) to receive a share of the transaction\"),\n}).passthrough().describe(\"Subaccount with share allocation.\")).describe(\"List of subaccounts with their respective share allocations. Each subaccount specifies the subaccount code and the share amount\"),\n bearer_subaccount: z.string().describe(\"Subaccount code that will bear the transaction charges. Required only when bearer_type is 'subaccount'. This subaccount will be charged for the Paystack fees\").optional(),\n}).describe(\"Request model for creating a transaction split configuration.\");\nconst PaystackCreateSplit_SubaccountResponseSchema = z.object({\n share: z.number().int().describe(\"Share amount for this subaccount\").nullable().optional(),\n subaccount: z.record(z.string(), z.unknown()).describe(\"Subaccount details object\").nullable().optional(),\n}).passthrough().describe(\"Subaccount information in the response.\");\nconst PaystackCreateSplit_SplitDataSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the split configuration\").nullable(),\n name: z.string().describe(\"Name of the split configuration\").nullable(),\n type: z.string().describe(\"Type of split (percentage or flat)\").nullable(),\n active: z.boolean().describe(\"Whether the split is active\").nullable(),\n domain: z.string().describe(\"Domain (test or live)\").nullable(),\n currency: z.string().describe(\"Currency code for the split\").nullable(),\n createdAt: z.string().describe(\"Timestamp when the split was created\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the split was last updated\").nullable(),\n is_dynamic: z.boolean().describe(\"Whether the split is dynamic\").nullable(),\n split_code: z.string().describe(\"Unique split code (e.g., SPL_xxxxxxx)\").nullable(),\n bearer_type: z.string().describe(\"Who bears the transaction charges\").nullable(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n subaccounts: z.array(PaystackCreateSplit_SubaccountResponseSchema).describe(\"List of subaccounts in the split\"),\n bearer_subaccount: z.number().int().describe(\"Subaccount ID bearing charges, if applicable\").nullable().optional(),\n total_subaccounts: z.number().int().describe(\"Total number of subaccounts in the split\").nullable(),\n}).passthrough().describe(\"Split configuration data returned from the API.\");\nexport const PaystackCreateSplitOutput = z.object({\n data: PaystackCreateSplit_SplitDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response from creating a split configuration.\");\n\nexport const paystackCreateSplit = action(\"PAYSTACK_CREATE_SPLIT\", {\n slug: \"paystack-create-split\",\n name: \"Create Split Configuration\",\n description: \"Tool to create a split configuration for transaction revenue sharing. Use when you need to configure how transaction revenue should be split between multiple subaccounts (e.g., for marketplace platforms, revenue sharing, or commission distribution).\",\n input: PaystackCreateSplitInput,\n output: PaystackCreateSplitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,MAAM,EAAE,KAAK,CAAC,cAAc,MAAM,CAAC,CAAC,CAAC,SAAS,4GAA4G;CAC1J,UAAU,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,uDAAuD;CACtH,aAAa,EAAE,KAAK;EAAC;EAAc;EAAW;EAAoB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sC,CAAC,CAAC,SAAS;CAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAClE,aAAa,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,kCAAkC;CAC9G,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAO3E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuC,EAAE,OAAO;EAChD,MAAM,oCAAoC,SAAS;EACnD,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -14,34 +14,34 @@ const PaystackCreateStorefrontInput = zod.z.object({
14
14
  description: zod.z.string().describe("The description of the storefront").optional()
15
15
  }).describe("Request to create a new storefront.");
16
16
  const PaystackCreateStorefront_StorefrontDataSchema = zod.z.object({
17
- id: zod.z.string().describe("Unique storefront identifier"),
18
- name: zod.z.string().describe("Name of the storefront"),
19
- slug: zod.z.string().describe("Unique slug to access the storefront"),
20
- domain: zod.z.string().describe("Domain where the storefront is accessible"),
21
- status: zod.z.string().describe("Status of the storefront"),
22
- contacts: zod.z.array(zod.z.object({})).describe("Contact information"),
23
- currency: zod.z.string().describe("Currency for product prices"),
24
- metadata: zod.z.object({}).describe("Additional metadata for the storefront").nullable().optional(),
25
- products: zod.z.array(zod.z.object({})).describe("Products in the storefront"),
26
- createdAt: zod.z.string().describe("Timestamp when the storefront was created"),
27
- shippable: zod.z.boolean().describe("Whether the storefront supports shipping"),
28
- updatedAt: zod.z.string().describe("Timestamp when the storefront was last updated"),
17
+ id: zod.z.string().describe("Unique storefront identifier").nullable(),
18
+ name: zod.z.string().describe("Name of the storefront").nullable(),
19
+ slug: zod.z.string().describe("Unique slug to access the storefront").nullable(),
20
+ domain: zod.z.string().describe("Domain where the storefront is accessible").nullable(),
21
+ status: zod.z.string().describe("Status of the storefront").nullable(),
22
+ contacts: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Contact information"),
23
+ currency: zod.z.string().describe("Currency for product prices").nullable(),
24
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional metadata for the storefront").nullable().optional(),
25
+ products: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Products in the storefront"),
26
+ createdAt: zod.z.string().describe("Timestamp when the storefront was created").nullable(),
27
+ shippable: zod.z.boolean().describe("Whether the storefront supports shipping").nullable(),
28
+ updatedAt: zod.z.string().describe("Timestamp when the storefront was last updated").nullable(),
29
29
  description: zod.z.string().describe("Description of the storefront").nullable().optional(),
30
- integration: zod.z.number().int().describe("Integration ID"),
30
+ integration: zod.z.number().int().describe("Integration ID").nullable(),
31
31
  redirect_url: zod.z.string().describe("URL to redirect after successful purchase").nullable().optional(),
32
- social_media: zod.z.array(zod.z.object({})).describe("Social media links"),
33
- delivery_note: zod.z.string().describe("Delivery note for the storefront"),
34
- shipping_fees: zod.z.array(zod.z.object({})).describe("Shipping fee configurations"),
32
+ social_media: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Social media links"),
33
+ delivery_note: zod.z.string().describe("Delivery note for the storefront").nullable(),
34
+ shipping_fees: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Shipping fee configurations"),
35
35
  success_message: zod.z.string().describe("Success message after purchase").nullable().optional(),
36
36
  welcome_message: zod.z.string().describe("Welcome message for the storefront").nullable().optional(),
37
- background_color: zod.z.string().describe("Background color of the storefront"),
37
+ background_color: zod.z.string().describe("Background color of the storefront").nullable(),
38
38
  digital_product_expiry: zod.z.number().int().describe("Expiry time for digital products in seconds").nullable().optional()
39
- }).describe("Storefront data returned from the API.");
39
+ }).passthrough().describe("Storefront data returned from the API.");
40
40
  const PaystackCreateStorefrontOutput = zod.z.object({
41
41
  data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),
42
- status: zod.z.boolean().describe("Indicates if the request was successful"),
43
- message: zod.z.string().describe("Response message from the API")
44
- }).describe("Response containing the created storefront details.");
42
+ status: zod.z.boolean().describe("Indicates if the request was successful").nullable(),
43
+ message: zod.z.string().describe("Response message from the API").nullable()
44
+ }).passthrough().describe("Response containing the created storefront details.");
45
45
  const paystackCreateStorefront = require_action.action("PAYSTACK_CREATE_STOREFRONT", {
46
46
  slug: "paystack-create-storefront",
47
47
  name: "Create Storefront",
@@ -1 +1 @@
1
- {"version":3,"file":"create-storefront.cjs","names":["z","action"],"sources":["../../src/actions/create-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateStorefrontInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"A unique identifier to access your store. Once the storefront is created, it can be accessed from https://paystack.shop/your-slug\"),\n currency: z.enum([\"GHS\", \"KES\", \"NGN\", \"USD\", \"ZAR\"]).describe(\"Currency for prices of products in your storefront. Must be one of: GHS, KES, NGN, USD, ZAR\"),\n description: z.string().describe(\"The description of the storefront\").optional(),\n}).describe(\"Request to create a new storefront.\");\nconst PaystackCreateStorefront_StorefrontDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique storefront identifier\"),\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"Unique slug to access the storefront\"),\n domain: z.string().describe(\"Domain where the storefront is accessible\"),\n status: z.string().describe(\"Status of the storefront\"),\n contacts: z.array(z.object({})).describe(\"Contact information\"),\n currency: z.string().describe(\"Currency for product prices\"),\n metadata: z.object({}).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.object({})).describe(\"Products in the storefront\"),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\"),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\"),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\"),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\"),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.object({})).describe(\"Social media links\"),\n delivery_note: z.string().describe(\"Delivery note for the storefront\"),\n shipping_fees: z.array(z.object({})).describe(\"Shipping fee configurations\"),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\"),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).describe(\"Storefront data returned from the API.\");\nexport const PaystackCreateStorefrontOutput: z.ZodTypeAny = z.object({\n data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing the created storefront details.\");\n\nexport const paystackCreateStorefront = action(\"PAYSTACK_CREATE_STOREFRONT\", {\n slug: \"paystack-create-storefront\",\n name: \"Create Storefront\",\n description: \"Create a digital storefront on Paystack to manage and display products. Use this when you need to set up a new online shop for selling digital or physical products.\",\n input: PaystackCreateStorefrontInput,\n output: PaystackCreateStorefrontOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC7J,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,6FAA6F;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACtD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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C,CAAC,SAAS,+BAA+B;AAC9D,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-storefront.cjs","names":["z","action"],"sources":["../../src/actions/create-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateStorefrontInput = z.object({\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"A unique identifier to access your store. Once the storefront is created, it can be accessed from https://paystack.shop/your-slug\"),\n currency: z.enum([\"GHS\", \"KES\", \"NGN\", \"USD\", \"ZAR\"]).describe(\"Currency for prices of products in your storefront. Must be one of: GHS, KES, NGN, USD, ZAR\"),\n description: z.string().describe(\"The description of the storefront\").optional(),\n}).describe(\"Request to create a new storefront.\");\nconst PaystackCreateStorefront_StorefrontDataSchema = z.object({\n id: z.string().describe(\"Unique storefront identifier\").nullable(),\n name: z.string().describe(\"Name of the storefront\").nullable(),\n slug: z.string().describe(\"Unique slug to access the storefront\").nullable(),\n domain: z.string().describe(\"Domain where the storefront is accessible\").nullable(),\n status: z.string().describe(\"Status of the storefront\").nullable(),\n contacts: z.array(z.record(z.string(), z.unknown())).describe(\"Contact information\"),\n currency: z.string().describe(\"Currency for product prices\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.record(z.string(), z.unknown())).describe(\"Products in the storefront\"),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\").nullable(),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\").nullable(),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.record(z.string(), z.unknown())).describe(\"Social media links\"),\n delivery_note: z.string().describe(\"Delivery note for the storefront\").nullable(),\n shipping_fees: z.array(z.record(z.string(), z.unknown())).describe(\"Shipping fee configurations\"),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\").nullable(),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).passthrough().describe(\"Storefront data returned from the API.\");\nexport const PaystackCreateStorefrontOutput = z.object({\n data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing the created storefront details.\");\n\nexport const paystackCreateStorefront = action(\"PAYSTACK_CREATE_STOREFRONT\", {\n slug: \"paystack-create-storefront\",\n name: \"Create Storefront\",\n description: \"Create a digital storefront on Paystack to manage and display products. Use this when you need to set up a new online shop for selling digital or physical products.\",\n input: PaystackCreateStorefrontInput,\n output: PaystackCreateStorefrontOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC7J,UAAUA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,6FAA6F;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;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CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-storefront.d.ts
4
- declare const PaystackCreateStorefrontInput: z.ZodTypeAny;
5
- declare const PaystackCreateStorefrontOutput: z.ZodTypeAny;
6
- declare const paystackCreateStorefront: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaystackCreateStorefrontInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ slug: z.ZodString;
7
+ currency: z.ZodEnum<{
8
+ NGN: "NGN";
9
+ GHS: "GHS";
10
+ ZAR: "ZAR";
11
+ USD: "USD";
12
+ KES: "KES";
13
+ }>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const PaystackCreateStorefrontOutput: z.ZodObject<{
17
+ data: z.ZodNullable<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodNullable<z.ZodString>;
20
+ slug: z.ZodNullable<z.ZodString>;
21
+ domain: z.ZodNullable<z.ZodString>;
22
+ status: z.ZodNullable<z.ZodString>;
23
+ contacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
+ currency: z.ZodNullable<z.ZodString>;
25
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ products: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ createdAt: z.ZodNullable<z.ZodString>;
28
+ shippable: z.ZodNullable<z.ZodBoolean>;
29
+ updatedAt: z.ZodNullable<z.ZodString>;
30
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ integration: z.ZodNullable<z.ZodNumber>;
32
+ redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ social_media: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ delivery_note: z.ZodNullable<z.ZodString>;
35
+ shipping_fees: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ success_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ welcome_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ background_color: z.ZodNullable<z.ZodString>;
39
+ digital_product_expiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ }, z.core.$loose>>;
41
+ status: z.ZodNullable<z.ZodBoolean>;
42
+ message: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>;
44
+ declare const paystackCreateStorefront: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ name: string;
46
+ slug: string;
47
+ currency: "NGN" | "GHS" | "ZAR" | "USD" | "KES";
48
+ description?: string | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { paystackCreateStorefront };
9
52
  //# sourceMappingURL=create-storefront.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-storefront.d.cts","names":[],"sources":["../../src/actions/create-storefront.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKI;AAAA,cAyBrC,8BAAA,EAAgC,CAAA,CAAE,UAImB;AAAA,cAErD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-storefront.d.cts","names":[],"sources":["../../src/actions/create-storefront.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-storefront.d.ts
4
- declare const PaystackCreateStorefrontInput: z.ZodTypeAny;
5
- declare const PaystackCreateStorefrontOutput: z.ZodTypeAny;
6
- declare const paystackCreateStorefront: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaystackCreateStorefrontInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ slug: z.ZodString;
7
+ currency: z.ZodEnum<{
8
+ NGN: "NGN";
9
+ GHS: "GHS";
10
+ ZAR: "ZAR";
11
+ USD: "USD";
12
+ KES: "KES";
13
+ }>;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ declare const PaystackCreateStorefrontOutput: z.ZodObject<{
17
+ data: z.ZodNullable<z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodString>;
19
+ name: z.ZodNullable<z.ZodString>;
20
+ slug: z.ZodNullable<z.ZodString>;
21
+ domain: z.ZodNullable<z.ZodString>;
22
+ status: z.ZodNullable<z.ZodString>;
23
+ contacts: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
24
+ currency: z.ZodNullable<z.ZodString>;
25
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ products: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
27
+ createdAt: z.ZodNullable<z.ZodString>;
28
+ shippable: z.ZodNullable<z.ZodBoolean>;
29
+ updatedAt: z.ZodNullable<z.ZodString>;
30
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ integration: z.ZodNullable<z.ZodNumber>;
32
+ redirect_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ social_media: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
34
+ delivery_note: z.ZodNullable<z.ZodString>;
35
+ shipping_fees: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
36
+ success_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ welcome_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ background_color: z.ZodNullable<z.ZodString>;
39
+ digital_product_expiry: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ }, z.core.$loose>>;
41
+ status: z.ZodNullable<z.ZodBoolean>;
42
+ message: z.ZodNullable<z.ZodString>;
43
+ }, z.core.$loose>;
44
+ declare const paystackCreateStorefront: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ name: string;
46
+ slug: string;
47
+ currency: "NGN" | "GHS" | "ZAR" | "USD" | "KES";
48
+ description?: string | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { paystackCreateStorefront };
9
52
  //# sourceMappingURL=create-storefront.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-storefront.d.mts","names":[],"sources":["../../src/actions/create-storefront.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAKI;AAAA,cAyBrC,8BAAA,EAAgC,CAAA,CAAE,UAImB;AAAA,cAErD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-storefront.d.mts","names":[],"sources":["../../src/actions/create-storefront.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;cA8B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
@@ -14,29 +14,29 @@ const PaystackCreateStorefrontInput = z.object({
14
14
  description: z.string().describe("The description of the storefront").optional()
15
15
  }).describe("Request to create a new storefront.");
16
16
  const PaystackCreateStorefront_StorefrontDataSchema = z.object({
17
- id: z.string().describe("Unique storefront identifier"),
18
- name: z.string().describe("Name of the storefront"),
19
- slug: z.string().describe("Unique slug to access the storefront"),
20
- domain: z.string().describe("Domain where the storefront is accessible"),
21
- status: z.string().describe("Status of the storefront"),
22
- contacts: z.array(z.object({})).describe("Contact information"),
23
- currency: z.string().describe("Currency for product prices"),
24
- metadata: z.object({}).describe("Additional metadata for the storefront").nullable().optional(),
25
- products: z.array(z.object({})).describe("Products in the storefront"),
26
- createdAt: z.string().describe("Timestamp when the storefront was created"),
27
- shippable: z.boolean().describe("Whether the storefront supports shipping"),
28
- updatedAt: z.string().describe("Timestamp when the storefront was last updated"),
17
+ id: z.string().describe("Unique storefront identifier").nullable(),
18
+ name: z.string().describe("Name of the storefront").nullable(),
19
+ slug: z.string().describe("Unique slug to access the storefront").nullable(),
20
+ domain: z.string().describe("Domain where the storefront is accessible").nullable(),
21
+ status: z.string().describe("Status of the storefront").nullable(),
22
+ contacts: z.array(z.record(z.string(), z.unknown())).describe("Contact information"),
23
+ currency: z.string().describe("Currency for product prices").nullable(),
24
+ metadata: z.record(z.string(), z.unknown()).describe("Additional metadata for the storefront").nullable().optional(),
25
+ products: z.array(z.record(z.string(), z.unknown())).describe("Products in the storefront"),
26
+ createdAt: z.string().describe("Timestamp when the storefront was created").nullable(),
27
+ shippable: z.boolean().describe("Whether the storefront supports shipping").nullable(),
28
+ updatedAt: z.string().describe("Timestamp when the storefront was last updated").nullable(),
29
29
  description: z.string().describe("Description of the storefront").nullable().optional(),
30
- integration: z.number().int().describe("Integration ID"),
30
+ integration: z.number().int().describe("Integration ID").nullable(),
31
31
  redirect_url: z.string().describe("URL to redirect after successful purchase").nullable().optional(),
32
- social_media: z.array(z.object({})).describe("Social media links"),
33
- delivery_note: z.string().describe("Delivery note for the storefront"),
34
- shipping_fees: z.array(z.object({})).describe("Shipping fee configurations"),
32
+ social_media: z.array(z.record(z.string(), z.unknown())).describe("Social media links"),
33
+ delivery_note: z.string().describe("Delivery note for the storefront").nullable(),
34
+ shipping_fees: z.array(z.record(z.string(), z.unknown())).describe("Shipping fee configurations"),
35
35
  success_message: z.string().describe("Success message after purchase").nullable().optional(),
36
36
  welcome_message: z.string().describe("Welcome message for the storefront").nullable().optional(),
37
- background_color: z.string().describe("Background color of the storefront"),
37
+ background_color: z.string().describe("Background color of the storefront").nullable(),
38
38
  digital_product_expiry: z.number().int().describe("Expiry time for digital products in seconds").nullable().optional()
39
- }).describe("Storefront data returned from the API.");
39
+ }).passthrough().describe("Storefront data returned from the API.");
40
40
  const paystackCreateStorefront = action("PAYSTACK_CREATE_STOREFRONT", {
41
41
  slug: "paystack-create-storefront",
42
42
  name: "Create Storefront",
@@ -44,9 +44,9 @@ const paystackCreateStorefront = action("PAYSTACK_CREATE_STOREFRONT", {
44
44
  input: PaystackCreateStorefrontInput,
45
45
  output: z.object({
46
46
  data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),
47
- status: z.boolean().describe("Indicates if the request was successful"),
48
- message: z.string().describe("Response message from the API")
49
- }).describe("Response containing the created storefront details.")
47
+ status: z.boolean().describe("Indicates if the request was successful").nullable(),
48
+ message: z.string().describe("Response message from the API").nullable()
49
+ }).passthrough().describe("Response containing the created storefront details.")
50
50
  });
51
51
  //#endregion
52
52
  export { paystackCreateStorefront };
@@ -1 +1 @@
1
- {"version":3,"file":"create-storefront.mjs","names":[],"sources":["../../src/actions/create-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateStorefrontInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"A unique identifier to access your store. Once the storefront is created, it can be accessed from https://paystack.shop/your-slug\"),\n currency: z.enum([\"GHS\", \"KES\", \"NGN\", \"USD\", \"ZAR\"]).describe(\"Currency for prices of products in your storefront. Must be one of: GHS, KES, NGN, USD, ZAR\"),\n description: z.string().describe(\"The description of the storefront\").optional(),\n}).describe(\"Request to create a new storefront.\");\nconst PaystackCreateStorefront_StorefrontDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique storefront identifier\"),\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"Unique slug to access the storefront\"),\n domain: z.string().describe(\"Domain where the storefront is accessible\"),\n status: z.string().describe(\"Status of the storefront\"),\n contacts: z.array(z.object({})).describe(\"Contact information\"),\n currency: z.string().describe(\"Currency for product prices\"),\n metadata: z.object({}).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.object({})).describe(\"Products in the storefront\"),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\"),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\"),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\"),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\"),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.object({})).describe(\"Social media links\"),\n delivery_note: z.string().describe(\"Delivery note for the storefront\"),\n shipping_fees: z.array(z.object({})).describe(\"Shipping fee configurations\"),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\"),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).describe(\"Storefront data returned from the API.\");\nexport const PaystackCreateStorefrontOutput: z.ZodTypeAny = z.object({\n data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\"),\n message: z.string().describe(\"Response message from the API\"),\n}).describe(\"Response containing the created storefront details.\");\n\nexport const paystackCreateStorefront = action(\"PAYSTACK_CREATE_STOREFRONT\", {\n slug: \"paystack-create-storefront\",\n name: \"Create Storefront\",\n description: \"Create a digital storefront on Paystack to manage and display products. Use this when you need to set up a new online shop for selling digital or physical products.\",\n input: PaystackCre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S;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB;CACvD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,oBAAoB;CACjE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CACrE,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6BAA6B;CAC3E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC1E,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,8CAA8C,SAAS;EAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;EACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC9D,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-storefront.mjs","names":[],"sources":["../../src/actions/create-storefront.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateStorefrontInput = z.object({\n name: z.string().describe(\"Name of the storefront\"),\n slug: z.string().describe(\"A unique identifier to access your store. Once the storefront is created, it can be accessed from https://paystack.shop/your-slug\"),\n currency: z.enum([\"GHS\", \"KES\", \"NGN\", \"USD\", \"ZAR\"]).describe(\"Currency for prices of products in your storefront. Must be one of: GHS, KES, NGN, USD, ZAR\"),\n description: z.string().describe(\"The description of the storefront\").optional(),\n}).describe(\"Request to create a new storefront.\");\nconst PaystackCreateStorefront_StorefrontDataSchema = z.object({\n id: z.string().describe(\"Unique storefront identifier\").nullable(),\n name: z.string().describe(\"Name of the storefront\").nullable(),\n slug: z.string().describe(\"Unique slug to access the storefront\").nullable(),\n domain: z.string().describe(\"Domain where the storefront is accessible\").nullable(),\n status: z.string().describe(\"Status of the storefront\").nullable(),\n contacts: z.array(z.record(z.string(), z.unknown())).describe(\"Contact information\"),\n currency: z.string().describe(\"Currency for product prices\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the storefront\").nullable().optional(),\n products: z.array(z.record(z.string(), z.unknown())).describe(\"Products in the storefront\"),\n createdAt: z.string().describe(\"Timestamp when the storefront was created\").nullable(),\n shippable: z.boolean().describe(\"Whether the storefront supports shipping\").nullable(),\n updatedAt: z.string().describe(\"Timestamp when the storefront was last updated\").nullable(),\n description: z.string().describe(\"Description of the storefront\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n redirect_url: z.string().describe(\"URL to redirect after successful purchase\").nullable().optional(),\n social_media: z.array(z.record(z.string(), z.unknown())).describe(\"Social media links\"),\n delivery_note: z.string().describe(\"Delivery note for the storefront\").nullable(),\n shipping_fees: z.array(z.record(z.string(), z.unknown())).describe(\"Shipping fee configurations\"),\n success_message: z.string().describe(\"Success message after purchase\").nullable().optional(),\n welcome_message: z.string().describe(\"Welcome message for the storefront\").nullable().optional(),\n background_color: z.string().describe(\"Background color of the storefront\").nullable(),\n digital_product_expiry: z.number().int().describe(\"Expiry time for digital products in seconds\").nullable().optional(),\n}).passthrough().describe(\"Storefront data returned from the API.\");\nexport const PaystackCreateStorefrontOutput = z.object({\n data: PaystackCreateStorefront_StorefrontDataSchema.nullable(),\n status: z.boolean().describe(\"Indicates if the request was successful\").nullable(),\n message: z.string().describe(\"Response message from the API\").nullable(),\n}).passthrough().describe(\"Response containing the created storefront details.\");\n\nexport const paystackCreateStorefront = action(\"PAYSTACK_CREATE_STOREFRONT\", {\n slug: \"paystack-create-storefront\",\n name: \"Create Storefront\",\n description: \"Create a digital storefront on Paystack to manage and display products. Use this when you need to set up a new online shop for selling digital or physical products.\",\n input: PaystackCreateStorefrontInput,\n output: PaystackCreateStorefrontOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI;CAC7J,UAAU,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,SAAS,6FAA6F;CAC5J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB;CACnF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B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CAAC,CAAC,SAAS;CACrF,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAOlE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,8CAA8C,SAAS;EAC7D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
@@ -13,36 +13,36 @@ const PaystackCreateSubaccountInput = zod.z.object({
13
13
  primary_contact_phone: zod.z.string().describe("A phone number to call for this subaccount").optional()
14
14
  });
15
15
  const PaystackCreateSubaccount_SubaccountDataSchema = zod.z.object({
16
- id: zod.z.number().int().describe("Subaccount ID"),
17
- bank: zod.z.number().int().describe("Bank ID"),
18
- active: zod.z.boolean().describe("Active status"),
19
- domain: zod.z.string().describe("Domain"),
20
- migrate: zod.z.boolean().describe("Migration status"),
21
- product: zod.z.string().describe("Product type"),
22
- currency: zod.z.string().describe("Currency code"),
16
+ id: zod.z.number().int().describe("Subaccount ID").nullable(),
17
+ bank: zod.z.number().int().describe("Bank ID").nullable(),
18
+ active: zod.z.boolean().describe("Active status").nullable(),
19
+ domain: zod.z.string().describe("Domain").nullable(),
20
+ migrate: zod.z.boolean().describe("Migration status").nullable(),
21
+ product: zod.z.string().describe("Product type").nullable(),
22
+ currency: zod.z.string().describe("Currency code").nullable(),
23
23
  metadata: zod.z.string().describe("Custom metadata").nullable().optional(),
24
- createdAt: zod.z.string().describe("Creation timestamp"),
25
- updatedAt: zod.z.string().describe("Last update timestamp"),
24
+ createdAt: zod.z.string().describe("Creation timestamp").nullable(),
25
+ updatedAt: zod.z.string().describe("Last update timestamp").nullable(),
26
26
  description: zod.z.string().describe("Description for the subaccount").nullable().optional(),
27
- integration: zod.z.number().int().describe("Integration ID"),
28
- is_verified: zod.z.boolean().describe("Verification status"),
27
+ integration: zod.z.number().int().describe("Integration ID").nullable(),
28
+ is_verified: zod.z.boolean().describe("Verification status").nullable(),
29
29
  account_name: zod.z.string().describe("Bank account name").nullable().optional(),
30
- business_name: zod.z.string().describe("Name of business for subaccount"),
31
- account_number: zod.z.string().describe("Bank account number"),
32
- settlement_bank: zod.z.string().describe("Settlement bank code"),
33
- subaccount_code: zod.z.string().describe("Unique subaccount code"),
34
- percentage_charge: zod.z.number().describe("Percentage charge"),
35
- settlement_schedule: zod.z.string().describe("Settlement schedule"),
30
+ business_name: zod.z.string().describe("Name of business for subaccount").nullable(),
31
+ account_number: zod.z.string().describe("Bank account number").nullable(),
32
+ settlement_bank: zod.z.string().describe("Settlement bank code").nullable(),
33
+ subaccount_code: zod.z.string().describe("Unique subaccount code").nullable(),
34
+ percentage_charge: zod.z.number().describe("Percentage charge").nullable(),
35
+ settlement_schedule: zod.z.string().describe("Settlement schedule").nullable(),
36
36
  primary_contact_name: zod.z.string().describe("Contact name for the subaccount").nullable().optional(),
37
37
  primary_contact_email: zod.z.string().describe("Contact email for the subaccount").nullable().optional(),
38
38
  primary_contact_phone: zod.z.string().describe("Contact phone for the subaccount").nullable().optional(),
39
- managed_by_integration: zod.z.number().int().describe("Managed by integration ID")
40
- });
39
+ managed_by_integration: zod.z.number().int().describe("Managed by integration ID").nullable()
40
+ }).passthrough();
41
41
  const PaystackCreateSubaccountOutput = zod.z.object({
42
42
  data: PaystackCreateSubaccount_SubaccountDataSchema.nullable(),
43
- status: zod.z.boolean().describe("Request status"),
44
- message: zod.z.string().describe("Response message")
45
- });
43
+ status: zod.z.boolean().describe("Request status").nullable(),
44
+ message: zod.z.string().describe("Response message").nullable()
45
+ }).passthrough();
46
46
  const paystackCreateSubaccount = require_action.action("PAYSTACK_CREATE_SUBACCOUNT", {
47
47
  slug: "paystack-create-subaccount",
48
48
  name: "Create Subaccount",
@@ -1 +1 @@
1
- {"version":3,"file":"create-subaccount.cjs","names":["z","action"],"sources":["../../src/actions/create-subaccount.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateSubaccountInput: z.ZodTypeAny = z.object({\n metadata: z.string().describe(\"Stringified JSON object of custom data\").optional(),\n description: z.string().describe(\"A description for this subaccount\").optional(),\n business_name: z.string().describe(\"Name of business for subaccount\"),\n account_number: z.string().describe(\"Bank account number\"),\n settlement_bank: z.string().describe(\"Bank code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint.\"),\n percentage_charge: z.number().describe(\"Percentage of transaction amount charged by the subaccount\"),\n primary_contact_name: z.string().describe(\"The name of the contact person for this subaccount\").optional(),\n primary_contact_email: z.string().describe(\"A contact email for the subaccount\").optional(),\n primary_contact_phone: z.string().describe(\"A phone number to call for this subaccount\").optional(),\n});\nconst PaystackCreateSubaccount_SubaccountDataSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Subaccount ID\"),\n bank: z.number().int().describe(\"Bank ID\"),\n active: z.boolean().describe(\"Active status\"),\n domain: z.string().describe(\"Domain\"),\n migrate: z.boolean().describe(\"Migration status\"),\n product: z.string().describe(\"Product type\"),\n currency: z.string().describe(\"Currency code\"),\n metadata: z.string().describe(\"Custom metadata\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\"),\n updatedAt: z.string().describe(\"Last update timestamp\"),\n description: z.string().describe(\"Description for the subaccount\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\"),\n is_verified: z.boolean().describe(\"Verification status\"),\n account_name: z.string().describe(\"Bank account name\").nullable().optional(),\n business_name: z.string().describe(\"Name of business for subaccount\"),\n account_number: z.string().describe(\"Bank account number\"),\n settlement_bank: z.string().describe(\"Settlement bank code\"),\n subaccount_code: z.string().describe(\"Unique subaccount code\"),\n percentage_charge: z.number().describe(\"Percentage charge\"),\n settlement_schedule: z.string().describe(\"Settlement schedule\"),\n primary_contact_name: z.string().describe(\"Contact name for the subaccount\").nullable().optional(),\n primary_contact_email: z.string().describe(\"Contact email for the subaccount\").nullable().optional(),\n primary_contact_phone: z.string().describe(\"Contact phone for the subaccount\").nullable().optional(),\n managed_by_integration: z.number().int().describe(\"Managed by integration ID\"),\n});\nexport const PaystackCreateSubaccountOutput: z.ZodTypeAny = z.object({\n data: PaystackCreateSubaccount_SubaccountDataSchema.nullable(),\n status: z.boolean().describe(\"Request status\"),\n message: z.string().describe(\"Response message\"),\n});\n\nexport const paystackCreateSubaccount = action(\"PAYSTACK_CREATE_SUBACCOUNT\", {\n slug: \"paystack-create-subaccount\",\n name: \"Create Subaccount\",\n description: \"Tool to create a subaccount on your Paystack integration. Use when you need to set up a new subaccount with bank details and settlement information.\",\n input: PaystackCreateSubaccountInput,\n output: PaystackCreateSubaccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACpE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACzD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CACrI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACnG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,C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SAAS,qBAAqB;CACzD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC3D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAC7D,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC1D,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC9D,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;AAC/E,CAAC;AACD,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAM,8CAA8C,SAAS;CAC7D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gBAAgB;CAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;AACjD,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-subaccount.cjs","names":["z","action"],"sources":["../../src/actions/create-subaccount.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaystackCreateSubaccountInput = z.object({\n metadata: z.string().describe(\"Stringified JSON object of custom data\").optional(),\n description: z.string().describe(\"A description for this subaccount\").optional(),\n business_name: z.string().describe(\"Name of business for subaccount\"),\n account_number: z.string().describe(\"Bank account number\"),\n settlement_bank: z.string().describe(\"Bank code for the bank. You can get the list of Bank Codes by calling the List Banks endpoint.\"),\n percentage_charge: z.number().describe(\"Percentage of transaction amount charged by the subaccount\"),\n primary_contact_name: z.string().describe(\"The name of the contact person for this subaccount\").optional(),\n primary_contact_email: z.string().describe(\"A contact email for the subaccount\").optional(),\n primary_contact_phone: z.string().describe(\"A phone number to call for this subaccount\").optional(),\n});\nconst PaystackCreateSubaccount_SubaccountDataSchema = z.object({\n id: z.number().int().describe(\"Subaccount ID\").nullable(),\n bank: z.number().int().describe(\"Bank ID\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n domain: z.string().describe(\"Domain\").nullable(),\n migrate: z.boolean().describe(\"Migration status\").nullable(),\n product: z.string().describe(\"Product type\").nullable(),\n currency: z.string().describe(\"Currency code\").nullable(),\n metadata: z.string().describe(\"Custom metadata\").nullable().optional(),\n createdAt: z.string().describe(\"Creation timestamp\").nullable(),\n updatedAt: z.string().describe(\"Last update timestamp\").nullable(),\n description: z.string().describe(\"Description for the subaccount\").nullable().optional(),\n integration: z.number().int().describe(\"Integration ID\").nullable(),\n is_verified: z.boolean().describe(\"Verification status\").nullable(),\n account_name: z.string().describe(\"Bank account name\").nullable().optional(),\n business_name: z.string().describe(\"Name of business for subaccount\").nullable(),\n account_number: z.string().describe(\"Bank account number\").nullable(),\n settlement_bank: z.string().describe(\"Settlement bank code\").nullable(),\n subaccount_code: z.string().describe(\"Unique subaccount code\").nullable(),\n percentage_charge: z.number().describe(\"Percentage charge\").nullable(),\n settlement_schedule: z.string().describe(\"Settlement schedule\").nullable(),\n primary_contact_name: z.string().describe(\"Contact name for the subaccount\").nullable().optional(),\n primary_contact_email: z.string().describe(\"Contact email for the subaccount\").nullable().optional(),\n primary_contact_phone: z.string().describe(\"Contact phone for the subaccount\").nullable().optional(),\n managed_by_integration: z.number().int().describe(\"Managed by integration ID\").nullable(),\n}).passthrough();\nexport const PaystackCreateSubaccountOutput = z.object({\n data: PaystackCreateSubaccount_SubaccountDataSchema.nullable(),\n status: z.boolean().describe(\"Request status\").nullable(),\n message: z.string().describe(\"Response message\").nullable(),\n}).passthrough();\n\nexport const paystackCreateSubaccount = action(\"PAYSTACK_CREATE_SUBACCOUNT\", {\n slug: \"paystack-create-subaccount\",\n name: \"Create Subaccount\",\n description: \"Tool to create a subaccount on your Paystack integration. Use when you need to set up a new subaccount with bank details and settlement information.\",\n input: PaystackCreateSubaccountInput,\n output: PaystackCreateSubaccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACpE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CACzD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CACrI,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACnG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACzG,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1F,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACpG,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAA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