@keystrokehq/paypal 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 (627) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -1
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +10 -3
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +10 -3
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -1
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +10 -10
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +79 -3
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +79 -3
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +10 -10
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +22 -22
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +94 -3
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +94 -3
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +22 -22
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +4 -4
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +36 -3
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +36 -3
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +4 -4
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +4 -4
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +25 -3
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +25 -3
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +4 -4
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +23 -23
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +67 -3
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +67 -3
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +23 -23
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -1
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +89 -3
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +89 -3
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -1
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +29 -29
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +431 -3
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +431 -3
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +29 -29
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +42 -42
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +215 -3
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +215 -3
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +42 -42
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +16 -16
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +154 -3
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +154 -3
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +16 -16
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +20 -20
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +143 -3
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +143 -3
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +20 -20
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +2 -2
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +184 -3
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +184 -3
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +2 -2
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +17 -17
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +255 -3
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +255 -3
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +17 -17
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +30 -30
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +323 -3
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +323 -3
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +30 -30
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +7 -7
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +81 -3
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +81 -3
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +7 -7
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +5 -5
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +11 -3
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +11 -3
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +5 -5
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +7 -7
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +37 -3
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +37 -3
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +7 -7
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +3 -3
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +10 -3
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +10 -3
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +3 -3
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -1
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +13 -3
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +13 -3
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -1
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -1
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +13 -3
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +13 -3
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -1
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -1
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +12 -3
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +12 -3
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -1
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +6 -6
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +25 -3
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +25 -3
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +6 -6
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +3 -3
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +10 -3
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +10 -3
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +3 -3
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +6 -6
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +25 -3
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +25 -3
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +6 -6
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +3 -3
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +10 -3
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +10 -3
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +3 -3
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +6 -6
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +24 -3
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +24 -3
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +6 -6
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +6 -6
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +21 -3
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +21 -3
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +6 -6
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +14 -3
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +14 -3
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +8 -8
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +120 -3
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +120 -3
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +8 -8
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +2 -2
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +7 -3
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +7 -3
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +2 -2
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +10 -3
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +10 -3
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -1
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +5 -3
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +5 -3
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -1
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +7 -7
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +38 -3
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +38 -3
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +7 -7
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +10 -10
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +86 -3
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +86 -3
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +10 -10
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +33 -33
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +151 -3
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +151 -3
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +33 -33
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +5 -5
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +20 -3
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +20 -3
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +5 -5
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +22 -22
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +134 -3
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +134 -3
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +22 -22
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +16 -16
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +114 -3
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +114 -3
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +16 -16
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +14 -14
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +93 -3
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +93 -3
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +14 -14
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +3 -3
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +26 -3
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +26 -3
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +3 -3
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +11 -11
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +52 -3
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +52 -3
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +11 -11
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +5 -5
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +22 -3
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +22 -3
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +5 -5
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +10 -10
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +79 -3
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +79 -3
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +10 -10
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +3 -3
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +34 -3
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +34 -3
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +3 -3
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +3 -3
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +47 -3
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +47 -3
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +3 -3
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +5 -5
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +26 -3
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +26 -3
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +5 -5
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +3 -3
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +15 -3
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +15 -3
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +3 -3
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +6 -6
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +23 -3
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +23 -3
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +6 -6
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +7 -7
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +57 -3
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +57 -3
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +7 -7
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +15 -15
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +82 -3
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +82 -3
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +15 -15
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +7 -7
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +83 -3
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +83 -3
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +7 -7
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +20 -20
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +109 -3
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +109 -3
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +20 -20
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +11 -11
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +56 -3
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +56 -3
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +11 -11
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +3 -3
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +30 -3
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +30 -3
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +3 -3
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +8 -8
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +66 -3
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +66 -3
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +8 -8
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +7 -7
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +35 -3
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +35 -3
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +7 -7
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +4 -4
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -3
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -3
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +4 -4
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +4 -4
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +12 -3
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +12 -3
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +4 -4
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +3 -3
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +13 -3
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +13 -3
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +3 -3
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +3 -3
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +24 -3
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +24 -3
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +3 -3
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +2 -2
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +32 -3
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +32 -3
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +2 -2
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +2 -2
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +30 -3
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +30 -3
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +2 -2
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +5 -5
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +37 -3
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +37 -3
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +5 -5
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +2 -2
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +30 -3
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +30 -3
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +2 -2
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +2 -2
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +6 -3
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +6 -3
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +2 -2
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +5 -5
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +30 -3
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +30 -3
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +5 -5
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +12 -12
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +60 -3
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +60 -3
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +12 -12
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +12 -12
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +156 -3
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +156 -3
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +12 -12
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +4 -4
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +30 -3
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +30 -3
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +4 -4
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +7 -7
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +42 -3
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +42 -3
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +7 -7
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +5 -5
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +40 -3
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +40 -3
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +5 -5
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +49 -49
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +544 -3
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +544 -3
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +49 -49
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +2 -2
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +30 -3
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +30 -3
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +2 -2
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +7 -7
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +41 -3
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +41 -3
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +7 -7
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +39 -39
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +636 -3
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +636 -3
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +39 -39
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +4 -4
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +59 -3
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +59 -3
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +4 -4
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +5 -5
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +25 -3
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +25 -3
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +5 -5
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -1
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +52 -3
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +52 -3
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -1
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/package.json +2 -2
@@ -1,9 +1,120 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-order.d.ts
4
- declare const PaypalGetOrderInput: z.ZodTypeAny;
5
- declare const PaypalGetOrderOutput: z.ZodTypeAny;
6
- declare const paypalGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalGetOrderInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodString>;
6
+ order_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PaypalGetOrderOutput: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, z.core.$loose>>>>;
15
+ payer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ given_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>>>;
20
+ phone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ phone_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>>;
24
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ admin_area_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ admin_area_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ address_line_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ payer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$loose>>>;
35
+ intent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ payment_source: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
40
+ purchase_units: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
41
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ tax: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>>;
47
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, z.core.$loose>>>;
55
+ }, z.core.$loose>>>>;
56
+ payee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ merchant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$loose>>>;
60
+ amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ breakdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, z.core.$loose>>>;
67
+ handling: z.ZodOptional<z.ZodNullable<z.ZodObject<{
68
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$loose>>>;
71
+ shipping: z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ }, z.core.$loose>>>;
75
+ insurance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, z.core.$loose>>>;
79
+ tax_total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, z.core.$loose>>>;
83
+ item_total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
84
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, z.core.$loose>>>;
87
+ shipping_discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
88
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ }, z.core.$loose>>>;
91
+ }, z.core.$loose>>>;
92
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ }, z.core.$loose>>>;
94
+ shipping: z.ZodOptional<z.ZodNullable<z.ZodObject<{
95
+ name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ }, z.core.$loose>>>;
98
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ admin_area_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ admin_area_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ address_line_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ }, z.core.$loose>>>;
106
+ }, z.core.$loose>>>;
107
+ custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ soft_descriptor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ }, z.core.$loose>>>>;
113
+ }, z.core.$loose>;
114
+ declare const paypalGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
115
+ order_id: string;
116
+ fields?: string | undefined;
117
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
118
  //#endregion
