@keystrokehq/paypal 0.1.4 → 0.1.5

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 (637) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/activate-plan.cjs +1 -0
  4. package/dist/actions/activate-plan.cjs.map +1 -1
  5. package/dist/actions/activate-plan.d.cts +3 -15
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +3 -15
  8. package/dist/actions/activate-plan.d.mts.map +1 -1
  9. package/dist/actions/activate-plan.mjs +1 -0
  10. package/dist/actions/activate-plan.mjs.map +1 -1
  11. package/dist/actions/add-batch-trackers.cjs +1 -0
  12. package/dist/actions/add-batch-trackers.cjs.map +1 -1
  13. package/dist/actions/add-batch-trackers.d.cts +3 -33
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +3 -33
  16. package/dist/actions/add-batch-trackers.d.mts.map +1 -1
  17. package/dist/actions/add-batch-trackers.mjs +1 -0
  18. package/dist/actions/add-batch-trackers.mjs.map +1 -1
  19. package/dist/actions/authorize-order.cjs +1 -0
  20. package/dist/actions/authorize-order.cjs.map +1 -1
  21. package/dist/actions/authorize-order.d.cts +5 -25
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +5 -25
  24. package/dist/actions/authorize-order.d.mts.map +1 -1
  25. package/dist/actions/authorize-order.mjs +1 -0
  26. package/dist/actions/authorize-order.mjs.map +1 -1
  27. package/dist/actions/cancel-invoice.cjs +1 -0
  28. package/dist/actions/cancel-invoice.cjs.map +1 -1
  29. package/dist/actions/cancel-invoice.d.cts +3 -20
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +3 -20
  32. package/dist/actions/cancel-invoice.d.mts.map +1 -1
  33. package/dist/actions/cancel-invoice.mjs +1 -0
  34. package/dist/actions/cancel-invoice.mjs.map +1 -1
  35. package/dist/actions/cancel-reminders.cjs +1 -0
  36. package/dist/actions/cancel-reminders.cjs.map +1 -1
  37. package/dist/actions/cancel-reminders.d.cts +3 -15
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +3 -15
  40. package/dist/actions/cancel-reminders.d.mts.map +1 -1
  41. package/dist/actions/cancel-reminders.mjs +1 -0
  42. package/dist/actions/cancel-reminders.mjs.map +1 -1
  43. package/dist/actions/capture-subscription-payment.cjs +1 -0
  44. package/dist/actions/capture-subscription-payment.cjs.map +1 -1
  45. package/dist/actions/capture-subscription-payment.d.cts +5 -23
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +5 -23
  48. package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
  49. package/dist/actions/capture-subscription-payment.mjs +1 -0
  50. package/dist/actions/capture-subscription-payment.mjs.map +1 -1
  51. package/dist/actions/charge-payment-method.cjs +1 -0
  52. package/dist/actions/charge-payment-method.cjs.map +1 -1
  53. package/dist/actions/charge-payment-method.d.cts +3 -55
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +3 -55
  56. package/dist/actions/charge-payment-method.d.mts.map +1 -1
  57. package/dist/actions/charge-payment-method.mjs +1 -0
  58. package/dist/actions/charge-payment-method.mjs.map +1 -1
  59. package/dist/actions/create-invoice.cjs +1 -0
  60. package/dist/actions/create-invoice.cjs.map +1 -1
  61. package/dist/actions/create-invoice.d.cts +5 -151
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +5 -151
  64. package/dist/actions/create-invoice.d.mts.map +1 -1
  65. package/dist/actions/create-invoice.mjs +1 -0
  66. package/dist/actions/create-invoice.mjs.map +1 -1
  67. package/dist/actions/create-payment.cjs +1 -0
  68. package/dist/actions/create-payment.cjs.map +1 -1
  69. package/dist/actions/create-payment.d.cts +3 -77
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +3 -77
  72. package/dist/actions/create-payment.d.mts.map +1 -1
  73. package/dist/actions/create-payment.mjs +1 -0
  74. package/dist/actions/create-payment.mjs.map +1 -1
  75. package/dist/actions/create-payments-billing-plans.cjs +1 -0
  76. package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
  77. package/dist/actions/create-payments-billing-plans.d.cts +3 -48
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +3 -48
  80. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
  81. package/dist/actions/create-payments-billing-plans.mjs +1 -0
  82. package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
  83. package/dist/actions/create-plan.cjs +1 -0
  84. package/dist/actions/create-plan.cjs.map +1 -1
  85. package/dist/actions/create-plan.d.cts +3 -49
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +3 -49
  88. package/dist/actions/create-plan.d.mts.map +1 -1
  89. package/dist/actions/create-plan.mjs +1 -0
  90. package/dist/actions/create-plan.mjs.map +1 -1
  91. package/dist/actions/create-product.cjs +1 -0
  92. package/dist/actions/create-product.cjs.map +1 -1
  93. package/dist/actions/create-product.d.cts +3 -21
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +3 -21
  96. package/dist/actions/create-product.d.mts.map +1 -1
  97. package/dist/actions/create-product.mjs +1 -0
  98. package/dist/actions/create-product.mjs.map +1 -1
  99. package/dist/actions/create-subscription.cjs +1 -0
  100. package/dist/actions/create-subscription.cjs.map +1 -1
  101. package/dist/actions/create-subscription.d.cts +3 -88
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +3 -88
  104. package/dist/actions/create-subscription.d.mts.map +1 -1
  105. package/dist/actions/create-subscription.mjs +1 -0
  106. package/dist/actions/create-subscription.mjs.map +1 -1
  107. package/dist/actions/create-template.cjs +1 -0
  108. package/dist/actions/create-template.cjs.map +1 -1
  109. package/dist/actions/create-template.d.cts +3 -119
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +3 -119
  112. package/dist/actions/create-template.d.mts.map +1 -1
  113. package/dist/actions/create-template.mjs +1 -0
  114. package/dist/actions/create-template.mjs.map +1 -1
  115. package/dist/actions/create-web-profile.cjs +1 -0
  116. package/dist/actions/create-web-profile.cjs.map +1 -1
  117. package/dist/actions/create-web-profile.d.cts +3 -32
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +3 -32
  120. package/dist/actions/create-web-profile.d.mts.map +1 -1
  121. package/dist/actions/create-web-profile.mjs +1 -0
  122. package/dist/actions/create-web-profile.mjs.map +1 -1
  123. package/dist/actions/create-webhook-lookup.cjs +1 -0
  124. package/dist/actions/create-webhook-lookup.cjs.map +1 -1
  125. package/dist/actions/create-webhook-lookup.d.cts +3 -13
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +3 -13
  128. package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
  129. package/dist/actions/create-webhook-lookup.mjs +1 -0
  130. package/dist/actions/create-webhook-lookup.mjs.map +1 -1
  131. package/dist/actions/create-webhook.cjs +1 -0
  132. package/dist/actions/create-webhook.cjs.map +1 -1
  133. package/dist/actions/create-webhook.d.cts +3 -21
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +3 -21
  136. package/dist/actions/create-webhook.d.mts.map +1 -1
  137. package/dist/actions/create-webhook.mjs +1 -0
  138. package/dist/actions/create-webhook.mjs.map +1 -1
  139. package/dist/actions/deactivate-plan.cjs +1 -0
  140. package/dist/actions/deactivate-plan.cjs.map +1 -1
  141. package/dist/actions/deactivate-plan.d.cts +3 -15
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +3 -15
  144. package/dist/actions/deactivate-plan.d.mts.map +1 -1
  145. package/dist/actions/deactivate-plan.mjs +1 -0
  146. package/dist/actions/deactivate-plan.mjs.map +1 -1
  147. package/dist/actions/delete-external-payment.cjs +1 -0
  148. package/dist/actions/delete-external-payment.cjs.map +1 -1
  149. package/dist/actions/delete-external-payment.d.cts +3 -16
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +3 -16
  152. package/dist/actions/delete-external-payment.d.mts.map +1 -1
  153. package/dist/actions/delete-external-payment.mjs +1 -0
  154. package/dist/actions/delete-external-payment.mjs.map +1 -1
  155. package/dist/actions/delete-invoice-payment-record.cjs +1 -0
  156. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
  157. package/dist/actions/delete-invoice-payment-record.d.cts +3 -16
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +3 -16
  160. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
  161. package/dist/actions/delete-invoice-payment-record.mjs +1 -0
  162. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
  163. package/dist/actions/delete-invoice-refund-record.cjs +1 -0
  164. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
  165. package/dist/actions/delete-invoice-refund-record.d.cts +3 -16
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +3 -16
  168. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
  169. package/dist/actions/delete-invoice-refund-record.mjs +1 -0
  170. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
  171. package/dist/actions/delete-invoice.cjs +1 -0
  172. package/dist/actions/delete-invoice.cjs.map +1 -1
  173. package/dist/actions/delete-invoice.d.cts +3 -15
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +3 -15
  176. package/dist/actions/delete-invoice.d.mts.map +1 -1
  177. package/dist/actions/delete-invoice.mjs +1 -0
  178. package/dist/actions/delete-invoice.mjs.map +1 -1
  179. package/dist/actions/delete-payment-resource.cjs +1 -0
  180. package/dist/actions/delete-payment-resource.cjs.map +1 -1
  181. package/dist/actions/delete-payment-resource.d.cts +3 -15
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +3 -15
  184. package/dist/actions/delete-payment-resource.d.mts.map +1 -1
  185. package/dist/actions/delete-payment-resource.mjs +1 -0
  186. package/dist/actions/delete-payment-resource.mjs.map +1 -1
  187. package/dist/actions/delete-template.cjs +1 -0
  188. package/dist/actions/delete-template.cjs.map +1 -1
  189. package/dist/actions/delete-template.d.cts +3 -15
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +3 -15
  192. package/dist/actions/delete-template.d.mts.map +1 -1
  193. package/dist/actions/delete-template.mjs +1 -0
  194. package/dist/actions/delete-template.mjs.map +1 -1
  195. package/dist/actions/delete-web-profile.cjs +1 -0
  196. package/dist/actions/delete-web-profile.cjs.map +1 -1
  197. package/dist/actions/delete-web-profile.d.cts +3 -15
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +3 -15
  200. package/dist/actions/delete-web-profile.d.mts.map +1 -1
  201. package/dist/actions/delete-web-profile.mjs +1 -0
  202. package/dist/actions/delete-web-profile.mjs.map +1 -1
  203. package/dist/actions/delete-webhook.cjs +1 -0
  204. package/dist/actions/delete-webhook.cjs.map +1 -1
  205. package/dist/actions/delete-webhook.d.cts +3 -15
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +3 -15
  208. package/dist/actions/delete-webhook.d.mts.map +1 -1
  209. package/dist/actions/delete-webhook.mjs +1 -0
  210. package/dist/actions/delete-webhook.mjs.map +1 -1
  211. package/dist/actions/fetch-node.cjs +1 -0
  212. package/dist/actions/fetch-node.cjs.map +1 -1
  213. package/dist/actions/fetch-node.d.cts +3 -15
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +3 -15
  216. package/dist/actions/fetch-node.d.mts.map +1 -1
  217. package/dist/actions/fetch-node.mjs +1 -0
  218. package/dist/actions/fetch-node.mjs.map +1 -1
  219. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +1 -0
  220. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
  221. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -15
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -15
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
  227. package/dist/actions/find-eligible-methods.cjs +1 -0
  228. package/dist/actions/find-eligible-methods.cjs.map +1 -1
  229. package/dist/actions/find-eligible-methods.d.cts +3 -49
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +3 -49
  232. package/dist/actions/find-eligible-methods.d.mts.map +1 -1
  233. package/dist/actions/find-eligible-methods.mjs +1 -0
  234. package/dist/actions/find-eligible-methods.mjs.map +1 -1
  235. package/dist/actions/generate-client-token.cjs +1 -0
  236. package/dist/actions/generate-client-token.cjs.map +1 -1
  237. package/dist/actions/generate-client-token.d.cts +3 -13
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +3 -13
  240. package/dist/actions/generate-client-token.d.mts.map +1 -1
  241. package/dist/actions/generate-client-token.mjs +1 -0
  242. package/dist/actions/generate-client-token.mjs.map +1 -1
  243. package/dist/actions/generate-next-invoice-number-v2.cjs +1 -0
  244. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
  245. package/dist/actions/generate-next-invoice-number-v2.d.cts +3 -15
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -15
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
  251. package/dist/actions/generate-next-invoice-number.cjs +1 -0
  252. package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
  253. package/dist/actions/generate-next-invoice-number.d.cts +3 -13
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +3 -13
  256. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
  257. package/dist/actions/generate-next-invoice-number.mjs +1 -0
  258. package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
  259. package/dist/actions/generate-qr-code.cjs +1 -0
  260. package/dist/actions/generate-qr-code.cjs.map +1 -1
  261. package/dist/actions/generate-qr-code.d.cts +3 -18
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +3 -18
  264. package/dist/actions/generate-qr-code.d.mts.map +1 -1
  265. package/dist/actions/generate-qr-code.mjs +1 -0
  266. package/dist/actions/generate-qr-code.mjs.map +1 -1
  267. package/dist/actions/get-billing-subscriptions.cjs +1 -0
  268. package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
  269. package/dist/actions/get-billing-subscriptions.d.cts +3 -20
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +3 -20
  272. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
  273. package/dist/actions/get-billing-subscriptions.mjs +1 -0
  274. package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
  275. package/dist/actions/get-invoice.cjs +1 -0
  276. package/dist/actions/get-invoice.cjs.map +1 -1
  277. package/dist/actions/get-invoice.d.cts +3 -15
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +3 -15
  280. package/dist/actions/get-invoice.d.mts.map +1 -1
  281. package/dist/actions/get-invoice.mjs +1 -0
  282. package/dist/actions/get-invoice.mjs.map +1 -1
  283. package/dist/actions/get-invoicing-invoices-qr-code.cjs +1 -0
  284. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
  285. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +3 -18
  286. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
  287. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +3 -18
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
  289. package/dist/actions/get-invoicing-invoices-qr-code.mjs +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
  291. package/dist/actions/get-invoicing-template.cjs +1 -0
  292. package/dist/actions/get-invoicing-template.cjs.map +1 -1
  293. package/dist/actions/get-invoicing-template.d.cts +3 -15
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +3 -15
  296. package/dist/actions/get-invoicing-template.d.mts.map +1 -1
  297. package/dist/actions/get-invoicing-template.mjs +1 -0
  298. package/dist/actions/get-invoicing-template.mjs.map +1 -1
  299. package/dist/actions/get-order.cjs +1 -0
  300. package/dist/actions/get-order.cjs.map +1 -1
  301. package/dist/actions/get-order.d.cts +3 -16
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +3 -16
  304. package/dist/actions/get-order.d.mts.map +1 -1
  305. package/dist/actions/get-order.mjs +1 -0
  306. package/dist/actions/get-order.mjs.map +1 -1
  307. package/dist/actions/get-payment.cjs +1 -0
  308. package/dist/actions/get-payment.cjs.map +1 -1
  309. package/dist/actions/get-payment.d.cts +3 -15
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +3 -15
  312. package/dist/actions/get-payment.d.mts.map +1 -1
  313. package/dist/actions/get-payment.mjs +1 -0
  314. package/dist/actions/get-payment.mjs.map +1 -1
  315. package/dist/actions/get-payments-refund.cjs +1 -0
  316. package/dist/actions/get-payments-refund.cjs.map +1 -1
  317. package/dist/actions/get-payments-refund.d.cts +3 -15
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +3 -15
  320. package/dist/actions/get-payments-refund.d.mts.map +1 -1
  321. package/dist/actions/get-payments-refund.mjs +1 -0
  322. package/dist/actions/get-payments-refund.mjs.map +1 -1
  323. package/dist/actions/get-plan.cjs +1 -0
  324. package/dist/actions/get-plan.cjs.map +1 -1
  325. package/dist/actions/get-plan.d.cts +3 -15
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +3 -15
  328. package/dist/actions/get-plan.d.mts.map +1 -1
  329. package/dist/actions/get-plan.mjs +1 -0
  330. package/dist/actions/get-plan.mjs.map +1 -1
  331. package/dist/actions/get-product.cjs +1 -0
  332. package/dist/actions/get-product.cjs.map +1 -1
  333. package/dist/actions/get-product.d.cts +3 -15
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +3 -15
  336. package/dist/actions/get-product.d.mts.map +1 -1
  337. package/dist/actions/get-product.mjs +1 -0
  338. package/dist/actions/get-product.mjs.map +1 -1
  339. package/dist/actions/get-subscription.cjs +1 -0
  340. package/dist/actions/get-subscription.cjs.map +1 -1
  341. package/dist/actions/get-subscription.d.cts +3 -16
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +3 -16
  344. package/dist/actions/get-subscription.d.mts.map +1 -1
  345. package/dist/actions/get-subscription.mjs +1 -0
  346. package/dist/actions/get-subscription.mjs.map +1 -1
  347. package/dist/actions/get-user-info.cjs +1 -0
  348. package/dist/actions/get-user-info.cjs.map +1 -1
  349. package/dist/actions/get-user-info.d.cts +3 -15
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +3 -15
  352. package/dist/actions/get-user-info.d.mts.map +1 -1
  353. package/dist/actions/get-user-info.mjs +1 -0
  354. package/dist/actions/get-user-info.mjs.map +1 -1
  355. package/dist/actions/get-userinfo.cjs +1 -0
  356. package/dist/actions/get-userinfo.cjs.map +1 -1
  357. package/dist/actions/get-userinfo.d.cts +3 -15
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +3 -15
  360. package/dist/actions/get-userinfo.d.mts.map +1 -1
  361. package/dist/actions/get-userinfo.mjs +1 -0
  362. package/dist/actions/get-userinfo.mjs.map +1 -1
  363. package/dist/actions/get-web-profile.cjs +1 -0
  364. package/dist/actions/get-web-profile.cjs.map +1 -1
  365. package/dist/actions/get-web-profile.d.cts +3 -15
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +3 -15
  368. package/dist/actions/get-web-profile.d.mts.map +1 -1
  369. package/dist/actions/get-web-profile.mjs +1 -0
  370. package/dist/actions/get-web-profile.mjs.map +1 -1
  371. package/dist/actions/get-webhook-lookup.cjs +1 -0
  372. package/dist/actions/get-webhook-lookup.cjs.map +1 -1
  373. package/dist/actions/get-webhook-lookup.d.cts +3 -15
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +3 -15
  376. package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
  377. package/dist/actions/get-webhook-lookup.mjs +1 -0
  378. package/dist/actions/get-webhook-lookup.mjs.map +1 -1
  379. package/dist/actions/get-webhook.cjs +1 -0
  380. package/dist/actions/get-webhook.cjs.map +1 -1
  381. package/dist/actions/get-webhook.d.cts +3 -15
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +3 -15
  384. package/dist/actions/get-webhook.d.mts.map +1 -1
  385. package/dist/actions/get-webhook.mjs +1 -0
  386. package/dist/actions/get-webhook.mjs.map +1 -1
  387. package/dist/actions/list-disputes.cjs +1 -0
  388. package/dist/actions/list-disputes.cjs.map +1 -1
  389. package/dist/actions/list-disputes.d.cts +3 -21
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +3 -21
  392. package/dist/actions/list-disputes.d.mts.map +1 -1
  393. package/dist/actions/list-disputes.mjs +1 -0
  394. package/dist/actions/list-disputes.mjs.map +1 -1
  395. package/dist/actions/list-invoices.cjs +1 -0
  396. package/dist/actions/list-invoices.cjs.map +1 -1
  397. package/dist/actions/list-invoices.d.cts +3 -18
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +3 -18
  400. package/dist/actions/list-invoices.d.mts.map +1 -1
  401. package/dist/actions/list-invoices.mjs +1 -0
  402. package/dist/actions/list-invoices.mjs.map +1 -1
  403. package/dist/actions/list-legacy-billing-plans.cjs +1 -0
  404. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
  405. package/dist/actions/list-legacy-billing-plans.d.cts +3 -20
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +3 -20
  408. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
  409. package/dist/actions/list-legacy-billing-plans.mjs +1 -0
  410. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
  411. package/dist/actions/list-payments.cjs +1 -0
  412. package/dist/actions/list-payments.cjs.map +1 -1
  413. package/dist/actions/list-payments.d.cts +5 -23
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +5 -23
  416. package/dist/actions/list-payments.d.mts.map +1 -1
  417. package/dist/actions/list-payments.mjs +1 -0
  418. package/dist/actions/list-payments.mjs.map +1 -1
  419. package/dist/actions/list-plans.cjs +1 -0
  420. package/dist/actions/list-plans.cjs.map +1 -1
  421. package/dist/actions/list-plans.d.cts +3 -18
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +3 -18
  424. package/dist/actions/list-plans.d.mts.map +1 -1
  425. package/dist/actions/list-plans.mjs +1 -0
  426. package/dist/actions/list-plans.mjs.map +1 -1
  427. package/dist/actions/list-products.cjs +1 -0
  428. package/dist/actions/list-products.cjs.map +1 -1
  429. package/dist/actions/list-products.d.cts +3 -17
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +3 -17
  432. package/dist/actions/list-products.d.mts.map +1 -1
  433. package/dist/actions/list-products.mjs +1 -0
  434. package/dist/actions/list-products.mjs.map +1 -1
  435. package/dist/actions/list-templates.cjs +1 -0
  436. package/dist/actions/list-templates.cjs.map +1 -1
  437. package/dist/actions/list-templates.d.cts +3 -17
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +3 -17
  440. package/dist/actions/list-templates.d.mts.map +1 -1
  441. package/dist/actions/list-templates.mjs +1 -0
  442. package/dist/actions/list-templates.mjs.map +1 -1
  443. package/dist/actions/list-web-profiles.cjs +1 -0
  444. package/dist/actions/list-web-profiles.cjs.map +1 -1
  445. package/dist/actions/list-web-profiles.d.cts +3 -17
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +3 -17
  448. package/dist/actions/list-web-profiles.d.mts.map +1 -1
  449. package/dist/actions/list-web-profiles.mjs +1 -0
  450. package/dist/actions/list-web-profiles.mjs.map +1 -1
  451. package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -0
  452. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
  453. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -15
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -15
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
  459. package/dist/actions/list-webhook-event-types.cjs +1 -0
  460. package/dist/actions/list-webhook-event-types.cjs.map +1 -1
  461. package/dist/actions/list-webhook-event-types.d.cts +3 -13
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +3 -13
  464. package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
  465. package/dist/actions/list-webhook-event-types.mjs +1 -0
  466. package/dist/actions/list-webhook-event-types.mjs.map +1 -1
  467. package/dist/actions/list-webhook-lookups.cjs +1 -0
  468. package/dist/actions/list-webhook-lookups.cjs.map +1 -1
  469. package/dist/actions/list-webhook-lookups.d.cts +3 -13
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +3 -13
  472. package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
  473. package/dist/actions/list-webhook-lookups.mjs +1 -0
  474. package/dist/actions/list-webhook-lookups.mjs.map +1 -1
  475. package/dist/actions/list-webhooks.cjs +1 -0
  476. package/dist/actions/list-webhooks.cjs.map +1 -1
  477. package/dist/actions/list-webhooks.d.cts +3 -15
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +3 -15
  480. package/dist/actions/list-webhooks.d.mts.map +1 -1
  481. package/dist/actions/list-webhooks.mjs +1 -0
  482. package/dist/actions/list-webhooks.mjs.map +1 -1
  483. package/dist/actions/patch-orders.cjs +1 -0
  484. package/dist/actions/patch-orders.cjs.map +1 -1
  485. package/dist/actions/patch-orders.d.cts +3 -22
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +3 -22
  488. package/dist/actions/patch-orders.d.mts.map +1 -1
  489. package/dist/actions/patch-orders.mjs +1 -0
  490. package/dist/actions/patch-orders.mjs.map +1 -1
  491. package/dist/actions/patch-plan.cjs +1 -0
  492. package/dist/actions/patch-plan.cjs.map +1 -1
  493. package/dist/actions/patch-plan.d.cts +3 -22
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +3 -22
  496. package/dist/actions/patch-plan.d.mts.map +1 -1
  497. package/dist/actions/patch-plan.mjs +1 -0
  498. package/dist/actions/patch-plan.mjs.map +1 -1
  499. package/dist/actions/patch-subscription.cjs +1 -0
  500. package/dist/actions/patch-subscription.cjs.map +1 -1
  501. package/dist/actions/patch-subscription.d.cts +3 -22
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +3 -22
  504. package/dist/actions/patch-subscription.d.mts.map +1 -1
  505. package/dist/actions/patch-subscription.mjs +1 -0
  506. package/dist/actions/patch-subscription.mjs.map +1 -1
  507. package/dist/actions/patch-web-profile.cjs +1 -0
  508. package/dist/actions/patch-web-profile.cjs.map +1 -1
  509. package/dist/actions/patch-web-profile.d.cts +3 -22
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +3 -22
  512. package/dist/actions/patch-web-profile.d.mts.map +1 -1
  513. package/dist/actions/patch-web-profile.mjs +1 -0
  514. package/dist/actions/patch-web-profile.mjs.map +1 -1
  515. package/dist/actions/ping-braintree.cjs +1 -0
  516. package/dist/actions/ping-braintree.cjs.map +1 -1
  517. package/dist/actions/ping-braintree.d.cts +3 -13
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +3 -13
  520. package/dist/actions/ping-braintree.d.mts.map +1 -1
  521. package/dist/actions/ping-braintree.mjs +1 -0
  522. package/dist/actions/ping-braintree.mjs.map +1 -1
  523. package/dist/actions/query-braintree-report.cjs +1 -0
  524. package/dist/actions/query-braintree-report.cjs.map +1 -1
  525. package/dist/actions/query-braintree-report.d.cts +3 -18
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +3 -18
  528. package/dist/actions/query-braintree-report.d.mts.map +1 -1
  529. package/dist/actions/query-braintree-report.mjs +1 -0
  530. package/dist/actions/query-braintree-report.mjs.map +1 -1
  531. package/dist/actions/retrieve-payment-resource.cjs +1 -0
  532. package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
  533. package/dist/actions/retrieve-payment-resource.d.cts +3 -15
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +3 -15
  536. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
  537. package/dist/actions/retrieve-payment-resource.mjs +1 -0
  538. package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
  539. package/dist/actions/search-invoices.cjs +1 -0
  540. package/dist/actions/search-invoices.cjs.map +1 -1
  541. package/dist/actions/search-invoices.d.cts +5 -56
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +5 -56
  544. package/dist/actions/search-invoices.d.mts.map +1 -1
  545. package/dist/actions/search-invoices.mjs +1 -0
  546. package/dist/actions/search-invoices.mjs.map +1 -1
  547. package/dist/actions/send-invoice.cjs +1 -0
  548. package/dist/actions/send-invoice.cjs.map +1 -1
  549. package/dist/actions/send-invoice.d.cts +3 -20
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +3 -20
  552. package/dist/actions/send-invoice.d.mts.map +1 -1
  553. package/dist/actions/send-invoice.mjs +1 -0
  554. package/dist/actions/send-invoice.mjs.map +1 -1
  555. package/dist/actions/simulate-webhook-event.cjs +1 -0
  556. package/dist/actions/simulate-webhook-event.cjs.map +1 -1
  557. package/dist/actions/simulate-webhook-event.d.cts +3 -18
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +3 -18
  560. package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
  561. package/dist/actions/simulate-webhook-event.mjs +1 -0
  562. package/dist/actions/simulate-webhook-event.mjs.map +1 -1
  563. package/dist/actions/update-dispute.cjs +1 -0
  564. package/dist/actions/update-dispute.cjs.map +1 -1
  565. package/dist/actions/update-dispute.d.cts +3 -22
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +3 -22
  568. package/dist/actions/update-dispute.d.mts.map +1 -1
  569. package/dist/actions/update-dispute.mjs +1 -0
  570. package/dist/actions/update-dispute.mjs.map +1 -1
  571. package/dist/actions/update-invoice.cjs +1 -0
  572. package/dist/actions/update-invoice.cjs.map +1 -1
  573. package/dist/actions/update-invoice.d.cts +5 -183
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +5 -183
  576. package/dist/actions/update-invoice.d.mts.map +1 -1
  577. package/dist/actions/update-invoice.mjs +1 -0
  578. package/dist/actions/update-invoice.mjs.map +1 -1
  579. package/dist/actions/update-pay-pal-product.cjs +1 -0
  580. package/dist/actions/update-pay-pal-product.cjs.map +1 -1
  581. package/dist/actions/update-pay-pal-product.d.cts +3 -22
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +3 -22
  584. package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
  585. package/dist/actions/update-pay-pal-product.mjs +1 -0
  586. package/dist/actions/update-pay-pal-product.mjs.map +1 -1
  587. package/dist/actions/update-pay-pal-webhook.cjs +1 -0
  588. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
  589. package/dist/actions/update-pay-pal-webhook.d.cts +3 -22
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +3 -22
  592. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
  593. package/dist/actions/update-pay-pal-webhook.mjs +1 -0
  594. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
  595. package/dist/actions/update-templates.cjs +1 -0
  596. package/dist/actions/update-templates.cjs.map +1 -1
  597. package/dist/actions/update-templates.d.cts +3 -225
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +3 -225
  600. package/dist/actions/update-templates.d.mts.map +1 -1
  601. package/dist/actions/update-templates.mjs +1 -0
  602. package/dist/actions/update-templates.mjs.map +1 -1
  603. package/dist/actions/update-web-profile.cjs +1 -0
  604. package/dist/actions/update-web-profile.cjs.map +1 -1
  605. package/dist/actions/update-web-profile.d.cts +3 -32
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +3 -32
  608. package/dist/actions/update-web-profile.d.mts.map +1 -1
  609. package/dist/actions/update-web-profile.mjs +1 -0
  610. package/dist/actions/update-web-profile.mjs.map +1 -1
  611. package/dist/actions/verify-payment-method.cjs +1 -0
  612. package/dist/actions/verify-payment-method.cjs.map +1 -1
  613. package/dist/actions/verify-payment-method.d.cts +3 -18
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +3 -18
  616. package/dist/actions/verify-payment-method.d.mts.map +1 -1
  617. package/dist/actions/verify-payment-method.mjs +1 -0
  618. package/dist/actions/verify-payment-method.mjs.map +1 -1
  619. package/dist/actions/verify-webhook-signature.cjs +1 -0
  620. package/dist/actions/verify-webhook-signature.cjs.map +1 -1
  621. package/dist/actions/verify-webhook-signature.d.cts +3 -36
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +3 -36
  624. package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
  625. package/dist/actions/verify-webhook-signature.mjs +1 -0
  626. package/dist/actions/verify-webhook-signature.mjs.map +1 -1
  627. package/dist/app.cjs +2 -2
  628. package/dist/app.cjs.map +1 -1
  629. package/dist/app.d.cts +4 -6
  630. package/dist/app.d.cts.map +1 -1
  631. package/dist/app.d.mts +4 -6
  632. package/dist/app.d.mts.map +1 -1
  633. package/dist/app.mjs +0 -1
  634. package/dist/app.mjs.map +1 -1
  635. package/dist/index.d.cts +1 -1
  636. package/dist/index.d.mts +1 -1
  637. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-payment.d.ts
