@keystrokehq/paypal 0.1.3 → 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 -3
  6. package/dist/actions/activate-plan.d.cts.map +1 -1
  7. package/dist/actions/activate-plan.d.mts +3 -3
  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 -21
  14. package/dist/actions/add-batch-trackers.d.cts.map +1 -1
  15. package/dist/actions/add-batch-trackers.d.mts +3 -21
  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 +3 -11
  22. package/dist/actions/authorize-order.d.cts.map +1 -1
  23. package/dist/actions/authorize-order.d.mts +3 -11
  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 -8
  30. package/dist/actions/cancel-invoice.d.cts.map +1 -1
  31. package/dist/actions/cancel-invoice.d.mts +3 -8
  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 -3
  38. package/dist/actions/cancel-reminders.d.cts.map +1 -1
  39. package/dist/actions/cancel-reminders.d.mts +3 -3
  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 -11
  46. package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
  47. package/dist/actions/capture-subscription-payment.d.mts +5 -11
  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 -43
  54. package/dist/actions/charge-payment-method.d.cts.map +1 -1
  55. package/dist/actions/charge-payment-method.d.mts +3 -43
  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 -139
  62. package/dist/actions/create-invoice.d.cts.map +1 -1
  63. package/dist/actions/create-invoice.d.mts +5 -139
  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 -65
  70. package/dist/actions/create-payment.d.cts.map +1 -1
  71. package/dist/actions/create-payment.d.mts +3 -65
  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 -36
  78. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
  79. package/dist/actions/create-payments-billing-plans.d.mts +3 -36
  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 -37
  86. package/dist/actions/create-plan.d.cts.map +1 -1
  87. package/dist/actions/create-plan.d.mts +3 -37
  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 -9
  94. package/dist/actions/create-product.d.cts.map +1 -1
  95. package/dist/actions/create-product.d.mts +3 -9
  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 -76
  102. package/dist/actions/create-subscription.d.cts.map +1 -1
  103. package/dist/actions/create-subscription.d.mts +3 -76
  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 -107
  110. package/dist/actions/create-template.d.cts.map +1 -1
  111. package/dist/actions/create-template.d.mts +3 -107
  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 -20
  118. package/dist/actions/create-web-profile.d.cts.map +1 -1
  119. package/dist/actions/create-web-profile.d.mts +3 -20
  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 -1
  126. package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
  127. package/dist/actions/create-webhook-lookup.d.mts +3 -1
  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 -9
  134. package/dist/actions/create-webhook.d.cts.map +1 -1
  135. package/dist/actions/create-webhook.d.mts +3 -9
  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 -3
  142. package/dist/actions/deactivate-plan.d.cts.map +1 -1
  143. package/dist/actions/deactivate-plan.d.mts +3 -3
  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 -4
  150. package/dist/actions/delete-external-payment.d.cts.map +1 -1
  151. package/dist/actions/delete-external-payment.d.mts +3 -4
  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 -4
  158. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
  159. package/dist/actions/delete-invoice-payment-record.d.mts +3 -4
  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 -4
  166. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
  167. package/dist/actions/delete-invoice-refund-record.d.mts +3 -4
  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 -3
  174. package/dist/actions/delete-invoice.d.cts.map +1 -1
  175. package/dist/actions/delete-invoice.d.mts +3 -3
  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 -3
  182. package/dist/actions/delete-payment-resource.d.cts.map +1 -1
  183. package/dist/actions/delete-payment-resource.d.mts +3 -3
  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 -3
  190. package/dist/actions/delete-template.d.cts.map +1 -1
  191. package/dist/actions/delete-template.d.mts +3 -3
  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 -3
  198. package/dist/actions/delete-web-profile.d.cts.map +1 -1
  199. package/dist/actions/delete-web-profile.d.mts +3 -3
  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 -3
  206. package/dist/actions/delete-webhook.d.cts.map +1 -1
  207. package/dist/actions/delete-webhook.d.mts +3 -3
  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 -3
  214. package/dist/actions/fetch-node.d.cts.map +1 -1
  215. package/dist/actions/fetch-node.d.mts +3 -3
  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 -3
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -3
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +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 -37
  230. package/dist/actions/find-eligible-methods.d.cts.map +1 -1
  231. package/dist/actions/find-eligible-methods.d.mts +3 -37
  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 -1
  238. package/dist/actions/generate-client-token.d.cts.map +1 -1
  239. package/dist/actions/generate-client-token.d.mts +3 -1
  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 -3
  246. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
  247. package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -3
  248. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
  249. package/dist/actions/generate-next-invoice-number-v2.mjs +1 -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 -1
  254. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
  255. package/dist/actions/generate-next-invoice-number.d.mts +3 -1
  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 -6
  262. package/dist/actions/generate-qr-code.d.cts.map +1 -1
  263. package/dist/actions/generate-qr-code.d.mts +3 -6
  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 -8
  270. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
  271. package/dist/actions/get-billing-subscriptions.d.mts +3 -8
  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 -3
  278. package/dist/actions/get-invoice.d.cts.map +1 -1
  279. package/dist/actions/get-invoice.d.mts +3 -3
  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 -6
  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 -6
  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 -3
  294. package/dist/actions/get-invoicing-template.d.cts.map +1 -1
  295. package/dist/actions/get-invoicing-template.d.mts +3 -3
  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 -4
  302. package/dist/actions/get-order.d.cts.map +1 -1
  303. package/dist/actions/get-order.d.mts +3 -4
  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 -3
  310. package/dist/actions/get-payment.d.cts.map +1 -1
  311. package/dist/actions/get-payment.d.mts +3 -3
  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 -3
  318. package/dist/actions/get-payments-refund.d.cts.map +1 -1
  319. package/dist/actions/get-payments-refund.d.mts +3 -3
  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 -3
  326. package/dist/actions/get-plan.d.cts.map +1 -1
  327. package/dist/actions/get-plan.d.mts +3 -3
  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 -3
  334. package/dist/actions/get-product.d.cts.map +1 -1
  335. package/dist/actions/get-product.d.mts +3 -3
  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 -4
  342. package/dist/actions/get-subscription.d.cts.map +1 -1
  343. package/dist/actions/get-subscription.d.mts +3 -4
  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 -3
  350. package/dist/actions/get-user-info.d.cts.map +1 -1
  351. package/dist/actions/get-user-info.d.mts +3 -3
  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 -3
  358. package/dist/actions/get-userinfo.d.cts.map +1 -1
  359. package/dist/actions/get-userinfo.d.mts +3 -3
  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 -3
  366. package/dist/actions/get-web-profile.d.cts.map +1 -1
  367. package/dist/actions/get-web-profile.d.mts +3 -3
  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 -3
  374. package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
  375. package/dist/actions/get-webhook-lookup.d.mts +3 -3
  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 -3
  382. package/dist/actions/get-webhook.d.cts.map +1 -1
  383. package/dist/actions/get-webhook.d.mts +3 -3
  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 -9
  390. package/dist/actions/list-disputes.d.cts.map +1 -1
  391. package/dist/actions/list-disputes.d.mts +3 -9
  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 -6
  398. package/dist/actions/list-invoices.d.cts.map +1 -1
  399. package/dist/actions/list-invoices.d.mts +3 -6
  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 -8
  406. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
  407. package/dist/actions/list-legacy-billing-plans.d.mts +3 -8
  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 +3 -9
  414. package/dist/actions/list-payments.d.cts.map +1 -1
  415. package/dist/actions/list-payments.d.mts +3 -9
  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 -6
  422. package/dist/actions/list-plans.d.cts.map +1 -1
  423. package/dist/actions/list-plans.d.mts +3 -6
  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 -5
  430. package/dist/actions/list-products.d.cts.map +1 -1
  431. package/dist/actions/list-products.d.mts +3 -5
  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 -5
  438. package/dist/actions/list-templates.d.cts.map +1 -1
  439. package/dist/actions/list-templates.d.mts +3 -5
  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 -5
  446. package/dist/actions/list-web-profiles.d.cts.map +1 -1
  447. package/dist/actions/list-web-profiles.d.mts +3 -5
  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 -3
  454. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
  455. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -3
  456. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
  457. package/dist/actions/list-webhook-event-type-subscriptions.mjs +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 -1
  462. package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
  463. package/dist/actions/list-webhook-event-types.d.mts +3 -1
  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 -1
  470. package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
  471. package/dist/actions/list-webhook-lookups.d.mts +3 -1
  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 -3
  478. package/dist/actions/list-webhooks.d.cts.map +1 -1
  479. package/dist/actions/list-webhooks.d.mts +3 -3
  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 -10
  486. package/dist/actions/patch-orders.d.cts.map +1 -1
  487. package/dist/actions/patch-orders.d.mts +3 -10
  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 -10
  494. package/dist/actions/patch-plan.d.cts.map +1 -1
  495. package/dist/actions/patch-plan.d.mts +3 -10
  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 -10
  502. package/dist/actions/patch-subscription.d.cts.map +1 -1
  503. package/dist/actions/patch-subscription.d.mts +3 -10
  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 -10
  510. package/dist/actions/patch-web-profile.d.cts.map +1 -1
  511. package/dist/actions/patch-web-profile.d.mts +3 -10
  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 -1
  518. package/dist/actions/ping-braintree.d.cts.map +1 -1
  519. package/dist/actions/ping-braintree.d.mts +3 -1
  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 -6
  526. package/dist/actions/query-braintree-report.d.cts.map +1 -1
  527. package/dist/actions/query-braintree-report.d.mts +3 -6
  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 -3
  534. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
  535. package/dist/actions/retrieve-payment-resource.d.mts +3 -3
  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 -44
  542. package/dist/actions/search-invoices.d.cts.map +1 -1
  543. package/dist/actions/search-invoices.d.mts +5 -44
  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 -8
  550. package/dist/actions/send-invoice.d.cts.map +1 -1
  551. package/dist/actions/send-invoice.d.mts +3 -8
  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 -6
  558. package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
  559. package/dist/actions/simulate-webhook-event.d.mts +3 -6
  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 -10
  566. package/dist/actions/update-dispute.d.cts.map +1 -1
  567. package/dist/actions/update-dispute.d.mts +3 -10
  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 -171
  574. package/dist/actions/update-invoice.d.cts.map +1 -1
  575. package/dist/actions/update-invoice.d.mts +5 -171
  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 -10
  582. package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
  583. package/dist/actions/update-pay-pal-product.d.mts +3 -10
  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 -10
  590. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
  591. package/dist/actions/update-pay-pal-webhook.d.mts +3 -10
  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 -213
  598. package/dist/actions/update-templates.d.cts.map +1 -1
  599. package/dist/actions/update-templates.d.mts +3 -213
  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 -20
  606. package/dist/actions/update-web-profile.d.cts.map +1 -1
  607. package/dist/actions/update-web-profile.d.mts +3 -20
  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 -6
  614. package/dist/actions/verify-payment-method.d.cts.map +1 -1
  615. package/dist/actions/verify-payment-method.d.mts +3 -6
  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 -24
  622. package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
  623. package/dist/actions/verify-webhook-signature.d.mts +3 -24
  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 +5 -2
  628. package/dist/app.cjs.map +1 -1
  629. package/dist/app.d.cts +7 -1
  630. package/dist/app.d.cts.map +1 -1
  631. package/dist/app.d.mts +7 -1
  632. package/dist/app.d.mts.map +1 -1
  633. package/dist/app.mjs +3 -2
  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 +1 @@