8
119
  export { paypalGetOrder };
9
120
  //# sourceMappingURL=get-order.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-order.d.cts","names":[],"sources":["../../src/actions/get-order.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAGmB;AAAA,cAsF1C,oBAAA,EAAsB,CAAA,CAAE,UAUkC;AAAA,cAE1D,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-order.d.cts","names":[],"sources":["../../src/actions/get-order.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAyFnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYpB,cAAA,gCAAc,wBAAA"}
@@ -1,9 +1,120 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-order.d.ts
4
- declare const PaypalGetOrderInput: z.ZodTypeAny;
5
- declare const PaypalGetOrderOutput: z.ZodTypeAny;
6
- declare const paypalGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PaypalGetOrderInput: z.ZodObject<{
5
+ fields: z.ZodOptional<z.ZodString>;
6
+ order_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const PaypalGetOrderOutput: z.ZodObject<{
9
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ }, z.core.$loose>>>>;
15
+ payer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
16
+ name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
17
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ given_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$loose>>>;
20
+ phone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ phone_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ }, z.core.$loose>>>;
24
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ admin_area_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ admin_area_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ address_line_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, z.core.$loose>>>;
32
+ payer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$loose>>>;
35
+ intent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ payment_source: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
40
+ purchase_units: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
41
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
42
+ sku: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ tax: z.ZodOptional<z.ZodNullable<z.ZodObject<{
44
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ }, z.core.$loose>>>;
47
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ unit_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, z.core.$loose>>>;
55
+ }, z.core.$loose>>>>;
56
+ payee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
57
+ merchant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ }, z.core.$loose>>>;
60
+ amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ breakdown: z.ZodOptional<z.ZodNullable<z.ZodObject<{
63
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
64
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, z.core.$loose>>>;
67
+ handling: z.ZodOptional<z.ZodNullable<z.ZodObject<{
68
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ }, z.core.$loose>>>;
71
+ shipping: z.ZodOptional<z.ZodNullable<z.ZodObject<{
72
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ }, z.core.$loose>>>;
75
+ insurance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
76
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
+ }, z.core.$loose>>>;
79
+ tax_total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
80
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ }, z.core.$loose>>>;
83
+ item_total: z.ZodOptional<z.ZodNullable<z.ZodObject<{
84
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, z.core.$loose>>>;
87
+ shipping_discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
88
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ }, z.core.$loose>>>;
91
+ }, z.core.$loose>>>;
92
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ }, z.core.$loose>>>;
94
+ shipping: z.ZodOptional<z.ZodNullable<z.ZodObject<{
95
+ name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
96
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ }, z.core.$loose>>>;
98
+ address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
99
+ postal_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ admin_area_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ admin_area_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ address_line_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ }, z.core.$loose>>>;
106
+ }, z.core.$loose>>>;
107
+ custom_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
+ invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ reference_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ soft_descriptor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ }, z.core.$loose>>>>;
113
+ }, z.core.$loose>;
114
+ declare const paypalGetOrder: import("@keystrokehq/action").WorkflowActionDefinition<{
115
+ order_id: string;
116
+ fields?: string | undefined;
117
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
118
  //#endregion
8
119
  export { paypalGetOrder };
9
120
  //# sourceMappingURL=get-order.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-order.d.mts","names":[],"sources":["../../src/actions/get-order.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAGmB;AAAA,cAsF1C,oBAAA,EAAsB,CAAA,CAAE,UAUkC;AAAA,cAE1D,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-order.d.mts","names":[],"sources":["../../src/actions/get-order.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;cAyFnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYpB,cAAA,gCAAc,wBAAA"}
@@ -9,15 +9,15 @@ const PaypalGetOrder_LinkDescriptionSchema = z.object({
9
9
  rel: z.string().describe("The relationship between the response and the linked resource (e.g., 'self', 'approve', 'capture').").nullable().optional(),
10
10
  href: z.string().describe("The URL of the link.").nullable().optional(),
11
11
  method: z.string().describe("The HTTP method to use when following the link (e.g., 'GET', 'POST', 'PATCH').").nullable().optional()
12
- }).describe("Model for HATEOAS link information in the order response.");
12
+ }).passthrough().describe("Model for HATEOAS link information in the order response.");
13
13
  const PaypalGetOrder_PayerNameSchema = z.object({
14
14
  surname: z.string().describe("The surname (last name) of the payer.").nullable().optional(),
15
15
  given_name: z.string().describe("The given name (first name) of the payer.").nullable().optional()
16
- }).describe("The name of the payer.");
16
+ }).passthrough().describe("The name of the payer.");
17
17
  const PaypalGetOrder_PayerPhoneSchema = z.object({
18
18
  phone_type: z.string().describe("The phone type (e.g., 'MOBILE', 'HOME', 'WORK').").nullable().optional(),
19
19
  phone_number: z.string().describe("The phone number in E.164 format.").nullable().optional()
20
- }).describe("The phone number of the payer.");
20
+ }).passthrough().describe("The phone number of the payer.");
21
21
  const PaypalGetOrder_PayerAddressSchema = z.object({
22
22
  postal_code: z.string().describe("The postal code or ZIP code.").nullable().optional(),
23
23
  admin_area_1: z.string().describe("The state, province, or region.").nullable().optional(),
@@ -25,18 +25,18 @@ const PaypalGetOrder_PayerAddressSchema = z.object({
25
25
  country_code: z.string().describe("The two-character ISO 3166-1 country code.").nullable().optional(),
26
26
  address_line_1: z.string().describe("The first line of the address.").nullable().optional(),
27
27
  address_line_2: z.string().describe("The second line of the address.").nullable().optional()
28
- }).describe("The address of the payer.");
28
+ }).passthrough().describe("The address of the payer.");
29
29
  const PaypalGetOrder_PayerSchema = z.object({
30
30
  name: PaypalGetOrder_PayerNameSchema.nullable().optional(),
31
31
  phone: PaypalGetOrder_PayerPhoneSchema.nullable().optional(),
32
32
  address: PaypalGetOrder_PayerAddressSchema.nullable().optional(),
33
33
  payer_id: z.string().describe("The PayPal-assigned ID for the payer.").nullable().optional(),
34
34
  email_address: z.string().describe("The email address of the payer.").nullable().optional()
35
- }).describe("The payer information for the order.");
35
+ }).passthrough().describe("The payer information for the order.");
36
36
  const PaypalGetOrder_MoneySchema = z.object({
37
37
  value: z.string().describe("The amount value.").nullable().optional(),
38
38
  currency_code: z.string().describe("The three-character ISO 4217 currency code.").nullable().optional()
39
- }).describe("Model for currency amounts.");
39
+ }).passthrough().describe("Model for currency amounts.");
40
40
  const PaypalGetOrder_ItemSchema = z.object({
41
41
  sku: z.string().describe("The stock keeping unit (SKU) for the item.").nullable().optional(),
42
42
  tax: PaypalGetOrder_MoneySchema.nullable().optional(),
@@ -45,11 +45,11 @@ const PaypalGetOrder_ItemSchema = z.object({
45
45
  quantity: z.string().describe("The item quantity.").nullable().optional(),
46
46
  description: z.string().describe("The item description.").nullable().optional(),
47
47
  unit_amount: PaypalGetOrder_MoneySchema.nullable().optional()
48
- }).describe("An item in the order.");
48
+ }).passthrough().describe("An item in the order.");
49
49
  const PaypalGetOrder_PayeeSchema = z.object({
50
50
  merchant_id: z.string().describe("The PayPal-assigned merchant ID for the payee.").nullable().optional(),
51
51
  email_address: z.string().describe("The email address of the payee.").nullable().optional()
52
- }).describe("The merchant who receives the funds and fulfills the order.");
52
+ }).passthrough().describe("The merchant who receives the funds and fulfills the order.");
53
53
  const PaypalGetOrder_AmountBreakdownSchema = z.object({
54
54
  discount: PaypalGetOrder_MoneySchema.nullable().optional(),
55
55
  handling: PaypalGetOrder_MoneySchema.nullable().optional(),
@@ -58,13 +58,13 @@ const PaypalGetOrder_AmountBreakdownSchema = z.object({
58
58
  tax_total: PaypalGetOrder_MoneySchema.nullable().optional(),
59
59
  item_total: PaypalGetOrder_MoneySchema.nullable().optional(),
60
60
  shipping_discount: PaypalGetOrder_MoneySchema.nullable().optional()
61
- }).describe("The breakdown of the amount.");
61
+ }).passthrough().describe("The breakdown of the amount.");
62
62
  const PaypalGetOrder_AmountSchema = z.object({
63
63
  value: z.string().describe("The total amount value.").nullable().optional(),
64
64
  breakdown: PaypalGetOrder_AmountBreakdownSchema.nullable().optional(),
65
65
  currency_code: z.string().describe("The three-character ISO 4217 currency code.").nullable().optional()
66
- }).describe("The total order amount with breakdown.");
67
- const PaypalGetOrder_ShippingNameSchema = z.object({ full_name: z.string().describe("The full name of the person.").nullable().optional() }).describe("The name of the person to whom the shipment is sent.");
66
+ }).passthrough().describe("The total order amount with breakdown.");
67
+ const PaypalGetOrder_ShippingNameSchema = z.object({ full_name: z.string().describe("The full name of the person.").nullable().optional() }).passthrough().describe("The name of the person to whom the shipment is sent.");
68
68
  const PaypalGetOrder_ShippingAddressSchema = z.object({
69
69
  postal_code: z.string().describe("The postal code or ZIP code.").nullable().optional(),
70
70
  admin_area_1: z.string().describe("The state, province, or region.").nullable().optional(),
@@ -72,11 +72,11 @@ const PaypalGetOrder_ShippingAddressSchema = z.object({
72
72
  country_code: z.string().describe("The two-character ISO 3166-1 country code.").nullable().optional(),
73
73
  address_line_1: z.string().describe("The first line of the address.").nullable().optional(),
74
74
  address_line_2: z.string().describe("The second line of the address.").nullable().optional()
75
- }).describe("The shipping address for the order.");
75
+ }).passthrough().describe("The shipping address for the order.");
76
76
  const PaypalGetOrder_ShippingSchema = z.object({
77
77
  name: PaypalGetOrder_ShippingNameSchema.nullable().optional(),
78
78
  address: PaypalGetOrder_ShippingAddressSchema.nullable().optional()
79
- }).describe("The shipping details for the order.");
79
+ }).passthrough().describe("The shipping details for the order.");
80
80
  const PaypalGetOrder_PurchaseUnitSchema = z.object({
81
81
  items: z.array(PaypalGetOrder_ItemSchema).describe("An array of items that the customer purchases from the merchant.").nullable().optional(),
82
82
  payee: PaypalGetOrder_PayeeSchema.nullable().optional(),
@@ -87,7 +87,7 @@ const PaypalGetOrder_PurchaseUnitSchema = z.object({
87
87
  description: z.string().describe("The purchase description.").nullable().optional(),
88
88
  reference_id: z.string().describe("The API caller-provided external ID for the purchase unit.").nullable().optional(),
89
89
  soft_descriptor: z.string().describe("The soft descriptor that appears on the payer's credit card statement.").nullable().optional()
90
- }).describe("A purchase unit in the order.");
90
+ }).passthrough().describe("A purchase unit in the order.");
91
91
  const paypalGetOrder = action("PAYPAL_GET_ORDER", {
92
92
  slug: "paypal-get-order",
93
93
  name: "Get Order Details",
@@ -101,9 +101,9 @@ const paypalGetOrder = action("PAYPAL_GET_ORDER", {
101
101
  status: z.string().describe("The status of the order (e.g., 'CREATED', 'SAVED', 'APPROVED', 'VOIDED', 'COMPLETED', 'PAYER_ACTION_REQUIRED').").nullable().optional(),
102
102
  create_time: z.string().describe("The date and time when the order was created, in Internet date and time format (RFC3339).").nullable().optional(),
103
103
  update_time: z.string().describe("The date and time when the order was last updated, in Internet date and time format (RFC3339).").nullable().optional(),
104
- payment_source: z.object({}).describe("The payment source used to fund the payment. Only returned if requested via the 'fields' query parameter. Contains payment method details such as PayPal wallet info, card details, or other payment source information.").nullable().optional(),
104
+ payment_source: z.record(z.string(), z.unknown()).describe("The payment source used to fund the payment. Only returned if requested via the 'fields' query parameter. Contains payment method details such as PayPal wallet info, card details, or other payment source information.").nullable().optional(),
105
105
  purchase_units: z.array(PaypalGetOrder_PurchaseUnitSchema).describe("An array of purchase units. Each purchase unit establishes a contract between a customer and merchant.").nullable().optional()
106
- }).describe("Response model containing order details from PayPal API.")
106
+ }).passthrough().describe("Response model containing order details from PayPal API.")
107
107
  });