@@ -151,83 +153,7 @@ declare const PaypalCreatePaymentOutput: z.ZodObject<{
151
153
  return_url: z.ZodNullable<z.ZodString>;
152
154
  }, z.core.$loose>>>;
153
155
  }, z.core.$loose>;
154
- declare const paypalCreatePayment: import("@keystrokehq/action").WorkflowActionDefinition<{
155
- payer: {
156
- payment_method: "paypal" | "credit_card" | "pay_upon_invoice" | "bank_transfer";
157
- payer_info?: {
158
- email?: string | undefined;
159
- payer_id?: string | undefined;
160
- } | undefined;
161
- funding_instruments?: {
162
- [x: string]: unknown;
163
- credit_card?: Record<string, unknown> | undefined;
164
- bank_account?: Record<string, unknown> | undefined;
165
- credit_card_token?: Record<string, unknown> | undefined;
166
- }[] | undefined;
167
- };
168
- intent: "sale" | "authorize" | "order";
169
- transactions: {
170
- [x: string]: unknown;
171
- amount: {
172
- total: string;
173
- currency: string;
174
- details?: {
175
- tax?: string | undefined;
176
- shipping?: string | undefined;
177
- subtotal?: string | undefined;
178
- gift_wrap?: string | undefined;
179
- insurance?: string | undefined;
180
- handling_fee?: string | undefined;
181
- shipping_discount?: string | undefined;
182
- } | undefined;
183
- };
184
- custom?: string | undefined;
185
- item_list?: {
186
- items?: {
187
- [x: string]: unknown;
188
- name: string;
189
- price: string;
190
- currency: string;
191
- quantity: string;
192
- }[] | undefined;
193
- shipping_address?: {
194
- city: string;
195
- line1: string;
196
- country_code: string;
197
- line2?: string | undefined;
198
- phone?: string | undefined;
199
- state?: string | undefined;
200
- postal_code?: string | undefined;
201
- recipient_name?: string | undefined;
202
- } | undefined;
203
- } | undefined;
204
- description?: string | undefined;
205
- invoice_number?: string | undefined;
206
- related_resources?: {
207
- [x: string]: unknown;
208
- sale?: Record<string, unknown> | undefined;
209
- order?: Record<string, unknown> | undefined;
210
- capture?: Record<string, unknown> | undefined;
211
- authorization?: Record<string, unknown> | undefined;
212
- }[] | undefined;
213
- }[];
214
- redirect_urls?: {
215
- cancel_url: string;
216
- return_url: string;
217
- } | undefined;
218
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
219
- connectionId: z.ZodString;
220
- entityId: z.ZodString;
221
- instanceId: z.ZodString;
222
- }, z.core.$strip>, z.ZodObject<{
223
- accessToken: z.ZodString;
224
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
225
- connectionId: z.ZodString;
226
- entityId: z.ZodString;
227
- instanceId: z.ZodString;
228
- }, z.core.$strip>, z.ZodObject<{
229
- accessToken: z.ZodString;
230
- }, z.core.$strip>>]>;
156
+ declare const paypalCreatePayment: AppAction<typeof PaypalCreatePaymentInput, typeof PaypalCreatePaymentOutput, typeof paypal.credential>;
231
157
  //#endregion