1
- {"version":3,"file":"create-subscription.mjs","names":[],"sources":["../../src/actions/create-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateSubscriptionInput = z.object({\n plan: z.object({\n taxes: z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").optional(),\n}).describe(\"Tax details for plan override.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").optional(),\n pricing_scheme: z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").optional(),\n net_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").optional(),\n gross_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").optional(),\n}).describe(\"Payment preferences to override at subscription level.\").optional(),\n}).describe(\"An inline plan object to customize the subscription.\").optional(),\n plan_id: z.string().describe(\"The ID of the plan for the subscription. Typically a PayPal plan ID like 'P-4BP00732K8416940FNHU6FGA'.\"),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").optional(),\n custom_id: z.string().describe(\"The custom id for the subscription. Can be an invoice id.\").optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts, in Internet date and time format (ISO 8601).\").optional(),\n subscriber: z.object({\n name: z.object({\n surname: z.string().describe(\"The subscriber's surname.\").optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").optional(),\n}).describe(\"Name of the subscriber.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").optional(),\n national_number: z.string().describe(\"National phone number.\").optional(),\n}).describe(\"Phone number of the subscriber.\").optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"The city name.\").optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").optional(),\n state: z.string().describe(\"The state or province code.\").optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").optional(),\n}).describe(\"Shipping address for the subscription.\").optional(),\n}).describe(\"The subscriber information for the subscription.\").optional(),\n auto_renewal: z.boolean().describe(\"DEPRECATED. Indicates whether the subscription auto-renews after the billing cycles complete.\").optional(),\n shipping_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n application_context: z.object({\n locale: z.string().describe(\"The language tag for localization of error-related strings (e.g., 'en-US', 'fr-FR').\").optional(),\n brand_name: z.string().describe(\"The label that overrides the business name in the PayPal account on the PayPal site.\").optional(),\n cancel_url: z.string().describe(\"The URL where the customer is redirected after the customer cancels the payment.\"),\n return_url: z.string().describe(\"The URL where the customer is redirected after the customer approves the payment.\"),\n user_action: z.enum([\"CONTINUE\", \"SUBSCRIBE_NOW\"]).default(\"SUBSCRIBE_NOW\").describe(\"Configures the label name for subscription consent experience.\").optional(),\n payment_method: z.object({\n payee_preferred: z.enum([\"UNRESTRICTED\", \"IMMEDIATE_PAYMENT_REQUIRED\"]).describe(\"Customer and merchant payment preferences.\").optional(),\n}).describe(\"The customer and merchant payment preferences.\").optional(),\n shipping_preference: z.enum([\"GET_FROM_FILE\", \"NO_SHIPPING\", \"SET_PROVIDED_ADDRESS\"]).default(\"GET_FROM_FILE\").describe(\"Location from which the shipping address is derived.\").optional(),\n}).describe(\"The application context, which customizes the payer experience during\\nthe subscription approval process with PayPal.\").optional(),\n}).describe(\"Request model for creating a PayPal subscription.\\n\\nUse when you need to create a new PayPal billing subscription for a customer\\nbased on a plan. The subscriber will be redirected to PayPal to approve the subscription.\");\nconst PaypalCreateSubscription_PlanTaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").nullable().optional(),\n}).passthrough().describe(\"Tax details for plan override.\");\nconst PaypalCreateSubscription_MoneySchema = z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateSubscription_PricingSchemeSchema = z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").nullable().optional(),\n net_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").nullable().optional(),\n gross_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreateSubscription_BillingCycleSequenceSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").nullable().optional(),\n pricing_scheme: PaypalCreateSubscription_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\");\nconst PaypalCreateSubscription_PlanPaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").nullable().optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences to override at subscription level.\");\nconst PaypalCreateSubscription_PlanOverrideSchema = z.object({\n taxes: PaypalCreateSubscription_PlanTaxesSchema.nullable().optional(),\n billing_cycles: z.array(PaypalCreateSubscription_BillingCycleSequenceSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n payment_preferences: PaypalCreateSubscription_PlanPaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"An inline plan object to customize the subscription.\");\nconst PaypalCreateSubscription_LinkSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and this link.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link for the subscription.\");\nconst PaypalCreateSubscription_IssueSchema = z.object({\n field: z.string().describe(\"The field that caused the issue.\").nullable().optional(),\n issue: z.string().describe(\"Description of the issue.\").nullable().optional(),\n description: z.string().describe(\"Additional details about the issue.\").nullable().optional(),\n}).passthrough().describe(\"A validation issue returned when the request fails.\");\nconst PaypalCreateSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The subscriber's surname.\").nullable().optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").nullable().optional(),\n}).passthrough().describe(\"Name of the subscriber.\");\nconst PaypalCreateSubscription_SubscriberPhoneSchema = z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").nullable().optional(),\n national_number: z.string().describe(\"National phone number.\").nullable().optional(),\n}).passthrough().describe(\"Phone number of the subscriber.\");\nconst PaypalCreateSubscription_ShippingAddressSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").nullable().optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").nullable().optional(),\n}).passthrough().describe(\"Shipping address for the subscription.\");\nconst PaypalCreateSubscription_SubscriberSchema = z.object({\n name: PaypalCreateSubscription_SubscriberNameSchema.nullable().optional(),\n phone: PaypalCreateSubscription_SubscriberPhoneSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").nullable().optional(),\n shipping_address: PaypalCreateSubscription_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"The subscriber information for the subscription.\");\nconst PaypalCreateSubscription_BillingInfoSchema = z.object({\n last_payment_time: z.string().describe(\"The last payment time in ISO 8601 format.\").nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing time in ISO 8601 format.\").nullable().optional(),\n next_cycle_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n last_payment_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Billing information for the subscription.\");\nexport const PaypalCreateSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n name: z.string().describe(\"Error name if the request failed.\").nullable().optional(),\n plan: PaypalCreateSubscription_PlanOverrideSchema.nullable().optional(),\n links: z.array(PaypalCreateSubscription_LinkSchema).describe(\"HATEOAS links for the subscription. Use the approve link to redirect the subscriber to PayPal.\").nullable().optional(),\n issues: z.array(PaypalCreateSubscription_IssueSchema).describe(\"List of validation issues if the request failed.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., 'ACTIVE', 'PENDING').\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed.\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan associated with the subscription.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom id for the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The start time of the subscription in ISO 8601 format.\").nullable().optional(),\n subscriber: PaypalCreateSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalCreateSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Whether the plan was overridden at subscription level.\").nullable().optional(),\n shipping_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n status_change_note: z.string().describe(\"A note explaining why the status changed.\").nullable().optional(),\n status_update_time: z.string().describe(\"The time when the status was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a PayPal subscription.\\n\\nContains the subscription ID, status, and HATEOAS links for next actions.\\nThe subscriber must be redirected to the approval URL to complete the subscription.\");\n\nexport const paypalCreateSubscription = action(\"PAYPAL_CREATE_SUBSCRIPTION\", {\n slug: \"paypal-create-subscription\",\n name: \"Create Subscription\",\n description: \"Creates a new PayPal subscription based on a billing plan. Use this action when you need to set up a recurring billing subscription for a customer. The action returns a subscription ID and an approval URL where the subscriber must complete the subscription by logging into their PayPal account and confirming the payment. This action is irreversible once the subscriber approves the subscription. **Required fields:** - plan_id: The PayPal billing plan ID **Important:** - The subscriber will be redirected to PayPal to approve the subscription - Use the 'approve' link from the response to redirect the subscriber - The subscription status will be 'PENDING' until the subscriber approves it\",\n input: PaypalCreateSubscriptionInput,\n output: PaypalCreateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,OAAO;GAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrD,gBAAgB,EAAE,MAAM,EAAE,OAAO;GACjC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;GACxG,gBAAgB,EAAE,OAAO;IACzB,SAAS,EAAE,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SAAS,CAAC,CAAC,SAAS;EACpH,iBAAiB,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAC1E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iOAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-subscription.mjs","names":[],"sources":["../../src/actions/create-subscription.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 PaypalCreateSubscriptionInput = z.object({\n plan: z.object({\n taxes: z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").optional(),\n}).describe(\"Tax details for plan override.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").optional(),\n pricing_scheme: z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").optional(),\n net_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").optional(),\n gross_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").optional(),\n}).describe(\"Payment preferences to override at subscription level.\").optional(),\n}).describe(\"An inline plan object to customize the subscription.\").optional(),\n plan_id: z.string().describe(\"The ID of the plan for the subscription. Typically a PayPal plan ID like 'P-4BP00732K8416940FNHU6FGA'.\"),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").optional(),\n custom_id: z.string().describe(\"The custom id for the subscription. Can be an invoice id.\").optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts, in Internet date and time format (ISO 8601).\").optional(),\n subscriber: z.object({\n name: z.object({\n surname: z.string().describe(\"The subscriber's surname.\").optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").optional(),\n}).describe(\"Name of the subscriber.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").optional(),\n national_number: z.string().describe(\"National phone number.\").optional(),\n}).describe(\"Phone number of the subscriber.\").optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"The city name.\").optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").optional(),\n state: z.string().describe(\"The state or province code.\").optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").optional(),\n}).describe(\"Shipping address for the subscription.\").optional(),\n}).describe(\"The subscriber information for the subscription.\").optional(),\n auto_renewal: z.boolean().describe(\"DEPRECATED. Indicates whether the subscription auto-renews after the billing cycles complete.\").optional(),\n shipping_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n application_context: z.object({\n locale: z.string().describe(\"The language tag for localization of error-related strings (e.g., 'en-US', 'fr-FR').\").optional(),\n brand_name: z.string().describe(\"The label that overrides the business name in the PayPal account on the PayPal site.\").optional(),\n cancel_url: z.string().describe(\"The URL where the customer is redirected after the customer cancels the payment.\"),\n return_url: z.string().describe(\"The URL where the customer is redirected after the customer approves the payment.\"),\n user_action: z.enum([\"CONTINUE\", \"SUBSCRIBE_NOW\"]).default(\"SUBSCRIBE_NOW\").describe(\"Configures the label name for subscription consent experience.\").optional(),\n payment_method: z.object({\n payee_preferred: z.enum([\"UNRESTRICTED\", \"IMMEDIATE_PAYMENT_REQUIRED\"]).describe(\"Customer and merchant payment preferences.\").optional(),\n}).describe(\"The customer and merchant payment preferences.\").optional(),\n shipping_preference: z.enum([\"GET_FROM_FILE\", \"NO_SHIPPING\", \"SET_PROVIDED_ADDRESS\"]).default(\"GET_FROM_FILE\").describe(\"Location from which the shipping address is derived.\").optional(),\n}).describe(\"The application context, which customizes the payer experience during\\nthe subscription approval process with PayPal.\").optional(),\n}).describe(\"Request model for creating a PayPal subscription.\\n\\nUse when you need to create a new PayPal billing subscription for a customer\\nbased on a plan. The subscriber will be redirected to PayPal to approve the subscription.\");\nconst PaypalCreateSubscription_PlanTaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").nullable().optional(),\n}).passthrough().describe(\"Tax details for plan override.\");\nconst PaypalCreateSubscription_MoneySchema = z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateSubscription_PricingSchemeSchema = z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").nullable().optional(),\n net_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").nullable().optional(),\n gross_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreateSubscription_BillingCycleSequenceSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").nullable().optional(),\n pricing_scheme: PaypalCreateSubscription_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\");\nconst PaypalCreateSubscription_PlanPaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").nullable().optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences to override at subscription level.\");\nconst PaypalCreateSubscription_PlanOverrideSchema = z.object({\n taxes: PaypalCreateSubscription_PlanTaxesSchema.nullable().optional(),\n billing_cycles: z.array(PaypalCreateSubscription_BillingCycleSequenceSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n payment_preferences: PaypalCreateSubscription_PlanPaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"An inline plan object to customize the subscription.\");\nconst PaypalCreateSubscription_LinkSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and this link.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link for the subscription.\");\nconst PaypalCreateSubscription_IssueSchema = z.object({\n field: z.string().describe(\"The field that caused the issue.\").nullable().optional(),\n issue: z.string().describe(\"Description of the issue.\").nullable().optional(),\n description: z.string().describe(\"Additional details about the issue.\").nullable().optional(),\n}).passthrough().describe(\"A validation issue returned when the request fails.\");\nconst PaypalCreateSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The subscriber's surname.\").nullable().optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").nullable().optional(),\n}).passthrough().describe(\"Name of the subscriber.\");\nconst PaypalCreateSubscription_SubscriberPhoneSchema = z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").nullable().optional(),\n national_number: z.string().describe(\"National phone number.\").nullable().optional(),\n}).passthrough().describe(\"Phone number of the subscriber.\");\nconst PaypalCreateSubscription_ShippingAddressSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").nullable().optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").nullable().optional(),\n}).passthrough().describe(\"Shipping address for the subscription.\");\nconst PaypalCreateSubscription_SubscriberSchema = z.object({\n name: PaypalCreateSubscription_SubscriberNameSchema.nullable().optional(),\n phone: PaypalCreateSubscription_SubscriberPhoneSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").nullable().optional(),\n shipping_address: PaypalCreateSubscription_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"The subscriber information for the subscription.\");\nconst PaypalCreateSubscription_BillingInfoSchema = z.object({\n last_payment_time: z.string().describe(\"The last payment time in ISO 8601 format.\").nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing time in ISO 8601 format.\").nullable().optional(),\n next_cycle_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n last_payment_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Billing information for the subscription.\");\nexport const PaypalCreateSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n name: z.string().describe(\"Error name if the request failed.\").nullable().optional(),\n plan: PaypalCreateSubscription_PlanOverrideSchema.nullable().optional(),\n links: z.array(PaypalCreateSubscription_LinkSchema).describe(\"HATEOAS links for the subscription. Use the approve link to redirect the subscriber to PayPal.\").nullable().optional(),\n issues: z.array(PaypalCreateSubscription_IssueSchema).describe(\"List of validation issues if the request failed.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., 'ACTIVE', 'PENDING').\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed.\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan associated with the subscription.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom id for the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The start time of the subscription in ISO 8601 format.\").nullable().optional(),\n subscriber: PaypalCreateSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalCreateSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Whether the plan was overridden at subscription level.\").nullable().optional(),\n shipping_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n status_change_note: z.string().describe(\"A note explaining why the status changed.\").nullable().optional(),\n status_update_time: z.string().describe(\"The time when the status was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a PayPal subscription.\\n\\nContains the subscription ID, status, and HATEOAS links for next actions.\\nThe subscriber must be redirected to the approval URL to complete the subscription.\");\n\nexport const paypalCreateSubscription: AppAction<\n typeof PaypalCreateSubscriptionInput,\n typeof PaypalCreateSubscriptionOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_SUBSCRIPTION\", {\n slug: \"paypal-create-subscription\",\n name: \"Create Subscription\",\n description: \"Creates a new PayPal subscription based on a billing plan. Use this action when you need to set up a recurring billing subscription for a customer. The action returns a subscription ID and an approval URL where the subscriber must complete the subscription by logging into their PayPal account and confirming the payment. This action is irreversible once the subscriber approves the subscription. **Required fields:** - plan_id: The PayPal billing plan ID **Important:** - The subscriber will be redirected to PayPal to approve the subscription - Use the 'approve' link from the response to redirect the subscriber - The subscription status will be 'PENDING' until the subscriber approves it\",\n input: PaypalCreateSubscriptionInput,\n output: PaypalCreateSubscriptionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,OAAO;GAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrD,gBAAgB,EAAE,MAAM,EAAE,OAAO;GACjC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCA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kD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,cAAc,2CAA2C,SAAS,CAAC,CAAC,SAAS;EAC7E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,iBAAiB,qCAAqC,SAAS,CAAC,CAAC,SAAS;EAC1E,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iOAWhB;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-template.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateTemplateInput = z.object({\n name: z.string().describe(\"The template name. Must be unique.\"),\n settings: z.array(z.object({\n template_item_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template item headers display preference.\")).describe(\"The template item headers display preference.\").optional(),\n template_subtotal_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\")).describe(\"The template subtotal headers display preference.\").optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\")).describe(\"The template settings. Sets a template as the default template or edit template.\").optional(),\n template_info: z.object({\n items: z.array(z.object({\n name: z.string().describe(\"The item name.\").optional(),\n quantity: z.string().describe(\"The quantity of the item.\").optional(),\n description: z.string().describe(\"The item description.\").optional(),\n unit_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).passthrough().describe(\"An invoice line item.\")).describe(\"An array of invoice line-item information.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The total amount value.\").optional(),\n breakdown: z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").optional(),\n shipping: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n tax_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n item_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").optional(),\n}).describe(\"The invoice amount summary including breakdown.\").optional(),\n detail: z.object({\n memo: z.string().describe(\"A memo for the invoice.\").optional(),\n note: z.string().describe(\"A note to the payer.\").optional(),\n metadata: z.object({\n create_user: z.string().describe(\"The user who created the template.\").optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").optional(),\n}).describe(\"The metadata for the invoice template.\").optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").optional(),\n payment_term: z.object({\n due_type: z.string().describe(\"The type of the due date.\").optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").optional(),\n}).describe(\"The payment term for the invoice.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\"),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").optional(),\n}).describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\").optional(),\n invoicer: z.object({\n phones: z.array(z.object({\n country_code: z.string().describe(\"The country code.\").optional(),\n national_number: z.string().describe(\"The national phone number.\").optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\")).describe(\"The phone numbers of the invoicer.\").optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").optional(),\n}).describe(\"The invoicer business information that appears on the invoice.\").optional(),\n due_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n configuration: z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").optional(),\n partial_payment: z.object({\n total_due: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").optional(),\n}).describe(\"The partial payment configuration.\").optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").optional(),\n}).describe(\"The template configuration details including tax information, tip, and partial payment.\").optional(),\n primary_recipients: z.array(z.object({\n billing_info: z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").optional(),\n}).describe(\"The billing information for the recipient.\").optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\")).describe(\"The billing and shipping information including name, email, address, phone, and language.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").optional(),\n}).describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\").optional(),\n unit_of_measure: z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\").optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template. A invoicer can have one default template.\").optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.\").optional(),\n}).describe(\"Request schema for creating a PayPal invoice template.\\n\\nUse this action when you need to create a reusable invoice template\\nthat can be used to generate invoices with consistent settings.\\nThe minimum required field is the name and template_info.detail.currency_code.\\n\\n**Required fields:**\\n- name: The template name (must be unique)\\n- template_info.detail.currency_code: The three-character currency code\\n\\n**Optional fields:**\\n- default_template: Set as the default template\\n- standard_template: Custom vs system-generated template\\n- template_info: Full template configuration including invoicer info, recipients, items\\n- settings: Template display preferences\\n- unit_of_measure: Unit of measure for items (QUANTITY, HOURS, AMOUNT)\\n\\nThe created template can be used to quickly generate invoices with\\npre-configured business information, recipients, and line items.\");\nconst PaypalCreateTemplate_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.\");\nconst PaypalCreateTemplate_TemplateItemSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template item headers display preference.\");\nconst PaypalCreateTemplate_TemplateSubtotalSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\");\nconst PaypalCreateTemplate_TemplateSettingsSchema = z.object({\n template_item_settings: z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe(\"The template item headers display preference.\").nullable().optional(),\n template_subtotal_settings: z.array(PaypalCreateTemplate_TemplateSubtotalSettingSchema).describe(\"The template subtotal headers display preference.\").nullable().optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\");\nconst PaypalCreateTemplate_MoneySchema = z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateTemplate_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n description: z.string().describe(\"The item description.\").nullable().optional(),\n unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"An invoice line item.\");\nconst PaypalCreateTemplate_AmountBreakdownSchema = z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").nullable().optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").nullable().optional(),\n shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n item_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\");\nconst PaypalCreateTemplate_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The total amount value.\").nullable().optional(),\n breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The invoice amount summary including breakdown.\");\nconst PaypalCreateTemplate_TemplateMetadataSchema = z.object({\n create_user: z.string().describe(\"The user who created the template.\").nullable().optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").nullable().optional(),\n}).passthrough().describe(\"The metadata for the invoice template.\");\nconst PaypalCreateTemplate_TemplatePaymentTermSchema = z.object({\n due_type: z.string().describe(\"The type of the due date.\").nullable().optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").nullable().optional(),\n}).passthrough().describe(\"The payment term for the invoice.\");\nconst PaypalCreateTemplate_TemplateDetailSchema = z.object({\n memo: z.string().describe(\"A memo for the invoice.\").nullable().optional(),\n note: z.string().describe(\"A note to the payer.\").nullable().optional(),\n metadata: PaypalCreateTemplate_TemplateMetadataSchema.nullable().optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").nullable().optional(),\n payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\").nullable(),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").nullable().optional(),\n}).passthrough().describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\");\nconst PaypalCreateTemplate_PhoneNumberSchema = z.object({\n country_code: z.string().describe(\"The country code.\").nullable().optional(),\n national_number: z.string().describe(\"The national phone number.\").nullable().optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\");\nconst PaypalCreateTemplate_InvoicerInfoSchema = z.object({\n phones: z.array(PaypalCreateTemplate_PhoneNumberSchema).describe(\"The phone numbers of the invoicer.\").nullable().optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").nullable().optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").nullable().optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"The invoicer business information that appears on the invoice.\");\nconst PaypalCreateTemplate_PartialPaymentSchema = z.object({\n total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").nullable().optional(),\n}).passthrough().describe(\"The partial payment configuration.\");\nconst PaypalCreateTemplate_TemplateConfigurationSchema = z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").nullable().optional(),\n partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").nullable().optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").nullable().optional(),\n}).passthrough().describe(\"The template configuration details including tax information, tip, and partial payment.\");\nconst PaypalCreateTemplate_BillingInfoSchema = z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").nullable().optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").nullable().optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").nullable().optional(),\n}).passthrough().describe(\"The billing information for the recipient.\");\nconst PaypalCreateTemplate_RecipientInfoSchema = z.object({\n billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").nullable().optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\");\nconst PaypalCreateTemplate_TemplateInfoSchema = z.object({\n items: z.array(PaypalCreateTemplate_InvoiceItemSchema).describe(\"An array of invoice line-item information.\").nullable().optional(),\n amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalCreateTemplate_TemplateDetailSchema.nullable().optional(),\n invoicer: PaypalCreateTemplate_InvoicerInfoSchema.nullable().optional(),\n due_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),\n primary_recipients: z.array(PaypalCreateTemplate_RecipientInfoSchema).describe(\"The billing and shipping information including name, email, address, phone, and language.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").nullable().optional(),\n}).passthrough().describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\");\nconst PaypalCreateTemplate_UnitOfMeasureSchema = z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\");\nexport const PaypalCreateTemplateOutput = z.object({\n id: z.string().describe(\"The ID of the template.\").nullable().optional(),\n name: z.string().describe(\"The template name.\").nullable().optional(),\n links: z.array(PaypalCreateTemplate_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the template.\").nullable().optional(),\n settings: z.array(PaypalCreateTemplate_TemplateSettingsSchema).describe(\"The template settings.\").nullable().optional(),\n template_info: PaypalCreateTemplate_TemplateInfoSchema.nullable().optional(),\n unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template.\").nullable().optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal invoice template.\");\n\nexport const paypalCreateTemplate = action(\"PAYPAL_CREATE_TEMPLATE\", {\n slug: \"paypal-create-template\",\n name: \"Create template\",\n description: \"Creates a PayPal invoice template. Use this action when you need to create a reusable invoice template that can be used to generate invoices with consistent settings. Templates are useful for businesses that regularly send similar invoices. **Required fields:** - name: The template name (must be unique) - template_info.detail.currency_code: The three-character ISO-4217 currency code **Optional fields:** - default_template: Set as the default template (only one allowed per account) - standard_template: Indicates if this is a custom template - template_info: Full template configuration - invoicer: Business information (email, tax_id, logo_url, etc.) - primary_recipients: Billing/shipping information for recipients - items: Line item presets - configuration: Tax settings, partial payment options - settings: Display preferences - unit_of_measure: QUANTITY, HOURS, or AMOUNT The created template can be used with the Generate Invoice action to quickly create invoices from pre-configured templates.\",\n input: PaypalCreateTemplateInput,\n output: PaypalCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,wBAAwBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC7I,4BAA4BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACvJ,CAAC,CAAC,CAA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,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,OAAOA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,UAAUA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,eAAe,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAC3E,iBAAiB,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.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 PaypalCreateTemplateInput = z.object({\n name: z.string().describe(\"The template name. Must be unique.\"),\n settings: z.array(z.object({\n template_item_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template item headers display preference.\")).describe(\"The template item headers display preference.\").optional(),\n template_subtotal_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\")).describe(\"The template subtotal headers display preference.\").optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\")).describe(\"The template settings. Sets a template as the default template or edit template.\").optional(),\n template_info: z.object({\n items: z.array(z.object({\n name: z.string().describe(\"The item name.\").optional(),\n quantity: z.string().describe(\"The quantity of the item.\").optional(),\n description: z.string().describe(\"The item description.\").optional(),\n unit_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).passthrough().describe(\"An invoice line item.\")).describe(\"An array of invoice line-item information.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The total amount value.\").optional(),\n breakdown: z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").optional(),\n shipping: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n tax_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n item_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").optional(),\n}).describe(\"The invoice amount summary including breakdown.\").optional(),\n detail: z.object({\n memo: z.string().describe(\"A memo for the invoice.\").optional(),\n note: z.string().describe(\"A note to the payer.\").optional(),\n metadata: z.object({\n create_user: z.string().describe(\"The user who created the template.\").optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").optional(),\n}).describe(\"The metadata for the invoice template.\").optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").optional(),\n payment_term: z.object({\n due_type: z.string().describe(\"The type of the due date.\").optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").optional(),\n}).describe(\"The payment term for the invoice.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\"),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").optional(),\n}).describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\").optional(),\n invoicer: z.object({\n phones: z.array(z.object({\n country_code: z.string().describe(\"The country code.\").optional(),\n national_number: z.string().describe(\"The national phone number.\").optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\")).describe(\"The phone numbers of the invoicer.\").optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").optional(),\n}).describe(\"The invoicer business information that appears on the invoice.\").optional(),\n due_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n configuration: z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").optional(),\n partial_payment: z.object({\n total_due: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").optional(),\n}).describe(\"The partial payment configuration.\").optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").optional(),\n}).describe(\"The template configuration details including tax information, tip, and partial payment.\").optional(),\n primary_recipients: z.array(z.object({\n billing_info: z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").optional(),\n}).describe(\"The billing information for the recipient.\").optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\")).describe(\"The billing and shipping information including name, email, address, phone, and language.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").optional(),\n}).describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\").optional(),\n unit_of_measure: z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\").optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template. A invoicer can have one default template.\").optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.\").optional(),\n}).describe(\"Request schema for creating a PayPal invoice template.\\n\\nUse this action when you need to create a reusable invoice template\\nthat can be used to generate invoices with consistent settings.\\nThe minimum required field is the name and template_info.detail.currency_code.\\n\\n**Required fields:**\\n- name: The template name (must be unique)\\n- template_info.detail.currency_code: The three-character currency code\\n\\n**Optional fields:**\\n- default_template: Set as the default template\\n- standard_template: Custom vs system-generated template\\n- template_info: Full template configuration including invoicer info, recipients, items\\n- settings: Template display preferences\\n- unit_of_measure: Unit of measure for items (QUANTITY, HOURS, AMOUNT)\\n\\nThe created template can be used to quickly generate invoices with\\npre-configured business information, recipients, and line items.\");\nconst PaypalCreateTemplate_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.\");\nconst PaypalCreateTemplate_TemplateItemSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template item headers display preference.\");\nconst PaypalCreateTemplate_TemplateSubtotalSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\");\nconst PaypalCreateTemplate_TemplateSettingsSchema = z.object({\n template_item_settings: z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe(\"The template item headers display preference.\").nullable().optional(),\n template_subtotal_settings: z.array(PaypalCreateTemplate_TemplateSubtotalSettingSchema).describe(\"The template subtotal headers display preference.\").nullable().optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\");\nconst PaypalCreateTemplate_MoneySchema = z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateTemplate_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n description: z.string().describe(\"The item description.\").nullable().optional(),\n unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"An invoice line item.\");\nconst PaypalCreateTemplate_AmountBreakdownSchema = z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").nullable().optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").nullable().optional(),\n shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n item_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\");\nconst PaypalCreateTemplate_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The total amount value.\").nullable().optional(),\n breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The invoice amount summary including breakdown.\");\nconst PaypalCreateTemplate_TemplateMetadataSchema = z.object({\n create_user: z.string().describe(\"The user who created the template.\").nullable().optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").nullable().optional(),\n}).passthrough().describe(\"The metadata for the invoice template.\");\nconst PaypalCreateTemplate_TemplatePaymentTermSchema = z.object({\n due_type: z.string().describe(\"The type of the due date.\").nullable().optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").nullable().optional(),\n}).passthrough().describe(\"The payment term for the invoice.\");\nconst PaypalCreateTemplate_TemplateDetailSchema = z.object({\n memo: z.string().describe(\"A memo for the invoice.\").nullable().optional(),\n note: z.string().describe(\"A note to the payer.\").nullable().optional(),\n metadata: PaypalCreateTemplate_TemplateMetadataSchema.nullable().optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").nullable().optional(),\n payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\").nullable(),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").nullable().optional(),\n}).passthrough().describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\");\nconst PaypalCreateTemplate_PhoneNumberSchema = z.object({\n country_code: z.string().describe(\"The country code.\").nullable().optional(),\n national_number: z.string().describe(\"The national phone number.\").nullable().optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\");\nconst PaypalCreateTemplate_InvoicerInfoSchema = z.object({\n phones: z.array(PaypalCreateTemplate_PhoneNumberSchema).describe(\"The phone numbers of the invoicer.\").nullable().optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").nullable().optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").nullable().optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"The invoicer business information that appears on the invoice.\");\nconst PaypalCreateTemplate_PartialPaymentSchema = z.object({\n total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").nullable().optional(),\n}).passthrough().describe(\"The partial payment configuration.\");\nconst PaypalCreateTemplate_TemplateConfigurationSchema = z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").nullable().optional(),\n partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").nullable().optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").nullable().optional(),\n}).passthrough().describe(\"The template configuration details including tax information, tip, and partial payment.\");\nconst PaypalCreateTemplate_BillingInfoSchema = z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").nullable().optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").nullable().optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").nullable().optional(),\n}).passthrough().describe(\"The billing information for the recipient.\");\nconst PaypalCreateTemplate_RecipientInfoSchema = z.object({\n billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").nullable().optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\");\nconst PaypalCreateTemplate_TemplateInfoSchema = z.object({\n items: z.array(PaypalCreateTemplate_InvoiceItemSchema).describe(\"An array of invoice line-item information.\").nullable().optional(),\n amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalCreateTemplate_TemplateDetailSchema.nullable().optional(),\n invoicer: PaypalCreateTemplate_InvoicerInfoSchema.nullable().optional(),\n due_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),\n primary_recipients: z.array(PaypalCreateTemplate_RecipientInfoSchema).describe(\"The billing and shipping information including name, email, address, phone, and language.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").nullable().optional(),\n}).passthrough().describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\");\nconst PaypalCreateTemplate_UnitOfMeasureSchema = z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\");\nexport const PaypalCreateTemplateOutput = z.object({\n id: z.string().describe(\"The ID of the template.\").nullable().optional(),\n name: z.string().describe(\"The template name.\").nullable().optional(),\n links: z.array(PaypalCreateTemplate_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the template.\").nullable().optional(),\n settings: z.array(PaypalCreateTemplate_TemplateSettingsSchema).describe(\"The template settings.\").nullable().optional(),\n template_info: PaypalCreateTemplate_TemplateInfoSchema.nullable().optional(),\n unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template.\").nullable().optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal invoice template.\");\n\nexport const paypalCreateTemplate: AppAction<\n typeof PaypalCreateTemplateInput,\n typeof PaypalCreateTemplateOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_CREATE_TEMPLATE\", {\n slug: \"paypal-create-template\",\n name: \"Create template\",\n description: \"Creates a PayPal invoice template. Use this action when you need to create a reusable invoice template that can be used to generate invoices with consistent settings. Templates are useful for businesses that regularly send similar invoices. **Required fields:** - name: The template name (must be unique) - template_info.detail.currency_code: The three-character ISO-4217 currency code **Optional fields:** - default_template: Set as the default template (only one allowed per account) - standard_template: Indicates if this is a custom template - template_info: Full template configuration - invoicer: Business information (email, tax_id, logo_url, etc.) - primary_recipients: Billing/shipping information for recipients - items: Line item presets - configuration: Tax settings, partial payment options - settings: Display preferences - unit_of_measure: QUANTITY, HOURS, or AMOUNT The created template can be used with the Generate Invoice action to quickly create invoices from pre-configured templates.\",\n input: PaypalCreateTemplateInput,\n output: PaypalCreateTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC3B,wBAAwBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GACzC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAA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ITC,eAAAA,OAAO,0BAA0B;CACnC,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-template.d.ts
@@ -217,113 +219,7 @@ declare const PaypalCreateTemplateOutput: z.ZodObject<{
217
219
  default_template: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
218
220
  standard_template: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
219
221
  }, z.core.$loose>;
