@keystrokehq/paypal 0.1.0

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 (658) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/activate-plan.cjs +19 -0
  7. package/dist/actions/activate-plan.cjs.map +1 -0
  8. package/dist/actions/activate-plan.d.cts +9 -0
  9. package/dist/actions/activate-plan.d.cts.map +1 -0
  10. package/dist/actions/activate-plan.d.mts +9 -0
  11. package/dist/actions/activate-plan.d.mts.map +1 -0
  12. package/dist/actions/activate-plan.mjs +16 -0
  13. package/dist/actions/activate-plan.mjs.map +1 -0
  14. package/dist/actions/add-batch-trackers.cjs +62 -0
  15. package/dist/actions/add-batch-trackers.cjs.map +1 -0
  16. package/dist/actions/add-batch-trackers.d.cts +9 -0
  17. package/dist/actions/add-batch-trackers.d.cts.map +1 -0
  18. package/dist/actions/add-batch-trackers.d.mts +9 -0
  19. package/dist/actions/add-batch-trackers.d.mts.map +1 -0
  20. package/dist/actions/add-batch-trackers.mjs +61 -0
  21. package/dist/actions/add-batch-trackers.mjs.map +1 -0
  22. package/dist/actions/authorize-order.cjs +101 -0
  23. package/dist/actions/authorize-order.cjs.map +1 -0
  24. package/dist/actions/authorize-order.d.cts +9 -0
  25. package/dist/actions/authorize-order.d.cts.map +1 -0
  26. package/dist/actions/authorize-order.d.mts +9 -0
  27. package/dist/actions/authorize-order.d.mts.map +1 -0
  28. package/dist/actions/authorize-order.mjs +100 -0
  29. package/dist/actions/authorize-order.mjs.map +1 -0
  30. package/dist/actions/cancel-invoice.cjs +44 -0
  31. package/dist/actions/cancel-invoice.cjs.map +1 -0
  32. package/dist/actions/cancel-invoice.d.cts +9 -0
  33. package/dist/actions/cancel-invoice.d.cts.map +1 -0
  34. package/dist/actions/cancel-invoice.d.mts +9 -0
  35. package/dist/actions/cancel-invoice.d.mts.map +1 -0
  36. package/dist/actions/cancel-invoice.mjs +43 -0
  37. package/dist/actions/cancel-invoice.mjs.map +1 -0
  38. package/dist/actions/cancel-reminders.cjs +36 -0
  39. package/dist/actions/cancel-reminders.cjs.map +1 -0
  40. package/dist/actions/cancel-reminders.d.cts +9 -0
  41. package/dist/actions/cancel-reminders.d.cts.map +1 -0
  42. package/dist/actions/cancel-reminders.d.mts +9 -0
  43. package/dist/actions/cancel-reminders.d.mts.map +1 -0
  44. package/dist/actions/cancel-reminders.mjs +35 -0
  45. package/dist/actions/cancel-reminders.mjs.map +1 -0
  46. package/dist/actions/capture-subscription-payment.cjs +79 -0
  47. package/dist/actions/capture-subscription-payment.cjs.map +1 -0
  48. package/dist/actions/capture-subscription-payment.d.cts +9 -0
  49. package/dist/actions/capture-subscription-payment.d.cts.map +1 -0
  50. package/dist/actions/capture-subscription-payment.d.mts +9 -0
  51. package/dist/actions/capture-subscription-payment.d.mts.map +1 -0
  52. package/dist/actions/capture-subscription-payment.mjs +78 -0
  53. package/dist/actions/capture-subscription-payment.mjs.map +1 -0
  54. package/dist/actions/charge-payment-method.cjs +58 -0
  55. package/dist/actions/charge-payment-method.cjs.map +1 -0
  56. package/dist/actions/charge-payment-method.d.cts +9 -0
  57. package/dist/actions/charge-payment-method.d.cts.map +1 -0
  58. package/dist/actions/charge-payment-method.d.mts +9 -0
  59. package/dist/actions/charge-payment-method.d.mts.map +1 -0
  60. package/dist/actions/charge-payment-method.mjs +55 -0
  61. package/dist/actions/charge-payment-method.mjs.map +1 -0
  62. package/dist/actions/create-invoice.cjs +294 -0
  63. package/dist/actions/create-invoice.cjs.map +1 -0
  64. package/dist/actions/create-invoice.d.cts +9 -0
  65. package/dist/actions/create-invoice.d.cts.map +1 -0
  66. package/dist/actions/create-invoice.d.mts +9 -0
  67. package/dist/actions/create-invoice.d.mts.map +1 -0
  68. package/dist/actions/create-invoice.mjs +293 -0
  69. package/dist/actions/create-invoice.mjs.map +1 -0
  70. package/dist/actions/create-payment.cjs +178 -0
  71. package/dist/actions/create-payment.cjs.map +1 -0
  72. package/dist/actions/create-payment.d.cts +9 -0
  73. package/dist/actions/create-payment.d.cts.map +1 -0
  74. package/dist/actions/create-payment.d.mts +9 -0
  75. package/dist/actions/create-payment.d.mts.map +1 -0
  76. package/dist/actions/create-payment.mjs +177 -0
  77. package/dist/actions/create-payment.mjs.map +1 -0
  78. package/dist/actions/create-payments-billing-plans.cjs +111 -0
  79. package/dist/actions/create-payments-billing-plans.cjs.map +1 -0
  80. package/dist/actions/create-payments-billing-plans.d.cts +9 -0
  81. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -0
  82. package/dist/actions/create-payments-billing-plans.d.mts +9 -0
  83. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -0
  84. package/dist/actions/create-payments-billing-plans.mjs +110 -0
  85. package/dist/actions/create-payments-billing-plans.mjs.map +1 -0
  86. package/dist/actions/create-plan.cjs +119 -0
  87. package/dist/actions/create-plan.cjs.map +1 -0
  88. package/dist/actions/create-plan.d.cts +9 -0
  89. package/dist/actions/create-plan.d.cts.map +1 -0
  90. package/dist/actions/create-plan.d.mts +9 -0
  91. package/dist/actions/create-plan.d.mts.map +1 -0
  92. package/dist/actions/create-plan.mjs +118 -0
  93. package/dist/actions/create-plan.mjs.map +1 -0
  94. package/dist/actions/create-product.cjs +190 -0
  95. package/dist/actions/create-product.cjs.map +1 -0
  96. package/dist/actions/create-product.d.cts +9 -0
  97. package/dist/actions/create-product.d.cts.map +1 -0
  98. package/dist/actions/create-product.d.mts +9 -0
  99. package/dist/actions/create-product.d.mts.map +1 -0
  100. package/dist/actions/create-product.mjs +189 -0
  101. package/dist/actions/create-product.mjs.map +1 -0
  102. package/dist/actions/create-subscription.cjs +183 -0
  103. package/dist/actions/create-subscription.cjs.map +1 -0
  104. package/dist/actions/create-subscription.d.cts +9 -0
  105. package/dist/actions/create-subscription.d.cts.map +1 -0
  106. package/dist/actions/create-subscription.d.mts +9 -0
  107. package/dist/actions/create-subscription.d.mts.map +1 -0
  108. package/dist/actions/create-subscription.mjs +182 -0
  109. package/dist/actions/create-subscription.mjs.map +1 -0
  110. package/dist/actions/create-template.cjs +234 -0
  111. package/dist/actions/create-template.cjs.map +1 -0
  112. package/dist/actions/create-template.d.cts +9 -0
  113. package/dist/actions/create-template.d.cts.map +1 -0
  114. package/dist/actions/create-template.d.mts +9 -0
  115. package/dist/actions/create-template.d.mts.map +1 -0
  116. package/dist/actions/create-template.mjs +233 -0
  117. package/dist/actions/create-template.mjs.map +1 -0
  118. package/dist/actions/create-web-profile.cjs +66 -0
  119. package/dist/actions/create-web-profile.cjs.map +1 -0
  120. package/dist/actions/create-web-profile.d.cts +9 -0
  121. package/dist/actions/create-web-profile.d.cts.map +1 -0
  122. package/dist/actions/create-web-profile.d.mts +9 -0
  123. package/dist/actions/create-web-profile.d.mts.map +1 -0
  124. package/dist/actions/create-web-profile.mjs +65 -0
  125. package/dist/actions/create-web-profile.mjs.map +1 -0
  126. package/dist/actions/create-webhook-lookup.cjs +25 -0
  127. package/dist/actions/create-webhook-lookup.cjs.map +1 -0
  128. package/dist/actions/create-webhook-lookup.d.cts +9 -0
  129. package/dist/actions/create-webhook-lookup.d.cts.map +1 -0
  130. package/dist/actions/create-webhook-lookup.d.mts +9 -0
  131. package/dist/actions/create-webhook-lookup.d.mts.map +1 -0
  132. package/dist/actions/create-webhook-lookup.mjs +24 -0
  133. package/dist/actions/create-webhook-lookup.mjs.map +1 -0
  134. package/dist/actions/create-webhook.cjs +39 -0
  135. package/dist/actions/create-webhook.cjs.map +1 -0
  136. package/dist/actions/create-webhook.d.cts +9 -0
  137. package/dist/actions/create-webhook.d.cts.map +1 -0
  138. package/dist/actions/create-webhook.d.mts +9 -0
  139. package/dist/actions/create-webhook.d.mts.map +1 -0
  140. package/dist/actions/create-webhook.mjs +38 -0
  141. package/dist/actions/create-webhook.mjs.map +1 -0
  142. package/dist/actions/deactivate-plan.cjs +19 -0
  143. package/dist/actions/deactivate-plan.cjs.map +1 -0
  144. package/dist/actions/deactivate-plan.d.cts +9 -0
  145. package/dist/actions/deactivate-plan.d.cts.map +1 -0
  146. package/dist/actions/deactivate-plan.d.mts +9 -0
  147. package/dist/actions/deactivate-plan.d.mts.map +1 -0
  148. package/dist/actions/deactivate-plan.mjs +16 -0
  149. package/dist/actions/deactivate-plan.mjs.map +1 -0
  150. package/dist/actions/delete-external-payment.cjs +23 -0
  151. package/dist/actions/delete-external-payment.cjs.map +1 -0
  152. package/dist/actions/delete-external-payment.d.cts +9 -0
  153. package/dist/actions/delete-external-payment.d.cts.map +1 -0
  154. package/dist/actions/delete-external-payment.d.mts +9 -0
  155. package/dist/actions/delete-external-payment.d.mts.map +1 -0
  156. package/dist/actions/delete-external-payment.mjs +20 -0
  157. package/dist/actions/delete-external-payment.mjs.map +1 -0
  158. package/dist/actions/delete-invoice-payment-record.cjs +23 -0
  159. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -0
  160. package/dist/actions/delete-invoice-payment-record.d.cts +9 -0
  161. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -0
  162. package/dist/actions/delete-invoice-payment-record.d.mts +9 -0
  163. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -0
  164. package/dist/actions/delete-invoice-payment-record.mjs +20 -0
  165. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -0
  166. package/dist/actions/delete-invoice-refund-record.cjs +22 -0
  167. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -0
  168. package/dist/actions/delete-invoice-refund-record.d.cts +9 -0
  169. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -0
  170. package/dist/actions/delete-invoice-refund-record.d.mts +9 -0
  171. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -0
  172. package/dist/actions/delete-invoice-refund-record.mjs +19 -0
  173. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -0
  174. package/dist/actions/delete-invoice.cjs +36 -0
  175. package/dist/actions/delete-invoice.cjs.map +1 -0
  176. package/dist/actions/delete-invoice.d.cts +9 -0
  177. package/dist/actions/delete-invoice.d.cts.map +1 -0
  178. package/dist/actions/delete-invoice.d.mts +9 -0
  179. package/dist/actions/delete-invoice.d.mts.map +1 -0
  180. package/dist/actions/delete-invoice.mjs +35 -0
  181. package/dist/actions/delete-invoice.mjs.map +1 -0
  182. package/dist/actions/delete-payment-resource.cjs +19 -0
  183. package/dist/actions/delete-payment-resource.cjs.map +1 -0
  184. package/dist/actions/delete-payment-resource.d.cts +9 -0
  185. package/dist/actions/delete-payment-resource.d.cts.map +1 -0
  186. package/dist/actions/delete-payment-resource.d.mts +9 -0
  187. package/dist/actions/delete-payment-resource.d.mts.map +1 -0
  188. package/dist/actions/delete-payment-resource.mjs +16 -0
  189. package/dist/actions/delete-payment-resource.mjs.map +1 -0
  190. package/dist/actions/delete-template.cjs +36 -0
  191. package/dist/actions/delete-template.cjs.map +1 -0
  192. package/dist/actions/delete-template.d.cts +9 -0
  193. package/dist/actions/delete-template.d.cts.map +1 -0
  194. package/dist/actions/delete-template.d.mts +9 -0
  195. package/dist/actions/delete-template.d.mts.map +1 -0
  196. package/dist/actions/delete-template.mjs +35 -0
  197. package/dist/actions/delete-template.mjs.map +1 -0
  198. package/dist/actions/delete-web-profile.cjs +19 -0
  199. package/dist/actions/delete-web-profile.cjs.map +1 -0
  200. package/dist/actions/delete-web-profile.d.cts +9 -0
  201. package/dist/actions/delete-web-profile.d.cts.map +1 -0
  202. package/dist/actions/delete-web-profile.d.mts +9 -0
  203. package/dist/actions/delete-web-profile.d.mts.map +1 -0
  204. package/dist/actions/delete-web-profile.mjs +16 -0
  205. package/dist/actions/delete-web-profile.mjs.map +1 -0
  206. package/dist/actions/delete-webhook.cjs +35 -0
  207. package/dist/actions/delete-webhook.cjs.map +1 -0
  208. package/dist/actions/delete-webhook.d.cts +9 -0
  209. package/dist/actions/delete-webhook.d.cts.map +1 -0
  210. package/dist/actions/delete-webhook.d.mts +9 -0
  211. package/dist/actions/delete-webhook.d.mts.map +1 -0
  212. package/dist/actions/delete-webhook.mjs +34 -0
  213. package/dist/actions/delete-webhook.mjs.map +1 -0
  214. package/dist/actions/fetch-node.cjs +30 -0
  215. package/dist/actions/fetch-node.cjs.map +1 -0
  216. package/dist/actions/fetch-node.d.cts +9 -0
  217. package/dist/actions/fetch-node.d.cts.map +1 -0
  218. package/dist/actions/fetch-node.d.mts +9 -0
  219. package/dist/actions/fetch-node.d.mts.map +1 -0
  220. package/dist/actions/fetch-node.mjs +29 -0
  221. package/dist/actions/fetch-node.mjs.map +1 -0
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +21 -0
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -0
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +9 -0
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +9 -0
  227. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -0
  228. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +20 -0
  229. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -0
  230. package/dist/actions/find-eligible-methods.cjs +87 -0
  231. package/dist/actions/find-eligible-methods.cjs.map +1 -0
  232. package/dist/actions/find-eligible-methods.d.cts +9 -0
  233. package/dist/actions/find-eligible-methods.d.cts.map +1 -0
  234. package/dist/actions/find-eligible-methods.d.mts +9 -0
  235. package/dist/actions/find-eligible-methods.d.mts.map +1 -0
  236. package/dist/actions/find-eligible-methods.mjs +86 -0
  237. package/dist/actions/find-eligible-methods.mjs.map +1 -0
  238. package/dist/actions/generate-client-token.cjs +20 -0
  239. package/dist/actions/generate-client-token.cjs.map +1 -0
  240. package/dist/actions/generate-client-token.d.cts +9 -0
  241. package/dist/actions/generate-client-token.d.cts.map +1 -0
  242. package/dist/actions/generate-client-token.d.mts +9 -0
  243. package/dist/actions/generate-client-token.d.mts.map +1 -0
  244. package/dist/actions/generate-client-token.mjs +17 -0
  245. package/dist/actions/generate-client-token.mjs.map +1 -0
  246. package/dist/actions/generate-next-invoice-number-v2.cjs +19 -0
  247. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -0
  248. package/dist/actions/generate-next-invoice-number-v2.d.cts +9 -0
  249. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.d.mts +9 -0
  251. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -0
  252. package/dist/actions/generate-next-invoice-number-v2.mjs +16 -0
  253. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -0
  254. package/dist/actions/generate-next-invoice-number.cjs +16 -0
  255. package/dist/actions/generate-next-invoice-number.cjs.map +1 -0
  256. package/dist/actions/generate-next-invoice-number.d.cts +9 -0
  257. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -0
  258. package/dist/actions/generate-next-invoice-number.d.mts +9 -0
  259. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -0
  260. package/dist/actions/generate-next-invoice-number.mjs +13 -0
  261. package/dist/actions/generate-next-invoice-number.mjs.map +1 -0
  262. package/dist/actions/generate-qr-code.cjs +46 -0
  263. package/dist/actions/generate-qr-code.cjs.map +1 -0
  264. package/dist/actions/generate-qr-code.d.cts +9 -0
  265. package/dist/actions/generate-qr-code.d.cts.map +1 -0
  266. package/dist/actions/generate-qr-code.d.mts +9 -0
  267. package/dist/actions/generate-qr-code.d.mts.map +1 -0
  268. package/dist/actions/generate-qr-code.mjs +45 -0
  269. package/dist/actions/generate-qr-code.mjs.map +1 -0
  270. package/dist/actions/get-billing-subscriptions.cjs +98 -0
  271. package/dist/actions/get-billing-subscriptions.cjs.map +1 -0
  272. package/dist/actions/get-billing-subscriptions.d.cts +9 -0
  273. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -0
  274. package/dist/actions/get-billing-subscriptions.d.mts +9 -0
  275. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -0
  276. package/dist/actions/get-billing-subscriptions.mjs +97 -0
  277. package/dist/actions/get-billing-subscriptions.mjs.map +1 -0
  278. package/dist/actions/get-invoice.cjs +159 -0
  279. package/dist/actions/get-invoice.cjs.map +1 -0
  280. package/dist/actions/get-invoice.d.cts +9 -0
  281. package/dist/actions/get-invoice.d.cts.map +1 -0
  282. package/dist/actions/get-invoice.d.mts +9 -0
  283. package/dist/actions/get-invoice.d.mts.map +1 -0
  284. package/dist/actions/get-invoice.mjs +158 -0
  285. package/dist/actions/get-invoice.mjs.map +1 -0
  286. package/dist/actions/get-invoicing-invoices-qr-code.cjs +29 -0
  287. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -0
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +9 -0
  289. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +9 -0
  291. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -0
  292. package/dist/actions/get-invoicing-invoices-qr-code.mjs +28 -0
  293. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -0
  294. package/dist/actions/get-invoicing-template.cjs +136 -0
  295. package/dist/actions/get-invoicing-template.cjs.map +1 -0
  296. package/dist/actions/get-invoicing-template.d.cts +9 -0
  297. package/dist/actions/get-invoicing-template.d.cts.map +1 -0
  298. package/dist/actions/get-invoicing-template.d.mts +9 -0
  299. package/dist/actions/get-invoicing-template.d.mts.map +1 -0
  300. package/dist/actions/get-invoicing-template.mjs +135 -0
  301. package/dist/actions/get-invoicing-template.mjs.map +1 -0
  302. package/dist/actions/get-order.cjs +112 -0
  303. package/dist/actions/get-order.cjs.map +1 -0
  304. package/dist/actions/get-order.d.cts +9 -0
  305. package/dist/actions/get-order.d.cts.map +1 -0
  306. package/dist/actions/get-order.d.mts +9 -0
  307. package/dist/actions/get-order.d.mts.map +1 -0
  308. package/dist/actions/get-order.mjs +111 -0
  309. package/dist/actions/get-order.mjs.map +1 -0
  310. package/dist/actions/get-payment.cjs +98 -0
  311. package/dist/actions/get-payment.cjs.map +1 -0
  312. package/dist/actions/get-payment.d.cts +9 -0
  313. package/dist/actions/get-payment.d.cts.map +1 -0
  314. package/dist/actions/get-payment.d.mts +9 -0
  315. package/dist/actions/get-payment.d.mts.map +1 -0
  316. package/dist/actions/get-payment.mjs +97 -0
  317. package/dist/actions/get-payment.mjs.map +1 -0
  318. package/dist/actions/get-payments-refund.cjs +37 -0
  319. package/dist/actions/get-payments-refund.cjs.map +1 -0
  320. package/dist/actions/get-payments-refund.d.cts +9 -0
  321. package/dist/actions/get-payments-refund.d.cts.map +1 -0
  322. package/dist/actions/get-payments-refund.d.mts +9 -0
  323. package/dist/actions/get-payments-refund.d.mts.map +1 -0
  324. package/dist/actions/get-payments-refund.mjs +36 -0
  325. package/dist/actions/get-payments-refund.mjs.map +1 -0
  326. package/dist/actions/get-plan.cjs +69 -0
  327. package/dist/actions/get-plan.cjs.map +1 -0
  328. package/dist/actions/get-plan.d.cts +9 -0
  329. package/dist/actions/get-plan.d.cts.map +1 -0
  330. package/dist/actions/get-plan.d.mts +9 -0
  331. package/dist/actions/get-plan.d.mts.map +1 -0
  332. package/dist/actions/get-plan.mjs +68 -0
  333. package/dist/actions/get-plan.mjs.map +1 -0
  334. package/dist/actions/get-product.cjs +32 -0
  335. package/dist/actions/get-product.cjs.map +1 -0
  336. package/dist/actions/get-product.d.cts +9 -0
  337. package/dist/actions/get-product.d.cts.map +1 -0
  338. package/dist/actions/get-product.d.mts +9 -0
  339. package/dist/actions/get-product.d.mts.map +1 -0
  340. package/dist/actions/get-product.mjs +31 -0
  341. package/dist/actions/get-product.mjs.map +1 -0
  342. package/dist/actions/get-subscription.cjs +88 -0
  343. package/dist/actions/get-subscription.cjs.map +1 -0
  344. package/dist/actions/get-subscription.d.cts +9 -0
  345. package/dist/actions/get-subscription.d.cts.map +1 -0
  346. package/dist/actions/get-subscription.d.mts +9 -0
  347. package/dist/actions/get-subscription.d.mts.map +1 -0
  348. package/dist/actions/get-subscription.mjs +87 -0
  349. package/dist/actions/get-subscription.mjs.map +1 -0
  350. package/dist/actions/get-user-info.cjs +43 -0
  351. package/dist/actions/get-user-info.cjs.map +1 -0
  352. package/dist/actions/get-user-info.d.cts +9 -0
  353. package/dist/actions/get-user-info.d.cts.map +1 -0
  354. package/dist/actions/get-user-info.d.mts +9 -0
  355. package/dist/actions/get-user-info.d.mts.map +1 -0
  356. package/dist/actions/get-user-info.mjs +42 -0
  357. package/dist/actions/get-user-info.mjs.map +1 -0
  358. package/dist/actions/get-userinfo.cjs +55 -0
  359. package/dist/actions/get-userinfo.cjs.map +1 -0
  360. package/dist/actions/get-userinfo.d.cts +9 -0
  361. package/dist/actions/get-userinfo.d.cts.map +1 -0
  362. package/dist/actions/get-userinfo.d.mts +9 -0
  363. package/dist/actions/get-userinfo.d.mts.map +1 -0
  364. package/dist/actions/get-userinfo.mjs +54 -0
  365. package/dist/actions/get-userinfo.mjs.map +1 -0
  366. package/dist/actions/get-web-profile.cjs +38 -0
  367. package/dist/actions/get-web-profile.cjs.map +1 -0
  368. package/dist/actions/get-web-profile.d.cts +9 -0
  369. package/dist/actions/get-web-profile.d.cts.map +1 -0
  370. package/dist/actions/get-web-profile.d.mts +9 -0
  371. package/dist/actions/get-web-profile.d.mts.map +1 -0
  372. package/dist/actions/get-web-profile.mjs +37 -0
  373. package/dist/actions/get-web-profile.mjs.map +1 -0
  374. package/dist/actions/get-webhook-lookup.cjs +25 -0
  375. package/dist/actions/get-webhook-lookup.cjs.map +1 -0
  376. package/dist/actions/get-webhook-lookup.d.cts +9 -0
  377. package/dist/actions/get-webhook-lookup.d.cts.map +1 -0
  378. package/dist/actions/get-webhook-lookup.d.mts +9 -0
  379. package/dist/actions/get-webhook-lookup.d.mts.map +1 -0
  380. package/dist/actions/get-webhook-lookup.mjs +24 -0
  381. package/dist/actions/get-webhook-lookup.mjs.map +1 -0
  382. package/dist/actions/get-webhook.cjs +33 -0
  383. package/dist/actions/get-webhook.cjs.map +1 -0
  384. package/dist/actions/get-webhook.d.cts +9 -0
  385. package/dist/actions/get-webhook.d.cts.map +1 -0
  386. package/dist/actions/get-webhook.d.mts +9 -0
  387. package/dist/actions/get-webhook.d.mts.map +1 -0
  388. package/dist/actions/get-webhook.mjs +32 -0
  389. package/dist/actions/get-webhook.mjs.map +1 -0
  390. package/dist/actions/index.cjs +157 -0
  391. package/dist/actions/index.d.cts +79 -0
  392. package/dist/actions/index.d.mts +79 -0
  393. package/dist/actions/index.mjs +79 -0
  394. package/dist/actions/list-disputes.cjs +62 -0
  395. package/dist/actions/list-disputes.cjs.map +1 -0
  396. package/dist/actions/list-disputes.d.cts +9 -0
  397. package/dist/actions/list-disputes.d.cts.map +1 -0
  398. package/dist/actions/list-disputes.d.mts +9 -0
  399. package/dist/actions/list-disputes.d.mts.map +1 -0
  400. package/dist/actions/list-disputes.mjs +61 -0
  401. package/dist/actions/list-disputes.mjs.map +1 -0
  402. package/dist/actions/list-invoices.cjs +81 -0
  403. package/dist/actions/list-invoices.cjs.map +1 -0
  404. package/dist/actions/list-invoices.d.cts +9 -0
  405. package/dist/actions/list-invoices.d.cts.map +1 -0
  406. package/dist/actions/list-invoices.d.mts +9 -0
  407. package/dist/actions/list-invoices.d.mts.map +1 -0
  408. package/dist/actions/list-invoices.mjs +80 -0
  409. package/dist/actions/list-invoices.mjs.map +1 -0
  410. package/dist/actions/list-legacy-billing-plans.cjs +87 -0
  411. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -0
  412. package/dist/actions/list-legacy-billing-plans.d.cts +9 -0
  413. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -0
  414. package/dist/actions/list-legacy-billing-plans.d.mts +9 -0
  415. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -0
  416. package/dist/actions/list-legacy-billing-plans.mjs +86 -0
  417. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -0
  418. package/dist/actions/list-payments.cjs +112 -0
  419. package/dist/actions/list-payments.cjs.map +1 -0
  420. package/dist/actions/list-payments.d.cts +9 -0
  421. package/dist/actions/list-payments.d.cts.map +1 -0
  422. package/dist/actions/list-payments.d.mts +9 -0
  423. package/dist/actions/list-payments.d.mts.map +1 -0
  424. package/dist/actions/list-payments.mjs +111 -0
  425. package/dist/actions/list-payments.mjs.map +1 -0
  426. package/dist/actions/list-plans.cjs +66 -0
  427. package/dist/actions/list-plans.cjs.map +1 -0
  428. package/dist/actions/list-plans.d.cts +9 -0
  429. package/dist/actions/list-plans.d.cts.map +1 -0
  430. package/dist/actions/list-plans.d.mts +9 -0
  431. package/dist/actions/list-plans.d.mts.map +1 -0
  432. package/dist/actions/list-plans.mjs +65 -0
  433. package/dist/actions/list-plans.mjs.map +1 -0
  434. package/dist/actions/list-products.cjs +37 -0
  435. package/dist/actions/list-products.cjs.map +1 -0
  436. package/dist/actions/list-products.d.cts +9 -0
  437. package/dist/actions/list-products.d.cts.map +1 -0
  438. package/dist/actions/list-products.d.mts +9 -0
  439. package/dist/actions/list-products.d.mts.map +1 -0
  440. package/dist/actions/list-products.mjs +36 -0
  441. package/dist/actions/list-products.mjs.map +1 -0
  442. package/dist/actions/list-templates.cjs +74 -0
  443. package/dist/actions/list-templates.cjs.map +1 -0
  444. package/dist/actions/list-templates.d.cts +9 -0
  445. package/dist/actions/list-templates.d.cts.map +1 -0
  446. package/dist/actions/list-templates.d.mts +9 -0
  447. package/dist/actions/list-templates.d.mts.map +1 -0
  448. package/dist/actions/list-templates.mjs +73 -0
  449. package/dist/actions/list-templates.mjs.map +1 -0
  450. package/dist/actions/list-web-profiles.cjs +48 -0
  451. package/dist/actions/list-web-profiles.cjs.map +1 -0
  452. package/dist/actions/list-web-profiles.d.cts +9 -0
  453. package/dist/actions/list-web-profiles.d.cts.map +1 -0
  454. package/dist/actions/list-web-profiles.d.mts +9 -0
  455. package/dist/actions/list-web-profiles.d.mts.map +1 -0
  456. package/dist/actions/list-web-profiles.mjs +47 -0
  457. package/dist/actions/list-web-profiles.mjs.map +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.cjs +23 -0
  459. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -0
  460. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +9 -0
  461. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -0
  462. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +9 -0
  463. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -0
  464. package/dist/actions/list-webhook-event-type-subscriptions.mjs +22 -0
  465. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -0
  466. package/dist/actions/list-webhook-event-types.cjs +23 -0
  467. package/dist/actions/list-webhook-event-types.cjs.map +1 -0
  468. package/dist/actions/list-webhook-event-types.d.cts +9 -0
  469. package/dist/actions/list-webhook-event-types.d.cts.map +1 -0
  470. package/dist/actions/list-webhook-event-types.d.mts +9 -0
  471. package/dist/actions/list-webhook-event-types.d.mts.map +1 -0
  472. package/dist/actions/list-webhook-event-types.mjs +22 -0
  473. package/dist/actions/list-webhook-event-types.mjs.map +1 -0
  474. package/dist/actions/list-webhook-lookups.cjs +26 -0
  475. package/dist/actions/list-webhook-lookups.cjs.map +1 -0
  476. package/dist/actions/list-webhook-lookups.d.cts +9 -0
  477. package/dist/actions/list-webhook-lookups.d.cts.map +1 -0
  478. package/dist/actions/list-webhook-lookups.d.mts +9 -0
  479. package/dist/actions/list-webhook-lookups.d.mts.map +1 -0
  480. package/dist/actions/list-webhook-lookups.mjs +25 -0
  481. package/dist/actions/list-webhook-lookups.mjs.map +1 -0
  482. package/dist/actions/list-webhooks.cjs +31 -0
  483. package/dist/actions/list-webhooks.cjs.map +1 -0
  484. package/dist/actions/list-webhooks.d.cts +9 -0
  485. package/dist/actions/list-webhooks.d.cts.map +1 -0
  486. package/dist/actions/list-webhooks.d.mts +9 -0
  487. package/dist/actions/list-webhooks.d.mts.map +1 -0
  488. package/dist/actions/list-webhooks.mjs +30 -0
  489. package/dist/actions/list-webhooks.mjs.map +1 -0
  490. package/dist/actions/patch-orders.cjs +43 -0
  491. package/dist/actions/patch-orders.cjs.map +1 -0
  492. package/dist/actions/patch-orders.d.cts +9 -0
  493. package/dist/actions/patch-orders.d.cts.map +1 -0
  494. package/dist/actions/patch-orders.d.mts +9 -0
  495. package/dist/actions/patch-orders.d.mts.map +1 -0
  496. package/dist/actions/patch-orders.mjs +40 -0
  497. package/dist/actions/patch-orders.mjs.map +1 -0
  498. package/dist/actions/patch-plan.cjs +34 -0
  499. package/dist/actions/patch-plan.cjs.map +1 -0
  500. package/dist/actions/patch-plan.d.cts +9 -0
  501. package/dist/actions/patch-plan.d.cts.map +1 -0
  502. package/dist/actions/patch-plan.d.mts +9 -0
  503. package/dist/actions/patch-plan.d.mts.map +1 -0
  504. package/dist/actions/patch-plan.mjs +31 -0
  505. package/dist/actions/patch-plan.mjs.map +1 -0
  506. package/dist/actions/patch-subscription.cjs +49 -0
  507. package/dist/actions/patch-subscription.cjs.map +1 -0
  508. package/dist/actions/patch-subscription.d.cts +9 -0
  509. package/dist/actions/patch-subscription.d.cts.map +1 -0
  510. package/dist/actions/patch-subscription.d.mts +9 -0
  511. package/dist/actions/patch-subscription.d.mts.map +1 -0
  512. package/dist/actions/patch-subscription.mjs +48 -0
  513. package/dist/actions/patch-subscription.mjs.map +1 -0
  514. package/dist/actions/patch-web-profile.cjs +41 -0
  515. package/dist/actions/patch-web-profile.cjs.map +1 -0
  516. package/dist/actions/patch-web-profile.d.cts +9 -0
  517. package/dist/actions/patch-web-profile.d.cts.map +1 -0
  518. package/dist/actions/patch-web-profile.d.mts +9 -0
  519. package/dist/actions/patch-web-profile.d.mts.map +1 -0
  520. package/dist/actions/patch-web-profile.mjs +38 -0
  521. package/dist/actions/patch-web-profile.mjs.map +1 -0
  522. package/dist/actions/ping-braintree.cjs +19 -0
  523. package/dist/actions/ping-braintree.cjs.map +1 -0
  524. package/dist/actions/ping-braintree.d.cts +9 -0
  525. package/dist/actions/ping-braintree.d.cts.map +1 -0
  526. package/dist/actions/ping-braintree.d.mts +9 -0
  527. package/dist/actions/ping-braintree.d.mts.map +1 -0
  528. package/dist/actions/ping-braintree.mjs +16 -0
  529. package/dist/actions/ping-braintree.mjs.map +1 -0
  530. package/dist/actions/query-braintree-report.cjs +39 -0
  531. package/dist/actions/query-braintree-report.cjs.map +1 -0
  532. package/dist/actions/query-braintree-report.d.cts +9 -0
  533. package/dist/actions/query-braintree-report.d.cts.map +1 -0
  534. package/dist/actions/query-braintree-report.d.mts +9 -0
  535. package/dist/actions/query-braintree-report.d.mts.map +1 -0
  536. package/dist/actions/query-braintree-report.mjs +38 -0
  537. package/dist/actions/query-braintree-report.mjs.map +1 -0
  538. package/dist/actions/retrieve-payment-resource.cjs +72 -0
  539. package/dist/actions/retrieve-payment-resource.cjs.map +1 -0
  540. package/dist/actions/retrieve-payment-resource.d.cts +9 -0
  541. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -0
  542. package/dist/actions/retrieve-payment-resource.d.mts +9 -0
  543. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -0
  544. package/dist/actions/retrieve-payment-resource.mjs +71 -0
  545. package/dist/actions/retrieve-payment-resource.mjs.map +1 -0
  546. package/dist/actions/search-invoices.cjs +120 -0
  547. package/dist/actions/search-invoices.cjs.map +1 -0
  548. package/dist/actions/search-invoices.d.cts +9 -0
  549. package/dist/actions/search-invoices.d.cts.map +1 -0
  550. package/dist/actions/search-invoices.d.mts +9 -0
  551. package/dist/actions/search-invoices.d.mts.map +1 -0
  552. package/dist/actions/search-invoices.mjs +119 -0
  553. package/dist/actions/search-invoices.mjs.map +1 -0
  554. package/dist/actions/send-invoice.cjs +37 -0
  555. package/dist/actions/send-invoice.cjs.map +1 -0
  556. package/dist/actions/send-invoice.d.cts +9 -0
  557. package/dist/actions/send-invoice.d.cts.map +1 -0
  558. package/dist/actions/send-invoice.d.mts +9 -0
  559. package/dist/actions/send-invoice.d.mts.map +1 -0
  560. package/dist/actions/send-invoice.mjs +36 -0
  561. package/dist/actions/send-invoice.mjs.map +1 -0
  562. package/dist/actions/simulate-webhook-event.cjs +52 -0
  563. package/dist/actions/simulate-webhook-event.cjs.map +1 -0
  564. package/dist/actions/simulate-webhook-event.d.cts +9 -0
  565. package/dist/actions/simulate-webhook-event.d.cts.map +1 -0
  566. package/dist/actions/simulate-webhook-event.d.mts +9 -0
  567. package/dist/actions/simulate-webhook-event.d.mts.map +1 -0
  568. package/dist/actions/simulate-webhook-event.mjs +51 -0
  569. package/dist/actions/simulate-webhook-event.mjs.map +1 -0
  570. package/dist/actions/update-dispute.cjs +45 -0
  571. package/dist/actions/update-dispute.cjs.map +1 -0
  572. package/dist/actions/update-dispute.d.cts +9 -0
  573. package/dist/actions/update-dispute.d.cts.map +1 -0
  574. package/dist/actions/update-dispute.d.mts +9 -0
  575. package/dist/actions/update-dispute.d.mts.map +1 -0
  576. package/dist/actions/update-dispute.mjs +44 -0
  577. package/dist/actions/update-dispute.mjs.map +1 -0
  578. package/dist/actions/update-invoice.cjs +367 -0
  579. package/dist/actions/update-invoice.cjs.map +1 -0
  580. package/dist/actions/update-invoice.d.cts +9 -0
  581. package/dist/actions/update-invoice.d.cts.map +1 -0
  582. package/dist/actions/update-invoice.d.mts +9 -0
  583. package/dist/actions/update-invoice.d.mts.map +1 -0
  584. package/dist/actions/update-invoice.mjs +366 -0
  585. package/dist/actions/update-invoice.mjs.map +1 -0
  586. package/dist/actions/update-pay-pal-product.cjs +41 -0
  587. package/dist/actions/update-pay-pal-product.cjs.map +1 -0
  588. package/dist/actions/update-pay-pal-product.d.cts +9 -0
  589. package/dist/actions/update-pay-pal-product.d.cts.map +1 -0
  590. package/dist/actions/update-pay-pal-product.d.mts +9 -0
  591. package/dist/actions/update-pay-pal-product.d.mts.map +1 -0
  592. package/dist/actions/update-pay-pal-product.mjs +38 -0
  593. package/dist/actions/update-pay-pal-product.mjs.map +1 -0
  594. package/dist/actions/update-pay-pal-webhook.cjs +54 -0
  595. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -0
  596. package/dist/actions/update-pay-pal-webhook.d.cts +9 -0
  597. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -0
  598. package/dist/actions/update-pay-pal-webhook.d.mts +9 -0
  599. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -0
  600. package/dist/actions/update-pay-pal-webhook.mjs +53 -0
  601. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -0
  602. package/dist/actions/update-templates.cjs +403 -0
  603. package/dist/actions/update-templates.cjs.map +1 -0
  604. package/dist/actions/update-templates.d.cts +9 -0
  605. package/dist/actions/update-templates.d.cts.map +1 -0
  606. package/dist/actions/update-templates.d.mts +9 -0
  607. package/dist/actions/update-templates.d.mts.map +1 -0
  608. package/dist/actions/update-templates.mjs +402 -0
  609. package/dist/actions/update-templates.mjs.map +1 -0
  610. package/dist/actions/update-web-profile.cjs +50 -0
  611. package/dist/actions/update-web-profile.cjs.map +1 -0
  612. package/dist/actions/update-web-profile.d.cts +9 -0
  613. package/dist/actions/update-web-profile.d.cts.map +1 -0
  614. package/dist/actions/update-web-profile.d.mts +9 -0
  615. package/dist/actions/update-web-profile.d.mts.map +1 -0
  616. package/dist/actions/update-web-profile.mjs +49 -0
  617. package/dist/actions/update-web-profile.mjs.map +1 -0
  618. package/dist/actions/verify-payment-method.cjs +33 -0
  619. package/dist/actions/verify-payment-method.cjs.map +1 -0
  620. package/dist/actions/verify-payment-method.d.cts +9 -0
  621. package/dist/actions/verify-payment-method.d.cts.map +1 -0
  622. package/dist/actions/verify-payment-method.d.mts +9 -0
  623. package/dist/actions/verify-payment-method.d.mts.map +1 -0
  624. package/dist/actions/verify-payment-method.mjs +32 -0
  625. package/dist/actions/verify-payment-method.mjs.map +1 -0
  626. package/dist/actions/verify-webhook-signature.cjs +37 -0
  627. package/dist/actions/verify-webhook-signature.cjs.map +1 -0
  628. package/dist/actions/verify-webhook-signature.d.cts +9 -0
  629. package/dist/actions/verify-webhook-signature.d.cts.map +1 -0
  630. package/dist/actions/verify-webhook-signature.d.mts +9 -0
  631. package/dist/actions/verify-webhook-signature.d.mts.map +1 -0
  632. package/dist/actions/verify-webhook-signature.mjs +34 -0
  633. package/dist/actions/verify-webhook-signature.mjs.map +1 -0
  634. package/dist/app.cjs +9 -0
  635. package/dist/app.cjs.map +1 -0
  636. package/dist/app.d.cts +5 -0
  637. package/dist/app.d.cts.map +1 -0
  638. package/dist/app.d.mts +5 -0
  639. package/dist/app.d.mts.map +1 -0
  640. package/dist/app.mjs +10 -0
  641. package/dist/app.mjs.map +1 -0
  642. package/dist/catalog.cjs +15 -0
  643. package/dist/catalog.cjs.map +1 -0
  644. package/dist/catalog.d.cts +14 -0
  645. package/dist/catalog.d.cts.map +1 -0
  646. package/dist/catalog.d.mts +14 -0
  647. package/dist/catalog.d.mts.map +1 -0
  648. package/dist/catalog.mjs +15 -0
  649. package/dist/catalog.mjs.map +1 -0
  650. package/dist/execute.cjs +18 -0
  651. package/dist/execute.cjs.map +1 -0
  652. package/dist/execute.mjs +18 -0
  653. package/dist/execute.mjs.map +1 -0
  654. package/dist/index.cjs +162 -0
  655. package/dist/index.d.cts +81 -0
  656. package/dist/index.d.mts +81 -0
  657. package/dist/index.mjs +82 -0
  658. package/package.json +49 -0