232
158
  export { paypalCreatePayment };
233
159
  //# sourceMappingURL=create-payment.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-payment.d.mts","names":[],"sources":["../../src/actions/create-payment.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-payment.d.mts","names":[],"sources":["../../src/actions/create-payment.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsIxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-payment.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-payment.mjs","names":[],"sources":["../../src/actions/create-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePaymentInput = z.object({\n payer: z.object({\n payer_info: z.object({\n email: z.string().describe(\"The email address of the payer.\").optional(),\n payer_id: z.string().describe(\"The unique PayPal customer account ID.\").optional(),\n}).describe(\"Information about the payer.\").optional(),\n payment_method: z.enum([\"paypal\", \"credit_card\", \"pay_upon_invoice\", \"bank_transfer\"]).describe(\"The payment method used by the payer. Must be 'paypal' or 'credit_card'.\"),\n funding_instruments: z.array(z.object({\n credit_card: z.record(z.string(), z.unknown()).describe(\"Credit card information for the payment.\").optional(),\n bank_account: z.record(z.string(), z.unknown()).describe(\"Bank account information for the payment.\").optional(),\n credit_card_token: z.record(z.string(), z.unknown()).describe(\"Tokenized credit card for the payment.\").optional(),\n}).passthrough().describe(\"Funding source for the payment.\")).describe(\"Funding sources for the payment.\").optional(),\n}).describe(\"The payer information including payment method.\"),\n intent: z.enum([\"sale\", \"authorize\", \"order\"]).describe(\"The payment intent. Must be 'sale' for immediate payment, 'authorize' for payment authorization, or 'order' for creating an order.\"),\n transactions: z.array(z.object({\n amount: z.object({\n total: z.string().describe(\"The total amount charged from the payer. Required when creating a payment. Must be less than or equal to the amount authorized.\"),\n details: z.object({\n tax: z.string().describe(\"The tax amount.\").optional(),\n shipping: z.string().describe(\"The shipping fee.\").optional(),\n subtotal: z.string().describe(\"The subtotal amount for items.\").optional(),\n gift_wrap: z.string().describe(\"The gift wrap fee.\").optional(),\n insurance: z.string().describe(\"The insurance fee.\").optional(),\n handling_fee: z.string().describe(\"The handling fee.\").optional(),\n shipping_discount: z.string().describe(\"The shipping discount amount.\").optional(),\n}).describe(\"Additional details about the payment amount breakdown.\").optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The amount charged from the payer.\"),\n custom: z.string().describe(\"Custom field as a string for additional information.\").optional(),\n item_list: z.object({\n items: z.array(z.object({\n name: z.string().describe(\"Item name.\"),\n price: z.string().describe(\"Item price.\"),\n currency: z.string().describe(\"Currency code.\"),\n quantity: z.string().describe(\"Number of items.\"),\n}).passthrough().describe(\"Line item details.\")).describe(\"List of items.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"City name.\"),\n line1: z.string().describe(\"First line of the address.\"),\n line2: z.string().describe(\"Second line of the address.\").optional(),\n phone: z.string().describe(\"Phone number.\").optional(),\n state: z.string().describe(\"State or province.\").optional(),\n postal_code: z.string().describe(\"Postal code.\").optional(),\n country_code: z.string().describe(\"Two-letter country code.\"),\n recipient_name: z.string().describe(\"Name of the recipient.\").optional(),\n}).describe(\"Shipping address for the payment.\").optional(),\n}).describe(\"List of items in the transaction.\").optional(),\n description: z.string().describe(\"Description of the transaction.\").optional(),\n invoice_number: z.string().describe(\"Invoice number to track the payment.\").optional(),\n related_resources: z.array(z.object({\n sale: z.record(z.string(), z.unknown()).describe(\"Sale resource.\").optional(),\n order: z.record(z.string(), z.unknown()).describe(\"Order resource.\").optional(),\n capture: z.record(z.string(), z.unknown()).describe(\"Capture resource.\").optional(),\n authorization: z.record(z.string(), z.unknown()).describe(\"Authorization resource.\").optional(),\n}).passthrough().describe(\"Related resource such as authorization, capture, or order.\")).describe(\"Related resources such as authorizations, captures, or orders.\").optional(),\n}).passthrough().describe(\"Payment transaction details.\")).describe(\"List of transaction details including amount and description.\"),\n redirect_urls: z.object({\n cancel_url: z.string().describe(\"The URL where the buyer is redirected after canceling the payment.\"),\n return_url: z.string().describe(\"The URL where the buyer is redirected after approving the payment.\"),\n}).describe(\"Redirect URLs for the payment.\").optional(),\n}).describe(\"Request model for creating a PayPal payment.\\n\\nUse this action when you need to create a payment using the PayPal v1 Payments API.\\nThis creates a payment and returns approval URLs for the buyer to complete the payment.\\n\\nNote: This API is deprecated. Consider using the v2 Payments API for new integrations.\");\nconst PaypalCreatePayment_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCreatePayment_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n payer_id: z.string().describe(\"The unique PayPal customer account ID.\").nullable().optional(),\n}).passthrough().describe(\"Information about the payer.\");\nconst PaypalCreatePayment_PaymentMethodSchema = z.enum([\"paypal\", \"credit_card\", \"pay_upon_invoice\", \"bank_transfer\"]).describe(\"Payment method used by the payer.\");\nconst PaypalCreatePayment_FundingInstrumentSchema = z.object({\n credit_card: z.record(z.string(), z.unknown()).describe(\"Credit card information for the payment.\").nullable().optional(),\n bank_account: z.record(z.string(), z.unknown()).describe(\"Bank account information for the payment.\").nullable().optional(),\n credit_card_token: z.record(z.string(), z.unknown()).describe(\"Tokenized credit card for the payment.\").nullable().optional(),\n}).passthrough().describe(\"Funding source for the payment.\");\nconst PaypalCreatePayment_PayerSchema = z.object({\n payer_info: PaypalCreatePayment_PayerInfoSchema.nullable().optional(),\n payment_method: PaypalCreatePayment_PaymentMethodSchema.nullable(),\n funding_instruments: z.array(PaypalCreatePayment_FundingInstrumentSchema).describe(\"Funding sources for the payment.\").nullable().optional(),\n}).passthrough().describe(\"The payment payer information.\");\nconst PaypalCreatePayment_StateSchema = z.enum([\"created\", \"approved\", \"failed\", \"payer_action_required\"]).describe(\"The state of the payment.\");\nconst PaypalCreatePayment_AmountDetailsSchema = z.object({\n tax: z.string().describe(\"The tax amount.\").nullable().optional(),\n shipping: z.string().describe(\"The shipping fee.\").nullable().optional(),\n subtotal: z.string().describe(\"The subtotal amount for items.\").nullable().optional(),\n gift_wrap: z.string().describe(\"The gift wrap fee.\").nullable().optional(),\n insurance: z.string().describe(\"The insurance fee.\").nullable().optional(),\n handling_fee: z.string().describe(\"The handling fee.\").nullable().optional(),\n shipping_discount: z.string().describe(\"The shipping discount amount.\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the payment amount breakdown.\");\nconst PaypalCreatePayment_AmountSchema = z.object({\n total: z.string().describe(\"The total amount charged from the payer. Required when creating a payment. Must be less than or equal to the amount authorized.\").nullable(),\n details: PaypalCreatePayment_AmountDetailsSchema.nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for the payment transaction.\");\nconst PaypalCreatePayment_ItemSchema = z.object({\n name: z.string().describe(\"Item name.\").nullable(),\n price: z.string().describe(\"Item price.\").nullable(),\n currency: z.string().describe(\"Currency code.\").nullable(),\n quantity: z.string().describe(\"Number of items.\").nullable(),\n}).passthrough().describe(\"Line item details.\");\nconst PaypalCreatePayment_ShippingAddressSchema = z.object({\n city: z.string().describe(\"City name.\").nullable(),\n line1: z.string().describe(\"First line of the address.\").nullable(),\n line2: z.string().describe(\"Second line of the address.\").nullable().optional(),\n phone: z.string().describe(\"Phone number.\").nullable().optional(),\n state: z.string().describe(\"State or province.\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code.\").nullable().optional(),\n country_code: z.string().describe(\"Two-letter country code.\").nullable(),\n recipient_name: z.string().describe(\"Name of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Shipping address for the payment.\");\nconst PaypalCreatePayment_ItemListSchema = z.object({\n items: z.array(PaypalCreatePayment_ItemSchema).describe(\"List of items.\").nullable().optional(),\n shipping_address: PaypalCreatePayment_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"List of items in the transaction.\");\nconst PaypalCreatePayment_RelatedResourceSchema = z.object({\n sale: z.record(z.string(), z.unknown()).describe(\"Sale resource.\").nullable().optional(),\n order: z.record(z.string(), z.unknown()).describe(\"Order resource.\").nullable().optional(),\n capture: z.record(z.string(), z.unknown()).describe(\"Capture resource.\").nullable().optional(),\n authorization: z.record(z.string(), z.unknown()).describe(\"Authorization resource.\").nullable().optional(),\n}).passthrough().describe(\"Related resource such as authorization, capture, or order.\");\nconst PaypalCreatePayment_TransactionSchema = z.object({\n amount: PaypalCreatePayment_AmountSchema.nullable(),\n custom: z.string().describe(\"Custom field as a string for additional information.\").nullable().optional(),\n item_list: PaypalCreatePayment_ItemListSchema.nullable().optional(),\n description: z.string().describe(\"Description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number to track the payment.\").nullable().optional(),\n related_resources: z.array(PaypalCreatePayment_RelatedResourceSchema).describe(\"Related resources such as authorizations, captures, or orders.\").nullable().optional(),\n}).passthrough().describe(\"Payment transaction details.\");\nconst PaypalCreatePayment_RedirectUrlsSchema = z.object({\n cancel_url: z.string().describe(\"The URL where the buyer is redirected after canceling the payment.\").nullable(),\n return_url: z.string().describe(\"The URL where the buyer is redirected after approving the payment.\").nullable(),\n}).passthrough().describe(\"Redirect URLs for the payment.\");\nexport const PaypalCreatePaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated payment ID.\").nullable().optional(),\n links: z.array(PaypalCreatePayment_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n payer: PaypalCreatePayment_PayerSchema.nullable().optional(),\n state: PaypalCreatePayment_StateSchema.nullable().optional(),\n intent: z.string().describe(\"The payment intent.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the payment was created, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the payment was last updated, in Internet date and time format.\").nullable().optional(),\n transactions: z.array(PaypalCreatePayment_TransactionSchema).describe(\"List of payment transactions.\").nullable().optional(),\n redirect_urls: PaypalCreatePayment_RedirectUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a PayPal payment.\");\n\nexport const paypalCreatePayment = action(\"PAYPAL_CREATE_PAYMENT\", {\n slug: \"paypal-create-payment\",\n name: \"Create PayPal payment\",\n description: \"Creates a PayPal payment using the v1 Payments API. Use this action when you need to create a payment to be processed through PayPal. This action is for the deprecated v1 API - consider using the v2 Payments API for new integrations. The action returns the created payment object including approval URLs for the buyer to complete the payment. After the buyer approves the payment, execute it to complete the transaction. Note: This is an irreversible operation once the payment is executed.\",\n input: PaypalCreatePaymentInput,\n output: PaypalCreatePaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO;EAChB,YAAY,EAAE,OAAO;GACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACnD,gBAAgB,EAAE,KAAK;GAAC;GAAU;GAAe;GAAoB;EAAe,CAAC,CAAC,CAAC,SAAS,0EAA0E;EAC1K,qBAAqB,EAAE,MAAM,EAAE,OAAO;GACtC,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC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AAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC3D,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-payment.mjs","names":[],"sources":["../../src/actions/create-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCreatePaymentInput = z.object({\n payer: z.object({\n payer_info: z.object({\n email: z.string().describe(\"The email address of the payer.\").optional(),\n payer_id: z.string().describe(\"The unique PayPal customer account ID.\").optional(),\n}).describe(\"Information about the payer.\").optional(),\n payment_method: z.enum([\"paypal\", \"credit_card\", \"pay_upon_invoice\", \"bank_transfer\"]).describe(\"The payment method used by the payer. Must be 'paypal' or 'credit_card'.\"),\n funding_instruments: z.array(z.object({\n credit_card: z.record(z.string(), z.unknown()).describe(\"Credit card information for the payment.\").optional(),\n bank_account: z.record(z.string(), z.unknown()).describe(\"Bank account information for the payment.\").optional(),\n credit_card_token: z.record(z.string(), z.unknown()).describe(\"Tokenized credit card for the payment.\").optional(),\n}).passthrough().describe(\"Funding source for the payment.\")).describe(\"Funding sources for the payment.\").optional(),\n}).describe(\"The payer information including payment method.\"),\n intent: z.enum([\"sale\", \"authorize\", \"order\"]).describe(\"The payment intent. Must be 'sale' for immediate payment, 'authorize' for payment authorization, or 'order' for creating an order.\"),\n transactions: z.array(z.object({\n amount: z.object({\n total: z.string().describe(\"The total amount charged from the payer. Required when creating a payment. Must be less than or equal to the amount authorized.\"),\n details: z.object({\n tax: z.string().describe(\"The tax amount.\").optional(),\n shipping: z.string().describe(\"The shipping fee.\").optional(),\n subtotal: z.string().describe(\"The subtotal amount for items.\").optional(),\n gift_wrap: z.string().describe(\"The gift wrap fee.\").optional(),\n insurance: z.string().describe(\"The insurance fee.\").optional(),\n handling_fee: z.string().describe(\"The handling fee.\").optional(),\n shipping_discount: z.string().describe(\"The shipping discount amount.\").optional(),\n}).describe(\"Additional details about the payment amount breakdown.\").optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The amount charged from the payer.\"),\n custom: z.string().describe(\"Custom field as a string for additional information.\").optional(),\n item_list: z.object({\n items: z.array(z.object({\n name: z.string().describe(\"Item name.\"),\n price: z.string().describe(\"Item price.\"),\n currency: z.string().describe(\"Currency code.\"),\n quantity: z.string().describe(\"Number of items.\"),\n}).passthrough().describe(\"Line item details.\")).describe(\"List of items.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"City name.\"),\n line1: z.string().describe(\"First line of the address.\"),\n line2: z.string().describe(\"Second line of the address.\").optional(),\n phone: z.string().describe(\"Phone number.\").optional(),\n state: z.string().describe(\"State or province.\").optional(),\n postal_code: z.string().describe(\"Postal code.\").optional(),\n country_code: z.string().describe(\"Two-letter country code.\"),\n recipient_name: z.string().describe(\"Name of the recipient.\").optional(),\n}).describe(\"Shipping address for the payment.\").optional(),\n}).describe(\"List of items in the transaction.\").optional(),\n description: z.string().describe(\"Description of the transaction.\").optional(),\n invoice_number: z.string().describe(\"Invoice number to track the payment.\").optional(),\n related_resources: z.array(z.object({\n sale: z.record(z.string(), z.unknown()).describe(\"Sale resource.\").optional(),\n order: z.record(z.string(), z.unknown()).describe(\"Order resource.\").optional(),\n capture: z.record(z.string(), z.unknown()).describe(\"Capture resource.\").optional(),\n authorization: z.record(z.string(), z.unknown()).describe(\"Authorization resource.\").optional(),\n}).passthrough().describe(\"Related resource such as authorization, capture, or order.\")).describe(\"Related resources such as authorizations, captures, or orders.\").optional(),\n}).passthrough().describe(\"Payment transaction details.\")).describe(\"List of transaction details including amount and description.\"),\n redirect_urls: z.object({\n cancel_url: z.string().describe(\"The URL where the buyer is redirected after canceling the payment.\"),\n return_url: z.string().describe(\"The URL where the buyer is redirected after approving the payment.\"),\n}).describe(\"Redirect URLs for the payment.\").optional(),\n}).describe(\"Request model for creating a PayPal payment.\\n\\nUse this action when you need to create a payment using the PayPal v1 Payments API.\\nThis creates a payment and returns approval URLs for the buyer to complete the payment.\\n\\nNote: This API is deprecated. Consider using the v2 Payments API for new integrations.\");\nconst PaypalCreatePayment_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCreatePayment_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n payer_id: z.string().describe(\"The unique PayPal customer account ID.\").nullable().optional(),\n}).passthrough().describe(\"Information about the payer.\");\nconst PaypalCreatePayment_PaymentMethodSchema = z.enum([\"paypal\", \"credit_card\", \"pay_upon_invoice\", \"bank_transfer\"]).describe(\"Payment method used by the payer.\");\nconst PaypalCreatePayment_FundingInstrumentSchema = z.object({\n credit_card: z.record(z.string(), z.unknown()).describe(\"Credit card information for the payment.\").nullable().optional(),\n bank_account: z.record(z.string(), z.unknown()).describe(\"Bank account information for the payment.\").nullable().optional(),\n credit_card_token: z.record(z.string(), z.unknown()).describe(\"Tokenized credit card for the payment.\").nullable().optional(),\n}).passthrough().describe(\"Funding source for the payment.\");\nconst PaypalCreatePayment_PayerSchema = z.object({\n payer_info: PaypalCreatePayment_PayerInfoSchema.nullable().optional(),\n payment_method: PaypalCreatePayment_PaymentMethodSchema.nullable(),\n funding_instruments: z.array(PaypalCreatePayment_FundingInstrumentSchema).describe(\"Funding sources for the payment.\").nullable().optional(),\n}).passthrough().describe(\"The payment payer information.\");\nconst PaypalCreatePayment_StateSchema = z.enum([\"created\", \"approved\", \"failed\", \"payer_action_required\"]).describe(\"The state of the payment.\");\nconst PaypalCreatePayment_AmountDetailsSchema = z.object({\n tax: z.string().describe(\"The tax amount.\").nullable().optional(),\n shipping: z.string().describe(\"The shipping fee.\").nullable().optional(),\n subtotal: z.string().describe(\"The subtotal amount for items.\").nullable().optional(),\n gift_wrap: z.string().describe(\"The gift wrap fee.\").nullable().optional(),\n insurance: z.string().describe(\"The insurance fee.\").nullable().optional(),\n handling_fee: z.string().describe(\"The handling fee.\").nullable().optional(),\n shipping_discount: z.string().describe(\"The shipping discount amount.\").nullable().optional(),\n}).passthrough().describe(\"Additional details about the payment amount breakdown.\");\nconst PaypalCreatePayment_AmountSchema = z.object({\n total: z.string().describe(\"The total amount charged from the payer. Required when creating a payment. Must be less than or equal to the amount authorized.\").nullable(),\n details: PaypalCreatePayment_AmountDetailsSchema.nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for the payment transaction.\");\nconst PaypalCreatePayment_ItemSchema = z.object({\n name: z.string().describe(\"Item name.\").nullable(),\n price: z.string().describe(\"Item price.\").nullable(),\n currency: z.string().describe(\"Currency code.\").nullable(),\n quantity: z.string().describe(\"Number of items.\").nullable(),\n}).passthrough().describe(\"Line item details.\");\nconst PaypalCreatePayment_ShippingAddressSchema = z.object({\n city: z.string().describe(\"City name.\").nullable(),\n line1: z.string().describe(\"First line of the address.\").nullable(),\n line2: z.string().describe(\"Second line of the address.\").nullable().optional(),\n phone: z.string().describe(\"Phone number.\").nullable().optional(),\n state: z.string().describe(\"State or province.\").nullable().optional(),\n postal_code: z.string().describe(\"Postal code.\").nullable().optional(),\n country_code: z.string().describe(\"Two-letter country code.\").nullable(),\n recipient_name: z.string().describe(\"Name of the recipient.\").nullable().optional(),\n}).passthrough().describe(\"Shipping address for the payment.\");\nconst PaypalCreatePayment_ItemListSchema = z.object({\n items: z.array(PaypalCreatePayment_ItemSchema).describe(\"List of items.\").nullable().optional(),\n shipping_address: PaypalCreatePayment_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"List of items in the transaction.\");\nconst PaypalCreatePayment_RelatedResourceSchema = z.object({\n sale: z.record(z.string(), z.unknown()).describe(\"Sale resource.\").nullable().optional(),\n order: z.record(z.string(), z.unknown()).describe(\"Order resource.\").nullable().optional(),\n capture: z.record(z.string(), z.unknown()).describe(\"Capture resource.\").nullable().optional(),\n authorization: z.record(z.string(), z.unknown()).describe(\"Authorization resource.\").nullable().optional(),\n}).passthrough().describe(\"Related resource such as authorization, capture, or order.\");\nconst PaypalCreatePayment_TransactionSchema = z.object({\n amount: PaypalCreatePayment_AmountSchema.nullable(),\n custom: z.string().describe(\"Custom field as a string for additional information.\").nullable().optional(),\n item_list: PaypalCreatePayment_ItemListSchema.nullable().optional(),\n description: z.string().describe(\"Description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number to track the payment.\").nullable().optional(),\n related_resources: z.array(PaypalCreatePayment_RelatedResourceSchema).describe(\"Related resources such as authorizations, captures, or orders.\").nullable().optional(),\n}).passthrough().describe(\"Payment transaction details.\");\nconst PaypalCreatePayment_RedirectUrlsSchema = z.object({\n cancel_url: z.string().describe(\"The URL where the buyer is redirected after canceling the payment.\").nullable(),\n return_url: z.string().describe(\"The URL where the buyer is redirected after approving the payment.\").nullable(),\n}).passthrough().describe(\"Redirect URLs for the payment.\");\nexport const PaypalCreatePaymentOutput = z.object({\n id: z.string().describe(\"The PayPal-generated payment ID.\").nullable().optional(),\n links: z.array(PaypalCreatePayment_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n payer: PaypalCreatePayment_PayerSchema.nullable().optional(),\n state: PaypalCreatePayment_StateSchema.nullable().optional(),\n intent: z.string().describe(\"The payment intent.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the payment was created, in Internet date and time format.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the payment was last updated, in Internet date and time format.\").nullable().optional(),\n transactions: z.array(PaypalCreatePayment_TransactionSchema).describe(\"List of payment transactions.\").nullable().optional(),\n redirect_urls: PaypalCreatePayment_RedirectUrlsSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for creating a PayPal payment.\");\n\nexport const paypalCreatePayment: AppAction<\n typeof PaypalCreatePaymentInput,\n typeof PaypalCreatePaymentOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_PAYMENT\", {\n slug: \"paypal-create-payment\",\n name: \"Create PayPal payment\",\n description: \"Creates a PayPal payment using the v1 Payments API. Use this action when you need to create a payment to be processed through PayPal. This action is for the deprecated v1 API - consider using the v2 Payments API for new integrations. The action returns the created payment object including approval URLs for the buyer to complete the payment. After the buyer approves the payment, execute it to complete the transaction. Note: This is an irreversible operation once the payment is executed.\",\n input: PaypalCreatePaymentInput,\n output: PaypalCreatePaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,OAAO;EAChB,YAAY,EAAE,OAAO;GACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;GACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,CAAC,CAAC,C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C,SAAS;CAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAa1D,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC3D,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,cAAc,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-payments-billing-plans.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-payments-billing-plans.cjs","names":["z","action"],"sources":["../../src/actions/create-payments-billing-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePaymentsBillingPlansInput = z.object({\n name: z.string().describe(\"The billing plan name. Must be 1-256 characters.\"),\n type: z.enum([\"FIXED\", \"INFINITE\"]).describe(\"The type of the billing plan. One of: FIXED, INFINITE.\"),\n terms: z.array(z.object({\n name: z.string().describe(\"The name of the term.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of the term. One of: TRIAL, REGULAR.\"),\n cycles: z.string().describe(\"The number of cycles for this term.\").optional(),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\").optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\")).describe(\"An array of terms for the billing plan.\").optional(),\n description: z.string().describe(\"The detailed description of the billing plan. Must be 1-127 characters.\"),\n payment_definitions: z.array(z.object({\n name: z.string().describe(\"The name of the payment definition.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The payment definition type. One of: TRIAL, REGULAR.\"),\n amount: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"The charge amount for this payment definition.\"),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\"),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment. One of: DAY, WEEK, MONTH, YEAR.\"),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\"),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\")).describe(\"An array of payment definitions for the billing plan. Includes trial and regular payment configurations.\"),\n merchant_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Amount to charge for a payment definition or setup fee.\").optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\"),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\"),\n auto_bill_amount: z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\").optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").optional(),\n}).describe(\"The merchant preferences for the billing plan, including setup fee, return URL, and cancel URL.\"),\n}).describe(\"Request schema for creating a PayPal billing plan using the legacy payments API.\\n\\nUse this action when setting up a new billing plan for PayPal billing agreements,\\nincluding plans with trial periods, regular billing cycles, and custom payment\\npreferences. The plan must be activated before it can be used.\\n\\nNote: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations,\\nconsider using the /v1/billing/plans endpoint instead.\");\nconst PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The target URL for the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of payment definition (billing cycle type).\");\nconst PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\");\nconst PaypalCreatePaymentsBillingPlans_TermSchema = z.object({\n name: z.string().describe(\"The name of the term.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_ChargeAmountSchema = z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\").nullable(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Amount to charge for a payment definition or setup fee.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema = z.object({\n name: z.string().describe(\"The name of the payment definition.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n amount: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\").nullable(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable(),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\").nullable(),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema = z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\");\nconst PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema = z.object({\n setup_fee: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\").nullable(),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\").nullable(),\n auto_bill_amount: PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema.nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").nullable().optional(),\n}).passthrough().describe(\"Merchant preferences for the billing plan (legacy API format).\");\nexport const PaypalCreatePaymentsBillingPlansOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The billing plan name.\").nullable().optional(),\n type: z.string().describe(\"The billing plan type. One of: TRIAL, REGULAR.\").nullable().optional(),\n links: z.array(PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the billing plan.\").nullable().optional(),\n state: z.string().describe(\"The current state of the billing plan. One of: CREATED, ACTIVE, INACTIVE.\").nullable().optional(),\n terms: z.array(PaypalCreatePaymentsBillingPlans_TermSchema).describe(\"An array of terms for the billing plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the billing plan.\").nullable().optional(),\n merchant_preferences: PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePaymentsBillingPlans = action(\"PAYPAL_CREATE_PAYMENTS_BILLING_PLANS\", {\n slug: \"paypal-create-payments-billing-plans\",\n name: \"Create billing plan (legacy)\",\n description: \"Creates a PayPal billing plan using the legacy payments API (POST /v1/payments/billing-plans). Use this action when setting up a new billing plan for PayPal billing agreements, including plans with trial periods, regular billing cycles, and custom payment preferences. After creation, the plan must be activated via the activate_plan action before it can be used in billing agreements. Note: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalCreatePaymentsBillingPlansInput,\n output: PaypalCreatePaymentsBillingPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,MAAMA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,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C,SAAS;CAC5H,OAAOA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,sBAAsB,2DAA2D,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-payments-billing-plans.cjs","names":["z","action"],"sources":["../../src/actions/create-payments-billing-plans.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCreatePaymentsBillingPlansInput = z.object({\n name: z.string().describe(\"The billing plan name. Must be 1-256 characters.\"),\n type: z.enum([\"FIXED\", \"INFINITE\"]).describe(\"The type of the billing plan. One of: FIXED, INFINITE.\"),\n terms: z.array(z.object({\n name: z.string().describe(\"The name of the term.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of the term. One of: TRIAL, REGULAR.\"),\n cycles: z.string().describe(\"The number of cycles for this term.\").optional(),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\").optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\")).describe(\"An array of terms for the billing plan.\").optional(),\n description: z.string().describe(\"The detailed description of the billing plan. Must be 1-127 characters.\"),\n payment_definitions: z.array(z.object({\n name: z.string().describe(\"The name of the payment definition.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The payment definition type. One of: TRIAL, REGULAR.\"),\n amount: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"The charge amount for this payment definition.\"),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\"),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment. One of: DAY, WEEK, MONTH, YEAR.\"),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\"),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\")).describe(\"An array of payment definitions for the billing plan. Includes trial and regular payment configurations.\"),\n merchant_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Amount to charge for a payment definition or setup fee.\").optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\"),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\"),\n auto_bill_amount: z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\").optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").optional(),\n}).describe(\"The merchant preferences for the billing plan, including setup fee, return URL, and cancel URL.\"),\n}).describe(\"Request schema for creating a PayPal billing plan using the legacy payments API.\\n\\nUse this action when setting up a new billing plan for PayPal billing agreements,\\nincluding plans with trial periods, regular billing cycles, and custom payment\\npreferences. The plan must be activated before it can be used.\\n\\nNote: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations,\\nconsider using the /v1/billing/plans endpoint instead.\");\nconst PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The target URL for the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of payment definition (billing cycle type).\");\nconst PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\");\nconst PaypalCreatePaymentsBillingPlans_TermSchema = z.object({\n name: z.string().describe(\"The name of the term.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_ChargeAmountSchema = z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\").nullable(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Amount to charge for a payment definition or setup fee.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema = z.object({\n name: z.string().describe(\"The name of the payment definition.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n amount: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\").nullable(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable(),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\").nullable(),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema = z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\");\nconst PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema = z.object({\n setup_fee: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\").nullable(),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\").nullable(),\n auto_bill_amount: PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema.nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").nullable().optional(),\n}).passthrough().describe(\"Merchant preferences for the billing plan (legacy API format).\");\nexport const PaypalCreatePaymentsBillingPlansOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The billing plan name.\").nullable().optional(),\n type: z.string().describe(\"The billing plan type. One of: TRIAL, REGULAR.\").nullable().optional(),\n links: z.array(PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the billing plan.\").nullable().optional(),\n state: z.string().describe(\"The current state of the billing plan. One of: CREATED, ACTIVE, INACTIVE.\").nullable().optional(),\n terms: z.array(PaypalCreatePaymentsBillingPlans_TermSchema).describe(\"An array of terms for the billing plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the billing plan.\").nullable().optional(),\n merchant_preferences: PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePaymentsBillingPlans: AppAction<\n typeof PaypalCreatePaymentsBillingPlansInput,\n typeof PaypalCreatePaymentsBillingPlansOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_PAYMENTS_BILLING_PLANS\", {\n slug: \"paypal-create-payments-billing-plans\",\n name: \"Create billing plan (legacy)\",\n description: \"Creates a PayPal billing plan using the legacy payments API (POST /v1/payments/billing-plans). Use this action when setting up a new billing plan for PayPal billing agreements, including plans with trial periods, regular billing cycles, and custom payment preferences. After creation, the plan must be activated via the activate_plan action before it can be used in billing agreements. Note: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalCreatePaymentsBillingPlansInput,\n output: PaypalCreatePaymentsBillingPlansOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,MAAMA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACrG,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,MAAMA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAC3F,QAAQA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,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,qBAAqBA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7K,sBAAsB,2DAA2D,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,mCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-payments-billing-plans.d.ts
