@keystrokehq/paypal 0.1.2 → 0.1.4
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/actions/activate-plan.cjs +1 -1
- package/dist/actions/activate-plan.cjs.map +1 -1
- package/dist/actions/activate-plan.d.cts +14 -2
- package/dist/actions/activate-plan.d.mts +14 -2
- package/dist/actions/activate-plan.mjs +1 -1
- package/dist/actions/activate-plan.mjs.map +1 -1
- package/dist/actions/add-batch-trackers.cjs +5 -5
- package/dist/actions/add-batch-trackers.cjs.map +1 -1
- package/dist/actions/add-batch-trackers.d.cts +21 -8
- package/dist/actions/add-batch-trackers.d.mts +21 -8
- package/dist/actions/add-batch-trackers.mjs +5 -5
- package/dist/actions/add-batch-trackers.mjs.map +1 -1
- package/dist/actions/authorize-order.cjs +16 -16
- package/dist/actions/authorize-order.cjs.map +1 -1
- package/dist/actions/authorize-order.d.cts +34 -22
- package/dist/actions/authorize-order.d.cts.map +1 -1
- package/dist/actions/authorize-order.d.mts +34 -22
- package/dist/actions/authorize-order.d.mts.map +1 -1
- package/dist/actions/authorize-order.mjs +16 -16
- package/dist/actions/authorize-order.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +3 -3
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +16 -4
- package/dist/actions/cancel-invoice.d.mts +16 -4
- package/dist/actions/cancel-invoice.mjs +3 -3
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-reminders.cjs +3 -3
- package/dist/actions/cancel-reminders.cjs.map +1 -1
- package/dist/actions/cancel-reminders.d.cts +16 -4
- package/dist/actions/cancel-reminders.d.mts +16 -4
- package/dist/actions/cancel-reminders.mjs +3 -3
- package/dist/actions/cancel-reminders.mjs.map +1 -1
- package/dist/actions/capture-subscription-payment.cjs +9 -9
- package/dist/actions/capture-subscription-payment.cjs.map +1 -1
- package/dist/actions/capture-subscription-payment.d.cts +23 -11
- package/dist/actions/capture-subscription-payment.d.mts +23 -11
- package/dist/actions/capture-subscription-payment.mjs +9 -9
- 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 +14 -2
- package/dist/actions/charge-payment-method.d.cts.map +1 -1
- package/dist/actions/charge-payment-method.d.mts +14 -2
- 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 +22 -22
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +49 -34
- package/dist/actions/create-invoice.d.mts +49 -34
- package/dist/actions/create-invoice.mjs +22 -22
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-payment.cjs +31 -31
- package/dist/actions/create-payment.cjs.map +1 -1
- package/dist/actions/create-payment.d.cts +55 -39
- package/dist/actions/create-payment.d.mts +55 -39
- package/dist/actions/create-payment.mjs +31 -31
- package/dist/actions/create-payment.mjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.cjs +8 -8
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.cts +24 -10
- package/dist/actions/create-payments-billing-plans.d.mts +24 -10
- package/dist/actions/create-payments-billing-plans.mjs +8 -8
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +12 -12
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +27 -14
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +27 -14
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +12 -12
- 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 +15 -3
- package/dist/actions/create-product.d.mts +15 -3
- package/dist/actions/create-product.mjs +2 -2
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/create-subscription.cjs +15 -15
- package/dist/actions/create-subscription.cjs.map +1 -1
- package/dist/actions/create-subscription.d.cts +34 -21
- package/dist/actions/create-subscription.d.mts +34 -21
- package/dist/actions/create-subscription.mjs +15 -15
- package/dist/actions/create-subscription.mjs.map +1 -1
- package/dist/actions/create-template.cjs +25 -25
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +49 -31
- package/dist/actions/create-template.d.mts +49 -31
- package/dist/actions/create-template.mjs +25 -25
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-web-profile.cjs +5 -5
- package/dist/actions/create-web-profile.cjs.map +1 -1
- package/dist/actions/create-web-profile.d.cts +18 -6
- package/dist/actions/create-web-profile.d.mts +18 -6
- package/dist/actions/create-web-profile.mjs +5 -5
- package/dist/actions/create-web-profile.mjs.map +1 -1
- package/dist/actions/create-webhook-lookup.cjs +2 -2
- package/dist/actions/create-webhook-lookup.cjs.map +1 -1
- package/dist/actions/create-webhook-lookup.d.cts +15 -3
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/create-webhook-lookup.d.mts +15 -3
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/create-webhook-lookup.mjs +2 -2
- package/dist/actions/create-webhook-lookup.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +4 -4
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +18 -5
- package/dist/actions/create-webhook.d.mts +18 -5
- package/dist/actions/create-webhook.mjs +4 -4
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/deactivate-plan.cjs +1 -1
- package/dist/actions/deactivate-plan.cjs.map +1 -1
- package/dist/actions/deactivate-plan.d.cts +14 -2
- package/dist/actions/deactivate-plan.d.mts +14 -2
- package/dist/actions/deactivate-plan.mjs +1 -1
- 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 +14 -2
- package/dist/actions/delete-external-payment.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-invoice-payment-record.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-invoice-refund-record.d.mts +14 -2
- 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 +3 -3
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +16 -4
- package/dist/actions/delete-invoice.d.mts +16 -4
- package/dist/actions/delete-invoice.mjs +3 -3
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment-resource.cjs +1 -1
- package/dist/actions/delete-payment-resource.cjs.map +1 -1
- package/dist/actions/delete-payment-resource.d.cts +14 -2
- package/dist/actions/delete-payment-resource.d.mts +14 -2
- package/dist/actions/delete-payment-resource.mjs +1 -1
- package/dist/actions/delete-payment-resource.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +3 -3
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +16 -4
- package/dist/actions/delete-template.d.mts +16 -4
- package/dist/actions/delete-template.mjs +3 -3
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-web-profile.cjs +1 -1
- package/dist/actions/delete-web-profile.cjs.map +1 -1
- package/dist/actions/delete-web-profile.d.cts +14 -2
- package/dist/actions/delete-web-profile.d.mts +14 -2
- package/dist/actions/delete-web-profile.mjs +1 -1
- package/dist/actions/delete-web-profile.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +3 -3
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +16 -4
- package/dist/actions/delete-webhook.d.mts +16 -4
- package/dist/actions/delete-webhook.mjs +3 -3
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-node.cjs +5 -5
- package/dist/actions/fetch-node.cjs.map +1 -1
- package/dist/actions/fetch-node.d.cts +18 -6
- package/dist/actions/fetch-node.d.mts +18 -6
- package/dist/actions/fetch-node.mjs +5 -5
- 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 +16 -4
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +16 -4
- 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 +7 -7
- package/dist/actions/find-eligible-methods.cjs.map +1 -1
- package/dist/actions/find-eligible-methods.d.cts +24 -11
- package/dist/actions/find-eligible-methods.d.mts +24 -11
- package/dist/actions/find-eligible-methods.mjs +7 -7
- package/dist/actions/find-eligible-methods.mjs.map +1 -1
- package/dist/actions/generate-client-token.cjs +1 -1
- package/dist/actions/generate-client-token.cjs.map +1 -1
- package/dist/actions/generate-client-token.d.cts +14 -2
- package/dist/actions/generate-client-token.d.cts.map +1 -1
- package/dist/actions/generate-client-token.d.mts +14 -2
- package/dist/actions/generate-client-token.d.mts.map +1 -1
- package/dist/actions/generate-client-token.mjs +1 -1
- 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 +14 -2
- package/dist/actions/generate-next-invoice-number-v2.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.mts +14 -2
- 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 +4 -4
- package/dist/actions/generate-qr-code.cjs.map +1 -1
- package/dist/actions/generate-qr-code.d.cts +17 -5
- package/dist/actions/generate-qr-code.d.mts +17 -5
- package/dist/actions/generate-qr-code.mjs +4 -4
- 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 +24 -12
- package/dist/actions/get-billing-subscriptions.d.mts +24 -12
- 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 +24 -24
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +45 -33
- package/dist/actions/get-invoice.d.mts +45 -33
- package/dist/actions/get-invoice.mjs +24 -24
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +2 -2
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +15 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +15 -3
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +2 -2
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
- package/dist/actions/get-invoicing-template.cjs +20 -20
- package/dist/actions/get-invoicing-template.cjs.map +1 -1
- package/dist/actions/get-invoicing-template.d.cts +42 -30
- package/dist/actions/get-invoicing-template.d.mts +42 -30
- package/dist/actions/get-invoicing-template.mjs +20 -20
- 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 +37 -25
- package/dist/actions/get-order.d.mts +37 -25
- 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 +35 -23
- package/dist/actions/get-payment.d.mts +35 -23
- 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 +16 -4
- package/dist/actions/get-payments-refund.d.mts +16 -4
- 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 +24 -12
- package/dist/actions/get-plan.d.mts +24 -12
- package/dist/actions/get-plan.mjs +11 -11
- package/dist/actions/get-plan.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +15 -3
- package/dist/actions/get-product.d.mts +15 -3
- package/dist/actions/get-product.mjs +2 -2
- 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 +26 -14
- package/dist/actions/get-subscription.d.mts +26 -14
- 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 +16 -4
- package/dist/actions/get-user-info.d.mts +16 -4
- 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 +16 -4
- package/dist/actions/get-userinfo.d.mts +16 -4
- package/dist/actions/get-userinfo.mjs +3 -3
- package/dist/actions/get-userinfo.mjs.map +1 -1
- package/dist/actions/get-web-profile.cjs +4 -4
- package/dist/actions/get-web-profile.cjs.map +1 -1
- package/dist/actions/get-web-profile.d.cts +17 -5
- package/dist/actions/get-web-profile.d.mts +17 -5
- package/dist/actions/get-web-profile.mjs +4 -4
- package/dist/actions/get-web-profile.mjs.map +1 -1
- package/dist/actions/get-webhook-lookup.cjs +2 -2
- 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.mts +15 -3
- package/dist/actions/get-webhook-lookup.mjs +2 -2
- package/dist/actions/get-webhook-lookup.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +4 -4
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +17 -5
- package/dist/actions/get-webhook.d.mts +17 -5
- package/dist/actions/get-webhook.mjs +4 -4
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +5 -5
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +19 -7
- package/dist/actions/list-disputes.d.mts +19 -7
- package/dist/actions/list-disputes.mjs +5 -5
- 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 +32 -20
- package/dist/actions/list-invoices.d.mts +32 -20
- 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 +22 -10
- package/dist/actions/list-legacy-billing-plans.d.mts +22 -10
- 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 +40 -28
- package/dist/actions/list-payments.d.mts +40 -28
- package/dist/actions/list-payments.mjs +20 -20
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +8 -8
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +22 -10
- package/dist/actions/list-plans.d.mts +22 -10
- package/dist/actions/list-plans.mjs +8 -8
- 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 +17 -5
- package/dist/actions/list-products.d.mts +17 -5
- 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 +22 -10
- package/dist/actions/list-templates.d.mts +22 -10
- package/dist/actions/list-templates.mjs +8 -8
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-web-profiles.cjs +6 -6
- package/dist/actions/list-web-profiles.cjs.map +1 -1
- package/dist/actions/list-web-profiles.d.cts +19 -7
- package/dist/actions/list-web-profiles.d.mts +19 -7
- package/dist/actions/list-web-profiles.mjs +6 -6
- package/dist/actions/list-web-profiles.mjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -4
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -4
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
- package/dist/actions/list-webhook-event-types.cjs +3 -3
- package/dist/actions/list-webhook-event-types.cjs.map +1 -1
- package/dist/actions/list-webhook-event-types.d.cts +16 -4
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-types.d.mts +16 -4
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-types.mjs +3 -3
- 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 +16 -4
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
- package/dist/actions/list-webhook-lookups.d.mts +16 -4
- 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 +2 -2
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +15 -3
- package/dist/actions/list-webhooks.d.mts +15 -3
- package/dist/actions/list-webhooks.mjs +2 -2
- 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 +16 -3
- package/dist/actions/patch-orders.d.cts.map +1 -1
- package/dist/actions/patch-orders.d.mts +16 -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 +16 -3
- package/dist/actions/patch-plan.d.mts +16 -3
- package/dist/actions/patch-plan.mjs +2 -2
- package/dist/actions/patch-plan.mjs.map +1 -1
- package/dist/actions/patch-subscription.cjs +3 -3
- package/dist/actions/patch-subscription.cjs.map +1 -1
- package/dist/actions/patch-subscription.d.cts +17 -4
- package/dist/actions/patch-subscription.d.cts.map +1 -1
- package/dist/actions/patch-subscription.d.mts +17 -4
- package/dist/actions/patch-subscription.d.mts.map +1 -1
- package/dist/actions/patch-subscription.mjs +3 -3
- 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 +16 -3
- package/dist/actions/patch-web-profile.d.cts.map +1 -1
- package/dist/actions/patch-web-profile.d.mts +16 -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 +15 -3
- package/dist/actions/ping-braintree.d.cts.map +1 -1
- package/dist/actions/ping-braintree.d.mts +15 -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 +4 -4
- package/dist/actions/query-braintree-report.cjs.map +1 -1
- package/dist/actions/query-braintree-report.d.cts +17 -5
- package/dist/actions/query-braintree-report.d.mts +17 -5
- package/dist/actions/query-braintree-report.mjs +4 -4
- package/dist/actions/query-braintree-report.mjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.cjs +11 -11
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.cts +25 -13
- package/dist/actions/retrieve-payment-resource.d.mts +25 -13
- package/dist/actions/retrieve-payment-resource.mjs +11 -11
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
- package/dist/actions/search-invoices.cjs +11 -11
- package/dist/actions/search-invoices.cjs.map +1 -1
- package/dist/actions/search-invoices.d.cts +28 -16
- package/dist/actions/search-invoices.d.mts +28 -16
- package/dist/actions/search-invoices.mjs +11 -11
- package/dist/actions/search-invoices.mjs.map +1 -1
- package/dist/actions/send-invoice.cjs +2 -2
- package/dist/actions/send-invoice.cjs.map +1 -1
- package/dist/actions/send-invoice.d.cts +15 -3
- package/dist/actions/send-invoice.d.mts +15 -3
- package/dist/actions/send-invoice.mjs +2 -2
- package/dist/actions/send-invoice.mjs.map +1 -1
- package/dist/actions/simulate-webhook-event.cjs +4 -4
- package/dist/actions/simulate-webhook-event.cjs.map +1 -1
- package/dist/actions/simulate-webhook-event.d.cts +17 -5
- package/dist/actions/simulate-webhook-event.d.mts +17 -5
- package/dist/actions/simulate-webhook-event.mjs +4 -4
- package/dist/actions/simulate-webhook-event.mjs.map +1 -1
- package/dist/actions/update-dispute.cjs +3 -3
- package/dist/actions/update-dispute.cjs.map +1 -1
- package/dist/actions/update-dispute.d.cts +17 -4
- package/dist/actions/update-dispute.d.mts +17 -4
- package/dist/actions/update-dispute.mjs +3 -3
- package/dist/actions/update-dispute.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +34 -34
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +67 -49
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +67 -49
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +34 -34
- 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 +16 -3
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-product.d.mts +16 -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 +4 -4
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.cts +18 -5
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.mts +18 -5
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.mjs +4 -4
- 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 +78 -57
- package/dist/actions/update-templates.d.mts +78 -57
- package/dist/actions/update-templates.mjs +39 -39
- package/dist/actions/update-templates.mjs.map +1 -1
- package/dist/actions/update-web-profile.cjs +2 -2
- package/dist/actions/update-web-profile.cjs.map +1 -1
- package/dist/actions/update-web-profile.d.cts +15 -3
- package/dist/actions/update-web-profile.d.mts +15 -3
- package/dist/actions/update-web-profile.mjs +2 -2
- package/dist/actions/update-web-profile.mjs.map +1 -1
- package/dist/actions/verify-payment-method.cjs +2 -2
- package/dist/actions/verify-payment-method.cjs.map +1 -1
- package/dist/actions/verify-payment-method.d.cts +15 -3
- package/dist/actions/verify-payment-method.d.mts +15 -3
- package/dist/actions/verify-payment-method.mjs +2 -2
- 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 +14 -2
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
- package/dist/actions/verify-webhook-signature.d.mts +14 -2
- 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/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPaymentsInput = z.object({\n count: z.number().int().default(25).describe(\"The number of items to return. Default: 10. Maximum: 20.\").optional(),\n status: z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\").optional(),\n end_time: z.string().describe(\"Filters payments created before this date and time (ISO 8601 format).\").optional(),\n payer_id: z.string().describe(\"Filters payments by the PayPal account ID of the payer.\").optional(),\n start_id: z.string().describe(\"The ID of the starting payment in a paginated result set.\").optional(),\n start_time: z.string().describe(\"Filters payments created after this date and time (ISO 8601 format).\").optional(),\n start_index: z.number().int().describe(\"The index of the first payment to return. Must be a multiple of count.\").optional(),\n}).describe(\"Request schema for listing PayPal payments.\\n\\nNOTE: This endpoint is deprecated. For new integrations, use\\n/v1/payments/captures and /v1/payments/authorizations instead.\");\nconst PaypalListPayments_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).describe(\"The request-related HATEOAS link information.\");\nconst PaypalListPayments_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The phone number of the payer.\").nullable().optional(),\n payer_id: z.string().describe(\"The unique PayPal account ID of the payer.\").nullable().optional(),\n shipping_address: z.object({}).describe(\"The payer's shipping address.\").nullable().optional(),\n}).describe(\"The payer information.\");\nconst PaypalListPayments_PaymentStatusSchema = z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\");\nconst PaypalListPayments_PaymentIntentSchema = z.enum([\"SALE\", \"AUTHORIZE\", \"ORDER\"]).describe(\"The intent of the payment.\");\nconst PaypalListPayments_AmountSchema = z.object({\n total: z.string().describe(\"The total amount.\").nullable().optional(),\n details: z.object({}).describe(\"The breakdown of the amount (subtotal, shipping, tax, etc.).\").nullable().optional(),\n currency: z.string().describe(\"The currency code.\").nullable().optional(),\n}).describe(\"The amount for the transaction.\");\nconst PaypalListPayments_CaptureAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable().optional(),\n breakdown: z.object({}).describe(\"The breakdown of the captured amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).describe(\"The amount captured for a payment.\");\nconst PaypalListPayments_SellerProtectionSchema = z.object({\n status: z.string().describe(\"The seller protection status.\").nullable().optional(),\n dispute_categories: z.array(z.string()).describe(\"The list of dispute categories covered.\").nullable().optional(),\n}).describe(\"The seller protection details.\");\nconst PaypalListPayments_CaptureSchema = z.object({\n id: z.string().describe(\"The ID of the capture.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links.\").nullable().optional(),\n amount: PaypalListPayments_CaptureAmountSchema.nullable().optional(),\n status: z.string().describe(\"The status of the capture.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom ID.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time.\").nullable().optional(),\n update_time: z.string().describe(\"The update time.\").nullable().optional(),\n final_capture: z.boolean().describe(\"Indicates if this is the final capture.\").nullable().optional(),\n seller_protection: PaypalListPayments_SellerProtectionSchema.nullable().optional(),\n}).describe(\"The capture details for a payment.\");\nconst PaypalListPayments_RelatedResourceSchema = z.object({\n sale: z.object({}).describe(\"The sale details (deprecated).\").nullable().optional(),\n order: z.object({}).describe(\"The order details.\").nullable().optional(),\n refund: z.object({}).describe(\"The refund details.\").nullable().optional(),\n capture: PaypalListPayments_CaptureSchema.nullable().optional(),\n authorization: z.object({}).describe(\"The authorization details (deprecated).\").nullable().optional(),\n}).describe(\"A related resource for the payment.\");\nconst PaypalListPayments_TransactionSchema = z.object({\n id: z.string().describe(\"The transaction ID.\").nullable().optional(),\n payee: z.object({}).describe(\"The payee details.\").nullable().optional(),\n amount: PaypalListPayments_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"The custom field.\").nullable().optional(),\n status: z.string().describe(\"The status of the transaction.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number.\").nullable().optional(),\n purchase_units: z.array(z.object({})).describe(\"The purchase units (for orders).\").nullable().optional(),\n related_resources: z.array(PaypalListPayments_RelatedResourceSchema).describe(\"The related resources (captures, authorizations).\").nullable().optional(),\n}).describe(\"A transaction for the payment.\");\nconst PaypalListPayments_PaymentElementSchema = z.object({\n id: z.string().describe(\"The unique identifier for the payment.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links related to the payment.\").nullable().optional(),\n payer: PaypalListPayments_PayerInfoSchema.nullable().optional(),\n state: PaypalListPayments_PaymentStatusSchema.nullable().optional(),\n intent: PaypalListPayments_PaymentIntentSchema.nullable().optional(),\n payer_info: PaypalListPayments_PayerInfoSchema.nullable().optional(),\n create_time: z.string().describe(\"The creation time of the payment in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the payment in ISO 8601 format.\").nullable().optional(),\n transactions: z.array(PaypalListPayments_TransactionSchema).describe(\"The list of transactions.\").nullable().optional(),\n failed_transactions: z.array(z.object({})).describe(\"The list of failed transactions.\").nullable().optional(),\n}).describe(\"A payment object in the list response.\");\nexport const PaypalListPaymentsOutput = z.object({\n count: z.number().int().describe(\"The number of payments in the response.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links for navigation.\").nullable().optional(),\n next_id: z.string().describe(\"The ID of the next payment in a paginated result set.\").nullable().optional(),\n payments: z.array(PaypalListPayments_PaymentElementSchema).describe(\"An array of payment objects.\"),\n}).describe(\"Response schema for the ListPayments action containing an array of payments.\");\n\nexport const paypalListPayments = action(\"PAYPAL_LIST_PAYMENTS\", {\n slug: \"paypal-list-payments\",\n name: \"List Payments\",\n description: \"Lists payment information for authorized payments. Use when you need to retrieve a list of PayPal payments with optional filtering by time, payer, or status. This action is useful for reconciling transactions, monitoring payment states, and building payment dashboards. Results are paginated and can be filtered by various criteria including creation time, payer ID, and payment status. NOTE: This endpoint is deprecated. For new integrations, use /v1/payments/captures and /v1/payments/authorizations instead.\",\n input: PaypalListPaymentsInput,\n output: PaypalListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClH,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAY;EAAU;CAAuB,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAA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AAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,cAAc,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAQpD,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8BAA8B;CACpG,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-payments.mjs","names":[],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPaymentsInput = z.object({\n count: z.number().int().default(25).describe(\"The number of items to return. Default: 10. Maximum: 20.\").optional(),\n status: z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\").optional(),\n end_time: z.string().describe(\"Filters payments created before this date and time (ISO 8601 format).\").optional(),\n payer_id: z.string().describe(\"Filters payments by the PayPal account ID of the payer.\").optional(),\n start_id: z.string().describe(\"The ID of the starting payment in a paginated result set.\").optional(),\n start_time: z.string().describe(\"Filters payments created after this date and time (ISO 8601 format).\").optional(),\n start_index: z.number().int().describe(\"The index of the first payment to return. Must be a multiple of count.\").optional(),\n}).describe(\"Request schema for listing PayPal payments.\\n\\nNOTE: This endpoint is deprecated. For new integrations, use\\n/v1/payments/captures and /v1/payments/authorizations instead.\");\nconst PaypalListPayments_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalListPayments_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The phone number of the payer.\").nullable().optional(),\n payer_id: z.string().describe(\"The unique PayPal account ID of the payer.\").nullable().optional(),\n shipping_address: z.record(z.string(), z.unknown()).describe(\"The payer's shipping address.\").nullable().optional(),\n}).passthrough().describe(\"The payer information.\");\nconst PaypalListPayments_PaymentStatusSchema = z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\");\nconst PaypalListPayments_PaymentIntentSchema = z.enum([\"SALE\", \"AUTHORIZE\", \"ORDER\"]).describe(\"The intent of the payment.\");\nconst PaypalListPayments_AmountSchema = z.object({\n total: z.string().describe(\"The total amount.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"The breakdown of the amount (subtotal, shipping, tax, etc.).\").nullable().optional(),\n currency: z.string().describe(\"The currency code.\").nullable().optional(),\n}).passthrough().describe(\"The amount for the transaction.\");\nconst PaypalListPayments_CaptureAmountSchema = z.object({\n value: z.string().describe(\"The monetary value.\").nullable().optional(),\n breakdown: z.record(z.string(), z.unknown()).describe(\"The breakdown of the captured amount.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The amount captured for a payment.\");\nconst PaypalListPayments_SellerProtectionSchema = z.object({\n status: z.string().describe(\"The seller protection status.\").nullable().optional(),\n dispute_categories: z.array(z.string()).describe(\"The list of dispute categories covered.\").nullable().optional(),\n}).passthrough().describe(\"The seller protection details.\");\nconst PaypalListPayments_CaptureSchema = z.object({\n id: z.string().describe(\"The ID of the capture.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links.\").nullable().optional(),\n amount: PaypalListPayments_CaptureAmountSchema.nullable().optional(),\n status: z.string().describe(\"The status of the capture.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom ID.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time.\").nullable().optional(),\n update_time: z.string().describe(\"The update time.\").nullable().optional(),\n final_capture: z.boolean().describe(\"Indicates if this is the final capture.\").nullable().optional(),\n seller_protection: PaypalListPayments_SellerProtectionSchema.nullable().optional(),\n}).passthrough().describe(\"The capture details for a payment.\");\nconst PaypalListPayments_RelatedResourceSchema = z.object({\n sale: z.record(z.string(), z.unknown()).describe(\"The sale details (deprecated).\").nullable().optional(),\n order: z.record(z.string(), z.unknown()).describe(\"The order details.\").nullable().optional(),\n refund: z.record(z.string(), z.unknown()).describe(\"The refund details.\").nullable().optional(),\n capture: PaypalListPayments_CaptureSchema.nullable().optional(),\n authorization: z.record(z.string(), z.unknown()).describe(\"The authorization details (deprecated).\").nullable().optional(),\n}).passthrough().describe(\"A related resource for the payment.\");\nconst PaypalListPayments_TransactionSchema = z.object({\n id: z.string().describe(\"The transaction ID.\").nullable().optional(),\n payee: z.record(z.string(), z.unknown()).describe(\"The payee details.\").nullable().optional(),\n amount: PaypalListPayments_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"The custom field.\").nullable().optional(),\n status: z.string().describe(\"The status of the transaction.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number.\").nullable().optional(),\n purchase_units: z.array(z.record(z.string(), z.unknown())).describe(\"The purchase units (for orders).\").nullable().optional(),\n related_resources: z.array(PaypalListPayments_RelatedResourceSchema).describe(\"The related resources (captures, authorizations).\").nullable().optional(),\n}).passthrough().describe(\"A transaction for the payment.\");\nconst PaypalListPayments_PaymentElementSchema = z.object({\n id: z.string().describe(\"The unique identifier for the payment.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links related to the payment.\").nullable().optional(),\n payer: PaypalListPayments_PayerInfoSchema.nullable().optional(),\n state: PaypalListPayments_PaymentStatusSchema.nullable().optional(),\n intent: PaypalListPayments_PaymentIntentSchema.nullable().optional(),\n payer_info: PaypalListPayments_PayerInfoSchema.nullable().optional(),\n create_time: z.string().describe(\"The creation time of the payment in ISO 8601 format.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the payment in ISO 8601 format.\").nullable().optional(),\n transactions: z.array(PaypalListPayments_TransactionSchema).describe(\"The list of transactions.\").nullable().optional(),\n failed_transactions: z.array(z.record(z.string(), z.unknown())).describe(\"The list of failed transactions.\").nullable().optional(),\n}).passthrough().describe(\"A payment object in the list response.\");\nexport const PaypalListPaymentsOutput = z.object({\n count: z.number().int().describe(\"The number of payments in the response.\").nullable().optional(),\n links: z.array(PaypalListPayments_LinkDescriptionSchema).describe(\"HATEOAS links for navigation.\").nullable().optional(),\n next_id: z.string().describe(\"The ID of the next payment in a paginated result set.\").nullable().optional(),\n payments: z.array(PaypalListPayments_PaymentElementSchema).describe(\"An array of payment objects.\"),\n}).passthrough().describe(\"Response schema for the ListPayments action containing an array of payments.\");\n\nexport const paypalListPayments = action(\"PAYPAL_LIST_PAYMENTS\", {\n slug: \"paypal-list-payments\",\n name: \"List Payments\",\n description: \"Lists payment information for authorized payments. Use when you need to retrieve a list of PayPal payments with optional filtering by time, payer, or status. This action is useful for reconciling transactions, monitoring payment states, and building payment dashboards. Results are paginated and can be filtered by various criteria including creation time, payer ID, and payment status. NOTE: This endpoint is deprecated. For new integrations, use /v1/payments/captures and /v1/payments/authorizations instead.\",\n input: PaypalListPaymentsInput,\n output: PaypalListPaymentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClH,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAY;EAAU;CAAuB,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACjH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,6KAA6K;AACzL,MAAM,2CAA2C,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+C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AAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAQlE,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZsC,EAAE,OAAO;EAC/C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,OAAO,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8BAA8B;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAOhB;AACV,CAAC"}
|
|
@@ -11,28 +11,28 @@ const PaypalListPlans_LinkDescriptionSchema = zod.z.object({
|
|
|
11
11
|
rel: zod.z.string().describe("The link relation type that describes the meaning of the link.").nullable(),
|
|
12
12
|
href: zod.z.string().describe("The complete target URL. To use the href, you must include the rel and method.").nullable(),
|
|
13
13
|
method: zod.z.string().describe("The HTTP method that must be used to access the link.").nullable().optional()
|
|
14
|
-
}).describe("HATEOAS link description.");
|
|
14
|
+
}).passthrough().describe("HATEOAS link description.");
|
|
15
15
|
const PaypalListPlans_TaxesSchema = zod.z.object({
|
|
16
16
|
inclusive: zod.z.boolean().describe("Indicates whether the tax is inclusive in the amount.").nullable().optional(),
|
|
17
17
|
percentage: zod.z.string().describe("The tax percentage as a decimal string.").nullable().optional()
|
|
18
|
-
}).describe("Tax information.");
|
|
18
|
+
}).passthrough().describe("Tax information.");
|
|
19
19
|
const PaypalListPlans_PricingSchemeSchema = zod.z.object({
|
|
20
|
-
parts: zod.z.array(zod.z.
|
|
20
|
+
parts: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("The pricing parts (e.g., volume tiers, tiered pricing).").nullable().optional(),
|
|
21
21
|
version: zod.z.number().int().describe("The version of the pricing scheme.").nullable().optional(),
|
|
22
22
|
create_time: zod.z.string().describe("The creation time in ISO 8601 format.").nullable().optional(),
|
|
23
23
|
pricing_model: zod.z.string().describe("The pricing model (e.g., TIERED, VOLUME).").nullable().optional()
|
|
24
|
-
}).describe("Pricing scheme details.");
|
|
24
|
+
}).passthrough().describe("Pricing scheme details.");
|
|
25
25
|
const PaypalListPlans_BillingCycleSchema = zod.z.object({
|
|
26
26
|
sequence: zod.z.number().int().describe("The order in which to run the cycle within the tenure.").nullable().optional(),
|
|
27
27
|
tenure_type: zod.z.string().describe("The tenure type of the billing cycle.").nullable().optional(),
|
|
28
28
|
total_cycles: zod.z.number().int().describe("The number of times the billing cycle runs.").nullable().optional(),
|
|
29
29
|
pricing_scheme: PaypalListPlans_PricingSchemeSchema.nullable().optional()
|
|
30
|
-
}).describe("Billing cycle information.");
|
|
30
|
+
}).passthrough().describe("Billing cycle information.");
|
|
31
31
|
const PaypalListPlans_PaymentPreferencesSchema = zod.z.object({
|
|
32
32
|
auto_bill_outstanding: zod.z.boolean().describe("Indicates whether to automatically bill the outstanding amount in the next cycle.").nullable().optional(),
|
|
33
33
|
payment_failure_threshold: zod.z.number().int().describe("The number of consecutive payment failures before suspending the plan.").nullable().optional(),
|
|
34
34
|
initial_amount_success_action: zod.z.string().describe("The action to take when the initial payment is successful.").nullable().optional()
|
|
35
|
-
}).describe("Payment preferences for a plan.");
|
|
35
|
+
}).passthrough().describe("Payment preferences for a plan.");
|
|
36
36
|
const PaypalListPlans_PlanSchema = zod.z.object({
|
|
37
37
|
id: zod.z.string().describe("The unique identifier for the plan.").nullable(),
|
|
38
38
|
name: zod.z.string().describe("The name of the plan.").nullable().optional(),
|
|
@@ -46,13 +46,13 @@ const PaypalListPlans_PlanSchema = zod.z.object({
|
|
|
46
46
|
billing_cycles: zod.z.array(PaypalListPlans_BillingCycleSchema).describe("The billing cycles for the plan.").nullable().optional(),
|
|
47
47
|
quantity_supported: zod.z.boolean().describe("Indicates whether the plan supports quantity.").nullable().optional(),
|
|
48
48
|
payment_preferences: PaypalListPlans_PaymentPreferencesSchema.nullable().optional()
|
|
49
|
-
}).describe("Billing plan details.");
|
|
49
|
+
}).passthrough().describe("Billing plan details.");
|
|
50
50
|
const PaypalListPlansOutput = zod.z.object({
|
|
51
51
|
links: zod.z.array(PaypalListPlans_LinkDescriptionSchema).describe("An array of request-related HATEOAS links for pagination.").nullable().optional(),
|
|
52
52
|
plans: zod.z.array(PaypalListPlans_PlanSchema).describe("An array of plan objects."),
|
|
53
53
|
total_items: zod.z.number().int().describe("The total number of items (only included if total_required is true).").nullable().optional(),
|
|
54
54
|
total_pages: zod.z.number().int().describe("The total number of pages (only included if total_required is true).").nullable().optional()
|
|
55
|
-
}).describe("Response containing a list of billing plans.");
|
|
55
|
+
}).passthrough().describe("Response containing a list of billing plans.");
|
|
56
56
|
const paypalListPlans = require_action.action("PAYPAL_LIST_PLANS", {
|
|
57
57
|
slug: "paypal-list-plans",
|
|
58
58
|
name: "List billing plans",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPlansInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1 and page_size=20 returns the first 20 items.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n product_id: z.string().describe(\"Filters the response by a Product ID.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total count in the response.\").optional(),\n}).describe(\"Request to list billing plans.\");\nconst PaypalListPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type that describes the meaning of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL. To use the href, you must include the rel and method.\").nullable(),\n method: z.string().describe(\"The HTTP method that must be used to access the link.\").nullable().optional(),\n}).describe(\"HATEOAS link description.\");\nconst PaypalListPlans_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax is inclusive in the amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a decimal string.\").nullable().optional(),\n}).describe(\"Tax information.\");\nconst PaypalListPlans_PricingSchemeSchema = z.object({\n parts: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPlansInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1 and page_size=20 returns the first 20 items.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n product_id: z.string().describe(\"Filters the response by a Product ID.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total count in the response.\").optional(),\n}).describe(\"Request to list billing plans.\");\nconst PaypalListPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type that describes the meaning of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL. To use the href, you must include the rel and method.\").nullable(),\n method: z.string().describe(\"The HTTP method that must be used to access the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link description.\");\nconst PaypalListPlans_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax is inclusive in the amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a decimal string.\").nullable().optional(),\n}).passthrough().describe(\"Tax information.\");\nconst PaypalListPlans_PricingSchemeSchema = z.object({\n parts: z.array(z.record(z.string(), z.unknown())).describe(\"The pricing parts (e.g., volume tiers, tiered pricing).\").nullable().optional(),\n version: z.number().int().describe(\"The version of the pricing scheme.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n pricing_model: z.string().describe(\"The pricing model (e.g., TIERED, VOLUME).\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme details.\");\nconst PaypalListPlans_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order in which to run the cycle within the tenure.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The number of times the billing cycle runs.\").nullable().optional(),\n pricing_scheme: PaypalListPlans_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle information.\");\nconst PaypalListPlans_PaymentPreferencesSchema = z.object({\n auto_bill_outstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next cycle.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of consecutive payment failures before suspending the plan.\").nullable().optional(),\n initial_amount_success_action: z.string().describe(\"The action to take when the initial payment is successful.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a plan.\");\nconst PaypalListPlans_PlanSchema = z.object({\n id: z.string().describe(\"The unique identifier for the plan.\").nullable(),\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n links: z.array(PaypalListPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalListPlans_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The status of the plan (ACTIVE, INACTIVE, CREATED, etc.).\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the plan in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the plan in ISO 8601 format.\").nullable().optional(),\n billing_cycles: z.array(PaypalListPlans_BillingCycleSchema).describe(\"The billing cycles for the plan.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether the plan supports quantity.\").nullable().optional(),\n payment_preferences: PaypalListPlans_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Billing plan details.\");\nexport const PaypalListPlansOutput = z.object({\n links: z.array(PaypalListPlans_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links for pagination.\").nullable().optional(),\n plans: z.array(PaypalListPlans_PlanSchema).describe(\"An array of plan objects.\"),\n total_items: z.number().int().describe(\"The total number of items (only included if total_required is true).\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages (only included if total_required is true).\").nullable().optional(),\n}).passthrough().describe(\"Response containing a list of billing plans.\");\n\nexport const paypalListPlans = action(\"PAYPAL_LIST_PLANS\", {\n slug: \"paypal-list-plans\",\n name: \"List billing plans\",\n description: \"Lists billing plans from PayPal with optional filtering and pagination. Use this action when you need to retrieve available billing plans for subscription products. This is a read-only operation that returns plan details including pricing, billing cycles, and status. Results can be filtered by product_id and paginated using page and page_size parameters. The response includes HATEOAS links for navigating between pages and performing related actions (e.g., activate, deactivate, update plan).\",\n input: PaypalListPlansInput,\n output: PaypalListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACjO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAA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AC,SAAS;AACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
12
12
|
rel: z.ZodNullable<z.ZodString>;
|
|
13
13
|
href: z.ZodNullable<z.ZodString>;
|
|
14
14
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>>>;
|
|
16
16
|
plans: z.ZodArray<z.ZodObject<{
|
|
17
17
|
id: z.ZodNullable<z.ZodString>;
|
|
18
18
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,11 +20,11 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
20
20
|
rel: z.ZodNullable<z.ZodString>;
|
|
21
21
|
href: z.ZodNullable<z.ZodString>;
|
|
22
22
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
24
|
taxes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
inclusive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,28 +35,40 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
35
35
|
tenure_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
total_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
37
|
pricing_scheme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
-
parts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
38
|
+
parts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
39
|
version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
40
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
44
|
quantity_supported: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
45
|
payment_preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
auto_bill_outstanding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
47
|
payment_failure_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
48
|
initial_amount_success_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>;
|
|
54
54
|
declare const paypalListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
55
55
|
page?: number | undefined;
|
|
56
56
|
page_size?: number | undefined;
|
|
57
57
|
product_id?: string | undefined;
|
|
58
58
|
total_required?: boolean | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
59
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
60
|
+
connectionId: z.ZodString;
|
|
61
|
+
entityId: z.ZodString;
|
|
62
|
+
instanceId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
accessToken: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
66
|
+
connectionId: z.ZodString;
|
|
67
|
+
entityId: z.ZodString;
|
|
68
|
+
instanceId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
accessToken: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>]>;
|
|
60
72
|
//#endregion
|
|
61
73
|
export { paypalListPlans };
|
|
62
74
|
//# sourceMappingURL=list-plans.d.cts.map
|
|
@@ -12,7 +12,7 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
12
12
|
rel: z.ZodNullable<z.ZodString>;
|
|
13
13
|
href: z.ZodNullable<z.ZodString>;
|
|
14
14
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>>>;
|
|
16
16
|
plans: z.ZodArray<z.ZodObject<{
|
|
17
17
|
id: z.ZodNullable<z.ZodString>;
|
|
18
18
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -20,11 +20,11 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
20
20
|
rel: z.ZodNullable<z.ZodString>;
|
|
21
21
|
href: z.ZodNullable<z.ZodString>;
|
|
22
22
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
24
|
taxes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
inclusive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
26
|
percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
product_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,28 +35,40 @@ declare const PaypalListPlansOutput: z.ZodObject<{
|
|
|
35
35
|
tenure_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
total_cycles: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
37
|
pricing_scheme: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
-
parts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
38
|
+
parts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
39
39
|
version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
40
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
pricing_model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
|
+
}, z.core.$loose>>>>;
|
|
44
44
|
quantity_supported: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
45
|
payment_preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
46
|
auto_bill_outstanding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
47
|
payment_failure_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
48
48
|
initial_amount_success_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, z.core.$
|
|
50
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
52
52
|
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>;
|
|
54
54
|
declare const paypalListPlans: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
55
55
|
page?: number | undefined;
|
|
56
56
|
page_size?: number | undefined;
|
|
57
57
|
product_id?: string | undefined;
|
|
58
58
|
total_required?: boolean | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
59
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
60
|
+
connectionId: z.ZodString;
|
|
61
|
+
entityId: z.ZodString;
|
|
62
|
+
instanceId: z.ZodString;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
accessToken: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
66
|
+
connectionId: z.ZodString;
|
|
67
|
+
entityId: z.ZodString;
|
|
68
|
+
instanceId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
accessToken: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>]>;
|
|
60
72
|
//#endregion
|
|
61
73
|
export { paypalListPlans };
|
|
62
74
|
//# sourceMappingURL=list-plans.d.mts.map
|
|
@@ -11,28 +11,28 @@ const PaypalListPlans_LinkDescriptionSchema = z.object({
|
|
|
11
11
|
rel: z.string().describe("The link relation type that describes the meaning of the link.").nullable(),
|
|
12
12
|
href: z.string().describe("The complete target URL. To use the href, you must include the rel and method.").nullable(),
|
|
13
13
|
method: z.string().describe("The HTTP method that must be used to access the link.").nullable().optional()
|
|
14
|
-
}).describe("HATEOAS link description.");
|
|
14
|
+
}).passthrough().describe("HATEOAS link description.");
|
|
15
15
|
const PaypalListPlans_TaxesSchema = z.object({
|
|
16
16
|
inclusive: z.boolean().describe("Indicates whether the tax is inclusive in the amount.").nullable().optional(),
|
|
17
17
|
percentage: z.string().describe("The tax percentage as a decimal string.").nullable().optional()
|
|
18
|
-
}).describe("Tax information.");
|
|
18
|
+
}).passthrough().describe("Tax information.");
|
|
19
19
|
const PaypalListPlans_PricingSchemeSchema = z.object({
|
|
20
|
-
parts: z.array(z.
|
|
20
|
+
parts: z.array(z.record(z.string(), z.unknown())).describe("The pricing parts (e.g., volume tiers, tiered pricing).").nullable().optional(),
|
|
21
21
|
version: z.number().int().describe("The version of the pricing scheme.").nullable().optional(),
|
|
22
22
|
create_time: z.string().describe("The creation time in ISO 8601 format.").nullable().optional(),
|
|
23
23
|
pricing_model: z.string().describe("The pricing model (e.g., TIERED, VOLUME).").nullable().optional()
|
|
24
|
-
}).describe("Pricing scheme details.");
|
|
24
|
+
}).passthrough().describe("Pricing scheme details.");
|
|
25
25
|
const PaypalListPlans_BillingCycleSchema = z.object({
|
|
26
26
|
sequence: z.number().int().describe("The order in which to run the cycle within the tenure.").nullable().optional(),
|
|
27
27
|
tenure_type: z.string().describe("The tenure type of the billing cycle.").nullable().optional(),
|
|
28
28
|
total_cycles: z.number().int().describe("The number of times the billing cycle runs.").nullable().optional(),
|
|
29
29
|
pricing_scheme: PaypalListPlans_PricingSchemeSchema.nullable().optional()
|
|
30
|
-
}).describe("Billing cycle information.");
|
|
30
|
+
}).passthrough().describe("Billing cycle information.");
|
|
31
31
|
const PaypalListPlans_PaymentPreferencesSchema = z.object({
|
|
32
32
|
auto_bill_outstanding: z.boolean().describe("Indicates whether to automatically bill the outstanding amount in the next cycle.").nullable().optional(),
|
|
33
33
|
payment_failure_threshold: z.number().int().describe("The number of consecutive payment failures before suspending the plan.").nullable().optional(),
|
|
34
34
|
initial_amount_success_action: z.string().describe("The action to take when the initial payment is successful.").nullable().optional()
|
|
35
|
-
}).describe("Payment preferences for a plan.");
|
|
35
|
+
}).passthrough().describe("Payment preferences for a plan.");
|
|
36
36
|
const PaypalListPlans_PlanSchema = z.object({
|
|
37
37
|
id: z.string().describe("The unique identifier for the plan.").nullable(),
|
|
38
38
|
name: z.string().describe("The name of the plan.").nullable().optional(),
|
|
@@ -46,7 +46,7 @@ const PaypalListPlans_PlanSchema = z.object({
|
|
|
46
46
|
billing_cycles: z.array(PaypalListPlans_BillingCycleSchema).describe("The billing cycles for the plan.").nullable().optional(),
|
|
47
47
|
quantity_supported: z.boolean().describe("Indicates whether the plan supports quantity.").nullable().optional(),
|
|
48
48
|
payment_preferences: PaypalListPlans_PaymentPreferencesSchema.nullable().optional()
|
|
49
|
-
}).describe("Billing plan details.");
|
|
49
|
+
}).passthrough().describe("Billing plan details.");
|
|
50
50
|
const paypalListPlans = action("PAYPAL_LIST_PLANS", {
|
|
51
51
|
slug: "paypal-list-plans",
|
|
52
52
|
name: "List billing plans",
|
|
@@ -57,7 +57,7 @@ const paypalListPlans = action("PAYPAL_LIST_PLANS", {
|
|
|
57
57
|
plans: z.array(PaypalListPlans_PlanSchema).describe("An array of plan objects."),
|
|
58
58
|
total_items: z.number().int().describe("The total number of items (only included if total_required is true).").nullable().optional(),
|
|
59
59
|
total_pages: z.number().int().describe("The total number of pages (only included if total_required is true).").nullable().optional()
|
|
60
|
-
}).describe("Response containing a list of billing plans.")
|
|
60
|
+
}).passthrough().describe("Response containing a list of billing plans.")
|
|
61
61
|
});
|
|
62
62
|
//#endregion
|
|
63
63
|
export { paypalListPlans };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPlansInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1 and page_size=20 returns the first 20 items.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n product_id: z.string().describe(\"Filters the response by a Product ID.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total count in the response.\").optional(),\n}).describe(\"Request to list billing plans.\");\nconst PaypalListPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type that describes the meaning of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL. To use the href, you must include the rel and method.\").nullable(),\n method: z.string().describe(\"The HTTP method that must be used to access the link.\").nullable().optional(),\n}).describe(\"HATEOAS link description.\");\nconst PaypalListPlans_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax is inclusive in the amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a decimal string.\").nullable().optional(),\n}).describe(\"Tax information.\");\nconst PaypalListPlans_PricingSchemeSchema = z.object({\n parts: z.array(z.
|
|
1
|
+
{"version":3,"file":"list-plans.mjs","names":[],"sources":["../../src/actions/list-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPlansInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items to return in the response. The combination of page=1 and page_size=20 returns the first 20 items.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n product_id: z.string().describe(\"Filters the response by a Product ID.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total count in the response.\").optional(),\n}).describe(\"Request to list billing plans.\");\nconst PaypalListPlans_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type that describes the meaning of the link.\").nullable(),\n href: z.string().describe(\"The complete target URL. To use the href, you must include the rel and method.\").nullable(),\n method: z.string().describe(\"The HTTP method that must be used to access the link.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link description.\");\nconst PaypalListPlans_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax is inclusive in the amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a decimal string.\").nullable().optional(),\n}).passthrough().describe(\"Tax information.\");\nconst PaypalListPlans_PricingSchemeSchema = z.object({\n parts: z.array(z.record(z.string(), z.unknown())).describe(\"The pricing parts (e.g., volume tiers, tiered pricing).\").nullable().optional(),\n version: z.number().int().describe(\"The version of the pricing scheme.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n pricing_model: z.string().describe(\"The pricing model (e.g., TIERED, VOLUME).\").nullable().optional(),\n}).passthrough().describe(\"Pricing scheme details.\");\nconst PaypalListPlans_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The order in which to run the cycle within the tenure.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The number of times the billing cycle runs.\").nullable().optional(),\n pricing_scheme: PaypalListPlans_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle information.\");\nconst PaypalListPlans_PaymentPreferencesSchema = z.object({\n auto_bill_outstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next cycle.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of consecutive payment failures before suspending the plan.\").nullable().optional(),\n initial_amount_success_action: z.string().describe(\"The action to take when the initial payment is successful.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences for a plan.\");\nconst PaypalListPlans_PlanSchema = z.object({\n id: z.string().describe(\"The unique identifier for the plan.\").nullable(),\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n links: z.array(PaypalListPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n taxes: PaypalListPlans_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The status of the plan (ACTIVE, INACTIVE, CREATED, etc.).\").nullable().optional(),\n product_id: z.string().describe(\"The ID of the product associated with the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time of the plan in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The description of the plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time of the plan in ISO 8601 format.\").nullable().optional(),\n billing_cycles: z.array(PaypalListPlans_BillingCycleSchema).describe(\"The billing cycles for the plan.\").nullable().optional(),\n quantity_supported: z.boolean().describe(\"Indicates whether the plan supports quantity.\").nullable().optional(),\n payment_preferences: PaypalListPlans_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Billing plan details.\");\nexport const PaypalListPlansOutput = z.object({\n links: z.array(PaypalListPlans_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links for pagination.\").nullable().optional(),\n plans: z.array(PaypalListPlans_PlanSchema).describe(\"An array of plan objects.\"),\n total_items: z.number().int().describe(\"The total number of items (only included if total_required is true).\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages (only included if total_required is true).\").nullable().optional(),\n}).passthrough().describe(\"Response containing a list of billing plans.\");\n\nexport const paypalListPlans = action(\"PAYPAL_LIST_PLANS\", {\n slug: \"paypal-list-plans\",\n name: \"List billing plans\",\n description: \"Lists billing plans from PayPal with optional filtering and pagination. Use this action when you need to retrieve available billing plans for subscription products. This is a read-only operation that returns plan details including pricing, billing cycles, and status. Results can be filtered by product_id and paginated using page and page_size parameters. The response includes HATEOAS links for navigating between pages and performing related actions (e.g., activate, deactivate, update plan).\",\n input: PaypalListPlansInput,\n output: PaypalListPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuB,EAAE,OAAO;CAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACjO,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAA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AC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -10,20 +10,20 @@ const PaypalListProducts_LinkDescriptionSchema = zod.z.object({
|
|
|
10
10
|
rel: zod.z.string().describe("The link relation type.").nullable().optional(),
|
|
11
11
|
href: zod.z.string().describe("The hyperlink to the related resource.").nullable().optional(),
|
|
12
12
|
method: zod.z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional()
|
|
13
|
-
}).describe("The request-related HATEOAS link information.");
|
|
13
|
+
}).passthrough().describe("The request-related HATEOAS link information.");
|
|
14
14
|
const PaypalListProducts_ProductElementSchema = zod.z.object({
|
|
15
15
|
id: zod.z.string().describe("The unique identifier for the product.").nullable().optional(),
|
|
16
16
|
name: zod.z.string().describe("The product name.").nullable().optional(),
|
|
17
17
|
links: zod.z.array(PaypalListProducts_LinkDescriptionSchema).describe("An array of links related to the product.").nullable().optional(),
|
|
18
18
|
create_time: zod.z.string().describe("The date and time when the product was created.").nullable().optional(),
|
|
19
19
|
description: zod.z.string().describe("The product description.").nullable().optional()
|
|
20
|
-
}).describe("The details for a product in the collection response.");
|
|
20
|
+
}).passthrough().describe("The details for a product in the collection response.");
|
|
21
21
|
const PaypalListProductsOutput = zod.z.object({
|
|
22
22
|
links: zod.z.array(PaypalListProducts_LinkDescriptionSchema).describe("An array of request-related HATEOAS links.").nullable().optional(),
|
|
23
23
|
products: zod.z.array(PaypalListProducts_ProductElementSchema).describe("An array of products."),
|
|
24
24
|
total_items: zod.z.number().int().describe("The total number of items.").nullable().optional(),
|
|
25
25
|
total_pages: zod.z.number().int().describe("The total number of pages.").nullable().optional()
|
|
26
|
-
}).describe("Response model for listing PayPal products.");
|
|
26
|
+
}).passthrough().describe("Response model for listing PayPal products.");
|
|
27
27
|
const paypalListProducts = require_action.action("PAYPAL_LIST_PRODUCTS", {
|
|
28
28
|
slug: "paypal-list-products",
|
|
29
29
|
name: "List PayPal Products",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListProductsInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items that are returned in the response.\").optional(),\n page_size: z.number().int().default(10).describe(\"The number of items to return in the response. Defaults to 10.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total items and total pages in the response.\").optional(),\n}).describe(\"Request model for listing PayPal products.\");\nconst PaypalListProducts_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).describe(\"The request-related HATEOAS link information.\");\nconst PaypalListProducts_ProductElementSchema = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable().optional(),\n name: z.string().describe(\"The product name.\").nullable().optional(),\n links: z.array(PaypalListProducts_LinkDescriptionSchema).describe(\"An array of links related to the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created.\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n}).describe(\"The details for a product in the collection response.\");\nexport const PaypalListProductsOutput = z.object({\n links: z.array(PaypalListProducts_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n products: z.array(PaypalListProducts_ProductElementSchema).describe(\"An array of products.\"),\n total_items: z.number().int().describe(\"The total number of items.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages.\").nullable().optional(),\n}).describe(\"Response model for listing PayPal products.\");\n\nexport const paypalListProducts = action(\"PAYPAL_LIST_PRODUCTS\", {\n slug: \"paypal-list-products\",\n name: \"List PayPal Products\",\n description: \"List products from the PayPal product catalog. Use when you need to retrieve a paginated list of products with their details, such as product IDs, names, and descriptions. This action supports pagination via page_size and page parameters. Set total_required=true to include total item and page counts in the response.\",\n input: PaypalListProductsInput,\n output: PaypalListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5H,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,+CAA+C;
|
|
1
|
+
{"version":3,"file":"list-products.cjs","names":["z","action"],"sources":["../../src/actions/list-products.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListProductsInput = z.object({\n page: z.number().int().default(1).describe(\"A non-zero integer which is the start index of the entire list of items that are returned in the response.\").optional(),\n page_size: z.number().int().default(10).describe(\"The number of items to return in the response. Defaults to 10.\").optional(),\n total_required: z.boolean().default(false).describe(\"Indicates whether to show the total items and total pages in the response.\").optional(),\n}).describe(\"Request model for listing PayPal products.\");\nconst PaypalListProducts_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The request-related HATEOAS link information.\");\nconst PaypalListProducts_ProductElementSchema = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable().optional(),\n name: z.string().describe(\"The product name.\").nullable().optional(),\n links: z.array(PaypalListProducts_LinkDescriptionSchema).describe(\"An array of links related to the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created.\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n}).passthrough().describe(\"The details for a product in the collection response.\");\nexport const PaypalListProductsOutput = z.object({\n links: z.array(PaypalListProducts_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n products: z.array(PaypalListProducts_ProductElementSchema).describe(\"An array of products.\"),\n total_items: z.number().int().describe(\"The total number of items.\").nullable().optional(),\n total_pages: z.number().int().describe(\"The total number of pages.\").nullable().optional(),\n}).passthrough().describe(\"Response model for listing PayPal products.\");\n\nexport const paypalListProducts = action(\"PAYPAL_LIST_PRODUCTS\", {\n slug: \"paypal-list-products\",\n name: \"List PayPal Products\",\n description: \"List products from the PayPal product catalog. Use when you need to retrieve a paginated list of products with their details, such as product IDs, names, and descriptions. This action supports pagination via page_size and page parameters. Set total_required=true to include total item and page counts in the response.\",\n input: PaypalListProductsInput,\n output: PaypalListProductsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAClK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5H,gBAAgBA,IAAAA,EAAE,QAAQ,CAA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AAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,uBAAuB;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ declare const PaypalListProductsOutput: z.ZodObject<{
|
|
|
11
11
|
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
15
|
products: z.ZodArray<z.ZodObject<{
|
|
16
16
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,18 +19,30 @@ declare const PaypalListProductsOutput: z.ZodObject<{
|
|
|
19
19
|
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
23
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const paypalListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
page?: number | undefined;
|
|
31
31
|
page_size?: number | undefined;
|
|
32
32
|
total_required?: boolean | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
entityId: z.ZodString;
|
|
36
|
+
instanceId: z.ZodString;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
accessToken: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
40
|
+
connectionId: z.ZodString;
|
|
41
|
+
entityId: z.ZodString;
|
|
42
|
+
instanceId: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
accessToken: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>]>;
|
|
34
46
|
//#endregion
|
|
35
47
|
export { paypalListProducts };
|
|
36
48
|
//# sourceMappingURL=list-products.d.cts.map
|
|
@@ -11,7 +11,7 @@ declare const PaypalListProductsOutput: z.ZodObject<{
|
|
|
11
11
|
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
15
|
products: z.ZodArray<z.ZodObject<{
|
|
16
16
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,18 +19,30 @@ declare const PaypalListProductsOutput: z.ZodObject<{
|
|
|
19
19
|
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>>;
|
|
23
23
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
total_items: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
total_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const paypalListProducts: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
page?: number | undefined;
|
|
31
31
|
page_size?: number | undefined;
|
|
32
32
|
total_required?: boolean | undefined;
|
|
33
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
33
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
entityId: z.ZodString;
|
|
36
|
+
instanceId: z.ZodString;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
accessToken: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
40
|
+
connectionId: z.ZodString;
|
|
41
|
+
entityId: z.ZodString;
|
|
42
|
+
instanceId: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
accessToken: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>]>;
|
|
34
46
|
//#endregion
|
|
35
47
|
export { paypalListProducts };
|
|
36
48
|
//# sourceMappingURL=list-products.d.mts.map
|
|
@@ -10,14 +10,14 @@ const PaypalListProducts_LinkDescriptionSchema = z.object({
|
|
|
10
10
|
rel: z.string().describe("The link relation type.").nullable().optional(),
|
|
11
11
|
href: z.string().describe("The hyperlink to the related resource.").nullable().optional(),
|
|
12
12
|
method: z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional()
|
|
13
|
-
}).describe("The request-related HATEOAS link information.");
|
|
13
|
+
}).passthrough().describe("The request-related HATEOAS link information.");
|
|
14
14
|
const PaypalListProducts_ProductElementSchema = z.object({
|
|
15
15
|
id: z.string().describe("The unique identifier for the product.").nullable().optional(),
|
|
16
16
|
name: z.string().describe("The product name.").nullable().optional(),
|
|
17
17
|
links: z.array(PaypalListProducts_LinkDescriptionSchema).describe("An array of links related to the product.").nullable().optional(),
|
|
18
18
|
create_time: z.string().describe("The date and time when the product was created.").nullable().optional(),
|
|
19
19
|
description: z.string().describe("The product description.").nullable().optional()
|
|
20
|
-
}).describe("The details for a product in the collection response.");
|
|
20
|
+
}).passthrough().describe("The details for a product in the collection response.");
|
|
21
21
|
const paypalListProducts = action("PAYPAL_LIST_PRODUCTS", {
|
|
22
22
|
slug: "paypal-list-products",
|
|
23
23
|
name: "List PayPal Products",
|
|
@@ -28,7 +28,7 @@ const paypalListProducts = action("PAYPAL_LIST_PRODUCTS", {
|
|
|
28
28
|
products: z.array(PaypalListProducts_ProductElementSchema).describe("An array of products."),
|
|
29
29
|
total_items: z.number().int().describe("The total number of items.").nullable().optional(),
|
|
30
30
|
total_pages: z.number().int().describe("The total number of pages.").nullable().optional()
|
|
31
|
-
}).describe("Response model for listing PayPal products.")
|
|
31
|
+
}).passthrough().describe("Response model for listing PayPal products.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { paypalListProducts };
|