@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
|
@@ -1,9 +1,126 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/find-eligible-methods.d.ts
|
|
4
|
-
declare const PaypalFindEligibleMethodsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalFindEligibleMethodsInput: z.ZodObject<{
|
|
5
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
country_code: z.ZodString;
|
|
10
|
+
national_number: z.ZodString;
|
|
11
|
+
extension_number: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
channel: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
client_os: z.ZodOptional<z.ZodString>;
|
|
15
|
+
device_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
browser_type: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
country_code: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
payment_flow: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
ONE_TIME_PAYMENT: "ONE_TIME_PAYMENT";
|
|
23
|
+
RECURRING_PAYMENT: "RECURRING_PAYMENT";
|
|
24
|
+
VAULT_WITH_PAYMENT: "VAULT_WITH_PAYMENT";
|
|
25
|
+
VAULT_WITHOUT_PAYMENT: "VAULT_WITHOUT_PAYMENT";
|
|
26
|
+
}>>;
|
|
27
|
+
include_vault_tokens: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
28
|
+
include_account_details: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
29
|
+
payment_source_constraint: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
constraint_type: z.ZodEnum<{
|
|
31
|
+
INCLUDE: "INCLUDE";
|
|
32
|
+
EXCLUDE: "EXCLUDE";
|
|
33
|
+
}>;
|
|
34
|
+
payment_sources: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
purchase_units: z.ZodArray<z.ZodObject<{
|
|
38
|
+
payee: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
merchant_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
email_address: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
amount: z.ZodObject<{
|
|
43
|
+
value: z.ZodString;
|
|
44
|
+
currency_code: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
|
|
49
|
+
payment_tokens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodNullable<z.ZodString>;
|
|
51
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
|
+
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
|
+
payment_source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
61
|
+
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>>>>;
|
|
64
|
+
eligible_methods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
venmo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
paypal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
|
+
paypal_credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
79
|
+
}, z.core.$loose>>>;
|
|
80
|
+
paypal_pay_later: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
81
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
84
|
+
}, z.core.$loose>>>;
|
|
85
|
+
}, z.core.$loose>>>;
|
|
86
|
+
}, z.core.$loose>;
|
|
87
|
+
declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
88
|
+
purchase_units: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
amount: {
|
|
91
|
+
value: string;
|
|
92
|
+
currency_code: string;
|
|
93
|
+
};
|
|
94
|
+
payee?: {
|
|
95
|
+
merchant_id?: string | undefined;
|
|
96
|
+
email_address?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
customer?: {
|
|
100
|
+
id?: string | undefined;
|
|
101
|
+
email?: string | undefined;
|
|
102
|
+
phone?: {
|
|
103
|
+
country_code: string;
|
|
104
|
+
national_number: string;
|
|
105
|
+
extension_number?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
channel?: {
|
|
108
|
+
client_os?: string | undefined;
|
|
109
|
+
device_type?: string | undefined;
|
|
110
|
+
browser_type?: string | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
country_code?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
preferences?: {
|
|
115
|
+
payment_flow?: "ONE_TIME_PAYMENT" | "RECURRING_PAYMENT" | "VAULT_WITH_PAYMENT" | "VAULT_WITHOUT_PAYMENT" | undefined;
|
|
116
|
+
include_vault_tokens?: boolean | undefined;
|
|
117
|
+
include_account_details?: boolean | undefined;
|
|
118
|
+
payment_source_constraint?: {
|
|
119
|
+
constraint_type: "INCLUDE" | "EXCLUDE";
|
|
120
|
+
payment_sources: string[];
|
|
121
|
+
} | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
124
|
//#endregion
|
|
8
125
|
export { paypalFindEligibleMethods };
|
|
9
126
|
//# sourceMappingURL=find-eligible-methods.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-eligible-methods.d.cts","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"find-eligible-methods.d.cts","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgE9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,126 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/find-eligible-methods.d.ts
|
|
4
|
-
declare const PaypalFindEligibleMethodsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalFindEligibleMethodsInput: z.ZodObject<{
|
|
5
|
+
customer: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodOptional<z.ZodString>;
|
|
8
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
9
|
+
country_code: z.ZodString;
|
|
10
|
+
national_number: z.ZodString;
|
|
11
|
+
extension_number: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
channel: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
client_os: z.ZodOptional<z.ZodString>;
|
|
15
|
+
device_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
browser_type: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
country_code: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
payment_flow: z.ZodOptional<z.ZodEnum<{
|
|
22
|
+
ONE_TIME_PAYMENT: "ONE_TIME_PAYMENT";
|
|
23
|
+
RECURRING_PAYMENT: "RECURRING_PAYMENT";
|
|
24
|
+
VAULT_WITH_PAYMENT: "VAULT_WITH_PAYMENT";
|
|
25
|
+
VAULT_WITHOUT_PAYMENT: "VAULT_WITHOUT_PAYMENT";
|
|
26
|
+
}>>;
|
|
27
|
+
include_vault_tokens: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
28
|
+
include_account_details: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
29
|
+
payment_source_constraint: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
constraint_type: z.ZodEnum<{
|
|
31
|
+
INCLUDE: "INCLUDE";
|
|
32
|
+
EXCLUDE: "EXCLUDE";
|
|
33
|
+
}>;
|
|
34
|
+
payment_sources: z.ZodArray<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
purchase_units: z.ZodArray<z.ZodObject<{
|
|
38
|
+
payee: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
merchant_id: z.ZodOptional<z.ZodString>;
|
|
40
|
+
email_address: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
amount: z.ZodObject<{
|
|
43
|
+
value: z.ZodString;
|
|
44
|
+
currency_code: z.ZodString;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
declare const PaypalFindEligibleMethodsOutput: z.ZodObject<{
|
|
49
|
+
payment_tokens: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodNullable<z.ZodString>;
|
|
51
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
52
|
+
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
|
+
payment_source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
57
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
source_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
61
|
+
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
}, z.core.$loose>>>>;
|
|
64
|
+
eligible_methods: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
65
|
+
venmo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
69
|
+
}, z.core.$loose>>>;
|
|
70
|
+
paypal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
|
+
paypal_credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
79
|
+
}, z.core.$loose>>>;
|
|
80
|
+
paypal_pay_later: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
81
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
vault_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
product_usage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
84
|
+
}, z.core.$loose>>>;
|
|
85
|
+
}, z.core.$loose>>>;
|
|
86
|
+
}, z.core.$loose>;
|
|
87
|
+
declare const paypalFindEligibleMethods: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
88
|
+
purchase_units: {
|
|
89
|
+
[x: string]: unknown;
|
|
90
|
+
amount: {
|
|
91
|
+
value: string;
|
|
92
|
+
currency_code: string;
|
|
93
|
+
};
|
|
94
|
+
payee?: {
|
|
95
|
+
merchant_id?: string | undefined;
|
|
96
|
+
email_address?: string | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
customer?: {
|
|
100
|
+
id?: string | undefined;
|
|
101
|
+
email?: string | undefined;
|
|
102
|
+
phone?: {
|
|
103
|
+
country_code: string;
|
|
104
|
+
national_number: string;
|
|
105
|
+
extension_number?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
channel?: {
|
|
108
|
+
client_os?: string | undefined;
|
|
109
|
+
device_type?: string | undefined;
|
|
110
|
+
browser_type?: string | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
country_code?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
preferences?: {
|
|
115
|
+
payment_flow?: "ONE_TIME_PAYMENT" | "RECURRING_PAYMENT" | "VAULT_WITH_PAYMENT" | "VAULT_WITHOUT_PAYMENT" | undefined;
|
|
116
|
+
include_vault_tokens?: boolean | undefined;
|
|
117
|
+
include_account_details?: boolean | undefined;
|
|
118
|
+
payment_source_constraint?: {
|
|
119
|
+
constraint_type: "INCLUDE" | "EXCLUDE";
|
|
120
|
+
payment_sources: string[];
|
|
121
|
+
} | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
124
|
//#endregion
|
|
8
125
|
export { paypalFindEligibleMethods };
|
|
9
126
|
//# sourceMappingURL=find-eligible-methods.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-eligible-methods.d.mts","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"find-eligible-methods.d.mts","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgE9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -40,36 +40,36 @@ const PaypalFindEligibleMethodsInput = z.object({
|
|
|
40
40
|
value: z.string().describe("The monetary value, often in the format '10.00' with two decimal places."),
|
|
41
41
|
currency_code: z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
|
|
42
42
|
}).describe("The currency and amount for the purchase unit.")
|
|
43
|
-
}).describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
|
|
43
|
+
}).passthrough().describe("Purchase unit for payment eligibility.")).describe("An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.")
|
|
44
44
|
}).describe("Request schema for finding eligible payment methods.\n\nUse this action when you need to discover which payment methods\nare available for a customer based on their country and purchase details.\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\n\n**Required fields:**\n- purchase_units: At least one purchase unit with amount information\n\n**Optional fields:**\n- customer: Customer information including country_code and email\n- preferences: Options for including vault tokens or specifying payment constraints");
|
|
45
45
|
const PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({
|
|
46
46
|
rel: z.string().describe("The link relationship type.").nullable().optional(),
|
|
47
47
|
href: z.string().describe("The complete URL to the related resource.").nullable().optional(),
|
|
48
48
|
method: z.string().describe("The HTTP method required to access the resource.").nullable().optional()
|
|
49
|
-
}).describe("HATEOAS link information.");
|
|
49
|
+
}).passthrough().describe("HATEOAS link information.");
|
|
50
50
|
const PaypalFindEligibleMethods_PaymentSourceSchema = z.object({
|
|
51
51
|
name: z.string().describe("The name on the payment source.").nullable().optional(),
|
|
52
52
|
type: z.string().describe("The type of the payment source.").nullable().optional(),
|
|
53
53
|
source_id: z.string().describe("The source ID of the vaulted instrument.").nullable().optional(),
|
|
54
54
|
attributes: z.record(z.string(), z.unknown()).describe("Additional attributes of the payment source.").nullable().optional(),
|
|
55
55
|
email_address: z.string().describe("The email address associated with the payment source.").nullable().optional()
|
|
56
|
-
}).describe("The vaulted payment method details.");
|
|
56
|
+
}).passthrough().describe("The vaulted payment method details.");
|
|
57
57
|
const PaypalFindEligibleMethods_PaymentTokenSchema = z.object({
|
|
58
|
-
id: z.string().describe("The unique ID of the payment token."),
|
|
58
|
+
id: z.string().describe("The unique ID of the payment token.").nullable(),
|
|
59
59
|
links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe("An array of HATEOAS links related to this payment token.").nullable().optional(),
|
|
60
60
|
payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional()
|
|
61
|
-
}).describe("Payment token for a vaulted instrument.");
|
|
61
|
+
}).passthrough().describe("Payment token for a vaulted instrument.");
|
|
62
62
|
const PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({
|
|
63
63
|
label: z.string().describe("The display label for the payment method.").nullable().optional(),
|
|
64
64
|
vault_status: z.string().describe("The vault status if the payment method is vaulted.").nullable().optional(),
|
|
65
65
|
product_usage: z.record(z.string(), z.unknown()).describe("Product-specific usage information for the payment method.").nullable().optional()
|
|
66
|
-
}).describe("Details about an eligible payment method.");
|
|
66
|
+
}).passthrough().describe("Details about an eligible payment method.");
|
|
67
67
|
const PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({
|
|
68
68
|
venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
|
|
69
69
|
paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
|
|
70
70
|
paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),
|
|
71
71
|
paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional()
|
|
72
|
-
}).describe("The eligible payment methods.");
|
|
72
|
+
}).passthrough().describe("The eligible payment methods.");
|
|
73
73
|
const paypalFindEligibleMethods = action("PAYPAL_FIND_ELIGIBLE_METHODS", {
|
|
74
74
|
slug: "paypal-find-eligible-methods",
|
|
75
75
|
name: "Find eligible PayPal payment methods",
|
|
@@ -78,7 +78,7 @@ const paypalFindEligibleMethods = action("PAYPAL_FIND_ELIGIBLE_METHODS", {
|
|
|
78
78
|
output: z.object({
|
|
79
79
|
payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe("Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.").nullable().optional(),
|
|
80
80
|
eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional()
|
|
81
|
-
}).describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.")
|
|
81
|
+
}).passthrough().describe("Response schema for find eligible payment methods.\n\nContains the list of eligible payment methods and optionally\nvaulted tokens if requested in the preferences.")
|
|
82
82
|
});
|
|
83
83
|
//#endregion
|
|
84
84
|
export { paypalFindEligibleMethods };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-eligible-methods.mjs","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput: z.ZodTypeAny = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\"),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema: z.ZodTypeAny = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput: z.ZodTypeAny = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindEligibleMethodsInput,\n output: PaypalFindEligibleMethodsOutput,\n});\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"find-eligible-methods.mjs","names":[],"sources":["../../src/actions/find-eligible-methods.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalFindEligibleMethodsInput = z.object({\n customer: z.object({\n id: z.string().describe(\"The unique ID for a customer in merchant's or partner's system of records.\").optional(),\n email: z.string().describe(\"The internationalized email address.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"The country calling code, prefixed with '+' followed by the country code.\"),\n national_number: z.string().describe(\"The national number of the phone.\"),\n extension_number: z.string().describe(\"The extension number.\").optional(),\n}).describe(\"The phone number of the customer.\").optional(),\n channel: z.object({\n client_os: z.string().describe(\"The client operating system.\").optional(),\n device_type: z.string().describe(\"The type of device.\").optional(),\n browser_type: z.string().describe(\"The browser type of the customer.\").optional(),\n}).describe(\"The channel through which the customer is interacting with the merchant.\").optional(),\n country_code: z.string().describe(\"The country code of the customer, represented as the ISO 3166-1 alpha-2 country code.\").optional(),\n}).describe(\"Customer who is making a purchase from the merchant/partner.\").optional(),\n preferences: z.object({\n payment_flow: z.enum([\"ONE_TIME_PAYMENT\", \"RECURRING_PAYMENT\", \"VAULT_WITH_PAYMENT\", \"VAULT_WITHOUT_PAYMENT\"]).describe(\"Specifies the payment flow for eligibility assessment.\").optional(),\n include_vault_tokens: z.boolean().default(false).describe(\"If set to true, response will include vaulted token information if the eligible funding source has any instrument vaulted for the customer. Defaults to false.\").optional(),\n include_account_details: z.boolean().default(false).describe(\"If set to true, response will include confirmation if the customer has PayPal and/or Venmo accounts if they are eligible payment methods. Defaults to false.\").optional(),\n payment_source_constraint: z.object({\n constraint_type: z.enum([\"INCLUDE\", \"EXCLUDE\"]).describe(\"The constraint type for the payment sources. Use INCLUDE to restrict to specified sources, or EXCLUDE to exclude specified sources.\"),\n payment_sources: z.array(z.string()).describe(\"The list of payment sources to include or exclude based on the constraint_type.\"),\n}).describe(\"Payment source constraint defines the payment methods to include/exclude for eligibility assessment.\").optional(),\n}).describe(\"Preferences of merchant/partner consuming the API.\").optional(),\n purchase_units: z.array(z.object({\n payee: z.object({\n merchant_id: z.string().describe(\"The PayPal-assigned ID for the payee.\").optional(),\n email_address: z.string().describe(\"The email address of the payee.\").optional(),\n}).describe(\"The payee details for the purchase unit.\").optional(),\n amount: z.object({\n value: z.string().describe(\"The monetary value, often in the format '10.00' with two decimal places.\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\"),\n}).describe(\"The currency and amount for the purchase unit.\"),\n}).passthrough().describe(\"Purchase unit for payment eligibility.\")).describe(\"An array of purchase units for which to determine payment eligibility. Each unit includes amount and optionally payee information.\"),\n}).describe(\"Request schema for finding eligible payment methods.\\n\\nUse this action when you need to discover which payment methods\\nare available for a customer based on their country and purchase details.\\nThis helps determine what payment options (PayPal, Venmo, etc.) can be offered.\\n\\n**Required fields:**\\n- purchase_units: At least one purchase unit with amount information\\n\\n**Optional fields:**\\n- customer: Customer information including country_code and email\\n- preferences: Options for including vault tokens or specifying payment constraints\");\nconst PaypalFindEligibleMethods_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relationship type.\").nullable().optional(),\n href: z.string().describe(\"The complete URL to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to access the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link information.\");\nconst PaypalFindEligibleMethods_PaymentSourceSchema = z.object({\n name: z.string().describe(\"The name on the payment source.\").nullable().optional(),\n type: z.string().describe(\"The type of the payment source.\").nullable().optional(),\n source_id: z.string().describe(\"The source ID of the vaulted instrument.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional attributes of the payment source.\").nullable().optional(),\n email_address: z.string().describe(\"The email address associated with the payment source.\").nullable().optional(),\n}).passthrough().describe(\"The vaulted payment method details.\");\nconst PaypalFindEligibleMethods_PaymentTokenSchema = z.object({\n id: z.string().describe(\"The unique ID of the payment token.\").nullable(),\n links: z.array(PaypalFindEligibleMethods_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment token.\").nullable().optional(),\n payment_source: PaypalFindEligibleMethods_PaymentSourceSchema.nullable().optional(),\n}).passthrough().describe(\"Payment token for a vaulted instrument.\");\nconst PaypalFindEligibleMethods_PaymentMethodDetailsSchema = z.object({\n label: z.string().describe(\"The display label for the payment method.\").nullable().optional(),\n vault_status: z.string().describe(\"The vault status if the payment method is vaulted.\").nullable().optional(),\n product_usage: z.record(z.string(), z.unknown()).describe(\"Product-specific usage information for the payment method.\").nullable().optional(),\n}).passthrough().describe(\"Details about an eligible payment method.\");\nconst PaypalFindEligibleMethods_PaymentMethodsSchema = z.object({\n venmo: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_credit: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n paypal_pay_later: PaypalFindEligibleMethods_PaymentMethodDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"The eligible payment methods.\");\nexport const PaypalFindEligibleMethodsOutput = z.object({\n payment_tokens: z.array(PaypalFindEligibleMethods_PaymentTokenSchema).describe(\"Payment tokens for vaulted instruments, if available. Only included if include_vault_tokens is set to true in the request.\").nullable().optional(),\n eligible_methods: PaypalFindEligibleMethods_PaymentMethodsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for find eligible payment methods.\\n\\nContains the list of eligible payment methods and optionally\\nvaulted tokens if requested in the preferences.\");\n\nexport const paypalFindEligibleMethods = action(\"PAYPAL_FIND_ELIGIBLE_METHODS\", {\n slug: \"paypal-find-eligible-methods\",\n name: \"Find eligible PayPal payment methods\",\n description: \"Find a list of eligible payment methods for a customer. Use this action when you need to determine which payment methods (such as PayPal, PayPal Credit, Pay Later, or Venmo) are available for a customer based on their country and purchase details. This is useful for displaying appropriate payment options during checkout or determining payment eligibility before creating an order. The response includes available payment methods and optionally vaulted tokens if the customer has saved payment instruments. **Common use cases:** - Pre-checkout payment method availability - Display appropriate payment options to customers - Determine eligible funding sources for a transaction\",\n input: PaypalFindEligibleMethodsInput,\n output: PaypalFindEligibleMethodsOutput,\n});\n"],"mappings":"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"}
|
|
@@ -5,8 +5,8 @@ const PaypalGenerateClientTokenInput = zod.z.object({}).describe("Request model
|
|
|
5
5
|
const PaypalGenerateClientTokenOutput = zod.z.object({
|
|
6
6
|
expires_in: zod.z.number().int().describe("The number of seconds until the client token expires.").nullable().optional(),
|
|
7
7
|
token_type: zod.z.string().describe("The type of token returned (e.g., 'Bearer').").nullable().optional(),
|
|
8
|
-
client_token: zod.z.string().describe("The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.")
|
|
9
|
-
}).describe("Response model for client token generation.");
|
|
8
|
+
client_token: zod.z.string().describe("The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.").nullable()
|
|
9
|
+
}).passthrough().describe("Response model for client token generation.");
|
|
10
10
|
const paypalGenerateClientToken = require_action.action("PAYPAL_GENERATE_CLIENT_TOKEN", {
|
|
11
11
|
slug: "paypal-generate-client-token",
|
|
12
12
|
name: "Generate PayPal Client Token",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client-token.cjs","names":["z","action"],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput
|
|
1
|
+
{"version":3,"file":"generate-client-token.cjs","names":["z","action"],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput = z.object({}).describe(\"Request model for generating a PayPal client token.\\n\\nThis endpoint does not require any request body parameters.\\nThe client token is generated based on the authenticated user's credentials\\nwhich are passed via the Authorization header in metadata.\");\nexport const PaypalGenerateClientTokenOutput = z.object({\n expires_in: z.number().int().describe(\"The number of seconds until the client token expires.\").nullable().optional(),\n token_type: z.string().describe(\"The type of token returned (e.g., 'Bearer').\").nullable().optional(),\n client_token: z.string().describe(\"The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.\").nullable(),\n}).passthrough().describe(\"Response model for client token generation.\");\n\nexport const paypalGenerateClientToken = action(\"PAYPAL_GENERATE_CLIENT_TOKEN\", {\n slug: \"paypal-generate-client-token\",\n name: \"Generate PayPal Client Token\",\n description: \"Generate a client token for PayPal JavaScript SDK integration. Use this action when you need to obtain a client token for accepting PayPal payments on the client side. The client token is required when initializing the PayPal JS SDK (paypal.Buttons() or paypal.Messages()) in your web application. This action requires no request body parameters - the token is generated based on your authenticated credentials (Bearer token in Authorization header). Note: Client tokens are short-lived and should be fetched fresh before each checkout session. Do not cache or reuse client tokens across multiple sessions.\",\n input: PaypalGenerateClientTokenInput,\n output: PaypalGenerateClientTokenOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6PAA6P;AACjU,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-client-token.d.ts
|
|
4
|
-
declare const PaypalGenerateClientTokenInput: z.
|
|
5
|
-
declare const PaypalGenerateClientTokenOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PaypalGenerateClientTokenInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PaypalGenerateClientTokenOutput: z.ZodObject<{
|
|
6
|
+
expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
token_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
client_token: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { paypalGenerateClientToken };
|
|
9
13
|
//# sourceMappingURL=generate-client-token.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client-token.d.cts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"generate-client-token.d.cts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-client-token.d.ts
|
|
4
|
-
declare const PaypalGenerateClientTokenInput: z.
|
|
5
|
-
declare const PaypalGenerateClientTokenOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PaypalGenerateClientTokenInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PaypalGenerateClientTokenOutput: z.ZodObject<{
|
|
6
|
+
expires_in: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
token_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
client_token: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const paypalGenerateClientToken: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
11
|
//#endregion
|
|
8
12
|
export { paypalGenerateClientToken };
|
|
9
13
|
//# sourceMappingURL=generate-client-token.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client-token.d.mts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"generate-client-token.d.mts","names":[],"sources":["../../src/actions/generate-client-token.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,gCAAyB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -8,8 +8,8 @@ const paypalGenerateClientToken = action("PAYPAL_GENERATE_CLIENT_TOKEN", {
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
expires_in: z.number().int().describe("The number of seconds until the client token expires.").nullable().optional(),
|
|
10
10
|
token_type: z.string().describe("The type of token returned (e.g., 'Bearer').").nullable().optional(),
|
|
11
|
-
client_token: z.string().describe("The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.")
|
|
12
|
-
}).describe("Response model for client token generation.")
|
|
11
|
+
client_token: z.string().describe("The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.").nullable()
|
|
12
|
+
}).passthrough().describe("Response model for client token generation.")
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
15
15
|
export { paypalGenerateClientToken };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-client-token.mjs","names":[],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput
|
|
1
|
+
{"version":3,"file":"generate-client-token.mjs","names":[],"sources":["../../src/actions/generate-client-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateClientTokenInput = z.object({}).describe(\"Request model for generating a PayPal client token.\\n\\nThis endpoint does not require any request body parameters.\\nThe client token is generated based on the authenticated user's credentials\\nwhich are passed via the Authorization header in metadata.\");\nexport const PaypalGenerateClientTokenOutput = z.object({\n expires_in: z.number().int().describe(\"The number of seconds until the client token expires.\").nullable().optional(),\n token_type: z.string().describe(\"The type of token returned (e.g., 'Bearer').\").nullable().optional(),\n client_token: z.string().describe(\"The client token string that can be used in the PayPal JavaScript SDK to render PayPal buttons and accept payments.\").nullable(),\n}).passthrough().describe(\"Response model for client token generation.\");\n\nexport const paypalGenerateClientToken = action(\"PAYPAL_GENERATE_CLIENT_TOKEN\", {\n slug: \"paypal-generate-client-token\",\n name: \"Generate PayPal Client Token\",\n description: \"Generate a client token for PayPal JavaScript SDK integration. Use this action when you need to obtain a client token for accepting PayPal payments on the client side. The client token is required when initializing the PayPal JS SDK (paypal.Buttons() or paypal.Messages()) in your web application. This action requires no request body parameters - the token is generated based on your authenticated credentials (Bearer token in Authorization header). Note: Client tokens are short-lived and should be fetched fresh before each checkout session. Do not cache or reuse client tokens across multiple sessions.\",\n input: PaypalGenerateClientTokenInput,\n output: PaypalGenerateClientTokenOutput,\n});\n"],"mappings":";;AAWA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAX4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6PAW3D;CACP,QAX6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CACpK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const PaypalGenerateNextInvoiceNumberV2Input = zod.z.object({ fetch_id: zod.z.bo
|
|
|
5
5
|
const PaypalGenerateNextInvoiceNumberV2Output = zod.z.object({
|
|
6
6
|
invoice_id: zod.z.string().describe("The PayPal-assigned resource ID for the invoice. Pattern: INV2-[A-Z0-9-]{19}").nullable().optional(),
|
|
7
7
|
invoice_number: zod.z.string().describe("The next invoice number in the sequence. If omitted, defaults to the auto-incremented number from the last number.").nullable().optional()
|
|
8
|
-
}).describe("Response schema returned after generating the next invoice number from PayPal API v2.");
|
|
8
|
+
}).passthrough().describe("Response schema returned after generating the next invoice number from PayPal API v2.");
|
|
9
9
|
const paypalGenerateNextInvoiceNumberV2 = require_action.action("PAYPAL_GENERATE_NEXT_INVOICE_NUMBER_V2", {
|
|
10
10
|
slug: "paypal-generate-next-invoice-number-v2",
|
|
11
11
|
name: "Generate Next Invoice Number (v2)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-next-invoice-number-v2.cjs","names":["z","action"],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateNextInvoiceNumberV2Input
|
|
1
|
+
{"version":3,"file":"generate-next-invoice-number-v2.cjs","names":["z","action"],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateNextInvoiceNumberV2Input = z.object({\n fetch_id: z.boolean().describe(\"Optional parameter to decide whether to fetch the next invoice number or ID. Set to true to fetch the ID, false or omitted for the number.\").optional(),\n}).describe(\"Request schema for generating the next invoice number from PayPal Invoicing API v2.\\n\\nUse this when you need to get the next sequential invoice number\\nin your customized format from PayPal's invoicing service v2 API.\");\nexport const PaypalGenerateNextInvoiceNumberV2Output = z.object({\n invoice_id: z.string().describe(\"The PayPal-assigned resource ID for the invoice. Pattern: INV2-[A-Z0-9-]{19}\").nullable().optional(),\n invoice_number: z.string().describe(\"The next invoice number in the sequence. If omitted, defaults to the auto-incremented number from the last number.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after generating the next invoice number from PayPal API v2.\");\n\nexport const paypalGenerateNextInvoiceNumberV2 = action(\"PAYPAL_GENERATE_NEXT_INVOICE_NUMBER_V2\", {\n slug: \"paypal-generate-next-invoice-number-v2\",\n name: \"Generate Next Invoice Number (v2)\",\n description: \"Generates the next invoice number from PayPal's invoicing service using the v2 API. Use this action when you need to retrieve the next sequential invoice number in your customized format before creating an invoice. This ensures consistent invoice numbering across your PayPal invoices. Note: This action queries PayPal for the next available invoice number in your sequence. The format is configured in your PayPal account settings.\",\n input: PaypalGenerateNextInvoiceNumberV2Input,\n output: PaypalGenerateNextInvoiceNumberV2Output,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,EACxL,CAAC,CAAC,CAAC,SAAS,4NAA4N;AACxO,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAAuF;AAEjH,MAAa,oCAAoCC,eAAAA,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-next-invoice-number-v2.d.ts
|
|
4
|
-
declare const PaypalGenerateNextInvoiceNumberV2Input: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalGenerateNextInvoiceNumberV2Input: z.ZodObject<{
|
|
5
|
+
fetch_id: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PaypalGenerateNextInvoiceNumberV2Output: z.ZodObject<{
|
|
8
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const paypalGenerateNextInvoiceNumberV2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
fetch_id?: boolean | undefined;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { paypalGenerateNextInvoiceNumberV2 };
|
|
9
16
|
//# sourceMappingURL=generate-next-invoice-number-v2.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-next-invoice-number-v2.d.cts","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"generate-next-invoice-number-v2.d.cts","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAGtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/generate-next-invoice-number-v2.d.ts
|
|
4
|
-
declare const PaypalGenerateNextInvoiceNumberV2Input: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PaypalGenerateNextInvoiceNumberV2Input: z.ZodObject<{
|
|
5
|
+
fetch_id: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PaypalGenerateNextInvoiceNumberV2Output: z.ZodObject<{
|
|
8
|
+
invoice_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const paypalGenerateNextInvoiceNumberV2: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
fetch_id?: boolean | undefined;
|
|
13
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
14
|
//#endregion
|
|
8
15
|
export { paypalGenerateNextInvoiceNumberV2 };
|
|
9
16
|
//# sourceMappingURL=generate-next-invoice-number-v2.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-next-invoice-number-v2.d.mts","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"generate-next-invoice-number-v2.d.mts","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAGtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;cAKvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const paypalGenerateNextInvoiceNumberV2 = action("PAYPAL_GENERATE_NEXT_INVOICE_N
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
invoice_id: z.string().describe("The PayPal-assigned resource ID for the invoice. Pattern: INV2-[A-Z0-9-]{19}").nullable().optional(),
|
|
10
10
|
invoice_number: z.string().describe("The next invoice number in the sequence. If omitted, defaults to the auto-incremented number from the last number.").nullable().optional()
|
|
11
|
-
}).describe("Response schema returned after generating the next invoice number from PayPal API v2.")
|
|
11
|
+
}).passthrough().describe("Response schema returned after generating the next invoice number from PayPal API v2.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { paypalGenerateNextInvoiceNumberV2 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-next-invoice-number-v2.mjs","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateNextInvoiceNumberV2Input
|
|
1
|
+
{"version":3,"file":"generate-next-invoice-number-v2.mjs","names":[],"sources":["../../src/actions/generate-next-invoice-number-v2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGenerateNextInvoiceNumberV2Input = z.object({\n fetch_id: z.boolean().describe(\"Optional parameter to decide whether to fetch the next invoice number or ID. Set to true to fetch the ID, false or omitted for the number.\").optional(),\n}).describe(\"Request schema for generating the next invoice number from PayPal Invoicing API v2.\\n\\nUse this when you need to get the next sequential invoice number\\nin your customized format from PayPal's invoicing service v2 API.\");\nexport const PaypalGenerateNextInvoiceNumberV2Output = z.object({\n invoice_id: z.string().describe(\"The PayPal-assigned resource ID for the invoice. Pattern: INV2-[A-Z0-9-]{19}\").nullable().optional(),\n invoice_number: z.string().describe(\"The next invoice number in the sequence. If omitted, defaults to the auto-incremented number from the last number.\").nullable().optional(),\n}).passthrough().describe(\"Response schema returned after generating the next invoice number from PayPal API v2.\");\n\nexport const paypalGenerateNextInvoiceNumberV2 = action(\"PAYPAL_GENERATE_NEXT_INVOICE_NUMBER_V2\", {\n slug: \"paypal-generate-next-invoice-number-v2\",\n name: \"Generate Next Invoice Number (v2)\",\n description: \"Generates the next invoice number from PayPal's invoicing service using the v2 API. Use this action when you need to retrieve the next sequential invoice number in your customized format before creating an invoice. This ensures consistent invoice numbering across your PayPal invoices. Note: This action queries PayPal for the next available invoice number in your sequence. The format is configured in your PayPal account settings.\",\n input: PaypalGenerateNextInvoiceNumberV2Input,\n output: PaypalGenerateNextInvoiceNumberV2Output,\n});\n"],"mappings":";;AAYA,MAAa,oCAAoC,OAAO,0CAA0C;CAChG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,EAC7D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,EACxL,CAAC,CAAC,CAAC,SAAS,4NAUH;CACP,QAVqD,EAAE,OAAO;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uFAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/generate-next-invoice-number.ts
|
|
4
4
|
const PaypalGenerateNextInvoiceNumberInput = zod.z.object({}).describe("Request schema for generating the next invoice number from PayPal.\n\nUse this when you need to get the next sequential invoice number\nin your customized format from PayPal's invoicing service.");
|
|
5
|
-
const PaypalGenerateNextInvoiceNumberOutput = zod.z.object({ number: zod.z.string().describe("The next invoice number in the sequence.") }).describe("Response schema returned after generating the next invoice number.");
|
|
5
|
+
const PaypalGenerateNextInvoiceNumberOutput = zod.z.object({ number: zod.z.string().describe("The next invoice number in the sequence.").nullable() }).passthrough().describe("Response schema returned after generating the next invoice number.");
|
|
6
6
|
const paypalGenerateNextInvoiceNumber = require_action.action("PAYPAL_GENERATE_NEXT_INVOICE_NUMBER", {
|
|
7
7
|
slug: "paypal-generate-next-invoice-number",
|
|
8
8
|
name: "Generate Next Invoice Number",
|