@keystrokehq/paypal 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/activate-plan.cjs +1 -1
- package/dist/actions/activate-plan.cjs.map +1 -1
- package/dist/actions/activate-plan.d.cts +10 -3
- package/dist/actions/activate-plan.d.cts.map +1 -1
- package/dist/actions/activate-plan.d.mts +10 -3
- package/dist/actions/activate-plan.d.mts.map +1 -1
- package/dist/actions/activate-plan.mjs +1 -1
- package/dist/actions/activate-plan.mjs.map +1 -1
- package/dist/actions/add-batch-trackers.cjs +10 -10
- package/dist/actions/add-batch-trackers.cjs.map +1 -1
- package/dist/actions/add-batch-trackers.d.cts +79 -3
- package/dist/actions/add-batch-trackers.d.cts.map +1 -1
- package/dist/actions/add-batch-trackers.d.mts +79 -3
- package/dist/actions/add-batch-trackers.d.mts.map +1 -1
- package/dist/actions/add-batch-trackers.mjs +10 -10
- package/dist/actions/add-batch-trackers.mjs.map +1 -1
- package/dist/actions/authorize-order.cjs +22 -22
- package/dist/actions/authorize-order.cjs.map +1 -1
- package/dist/actions/authorize-order.d.cts +94 -3
- package/dist/actions/authorize-order.d.cts.map +1 -1
- package/dist/actions/authorize-order.d.mts +94 -3
- package/dist/actions/authorize-order.d.mts.map +1 -1
- package/dist/actions/authorize-order.mjs +22 -22
- package/dist/actions/authorize-order.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +4 -4
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +36 -3
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +36 -3
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +4 -4
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-reminders.cjs +4 -4
- package/dist/actions/cancel-reminders.cjs.map +1 -1
- package/dist/actions/cancel-reminders.d.cts +25 -3
- package/dist/actions/cancel-reminders.d.cts.map +1 -1
- package/dist/actions/cancel-reminders.d.mts +25 -3
- package/dist/actions/cancel-reminders.d.mts.map +1 -1
- package/dist/actions/cancel-reminders.mjs +4 -4
- package/dist/actions/cancel-reminders.mjs.map +1 -1
- package/dist/actions/capture-subscription-payment.cjs +23 -23
- package/dist/actions/capture-subscription-payment.cjs.map +1 -1
- package/dist/actions/capture-subscription-payment.d.cts +67 -3
- package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
- package/dist/actions/capture-subscription-payment.d.mts +67 -3
- package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
- package/dist/actions/capture-subscription-payment.mjs +23 -23
- package/dist/actions/capture-subscription-payment.mjs.map +1 -1
- package/dist/actions/charge-payment-method.cjs +1 -1
- package/dist/actions/charge-payment-method.cjs.map +1 -1
- package/dist/actions/charge-payment-method.d.cts +89 -3
- package/dist/actions/charge-payment-method.d.cts.map +1 -1
- package/dist/actions/charge-payment-method.d.mts +89 -3
- package/dist/actions/charge-payment-method.d.mts.map +1 -1
- package/dist/actions/charge-payment-method.mjs +1 -1
- package/dist/actions/charge-payment-method.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +29 -29
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +431 -3
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +431 -3
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +29 -29
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-payment.cjs +42 -42
- package/dist/actions/create-payment.cjs.map +1 -1
- package/dist/actions/create-payment.d.cts +215 -3
- package/dist/actions/create-payment.d.cts.map +1 -1
- package/dist/actions/create-payment.d.mts +215 -3
- package/dist/actions/create-payment.d.mts.map +1 -1
- package/dist/actions/create-payment.mjs +42 -42
- package/dist/actions/create-payment.mjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.cjs +16 -16
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.cts +154 -3
- package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.mts +154 -3
- package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
- package/dist/actions/create-payments-billing-plans.mjs +16 -16
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +20 -20
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +143 -3
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +143 -3
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +20 -20
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-product.cjs +2 -2
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +184 -3
- package/dist/actions/create-product.d.cts.map +1 -1
- package/dist/actions/create-product.d.mts +184 -3
- package/dist/actions/create-product.d.mts.map +1 -1
- package/dist/actions/create-product.mjs +2 -2
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/create-subscription.cjs +17 -17
- package/dist/actions/create-subscription.cjs.map +1 -1
- package/dist/actions/create-subscription.d.cts +255 -3
- package/dist/actions/create-subscription.d.cts.map +1 -1
- package/dist/actions/create-subscription.d.mts +255 -3
- package/dist/actions/create-subscription.d.mts.map +1 -1
- package/dist/actions/create-subscription.mjs +17 -17
- package/dist/actions/create-subscription.mjs.map +1 -1
- package/dist/actions/create-template.cjs +30 -30
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +323 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +323 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +30 -30
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-web-profile.cjs +7 -7
- package/dist/actions/create-web-profile.cjs.map +1 -1
- package/dist/actions/create-web-profile.d.cts +81 -3
- package/dist/actions/create-web-profile.d.cts.map +1 -1
- package/dist/actions/create-web-profile.d.mts +81 -3
- package/dist/actions/create-web-profile.d.mts.map +1 -1
- package/dist/actions/create-web-profile.mjs +7 -7
- package/dist/actions/create-web-profile.mjs.map +1 -1
- package/dist/actions/create-webhook-lookup.cjs +5 -5
- package/dist/actions/create-webhook-lookup.cjs.map +1 -1
- package/dist/actions/create-webhook-lookup.d.cts +11 -3
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/create-webhook-lookup.d.mts +11 -3
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/create-webhook-lookup.mjs +5 -5
- package/dist/actions/create-webhook-lookup.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +7 -7
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +37 -3
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +37 -3
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +7 -7
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/deactivate-plan.cjs +3 -3
- package/dist/actions/deactivate-plan.cjs.map +1 -1
- package/dist/actions/deactivate-plan.d.cts +10 -3
- package/dist/actions/deactivate-plan.d.cts.map +1 -1
- package/dist/actions/deactivate-plan.d.mts +10 -3
- package/dist/actions/deactivate-plan.d.mts.map +1 -1
- package/dist/actions/deactivate-plan.mjs +3 -3
- package/dist/actions/deactivate-plan.mjs.map +1 -1
- package/dist/actions/delete-external-payment.cjs +1 -1
- package/dist/actions/delete-external-payment.cjs.map +1 -1
- package/dist/actions/delete-external-payment.d.cts +13 -3
- package/dist/actions/delete-external-payment.d.cts.map +1 -1
- package/dist/actions/delete-external-payment.d.mts +13 -3
- package/dist/actions/delete-external-payment.d.mts.map +1 -1
- package/dist/actions/delete-external-payment.mjs +1 -1
- package/dist/actions/delete-external-payment.mjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.cts +13 -3
- package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.mts +13 -3
- package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.mjs +1 -1
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.cts +12 -3
- package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.mts +12 -3
- package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.mjs +1 -1
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +6 -6
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +25 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +25 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +6 -6
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment-resource.cjs +3 -3
- package/dist/actions/delete-payment-resource.cjs.map +1 -1
- package/dist/actions/delete-payment-resource.d.cts +10 -3
- package/dist/actions/delete-payment-resource.d.cts.map +1 -1
- package/dist/actions/delete-payment-resource.d.mts +10 -3
- package/dist/actions/delete-payment-resource.d.mts.map +1 -1
- package/dist/actions/delete-payment-resource.mjs +3 -3
- package/dist/actions/delete-payment-resource.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +6 -6
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +25 -3
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +25 -3
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +6 -6
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-web-profile.cjs +3 -3
- package/dist/actions/delete-web-profile.cjs.map +1 -1
- package/dist/actions/delete-web-profile.d.cts +10 -3
- package/dist/actions/delete-web-profile.d.cts.map +1 -1
- package/dist/actions/delete-web-profile.d.mts +10 -3
- package/dist/actions/delete-web-profile.d.mts.map +1 -1
- package/dist/actions/delete-web-profile.mjs +3 -3
- package/dist/actions/delete-web-profile.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +6 -6
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +24 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +24 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +6 -6
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-node.cjs +6 -6
- package/dist/actions/fetch-node.cjs.map +1 -1
- package/dist/actions/fetch-node.d.cts +21 -3
- package/dist/actions/fetch-node.d.cts.map +1 -1
- package/dist/actions/fetch-node.d.mts +21 -3
- package/dist/actions/fetch-node.d.mts.map +1 -1
- package/dist/actions/fetch-node.mjs +6 -6
- package/dist/actions/fetch-node.mjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +14 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +14 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
- package/dist/actions/find-eligible-methods.cjs +8 -8
- package/dist/actions/find-eligible-methods.cjs.map +1 -1
- package/dist/actions/find-eligible-methods.d.cts +120 -3
- package/dist/actions/find-eligible-methods.d.cts.map +1 -1
- package/dist/actions/find-eligible-methods.d.mts +120 -3
- package/dist/actions/find-eligible-methods.d.mts.map +1 -1
- package/dist/actions/find-eligible-methods.mjs +8 -8
- package/dist/actions/find-eligible-methods.mjs.map +1 -1
- package/dist/actions/generate-client-token.cjs +2 -2
- package/dist/actions/generate-client-token.cjs.map +1 -1
- package/dist/actions/generate-client-token.d.cts +7 -3
- package/dist/actions/generate-client-token.d.cts.map +1 -1
- package/dist/actions/generate-client-token.d.mts +7 -3
- package/dist/actions/generate-client-token.d.mts.map +1 -1
- package/dist/actions/generate-client-token.mjs +2 -2
- package/dist/actions/generate-client-token.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.cts +10 -3
- package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.mts +10 -3
- package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.cjs +1 -1
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.cts +5 -3
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.mts +5 -3
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number.mjs +1 -1
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
- package/dist/actions/generate-qr-code.cjs +7 -7
- package/dist/actions/generate-qr-code.cjs.map +1 -1
- package/dist/actions/generate-qr-code.d.cts +38 -3
- package/dist/actions/generate-qr-code.d.cts.map +1 -1
- package/dist/actions/generate-qr-code.d.mts +38 -3
- package/dist/actions/generate-qr-code.d.mts.map +1 -1
- package/dist/actions/generate-qr-code.mjs +7 -7
- package/dist/actions/generate-qr-code.mjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.cjs +10 -10
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.cts +86 -3
- package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.mts +86 -3
- package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
- package/dist/actions/get-billing-subscriptions.mjs +10 -10
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +33 -33
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +151 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +151 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +33 -33
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +5 -5
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +20 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +20 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +5 -5
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
- package/dist/actions/get-invoicing-template.cjs +22 -22
- package/dist/actions/get-invoicing-template.cjs.map +1 -1
- package/dist/actions/get-invoicing-template.d.cts +134 -3
- package/dist/actions/get-invoicing-template.d.cts.map +1 -1
- package/dist/actions/get-invoicing-template.d.mts +134 -3
- package/dist/actions/get-invoicing-template.d.mts.map +1 -1
- package/dist/actions/get-invoicing-template.mjs +22 -22
- package/dist/actions/get-invoicing-template.mjs.map +1 -1
- package/dist/actions/get-order.cjs +16 -16
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +114 -3
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +114 -3
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs +16 -16
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +14 -14
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +93 -3
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +93 -3
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs +14 -14
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-payments-refund.cjs +3 -3
- package/dist/actions/get-payments-refund.cjs.map +1 -1
- package/dist/actions/get-payments-refund.d.cts +26 -3
- package/dist/actions/get-payments-refund.d.cts.map +1 -1
- package/dist/actions/get-payments-refund.d.mts +26 -3
- package/dist/actions/get-payments-refund.d.mts.map +1 -1
- package/dist/actions/get-payments-refund.mjs +3 -3
- package/dist/actions/get-payments-refund.mjs.map +1 -1
- package/dist/actions/get-plan.cjs +11 -11
- package/dist/actions/get-plan.cjs.map +1 -1
- package/dist/actions/get-plan.d.cts +52 -3
- package/dist/actions/get-plan.d.cts.map +1 -1
- package/dist/actions/get-plan.d.mts +52 -3
- package/dist/actions/get-plan.d.mts.map +1 -1
- package/dist/actions/get-plan.mjs +11 -11
- package/dist/actions/get-plan.mjs.map +1 -1
- package/dist/actions/get-product.cjs +5 -5
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +22 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +22 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +5 -5
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-subscription.cjs +10 -10
- package/dist/actions/get-subscription.cjs.map +1 -1
- package/dist/actions/get-subscription.d.cts +79 -3
- package/dist/actions/get-subscription.d.cts.map +1 -1
- package/dist/actions/get-subscription.d.mts +79 -3
- package/dist/actions/get-subscription.d.mts.map +1 -1
- package/dist/actions/get-subscription.mjs +10 -10
- package/dist/actions/get-subscription.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs +3 -3
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +34 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +34 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs +3 -3
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-userinfo.cjs +3 -3
- package/dist/actions/get-userinfo.cjs.map +1 -1
- package/dist/actions/get-userinfo.d.cts +47 -3
- package/dist/actions/get-userinfo.d.cts.map +1 -1
- package/dist/actions/get-userinfo.d.mts +47 -3
- package/dist/actions/get-userinfo.d.mts.map +1 -1
- package/dist/actions/get-userinfo.mjs +3 -3
- package/dist/actions/get-userinfo.mjs.map +1 -1
- package/dist/actions/get-web-profile.cjs +5 -5
- package/dist/actions/get-web-profile.cjs.map +1 -1
- package/dist/actions/get-web-profile.d.cts +26 -3
- package/dist/actions/get-web-profile.d.cts.map +1 -1
- package/dist/actions/get-web-profile.d.mts +26 -3
- package/dist/actions/get-web-profile.d.mts.map +1 -1
- package/dist/actions/get-web-profile.mjs +5 -5
- package/dist/actions/get-web-profile.mjs.map +1 -1
- package/dist/actions/get-webhook-lookup.cjs +3 -3
- package/dist/actions/get-webhook-lookup.cjs.map +1 -1
- package/dist/actions/get-webhook-lookup.d.cts +15 -3
- package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/get-webhook-lookup.d.mts +15 -3
- package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/get-webhook-lookup.mjs +3 -3
- package/dist/actions/get-webhook-lookup.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +6 -6
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +23 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +23 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +6 -6
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +7 -7
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +57 -3
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +57 -3
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +7 -7
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +15 -15
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +82 -3
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +82 -3
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +15 -15
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.cjs +7 -7
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.cts +83 -3
- package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.mts +83 -3
- package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.mjs +7 -7
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +20 -20
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +109 -3
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +109 -3
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +20 -20
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +11 -11
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +56 -3
- package/dist/actions/list-plans.d.cts.map +1 -1
- package/dist/actions/list-plans.d.mts +56 -3
- package/dist/actions/list-plans.d.mts.map +1 -1
- package/dist/actions/list-plans.mjs +11 -11
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs +3 -3
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +30 -3
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +30 -3
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +3 -3
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +8 -8
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +66 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +66 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +8 -8
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-web-profiles.cjs +7 -7
- package/dist/actions/list-web-profiles.cjs.map +1 -1
- package/dist/actions/list-web-profiles.d.cts +35 -3
- package/dist/actions/list-web-profiles.d.cts.map +1 -1
- package/dist/actions/list-web-profiles.d.mts +35 -3
- package/dist/actions/list-web-profiles.d.mts.map +1 -1
- package/dist/actions/list-web-profiles.mjs +7 -7
- package/dist/actions/list-web-profiles.mjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +4 -4
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +4 -4
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
- package/dist/actions/list-webhook-event-types.cjs +4 -4
- package/dist/actions/list-webhook-event-types.cjs.map +1 -1
- package/dist/actions/list-webhook-event-types.d.cts +12 -3
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-types.d.mts +12 -3
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-types.mjs +4 -4
- package/dist/actions/list-webhook-event-types.mjs.map +1 -1
- package/dist/actions/list-webhook-lookups.cjs +3 -3
- package/dist/actions/list-webhook-lookups.cjs.map +1 -1
- package/dist/actions/list-webhook-lookups.d.cts +13 -3
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
- package/dist/actions/list-webhook-lookups.d.mts +13 -3
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
- package/dist/actions/list-webhook-lookups.mjs +3 -3
- package/dist/actions/list-webhook-lookups.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +3 -3
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +24 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +24 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +3 -3
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/patch-orders.cjs +2 -2
- package/dist/actions/patch-orders.cjs.map +1 -1
- package/dist/actions/patch-orders.d.cts +32 -3
- package/dist/actions/patch-orders.d.cts.map +1 -1
- package/dist/actions/patch-orders.d.mts +32 -3
- package/dist/actions/patch-orders.d.mts.map +1 -1
- package/dist/actions/patch-orders.mjs +2 -2
- package/dist/actions/patch-orders.mjs.map +1 -1
- package/dist/actions/patch-plan.cjs +2 -2
- package/dist/actions/patch-plan.cjs.map +1 -1
- package/dist/actions/patch-plan.d.cts +30 -3
- package/dist/actions/patch-plan.d.cts.map +1 -1
- package/dist/actions/patch-plan.d.mts +30 -3
- package/dist/actions/patch-plan.d.mts.map +1 -1
- package/dist/actions/patch-plan.mjs +2 -2
- package/dist/actions/patch-plan.mjs.map +1 -1
- package/dist/actions/patch-subscription.cjs +5 -5
- package/dist/actions/patch-subscription.cjs.map +1 -1
- package/dist/actions/patch-subscription.d.cts +37 -3
- package/dist/actions/patch-subscription.d.cts.map +1 -1
- package/dist/actions/patch-subscription.d.mts +37 -3
- package/dist/actions/patch-subscription.d.mts.map +1 -1
- package/dist/actions/patch-subscription.mjs +5 -5
- package/dist/actions/patch-subscription.mjs.map +1 -1
- package/dist/actions/patch-web-profile.cjs +2 -2
- package/dist/actions/patch-web-profile.cjs.map +1 -1
- package/dist/actions/patch-web-profile.d.cts +30 -3
- package/dist/actions/patch-web-profile.d.cts.map +1 -1
- package/dist/actions/patch-web-profile.d.mts +30 -3
- package/dist/actions/patch-web-profile.d.mts.map +1 -1
- package/dist/actions/patch-web-profile.mjs +2 -2
- package/dist/actions/patch-web-profile.mjs.map +1 -1
- package/dist/actions/ping-braintree.cjs +2 -2
- package/dist/actions/ping-braintree.cjs.map +1 -1
- package/dist/actions/ping-braintree.d.cts +6 -3
- package/dist/actions/ping-braintree.d.cts.map +1 -1
- package/dist/actions/ping-braintree.d.mts +6 -3
- package/dist/actions/ping-braintree.d.mts.map +1 -1
- package/dist/actions/ping-braintree.mjs +2 -2
- package/dist/actions/ping-braintree.mjs.map +1 -1
- package/dist/actions/query-braintree-report.cjs +5 -5
- package/dist/actions/query-braintree-report.cjs.map +1 -1
- package/dist/actions/query-braintree-report.d.cts +30 -3
- package/dist/actions/query-braintree-report.d.cts.map +1 -1
- package/dist/actions/query-braintree-report.d.mts +30 -3
- package/dist/actions/query-braintree-report.d.mts.map +1 -1
- package/dist/actions/query-braintree-report.mjs +5 -5
- package/dist/actions/query-braintree-report.mjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.cjs +12 -12
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.cts +60 -3
- package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.mts +60 -3
- package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
- package/dist/actions/retrieve-payment-resource.mjs +12 -12
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
- package/dist/actions/search-invoices.cjs +12 -12
- package/dist/actions/search-invoices.cjs.map +1 -1
- package/dist/actions/search-invoices.d.cts +156 -3
- package/dist/actions/search-invoices.d.cts.map +1 -1
- package/dist/actions/search-invoices.d.mts +156 -3
- package/dist/actions/search-invoices.d.mts.map +1 -1
- package/dist/actions/search-invoices.mjs +12 -12
- package/dist/actions/search-invoices.mjs.map +1 -1
- package/dist/actions/send-invoice.cjs +4 -4
- package/dist/actions/send-invoice.cjs.map +1 -1
- package/dist/actions/send-invoice.d.cts +30 -3
- package/dist/actions/send-invoice.d.cts.map +1 -1
- package/dist/actions/send-invoice.d.mts +30 -3
- package/dist/actions/send-invoice.d.mts.map +1 -1
- package/dist/actions/send-invoice.mjs +4 -4
- package/dist/actions/send-invoice.mjs.map +1 -1
- package/dist/actions/simulate-webhook-event.cjs +7 -7
- package/dist/actions/simulate-webhook-event.cjs.map +1 -1
- package/dist/actions/simulate-webhook-event.d.cts +42 -3
- package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
- package/dist/actions/simulate-webhook-event.d.mts +42 -3
- package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
- package/dist/actions/simulate-webhook-event.mjs +7 -7
- package/dist/actions/simulate-webhook-event.mjs.map +1 -1
- package/dist/actions/update-dispute.cjs +5 -5
- package/dist/actions/update-dispute.cjs.map +1 -1
- package/dist/actions/update-dispute.d.cts +40 -3
- package/dist/actions/update-dispute.d.cts.map +1 -1
- package/dist/actions/update-dispute.d.mts +40 -3
- package/dist/actions/update-dispute.d.mts.map +1 -1
- package/dist/actions/update-dispute.mjs +5 -5
- package/dist/actions/update-dispute.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +49 -49
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +544 -3
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +544 -3
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +49 -49
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-pay-pal-product.cjs +2 -2
- package/dist/actions/update-pay-pal-product.cjs.map +1 -1
- package/dist/actions/update-pay-pal-product.d.cts +30 -3
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-product.d.mts +30 -3
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-product.mjs +2 -2
- package/dist/actions/update-pay-pal-product.mjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.cjs +7 -7
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.cts +41 -3
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.mts +41 -3
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.mjs +7 -7
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
- package/dist/actions/update-templates.cjs +39 -39
- package/dist/actions/update-templates.cjs.map +1 -1
- package/dist/actions/update-templates.d.cts +636 -3
- package/dist/actions/update-templates.d.cts.map +1 -1
- package/dist/actions/update-templates.d.mts +636 -3
- package/dist/actions/update-templates.d.mts.map +1 -1
- package/dist/actions/update-templates.mjs +39 -39
- package/dist/actions/update-templates.mjs.map +1 -1
- package/dist/actions/update-web-profile.cjs +4 -4
- package/dist/actions/update-web-profile.cjs.map +1 -1
- package/dist/actions/update-web-profile.d.cts +59 -3
- package/dist/actions/update-web-profile.d.cts.map +1 -1
- package/dist/actions/update-web-profile.d.mts +59 -3
- package/dist/actions/update-web-profile.d.mts.map +1 -1
- package/dist/actions/update-web-profile.mjs +4 -4
- package/dist/actions/update-web-profile.mjs.map +1 -1
- package/dist/actions/verify-payment-method.cjs +5 -5
- package/dist/actions/verify-payment-method.cjs.map +1 -1
- package/dist/actions/verify-payment-method.d.cts +25 -3
- package/dist/actions/verify-payment-method.d.cts.map +1 -1
- package/dist/actions/verify-payment-method.d.mts +25 -3
- package/dist/actions/verify-payment-method.d.mts.map +1 -1
- package/dist/actions/verify-payment-method.mjs +5 -5
- package/dist/actions/verify-payment-method.mjs.map +1 -1
- package/dist/actions/verify-webhook-signature.cjs +1 -1
- package/dist/actions/verify-webhook-signature.cjs.map +1 -1
- package/dist/actions/verify-webhook-signature.d.cts +52 -3
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
- package/dist/actions/verify-webhook-signature.d.mts +52 -3
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
- package/dist/actions/verify-webhook-signature.mjs +1 -1
- package/dist/actions/verify-webhook-signature.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -7,12 +7,12 @@ const PaypalCreateTemplateInput = z.object({
|
|
|
7
7
|
template_item_settings: z.array(z.object({
|
|
8
8
|
name: z.string().describe("The name of the setting.").optional(),
|
|
9
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(),
|
|
10
|
+
}).passthrough().describe("The template item headers display preference.")).describe("The template item headers display preference.").optional(),
|
|
11
11
|
template_subtotal_settings: z.array(z.object({
|
|
12
12
|
name: z.string().describe("The name of the setting.").optional(),
|
|
13
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(),
|
|
14
|
+
}).passthrough().describe("The template subtotal headers display preference.")).describe("The template subtotal headers display preference.").optional()
|
|
15
|
+
}).passthrough().describe("The template settings including item and subtotal display preferences.")).describe("The template settings. Sets a template as the default template or edit template.").optional(),
|
|
16
16
|
template_info: z.object({
|
|
17
17
|
items: z.array(z.object({
|
|
18
18
|
name: z.string().describe("The item name.").optional(),
|
|
@@ -22,7 +22,7 @@ const PaypalCreateTemplateInput = z.object({
|
|
|
22
22
|
value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
|
|
23
23
|
currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
|
|
24
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(),
|
|
25
|
+
}).passthrough().describe("An invoice line item.")).describe("An array of invoice line-item information.").optional(),
|
|
26
26
|
amount: z.object({
|
|
27
27
|
value: z.string().describe("The total amount value.").optional(),
|
|
28
28
|
breakdown: z.object({
|
|
@@ -63,7 +63,7 @@ const PaypalCreateTemplateInput = z.object({
|
|
|
63
63
|
phones: z.array(z.object({
|
|
64
64
|
country_code: z.string().describe("The country code.").optional(),
|
|
65
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(),
|
|
66
|
+
}).passthrough().describe("A phone number with country code and other details.")).describe("The phone numbers of the invoicer.").optional(),
|
|
67
67
|
tax_id: z.string().describe("The tax ID of the invoicer.").optional(),
|
|
68
68
|
website: z.string().describe("The website URL of the invoicer.").optional(),
|
|
69
69
|
logo_url: z.string().describe("The URL to the logo image for the invoicer.").optional(),
|
|
@@ -95,7 +95,7 @@ const PaypalCreateTemplateInput = z.object({
|
|
|
95
95
|
email_address: z.string().describe("The email address of the billing contact.").optional()
|
|
96
96
|
}).describe("The billing information for the recipient.").optional(),
|
|
97
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(),
|
|
98
|
+
}).passthrough().describe("The billing and shipping information for the recipient.")).describe("The billing and shipping information including name, email, address, phone, and language.").optional(),
|
|
99
99
|
additional_recipients: z.array(z.string()).describe("An array of one or more CC: emails to which notifications are sent.").optional()
|
|
100
100
|
}).describe("The template details including invoicer business information, invoice recipients, items, and configuration.").optional(),
|
|
101
101
|
unit_of_measure: z.enum([
|
|
@@ -107,52 +107,52 @@ const PaypalCreateTemplateInput = z.object({
|
|
|
107
107
|
standard_template: z.boolean().describe("Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.").optional()
|
|
108
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
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."),
|
|
110
|
+
rel: z.string().describe("The link relationship type.").nullable(),
|
|
111
|
+
href: z.string().describe("The complete URL to the related resource.").nullable(),
|
|
112
112
|
method: z.string().describe("The HTTP method required to access the resource.").nullable().optional()
|
|
113
|
-
}).describe("HATEOAS link information.");
|
|
113
|
+
}).passthrough().describe("HATEOAS link information.");
|
|
114
114
|
const PaypalCreateTemplate_TemplateItemSettingSchema = z.object({
|
|
115
115
|
name: z.string().describe("The name of the setting.").nullable().optional(),
|
|
116
116
|
value: z.string().describe("The value of the setting.").nullable().optional()
|
|
117
|
-
}).describe("The template item headers display preference.");
|
|
117
|
+
}).passthrough().describe("The template item headers display preference.");
|
|
118
118
|
const PaypalCreateTemplate_TemplateSubtotalSettingSchema = z.object({
|
|
119
119
|
name: z.string().describe("The name of the setting.").nullable().optional(),
|
|
120
120
|
value: z.string().describe("The value of the setting.").nullable().optional()
|
|
121
|
-
}).describe("The template subtotal headers display preference.");
|
|
121
|
+
}).passthrough().describe("The template subtotal headers display preference.");
|
|
122
122
|
const PaypalCreateTemplate_TemplateSettingsSchema = z.object({
|
|
123
123
|
template_item_settings: z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe("The template item headers display preference.").nullable().optional(),
|
|
124
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.");
|
|
125
|
+
}).passthrough().describe("The template settings including item and subtotal display preferences.");
|
|
126
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.");
|
|
127
|
+
value: z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others.").nullable(),
|
|
128
|
+
currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable()
|
|
129
|
+
}).passthrough().describe("The currency and amount for a financial transaction.");
|
|
130
130
|
const PaypalCreateTemplate_InvoiceItemSchema = z.object({
|
|
131
131
|
name: z.string().describe("The item name.").nullable().optional(),
|
|
132
132
|
quantity: z.string().describe("The quantity of the item.").nullable().optional(),
|
|
133
133
|
description: z.string().describe("The item description.").nullable().optional(),
|
|
134
134
|
unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional()
|
|
135
|
-
}).describe("An invoice line item.");
|
|
135
|
+
}).passthrough().describe("An invoice line item.");
|
|
136
136
|
const PaypalCreateTemplate_AmountBreakdownSchema = z.object({
|
|
137
137
|
custom: z.record(z.string(), z.unknown()).describe("The custom amount.").nullable().optional(),
|
|
138
138
|
discount: z.record(z.string(), z.unknown()).describe("The discount amount.").nullable().optional(),
|
|
139
139
|
shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
140
140
|
tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
141
141
|
item_total: PaypalCreateTemplate_MoneySchema.nullable().optional()
|
|
142
|
-
}).describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
|
|
142
|
+
}).passthrough().describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
|
|
143
143
|
const PaypalCreateTemplate_InvoiceAmountSummarySchema = z.object({
|
|
144
144
|
value: z.string().describe("The total amount value.").nullable().optional(),
|
|
145
145
|
breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),
|
|
146
146
|
currency_code: z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
|
|
147
|
-
}).describe("The invoice amount summary including breakdown.");
|
|
147
|
+
}).passthrough().describe("The invoice amount summary including breakdown.");
|
|
148
148
|
const PaypalCreateTemplate_TemplateMetadataSchema = z.object({
|
|
149
149
|
create_user: z.string().describe("The user who created the template.").nullable().optional(),
|
|
150
150
|
modify_user: z.string().describe("The user who last modified the template.").nullable().optional()
|
|
151
|
-
}).describe("The metadata for the invoice template.");
|
|
151
|
+
}).passthrough().describe("The metadata for the invoice template.");
|
|
152
152
|
const PaypalCreateTemplate_TemplatePaymentTermSchema = z.object({
|
|
153
153
|
due_type: z.string().describe("The type of the due date.").nullable().optional(),
|
|
154
154
|
interval_days: z.number().int().describe("The number of days after invoice date.").nullable().optional()
|
|
155
|
-
}).describe("The payment term for the invoice.");
|
|
155
|
+
}).passthrough().describe("The payment term for the invoice.");
|
|
156
156
|
const PaypalCreateTemplate_TemplateDetailSchema = z.object({
|
|
157
157
|
memo: z.string().describe("A memo for the invoice.").nullable().optional(),
|
|
158
158
|
note: z.string().describe("A note to the payer.").nullable().optional(),
|
|
@@ -160,13 +160,13 @@ const PaypalCreateTemplate_TemplateDetailSchema = z.object({
|
|
|
160
160
|
reference: z.string().describe("A reference to the associated transaction.").nullable().optional(),
|
|
161
161
|
attachments: z.array(z.record(z.string(), z.unknown())).describe("An array of attachments.").nullable().optional(),
|
|
162
162
|
payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),
|
|
163
|
-
currency_code: z.string().describe("The three-character ISO-4217 currency code for the invoice."),
|
|
163
|
+
currency_code: z.string().describe("The three-character ISO-4217 currency code for the invoice.").nullable(),
|
|
164
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.");
|
|
165
|
+
}).passthrough().describe("The template-related details including notes, terms and conditions, memo, and attachments.");
|
|
166
166
|
const PaypalCreateTemplate_PhoneNumberSchema = z.object({
|
|
167
167
|
country_code: z.string().describe("The country code.").nullable().optional(),
|
|
168
168
|
national_number: z.string().describe("The national phone number.").nullable().optional()
|
|
169
|
-
}).describe("A phone number with country code and other details.");
|
|
169
|
+
}).passthrough().describe("A phone number with country code and other details.");
|
|
170
170
|
const PaypalCreateTemplate_InvoicerInfoSchema = z.object({
|
|
171
171
|
phones: z.array(PaypalCreateTemplate_PhoneNumberSchema).describe("The phone numbers of the invoicer.").nullable().optional(),
|
|
172
172
|
tax_id: z.string().describe("The tax ID of the invoicer.").nullable().optional(),
|
|
@@ -174,28 +174,28 @@ const PaypalCreateTemplate_InvoicerInfoSchema = z.object({
|
|
|
174
174
|
logo_url: z.string().describe("The URL to the logo image for the invoicer.").nullable().optional(),
|
|
175
175
|
email_address: z.string().describe("The email address of the invoicer.").nullable().optional(),
|
|
176
176
|
additional_notes: z.string().describe("Additional notes for the invoicer.").nullable().optional()
|
|
177
|
-
}).describe("The invoicer business information that appears on the invoice.");
|
|
177
|
+
}).passthrough().describe("The invoicer business information that appears on the invoice.");
|
|
178
178
|
const PaypalCreateTemplate_PartialPaymentSchema = z.object({
|
|
179
179
|
total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
180
180
|
enable_partial_payment: z.boolean().describe("Whether partial payment is enabled.").nullable().optional()
|
|
181
|
-
}).describe("The partial payment configuration.");
|
|
181
|
+
}).passthrough().describe("The partial payment configuration.");
|
|
182
182
|
const PaypalCreateTemplate_TemplateConfigurationSchema = z.object({
|
|
183
183
|
allow_tip: z.boolean().describe("Indicates whether the tip is allowed.").nullable().optional(),
|
|
184
184
|
tax_inclusive: z.boolean().describe("Indicates whether tax is inclusive in the amount.").nullable().optional(),
|
|
185
185
|
partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),
|
|
186
186
|
has_conditional_rule: z.boolean().describe("Indicates whether a conditional rule is present.").nullable().optional(),
|
|
187
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.");
|
|
188
|
+
}).passthrough().describe("The template configuration details including tax information, tip, and partial payment.");
|
|
189
189
|
const PaypalCreateTemplate_BillingInfoSchema = z.object({
|
|
190
190
|
last_name: z.string().describe("The last name of the billing contact.").nullable().optional(),
|
|
191
191
|
first_name: z.string().describe("The first name of the billing contact.").nullable().optional(),
|
|
192
192
|
business_name: z.string().describe("The business name of the billing contact.").nullable().optional(),
|
|
193
193
|
email_address: z.string().describe("The email address of the billing contact.").nullable().optional()
|
|
194
|
-
}).describe("The billing information for the recipient.");
|
|
194
|
+
}).passthrough().describe("The billing information for the recipient.");
|
|
195
195
|
const PaypalCreateTemplate_RecipientInfoSchema = z.object({
|
|
196
196
|
billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),
|
|
197
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.");
|
|
198
|
+
}).passthrough().describe("The billing and shipping information for the recipient.");
|
|
199
199
|
const PaypalCreateTemplate_TemplateInfoSchema = z.object({
|
|
200
200
|
items: z.array(PaypalCreateTemplate_InvoiceItemSchema).describe("An array of invoice line-item information.").nullable().optional(),
|
|
201
201
|
amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),
|
|
@@ -205,7 +205,7 @@ const PaypalCreateTemplate_TemplateInfoSchema = z.object({
|
|
|
205
205
|
configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),
|
|
206
206
|
primary_recipients: z.array(PaypalCreateTemplate_RecipientInfoSchema).describe("The billing and shipping information including name, email, address, phone, and language.").nullable().optional(),
|
|
207
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.");
|
|
208
|
+
}).passthrough().describe("The template details including invoicer business information, invoice recipients, items, and configuration.");
|
|
209
209
|
const PaypalCreateTemplate_UnitOfMeasureSchema = z.enum([
|
|
210
210
|
"QUANTITY",
|
|
211
211
|
"HOURS",
|
|
@@ -225,7 +225,7 @@ const paypalCreateTemplate = action("PAYPAL_CREATE_TEMPLATE", {
|
|
|
225
225
|
unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),
|
|
226
226
|
default_template: z.boolean().describe("Indicates whether this template is the default template.").nullable().optional(),
|
|
227
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.")
|
|
228
|
+
}).passthrough().describe("Response schema for a created PayPal invoice template.")
|
|
229
229
|
});
|
|
230
230
|
//#endregion
|
|
231
231
|
export { paypalCreateTemplate };
|
|
@@ -1 +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,SAAS,gBAAgB,CAAC,CAAC,SAAS;GACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;GACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GACnE,aAAa,EAAE,OAAO;IACtB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;IAC3H,eAAe,EAAE,OAAO,CAA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AAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,6GAA6G;AACzH,MAAM,2CAAyD,EAAE,KAAK;CAAC;CAAY;CAAS;AAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAY5J,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,eAAe,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC3E,iBAAiB,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
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.object({\n name: z.string().describe(\"The template name. Must be unique.\"),\n settings: z.array(z.object({\n template_item_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template item headers display preference.\")).describe(\"The template item headers display preference.\").optional(),\n template_subtotal_settings: z.array(z.object({\n name: z.string().describe(\"The name of the setting.\").optional(),\n value: z.string().describe(\"The value of the setting.\").optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\")).describe(\"The template subtotal headers display preference.\").optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\")).describe(\"The template settings. Sets a template as the default template or edit template.\").optional(),\n template_info: z.object({\n items: z.array(z.object({\n name: z.string().describe(\"The item name.\").optional(),\n quantity: z.string().describe(\"The quantity of the item.\").optional(),\n description: z.string().describe(\"The item description.\").optional(),\n unit_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).passthrough().describe(\"An invoice line item.\")).describe(\"An array of invoice line-item information.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The total amount value.\").optional(),\n breakdown: z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").optional(),\n shipping: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n tax_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n item_total: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").optional(),\n}).describe(\"The invoice amount summary including breakdown.\").optional(),\n detail: z.object({\n memo: z.string().describe(\"A memo for the invoice.\").optional(),\n note: z.string().describe(\"A note to the payer.\").optional(),\n metadata: z.object({\n create_user: z.string().describe(\"The user who created the template.\").optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").optional(),\n}).describe(\"The metadata for the invoice template.\").optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").optional(),\n payment_term: z.object({\n due_type: z.string().describe(\"The type of the due date.\").optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").optional(),\n}).describe(\"The payment term for the invoice.\").optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\"),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").optional(),\n}).describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\").optional(),\n invoicer: z.object({\n phones: z.array(z.object({\n country_code: z.string().describe(\"The country code.\").optional(),\n national_number: z.string().describe(\"The national phone number.\").optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\")).describe(\"The phone numbers of the invoicer.\").optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").optional(),\n}).describe(\"The invoicer business information that appears on the invoice.\").optional(),\n due_amount: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n configuration: z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").optional(),\n partial_payment: z.object({\n total_due: z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").optional(),\n}).describe(\"The partial payment configuration.\").optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").optional(),\n}).describe(\"The template configuration details including tax information, tip, and partial payment.\").optional(),\n primary_recipients: z.array(z.object({\n billing_info: z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").optional(),\n}).describe(\"The billing information for the recipient.\").optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\")).describe(\"The billing and shipping information including name, email, address, phone, and language.\").optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").optional(),\n}).describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\").optional(),\n unit_of_measure: z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\").optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template. A invoicer can have one default template.\").optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template. The system generates non-custom templates.\").optional(),\n}).describe(\"Request schema for creating a PayPal invoice template.\\n\\nUse this action when you need to create a reusable invoice template\\nthat can be used to generate invoices with consistent settings.\\nThe minimum required field is the name and template_info.detail.currency_code.\\n\\n**Required fields:**\\n- name: The template name (must be unique)\\n- template_info.detail.currency_code: The three-character currency code\\n\\n**Optional fields:**\\n- default_template: Set as the default template\\n- standard_template: Custom vs system-generated template\\n- template_info: Full template configuration including invoicer info, recipients, items\\n- settings: Template display preferences\\n- unit_of_measure: Unit of measure for items (QUANTITY, HOURS, AMOUNT)\\n\\nThe created template can be used to quickly generate invoices with\\npre-configured business information, recipients, and line items.\");\nconst PaypalCreateTemplate_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCreateTemplate_TemplateItemSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template item headers display preference.\");\nconst PaypalCreateTemplate_TemplateSubtotalSettingSchema = z.object({\n name: z.string().describe(\"The name of the setting.\").nullable().optional(),\n value: z.string().describe(\"The value of the setting.\").nullable().optional(),\n}).passthrough().describe(\"The template subtotal headers display preference.\");\nconst PaypalCreateTemplate_TemplateSettingsSchema = z.object({\n template_item_settings: z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe(\"The template item headers display preference.\").nullable().optional(),\n template_subtotal_settings: z.array(PaypalCreateTemplate_TemplateSubtotalSettingSchema).describe(\"The template subtotal headers display preference.\").nullable().optional(),\n}).passthrough().describe(\"The template settings including item and subtotal display preferences.\");\nconst PaypalCreateTemplate_MoneySchema = z.object({\n value: z.string().describe(\"The value, which might be an integer for currencies like JPY or a decimal fraction for others.\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateTemplate_InvoiceItemSchema = z.object({\n name: z.string().describe(\"The item name.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the item.\").nullable().optional(),\n description: z.string().describe(\"The item description.\").nullable().optional(),\n unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"An invoice line item.\");\nconst PaypalCreateTemplate_AmountBreakdownSchema = z.object({\n custom: z.record(z.string(), z.unknown()).describe(\"The custom amount.\").nullable().optional(),\n discount: z.record(z.string(), z.unknown()).describe(\"The discount amount.\").nullable().optional(),\n shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n item_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"The breakdown of the amount including item total, tax, shipping, and discounts.\");\nconst PaypalCreateTemplate_InvoiceAmountSummarySchema = z.object({\n value: z.string().describe(\"The total amount value.\").nullable().optional(),\n breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The invoice amount summary including breakdown.\");\nconst PaypalCreateTemplate_TemplateMetadataSchema = z.object({\n create_user: z.string().describe(\"The user who created the template.\").nullable().optional(),\n modify_user: z.string().describe(\"The user who last modified the template.\").nullable().optional(),\n}).passthrough().describe(\"The metadata for the invoice template.\");\nconst PaypalCreateTemplate_TemplatePaymentTermSchema = z.object({\n due_type: z.string().describe(\"The type of the due date.\").nullable().optional(),\n interval_days: z.number().int().describe(\"The number of days after invoice date.\").nullable().optional(),\n}).passthrough().describe(\"The payment term for the invoice.\");\nconst PaypalCreateTemplate_TemplateDetailSchema = z.object({\n memo: z.string().describe(\"A memo for the invoice.\").nullable().optional(),\n note: z.string().describe(\"A note to the payer.\").nullable().optional(),\n metadata: PaypalCreateTemplate_TemplateMetadataSchema.nullable().optional(),\n reference: z.string().describe(\"A reference to the associated transaction.\").nullable().optional(),\n attachments: z.array(z.record(z.string(), z.unknown())).describe(\"An array of attachments.\").nullable().optional(),\n payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code for the invoice.\").nullable(),\n terms_and_conditions: z.string().describe(\"The terms of the invoice.\").nullable().optional(),\n}).passthrough().describe(\"The template-related details including notes, terms and conditions, memo, and attachments.\");\nconst PaypalCreateTemplate_PhoneNumberSchema = z.object({\n country_code: z.string().describe(\"The country code.\").nullable().optional(),\n national_number: z.string().describe(\"The national phone number.\").nullable().optional(),\n}).passthrough().describe(\"A phone number with country code and other details.\");\nconst PaypalCreateTemplate_InvoicerInfoSchema = z.object({\n phones: z.array(PaypalCreateTemplate_PhoneNumberSchema).describe(\"The phone numbers of the invoicer.\").nullable().optional(),\n tax_id: z.string().describe(\"The tax ID of the invoicer.\").nullable().optional(),\n website: z.string().describe(\"The website URL of the invoicer.\").nullable().optional(),\n logo_url: z.string().describe(\"The URL to the logo image for the invoicer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the invoicer.\").nullable().optional(),\n additional_notes: z.string().describe(\"Additional notes for the invoicer.\").nullable().optional(),\n}).passthrough().describe(\"The invoicer business information that appears on the invoice.\");\nconst PaypalCreateTemplate_PartialPaymentSchema = z.object({\n total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n enable_partial_payment: z.boolean().describe(\"Whether partial payment is enabled.\").nullable().optional(),\n}).passthrough().describe(\"The partial payment configuration.\");\nconst PaypalCreateTemplate_TemplateConfigurationSchema = z.object({\n allow_tip: z.boolean().describe(\"Indicates whether the tip is allowed.\").nullable().optional(),\n tax_inclusive: z.boolean().describe(\"Indicates whether tax is inclusive in the amount.\").nullable().optional(),\n partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),\n has_conditional_rule: z.boolean().describe(\"Indicates whether a conditional rule is present.\").nullable().optional(),\n tax_calculated_after_discount: z.boolean().describe(\"Indicates whether tax is calculated after discount.\").nullable().optional(),\n}).passthrough().describe(\"The template configuration details including tax information, tip, and partial payment.\");\nconst PaypalCreateTemplate_BillingInfoSchema = z.object({\n last_name: z.string().describe(\"The last name of the billing contact.\").nullable().optional(),\n first_name: z.string().describe(\"The first name of the billing contact.\").nullable().optional(),\n business_name: z.string().describe(\"The business name of the billing contact.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the billing contact.\").nullable().optional(),\n}).passthrough().describe(\"The billing information for the recipient.\");\nconst PaypalCreateTemplate_RecipientInfoSchema = z.object({\n billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),\n shipping_info: z.record(z.string(), z.unknown()).describe(\"The shipping information for the recipient.\").nullable().optional(),\n}).passthrough().describe(\"The billing and shipping information for the recipient.\");\nconst PaypalCreateTemplate_TemplateInfoSchema = z.object({\n items: z.array(PaypalCreateTemplate_InvoiceItemSchema).describe(\"An array of invoice line-item information.\").nullable().optional(),\n amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),\n detail: PaypalCreateTemplate_TemplateDetailSchema.nullable().optional(),\n invoicer: PaypalCreateTemplate_InvoicerInfoSchema.nullable().optional(),\n due_amount: PaypalCreateTemplate_MoneySchema.nullable().optional(),\n configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),\n primary_recipients: z.array(PaypalCreateTemplate_RecipientInfoSchema).describe(\"The billing and shipping information including name, email, address, phone, and language.\").nullable().optional(),\n additional_recipients: z.array(z.string()).describe(\"An array of one or more CC: emails to which notifications are sent.\").nullable().optional(),\n}).passthrough().describe(\"The template details including invoicer business information, invoice recipients, items, and configuration.\");\nconst PaypalCreateTemplate_UnitOfMeasureSchema = z.enum([\"QUANTITY\", \"HOURS\", \"AMOUNT\"]).describe(\"The unit of measure for the invoiced item.\");\nexport const PaypalCreateTemplateOutput = z.object({\n id: z.string().describe(\"The ID of the template.\").nullable().optional(),\n name: z.string().describe(\"The template name.\").nullable().optional(),\n links: z.array(PaypalCreateTemplate_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the template.\").nullable().optional(),\n settings: z.array(PaypalCreateTemplate_TemplateSettingsSchema).describe(\"The template settings.\").nullable().optional(),\n template_info: PaypalCreateTemplate_TemplateInfoSchema.nullable().optional(),\n unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),\n default_template: z.boolean().describe(\"Indicates whether this template is the default template.\").nullable().optional(),\n standard_template: z.boolean().describe(\"Indicates whether this template is a invoicer-created custom template.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for a created PayPal invoice template.\");\n\nexport const paypalCreateTemplate = action(\"PAYPAL_CREATE_TEMPLATE\", {\n slug: \"paypal-create-template\",\n name: \"Create template\",\n description: \"Creates a PayPal invoice template. Use this action when you need to create a reusable invoice template that can be used to generate invoices with consistent settings. Templates are useful for businesses that regularly send similar invoices. **Required fields:** - name: The template name (must be unique) - template_info.detail.currency_code: The three-character ISO-4217 currency code **Optional fields:** - default_template: Set as the default template (only one allowed per account) - standard_template: Indicates if this is a custom template - template_info: Full template configuration - invoicer: Business information (email, tax_id, logo_url, etc.) - primary_recipients: Billing/shipping information for recipients - items: Line item presets - configuration: Tax settings, partial payment options - settings: Display preferences - unit_of_measure: QUANTITY, HOURS, or AMOUNT The created template can be used with the Generate Invoice action to quickly create invoices from pre-configured templates.\",\n input: PaypalCreateTemplateInput,\n output: PaypalCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,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,YAAY,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EA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SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6GAA6G;AACvI,MAAM,2CAA2C,EAAE,KAAK;CAAC;CAAY;CAAS;AAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAY9I,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,OAAO,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,eAAe,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC3E,iBAAiB,yCAAyC,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -22,10 +22,10 @@ const PaypalCreateWebProfileInput = zod.z.object({
|
|
|
22
22
|
}).describe("The style and presentation parameters.").optional()
|
|
23
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
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."),
|
|
25
|
+
rel: zod.z.string().describe("The link relationship type.").nullable(),
|
|
26
|
+
href: zod.z.string().describe("The complete URL to the related resource.").nullable(),
|
|
27
27
|
method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
|
|
28
|
-
}).describe("HATEOAS link information.");
|
|
28
|
+
}).passthrough().describe("HATEOAS link information.");
|
|
29
29
|
const PaypalCreateWebProfile_UserActionSchema = zod.z.enum(["COMMIT"]).describe("User action for checkout flow.");
|
|
30
30
|
const PaypalCreateWebProfile_LandingPageTypeSchema = zod.z.enum(["login", "billing"]).describe("The type of landing page for checkout.");
|
|
31
31
|
const PaypalCreateWebProfile_ReturnUriHttpMethodSchema = zod.z.enum(["GET", "POST"]).describe("The HTTP method for redirecting to return URL.");
|
|
@@ -34,16 +34,16 @@ const PaypalCreateWebProfile_FlowConfigSchema = zod.z.object({
|
|
|
34
34
|
landing_page_type: PaypalCreateWebProfile_LandingPageTypeSchema.nullable().optional(),
|
|
35
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
36
|
return_uri_http_method: PaypalCreateWebProfile_ReturnUriHttpMethodSchema.nullable().optional()
|
|
37
|
-
}).describe("The flow configuration parameters.");
|
|
37
|
+
}).passthrough().describe("The flow configuration parameters.");
|
|
38
38
|
const PaypalCreateWebProfile_InputFieldsSchema = zod.z.object({
|
|
39
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
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.");
|
|
41
|
+
}).passthrough().describe("The input field customization parameters.");
|
|
42
42
|
const PaypalCreateWebProfile_PresentationSchema = zod.z.object({
|
|
43
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
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
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.");
|
|
46
|
+
}).passthrough().describe("The style and presentation parameters.");
|
|
47
47
|
const PaypalCreateWebProfileOutput = zod.z.object({
|
|
48
48
|
id: zod.z.string().describe("The ID of the web experience profile.").nullable().optional(),
|
|
49
49
|
name: zod.z.string().describe("The web experience profile name.").nullable().optional(),
|
|
@@ -52,7 +52,7 @@ const PaypalCreateWebProfileOutput = zod.z.object({
|
|
|
52
52
|
flow_config: PaypalCreateWebProfile_FlowConfigSchema.nullable().optional(),
|
|
53
53
|
input_fields: PaypalCreateWebProfile_InputFieldsSchema.nullable().optional(),
|
|
54
54
|
presentation: PaypalCreateWebProfile_PresentationSchema.nullable().optional()
|
|
55
|
-
}).describe("Response schema for a created PayPal web experience profile.");
|
|
55
|
+
}).passthrough().describe("Response schema for a created PayPal web experience profile.");
|
|
56
56
|
const paypalCreateWebProfile = require_action.action("PAYPAL_CREATE_WEB_PROFILE", {
|
|
57
57
|
slug: "paypal-create-web-profile",
|
|
58
58
|
name: "Create a web experience profile",
|
|
@@ -1 +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,\n output: PaypalCreateWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,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S;AACvP,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxP,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjQ,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAa,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACzE,cAAc,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC3E,cAAc,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
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.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.object({\n rel: z.string().describe(\"The link relationship type.\").nullable(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalCreateWebProfile_UserActionSchema = z.enum([\"COMMIT\"]).describe(\"User action for checkout flow.\");\nconst PaypalCreateWebProfile_LandingPageTypeSchema = z.enum([\"login\", \"billing\"]).describe(\"The type of landing page for checkout.\");\nconst PaypalCreateWebProfile_ReturnUriHttpMethodSchema = z.enum([\"GET\", \"POST\"]).describe(\"The HTTP method for redirecting to return URL.\");\nconst PaypalCreateWebProfile_FlowConfigSchema = 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}).passthrough().describe(\"The flow configuration parameters.\");\nconst PaypalCreateWebProfile_InputFieldsSchema = 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}).passthrough().describe(\"The input field customization parameters.\");\nconst PaypalCreateWebProfile_PresentationSchema = 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}).passthrough().describe(\"The style and presentation parameters.\");\nexport const PaypalCreateWebProfileOutput = 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}).passthrough().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,\n output: PaypalCreateWebProfileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACnH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;CACjH,WAAWA,IAAAA,EAAE,QAAQ,CAAC,C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put: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalCreateWebProfileInput: z.ZodObject<{
|
|
5
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
temporary: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
flow_config: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
user_action: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
COMMIT: "COMMIT";
|
|
11
|
+
}>>;
|
|
12
|
+
landing_page_type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
login: "login";
|
|
14
|
+
billing: "billing";
|
|
15
|
+
}>>;
|
|
16
|
+
bank_txn_pending_url: z.ZodOptional<z.ZodString>;
|
|
17
|
+
return_uri_http_method: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
GET: "GET";
|
|
19
|
+
POST: "POST";
|
|
20
|
+
}>>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
input_fields: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
no_shipping: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
address_override: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
presentation: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
brand_name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
logo_image: z.ZodOptional<z.ZodString>;
|
|
29
|
+
locale_code: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const PaypalCreateWebProfileOutput: z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
36
|
+
rel: z.ZodNullable<z.ZodString>;
|
|
37
|
+
href: z.ZodNullable<z.ZodString>;
|
|
38
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$loose>>>>;
|
|
40
|
+
temporary: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
|
+
flow_config: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
|
+
user_action: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
43
|
+
COMMIT: "COMMIT";
|
|
44
|
+
}>>>;
|
|
45
|
+
landing_page_type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
46
|
+
login: "login";
|
|
47
|
+
billing: "billing";
|
|
48
|
+
}>>>;
|
|
49
|
+
bank_txn_pending_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
return_uri_http_method: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
51
|
+
GET: "GET";
|
|
52
|
+
POST: "POST";
|
|
53
|
+
}>>>;
|
|
54
|
+
}, z.core.$loose>>>;
|
|
55
|
+
input_fields: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56
|
+
no_shipping: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
57
|
+
address_override: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$loose>>>;
|
|
59
|
+
presentation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
60
|
+
brand_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
logo_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
locale_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
}, z.core.$loose>>>;
|
|
64
|
+
}, z.core.$loose>;
|
|
65
|
+
declare const paypalCreateWebProfile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
66
|
+
name: string;
|
|
67
|
+
id?: string | undefined;
|
|
68
|
+
temporary?: boolean | undefined;
|
|
69
|
+
flow_config?: {
|
|
70
|
+
user_action?: "COMMIT" | undefined;
|
|
71
|
+
landing_page_type?: "login" | "billing" | undefined;
|
|
72
|
+
bank_txn_pending_url?: string | undefined;
|
|
73
|
+
return_uri_http_method?: "GET" | "POST" | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
input_fields?: {
|
|
76
|
+
no_shipping?: number | undefined;
|
|
77
|
+
address_override?: number | undefined;
|
|
78
|
+
} | undefined;
|
|
79
|
+
presentation?: {
|
|
80
|
+
brand_name?: string | undefined;
|
|
81
|
+
logo_image?: string | undefined;
|
|
82
|
+
locale_code?: string | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
85
|
//#endregion
|
|
8
86
|
export { paypalCreateWebProfile };
|
|
9
87
|
//# sourceMappingURL=create-web-profile.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-web-profile.d.cts","names":[],"sources":["../../src/actions/create-web-profile.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"create-web-profile.d.cts","names":[],"sources":["../../src/actions/create-web-profile.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
|