@keystrokehq/paypal 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (658) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/activate-plan.cjs +19 -0
  7. package/dist/actions/activate-plan.cjs.map +1 -0
  8. package/dist/actions/activate-plan.d.cts +9 -0
  9. package/dist/actions/activate-plan.d.cts.map +1 -0
  10. package/dist/actions/activate-plan.d.mts +9 -0
  11. package/dist/actions/activate-plan.d.mts.map +1 -0
  12. package/dist/actions/activate-plan.mjs +16 -0
  13. package/dist/actions/activate-plan.mjs.map +1 -0
  14. package/dist/actions/add-batch-trackers.cjs +62 -0
  15. package/dist/actions/add-batch-trackers.cjs.map +1 -0
  16. package/dist/actions/add-batch-trackers.d.cts +9 -0
  17. package/dist/actions/add-batch-trackers.d.cts.map +1 -0
  18. package/dist/actions/add-batch-trackers.d.mts +9 -0
  19. package/dist/actions/add-batch-trackers.d.mts.map +1 -0
  20. package/dist/actions/add-batch-trackers.mjs +61 -0
  21. package/dist/actions/add-batch-trackers.mjs.map +1 -0
  22. package/dist/actions/authorize-order.cjs +101 -0
  23. package/dist/actions/authorize-order.cjs.map +1 -0
  24. package/dist/actions/authorize-order.d.cts +9 -0
  25. package/dist/actions/authorize-order.d.cts.map +1 -0
  26. package/dist/actions/authorize-order.d.mts +9 -0
  27. package/dist/actions/authorize-order.d.mts.map +1 -0
  28. package/dist/actions/authorize-order.mjs +100 -0
  29. package/dist/actions/authorize-order.mjs.map +1 -0
  30. package/dist/actions/cancel-invoice.cjs +44 -0
  31. package/dist/actions/cancel-invoice.cjs.map +1 -0
  32. package/dist/actions/cancel-invoice.d.cts +9 -0
  33. package/dist/actions/cancel-invoice.d.cts.map +1 -0
  34. package/dist/actions/cancel-invoice.d.mts +9 -0
  35. package/dist/actions/cancel-invoice.d.mts.map +1 -0
  36. package/dist/actions/cancel-invoice.mjs +43 -0
  37. package/dist/actions/cancel-invoice.mjs.map +1 -0
  38. package/dist/actions/cancel-reminders.cjs +36 -0
  39. package/dist/actions/cancel-reminders.cjs.map +1 -0
  40. package/dist/actions/cancel-reminders.d.cts +9 -0
  41. package/dist/actions/cancel-reminders.d.cts.map +1 -0
  42. package/dist/actions/cancel-reminders.d.mts +9 -0
  43. package/dist/actions/cancel-reminders.d.mts.map +1 -0
  44. package/dist/actions/cancel-reminders.mjs +35 -0
  45. package/dist/actions/cancel-reminders.mjs.map +1 -0
  46. package/dist/actions/capture-subscription-payment.cjs +79 -0
  47. package/dist/actions/capture-subscription-payment.cjs.map +1 -0
  48. package/dist/actions/capture-subscription-payment.d.cts +9 -0
  49. package/dist/actions/capture-subscription-payment.d.cts.map +1 -0
  50. package/dist/actions/capture-subscription-payment.d.mts +9 -0
  51. package/dist/actions/capture-subscription-payment.d.mts.map +1 -0
  52. package/dist/actions/capture-subscription-payment.mjs +78 -0
  53. package/dist/actions/capture-subscription-payment.mjs.map +1 -0
  54. package/dist/actions/charge-payment-method.cjs +58 -0
  55. package/dist/actions/charge-payment-method.cjs.map +1 -0
  56. package/dist/actions/charge-payment-method.d.cts +9 -0
  57. package/dist/actions/charge-payment-method.d.cts.map +1 -0
  58. package/dist/actions/charge-payment-method.d.mts +9 -0
  59. package/dist/actions/charge-payment-method.d.mts.map +1 -0
  60. package/dist/actions/charge-payment-method.mjs +55 -0
  61. package/dist/actions/charge-payment-method.mjs.map +1 -0
  62. package/dist/actions/create-invoice.cjs +294 -0
  63. package/dist/actions/create-invoice.cjs.map +1 -0
  64. package/dist/actions/create-invoice.d.cts +9 -0
  65. package/dist/actions/create-invoice.d.cts.map +1 -0
  66. package/dist/actions/create-invoice.d.mts +9 -0
  67. package/dist/actions/create-invoice.d.mts.map +1 -0
  68. package/dist/actions/create-invoice.mjs +293 -0
  69. package/dist/actions/create-invoice.mjs.map +1 -0
  70. package/dist/actions/create-payment.cjs +178 -0
  71. package/dist/actions/create-payment.cjs.map +1 -0
  72. package/dist/actions/create-payment.d.cts +9 -0
  73. package/dist/actions/create-payment.d.cts.map +1 -0
  74. package/dist/actions/create-payment.d.mts +9 -0
  75. package/dist/actions/create-payment.d.mts.map +1 -0
  76. package/dist/actions/create-payment.mjs +177 -0
  77. package/dist/actions/create-payment.mjs.map +1 -0
  78. package/dist/actions/create-payments-billing-plans.cjs +111 -0
  79. package/dist/actions/create-payments-billing-plans.cjs.map +1 -0
  80. package/dist/actions/create-payments-billing-plans.d.cts +9 -0
  81. package/dist/actions/create-payments-billing-plans.d.cts.map +1 -0
  82. package/dist/actions/create-payments-billing-plans.d.mts +9 -0
  83. package/dist/actions/create-payments-billing-plans.d.mts.map +1 -0
  84. package/dist/actions/create-payments-billing-plans.mjs +110 -0
  85. package/dist/actions/create-payments-billing-plans.mjs.map +1 -0
  86. package/dist/actions/create-plan.cjs +119 -0
  87. package/dist/actions/create-plan.cjs.map +1 -0
  88. package/dist/actions/create-plan.d.cts +9 -0
  89. package/dist/actions/create-plan.d.cts.map +1 -0
  90. package/dist/actions/create-plan.d.mts +9 -0
  91. package/dist/actions/create-plan.d.mts.map +1 -0
  92. package/dist/actions/create-plan.mjs +118 -0
  93. package/dist/actions/create-plan.mjs.map +1 -0
  94. package/dist/actions/create-product.cjs +190 -0
  95. package/dist/actions/create-product.cjs.map +1 -0
  96. package/dist/actions/create-product.d.cts +9 -0
  97. package/dist/actions/create-product.d.cts.map +1 -0
  98. package/dist/actions/create-product.d.mts +9 -0
  99. package/dist/actions/create-product.d.mts.map +1 -0
  100. package/dist/actions/create-product.mjs +189 -0
  101. package/dist/actions/create-product.mjs.map +1 -0
  102. package/dist/actions/create-subscription.cjs +183 -0
  103. package/dist/actions/create-subscription.cjs.map +1 -0
  104. package/dist/actions/create-subscription.d.cts +9 -0
  105. package/dist/actions/create-subscription.d.cts.map +1 -0
  106. package/dist/actions/create-subscription.d.mts +9 -0
  107. package/dist/actions/create-subscription.d.mts.map +1 -0
  108. package/dist/actions/create-subscription.mjs +182 -0
  109. package/dist/actions/create-subscription.mjs.map +1 -0
  110. package/dist/actions/create-template.cjs +234 -0
  111. package/dist/actions/create-template.cjs.map +1 -0
  112. package/dist/actions/create-template.d.cts +9 -0
  113. package/dist/actions/create-template.d.cts.map +1 -0
  114. package/dist/actions/create-template.d.mts +9 -0
  115. package/dist/actions/create-template.d.mts.map +1 -0
  116. package/dist/actions/create-template.mjs +233 -0
  117. package/dist/actions/create-template.mjs.map +1 -0
  118. package/dist/actions/create-web-profile.cjs +66 -0
  119. package/dist/actions/create-web-profile.cjs.map +1 -0
  120. package/dist/actions/create-web-profile.d.cts +9 -0
  121. package/dist/actions/create-web-profile.d.cts.map +1 -0
  122. package/dist/actions/create-web-profile.d.mts +9 -0
  123. package/dist/actions/create-web-profile.d.mts.map +1 -0
  124. package/dist/actions/create-web-profile.mjs +65 -0
  125. package/dist/actions/create-web-profile.mjs.map +1 -0
  126. package/dist/actions/create-webhook-lookup.cjs +25 -0
  127. package/dist/actions/create-webhook-lookup.cjs.map +1 -0
  128. package/dist/actions/create-webhook-lookup.d.cts +9 -0
  129. package/dist/actions/create-webhook-lookup.d.cts.map +1 -0
  130. package/dist/actions/create-webhook-lookup.d.mts +9 -0
  131. package/dist/actions/create-webhook-lookup.d.mts.map +1 -0
  132. package/dist/actions/create-webhook-lookup.mjs +24 -0
  133. package/dist/actions/create-webhook-lookup.mjs.map +1 -0
  134. package/dist/actions/create-webhook.cjs +39 -0
  135. package/dist/actions/create-webhook.cjs.map +1 -0
  136. package/dist/actions/create-webhook.d.cts +9 -0
  137. package/dist/actions/create-webhook.d.cts.map +1 -0
  138. package/dist/actions/create-webhook.d.mts +9 -0
  139. package/dist/actions/create-webhook.d.mts.map +1 -0
  140. package/dist/actions/create-webhook.mjs +38 -0
  141. package/dist/actions/create-webhook.mjs.map +1 -0
  142. package/dist/actions/deactivate-plan.cjs +19 -0
  143. package/dist/actions/deactivate-plan.cjs.map +1 -0
  144. package/dist/actions/deactivate-plan.d.cts +9 -0
  145. package/dist/actions/deactivate-plan.d.cts.map +1 -0
  146. package/dist/actions/deactivate-plan.d.mts +9 -0
  147. package/dist/actions/deactivate-plan.d.mts.map +1 -0
  148. package/dist/actions/deactivate-plan.mjs +16 -0
  149. package/dist/actions/deactivate-plan.mjs.map +1 -0
  150. package/dist/actions/delete-external-payment.cjs +23 -0
  151. package/dist/actions/delete-external-payment.cjs.map +1 -0
  152. package/dist/actions/delete-external-payment.d.cts +9 -0
  153. package/dist/actions/delete-external-payment.d.cts.map +1 -0
  154. package/dist/actions/delete-external-payment.d.mts +9 -0
  155. package/dist/actions/delete-external-payment.d.mts.map +1 -0
  156. package/dist/actions/delete-external-payment.mjs +20 -0
  157. package/dist/actions/delete-external-payment.mjs.map +1 -0
  158. package/dist/actions/delete-invoice-payment-record.cjs +23 -0
  159. package/dist/actions/delete-invoice-payment-record.cjs.map +1 -0
  160. package/dist/actions/delete-invoice-payment-record.d.cts +9 -0
  161. package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -0
  162. package/dist/actions/delete-invoice-payment-record.d.mts +9 -0
  163. package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -0
  164. package/dist/actions/delete-invoice-payment-record.mjs +20 -0
  165. package/dist/actions/delete-invoice-payment-record.mjs.map +1 -0
  166. package/dist/actions/delete-invoice-refund-record.cjs +22 -0
  167. package/dist/actions/delete-invoice-refund-record.cjs.map +1 -0
  168. package/dist/actions/delete-invoice-refund-record.d.cts +9 -0
  169. package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -0
  170. package/dist/actions/delete-invoice-refund-record.d.mts +9 -0
  171. package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -0
  172. package/dist/actions/delete-invoice-refund-record.mjs +19 -0
  173. package/dist/actions/delete-invoice-refund-record.mjs.map +1 -0
  174. package/dist/actions/delete-invoice.cjs +36 -0
  175. package/dist/actions/delete-invoice.cjs.map +1 -0
  176. package/dist/actions/delete-invoice.d.cts +9 -0
  177. package/dist/actions/delete-invoice.d.cts.map +1 -0
  178. package/dist/actions/delete-invoice.d.mts +9 -0
  179. package/dist/actions/delete-invoice.d.mts.map +1 -0
  180. package/dist/actions/delete-invoice.mjs +35 -0
  181. package/dist/actions/delete-invoice.mjs.map +1 -0
  182. package/dist/actions/delete-payment-resource.cjs +19 -0
  183. package/dist/actions/delete-payment-resource.cjs.map +1 -0
  184. package/dist/actions/delete-payment-resource.d.cts +9 -0
  185. package/dist/actions/delete-payment-resource.d.cts.map +1 -0
  186. package/dist/actions/delete-payment-resource.d.mts +9 -0
  187. package/dist/actions/delete-payment-resource.d.mts.map +1 -0
  188. package/dist/actions/delete-payment-resource.mjs +16 -0
  189. package/dist/actions/delete-payment-resource.mjs.map +1 -0
  190. package/dist/actions/delete-template.cjs +36 -0
  191. package/dist/actions/delete-template.cjs.map +1 -0
  192. package/dist/actions/delete-template.d.cts +9 -0
  193. package/dist/actions/delete-template.d.cts.map +1 -0
  194. package/dist/actions/delete-template.d.mts +9 -0
  195. package/dist/actions/delete-template.d.mts.map +1 -0
  196. package/dist/actions/delete-template.mjs +35 -0
  197. package/dist/actions/delete-template.mjs.map +1 -0
  198. package/dist/actions/delete-web-profile.cjs +19 -0
  199. package/dist/actions/delete-web-profile.cjs.map +1 -0
  200. package/dist/actions/delete-web-profile.d.cts +9 -0
  201. package/dist/actions/delete-web-profile.d.cts.map +1 -0
  202. package/dist/actions/delete-web-profile.d.mts +9 -0
  203. package/dist/actions/delete-web-profile.d.mts.map +1 -0
  204. package/dist/actions/delete-web-profile.mjs +16 -0
  205. package/dist/actions/delete-web-profile.mjs.map +1 -0
  206. package/dist/actions/delete-webhook.cjs +35 -0
  207. package/dist/actions/delete-webhook.cjs.map +1 -0
  208. package/dist/actions/delete-webhook.d.cts +9 -0
  209. package/dist/actions/delete-webhook.d.cts.map +1 -0
  210. package/dist/actions/delete-webhook.d.mts +9 -0
  211. package/dist/actions/delete-webhook.d.mts.map +1 -0
  212. package/dist/actions/delete-webhook.mjs +34 -0
  213. package/dist/actions/delete-webhook.mjs.map +1 -0
  214. package/dist/actions/fetch-node.cjs +30 -0
  215. package/dist/actions/fetch-node.cjs.map +1 -0
  216. package/dist/actions/fetch-node.d.cts +9 -0
  217. package/dist/actions/fetch-node.d.cts.map +1 -0
  218. package/dist/actions/fetch-node.d.mts +9 -0
  219. package/dist/actions/fetch-node.d.mts.map +1 -0
  220. package/dist/actions/fetch-node.mjs +29 -0
  221. package/dist/actions/fetch-node.mjs.map +1 -0
  222. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +21 -0
  223. package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -0
  224. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +9 -0
  225. package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -0
  226. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +9 -0
  227. package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -0
  228. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +20 -0
  229. package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -0
  230. package/dist/actions/find-eligible-methods.cjs +87 -0
  231. package/dist/actions/find-eligible-methods.cjs.map +1 -0
  232. package/dist/actions/find-eligible-methods.d.cts +9 -0
  233. package/dist/actions/find-eligible-methods.d.cts.map +1 -0
  234. package/dist/actions/find-eligible-methods.d.mts +9 -0
  235. package/dist/actions/find-eligible-methods.d.mts.map +1 -0
  236. package/dist/actions/find-eligible-methods.mjs +86 -0
  237. package/dist/actions/find-eligible-methods.mjs.map +1 -0
  238. package/dist/actions/generate-client-token.cjs +20 -0
  239. package/dist/actions/generate-client-token.cjs.map +1 -0
  240. package/dist/actions/generate-client-token.d.cts +9 -0
  241. package/dist/actions/generate-client-token.d.cts.map +1 -0
  242. package/dist/actions/generate-client-token.d.mts +9 -0
  243. package/dist/actions/generate-client-token.d.mts.map +1 -0
  244. package/dist/actions/generate-client-token.mjs +17 -0
  245. package/dist/actions/generate-client-token.mjs.map +1 -0
  246. package/dist/actions/generate-next-invoice-number-v2.cjs +19 -0
  247. package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -0
  248. package/dist/actions/generate-next-invoice-number-v2.d.cts +9 -0
  249. package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -0
  250. package/dist/actions/generate-next-invoice-number-v2.d.mts +9 -0
  251. package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -0
  252. package/dist/actions/generate-next-invoice-number-v2.mjs +16 -0
  253. package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -0
  254. package/dist/actions/generate-next-invoice-number.cjs +16 -0
  255. package/dist/actions/generate-next-invoice-number.cjs.map +1 -0
  256. package/dist/actions/generate-next-invoice-number.d.cts +9 -0
  257. package/dist/actions/generate-next-invoice-number.d.cts.map +1 -0
  258. package/dist/actions/generate-next-invoice-number.d.mts +9 -0
  259. package/dist/actions/generate-next-invoice-number.d.mts.map +1 -0
  260. package/dist/actions/generate-next-invoice-number.mjs +13 -0
  261. package/dist/actions/generate-next-invoice-number.mjs.map +1 -0
  262. package/dist/actions/generate-qr-code.cjs +46 -0
  263. package/dist/actions/generate-qr-code.cjs.map +1 -0
  264. package/dist/actions/generate-qr-code.d.cts +9 -0
  265. package/dist/actions/generate-qr-code.d.cts.map +1 -0
  266. package/dist/actions/generate-qr-code.d.mts +9 -0
  267. package/dist/actions/generate-qr-code.d.mts.map +1 -0
  268. package/dist/actions/generate-qr-code.mjs +45 -0
  269. package/dist/actions/generate-qr-code.mjs.map +1 -0
  270. package/dist/actions/get-billing-subscriptions.cjs +98 -0
  271. package/dist/actions/get-billing-subscriptions.cjs.map +1 -0
  272. package/dist/actions/get-billing-subscriptions.d.cts +9 -0
  273. package/dist/actions/get-billing-subscriptions.d.cts.map +1 -0
  274. package/dist/actions/get-billing-subscriptions.d.mts +9 -0
  275. package/dist/actions/get-billing-subscriptions.d.mts.map +1 -0
  276. package/dist/actions/get-billing-subscriptions.mjs +97 -0
  277. package/dist/actions/get-billing-subscriptions.mjs.map +1 -0
  278. package/dist/actions/get-invoice.cjs +159 -0
  279. package/dist/actions/get-invoice.cjs.map +1 -0
  280. package/dist/actions/get-invoice.d.cts +9 -0
  281. package/dist/actions/get-invoice.d.cts.map +1 -0
  282. package/dist/actions/get-invoice.d.mts +9 -0
  283. package/dist/actions/get-invoice.d.mts.map +1 -0
  284. package/dist/actions/get-invoice.mjs +158 -0
  285. package/dist/actions/get-invoice.mjs.map +1 -0
  286. package/dist/actions/get-invoicing-invoices-qr-code.cjs +29 -0
  287. package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -0
  288. package/dist/actions/get-invoicing-invoices-qr-code.d.cts +9 -0
  289. package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -0
  290. package/dist/actions/get-invoicing-invoices-qr-code.d.mts +9 -0
  291. package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -0
  292. package/dist/actions/get-invoicing-invoices-qr-code.mjs +28 -0
  293. package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -0
  294. package/dist/actions/get-invoicing-template.cjs +136 -0
  295. package/dist/actions/get-invoicing-template.cjs.map +1 -0
  296. package/dist/actions/get-invoicing-template.d.cts +9 -0
  297. package/dist/actions/get-invoicing-template.d.cts.map +1 -0
  298. package/dist/actions/get-invoicing-template.d.mts +9 -0
  299. package/dist/actions/get-invoicing-template.d.mts.map +1 -0
  300. package/dist/actions/get-invoicing-template.mjs +135 -0
  301. package/dist/actions/get-invoicing-template.mjs.map +1 -0
  302. package/dist/actions/get-order.cjs +112 -0
  303. package/dist/actions/get-order.cjs.map +1 -0
  304. package/dist/actions/get-order.d.cts +9 -0
  305. package/dist/actions/get-order.d.cts.map +1 -0
  306. package/dist/actions/get-order.d.mts +9 -0
  307. package/dist/actions/get-order.d.mts.map +1 -0
  308. package/dist/actions/get-order.mjs +111 -0
  309. package/dist/actions/get-order.mjs.map +1 -0
  310. package/dist/actions/get-payment.cjs +98 -0
  311. package/dist/actions/get-payment.cjs.map +1 -0
  312. package/dist/actions/get-payment.d.cts +9 -0
  313. package/dist/actions/get-payment.d.cts.map +1 -0
  314. package/dist/actions/get-payment.d.mts +9 -0
  315. package/dist/actions/get-payment.d.mts.map +1 -0
  316. package/dist/actions/get-payment.mjs +97 -0
  317. package/dist/actions/get-payment.mjs.map +1 -0
  318. package/dist/actions/get-payments-refund.cjs +37 -0
  319. package/dist/actions/get-payments-refund.cjs.map +1 -0
  320. package/dist/actions/get-payments-refund.d.cts +9 -0
  321. package/dist/actions/get-payments-refund.d.cts.map +1 -0
  322. package/dist/actions/get-payments-refund.d.mts +9 -0
  323. package/dist/actions/get-payments-refund.d.mts.map +1 -0
  324. package/dist/actions/get-payments-refund.mjs +36 -0
  325. package/dist/actions/get-payments-refund.mjs.map +1 -0
  326. package/dist/actions/get-plan.cjs +69 -0
  327. package/dist/actions/get-plan.cjs.map +1 -0
  328. package/dist/actions/get-plan.d.cts +9 -0
  329. package/dist/actions/get-plan.d.cts.map +1 -0
  330. package/dist/actions/get-plan.d.mts +9 -0
  331. package/dist/actions/get-plan.d.mts.map +1 -0
  332. package/dist/actions/get-plan.mjs +68 -0
  333. package/dist/actions/get-plan.mjs.map +1 -0
  334. package/dist/actions/get-product.cjs +32 -0
  335. package/dist/actions/get-product.cjs.map +1 -0
  336. package/dist/actions/get-product.d.cts +9 -0
  337. package/dist/actions/get-product.d.cts.map +1 -0
  338. package/dist/actions/get-product.d.mts +9 -0
  339. package/dist/actions/get-product.d.mts.map +1 -0
  340. package/dist/actions/get-product.mjs +31 -0
  341. package/dist/actions/get-product.mjs.map +1 -0
  342. package/dist/actions/get-subscription.cjs +88 -0
  343. package/dist/actions/get-subscription.cjs.map +1 -0
  344. package/dist/actions/get-subscription.d.cts +9 -0
  345. package/dist/actions/get-subscription.d.cts.map +1 -0
  346. package/dist/actions/get-subscription.d.mts +9 -0
  347. package/dist/actions/get-subscription.d.mts.map +1 -0
  348. package/dist/actions/get-subscription.mjs +87 -0
  349. package/dist/actions/get-subscription.mjs.map +1 -0
  350. package/dist/actions/get-user-info.cjs +43 -0
  351. package/dist/actions/get-user-info.cjs.map +1 -0
  352. package/dist/actions/get-user-info.d.cts +9 -0
  353. package/dist/actions/get-user-info.d.cts.map +1 -0
  354. package/dist/actions/get-user-info.d.mts +9 -0
  355. package/dist/actions/get-user-info.d.mts.map +1 -0
  356. package/dist/actions/get-user-info.mjs +42 -0
  357. package/dist/actions/get-user-info.mjs.map +1 -0
  358. package/dist/actions/get-userinfo.cjs +55 -0
  359. package/dist/actions/get-userinfo.cjs.map +1 -0
  360. package/dist/actions/get-userinfo.d.cts +9 -0
  361. package/dist/actions/get-userinfo.d.cts.map +1 -0
  362. package/dist/actions/get-userinfo.d.mts +9 -0
  363. package/dist/actions/get-userinfo.d.mts.map +1 -0
  364. package/dist/actions/get-userinfo.mjs +54 -0
  365. package/dist/actions/get-userinfo.mjs.map +1 -0
  366. package/dist/actions/get-web-profile.cjs +38 -0
  367. package/dist/actions/get-web-profile.cjs.map +1 -0
  368. package/dist/actions/get-web-profile.d.cts +9 -0
  369. package/dist/actions/get-web-profile.d.cts.map +1 -0
  370. package/dist/actions/get-web-profile.d.mts +9 -0
  371. package/dist/actions/get-web-profile.d.mts.map +1 -0
  372. package/dist/actions/get-web-profile.mjs +37 -0
  373. package/dist/actions/get-web-profile.mjs.map +1 -0
  374. package/dist/actions/get-webhook-lookup.cjs +25 -0
  375. package/dist/actions/get-webhook-lookup.cjs.map +1 -0
  376. package/dist/actions/get-webhook-lookup.d.cts +9 -0
  377. package/dist/actions/get-webhook-lookup.d.cts.map +1 -0
  378. package/dist/actions/get-webhook-lookup.d.mts +9 -0
  379. package/dist/actions/get-webhook-lookup.d.mts.map +1 -0
  380. package/dist/actions/get-webhook-lookup.mjs +24 -0
  381. package/dist/actions/get-webhook-lookup.mjs.map +1 -0
  382. package/dist/actions/get-webhook.cjs +33 -0
  383. package/dist/actions/get-webhook.cjs.map +1 -0
  384. package/dist/actions/get-webhook.d.cts +9 -0
  385. package/dist/actions/get-webhook.d.cts.map +1 -0
  386. package/dist/actions/get-webhook.d.mts +9 -0
  387. package/dist/actions/get-webhook.d.mts.map +1 -0
  388. package/dist/actions/get-webhook.mjs +32 -0
  389. package/dist/actions/get-webhook.mjs.map +1 -0
  390. package/dist/actions/index.cjs +157 -0
  391. package/dist/actions/index.d.cts +79 -0
  392. package/dist/actions/index.d.mts +79 -0
  393. package/dist/actions/index.mjs +79 -0
  394. package/dist/actions/list-disputes.cjs +62 -0
  395. package/dist/actions/list-disputes.cjs.map +1 -0
  396. package/dist/actions/list-disputes.d.cts +9 -0
  397. package/dist/actions/list-disputes.d.cts.map +1 -0
  398. package/dist/actions/list-disputes.d.mts +9 -0
  399. package/dist/actions/list-disputes.d.mts.map +1 -0
  400. package/dist/actions/list-disputes.mjs +61 -0
  401. package/dist/actions/list-disputes.mjs.map +1 -0
  402. package/dist/actions/list-invoices.cjs +81 -0
  403. package/dist/actions/list-invoices.cjs.map +1 -0
  404. package/dist/actions/list-invoices.d.cts +9 -0
  405. package/dist/actions/list-invoices.d.cts.map +1 -0
  406. package/dist/actions/list-invoices.d.mts +9 -0
  407. package/dist/actions/list-invoices.d.mts.map +1 -0
  408. package/dist/actions/list-invoices.mjs +80 -0
  409. package/dist/actions/list-invoices.mjs.map +1 -0
  410. package/dist/actions/list-legacy-billing-plans.cjs +87 -0
  411. package/dist/actions/list-legacy-billing-plans.cjs.map +1 -0
  412. package/dist/actions/list-legacy-billing-plans.d.cts +9 -0
  413. package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -0
  414. package/dist/actions/list-legacy-billing-plans.d.mts +9 -0
  415. package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -0
  416. package/dist/actions/list-legacy-billing-plans.mjs +86 -0
  417. package/dist/actions/list-legacy-billing-plans.mjs.map +1 -0
  418. package/dist/actions/list-payments.cjs +112 -0
  419. package/dist/actions/list-payments.cjs.map +1 -0
  420. package/dist/actions/list-payments.d.cts +9 -0
  421. package/dist/actions/list-payments.d.cts.map +1 -0
  422. package/dist/actions/list-payments.d.mts +9 -0
  423. package/dist/actions/list-payments.d.mts.map +1 -0
  424. package/dist/actions/list-payments.mjs +111 -0
  425. package/dist/actions/list-payments.mjs.map +1 -0
  426. package/dist/actions/list-plans.cjs +66 -0
  427. package/dist/actions/list-plans.cjs.map +1 -0
  428. package/dist/actions/list-plans.d.cts +9 -0
  429. package/dist/actions/list-plans.d.cts.map +1 -0
  430. package/dist/actions/list-plans.d.mts +9 -0
  431. package/dist/actions/list-plans.d.mts.map +1 -0
  432. package/dist/actions/list-plans.mjs +65 -0
  433. package/dist/actions/list-plans.mjs.map +1 -0
  434. package/dist/actions/list-products.cjs +37 -0
  435. package/dist/actions/list-products.cjs.map +1 -0
  436. package/dist/actions/list-products.d.cts +9 -0
  437. package/dist/actions/list-products.d.cts.map +1 -0
  438. package/dist/actions/list-products.d.mts +9 -0
  439. package/dist/actions/list-products.d.mts.map +1 -0
  440. package/dist/actions/list-products.mjs +36 -0
  441. package/dist/actions/list-products.mjs.map +1 -0
  442. package/dist/actions/list-templates.cjs +74 -0
  443. package/dist/actions/list-templates.cjs.map +1 -0
  444. package/dist/actions/list-templates.d.cts +9 -0
  445. package/dist/actions/list-templates.d.cts.map +1 -0
  446. package/dist/actions/list-templates.d.mts +9 -0
  447. package/dist/actions/list-templates.d.mts.map +1 -0
  448. package/dist/actions/list-templates.mjs +73 -0
  449. package/dist/actions/list-templates.mjs.map +1 -0
  450. package/dist/actions/list-web-profiles.cjs +48 -0
  451. package/dist/actions/list-web-profiles.cjs.map +1 -0
  452. package/dist/actions/list-web-profiles.d.cts +9 -0
  453. package/dist/actions/list-web-profiles.d.cts.map +1 -0
  454. package/dist/actions/list-web-profiles.d.mts +9 -0
  455. package/dist/actions/list-web-profiles.d.mts.map +1 -0
  456. package/dist/actions/list-web-profiles.mjs +47 -0
  457. package/dist/actions/list-web-profiles.mjs.map +1 -0
  458. package/dist/actions/list-webhook-event-type-subscriptions.cjs +23 -0
  459. package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -0
  460. package/dist/actions/list-webhook-event-type-subscriptions.d.cts +9 -0
  461. package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -0
  462. package/dist/actions/list-webhook-event-type-subscriptions.d.mts +9 -0
  463. package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -0
  464. package/dist/actions/list-webhook-event-type-subscriptions.mjs +22 -0
  465. package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -0
  466. package/dist/actions/list-webhook-event-types.cjs +23 -0
  467. package/dist/actions/list-webhook-event-types.cjs.map +1 -0
  468. package/dist/actions/list-webhook-event-types.d.cts +9 -0
  469. package/dist/actions/list-webhook-event-types.d.cts.map +1 -0
  470. package/dist/actions/list-webhook-event-types.d.mts +9 -0
  471. package/dist/actions/list-webhook-event-types.d.mts.map +1 -0
  472. package/dist/actions/list-webhook-event-types.mjs +22 -0
  473. package/dist/actions/list-webhook-event-types.mjs.map +1 -0
  474. package/dist/actions/list-webhook-lookups.cjs +26 -0
  475. package/dist/actions/list-webhook-lookups.cjs.map +1 -0
  476. package/dist/actions/list-webhook-lookups.d.cts +9 -0
  477. package/dist/actions/list-webhook-lookups.d.cts.map +1 -0
  478. package/dist/actions/list-webhook-lookups.d.mts +9 -0
  479. package/dist/actions/list-webhook-lookups.d.mts.map +1 -0
  480. package/dist/actions/list-webhook-lookups.mjs +25 -0
  481. package/dist/actions/list-webhook-lookups.mjs.map +1 -0
  482. package/dist/actions/list-webhooks.cjs +31 -0
  483. package/dist/actions/list-webhooks.cjs.map +1 -0
  484. package/dist/actions/list-webhooks.d.cts +9 -0
  485. package/dist/actions/list-webhooks.d.cts.map +1 -0
  486. package/dist/actions/list-webhooks.d.mts +9 -0
  487. package/dist/actions/list-webhooks.d.mts.map +1 -0
  488. package/dist/actions/list-webhooks.mjs +30 -0
  489. package/dist/actions/list-webhooks.mjs.map +1 -0
  490. package/dist/actions/patch-orders.cjs +43 -0
  491. package/dist/actions/patch-orders.cjs.map +1 -0
  492. package/dist/actions/patch-orders.d.cts +9 -0
  493. package/dist/actions/patch-orders.d.cts.map +1 -0
  494. package/dist/actions/patch-orders.d.mts +9 -0
  495. package/dist/actions/patch-orders.d.mts.map +1 -0
  496. package/dist/actions/patch-orders.mjs +40 -0
  497. package/dist/actions/patch-orders.mjs.map +1 -0
  498. package/dist/actions/patch-plan.cjs +34 -0
  499. package/dist/actions/patch-plan.cjs.map +1 -0
  500. package/dist/actions/patch-plan.d.cts +9 -0
  501. package/dist/actions/patch-plan.d.cts.map +1 -0
  502. package/dist/actions/patch-plan.d.mts +9 -0
  503. package/dist/actions/patch-plan.d.mts.map +1 -0
  504. package/dist/actions/patch-plan.mjs +31 -0
  505. package/dist/actions/patch-plan.mjs.map +1 -0
  506. package/dist/actions/patch-subscription.cjs +49 -0
  507. package/dist/actions/patch-subscription.cjs.map +1 -0
  508. package/dist/actions/patch-subscription.d.cts +9 -0
  509. package/dist/actions/patch-subscription.d.cts.map +1 -0
  510. package/dist/actions/patch-subscription.d.mts +9 -0
  511. package/dist/actions/patch-subscription.d.mts.map +1 -0
  512. package/dist/actions/patch-subscription.mjs +48 -0
  513. package/dist/actions/patch-subscription.mjs.map +1 -0
  514. package/dist/actions/patch-web-profile.cjs +41 -0
  515. package/dist/actions/patch-web-profile.cjs.map +1 -0
  516. package/dist/actions/patch-web-profile.d.cts +9 -0
  517. package/dist/actions/patch-web-profile.d.cts.map +1 -0
  518. package/dist/actions/patch-web-profile.d.mts +9 -0
  519. package/dist/actions/patch-web-profile.d.mts.map +1 -0
  520. package/dist/actions/patch-web-profile.mjs +38 -0
  521. package/dist/actions/patch-web-profile.mjs.map +1 -0
  522. package/dist/actions/ping-braintree.cjs +19 -0
  523. package/dist/actions/ping-braintree.cjs.map +1 -0
  524. package/dist/actions/ping-braintree.d.cts +9 -0
  525. package/dist/actions/ping-braintree.d.cts.map +1 -0
  526. package/dist/actions/ping-braintree.d.mts +9 -0
  527. package/dist/actions/ping-braintree.d.mts.map +1 -0
  528. package/dist/actions/ping-braintree.mjs +16 -0
  529. package/dist/actions/ping-braintree.mjs.map +1 -0
  530. package/dist/actions/query-braintree-report.cjs +39 -0
  531. package/dist/actions/query-braintree-report.cjs.map +1 -0
  532. package/dist/actions/query-braintree-report.d.cts +9 -0
  533. package/dist/actions/query-braintree-report.d.cts.map +1 -0
  534. package/dist/actions/query-braintree-report.d.mts +9 -0
  535. package/dist/actions/query-braintree-report.d.mts.map +1 -0
  536. package/dist/actions/query-braintree-report.mjs +38 -0
  537. package/dist/actions/query-braintree-report.mjs.map +1 -0
  538. package/dist/actions/retrieve-payment-resource.cjs +72 -0
  539. package/dist/actions/retrieve-payment-resource.cjs.map +1 -0
  540. package/dist/actions/retrieve-payment-resource.d.cts +9 -0
  541. package/dist/actions/retrieve-payment-resource.d.cts.map +1 -0
  542. package/dist/actions/retrieve-payment-resource.d.mts +9 -0
  543. package/dist/actions/retrieve-payment-resource.d.mts.map +1 -0
  544. package/dist/actions/retrieve-payment-resource.mjs +71 -0
  545. package/dist/actions/retrieve-payment-resource.mjs.map +1 -0
  546. package/dist/actions/search-invoices.cjs +120 -0
  547. package/dist/actions/search-invoices.cjs.map +1 -0
  548. package/dist/actions/search-invoices.d.cts +9 -0
  549. package/dist/actions/search-invoices.d.cts.map +1 -0
  550. package/dist/actions/search-invoices.d.mts +9 -0
  551. package/dist/actions/search-invoices.d.mts.map +1 -0
  552. package/dist/actions/search-invoices.mjs +119 -0
  553. package/dist/actions/search-invoices.mjs.map +1 -0
  554. package/dist/actions/send-invoice.cjs +37 -0
  555. package/dist/actions/send-invoice.cjs.map +1 -0
  556. package/dist/actions/send-invoice.d.cts +9 -0
  557. package/dist/actions/send-invoice.d.cts.map +1 -0
  558. package/dist/actions/send-invoice.d.mts +9 -0
  559. package/dist/actions/send-invoice.d.mts.map +1 -0
  560. package/dist/actions/send-invoice.mjs +36 -0
  561. package/dist/actions/send-invoice.mjs.map +1 -0
  562. package/dist/actions/simulate-webhook-event.cjs +52 -0
  563. package/dist/actions/simulate-webhook-event.cjs.map +1 -0
  564. package/dist/actions/simulate-webhook-event.d.cts +9 -0
  565. package/dist/actions/simulate-webhook-event.d.cts.map +1 -0
  566. package/dist/actions/simulate-webhook-event.d.mts +9 -0
  567. package/dist/actions/simulate-webhook-event.d.mts.map +1 -0
  568. package/dist/actions/simulate-webhook-event.mjs +51 -0
  569. package/dist/actions/simulate-webhook-event.mjs.map +1 -0
  570. package/dist/actions/update-dispute.cjs +45 -0
  571. package/dist/actions/update-dispute.cjs.map +1 -0
  572. package/dist/actions/update-dispute.d.cts +9 -0
  573. package/dist/actions/update-dispute.d.cts.map +1 -0
  574. package/dist/actions/update-dispute.d.mts +9 -0
  575. package/dist/actions/update-dispute.d.mts.map +1 -0
  576. package/dist/actions/update-dispute.mjs +44 -0
  577. package/dist/actions/update-dispute.mjs.map +1 -0
  578. package/dist/actions/update-invoice.cjs +367 -0
  579. package/dist/actions/update-invoice.cjs.map +1 -0
  580. package/dist/actions/update-invoice.d.cts +9 -0
  581. package/dist/actions/update-invoice.d.cts.map +1 -0
  582. package/dist/actions/update-invoice.d.mts +9 -0
  583. package/dist/actions/update-invoice.d.mts.map +1 -0
  584. package/dist/actions/update-invoice.mjs +366 -0
  585. package/dist/actions/update-invoice.mjs.map +1 -0
  586. package/dist/actions/update-pay-pal-product.cjs +41 -0
  587. package/dist/actions/update-pay-pal-product.cjs.map +1 -0
  588. package/dist/actions/update-pay-pal-product.d.cts +9 -0
  589. package/dist/actions/update-pay-pal-product.d.cts.map +1 -0
  590. package/dist/actions/update-pay-pal-product.d.mts +9 -0
  591. package/dist/actions/update-pay-pal-product.d.mts.map +1 -0
  592. package/dist/actions/update-pay-pal-product.mjs +38 -0
  593. package/dist/actions/update-pay-pal-product.mjs.map +1 -0
  594. package/dist/actions/update-pay-pal-webhook.cjs +54 -0
  595. package/dist/actions/update-pay-pal-webhook.cjs.map +1 -0
  596. package/dist/actions/update-pay-pal-webhook.d.cts +9 -0
  597. package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -0
  598. package/dist/actions/update-pay-pal-webhook.d.mts +9 -0
  599. package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -0
  600. package/dist/actions/update-pay-pal-webhook.mjs +53 -0
  601. package/dist/actions/update-pay-pal-webhook.mjs.map +1 -0
  602. package/dist/actions/update-templates.cjs +403 -0
  603. package/dist/actions/update-templates.cjs.map +1 -0
  604. package/dist/actions/update-templates.d.cts +9 -0
  605. package/dist/actions/update-templates.d.cts.map +1 -0
  606. package/dist/actions/update-templates.d.mts +9 -0
  607. package/dist/actions/update-templates.d.mts.map +1 -0
  608. package/dist/actions/update-templates.mjs +402 -0
  609. package/dist/actions/update-templates.mjs.map +1 -0
  610. package/dist/actions/update-web-profile.cjs +50 -0
  611. package/dist/actions/update-web-profile.cjs.map +1 -0
  612. package/dist/actions/update-web-profile.d.cts +9 -0
  613. package/dist/actions/update-web-profile.d.cts.map +1 -0
  614. package/dist/actions/update-web-profile.d.mts +9 -0
  615. package/dist/actions/update-web-profile.d.mts.map +1 -0
  616. package/dist/actions/update-web-profile.mjs +49 -0
  617. package/dist/actions/update-web-profile.mjs.map +1 -0
  618. package/dist/actions/verify-payment-method.cjs +33 -0
  619. package/dist/actions/verify-payment-method.cjs.map +1 -0
  620. package/dist/actions/verify-payment-method.d.cts +9 -0
  621. package/dist/actions/verify-payment-method.d.cts.map +1 -0
  622. package/dist/actions/verify-payment-method.d.mts +9 -0
  623. package/dist/actions/verify-payment-method.d.mts.map +1 -0
  624. package/dist/actions/verify-payment-method.mjs +32 -0
  625. package/dist/actions/verify-payment-method.mjs.map +1 -0
  626. package/dist/actions/verify-webhook-signature.cjs +37 -0
  627. package/dist/actions/verify-webhook-signature.cjs.map +1 -0
  628. package/dist/actions/verify-webhook-signature.d.cts +9 -0
  629. package/dist/actions/verify-webhook-signature.d.cts.map +1 -0
  630. package/dist/actions/verify-webhook-signature.d.mts +9 -0
  631. package/dist/actions/verify-webhook-signature.d.mts.map +1 -0
  632. package/dist/actions/verify-webhook-signature.mjs +34 -0
  633. package/dist/actions/verify-webhook-signature.mjs.map +1 -0
  634. package/dist/app.cjs +9 -0
  635. package/dist/app.cjs.map +1 -0
  636. package/dist/app.d.cts +5 -0
  637. package/dist/app.d.cts.map +1 -0
  638. package/dist/app.d.mts +5 -0
  639. package/dist/app.d.mts.map +1 -0
  640. package/dist/app.mjs +10 -0
  641. package/dist/app.mjs.map +1 -0
  642. package/dist/catalog.cjs +15 -0
  643. package/dist/catalog.cjs.map +1 -0
  644. package/dist/catalog.d.cts +14 -0
  645. package/dist/catalog.d.cts.map +1 -0
  646. package/dist/catalog.d.mts +14 -0
  647. package/dist/catalog.d.mts.map +1 -0
  648. package/dist/catalog.mjs +15 -0
  649. package/dist/catalog.mjs.map +1 -0
  650. package/dist/execute.cjs +18 -0
  651. package/dist/execute.cjs.map +1 -0
  652. package/dist/execute.mjs +18 -0
  653. package/dist/execute.mjs.map +1 -0
  654. package/dist/index.cjs +162 -0
  655. package/dist/index.d.cts +81 -0
  656. package/dist/index.d.mts +81 -0
  657. package/dist/index.mjs +82 -0
  658. package/package.json +49 -0