@@ -0,0 +1,78 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/capture-subscription-payment.ts
4
+ const PaypalCaptureSubscriptionPaymentInput = z.object({
5
+ id: z.string().describe("The ID of the subscription."),
6
+ note: z.string().describe("The reason or note for the subscription charge."),
7
+ amount: z.object({
8
+ value: z.string().describe("The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths."),
9
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
10
+ }).describe("The charge amount from the subscriber."),
11
+ capture_type: z.enum(["OUTSTANDING_BALANCE"]).describe("The type of capture. Currently only OUTSTANDING_BALANCE is supported.")
12
+ }).describe("Request model for capturing authorized payment on subscription.");
13
+ const PaypalCaptureSubscriptionPayment_CaptureStatusSchema = z.enum([
14
+ "COMPLETED",
15
+ "DECLINED",
16
+ "PARTIALLY_REFUNDED",
17
+ "PENDING",
18
+ "REFUNDED",
19
+ "FAILED"
20
+ ]).describe("The status of the captured payment.");
21
+ const PaypalCaptureSubscriptionPayment_PayerNameSchema = z.object({
22
+ prefix: z.string().describe("The prefix, or title, to the party's name.").nullable().optional(),
23
+ suffix: z.string().describe("The suffix for the party's name.").nullable().optional(),
24
+ surname: z.string().describe("When the party is a person, the party's surname or family name.").nullable().optional(),
25
+ full_name: z.string().describe("When the party is a person, the party's full name.").nullable().optional(),
26
+ given_name: z.string().describe("When the party is a person, the party's given, or first, name.").nullable().optional(),
27
+ middle_name: z.string().describe("When the party is a person, the party's middle name.").nullable().optional()
28
+ }).describe("The name of the payer party.");
29
+ const PaypalCaptureSubscriptionPayment_FeeAmountSchema = z.object({
30
+ value: z.string().describe("The monetary value."),
31
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
32
+ }).describe("The currency and amount for a financial transaction (fee portion).");
33
+ const PaypalCaptureSubscriptionPayment_NetAmountSchema = z.object({
34
+ value: z.string().describe("The monetary value."),
35
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
36
+ }).describe("The currency and amount for a financial transaction (net portion).");
37
+ const PaypalCaptureSubscriptionPayment_TaxAmountSchema = z.object({
38
+ value: z.string().describe("The monetary value."),
39
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
40
+ }).describe("The currency and amount for tax.");
41
+ const PaypalCaptureSubscriptionPayment_GrossAmountSchema = z.object({
42
+ value: z.string().describe("The monetary value."),
43
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
44
+ }).describe("The currency and amount for a financial transaction (gross portion).");
45
+ const PaypalCaptureSubscriptionPayment_ShippingAmountSchema = z.object({
46
+ value: z.string().describe("The monetary value."),
47
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
48
+ }).describe("The currency and amount for shipping.");
49
+ const PaypalCaptureSubscriptionPayment_TotalItemAmountSchema = z.object({
50
+ value: z.string().describe("The monetary value."),
51
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.")
52
+ }).describe("The currency and amount for total items.");
53
+ const PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema = z.object({
54
+ fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),
55
+ net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),
56
+ tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),
57
+ gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),
58
+ shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),
59
+ total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional()
60
+ }).describe("The breakdown details for the amount.");
61
+ const paypalCaptureSubscriptionPayment = action("PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT", {
62
+ slug: "paypal-capture-subscription-payment",
63
+ name: "Capture subscription payment",
64
+ description: "Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.",
65
+ input: PaypalCaptureSubscriptionPaymentInput,
66
+ output: z.object({
67
+ id: z.string().describe("The PayPal-generated transaction ID."),
68
+ time: z.string().describe("The date and time, in Internet date and time format."),
69
+ status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),
70
+ payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),
71
+ payer_email: z.string().describe("The internationalized email address of the payer.").nullable().optional(),
72
+ amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable()
73
+ }).describe("Response model for capturing authorized payment on subscription.")
74
+ });
75
+ //#endregion
76
+ export { paypalCaptureSubscriptionPayment };
77
+
78
+ //# sourceMappingURL=capture-subscription-payment.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capture-subscription-payment.mjs","names":[],"sources":["../../src/actions/capture-subscription-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCaptureSubscriptionPaymentInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the subscription.\"),\n note: z.string().describe(\"The reason or note for the subscription charge.\"),\n amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY that are not typically fractional, or a decimal fraction for currencies like TND that are subdivided into thousandths.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The charge amount from the subscriber.\"),\n capture_type: z.enum([\"OUTSTANDING_BALANCE\"]).describe(\"The type of capture. Currently only OUTSTANDING_BALANCE is supported.\"),\n}).describe(\"Request model for capturing authorized payment on subscription.\");\nconst PaypalCaptureSubscriptionPayment_CaptureStatusSchema: z.ZodTypeAny = z.enum([\"COMPLETED\", \"DECLINED\", \"PARTIALLY_REFUNDED\", \"PENDING\", \"REFUNDED\", \"FAILED\"]).describe(\"The status of the captured payment.\");\nconst PaypalCaptureSubscriptionPayment_PayerNameSchema: z.ZodTypeAny = z.object({\n prefix: z.string().describe(\"The prefix, or title, to the party's name.\").nullable().optional(),\n suffix: z.string().describe(\"The suffix for the party's name.\").nullable().optional(),\n surname: z.string().describe(\"When the party is a person, the party's surname or family name.\").nullable().optional(),\n full_name: z.string().describe(\"When the party is a person, the party's full name.\").nullable().optional(),\n given_name: z.string().describe(\"When the party is a person, the party's given, or first, name.\").nullable().optional(),\n middle_name: z.string().describe(\"When the party is a person, the party's middle name.\").nullable().optional(),\n}).describe(\"The name of the payer party.\");\nconst PaypalCaptureSubscriptionPayment_FeeAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction (fee portion).\");\nconst PaypalCaptureSubscriptionPayment_NetAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction (net portion).\");\nconst PaypalCaptureSubscriptionPayment_TaxAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for tax.\");\nconst PaypalCaptureSubscriptionPayment_GrossAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction (gross portion).\");\nconst PaypalCaptureSubscriptionPayment_ShippingAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for shipping.\");\nconst PaypalCaptureSubscriptionPayment_TotalItemAmountSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The monetary value.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for total items.\");\nconst PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema: z.ZodTypeAny = z.object({\n fee_amount: PaypalCaptureSubscriptionPayment_FeeAmountSchema.nullable().optional(),\n net_amount: PaypalCaptureSubscriptionPayment_NetAmountSchema.nullable().optional(),\n tax_amount: PaypalCaptureSubscriptionPayment_TaxAmountSchema.nullable().optional(),\n gross_amount: PaypalCaptureSubscriptionPayment_GrossAmountSchema.nullable(),\n shipping_amount: PaypalCaptureSubscriptionPayment_ShippingAmountSchema.nullable().optional(),\n total_item_amount: PaypalCaptureSubscriptionPayment_TotalItemAmountSchema.nullable().optional(),\n}).describe(\"The breakdown details for the amount.\");\nexport const PaypalCaptureSubscriptionPaymentOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The PayPal-generated transaction ID.\"),\n time: z.string().describe(\"The date and time, in Internet date and time format.\"),\n status: PaypalCaptureSubscriptionPayment_CaptureStatusSchema.nullable().optional(),\n payer_name: PaypalCaptureSubscriptionPayment_PayerNameSchema.nullable().optional(),\n payer_email: z.string().describe(\"The internationalized email address of the payer.\").nullable().optional(),\n amount_with_breakdown: PaypalCaptureSubscriptionPayment_AmountWithBreakdownSchema.nullable(),\n}).describe(\"Response model for capturing authorized payment on subscription.\");\n\nexport const paypalCaptureSubscriptionPayment = action(\"PAYPAL_CAPTURE_SUBSCRIPTION_PAYMENT\", {\n slug: \"paypal-capture-subscription-payment\",\n name: \"Capture subscription payment\",\n description: \"Captures an authorized payment on a PayPal subscription. Use this action when you need to charge a subscriber for an outstanding balance or capture an authorized payment that was previously approved. This action captures payments for subscriptions that have an outstanding balance to be charged. The capture type must be OUTSTANDING_BALANCE, and you must provide the amount to capture along with a note explaining the reason for the charge.\",\n input: PaypalCaptureSubscriptionPaymentInput,\n output: PaypalCaptureSubscriptionPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC3E,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qLAAqL;EAChN,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;CAClD,cAAc,EAAE,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,uEAAuE;AAChI,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,uDAAqE,EAAE,KAAK;CAAC;CAAa;CAAY;CAAsB;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AOF;AACV,CAAC"}
@@ -0,0 +1,58 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/charge-payment-method.ts
4
+ const PaypalChargePaymentMethodInput = zod.z.object({ input: zod.z.object({
5
+ options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional options for the charge operation such as submit for settlement immediately.").optional(),
6
+ transaction: zod.z.object({
7
+ amount: zod.z.string().describe("The amount to charge. Must be a string representation of a decimal monetary value."),
8
+ channel: zod.z.string().describe("The channel through which the transaction was initiated.").optional(),
9
+ order_id: zod.z.string().describe("The order ID for tracking the transaction.").optional(),
10
+ line_items: zod.z.array(zod.z.object({
11
+ kind: zod.z.string().describe("The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).").optional(),
12
+ name: zod.z.string().describe("The name of the line item.").optional(),
13
+ quantity: zod.z.string().describe("The quantity of the line item.").optional(),
14
+ description: zod.z.string().describe("A description of the line item.").optional(),
15
+ unit_amount: zod.z.string().describe("The unit amount for this line item.").optional(),
16
+ total_amount: zod.z.string().describe("The total amount for this line item.").optional()
17
+ }).passthrough().describe("Line item for transaction details.")).describe("Line items for the transaction.").optional(),
18
+ tax_exempt: zod.z.boolean().describe("Whether the transaction is tax exempt.").optional(),
19
+ device_data: zod.z.string().describe("A JSON string containing device information for fraud prevention.").optional(),
20
+ billing_address: zod.z.object({
21
+ region: zod.z.string().describe("The region/state.").optional(),
22
+ locality: zod.z.string().describe("The locality/city.").optional(),
23
+ last_name: zod.z.string().describe("The last name of the addressee.").optional(),
24
+ first_name: zod.z.string().describe("The first name of the addressee.").optional(),
25
+ postal_code: zod.z.string().describe("The postal/ZIP code.").optional(),
26
+ country_code: zod.z.string().describe("The two-letter country code.").optional(),
27
+ street_address: zod.z.string().describe("The street address line.").optional(),
28
+ extended_address: zod.z.string().describe("The extended address line.").optional()
29
+ }).describe("Input address details for a transaction.").optional(),
30
+ shipping_address: zod.z.object({
31
+ region: zod.z.string().describe("The region/state.").optional(),
32
+ locality: zod.z.string().describe("The locality/city.").optional(),
33
+ last_name: zod.z.string().describe("The last name of the addressee.").optional(),
34
+ first_name: zod.z.string().describe("The first name of the addressee.").optional(),
35
+ postal_code: zod.z.string().describe("The postal/ZIP code.").optional(),
36
+ country_code: zod.z.string().describe("The two-letter country code.").optional(),
37
+ street_address: zod.z.string().describe("The street address line.").optional(),
38
+ extended_address: zod.z.string().describe("The extended address line.").optional()
39
+ }).describe("Input address details for a transaction.").optional(),
40
+ merchant_account_id: zod.z.string().describe("The merchant account ID to use for the transaction. If not specified, uses the default merchant account.").optional()
41
+ }).describe("The transaction details including amount and optional configuration."),
42
+ payment_method_id: zod.z.string().describe("The unique identifier of the payment method to charge.")
43
+ }).describe("The input containing the payment method ID and transaction details.") }).describe("Request model for charging a payment method via Braintree GraphQL API.\n\nUse this action when you need to charge a customer's payment method (credit card,\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\ntransaction and captures funds immediately, beginning the process of transferring\nmoney from the customer to your merchant account.\n\nThis action requires a valid payment method ID obtained from a previous tokenization\noperation (e.g., client-side tokenization via Braintree client SDK).");
44
+ const PaypalChargePaymentMethodOutput = zod.z.object({
45
+ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The response data containing the transaction result.").nullable().optional(),
46
+ errors: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("GraphQL errors if the mutation failed.").nullable().optional()
47
+ }).describe("Response model for charging a payment method.\n\nContains the transaction result or error information.");
48
+ const paypalChargePaymentMethod = require_action.action("PAYPAL_CHARGE_PAYMENT_METHOD", {
49
+ slug: "paypal-charge-payment-method",
50
+ name: "Charge Payment Method",
51
+ description: "Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.",
52
+ input: PaypalChargePaymentMethodInput,
53
+ output: PaypalChargePaymentMethodOutput
54
+ });
55
+ //#endregion
56
+ exports.paypalChargePaymentMethod = paypalChargePaymentMethod;
57
+
58
+ //# sourceMappingURL=charge-payment-method.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge-payment-method.cjs","names":["z","action"],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalChargePaymentMethodInput: z.ZodTypeAny = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,OAAOA,IAAAA,EAAE,OAAO;CAChB,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACvJ,aAAaA,IAAAA,EAAE,OAAO;EACtB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF;EAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACrF,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;GACjH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;GACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;GACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;GACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpH,YAAYA,I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: z.ZodTypeAny;
5
+ declare const PaypalChargePaymentMethodOutput: z.ZodTypeAny;
6
+ declare const paypalChargePaymentMethod: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalChargePaymentMethod };
9
+ //# sourceMappingURL=charge-payment-method.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge-payment-method.d.cts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAyCkf;AAAA,cACphB,+BAAA,EAAiC,CAAA,CAAE,UAGqE;AAAA,cAExG,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/charge-payment-method.d.ts
4
+ declare const PaypalChargePaymentMethodInput: z.ZodTypeAny;
5
+ declare const PaypalChargePaymentMethodOutput: z.ZodTypeAny;
6
+ declare const paypalChargePaymentMethod: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalChargePaymentMethod };
9
+ //# sourceMappingURL=charge-payment-method.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge-payment-method.d.mts","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAyCkf;AAAA,cACphB,+BAAA,EAAiC,CAAA,CAAE,UAGqE;AAAA,cAExG,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,55 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const paypalChargePaymentMethod = action("PAYPAL_CHARGE_PAYMENT_METHOD", {
4
+ slug: "paypal-charge-payment-method",
5
+ name: "Charge Payment Method",
6
+ description: "Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.",
7
+ input: z.object({ input: z.object({
8
+ options: z.record(z.string(), z.unknown()).describe("Additional options for the charge operation such as submit for settlement immediately.").optional(),
9
+ transaction: z.object({
10
+ amount: z.string().describe("The amount to charge. Must be a string representation of a decimal monetary value."),
11
+ channel: z.string().describe("The channel through which the transaction was initiated.").optional(),
12
+ order_id: z.string().describe("The order ID for tracking the transaction.").optional(),
13
+ line_items: z.array(z.object({
14
+ kind: z.string().describe("The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).").optional(),
15
+ name: z.string().describe("The name of the line item.").optional(),
16
+ quantity: z.string().describe("The quantity of the line item.").optional(),
17
+ description: z.string().describe("A description of the line item.").optional(),
18
+ unit_amount: z.string().describe("The unit amount for this line item.").optional(),
19
+ total_amount: z.string().describe("The total amount for this line item.").optional()
20
+ }).passthrough().describe("Line item for transaction details.")).describe("Line items for the transaction.").optional(),
21
+ tax_exempt: z.boolean().describe("Whether the transaction is tax exempt.").optional(),
22
+ device_data: z.string().describe("A JSON string containing device information for fraud prevention.").optional(),
23
+ billing_address: z.object({
24
+ region: z.string().describe("The region/state.").optional(),
25
+ locality: z.string().describe("The locality/city.").optional(),
26
+ last_name: z.string().describe("The last name of the addressee.").optional(),
27
+ first_name: z.string().describe("The first name of the addressee.").optional(),
28
+ postal_code: z.string().describe("The postal/ZIP code.").optional(),
29
+ country_code: z.string().describe("The two-letter country code.").optional(),
30
+ street_address: z.string().describe("The street address line.").optional(),
31
+ extended_address: z.string().describe("The extended address line.").optional()
32
+ }).describe("Input address details for a transaction.").optional(),
33
+ shipping_address: z.object({
34
+ region: z.string().describe("The region/state.").optional(),
35
+ locality: z.string().describe("The locality/city.").optional(),
36
+ last_name: z.string().describe("The last name of the addressee.").optional(),
37
+ first_name: z.string().describe("The first name of the addressee.").optional(),
38
+ postal_code: z.string().describe("The postal/ZIP code.").optional(),
39
+ country_code: z.string().describe("The two-letter country code.").optional(),
40
+ street_address: z.string().describe("The street address line.").optional(),
41
+ extended_address: z.string().describe("The extended address line.").optional()
42
+ }).describe("Input address details for a transaction.").optional(),
43
+ merchant_account_id: z.string().describe("The merchant account ID to use for the transaction. If not specified, uses the default merchant account.").optional()
44
+ }).describe("The transaction details including amount and optional configuration."),
45
+ payment_method_id: z.string().describe("The unique identifier of the payment method to charge.")
46
+ }).describe("The input containing the payment method ID and transaction details.") }).describe("Request model for charging a payment method via Braintree GraphQL API.\n\nUse this action when you need to charge a customer's payment method (credit card,\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\ntransaction and captures funds immediately, beginning the process of transferring\nmoney from the customer to your merchant account.\n\nThis action requires a valid payment method ID obtained from a previous tokenization\noperation (e.g., client-side tokenization via Braintree client SDK)."),
47
+ output: z.object({
48
+ data: z.record(z.string(), z.unknown()).describe("The response data containing the transaction result.").nullable().optional(),
49
+ errors: z.array(z.record(z.string(), z.unknown())).describe("GraphQL errors if the mutation failed.").nullable().optional()
50
+ }).describe("Response model for charging a payment method.\n\nContains the transaction result or error information.")
51
+ });
52
+ //#endregion
53
+ export { paypalChargePaymentMethod };
54
+
55
+ //# sourceMappingURL=charge-payment-method.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charge-payment-method.mjs","names":[],"sources":["../../src/actions/charge-payment-method.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalChargePaymentMethodInput: z.ZodTypeAny = z.object({\n input: z.object({\n options: z.record(z.string(), z.unknown()).describe(\"Additional options for the charge operation such as submit for settlement immediately.\").optional(),\n transaction: z.object({\n amount: z.string().describe(\"The amount to charge. Must be a string representation of a decimal monetary value.\"),\n channel: z.string().describe(\"The channel through which the transaction was initiated.\").optional(),\n order_id: z.string().describe(\"The order ID for tracking the transaction.\").optional(),\n line_items: z.array(z.object({\n kind: z.string().describe(\"The kind of line item (e.g., 'debit' for a charge, 'credit' for a refund).\").optional(),\n name: z.string().describe(\"The name of the line item.\").optional(),\n quantity: z.string().describe(\"The quantity of the line item.\").optional(),\n description: z.string().describe(\"A description of the line item.\").optional(),\n unit_amount: z.string().describe(\"The unit amount for this line item.\").optional(),\n total_amount: z.string().describe(\"The total amount for this line item.\").optional(),\n}).passthrough().describe(\"Line item for transaction details.\")).describe(\"Line items for the transaction.\").optional(),\n tax_exempt: z.boolean().describe(\"Whether the transaction is tax exempt.\").optional(),\n device_data: z.string().describe(\"A JSON string containing device information for fraud prevention.\").optional(),\n billing_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n shipping_address: z.object({\n region: z.string().describe(\"The region/state.\").optional(),\n locality: z.string().describe(\"The locality/city.\").optional(),\n last_name: z.string().describe(\"The last name of the addressee.\").optional(),\n first_name: z.string().describe(\"The first name of the addressee.\").optional(),\n postal_code: z.string().describe(\"The postal/ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-letter country code.\").optional(),\n street_address: z.string().describe(\"The street address line.\").optional(),\n extended_address: z.string().describe(\"The extended address line.\").optional(),\n}).describe(\"Input address details for a transaction.\").optional(),\n merchant_account_id: z.string().describe(\"The merchant account ID to use for the transaction. If not specified, uses the default merchant account.\").optional(),\n}).describe(\"The transaction details including amount and optional configuration.\"),\n payment_method_id: z.string().describe(\"The unique identifier of the payment method to charge.\"),\n}).describe(\"The input containing the payment method ID and transaction details.\"),\n}).describe(\"Request model for charging a payment method via Braintree GraphQL API.\\n\\nUse this action when you need to charge a customer's payment method (credit card,\\nPayPal account, etc.) and immediately capture funds. This creates a new Braintree\\ntransaction and captures funds immediately, beginning the process of transferring\\nmoney from the customer to your merchant account.\\n\\nThis action requires a valid payment method ID obtained from a previous tokenization\\noperation (e.g., client-side tokenization via Braintree client SDK).\");\nexport const PaypalChargePaymentMethodOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The response data containing the transaction result.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the mutation failed.\").nullable().optional(),\n}).describe(\"Response model for charging a payment method.\\n\\nContains the transaction result or error information.\");\n\nexport const paypalChargePaymentMethod = action(\"PAYPAL_CHARGE_PAYMENT_METHOD\", {\n slug: \"paypal-charge-payment-method\",\n name: \"Charge Payment Method\",\n description: \"Charges a payment method and captures funds immediately using Braintree GraphQL API. Use this action when you need to charge a customer's stored payment method (credit card, PayPal account, Venmo account, etc.) and immediately capture the funds into your merchant account. This creates a Braintree transaction and begins the settlement process. The payment method ID should be obtained from a previous tokenization operation using the Braintree client SDK (e.g., `hostedFields.tokenize()` or PayPal button). Note: This action is irreversible once the transaction is successfully captured.\",\n input: PaypalChargePaymentMethodInput,\n output: PaypalChargePaymentMethodOutput,\n});\n"],"mappings":";;AAmDA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnD0D,EAAE,OAAO,EACnE,OAAO,EAAE,OAAO;EAChB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACvJ,aAAa,EAAE,OAAO;GACt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EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,wGAOF;AACV,CAAC"}
@@ -0,0 +1,294 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-invoice.ts
4
+ const PaypalCreateInvoiceInput = zod.z.object({
5
+ items: zod.z.array(zod.z.object({
6
+ tax: zod.z.object({
7
+ name: zod.z.string().describe("The name of the tax.").optional(),
8
+ amount: zod.z.object({
9
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
10
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
11
+ }).describe("The currency and amount for a financial transaction.").optional(),
12
+ percent: zod.z.string().describe("The tax percentage as a string.").optional()
13
+ }).describe("Tax information for an invoice item.").optional(),
14
+ name: zod.z.string().describe("The item name. Must be 1-200 characters."),
15
+ discount: zod.z.object({
16
+ amount: zod.z.object({
17
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
18
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
19
+ }).describe("The currency and amount for a financial transaction.").optional(),
20
+ percent: zod.z.string().describe("The discount percentage as a string.").optional()
21
+ }).describe("Discount information for an invoice item.").optional(),
22
+ quantity: zod.z.string().describe("The quantity of the item. Must be a positive number."),
23
+ item_date: zod.z.string().describe("The date when the item was created or provided, in ISO 8601 format.").optional(),
24
+ description: zod.z.string().describe("The item description. Must be 1-2000 characters.").optional(),
25
+ unit_amount: zod.z.object({
26
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
27
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
28
+ }).describe("The unit amount of the item."),
29
+ unit_of_measure: zod.z.string().describe("The unit of measure of the item.").optional()
30
+ }).describe("An invoice line item.")).describe("An array of invoice line items. Each item includes name, quantity, and unit amount. Maximum 100 items.").optional(),
31
+ amount: zod.z.object({
32
+ value: zod.z.string().describe("The total amount value.").optional(),
33
+ breakdown: zod.z.object({
34
+ custom: zod.z.object({
35
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
36
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
37
+ }).describe("The currency and amount for a financial transaction.").optional(),
38
+ discount: zod.z.object({
39
+ amount: zod.z.object({
40
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
41
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
42
+ }).describe("The currency and amount for a financial transaction.").optional(),
43
+ percent: zod.z.string().describe("The discount percentage as a string.").optional()
44
+ }).describe("Discount information for an invoice item.").optional(),
45
+ shipping: zod.z.object({
46
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
47
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
48
+ }).describe("The currency and amount for a financial transaction.").optional(),
49
+ tax_total: zod.z.object({
50
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
51
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
52
+ }).describe("The currency and amount for a financial transaction.").optional(),
53
+ item_total: zod.z.object({
54
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
55
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
56
+ }).describe("The currency and amount for a financial transaction.").optional()
57
+ }).describe("The breakdown of the amount including item total, tax, shipping, and discounts.").optional(),
58
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").optional()
59
+ }).describe("The invoice amount summary including breakdown.").optional(),
60
+ detail: zod.z.object({
61
+ memo: zod.z.string().describe("A memo for the invoice. Must be 1-1000 characters.").optional(),
62
+ note: zod.z.string().describe("A note to the payer. Must be 1-1000 characters.").optional(),
63
+ metadata: zod.z.object({
64
+ sine: zod.z.string().describe("The Sine field.").optional(),
65
+ qr_code: zod.z.string().describe("QR code for the invoice.").optional(),
66
+ has_shipping: zod.z.boolean().describe("Whether the invoice has shipping information.").optional(),
67
+ integrator_id: zod.z.string().describe("The integrator ID.").optional(),
68
+ tax_invoice_id: zod.z.string().describe("The tax invoice ID.").optional(),
69
+ second_window_id: zod.z.string().describe("The second window ID.").optional(),
70
+ buyer_supplied_tax_id: zod.z.string().describe("The buyer supplied tax ID.").optional()
71
+ }).describe("The metadata for the invoice.").optional(),
72
+ reference: zod.z.string().describe("A reference to the associated transaction.").optional(),
73
+ invoice_date: zod.z.string().describe("The date when the invoice was issued, in ISO 8601 format.").optional(),
74
+ payment_term: zod.z.object({
75
+ due_days: zod.z.number().int().describe("The number of days until the invoice is due.").optional(),
76
+ term_type: zod.z.string().describe("The type of payment term.").optional()
77
+ }).describe("The payment term for the invoice.").optional(),
78
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code for the invoice."),
79
+ invoice_number: zod.z.string().describe("The invoice number. Must be 1-127 characters.").optional(),
80
+ terms_and_conditions: zod.z.string().describe("The terms of the invoice. Must be 1-1000 characters.").optional()
81
+ }).describe("The details of the invoice. Includes invoice number, date, currency code, and payment terms. The currency_code field is required."),
82
+ invoicer: zod.z.object({
83
+ phones: zod.z.array(zod.z.object({
84
+ country_code: zod.z.string().describe("The country code.").optional(),
85
+ national_number: zod.z.string().describe("The national phone number.").optional()
86
+ }).describe("Phone number information.")).describe("The phone numbers of the invoicer.").optional(),
87
+ tax_id: zod.z.string().describe("The tax ID of the invoicer.").optional(),
88
+ website: zod.z.string().describe("The website URL of the invoicer.").optional(),
89
+ logo_url: zod.z.string().describe("The URL to the logo image for the invoicer.").optional(),
90
+ email_address: zod.z.string().describe("The email address of the invoicer.").optional(),
91
+ additional_notes: zod.z.string().describe("Additional notes for the invoicer.").optional()
92
+ }).describe("The invoicer business information that appears on the invoice.").optional(),
93
+ due_amount: zod.z.object({
94
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
95
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
96
+ }).describe("The currency and amount for a financial transaction.").optional(),
97
+ configuration: zod.z.object({
98
+ allow_tip: zod.z.boolean().describe("Whether to allow tips.").optional(),
99
+ template_id: zod.z.string().describe("The template ID.").optional(),
100
+ tax_inclusive: zod.z.boolean().describe("Whether the amount includes tax.").optional(),
101
+ partial_payment: zod.z.object({
102
+ minimum_amount_due: zod.z.object({
103
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
104
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
105
+ }).describe("The currency and amount for a financial transaction.").optional(),
106
+ allow_partial_payment: zod.z.boolean().describe("Whether partial payments are allowed.").optional()
107
+ }).describe("Configuration for partial payments.").optional(),
108
+ has_conditional_rule: zod.z.boolean().describe("Whether there are conditional rules.").optional(),
109
+ tax_calculated_after_discount: zod.z.boolean().describe("Whether tax is calculated after discount.").optional()
110
+ }).describe("Configuration for the invoice template.").optional(),
111
+ primary_recipients: zod.z.array(zod.z.object({
112
+ billing_info: zod.z.object({
113
+ last_name: zod.z.string().describe("The last name of the billing contact.").optional(),
114
+ first_name: zod.z.string().describe("The first name of the billing contact.").optional(),
115
+ business_name: zod.z.string().describe("The business name of the billing contact.").optional(),
116
+ email_address: zod.z.string().describe("The email address of the billing contact.").optional()
117
+ }).describe("The billing information for the recipient.").optional(),
118
+ shipping_info: zod.z.object({
119
+ name: zod.z.string().describe("The full name of the shipping recipient.").optional(),
120
+ phone: zod.z.object({
121
+ country_code: zod.z.string().describe("The country code.").optional(),
122
+ national_number: zod.z.string().describe("The national phone number.").optional()
123
+ }).describe("Phone number information.").optional(),
124
+ address: zod.z.object({
125
+ city: zod.z.string().describe("The city name.").optional(),
126
+ state: zod.z.string().describe("The state code or name.").optional(),
127
+ postal_code: zod.z.string().describe("The postal code.").optional(),
128
+ country_code: zod.z.string().describe("The two-character country code.").optional(),
129
+ address_line_1: zod.z.string().describe("The primary address line.").optional(),
130
+ address_line_2: zod.z.string().describe("The secondary address line.").optional()
131
+ }).describe("Address information for shipping.").optional(),
132
+ business_name: zod.z.string().describe("The business name of the shipping recipient.").optional(),
133
+ email_address: zod.z.string().describe("The email address of the shipping recipient.").optional()
134
+ }).describe("The shipping information for the recipient.").optional()
135
+ }).describe("The billing and shipping information for the recipient.")).describe("The billing and shipping information for the recipients. Includes name, email, address, and phone.").optional(),
136
+ additional_recipients: zod.z.array(zod.z.string()).describe("An array of CC email addresses to which notifications are sent.").optional()
137
+ }).describe("Request schema for creating a PayPal draft invoice.\n\nUse this action when you need to create a new draft invoice that can be\ncustomized and sent to recipients. The minimum required field is the\ndetail object with currency_code.\n\nThe created invoice will have status DRAFT until you send it.");
138
+ const PaypalCreateInvoice_MoneySchema = zod.z.object({
139
+ value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
140
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
141
+ }).describe("The currency and amount for a financial transaction.");
142
+ const PaypalCreateInvoice_TaxInfoSchema = zod.z.object({
143
+ name: zod.z.string().describe("The name of the tax.").nullable().optional(),
144
+ amount: PaypalCreateInvoice_MoneySchema.nullable().optional(),
145
+ percent: zod.z.string().describe("The tax percentage as a string.").nullable().optional()
146
+ }).describe("Tax information for an invoice item.");
147
+ const PaypalCreateInvoice_DiscountInfoSchema = zod.z.object({
148
+ amount: PaypalCreateInvoice_MoneySchema.nullable().optional(),
149
+ percent: zod.z.string().describe("The discount percentage as a string.").nullable().optional()
150
+ }).describe("Discount information for an invoice item.");
151
+ const PaypalCreateInvoice_InvoiceItemSchema = zod.z.object({
152
+ tax: PaypalCreateInvoice_TaxInfoSchema.nullable().optional(),
153
+ name: zod.z.string().describe("The item name. Must be 1-200 characters."),
154
+ discount: PaypalCreateInvoice_DiscountInfoSchema.nullable().optional(),
155
+ quantity: zod.z.string().describe("The quantity of the item. Must be a positive number."),
156
+ item_date: zod.z.string().describe("The date when the item was created or provided, in ISO 8601 format.").nullable().optional(),
157
+ description: zod.z.string().describe("The item description. Must be 1-2000 characters.").nullable().optional(),
158
+ unit_amount: PaypalCreateInvoice_MoneySchema.nullable(),
159
+ unit_of_measure: zod.z.string().describe("The unit of measure of the item.").nullable().optional()
160
+ }).describe("An invoice line item.");
161
+ const PaypalCreateInvoice_LinkDescriptionSchema = zod.z.object({
162
+ rel: zod.z.string().describe("The link relationship type."),
163
+ href: zod.z.string().describe("The complete URL to the related resource."),
164
+ method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
165
+ }).describe("HATEOAS link information.");
166
+ const PaypalCreateInvoice_AmountBreakdownSchema = zod.z.object({
167
+ custom: PaypalCreateInvoice_MoneySchema.nullable().optional(),
168
+ discount: PaypalCreateInvoice_DiscountInfoSchema.nullable().optional(),
169
+ shipping: PaypalCreateInvoice_MoneySchema.nullable().optional(),
170
+ tax_total: PaypalCreateInvoice_MoneySchema.nullable().optional(),
171
+ item_total: PaypalCreateInvoice_MoneySchema.nullable().optional()
172
+ }).describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
173
+ const PaypalCreateInvoice_InvoiceAmountSummarySchema = zod.z.object({
174
+ value: zod.z.string().describe("The total amount value.").nullable().optional(),
175
+ breakdown: PaypalCreateInvoice_AmountBreakdownSchema.nullable().optional(),
176
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
177
+ }).describe("The invoice amount summary including breakdown.");
178
+ const PaypalCreateInvoice_InvoiceMetadataSchema = zod.z.object({
179
+ sine: zod.z.string().describe("The Sine field.").nullable().optional(),
180
+ qr_code: zod.z.string().describe("QR code for the invoice.").nullable().optional(),
181
+ has_shipping: zod.z.boolean().describe("Whether the invoice has shipping information.").nullable().optional(),
182
+ integrator_id: zod.z.string().describe("The integrator ID.").nullable().optional(),
183
+ tax_invoice_id: zod.z.string().describe("The tax invoice ID.").nullable().optional(),
184
+ second_window_id: zod.z.string().describe("The second window ID.").nullable().optional(),
185
+ buyer_supplied_tax_id: zod.z.string().describe("The buyer supplied tax ID.").nullable().optional()
186
+ }).describe("The metadata for the invoice.");
187
+ const PaypalCreateInvoice_PaymentTermSchema = zod.z.object({
188
+ due_days: zod.z.number().int().describe("The number of days until the invoice is due.").nullable().optional(),
189
+ term_type: zod.z.string().describe("The type of payment term.").nullable().optional()
190
+ }).describe("The payment term for the invoice.");
191
+ const PaypalCreateInvoice_InvoiceDetailSchema = zod.z.object({
192
+ memo: zod.z.string().describe("A memo for the invoice. Must be 1-1000 characters.").nullable().optional(),
193
+ note: zod.z.string().describe("A note to the payer. Must be 1-1000 characters.").nullable().optional(),
194
+ metadata: PaypalCreateInvoice_InvoiceMetadataSchema.nullable().optional(),
195
+ reference: zod.z.string().describe("A reference to the associated transaction.").nullable().optional(),
196
+ invoice_date: zod.z.string().describe("The date when the invoice was issued, in ISO 8601 format.").nullable().optional(),
197
+ payment_term: PaypalCreateInvoice_PaymentTermSchema.nullable().optional(),
198
+ currency_code: zod.z.string().describe("The three-character ISO-4217 currency code for the invoice."),
199
+ invoice_number: zod.z.string().describe("The invoice number. Must be 1-127 characters.").nullable().optional(),
200
+ terms_and_conditions: zod.z.string().describe("The terms of the invoice. Must be 1-1000 characters.").nullable().optional()
201
+ }).describe("The details of the invoice including number, date, payment terms, and metadata.");
202
+ const PaypalCreateInvoice_InvoiceStatusSchema = zod.z.enum([
203
+ "DRAFT",
204
+ "SENT",
205
+ "SCHEDULED",
206
+ "PAID",
207
+ "MARKED_AS_PAID",
208
+ "CANCELLED",
209
+ "REFUNDED",
210
+ "PARTIALLY_PAID",
211
+ "PARTIALLY_REFUNDED",
212
+ "MARKED_AS_REFUNDED",
213
+ "UNPAID",
214
+ "PAYMENT_PENDING",
215
+ "AUTO_CANCELLED",
216
+ "PAID_EXTERNAL",
217
+ "REFUNDED_EXTERNAL",
218
+ "SHARED"
219
+ ]).describe("The status of the invoice.");
220
+ const PaypalCreateInvoice_PhoneSchema = zod.z.object({
221
+ country_code: zod.z.string().describe("The country code.").nullable().optional(),
222
+ national_number: zod.z.string().describe("The national phone number.").nullable().optional()
223
+ }).describe("Phone number information.");
224
+ const PaypalCreateInvoice_InvoicerInfoSchema = zod.z.object({
225
+ phones: zod.z.array(PaypalCreateInvoice_PhoneSchema).describe("The phone numbers of the invoicer.").nullable().optional(),
226
+ tax_id: zod.z.string().describe("The tax ID of the invoicer.").nullable().optional(),
227
+ website: zod.z.string().describe("The website URL of the invoicer.").nullable().optional(),
228
+ logo_url: zod.z.string().describe("The URL to the logo image for the invoicer.").nullable().optional(),
229
+ email_address: zod.z.string().describe("The email address of the invoicer.").nullable().optional(),
230
+ additional_notes: zod.z.string().describe("Additional notes for the invoicer.").nullable().optional()
231
+ }).describe("The invoicer business information that appears on the invoice.");
232
+ const PaypalCreateInvoice_PartialPaymentSchema = zod.z.object({
233
+ minimum_amount_due: PaypalCreateInvoice_MoneySchema.nullable().optional(),
234
+ allow_partial_payment: zod.z.boolean().describe("Whether partial payments are allowed.").nullable().optional()
235
+ }).describe("Configuration for partial payments.");
236
+ const PaypalCreateInvoice_TemplateConfigurationSchema = zod.z.object({
237
+ allow_tip: zod.z.boolean().describe("Whether to allow tips.").nullable().optional(),
238
+ template_id: zod.z.string().describe("The template ID.").nullable().optional(),
239
+ tax_inclusive: zod.z.boolean().describe("Whether the amount includes tax.").nullable().optional(),
240
+ partial_payment: PaypalCreateInvoice_PartialPaymentSchema.nullable().optional(),
241
+ has_conditional_rule: zod.z.boolean().describe("Whether there are conditional rules.").nullable().optional(),
242
+ tax_calculated_after_discount: zod.z.boolean().describe("Whether tax is calculated after discount.").nullable().optional()
243
+ }).describe("Configuration for the invoice template.");
244
+ const PaypalCreateInvoice_BillingInfoSchema = zod.z.object({
245
+ last_name: zod.z.string().describe("The last name of the billing contact.").nullable().optional(),
246
+ first_name: zod.z.string().describe("The first name of the billing contact.").nullable().optional(),
247
+ business_name: zod.z.string().describe("The business name of the billing contact.").nullable().optional(),
248
+ email_address: zod.z.string().describe("The email address of the billing contact.").nullable().optional()
249
+ }).describe("The billing information for the recipient.");
250
+ const PaypalCreateInvoice_AddressSchema = zod.z.object({
251
+ city: zod.z.string().describe("The city name.").nullable().optional(),
252
+ state: zod.z.string().describe("The state code or name.").nullable().optional(),
253
+ postal_code: zod.z.string().describe("The postal code.").nullable().optional(),
254
+ country_code: zod.z.string().describe("The two-character country code.").nullable().optional(),
255
+ address_line_1: zod.z.string().describe("The primary address line.").nullable().optional(),
256
+ address_line_2: zod.z.string().describe("The secondary address line.").nullable().optional()
257
+ }).describe("Address information for shipping.");
258
+ const PaypalCreateInvoice_ShippingInfoSchema = zod.z.object({
259
+ name: zod.z.string().describe("The full name of the shipping recipient.").nullable().optional(),
260
+ phone: PaypalCreateInvoice_PhoneSchema.nullable().optional(),
261
+ address: PaypalCreateInvoice_AddressSchema.nullable().optional(),
262
+ business_name: zod.z.string().describe("The business name of the shipping recipient.").nullable().optional(),
263
+ email_address: zod.z.string().describe("The email address of the shipping recipient.").nullable().optional()
264
+ }).describe("The shipping information for the recipient.");
265
+ const PaypalCreateInvoice_RecipientInfoSchema = zod.z.object({
266
+ billing_info: PaypalCreateInvoice_BillingInfoSchema.nullable().optional(),
267
+ shipping_info: PaypalCreateInvoice_ShippingInfoSchema.nullable().optional()
268
+ }).describe("The billing and shipping information for the recipient.");
269
+ const PaypalCreateInvoiceOutput = zod.z.object({
270
+ id: zod.z.string().describe("The unique PayPal-generated ID for the invoice.").nullable().optional(),
271
+ name: zod.z.string().describe("Error name if the request failed.").nullable().optional(),
272
+ items: zod.z.array(PaypalCreateInvoice_InvoiceItemSchema).describe("An array of invoice line items.").nullable().optional(),
273
+ links: zod.z.array(PaypalCreateInvoice_LinkDescriptionSchema).describe("An array of HATEOAS links related to the invoice.").nullable().optional(),
274
+ amount: PaypalCreateInvoice_InvoiceAmountSummarySchema.nullable().optional(),
275
+ detail: PaypalCreateInvoice_InvoiceDetailSchema.nullable().optional(),
276
+ status: PaypalCreateInvoice_InvoiceStatusSchema.nullable().optional(),
277
+ message: zod.z.string().describe("Error message if the request failed.").nullable().optional(),
278
+ invoicer: PaypalCreateInvoice_InvoicerInfoSchema.nullable().optional(),
279
+ due_amount: PaypalCreateInvoice_MoneySchema.nullable().optional(),
280
+ configuration: PaypalCreateInvoice_TemplateConfigurationSchema.nullable().optional(),
281
+ primary_recipients: zod.z.array(PaypalCreateInvoice_RecipientInfoSchema).describe("The billing and shipping information for the recipients.").nullable().optional(),
282
+ additional_recipients: zod.z.array(zod.z.string()).describe("An array of CC email addresses.").nullable().optional()
283
+ }).describe("Response schema for a created PayPal invoice.");
284
+ const paypalCreateInvoice = require_action.action("PAYPAL_CREATE_INVOICE", {
285
+ slug: "paypal-create-invoice",
286
+ name: "Create invoice",
287
+ description: "Creates a PayPal draft invoice. Use this action when you need to create a new invoice that can be customized and sent to recipients. The invoice is created in DRAFT status and can be modified before being sent. **Required fields:** - detail.currency_code: The three-character currency code (e.g., \"USD\") **Optional fields:** - detail.invoice_number: Custom invoice number - detail.invoice_date: Date when invoice was issued - detail.note: Note to the payer - detail.terms_and_conditions: Payment terms - items: List of line items (name, quantity, unit_amount required) - primary_recipients: Billing information for recipients - amount: Invoice amount breakdown The created invoice can be modified, scheduled, or sent using other PayPal invoicing actions.",
288
+ input: PaypalCreateInvoiceInput,
289
+ output: PaypalCreateInvoiceOutput
290
+ });
291
+ //#endregion
292
+ exports.paypalCreateInvoice = paypalCreateInvoice;
293
+
294
+ //# sourceMappingURL=create-invoice.cjs.map