@@ -119,54 +121,7 @@ declare const PaypalCreatePaymentsBillingPlansOutput: z.ZodObject<{
119
121
  initial_amount_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
122
  }, z.core.$loose>>>;
121
123
  }, z.core.$loose>;
122
- declare const paypalCreatePaymentsBillingPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
123
- name: string;
124
- type: "FIXED" | "INFINITE";
125
- description: string;
126
- payment_definitions: {
127
- [x: string]: unknown;
128
- name: string;
129
- type: "TRIAL" | "REGULAR";
130
- amount: {
131
- value: string;
132
- currency: string;
133
- };
134
- cycles: string;
135
- frequency: "DAY" | "WEEK" | "MONTH" | "YEAR";
136
- frequency_interval: string;
137
- }[];
138
- merchant_preferences: {
139
- cancel_url: string;
140
- return_url: string;
141
- setup_fee?: {
142
- value: string;
143
- currency: string;
144
- } | undefined;
145
- auto_bill_amount?: "YES" | "NO" | undefined;
146
- max_fail_attempts?: string | undefined;
147
- initial_amount_term?: string | undefined;
148
- };
149
- terms?: {
150
- [x: string]: unknown;
151
- name: string;
152
- type: "TRIAL" | "REGULAR";
153
- cycles?: string | undefined;
154
- frequency?: "DAY" | "WEEK" | "MONTH" | "YEAR" | undefined;
155
- frequency_interval?: string | undefined;
156
- }[] | undefined;
157
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
158
- connectionId: z.ZodString;
159
- entityId: z.ZodString;
160
- instanceId: z.ZodString;
161
- }, z.core.$strip>, z.ZodObject<{
162
- accessToken: z.ZodString;
163
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
164
- connectionId: z.ZodString;
165
- entityId: z.ZodString;
166
- instanceId: z.ZodString;
167
- }, z.core.$strip>, z.ZodObject<{
168
- accessToken: z.ZodString;
169
- }, z.core.$strip>>]>;
124
+ declare const paypalCreatePaymentsBillingPlans: AppAction<typeof PaypalCreatePaymentsBillingPlansInput, typeof PaypalCreatePaymentsBillingPlansOutput, typeof paypal.credential>;
170
125
  //#endregion