220
- declare const paypalCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
221
- name: string;
222
- settings?: {
223
- [x: string]: unknown;
224
- template_item_settings?: {
225
- [x: string]: unknown;
226
- name?: string | undefined;
227
- value?: string | undefined;
228
- }[] | undefined;
229
- template_subtotal_settings?: {
230
- [x: string]: unknown;
231
- name?: string | undefined;
232
- value?: string | undefined;
233
- }[] | undefined;
234
- }[] | undefined;
235
- template_info?: {
236
- items?: {
237
- [x: string]: unknown;
238
- name?: string | undefined;
239
- quantity?: string | undefined;
240
- description?: string | undefined;
241
- unit_amount?: {
242
- value: string;
243
- currency_code: string;
244
- } | undefined;
245
- }[] | undefined;
246
- amount?: {
247
- value?: string | undefined;
248
- breakdown?: {
249
- custom?: Record<string, unknown> | undefined;
250
- discount?: Record<string, unknown> | undefined;
251
- shipping?: {
252
- value: string;
253
- currency_code: string;
254
- } | undefined;
255
- tax_total?: {
256
- value: string;
257
- currency_code: string;
258
- } | undefined;
259
- item_total?: {
260
- value: string;
261
- currency_code: string;
262
- } | undefined;
263
- } | undefined;
264
- currency_code?: string | undefined;
265
- } | undefined;
266
- detail?: {
267
- currency_code: string;
268
- memo?: string | undefined;
269
- note?: string | undefined;
270
- metadata?: {
271
- create_user?: string | undefined;
272
- modify_user?: string | undefined;
273
- } | undefined;
274
- reference?: string | undefined;
275
- attachments?: Record<string, unknown>[] | undefined;
276
- payment_term?: {
277
- due_type?: string | undefined;
278
- interval_days?: number | undefined;
279
- } | undefined;
280
- terms_and_conditions?: string | undefined;
281
- } | undefined;
282
- invoicer?: {
283
- phones?: {
284
- [x: string]: unknown;
285
- country_code?: string | undefined;
286
- national_number?: string | undefined;
287
- }[] | undefined;
288
- tax_id?: string | undefined;
289
- website?: string | undefined;
290
- logo_url?: string | undefined;
291
- email_address?: string | undefined;
292
- additional_notes?: string | undefined;
293
- } | undefined;
294
- due_amount?: {
295
- value: string;
296
- currency_code: string;
297
- } | undefined;
298
- configuration?: {
299
- allow_tip?: boolean | undefined;
300
- tax_inclusive?: boolean | undefined;
301
- partial_payment?: {
302
- total_due?: {
303
- value: string;
304
- currency_code: string;
305
- } | undefined;
306
- enable_partial_payment?: boolean | undefined;
307
- } | undefined;
308
- has_conditional_rule?: boolean | undefined;
309
- tax_calculated_after_discount?: boolean | undefined;
310
- } | undefined;
311
- primary_recipients?: {
312
- [x: string]: unknown;
313
- billing_info?: {
314
- last_name?: string | undefined;
315
- first_name?: string | undefined;
316
- business_name?: string | undefined;
317
- email_address?: string | undefined;
318
- } | undefined;
319
- shipping_info?: Record<string, unknown> | undefined;
320
- }[] | undefined;
321
- additional_recipients?: string[] | undefined;
322
- } | undefined;
323
- unit_of_measure?: "QUANTITY" | "HOURS" | "AMOUNT" | undefined;
324
- default_template?: boolean | undefined;
325
- standard_template?: boolean | undefined;
326
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
222
+ declare const paypalCreateTemplate: AppAction<typeof PaypalCreateTemplateInput, typeof PaypalCreateTemplateOutput, typeof paypal.credential>;
327
223
  //#endregion