@@ -0,0 +1 @@
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.ZodTypeAny = 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}).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}).describe(\"The template subtotal headers display preference.\")).describe(\"The template subtotal headers display preference.\").optional(),\n}).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}).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}).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}).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.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relationship type.\"),\n href: z.string().describe(\"The complete URL to the related resource.\"),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalCreateTemplate_TemplateItemSettingSchema: z.ZodTypeAny = 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}).describe(\"The template item headers display preference.\");\nconst PaypalCreateTemplate_TemplateSubtotalSettingSchema: z.ZodTypeAny = 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}).describe(\"The template subtotal headers display preference.\");\nconst PaypalCreateTemplate_TemplateSettingsSchema: z.ZodTypeAny = 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}).describe(\"The template settings including item and subtotal display preferences.\");\nconst PaypalCreateTemplate_MoneySchema: z.ZodTypeAny = 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.\");\nconst PaypalCreateTemplate_InvoiceItemSchema: z.ZodTypeAny = 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}).describe(\"An invoice line item.\");\nconst PaypalCreateTemplate_AmountBreakdownSchema: z.ZodTypeAny = 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}).describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\");\nconst PaypalCreateTemplate_InvoiceAmountSummarySchema: z.ZodTypeAny = 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}).describe(\"The invoice amount summary including breakdown.\");\nconst PaypalCreateTemplate_TemplateMetadataSchema: z.ZodTypeAny = 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}).describe(\"The metadata for the invoice template.\");\nconst PaypalCreateTemplate_TemplatePaymentTermSchema: z.ZodTypeAny = 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}).describe(\"The payment term for the invoice.\");\nconst PaypalCreateTemplate_TemplateDetailSchema: z.ZodTypeAny = 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.\"),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").nullable().optional(),\n}).describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\");\nconst PaypalCreateTemplate_PhoneNumberSchema: z.ZodTypeAny = 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}).describe(\"A phone number with country code and other details.\");\nconst PaypalCreateTemplate_InvoicerInfoSchema: z.ZodTypeAny = 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}).describe(\"The invoicer business information that appears on the invoice.\");\nconst PaypalCreateTemplate_PartialPaymentSchema: z.ZodTypeAny = z.object({\n total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").nullable().optional(),\n}).describe(\"The partial payment configuration.\");\nconst PaypalCreateTemplate_TemplateConfigurationSchema: z.ZodTypeAny = 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}).describe(\"The template configuration details including tax information, tip, and partial payment.\");\nconst PaypalCreateTemplate_BillingInfoSchema: z.ZodTypeAny = 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}).describe(\"The billing information for the recipient.\");\nconst PaypalCreateTemplate_RecipientInfoSchema: z.ZodTypeAny = 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}).describe(\"The billing and shipping information for the recipient.\");\nconst PaypalCreateTemplate_TemplateInfoSchema: z.ZodTypeAny = 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}).describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\");\nconst PaypalCreateTemplate_UnitOfMeasureSchema: z.ZodTypeAny = z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\");\nexport const PaypalCreateTemplateOutput: z.ZodTypeAny = 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}).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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/H,4BAA4BA,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,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,SAAS,wDAAwD;AAEpE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-template.d.ts
4
+ declare const PaypalCreateTemplateInput: z.ZodTypeAny;
5
+ declare const PaypalCreateTemplateOutput: z.ZodTypeAny;
6
+ declare const paypalCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalCreateTemplate };
9
+ //# sourceMappingURL=create-template.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAoGs1B;AAAA,cAsGn3B,0BAAA,EAA4B,CAAA,CAAE,UAS0B;AAAA,cAExD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-template.d.ts
4
+ declare const PaypalCreateTemplateInput: z.ZodTypeAny;
5
+ declare const PaypalCreateTemplateOutput: z.ZodTypeAny;
6
+ declare const paypalCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalCreateTemplate };
9
+ //# sourceMappingURL=create-template.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAoGs1B;AAAA,cAsGn3B,0BAAA,EAA4B,CAAA,CAAE,UAS0B;AAAA,cAExD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,233 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/create-template.ts
4
+ const PaypalCreateTemplateInput = z.object({
5
+ name: z.string().describe("The template name. Must be unique."),
6
+ settings: z.array(z.object({
7
+ template_item_settings: z.array(z.object({
8
+ name: z.string().describe("The name of the setting.").optional(),
9
+ value: z.string().describe("The value of the setting.").optional()
10
+ }).describe("The template item headers display preference.")).describe("The template item headers display preference.").optional(),
11
+ template_subtotal_settings: z.array(z.object({
12
+ name: z.string().describe("The name of the setting.").optional(),
13
+ value: z.string().describe("The value of the setting.").optional()
14
+ }).describe("The template subtotal headers display preference.")).describe("The template subtotal headers display preference.").optional()
15
+ }).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(),
16
+ template_info: z.object({
17
+ items: z.array(z.object({
18
+ name: z.string().describe("The item name.").optional(),
19
+ quantity: z.string().describe("The quantity of the item.").optional(),
20
+ description: z.string().describe("The item description.").optional(),
21
+ unit_amount: z.object({
22
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
23
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
24
+ }).describe("The currency and amount for a financial transaction.").optional()
25
+ }).describe("An invoice line item.")).describe("An array of invoice line-item information.").optional(),
26
+ amount: z.object({
27
+ value: z.string().describe("The total amount value.").optional(),
28
+ breakdown: z.object({
29
+ custom: z.record(z.string(), z.unknown()).describe("The custom amount.").optional(),
30
+ discount: z.record(z.string(), z.unknown()).describe("The discount amount.").optional(),
31
+ shipping: z.object({
32
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
33
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
34
+ }).describe("The currency and amount for a financial transaction.").optional(),
35
+ tax_total: z.object({
36
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
37
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
38
+ }).describe("The currency and amount for a financial transaction.").optional(),
39
+ item_total: z.object({
40
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
41
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
42
+ }).describe("The currency and amount for a financial transaction.").optional()
43
+ }).describe("The breakdown of the amount including item total, tax, shipping, and discounts.").optional(),
44
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.").optional()
45
+ }).describe("The invoice amount summary including breakdown.").optional(),
46
+ detail: z.object({
47
+ memo: z.string().describe("A memo for the invoice.").optional(),
48
+ note: z.string().describe("A note to the payer.").optional(),
49
+ metadata: z.object({
50
+ create_user: z.string().describe("The user who created the template.").optional(),
51
+ modify_user: z.string().describe("The user who last modified the template.").optional()
52
+ }).describe("The metadata for the invoice template.").optional(),
53
+ reference: z.string().describe("A reference to the associated transaction.").optional(),
54
+ attachments: z.array(z.record(z.string(), z.unknown())).describe("An array of attachments.").optional(),
55
+ payment_term: z.object({
56
+ due_type: z.string().describe("The type of the due date.").optional(),
57
+ interval_days: z.number().int().describe("The number of days after invoice date.").optional()
58
+ }).describe("The payment term for the invoice.").optional(),
59
+ currency_code: z.string().describe("The three-character ISO-4217 currency code for the invoice."),
60
+ terms_and_conditions: z.string().describe("The terms of the invoice.").optional()
61
+ }).describe("The template-related details including notes, terms and conditions, memo, and attachments.").optional(),
62
+ invoicer: z.object({
63
+ phones: z.array(z.object({
64
+ country_code: z.string().describe("The country code.").optional(),
65
+ national_number: z.string().describe("The national phone number.").optional()
66
+ }).describe("A phone number with country code and other details.")).describe("The phone numbers of the invoicer.").optional(),
67
+ tax_id: z.string().describe("The tax ID of the invoicer.").optional(),
68
+ website: z.string().describe("The website URL of the invoicer.").optional(),
69
+ logo_url: z.string().describe("The URL to the logo image for the invoicer.").optional(),
70
+ email_address: z.string().describe("The email address of the invoicer.").optional(),
71
+ additional_notes: z.string().describe("Additional notes for the invoicer.").optional()
72
+ }).describe("The invoicer business information that appears on the invoice.").optional(),
73
+ due_amount: z.object({
74
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
75
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
76
+ }).describe("The currency and amount for a financial transaction.").optional(),
77
+ configuration: z.object({
78
+ allow_tip: z.boolean().describe("Indicates whether the tip is allowed.").optional(),
79
+ tax_inclusive: z.boolean().describe("Indicates whether tax is inclusive in the amount.").optional(),
80
+ partial_payment: z.object({
81
+ total_due: z.object({
82
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
83
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
84
+ }).describe("The currency and amount for a financial transaction.").optional(),
85
+ enable_partial_payment: z.boolean().describe("Whether partial payment is enabled.").optional()
86
+ }).describe("The partial payment configuration.").optional(),
87
+ has_conditional_rule: z.boolean().describe("Indicates whether a conditional rule is present.").optional(),
88
+ tax_calculated_after_discount: z.boolean().describe("Indicates whether tax is calculated after discount.").optional()
89
+ }).describe("The template configuration details including tax information, tip, and partial payment.").optional(),
90
+ primary_recipients: z.array(z.object({
91
+ billing_info: z.object({
92
+ last_name: z.string().describe("The last name of the billing contact.").optional(),
93
+ first_name: z.string().describe("The first name of the billing contact.").optional(),
94
+ business_name: z.string().describe("The business name of the billing contact.").optional(),
95
+ email_address: z.string().describe("The email address of the billing contact.").optional()
96
+ }).describe("The billing information for the recipient.").optional(),
97
+ shipping_info: z.record(z.string(), z.unknown()).describe("The shipping information for the recipient.").optional()
98
+ }).describe("The billing and shipping information for the recipient.")).describe("The billing and shipping information including name, email, address, phone, and language.").optional(),
99
+ additional_recipients: z.array(z.string()).describe("An array of one or more CC: emails to which notifications are sent.").optional()
100
+ }).describe("The template details including invoicer business information, invoice recipients, items, and configuration.").optional(),
101
+ unit_of_measure: z.enum([
102
+ "QUANTITY",
103
+ "HOURS",
104
+ "AMOUNT"
105
+ ]).describe("The unit of measure for the invoiced item.").optional(),
106
+ default_template: z.boolean().describe("Indicates whether this template is the default template. A invoicer can have one default template.").optional(),
107
+ standard_template: z.boolean().describe("Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.").optional()
108
+ }).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.");
109
+ const PaypalCreateTemplate_LinkDescriptionSchema = z.object({
110
+ rel: z.string().describe("The link relationship type."),
111
+ href: z.string().describe("The complete URL to the related resource."),
112
+ method: z.string().describe("The HTTP method required to access the resource.").nullable().optional()
113
+ }).describe("HATEOAS link information.");
114
+ const PaypalCreateTemplate_TemplateItemSettingSchema = z.object({
115
+ name: z.string().describe("The name of the setting.").nullable().optional(),
116
+ value: z.string().describe("The value of the setting.").nullable().optional()
117
+ }).describe("The template item headers display preference.");
118
+ const PaypalCreateTemplate_TemplateSubtotalSettingSchema = z.object({
119
+ name: z.string().describe("The name of the setting.").nullable().optional(),
120
+ value: z.string().describe("The value of the setting.").nullable().optional()
121
+ }).describe("The template subtotal headers display preference.");
122
+ const PaypalCreateTemplate_TemplateSettingsSchema = z.object({
123
+ template_item_settings: z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe("The template item headers display preference.").nullable().optional(),
124
+ template_subtotal_settings: z.array(PaypalCreateTemplate_TemplateSubtotalSettingSchema).describe("The template subtotal headers display preference.").nullable().optional()
125
+ }).describe("The template settings including item and subtotal display preferences.");
126
+ const PaypalCreateTemplate_MoneySchema = z.object({
127
+ value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
128
+ currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
129
+ }).describe("The currency and amount for a financial transaction.");
130
+ const PaypalCreateTemplate_InvoiceItemSchema = z.object({
131
+ name: z.string().describe("The item name.").nullable().optional(),
132
+ quantity: z.string().describe("The quantity of the item.").nullable().optional(),
133
+ description: z.string().describe("The item description.").nullable().optional(),
134
+ unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional()
135
+ }).describe("An invoice line item.");
136
+ const PaypalCreateTemplate_AmountBreakdownSchema = z.object({
137
+ custom: z.record(z.string(), z.unknown()).describe("The custom amount.").nullable().optional(),
138
+ discount: z.record(z.string(), z.unknown()).describe("The discount amount.").nullable().optional(),
139
+ shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),
140
+ tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),
141
+ item_total: PaypalCreateTemplate_MoneySchema.nullable().optional()
142
+ }).describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
143
+ const PaypalCreateTemplate_InvoiceAmountSummarySchema = z.object({
144
+ value: z.string().describe("The total amount value.").nullable().optional(),
145
+ breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),
146
+ currency_code: z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
147
+ }).describe("The invoice amount summary including breakdown.");
148
+ const PaypalCreateTemplate_TemplateMetadataSchema = z.object({
149
+ create_user: z.string().describe("The user who created the template.").nullable().optional(),
150
+ modify_user: z.string().describe("The user who last modified the template.").nullable().optional()
151
+ }).describe("The metadata for the invoice template.");
152
+ const PaypalCreateTemplate_TemplatePaymentTermSchema = z.object({
153
+ due_type: z.string().describe("The type of the due date.").nullable().optional(),
154
+ interval_days: z.number().int().describe("The number of days after invoice date.").nullable().optional()
155
+ }).describe("The payment term for the invoice.");
156
+ const PaypalCreateTemplate_TemplateDetailSchema = z.object({
157
+ memo: z.string().describe("A memo for the invoice.").nullable().optional(),
158
+ note: z.string().describe("A note to the payer.").nullable().optional(),
159
+ metadata: PaypalCreateTemplate_TemplateMetadataSchema.nullable().optional(),
160
+ reference: z.string().describe("A reference to the associated transaction.").nullable().optional(),
161
+ attachments: z.array(z.record(z.string(), z.unknown())).describe("An array of attachments.").nullable().optional(),
162
+ payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),
163
+ currency_code: z.string().describe("The three-character ISO-4217 currency code for the invoice."),
164
+ terms_and_conditions: z.string().describe("The terms of the invoice.").nullable().optional()
165
+ }).describe("The template-related details including notes, terms and conditions, memo, and attachments.");
166
+ const PaypalCreateTemplate_PhoneNumberSchema = z.object({
167
+ country_code: z.string().describe("The country code.").nullable().optional(),
168
+ national_number: z.string().describe("The national phone number.").nullable().optional()
169
+ }).describe("A phone number with country code and other details.");
170
+ const PaypalCreateTemplate_InvoicerInfoSchema = z.object({
171
+ phones: z.array(PaypalCreateTemplate_PhoneNumberSchema).describe("The phone numbers of the invoicer.").nullable().optional(),
172
+ tax_id: z.string().describe("The tax ID of the invoicer.").nullable().optional(),
173
+ website: z.string().describe("The website URL of the invoicer.").nullable().optional(),
174
+ logo_url: z.string().describe("The URL to the logo image for the invoicer.").nullable().optional(),
175
+ email_address: z.string().describe("The email address of the invoicer.").nullable().optional(),
176
+ additional_notes: z.string().describe("Additional notes for the invoicer.").nullable().optional()
177
+ }).describe("The invoicer business information that appears on the invoice.");
178
+ const PaypalCreateTemplate_PartialPaymentSchema = z.object({
179
+ total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),
180
+ enable_partial_payment: z.boolean().describe("Whether partial payment is enabled.").nullable().optional()
181
+ }).describe("The partial payment configuration.");
182
+ const PaypalCreateTemplate_TemplateConfigurationSchema = z.object({
183
+ allow_tip: z.boolean().describe("Indicates whether the tip is allowed.").nullable().optional(),
184
+ tax_inclusive: z.boolean().describe("Indicates whether tax is inclusive in the amount.").nullable().optional(),
185
+ partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),
186
+ has_conditional_rule: z.boolean().describe("Indicates whether a conditional rule is present.").nullable().optional(),
187
+ tax_calculated_after_discount: z.boolean().describe("Indicates whether tax is calculated after discount.").nullable().optional()
188
+ }).describe("The template configuration details including tax information, tip, and partial payment.");
189
+ const PaypalCreateTemplate_BillingInfoSchema = z.object({
190
+ last_name: z.string().describe("The last name of the billing contact.").nullable().optional(),
191
+ first_name: z.string().describe("The first name of the billing contact.").nullable().optional(),
192
+ business_name: z.string().describe("The business name of the billing contact.").nullable().optional(),
193
+ email_address: z.string().describe("The email address of the billing contact.").nullable().optional()
194
+ }).describe("The billing information for the recipient.");
195
+ const PaypalCreateTemplate_RecipientInfoSchema = z.object({
196
+ billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),
197
+ shipping_info: z.record(z.string(), z.unknown()).describe("The shipping information for the recipient.").nullable().optional()
198
+ }).describe("The billing and shipping information for the recipient.");
199
+ const PaypalCreateTemplate_TemplateInfoSchema = z.object({
200
+ items: z.array(PaypalCreateTemplate_InvoiceItemSchema).describe("An array of invoice line-item information.").nullable().optional(),
201
+ amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),
202
+ detail: PaypalCreateTemplate_TemplateDetailSchema.nullable().optional(),
203
+ invoicer: PaypalCreateTemplate_InvoicerInfoSchema.nullable().optional(),
204
+ due_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),
205
+ configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),
206
+ primary_recipients: z.array(PaypalCreateTemplate_RecipientInfoSchema).describe("The billing and shipping information including name, email, address, phone, and language.").nullable().optional(),
207
+ additional_recipients: z.array(z.string()).describe("An array of one or more CC: emails to which notifications are sent.").nullable().optional()
208
+ }).describe("The template details including invoicer business information, invoice recipients, items, and configuration.");
209
+ const PaypalCreateTemplate_UnitOfMeasureSchema = z.enum([
210
+ "QUANTITY",
211
+ "HOURS",
212
+ "AMOUNT"
213
+ ]).describe("The unit of measure for the invoiced item.");
214
+ const paypalCreateTemplate = action("PAYPAL_CREATE_TEMPLATE", {
215
+ slug: "paypal-create-template",
216
+ name: "Create template",
217
+ 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.",
218
+ input: PaypalCreateTemplateInput,
219
+ output: z.object({
220
+ id: z.string().describe("The ID of the template.").nullable().optional(),
221
+ name: z.string().describe("The template name.").nullable().optional(),
222
+ links: z.array(PaypalCreateTemplate_LinkDescriptionSchema).describe("An array of HATEOAS links related to the template.").nullable().optional(),
223
+ settings: z.array(PaypalCreateTemplate_TemplateSettingsSchema).describe("The template settings.").nullable().optional(),
224
+ template_info: PaypalCreateTemplate_TemplateInfoSchema.nullable().optional(),
225
+ unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),
226
+ default_template: z.boolean().describe("Indicates whether this template is the default template.").nullable().optional(),
227
+ standard_template: z.boolean().describe("Indicates whether this template is a invoicer-created custom template.").nullable().optional()
228
+ }).describe("Response schema for a created PayPal invoice template.")
229
+ });
230
+ //#endregion
231
+ export { paypalCreateTemplate };
232
+
233
+ //# sourceMappingURL=create-template.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateTemplateInput: z.ZodTypeAny = 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}).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}).describe(\"The template subtotal headers display preference.\")).describe(\"The template subtotal headers display preference.\").optional(),\n}).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}).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}).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}).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.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relationship type.\"),\n href: z.string().describe(\"The complete URL to the related resource.\"),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalCreateTemplate_TemplateItemSettingSchema: z.ZodTypeAny = 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}).describe(\"The template item headers display preference.\");\nconst PaypalCreateTemplate_TemplateSubtotalSettingSchema: z.ZodTypeAny = 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}).describe(\"The template subtotal headers display preference.\");\nconst PaypalCreateTemplate_TemplateSettingsSchema: z.ZodTypeAny = 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}).describe(\"The template settings including item and subtotal display preferences.\");\nconst PaypalCreateTemplate_MoneySchema: z.ZodTypeAny = 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.\");\nconst PaypalCreateTemplate_InvoiceItemSchema: z.ZodTypeAny = 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}).describe(\"An invoice line item.\");\nconst PaypalCreateTemplate_AmountBreakdownSchema: z.ZodTypeAny = 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}).describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\");\nconst PaypalCreateTemplate_InvoiceAmountSummarySchema: z.ZodTypeAny = 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}).describe(\"The invoice amount summary including breakdown.\");\nconst PaypalCreateTemplate_TemplateMetadataSchema: z.ZodTypeAny = 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}).describe(\"The metadata for the invoice template.\");\nconst PaypalCreateTemplate_TemplatePaymentTermSchema: z.ZodTypeAny = 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}).describe(\"The payment term for the invoice.\");\nconst PaypalCreateTemplate_TemplateDetailSchema: z.ZodTypeAny = 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.\"),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").nullable().optional(),\n}).describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\");\nconst PaypalCreateTemplate_PhoneNumberSchema: z.ZodTypeAny = 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}).describe(\"A phone number with country code and other details.\");\nconst PaypalCreateTemplate_InvoicerInfoSchema: z.ZodTypeAny = 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}).describe(\"The invoicer business information that appears on the invoice.\");\nconst PaypalCreateTemplate_PartialPaymentSchema: z.ZodTypeAny = z.object({\n total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").nullable().optional(),\n}).describe(\"The partial payment configuration.\");\nconst PaypalCreateTemplate_TemplateConfigurationSchema: z.ZodTypeAny = 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}).describe(\"The template configuration details including tax information, tip, and partial payment.\");\nconst PaypalCreateTemplate_BillingInfoSchema: z.ZodTypeAny = 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}).describe(\"The billing information for the recipient.\");\nconst PaypalCreateTemplate_RecipientInfoSchema: z.ZodTypeAny = 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}).describe(\"The billing and shipping information for the recipient.\");\nconst PaypalCreateTemplate_TemplateInfoSchema: z.ZodTypeAny = 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}).describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\");\nconst PaypalCreateTemplate_UnitOfMeasureSchema: z.ZodTypeAny = z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\");\nexport const PaypalCreateTemplateOutput: z.ZodTypeAny = 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}).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,4BAA0C,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,wBAAwB,EAAE,MAAM,EAAE,OAAO;GACzC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC/H,4BAA4B,EAAE,MAAM,EAAE,OAAO;GAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACnE,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC3L,eAAe,EAAE,OAAO;EACxB,OAAO,EAAE,MAAM,EAAE,OAAO;GACxB,MAAM,EAAE,OAAO,CAAC,CAAC,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C,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -0,0 +1,66 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/create-web-profile.ts
4
+ const PaypalCreateWebProfileInput = zod.z.object({
5
+ id: zod.z.string().describe("The ID of the web experience profile. If not provided, PayPal generates an ID.").optional(),
6
+ name: zod.z.string().describe("The web experience profile name. Must be unique for a set of profiles for a merchant."),
7
+ temporary: zod.z.boolean().describe("Indicates whether the profile persists for three hours or permanently. Set to false for permanent persistence, true for three-hour persistence.").optional(),
8
+ flow_config: zod.z.object({
9
+ user_action: zod.z.enum(["COMMIT"]).describe("User action for checkout flow.").optional(),
10
+ landing_page_type: zod.z.enum(["login", "billing"]).describe("The type of landing page for checkout.").optional(),
11
+ bank_txn_pending_url: zod.z.string().describe("The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.").optional(),
12
+ return_uri_http_method: zod.z.enum(["GET", "POST"]).describe("The HTTP method for redirecting to return URL.").optional()
13
+ }).describe("The flow configuration parameters.").optional(),
14
+ input_fields: zod.z.object({
15
+ no_shipping: zod.z.number().int().describe("Indicates whether PayPal displays shipping address fields. 0 displays the shipping address. 1 redacts shipping address fields (required for digital goods). 2 gets the shipping address from the customer's account profile.").optional(),
16
+ address_override: zod.z.number().int().describe("Indicates whether to display the shipping address passed to this call rather than the one on file. 0 displays the address on file. 1 displays the address specified in this call.").optional()
17
+ }).describe("The input field customization parameters.").optional(),
18
+ presentation: zod.z.object({
19
+ brand_name: zod.z.string().describe("A label that overrides the business name in the PayPal account on the PayPal pages. Character limit: 127 single-byte alphanumeric characters.").optional(),
20
+ logo_image: zod.z.string().describe("A URL to the logo image. Valid media types are .gif, .jpg, or .png. Maximum width is 190 pixels and maximum height is 60 pixels. PayPal recommends storing the image on a secure (HTTPS) server.").optional(),
21
+ locale_code: zod.z.string().describe("The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US, or 5-character codes like da_DK, he_IL, ja_JP, etc.").optional()
22
+ }).describe("The style and presentation parameters.").optional()
23
+ }).describe("Request schema for creating a PayPal web experience profile.\n\nUse this action when you need to create a custom checkout experience\nfor PayPal payments, including branding, landing pages, and flow configuration.\nThe profile name must be unique for a set of profiles for a merchant.");
24
+ const PaypalCreateWebProfile_LinkDescriptionSchema = zod.z.object({
25
+ rel: zod.z.string().describe("The link relationship type."),
26
+ href: zod.z.string().describe("The complete URL to the related resource."),
27
+ method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
28
+ }).describe("HATEOAS link information.");
29
+ const PaypalCreateWebProfile_UserActionSchema = zod.z.enum(["COMMIT"]).describe("User action for checkout flow.");
30
+ const PaypalCreateWebProfile_LandingPageTypeSchema = zod.z.enum(["login", "billing"]).describe("The type of landing page for checkout.");
31
+ const PaypalCreateWebProfile_ReturnUriHttpMethodSchema = zod.z.enum(["GET", "POST"]).describe("The HTTP method for redirecting to return URL.");
32
+ const PaypalCreateWebProfile_FlowConfigSchema = zod.z.object({
33
+ user_action: PaypalCreateWebProfile_UserActionSchema.nullable().optional(),
34
+ landing_page_type: PaypalCreateWebProfile_LandingPageTypeSchema.nullable().optional(),
35
+ bank_txn_pending_url: zod.z.string().describe("The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.").nullable().optional(),
36
+ return_uri_http_method: PaypalCreateWebProfile_ReturnUriHttpMethodSchema.nullable().optional()
37
+ }).describe("The flow configuration parameters.");
38
+ const PaypalCreateWebProfile_InputFieldsSchema = zod.z.object({
39
+ no_shipping: zod.z.number().int().describe("Indicates whether PayPal displays shipping address fields. 0 displays the shipping address. 1 redacts shipping address fields (required for digital goods). 2 gets the shipping address from the customer's account profile.").nullable().optional(),
40
+ address_override: zod.z.number().int().describe("Indicates whether to display the shipping address passed to this call rather than the one on file. 0 displays the address on file. 1 displays the address specified in this call.").nullable().optional()
41
+ }).describe("The input field customization parameters.");
42
+ const PaypalCreateWebProfile_PresentationSchema = zod.z.object({
43
+ brand_name: zod.z.string().describe("A label that overrides the business name in the PayPal account on the PayPal pages. Character limit: 127 single-byte alphanumeric characters.").nullable().optional(),
44
+ logo_image: zod.z.string().describe("A URL to the logo image. Valid media types are .gif, .jpg, or .png. Maximum width is 190 pixels and maximum height is 60 pixels. PayPal recommends storing the image on a secure (HTTPS) server.").nullable().optional(),
45
+ locale_code: zod.z.string().describe("The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US, or 5-character codes like da_DK, he_IL, ja_JP, etc.").nullable().optional()
46
+ }).describe("The style and presentation parameters.");
47
+ const PaypalCreateWebProfileOutput = zod.z.object({
48
+ id: zod.z.string().describe("The ID of the web experience profile.").nullable().optional(),
49
+ name: zod.z.string().describe("The web experience profile name.").nullable().optional(),
50
+ links: zod.z.array(PaypalCreateWebProfile_LinkDescriptionSchema).describe("An array of request-related HATEOAS links.").nullable().optional(),
51
+ temporary: zod.z.boolean().describe("Indicates whether the profile persists for three hours or permanently.").nullable().optional(),
52
+ flow_config: PaypalCreateWebProfile_FlowConfigSchema.nullable().optional(),
53
+ input_fields: PaypalCreateWebProfile_InputFieldsSchema.nullable().optional(),
54
+ presentation: PaypalCreateWebProfile_PresentationSchema.nullable().optional()
55
+ }).describe("Response schema for a created PayPal web experience profile.");
56
+ const paypalCreateWebProfile = require_action.action("PAYPAL_CREATE_WEB_PROFILE", {
57
+ slug: "paypal-create-web-profile",
58
+ name: "Create a web experience profile",
59
+ description: "Creates a PayPal web experience profile for customizing checkout. Use this action when you need to set up a branded, customized checkout experience for PayPal payments. This includes configuring the landing page, branding elements like logo and brand name, input field customization, and checkout flow behavior. The profile can be set as temporary (persists for three hours) or permanent. To use this profile, pass its ID when creating a payment.",
60
+ input: PaypalCreateWebProfileInput,
61
+ output: PaypalCreateWebProfileOutput
62
+ });
63
+ //#endregion
64
+ exports.paypalCreateWebProfile = paypalCreateWebProfile;
65
+
66
+ //# sourceMappingURL=create-web-profile.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-web-profile.cjs","names":["z","action"],"sources":["../../src/actions/create-web-profile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateWebProfileInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the web experience profile. If not provided, PayPal generates an ID.\").optional(),\n name: z.string().describe(\"The web experience profile name. Must be unique for a set of profiles for a merchant.\"),\n temporary: z.boolean().describe(\"Indicates whether the profile persists for three hours or permanently. Set to false for permanent persistence, true for three-hour persistence.\").optional(),\n flow_config: z.object({\n user_action: z.enum([\"COMMIT\"]).describe(\"User action for checkout flow.\").optional(),\n landing_page_type: z.enum([\"login\", \"billing\"]).describe(\"The type of landing page for checkout.\").optional(),\n bank_txn_pending_url: z.string().describe(\"The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.\").optional(),\n return_uri_http_method: z.enum([\"GET\", \"POST\"]).describe(\"The HTTP method for redirecting to return URL.\").optional(),\n}).describe(\"The flow configuration parameters.\").optional(),\n input_fields: z.object({\n no_shipping: z.number().int().describe(\"Indicates whether PayPal displays shipping address fields. 0 displays the shipping address. 1 redacts shipping address fields (required for digital goods). 2 gets the shipping address from the customer's account profile.\").optional(),\n address_override: z.number().int().describe(\"Indicates whether to display the shipping address passed to this call rather than the one on file. 0 displays the address on file. 1 displays the address specified in this call.\").optional(),\n}).describe(\"The input field customization parameters.\").optional(),\n presentation: z.object({\n brand_name: z.string().describe(\"A label that overrides the business name in the PayPal account on the PayPal pages. Character limit: 127 single-byte alphanumeric characters.\").optional(),\n logo_image: z.string().describe(\"A URL to the logo image. Valid media types are .gif, .jpg, or .png. Maximum width is 190 pixels and maximum height is 60 pixels. PayPal recommends storing the image on a secure (HTTPS) server.\").optional(),\n locale_code: z.string().describe(\"The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US, or 5-character codes like da_DK, he_IL, ja_JP, etc.\").optional(),\n}).describe(\"The style and presentation parameters.\").optional(),\n}).describe(\"Request schema for creating a PayPal web experience profile.\\n\\nUse this action when you need to create a custom checkout experience\\nfor PayPal payments, including branding, landing pages, and flow configuration.\\nThe profile name must be unique for a set of profiles for a merchant.\");\nconst PaypalCreateWebProfile_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relationship type.\"),\n href: z.string().describe(\"The complete URL to the related resource.\"),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalCreateWebProfile_UserActionSchema: z.ZodTypeAny = z.enum([\"COMMIT\"]).describe(\"User action for checkout flow.\");\nconst PaypalCreateWebProfile_LandingPageTypeSchema: z.ZodTypeAny = z.enum([\"login\", \"billing\"]).describe(\"The type of landing page for checkout.\");\nconst PaypalCreateWebProfile_ReturnUriHttpMethodSchema: z.ZodTypeAny = z.enum([\"GET\", \"POST\"]).describe(\"The HTTP method for redirecting to return URL.\");\nconst PaypalCreateWebProfile_FlowConfigSchema: z.ZodTypeAny = z.object({\n user_action: PaypalCreateWebProfile_UserActionSchema.nullable().optional(),\n landing_page_type: PaypalCreateWebProfile_LandingPageTypeSchema.nullable().optional(),\n bank_txn_pending_url: z.string().describe(\"The merchant site URL to display after a bank transfer payment. In Germany, valid only for the Giropay payment method or bank transfer payment method.\").nullable().optional(),\n return_uri_http_method: PaypalCreateWebProfile_ReturnUriHttpMethodSchema.nullable().optional(),\n}).describe(\"The flow configuration parameters.\");\nconst PaypalCreateWebProfile_InputFieldsSchema: z.ZodTypeAny = z.object({\n no_shipping: z.number().int().describe(\"Indicates whether PayPal displays shipping address fields. 0 displays the shipping address. 1 redacts shipping address fields (required for digital goods). 2 gets the shipping address from the customer's account profile.\").nullable().optional(),\n address_override: z.number().int().describe(\"Indicates whether to display the shipping address passed to this call rather than the one on file. 0 displays the address on file. 1 displays the address specified in this call.\").nullable().optional(),\n}).describe(\"The input field customization parameters.\");\nconst PaypalCreateWebProfile_PresentationSchema: z.ZodTypeAny = z.object({\n brand_name: z.string().describe(\"A label that overrides the business name in the PayPal account on the PayPal pages. Character limit: 127 single-byte alphanumeric characters.\").nullable().optional(),\n logo_image: z.string().describe(\"A URL to the logo image. Valid media types are .gif, .jpg, or .png. Maximum width is 190 pixels and maximum height is 60 pixels. PayPal recommends storing the image on a secure (HTTPS) server.\").nullable().optional(),\n locale_code: z.string().describe(\"The locale of pages that the PayPal payment experience displays. Valid values: AU, AT, BE, BR, CA, CH, CN, DE, ES, GB, FR, IT, NL, PL, PT, RU, US, or 5-character codes like da_DK, he_IL, ja_JP, etc.\").nullable().optional(),\n}).describe(\"The style and presentation parameters.\");\nexport const PaypalCreateWebProfileOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the web experience profile.\").nullable().optional(),\n name: z.string().describe(\"The web experience profile name.\").nullable().optional(),\n links: z.array(PaypalCreateWebProfile_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n temporary: z.boolean().describe(\"Indicates whether the profile persists for three hours or permanently.\").nullable().optional(),\n flow_config: PaypalCreateWebProfile_FlowConfigSchema.nullable().optional(),\n input_fields: PaypalCreateWebProfile_InputFieldsSchema.nullable().optional(),\n presentation: PaypalCreateWebProfile_PresentationSchema.nullable().optional(),\n}).describe(\"Response schema for a created PayPal web experience profile.\");\n\nexport const paypalCreateWebProfile = action(\"PAYPAL_CREATE_WEB_PROFILE\", {\n slug: \"paypal-create-web-profile\",\n name: \"Create a web experience profile\",\n description: \"Creates a PayPal web experience profile for customizing checkout. Use this action when you need to set up a branded, customized checkout experience for PayPal payments. This includes configuring the landing page, branding elements like logo and brand name, input field customization, and checkout flow behavior. The profile can be set as temporary (persists for three hours) or permanent. To use this profile, pass its ID when creating a payment.\",\n input: PaypalCreateWebProfileInput,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C"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-web-profile.d.ts
4
+ declare const PaypalCreateWebProfileInput: z.ZodTypeAny;
5
+ declare const PaypalCreateWebProfileOutput: z.ZodTypeAny;
6
+ declare const paypalCreateWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalCreateWebProfile };
9
+ //# sourceMappingURL=create-web-profile.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-web-profile.d.cts","names":[],"sources":["../../src/actions/create-web-profile.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAmB+P;AAAA,cAwB9R,4BAAA,EAA8B,CAAA,CAAE,UAQ8B;AAAA,cAE9D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/create-web-profile.d.ts
4
+ declare const PaypalCreateWebProfileInput: z.ZodTypeAny;
5
+ declare const PaypalCreateWebProfileOutput: z.ZodTypeAny;
6
+ declare const paypalCreateWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { paypalCreateWebProfile };
9
+ //# sourceMappingURL=create-web-profile.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-web-profile.d.mts","names":[],"sources":["../../src/actions/create-web-profile.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAmB+P;AAAA,cAwB9R,4BAAA,EAA8B,CAAA,CAAE,UAQ8B;AAAA,cAE9D,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}