171
126
  export { paypalCreatePaymentsBillingPlans };
172
127
  //# sourceMappingURL=create-payments-billing-plans.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-payments-billing-plans.d.cts","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-payments-billing-plans.d.cts","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { paypal } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-payments-billing-plans.d.ts
@@ -119,54 +121,7 @@ declare const PaypalCreatePaymentsBillingPlansOutput: z.ZodObject<{
119
121
  initial_amount_term: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
122
  }, z.core.$loose>>>;
121
123
  }, z.core.$loose>;
122
- declare const paypalCreatePaymentsBillingPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
123
- name: string;
124
- type: "FIXED" | "INFINITE";
125
- description: string;
126
- payment_definitions: {
127
- [x: string]: unknown;
128
- name: string;
129
- type: "TRIAL" | "REGULAR";
130
- amount: {
131
- value: string;
132
- currency: string;
133
- };
134
- cycles: string;
135
- frequency: "DAY" | "WEEK" | "MONTH" | "YEAR";
136
- frequency_interval: string;
137
- }[];
138
- merchant_preferences: {
139
- cancel_url: string;
140
- return_url: string;
141
- setup_fee?: {
142
- value: string;
143
- currency: string;
144
- } | undefined;
145
- auto_bill_amount?: "YES" | "NO" | undefined;
146
- max_fail_attempts?: string | undefined;
147
- initial_amount_term?: string | undefined;
148
- };
149
- terms?: {
150
- [x: string]: unknown;
151
- name: string;
152
- type: "TRIAL" | "REGULAR";
153
- cycles?: string | undefined;
154
- frequency?: "DAY" | "WEEK" | "MONTH" | "YEAR" | undefined;
155
- frequency_interval?: string | undefined;
156
- }[] | undefined;
157
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
158
- connectionId: z.ZodString;
159
- entityId: z.ZodString;
160
- instanceId: z.ZodString;
161
- }, z.core.$strip>, z.ZodObject<{
162
- accessToken: z.ZodString;
163
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
164
- connectionId: z.ZodString;
165
- entityId: z.ZodString;
166
- instanceId: z.ZodString;
167
- }, z.core.$strip>, z.ZodObject<{
168
- accessToken: z.ZodString;
169
- }, z.core.$strip>>]>;
124
+ declare const paypalCreatePaymentsBillingPlans: AppAction<typeof PaypalCreatePaymentsBillingPlansInput, typeof PaypalCreatePaymentsBillingPlansOutput, typeof paypal.credential>;
170
125
  //#endregion