328
224
  export { paypalCreateTemplate };
329
225
  //# sourceMappingURL=create-template.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0MzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0MzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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-template.d.ts
@@ -217,113 +219,7 @@ declare const PaypalCreateTemplateOutput: z.ZodObject<{
217
219
  default_template: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
218
220
  standard_template: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
219
221
  }, z.core.$loose>;
220
- declare const paypalCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
221
- name: string;
222
- settings?: {
223
- [x: string]: unknown;
224
- template_item_settings?: {
225
- [x: string]: unknown;
226
- name?: string | undefined;
227
- value?: string | undefined;
228
- }[] | undefined;
229
- template_subtotal_settings?: {
230
- [x: string]: unknown;
231
- name?: string | undefined;
232
- value?: string | undefined;
233
- }[] | undefined;
234
- }[] | undefined;
235
- template_info?: {
236
- items?: {
237
- [x: string]: unknown;
238
- name?: string | undefined;
239
- quantity?: string | undefined;
240
- description?: string | undefined;
241
- unit_amount?: {
242
- value: string;
243
- currency_code: string;
244
- } | undefined;
245
- }[] | undefined;
246
- amount?: {
247
- value?: string | undefined;
248
- breakdown?: {
249
- custom?: Record<string, unknown> | undefined;
250
- discount?: Record<string, unknown> | undefined;
251
- shipping?: {
252
- value: string;
253
- currency_code: string;
254
- } | undefined;
255
- tax_total?: {
256
- value: string;
257
- currency_code: string;
258
- } | undefined;
259
- item_total?: {
260
- value: string;
261
- currency_code: string;
262
- } | undefined;
263
- } | undefined;
264
- currency_code?: string | undefined;
265
- } | undefined;
266
- detail?: {
267
- currency_code: string;
268
- memo?: string | undefined;
269
- note?: string | undefined;
270
- metadata?: {
271
- create_user?: string | undefined;
272
- modify_user?: string | undefined;
273
- } | undefined;
274
- reference?: string | undefined;
275
- attachments?: Record<string, unknown>[] | undefined;
276
- payment_term?: {
277
- due_type?: string | undefined;
278
- interval_days?: number | undefined;
279
- } | undefined;
280
- terms_and_conditions?: string | undefined;
281
- } | undefined;
282
- invoicer?: {
283
- phones?: {
284
- [x: string]: unknown;
285
- country_code?: string | undefined;
286
- national_number?: string | undefined;
287
- }[] | undefined;
288
- tax_id?: string | undefined;
289
- website?: string | undefined;
290
- logo_url?: string | undefined;
291
- email_address?: string | undefined;
292
- additional_notes?: string | undefined;
293
- } | undefined;
294
- due_amount?: {
295
- value: string;
296
- currency_code: string;
297
- } | undefined;
298
- configuration?: {
299
- allow_tip?: boolean | undefined;
300
- tax_inclusive?: boolean | undefined;
301
- partial_payment?: {
302
- total_due?: {
303
- value: string;
304
- currency_code: string;
305
- } | undefined;
306
- enable_partial_payment?: boolean | undefined;
307
- } | undefined;
308
- has_conditional_rule?: boolean | undefined;
309
- tax_calculated_after_discount?: boolean | undefined;
310
- } | undefined;
311
- primary_recipients?: {
312
- [x: string]: unknown;
313
- billing_info?: {
314
- last_name?: string | undefined;
315
- first_name?: string | undefined;
316
- business_name?: string | undefined;
317
- email_address?: string | undefined;
318
- } | undefined;
319
- shipping_info?: Record<string, unknown> | undefined;
320
- }[] | undefined;
321
- additional_recipients?: string[] | undefined;
322
- } | undefined;
323
- unit_of_measure?: "QUANTITY" | "HOURS" | "AMOUNT" | undefined;
324
- default_template?: boolean | undefined;
325
- standard_template?: boolean | undefined;
326
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
222
+ declare const paypalCreateTemplate: AppAction<typeof PaypalCreateTemplateInput, typeof PaypalCreateTemplateOutput, typeof paypal.credential>;
327
223
  //#endregion
328
224
  export { paypalCreateTemplate };
329
225
  //# sourceMappingURL=create-template.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0MzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0MzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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-template.ts