108
108
  //#endregion
109
109
  export { paypalGetOrder };
@@ -1 +1 @@
1
- {"version":3,"file":"get-order.mjs","names":[],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetOrderInput: z.ZodTypeAny = z.object({\n fields: z.string().describe(\"A comma-separated list of fields that should be returned for the order. Valid filter field is 'payment_source'.\").optional(),\n order_id: z.string().describe(\"The ID of the order for which to show details.\"),\n}).describe(\"Request model for getting order details.\");\nconst PaypalGetOrder_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'approve', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST', 'PATCH').\").nullable().optional(),\n}).describe(\"Model for HATEOAS link information in the order response.\");\nconst PaypalGetOrder_PayerNameSchema: z.ZodTypeAny = z.object({\n surname: z.string().describe(\"The surname (last name) of the payer.\").nullable().optional(),\n given_name: z.string().describe(\"The given name (first name) of the payer.\").nullable().optional(),\n}).describe(\"The name of the payer.\");\nconst PaypalGetOrder_PayerPhoneSchema: z.ZodTypeAny = z.object({\n phone_type: z.string().describe(\"The phone type (e.g., 'MOBILE', 'HOME', 'WORK').\").nullable().optional(),\n phone_number: z.string().describe(\"The phone number in E.164 format.\").nullable().optional(),\n}).describe(\"The phone number of the payer.\");\nconst PaypalGetOrder_PayerAddressSchema: z.ZodTypeAny = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state, province, or region.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city, town, or village.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).describe(\"The address of the payer.\");\nconst PaypalGetOrder_PayerSchema: z.ZodTypeAny = z.object({\n name: PaypalGetOrder_PayerNameSchema.nullable().optional(),\n phone: PaypalGetOrder_PayerPhoneSchema.nullable().optional(),\n address: PaypalGetOrder_PayerAddressSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n}).describe(\"The payer information for the order.\");\nconst PaypalGetOrder_MoneySchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO 4217 currency code.\").nullable().optional(),\n}).describe(\"Model for currency amounts.\");\nconst PaypalGetOrder_ItemSchema: z.ZodTypeAny = z.object({\n sku: z.string().describe(\"The stock keeping unit (SKU) for the item.\").nullable().optional(),\n tax: PaypalGetOrder_MoneySchema.nullable().optional(),\n name: z.string().describe(\"The item name or title.\").nullable().optional(),\n category: z.string().describe(\"The item category type (e.g., 'PHYSICAL_GOODS', 'DIGITAL_GOODS').\").nullable().optional(),\n quantity: z.string().describe(\"The item quantity.\").nullable().optional(),\n description: z.string().describe(\"The item description.\").nullable().optional(),\n unit_amount: PaypalGetOrder_MoneySchema.nullable().optional(),\n}).describe(\"An item in the order.\");\nconst PaypalGetOrder_PayeeSchema: z.ZodTypeAny = z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned merchant ID for the payee.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the payee.\").nullable().optional(),\n}).describe(\"The merchant who receives the funds and fulfills the order.\");\nconst PaypalGetOrder_AmountBreakdownSchema: z.ZodTypeAny = z.object({\n discount: PaypalGetOrder_MoneySchema.nullable().optional(),\n handling: PaypalGetOrder_MoneySchema.nullable().optional(),\n shipping: PaypalGetOrder_MoneySchema.nullable().optional(),\n insurance: PaypalGetOrder_MoneySchema.nullable().optional(),\n tax_total: PaypalGetOrder_MoneySchema.nullable().optional(),\n item_total: PaypalGetOrder_MoneySchema.nullable().optional(),\n shipping_discount: PaypalGetOrder_MoneySchema.nullable().optional(),\n}).describe(\"The breakdown of the amount.\");\nconst PaypalGetOrder_AmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The total amount value.\").nullable().optional(),\n breakdown: PaypalGetOrder_AmountBreakdownSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO 4217 currency code.\").nullable().optional(),\n}).describe(\"The total order amount with breakdown.\");\nconst PaypalGetOrder_ShippingNameSchema: z.ZodTypeAny = z.object({\n full_name: z.string().describe(\"The full name of the person.\").nullable().optional(),\n}).describe(\"The name of the person to whom the shipment is sent.\");\nconst PaypalGetOrder_ShippingAddressSchema: z.ZodTypeAny = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state, province, or region.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city, town, or village.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).describe(\"The shipping address for the order.\");\nconst PaypalGetOrder_ShippingSchema: z.ZodTypeAny = z.object({\n name: PaypalGetOrder_ShippingNameSchema.nullable().optional(),\n address: PaypalGetOrder_ShippingAddressSchema.nullable().optional(),\n}).describe(\"The shipping details for the order.\");\nconst PaypalGetOrder_PurchaseUnitSchema: z.ZodTypeAny = z.object({\n items: z.array(PaypalGetOrder_ItemSchema).describe(\"An array of items that the customer purchases from the merchant.\").nullable().optional(),\n payee: PaypalGetOrder_PayeeSchema.nullable().optional(),\n amount: PaypalGetOrder_AmountSchema.nullable().optional(),\n shipping: PaypalGetOrder_ShippingSchema.nullable().optional(),\n custom_id: z.string().describe(\"The API caller-provided external ID.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID associated with this purchase unit.\").nullable().optional(),\n description: z.string().describe(\"The purchase description.\").nullable().optional(),\n reference_id: z.string().describe(\"The API caller-provided external ID for the purchase unit.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor that appears on the payer's credit card statement.\").nullable().optional(),\n}).describe(\"A purchase unit in the order.\");\nexport const PaypalGetOrderOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the order.\").nullable().optional(),\n links: z.array(PaypalGetOrder_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the order.\").nullable().optional(),\n payer: PaypalGetOrder_PayerSchema.nullable().optional(),\n intent: z.string().describe(\"The intent to either capture payment immediately or authorize a payment for an order after order creation (e.g., 'CAPTURE', 'AUTHORIZE').\").nullable().optional(),\n status: z.string().describe(\"The status of the order (e.g., 'CREATED', 'SAVED', 'APPROVED', 'VOIDED', 'COMPLETED', 'PAYER_ACTION_REQUIRED').\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the order was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the order was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n payment_source: z.object({}).describe(\"The payment source used to fund the payment. Only returned if requested via the 'fields' query parameter. Contains payment method details such as PayPal wallet info, card details, or other payment source information.\").nullable().optional(),\n purchase_units: z.array(PaypalGetOrder_PurchaseUnitSchema).describe(\"An array of purchase units. Each purchase unit establishes a contract between a customer and merchant.\").nullable().optional(),\n}).describe(\"Response model containing order details from PayPal API.\");\n\nexport const paypalGetOrder = action(\"PAYPAL_GET_ORDER\", {\n slug: \"paypal-get-order\",\n name: \"Get Order Details\",\n description: \"Retrieves detailed information about a specific PayPal order by its ID. Use this action when you need to check the status, payment details, purchase units, payer information, or other properties of an existing order. The order details include the order status, intent (capture or authorize), purchase unit details (items, amounts, shipping), payer information, and HATEOAS links for available actions. You can optionally request the payment_source field using the fields parameter.\",\n input: PaypalGetOrderInput,\n output: PaypalGetOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAoC,EAAE,OAAO;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AAChF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,iCAA+C,EAAE,OAAO;CAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpC,MAAM,kCAAgD,EAAE,OAAO;CAC7D,YAAY,EAAE,OAAO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AAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0NAA0N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtR,gBAAgB,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpM,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-order.mjs","names":[],"sources":["../../src/actions/get-order.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetOrderInput = z.object({\n fields: z.string().describe(\"A comma-separated list of fields that should be returned for the order. Valid filter field is 'payment_source'.\").optional(),\n order_id: z.string().describe(\"The ID of the order for which to show details.\"),\n}).describe(\"Request model for getting order details.\");\nconst PaypalGetOrder_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'approve', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST', 'PATCH').\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information in the order response.\");\nconst PaypalGetOrder_PayerNameSchema = z.object({\n surname: z.string().describe(\"The surname (last name) of the payer.\").nullable().optional(),\n given_name: z.string().describe(\"The given name (first name) of the payer.\").nullable().optional(),\n}).passthrough().describe(\"The name of the payer.\");\nconst PaypalGetOrder_PayerPhoneSchema = z.object({\n phone_type: z.string().describe(\"The phone type (e.g., 'MOBILE', 'HOME', 'WORK').\").nullable().optional(),\n phone_number: z.string().describe(\"The phone number in E.164 format.\").nullable().optional(),\n}).passthrough().describe(\"The phone number of the payer.\");\nconst PaypalGetOrder_PayerAddressSchema = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state, province, or region.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city, town, or village.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).passthrough().describe(\"The address of the payer.\");\nconst PaypalGetOrder_PayerSchema = z.object({\n name: PaypalGetOrder_PayerNameSchema.nullable().optional(),\n phone: PaypalGetOrder_PayerPhoneSchema.nullable().optional(),\n address: PaypalGetOrder_PayerAddressSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n}).passthrough().describe(\"The payer information for the order.\");\nconst PaypalGetOrder_MoneySchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"Model for currency amounts.\");\nconst PaypalGetOrder_ItemSchema = z.object({\n sku: z.string().describe(\"The stock keeping unit (SKU) for the item.\").nullable().optional(),\n tax: PaypalGetOrder_MoneySchema.nullable().optional(),\n name: z.string().describe(\"The item name or title.\").nullable().optional(),\n category: z.string().describe(\"The item category type (e.g., 'PHYSICAL_GOODS', 'DIGITAL_GOODS').\").nullable().optional(),\n quantity: z.string().describe(\"The item quantity.\").nullable().optional(),\n description: z.string().describe(\"The item description.\").nullable().optional(),\n unit_amount: PaypalGetOrder_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"An item in the order.\");\nconst PaypalGetOrder_PayeeSchema = z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned merchant ID for the payee.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the payee.\").nullable().optional(),\n}).passthrough().describe(\"The merchant who receives the funds and fulfills the order.\");\nconst PaypalGetOrder_AmountBreakdownSchema = z.object({\n discount: PaypalGetOrder_MoneySchema.nullable().optional(),\n handling: PaypalGetOrder_MoneySchema.nullable().optional(),\n shipping: PaypalGetOrder_MoneySchema.nullable().optional(),\n insurance: PaypalGetOrder_MoneySchema.nullable().optional(),\n tax_total: PaypalGetOrder_MoneySchema.nullable().optional(),\n item_total: PaypalGetOrder_MoneySchema.nullable().optional(),\n shipping_discount: PaypalGetOrder_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown of the amount.\");\nconst PaypalGetOrder_AmountSchema = z.object({\n value: z.string().describe(\"The total amount value.\").nullable().optional(),\n breakdown: PaypalGetOrder_AmountBreakdownSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The total order amount with breakdown.\");\nconst PaypalGetOrder_ShippingNameSchema = z.object({\n full_name: z.string().describe(\"The full name of the person.\").nullable().optional(),\n}).passthrough().describe(\"The name of the person to whom the shipment is sent.\");\nconst PaypalGetOrder_ShippingAddressSchema = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state, province, or region.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city, town, or village.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the order.\");\nconst PaypalGetOrder_ShippingSchema = z.object({\n name: PaypalGetOrder_ShippingNameSchema.nullable().optional(),\n address: PaypalGetOrder_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"The shipping details for the order.\");\nconst PaypalGetOrder_PurchaseUnitSchema = z.object({\n items: z.array(PaypalGetOrder_ItemSchema).describe(\"An array of items that the customer purchases from the merchant.\").nullable().optional(),\n payee: PaypalGetOrder_PayeeSchema.nullable().optional(),\n amount: PaypalGetOrder_AmountSchema.nullable().optional(),\n shipping: PaypalGetOrder_ShippingSchema.nullable().optional(),\n custom_id: z.string().describe(\"The API caller-provided external ID.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID associated with this purchase unit.\").nullable().optional(),\n description: z.string().describe(\"The purchase description.\").nullable().optional(),\n reference_id: z.string().describe(\"The API caller-provided external ID for the purchase unit.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor that appears on the payer's credit card statement.\").nullable().optional(),\n}).passthrough().describe(\"A purchase unit in the order.\");\nexport const PaypalGetOrderOutput = z.object({\n id: z.string().describe(\"The unique identifier for the order.\").nullable().optional(),\n links: z.array(PaypalGetOrder_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the order.\").nullable().optional(),\n payer: PaypalGetOrder_PayerSchema.nullable().optional(),\n intent: z.string().describe(\"The intent to either capture payment immediately or authorize a payment for an order after order creation (e.g., 'CAPTURE', 'AUTHORIZE').\").nullable().optional(),\n status: z.string().describe(\"The status of the order (e.g., 'CREATED', 'SAVED', 'APPROVED', 'VOIDED', 'COMPLETED', 'PAYER_ACTION_REQUIRED').\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the order was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the order was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n payment_source: z.record(z.string(), z.unknown()).describe(\"The payment source used to fund the payment. Only returned if requested via the 'fields' query parameter. Contains payment method details such as PayPal wallet info, card details, or other payment source information.\").nullable().optional(),\n purchase_units: z.array(PaypalGetOrder_PurchaseUnitSchema).describe(\"An array of purchase units. Each purchase unit establishes a contract between a customer and merchant.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing order details from PayPal API.\");\n\nexport const paypalGetOrder = action(\"PAYPAL_GET_ORDER\", {\n slug: \"paypal-get-order\",\n name: \"Get Order Details\",\n description: \"Retrieves detailed information about a specific PayPal order by its ID. Use this action when you need to check the status, payment details, purchase units, payer information, or other properties of an existing order. The order details include the order status, intent (capture or authorize), purchase unit details (items, amounts, shipping), payer information, and HATEOAS links for available actions. You can optionally request the payment_source field using the fields parameter.\",\n input: PaypalGetOrderInput,\n output: PaypalGetOrderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsB,EAAE,OAAO;CAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CACxJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;AAChF,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AACrF,MAAM,iCAAiC,EAAE,OAAO;CAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD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;CACN,aAAa;CACb,OAAO;CACP,QAjBkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChM,OAAO,2BAA2B,SAAS,CAAC,CAAC,SAAS;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7L,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvJ,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0NAA0N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3S,gBAAgB,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -6,7 +6,7 @@ const PaypalGetPayment_LinkDescriptionSchema = zod.z.object({
6
6
  rel: zod.z.string().describe("The link relation type (e.g., 'self', 'approval_url', 'execute').").nullable().optional(),
7
7
  href: zod.z.string().describe("The hyperlink to the related resource.").nullable().optional(),
8
8
  method: zod.z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional()
9
- }).describe("The HATEOAS link related to this payment.");
9
+ }).passthrough().describe("The HATEOAS link related to this payment.");
10
10
  const PaypalGetPayment_ShippingDetailsSchema = zod.z.object({
11
11
  city: zod.z.string().describe("The city name.").nullable().optional(),
12
12
  line1: zod.z.string().describe("The first line of the address.").nullable().optional(),
@@ -15,7 +15,7 @@ const PaypalGetPayment_ShippingDetailsSchema = zod.z.object({
15
15
  postal_code: zod.z.string().describe("The postal code or ZIP code.").nullable().optional(),
16
16
  country_code: zod.z.string().describe("The two-character ISO country code.").nullable().optional(),
17
17
  recipient_name: zod.z.string().describe("The name of the person at the shipping address.").nullable().optional()
18
- }).describe("The shipping address for the payment.");
18
+ }).passthrough().describe("The shipping address for the payment.");
19
19
  const PaypalGetPayment_PayerInfoSchema = zod.z.object({
20
20
  email: zod.z.string().describe("The email address of the payer.").nullable().optional(),
21
21
  phone: zod.z.string().describe("The payer's phone number.").nullable().optional(),
@@ -23,48 +23,48 @@ const PaypalGetPayment_PayerInfoSchema = zod.z.object({
23
23
  last_name: zod.z.string().describe("The payer's last name.").nullable().optional(),
24
24
  first_name: zod.z.string().describe("The payer's first name.").nullable().optional(),
25
25
  shipping_address: PaypalGetPayment_ShippingDetailsSchema.nullable().optional()
26
- }).describe("Detailed payer information.");
26
+ }).passthrough().describe("Detailed payer information.");
27
27
  const PaypalGetPayment_PayerSchema = zod.z.object({
28
28
  status: zod.z.string().describe("The status of the payer's verified account.").nullable().optional(),
29
29
  payer_info: PaypalGetPayment_PayerInfoSchema.nullable().optional(),
30
30
  payment_method: zod.z.string().describe("The payment method used. Value is 'paypal' or 'credit_card'.").nullable().optional()
31
- }).describe("The payment's payer information.");
31
+ }).passthrough().describe("The payment's payer information.");
32
32
  const PaypalGetPayment_PayeeSchema = zod.z.object({
33
33
  email: zod.z.string().describe("The email address of the merchant.").nullable().optional(),
34
34
  merchant_id: zod.z.string().describe("The PayPal account ID of the merchant.").nullable().optional()
35
- }).describe("The merchant who receives payment.");
35
+ }).passthrough().describe("The merchant who receives payment.");
36
36
  const PaypalGetPayment_AmountSchema = zod.z.object({
37
37
  total: zod.z.string().describe("The total amount charged. Required when the currency is specified.").nullable().optional(),
38
- details: zod.z.object({}).describe("The additional amount details, such as handling fees, insurance, or shipping.").nullable().optional(),
38
+ details: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The additional amount details, such as handling fees, insurance, or shipping.").nullable().optional(),
39
39
  currency: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable().optional()
40
- }).describe("The currency and amount for a transaction.");
40
+ }).passthrough().describe("The currency and amount for a transaction.");
41
41
  const PaypalGetPayment_SaleSchema = zod.z.object({
42
42
  id: zod.z.string().describe("The PayPal sale ID.").nullable().optional(),
43
43
  state: zod.z.string().describe("The sale state. Possible values: pending, completed, refunded,buyer_complaint, denied.").nullable().optional(),
44
44
  amount: PaypalGetPayment_AmountSchema.nullable().optional()
45
- }).describe("A sale transaction.");
45
+ }).passthrough().describe("A sale transaction.");
46
46
  const PaypalGetPayment_OrderSchema = zod.z.object({
47
47
  id: zod.z.string().describe("The PayPal order ID.").nullable().optional(),
48
48
  state: zod.z.string().describe("The order state. Possible values: pending, started, completed, reversed.").nullable().optional(),
49
49
  amount: PaypalGetPayment_AmountSchema.nullable().optional()
50
- }).describe("An order transaction.");
50
+ }).passthrough().describe("An order transaction.");
51
51
  const PaypalGetPayment_CaptureSchema = zod.z.object({
52
52
  id: zod.z.string().describe("The PayPal capture ID.").nullable().optional(),
53
53
  state: zod.z.string().describe("The capture state. Possible values: pending, completed, refunded, denied.").nullable().optional(),
54
54
  amount: PaypalGetPayment_AmountSchema.nullable().optional()
55
- }).describe("A capture transaction.");
55
+ }).passthrough().describe("A capture transaction.");
56
56
  const PaypalGetPayment_AuthorizationSchema = zod.z.object({
57
57
  id: zod.z.string().describe("The PayPal authorization ID.").nullable().optional(),
58
58
  state: zod.z.string().describe("The authorization state. Possible values: pending, authorized, captured, voided.").nullable().optional(),
59
59
  amount: PaypalGetPayment_AmountSchema.nullable().optional()
60
- }).describe("An authorization transaction.");
60
+ }).passthrough().describe("An authorization transaction.");
61
61
  const PaypalGetPayment_RelatedResourcesSchema = zod.z.object({
62
62
  sale: PaypalGetPayment_SaleSchema.nullable().optional(),
63
63
  order: PaypalGetPayment_OrderSchema.nullable().optional(),
64
64
  refund: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The refund transaction.").nullable().optional(),
65
65
  capture: PaypalGetPayment_CaptureSchema.nullable().optional(),
66
66
  authorization: PaypalGetPayment_AuthorizationSchema.nullable().optional()
67
- }).describe("The resources related to the payment transaction.");
67
+ }).passthrough().describe("The resources related to the payment transaction.");
68
68
  const PaypalGetPayment_TransactionSchema = zod.z.object({
69
69
  payee: PaypalGetPayment_PayeeSchema.nullable().optional(),
70
70
  amount: PaypalGetPayment_AmountSchema.nullable().optional(),
@@ -73,7 +73,7 @@ const PaypalGetPayment_TransactionSchema = zod.z.object({
73
73
  invoice_number: zod.z.string().describe("The invoice number used by the merchant to track the payment.").nullable().optional(),
74
74
  soft_descriptor: zod.z.string().describe("The soft descriptor to be shown on the payer's statement.").nullable().optional(),
75
75
  related_resources: zod.z.array(PaypalGetPayment_RelatedResourcesSchema).describe("The resources that are related to this transaction, such as sale, authorization, or capture.").nullable().optional()
76
- }).describe("A transaction describes the financial details of a payment.");
76
+ }).passthrough().describe("A transaction describes the financial details of a payment.");
77
77
  const PaypalGetPaymentOutput = zod.z.object({
78
78
  id: zod.z.string().describe("The PayPal payment ID. This is the unique identifier for the payment.").nullable().optional(),
79
79
  cart: zod.z.string().describe("The encrypted ID of the cart for this transaction.").nullable().optional(),
@@ -84,7 +84,7 @@ const PaypalGetPaymentOutput = zod.z.object({
84
84
  create_time: zod.z.string().describe("The date and time, in ISO 8601 format, when the payment was created.").nullable().optional(),
85
85
  update_time: zod.z.string().describe("The date and time, in ISO 8601 format, when the payment was last updated.").nullable().optional(),
86
86
  transactions: zod.z.array(PaypalGetPayment_TransactionSchema).describe("The list of transactions. Contains financial details including amounts, payee, and related resources like sales or authorizations.").nullable().optional()
87
- }).describe("Response schema for retrieving payment details.");
87
+ }).passthrough().describe("Response schema for retrieving payment details.");
88
88
  const paypalGetPayment = require_action.action("PAYPAL_GET_PAYMENT", {
89
89
  slug: "paypal-get-payment",
90
90
  name: "Get Payment Details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-payment.cjs","names":["z","action"],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPaymentInput: z.ZodTypeAny = z.object({\n payment_id: z.string().describe(\"The ID of the payment to retrieve. This is the unique identifier assigned when a payment was created.\"),\n}).describe(\"Request schema for retrieving a PayPal payment by ID.\");\nconst PaypalGetPayment_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'approval_url', 'execute').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).describe(\"The HATEOAS link related to this payment.\");\nconst PaypalGetPayment_ShippingDetailsSchema: z.ZodTypeAny = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n line1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n line2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n recipient_name: z.string().describe(\"The name of the person at the shipping address.\").nullable().optional(),\n}).describe(\"The shipping address for the payment.\");\nconst PaypalGetPayment_PayerInfoSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The payer's phone number.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n last_name: z.string().describe(\"The payer's last name.\").nullable().optional(),\n first_name: z.string().describe(\"The payer's first name.\").nullable().optional(),\n shipping_address: PaypalGetPayment_ShippingDetailsSchema.nullable().optional(),\n}).describe(\"Detailed payer information.\");\nconst PaypalGetPayment_PayerSchema: z.ZodTypeAny = z.object({\n status: z.string().describe(\"The status of the payer's verified account.\").nullable().optional(),\n payer_info: PaypalGetPayment_PayerInfoSchema.nullable().optional(),\n payment_method: z.string().describe(\"The payment method used. Value is 'paypal' or 'credit_card'.\").nullable().optional(),\n}).describe(\"The payment's payer information.\");\nconst PaypalGetPayment_PayeeSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"The email address of the merchant.\").nullable().optional(),\n merchant_id: z.string().describe(\"The PayPal account ID of the merchant.\").nullable().optional(),\n}).describe(\"The merchant who receives payment.\");\nconst PaypalGetPayment_AmountSchema: z.ZodTypeAny = z.object({\n total: z.string().describe(\"The total amount charged. Required when the currency is specified.\").nullable().optional(),\n details: z.object({}).describe(\"The additional amount details, such as handling fees, insurance, or shipping.\").nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable().optional(),\n}).describe(\"The currency and amount for a transaction.\");\nconst PaypalGetPayment_SaleSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal sale ID.\").nullable().optional(),\n state: z.string().describe(\"The sale state. Possible values: pending, completed, refunded,buyer_complaint, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).describe(\"A sale transaction.\");\nconst PaypalGetPayment_OrderSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal order ID.\").nullable().optional(),\n state: z.string().describe(\"The order state. Possible values: pending, started, completed, reversed.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).describe(\"An order transaction.\");\nconst PaypalGetPayment_CaptureSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal capture ID.\").nullable().optional(),\n state: z.string().describe(\"The capture state. Possible values: pending, completed, refunded, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).describe(\"A capture transaction.\");\nconst PaypalGetPayment_AuthorizationSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal authorization ID.\").nullable().optional(),\n state: z.string().describe(\"The authorization state. Possible values: pending, authorized, captured, voided.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).describe(\"An authorization transaction.\");\nconst PaypalGetPayment_RelatedResourcesSchema: z.ZodTypeAny = z.object({\n sale: PaypalGetPayment_SaleSchema.nullable().optional(),\n order: PaypalGetPayment_OrderSchema.nullable().optional(),\n refund: z.record(z.string(), z.unknown()).describe(\"The refund transaction.\").nullable().optional(),\n capture: PaypalGetPayment_CaptureSchema.nullable().optional(),\n authorization: PaypalGetPayment_AuthorizationSchema.nullable().optional(),\n}).describe(\"The resources related to the payment transaction.\");\nconst PaypalGetPayment_TransactionSchema: z.ZodTypeAny = z.object({\n payee: PaypalGetPayment_PayeeSchema.nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"Custom field passed by the merchant.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number used by the merchant to track the payment.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor to be shown on the payer's statement.\").nullable().optional(),\n related_resources: z.array(PaypalGetPayment_RelatedResourcesSchema).describe(\"The resources that are related to this transaction, such as sale, authorization, or capture.\").nullable().optional(),\n}).describe(\"A transaction describes the financial details of a payment.\");\nexport const PaypalGetPaymentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal payment ID. This is the unique identifier for the payment.\").nullable().optional(),\n cart: z.string().describe(\"The encrypted ID of the cart for this transaction.\").nullable().optional(),\n links: z.array(PaypalGetPayment_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment. These links provide actions that can be performed on the payment, such as executing or redirecting.\").nullable().optional(),\n payer: PaypalGetPayment_PayerSchema.nullable().optional(),\n state: z.string().describe(\"The state of the payment. Possible values: created, approved, failed, canceled, expired.\").nullable().optional(),\n intent: z.string().describe(\"The intent of the payment. Possible values: sale, authorize, order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was last updated.\").nullable().optional(),\n transactions: z.array(PaypalGetPayment_TransactionSchema).describe(\"The list of transactions. Contains financial details including amounts, payee, and related resources like sales or authorizations.\").nullable().optional(),\n}).describe(\"Response schema for retrieving payment details.\");\n\nexport const paypalGetPayment = action(\"PAYPAL_GET_PAYMENT\", {\n slug: \"paypal-get-payment\",\n name: \"Get Payment Details\",\n description: \"Retrieves details for a PayPal payment by its ID using the deprecated v1 Payments API. Use when you need to check the status, payer information, transaction details, or related resources of an existing payment. This action is useful for verifying payment details, checking if a payment was approved, viewing transaction amounts, or accessing related sale/authorization/capture resources. Note that this is a deprecated v1 API endpoint — consider using the v2 Payments API for new integrations.\",\n input: PaypalGetPaymentInput,\n output: PaypalGetPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACzI,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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OAAO,6BAA6B,SAAS,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,cAAcA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/N,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-payment.cjs","names":["z","action"],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPaymentInput = z.object({\n payment_id: z.string().describe(\"The ID of the payment to retrieve. This is the unique identifier assigned when a payment was created.\"),\n}).describe(\"Request schema for retrieving a PayPal payment by ID.\");\nconst PaypalGetPayment_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'approval_url', 'execute').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this payment.\");\nconst PaypalGetPayment_ShippingDetailsSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n line1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n line2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n recipient_name: z.string().describe(\"The name of the person at the shipping address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the payment.\");\nconst PaypalGetPayment_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The payer's phone number.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n last_name: z.string().describe(\"The payer's last name.\").nullable().optional(),\n first_name: z.string().describe(\"The payer's first name.\").nullable().optional(),\n shipping_address: PaypalGetPayment_ShippingDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Detailed payer information.\");\nconst PaypalGetPayment_PayerSchema = z.object({\n status: z.string().describe(\"The status of the payer's verified account.\").nullable().optional(),\n payer_info: PaypalGetPayment_PayerInfoSchema.nullable().optional(),\n payment_method: z.string().describe(\"The payment method used. Value is 'paypal' or 'credit_card'.\").nullable().optional(),\n}).passthrough().describe(\"The payment's payer information.\");\nconst PaypalGetPayment_PayeeSchema = z.object({\n email: z.string().describe(\"The email address of the merchant.\").nullable().optional(),\n merchant_id: z.string().describe(\"The PayPal account ID of the merchant.\").nullable().optional(),\n}).passthrough().describe(\"The merchant who receives payment.\");\nconst PaypalGetPayment_AmountSchema = z.object({\n total: z.string().describe(\"The total amount charged. Required when the currency is specified.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"The additional amount details, such as handling fees, insurance, or shipping.\").nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a transaction.\");\nconst PaypalGetPayment_SaleSchema = z.object({\n id: z.string().describe(\"The PayPal sale ID.\").nullable().optional(),\n state: z.string().describe(\"The sale state. Possible values: pending, completed, refunded,buyer_complaint, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A sale transaction.\");\nconst PaypalGetPayment_OrderSchema = z.object({\n id: z.string().describe(\"The PayPal order ID.\").nullable().optional(),\n state: z.string().describe(\"The order state. Possible values: pending, started, completed, reversed.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An order transaction.\");\nconst PaypalGetPayment_CaptureSchema = z.object({\n id: z.string().describe(\"The PayPal capture ID.\").nullable().optional(),\n state: z.string().describe(\"The capture state. Possible values: pending, completed, refunded, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A capture transaction.\");\nconst PaypalGetPayment_AuthorizationSchema = z.object({\n id: z.string().describe(\"The PayPal authorization ID.\").nullable().optional(),\n state: z.string().describe(\"The authorization state. Possible values: pending, authorized, captured, voided.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An authorization transaction.\");\nconst PaypalGetPayment_RelatedResourcesSchema = z.object({\n sale: PaypalGetPayment_SaleSchema.nullable().optional(),\n order: PaypalGetPayment_OrderSchema.nullable().optional(),\n refund: z.record(z.string(), z.unknown()).describe(\"The refund transaction.\").nullable().optional(),\n capture: PaypalGetPayment_CaptureSchema.nullable().optional(),\n authorization: PaypalGetPayment_AuthorizationSchema.nullable().optional(),\n}).passthrough().describe(\"The resources related to the payment transaction.\");\nconst PaypalGetPayment_TransactionSchema = z.object({\n payee: PaypalGetPayment_PayeeSchema.nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"Custom field passed by the merchant.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number used by the merchant to track the payment.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor to be shown on the payer's statement.\").nullable().optional(),\n related_resources: z.array(PaypalGetPayment_RelatedResourcesSchema).describe(\"The resources that are related to this transaction, such as sale, authorization, or capture.\").nullable().optional(),\n}).passthrough().describe(\"A transaction describes the financial details of a payment.\");\nexport const PaypalGetPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal payment ID. This is the unique identifier for the payment.\").nullable().optional(),\n cart: z.string().describe(\"The encrypted ID of the cart for this transaction.\").nullable().optional(),\n links: z.array(PaypalGetPayment_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment. These links provide actions that can be performed on the payment, such as executing or redirecting.\").nullable().optional(),\n payer: PaypalGetPayment_PayerSchema.nullable().optional(),\n state: z.string().describe(\"The state of the payment. Possible values: created, approved, failed, canceled, expired.\").nullable().optional(),\n intent: z.string().describe(\"The intent of the payment. Possible values: sale, authorize, order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was last updated.\").nullable().optional(),\n transactions: z.array(PaypalGetPayment_TransactionSchema).describe(\"The list of transactions. Contains financial details including amounts, payee, and related resources like sales or authorizations.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving payment details.\");\n\nexport const paypalGetPayment = action(\"PAYPAL_GET_PAYMENT\", {\n slug: \"paypal-get-payment\",\n name: \"Get Payment Details\",\n description: \"Retrieves details for a PayPal payment by its ID using the deprecated v1 Payments API. Use when you need to check the status, payer information, transaction details, or related resources of an existing payment. This action is useful for verifying payment details, checking if a payment was approved, viewing transaction amounts, or accessing related sale/authorization/capture resources. Note that this is a deprecated v1 API endpoint — consider using the v2 Payments API for new integrations.\",\n input: PaypalGetPaymentInput,\n output: PaypalGetPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACzI,CAAC,CAAC,CAAC,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