171
126
  export { paypalCreatePaymentsBillingPlans };
172
127
  //# sourceMappingURL=create-payments-billing-plans.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-payments-billing-plans.d.mts","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"create-payments-billing-plans.d.mts","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cActC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-payments-billing-plans.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-payments-billing-plans.mjs","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePaymentsBillingPlansInput = z.object({\n name: z.string().describe(\"The billing plan name. Must be 1-256 characters.\"),\n type: z.enum([\"FIXED\", \"INFINITE\"]).describe(\"The type of the billing plan. One of: FIXED, INFINITE.\"),\n terms: z.array(z.object({\n name: z.string().describe(\"The name of the term.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of the term. One of: TRIAL, REGULAR.\"),\n cycles: z.string().describe(\"The number of cycles for this term.\").optional(),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\").optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\")).describe(\"An array of terms for the billing plan.\").optional(),\n description: z.string().describe(\"The detailed description of the billing plan. Must be 1-127 characters.\"),\n payment_definitions: z.array(z.object({\n name: z.string().describe(\"The name of the payment definition.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The payment definition type. One of: TRIAL, REGULAR.\"),\n amount: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"The charge amount for this payment definition.\"),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\"),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment. One of: DAY, WEEK, MONTH, YEAR.\"),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\"),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\")).describe(\"An array of payment definitions for the billing plan. Includes trial and regular payment configurations.\"),\n merchant_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Amount to charge for a payment definition or setup fee.\").optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\"),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\"),\n auto_bill_amount: z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\").optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").optional(),\n}).describe(\"The merchant preferences for the billing plan, including setup fee, return URL, and cancel URL.\"),\n}).describe(\"Request schema for creating a PayPal billing plan using the legacy payments API.\\n\\nUse this action when setting up a new billing plan for PayPal billing agreements,\\nincluding plans with trial periods, regular billing cycles, and custom payment\\npreferences. The plan must be activated before it can be used.\\n\\nNote: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations,\\nconsider using the /v1/billing/plans endpoint instead.\");\nconst PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The target URL for the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of payment definition (billing cycle type).\");\nconst PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\");\nconst PaypalCreatePaymentsBillingPlans_TermSchema = z.object({\n name: z.string().describe(\"The name of the term.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_ChargeAmountSchema = z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\").nullable(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Amount to charge for a payment definition or setup fee.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema = z.object({\n name: z.string().describe(\"The name of the payment definition.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n amount: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\").nullable(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable(),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\").nullable(),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema = z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\");\nconst PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema = z.object({\n setup_fee: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\").nullable(),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\").nullable(),\n auto_bill_amount: PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema.nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").nullable().optional(),\n}).passthrough().describe(\"Merchant preferences for the billing plan (legacy API format).\");\nexport const PaypalCreatePaymentsBillingPlansOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The billing plan name.\").nullable().optional(),\n type: z.string().describe(\"The billing plan type. One of: TRIAL, REGULAR.\").nullable().optional(),\n links: z.array(PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the billing plan.\").nullable().optional(),\n state: z.string().describe(\"The current state of the billing plan. One of: CREATED, ACTIVE, INACTIVE.\").nullable().optional(),\n terms: z.array(PaypalCreatePaymentsBillingPlans_TermSchema).describe(\"An array of terms for the billing plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the billing plan.\").nullable().optional(),\n merchant_preferences: PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePaymentsBillingPlans = action(\"PAYPAL_CREATE_PAYMENTS_BILLING_PLANS\", {\n slug: \"paypal-create-payments-billing-plans\",\n name: \"Create billing plan (legacy)\",\n description: \"Creates a PayPal billing plan using the legacy payments API (POST /v1/payments/billing-plans). Use this action when setting up a new billing plan for PayPal billing agreements, including plans with trial periods, regular billing cycles, and custom payment preferences. After creation, the plan must be activated via the activate_plan action before it can be used in billing agreements. Note: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalCreatePayments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,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7K,sBAAsB,2DAA2D,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-payments-billing-plans.mjs","names":[],"sources":["../../src/actions/create-payments-billing-plans.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCreatePaymentsBillingPlansInput = z.object({\n name: z.string().describe(\"The billing plan name. Must be 1-256 characters.\"),\n type: z.enum([\"FIXED\", \"INFINITE\"]).describe(\"The type of the billing plan. One of: FIXED, INFINITE.\"),\n terms: z.array(z.object({\n name: z.string().describe(\"The name of the term.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of the term. One of: TRIAL, REGULAR.\"),\n cycles: z.string().describe(\"The number of cycles for this term.\").optional(),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\").optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\")).describe(\"An array of terms for the billing plan.\").optional(),\n description: z.string().describe(\"The detailed description of the billing plan. Must be 1-127 characters.\"),\n payment_definitions: z.array(z.object({\n name: z.string().describe(\"The name of the payment definition.\"),\n type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The payment definition type. One of: TRIAL, REGULAR.\"),\n amount: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"The charge amount for this payment definition.\"),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\"),\n frequency: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment. One of: DAY, WEEK, MONTH, YEAR.\"),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\"),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\")).describe(\"An array of payment definitions for the billing plan. Includes trial and regular payment configurations.\"),\n merchant_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\"),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Amount to charge for a payment definition or setup fee.\").optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\"),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\"),\n auto_bill_amount: z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\").optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").optional(),\n}).describe(\"The merchant preferences for the billing plan, including setup fee, return URL, and cancel URL.\"),\n}).describe(\"Request schema for creating a PayPal billing plan using the legacy payments API.\\n\\nUse this action when setting up a new billing plan for PayPal billing agreements,\\nincluding plans with trial periods, regular billing cycles, and custom payment\\npreferences. The plan must be activated before it can be used.\\n\\nNote: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations,\\nconsider using the /v1/billing/plans endpoint instead.\");\nconst PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The target URL for the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of payment definition (billing cycle type).\");\nconst PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The frequency of the payment.\");\nconst PaypalCreatePaymentsBillingPlans_TermSchema = z.object({\n name: z.string().describe(\"The name of the term.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).passthrough().describe(\"Term information for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_ChargeAmountSchema = z.object({\n value: z.string().describe(\"The amount value. Use decimal format (e.g., '29.99').\").nullable(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Amount to charge for a payment definition or setup fee.\");\nconst PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema = z.object({\n name: z.string().describe(\"The name of the payment definition.\").nullable(),\n type: PaypalCreatePaymentsBillingPlans_PaymentDefinitionTypeSchema.nullable(),\n amount: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable(),\n cycles: z.string().describe(\"The number of cycles for this payment. For infinite payments, use '0'.\").nullable(),\n frequency: PaypalCreatePaymentsBillingPlans_PaymentFrequencySchema.nullable(),\n frequency_interval: z.string().describe(\"The interval between billing cycles. For example, if frequency is MONTH and frequency_interval is 3, billing occurs every 3 months.\").nullable(),\n}).passthrough().describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema = z.enum([\"YES\", \"NO\"]).describe(\"Indicates whether to automatically bill the outstanding amount.\");\nconst PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema = z.object({\n setup_fee: PaypalCreatePaymentsBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL when the buyer cancels the billing agreement.\").nullable(),\n return_url: z.string().describe(\"The return URL after the buyer approves the billing agreement.\").nullable(),\n auto_bill_amount: PaypalCreatePaymentsBillingPlans_AutoBillAmountSchema.nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts before the billing agreement is suspended.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount. Maximum length: 10.\").nullable().optional(),\n}).passthrough().describe(\"Merchant preferences for the billing plan (legacy API format).\");\nexport const PaypalCreatePaymentsBillingPlansOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The billing plan name.\").nullable().optional(),\n type: z.string().describe(\"The billing plan type. One of: TRIAL, REGULAR.\").nullable().optional(),\n links: z.array(PaypalCreatePaymentsBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the billing plan.\").nullable().optional(),\n state: z.string().describe(\"The current state of the billing plan. One of: CREATED, ACTIVE, INACTIVE.\").nullable().optional(),\n terms: z.array(PaypalCreatePaymentsBillingPlans_TermSchema).describe(\"An array of terms for the billing plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalCreatePaymentsBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the billing plan.\").nullable().optional(),\n merchant_preferences: PaypalCreatePaymentsBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePaymentsBillingPlans: AppAction<\n typeof PaypalCreatePaymentsBillingPlansInput,\n typeof PaypalCreatePaymentsBillingPlansOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_PAYMENTS_BILLING_PLANS\", {\n slug: \"paypal-create-payments-billing-plans\",\n name: \"Create billing plan (legacy)\",\n description: \"Creates a PayPal billing plan using the legacy payments API (POST /v1/payments/billing-plans). Use this action when setting up a new billing plan for PayPal billing agreements, including plans with trial periods, regular billing cycles, and custom payment preferences. After creation, the plan must be activated via the activate_plan action before it can be used in billing agreements. Note: This uses the legacy /v1/payments/billing-plans endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalCreatePaymentsBillingPlansInput,\n output: PaypalCreatePaymentsBillingPlansOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC5E,MAAM,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,wDAAwD;CACrG,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,MAAM,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAS;EAAM,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACvG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC1G,qBAAqB,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,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9J,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7K,sBAAsB,2DAA2D,SAAS,CAAC,CAAC,SAAS;CACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-plan.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).passthrough().describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).passthrough().describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ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BAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,qBAAqB,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-plan.cjs","names":["z","action"],"sources":["../../src/actions/create-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalCreatePlanInput = z.object({\n name: z.string().describe(\"The plan name. Must be 1-127 characters.\"),\n taxes: z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\"),\n}).describe(\"Tax configuration for the plan.\").optional(),\n status: z.enum([\"CREATED\", \"INACTIVE\", \"ACTIVE\"]).default(\"ACTIVE\").describe(\"Initial state of the plan.\").optional(),\n product_id: z.string().describe(\"The ID of the product created through the Catalog Products API. PayPal-generated IDs are 22 characters (e.g. PROD-...) but custom IDs may be 6-50 characters.\"),\n description: z.string().describe(\"The detailed description of the plan. Must be 1-127 characters.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\"),\n frequency: z.object({\n interval_unit: z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"The interval unit for billing. One of: DAY, WEEK, MONTH, YEAR.\"),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").optional(),\n}).describe(\"The frequency of the billing cycle.\"),\n tenure_type: z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The tenure type of the billing cycle. One of: TRIAL, REGULAR.\"),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").optional(),\n pricing_scheme: z.object({\n fixed_price: z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\"),\n}).describe(\"Fixed price amount for billing.\").optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing. A plan can have at most two trial cycles and only one regular cycle.\"),\n quantity_supported: z.boolean().default(false).describe(\"Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\"),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\"),\n}).describe(\"Setup fee configuration for payment preferences.\").optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").optional(),\n setup_fee_failure_action: z.enum([\"CONTINUE\", \"CANCEL\"]).default(\"CANCEL\").describe(\"Action to take when initial payment for setup fee fails.\").optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").optional(),\n}).describe(\"The payment preferences for a subscription.\"),\n}).describe(\"Request schema for creating a PayPal billing plan.\\n\\nUse when setting up a new subscription billing plan in PayPal.\");\nconst PaypalCreatePlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information for the plan.\");\nconst PaypalCreatePlan_TaxesSchema = z.object({\n inclusive: z.boolean().default(true).describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a fixed-point, signed decimal number. For example, define 19.99% interest rate as '19.99'.\").nullable(),\n}).passthrough().describe(\"Tax configuration for the plan.\");\nconst PaypalCreatePlan_IntervalUnitSchema = z.enum([\"DAY\", \"WEEK\", \"MONTH\", \"YEAR\"]).describe(\"Billing interval unit for frequency.\");\nconst PaypalCreatePlan_FrequencySchema = z.object({\n interval_unit: PaypalCreatePlan_IntervalUnitSchema.nullable(),\n interval_count: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing occurs every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Billing cycle frequency configuration.\");\nconst PaypalCreatePlan_TenureTypeSchema = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"Type of tenure for a billing cycle.\");\nconst PaypalCreatePlan_FixedPriceSchema = z.object({\n value: z.string().describe(\"The price value as a string. Use decimal format (e.g., '29.99').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable(),\n}).passthrough().describe(\"Fixed price amount for billing.\");\nconst PaypalCreatePlan_PricingSchemeSchema = z.object({\n fixed_price: PaypalCreatePlan_FixedPriceSchema.nullable().optional(),\n pricing_threshold: z.record(z.string(), z.unknown()).describe(\"Pricing threshold configuration as key-value pairs.\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreatePlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order of the billing cycle in the sequence of cycles.\").nullable(),\n frequency: PaypalCreatePlan_FrequencySchema.nullable(),\n tenure_type: PaypalCreatePlan_TenureTypeSchema.nullable(),\n total_cycles: z.number().int().describe(\"The total number of times the billing cycle repeats. Set to 0 for infinite.\").nullable().optional(),\n pricing_scheme: PaypalCreatePlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle configuration for trial or regular billing.\");\nconst PaypalCreatePlan_SetupFeeSchema = z.object({\n value: z.string().describe(\"The setup fee value as a string. Use decimal format (e.g., '10.00').\").nullable(),\n currency_code: z.string().describe(\"The three-letter ISO 4217 currency code for the setup fee.\").nullable(),\n}).passthrough().describe(\"Setup fee configuration for payment preferences.\");\nconst PaypalCreatePlan_SetupFeeFailureActionSchema = z.enum([\"CONTINUE\", \"CANCEL\"]).describe(\"Action to take when initial payment for setup fee fails.\");\nconst PaypalCreatePlan_PaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreatePlan_SetupFeeSchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().default(true).describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setup_fee_failure_action: PaypalCreatePlan_SetupFeeFailureActionSchema.nullable().optional(),\n payment_failure_threshold: z.number().int().default(0).describe(\"The maximum number of payment failures before a subscription is suspended. For example, if set to 2, the subscription automatically updates to SUSPEND state if two consecutive payments fail.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a subscription.\");\nexport const PaypalCreatePlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalCreatePlan_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalCreatePlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. One of: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the plan was created, in Internet date and time format.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the plan was last updated, in Internet date and time format.\").nullable().optional(),\n billing_cycles: z.array(PaypalCreatePlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n payment_preferences: PaypalCreatePlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal billing plan.\");\n\nexport const paypalCreatePlan: AppAction<\n typeof PaypalCreatePlanInput,\n typeof PaypalCreatePlanOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_PLAN\", {\n slug: \"paypal-create-plan\",\n name: \"Create a billing plan\",\n description: \"Creates a PayPal billing plan for subscription billing. Use this action when setting up new subscription pricing plans in PayPal, including plans with trial periods, regular billing cycles, and custom payment preferences. The plan must be associated with an existing product. The action returns the created plan object with its unique ID and status.\",\n input: PaypalCreatePlanInput,\n output: PaypalCreatePlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO;EAChB,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACpJ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACtD,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;CAAQ,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J;CAC/L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,MAAMA,IA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