@keystrokehq/paypal 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/activate-plan.cjs +19 -0
- package/dist/actions/activate-plan.cjs.map +1 -0
- package/dist/actions/activate-plan.d.cts +9 -0
- package/dist/actions/activate-plan.d.cts.map +1 -0
- package/dist/actions/activate-plan.d.mts +9 -0
- package/dist/actions/activate-plan.d.mts.map +1 -0
- package/dist/actions/activate-plan.mjs +16 -0
- package/dist/actions/activate-plan.mjs.map +1 -0
- package/dist/actions/add-batch-trackers.cjs +62 -0
- package/dist/actions/add-batch-trackers.cjs.map +1 -0
- package/dist/actions/add-batch-trackers.d.cts +9 -0
- package/dist/actions/add-batch-trackers.d.cts.map +1 -0
- package/dist/actions/add-batch-trackers.d.mts +9 -0
- package/dist/actions/add-batch-trackers.d.mts.map +1 -0
- package/dist/actions/add-batch-trackers.mjs +61 -0
- package/dist/actions/add-batch-trackers.mjs.map +1 -0
- package/dist/actions/authorize-order.cjs +101 -0
- package/dist/actions/authorize-order.cjs.map +1 -0
- package/dist/actions/authorize-order.d.cts +9 -0
- package/dist/actions/authorize-order.d.cts.map +1 -0
- package/dist/actions/authorize-order.d.mts +9 -0
- package/dist/actions/authorize-order.d.mts.map +1 -0
- package/dist/actions/authorize-order.mjs +100 -0
- package/dist/actions/authorize-order.mjs.map +1 -0
- package/dist/actions/cancel-invoice.cjs +44 -0
- package/dist/actions/cancel-invoice.cjs.map +1 -0
- package/dist/actions/cancel-invoice.d.cts +9 -0
- package/dist/actions/cancel-invoice.d.cts.map +1 -0
- package/dist/actions/cancel-invoice.d.mts +9 -0
- package/dist/actions/cancel-invoice.d.mts.map +1 -0
- package/dist/actions/cancel-invoice.mjs +43 -0
- package/dist/actions/cancel-invoice.mjs.map +1 -0
- package/dist/actions/cancel-reminders.cjs +36 -0
- package/dist/actions/cancel-reminders.cjs.map +1 -0
- package/dist/actions/cancel-reminders.d.cts +9 -0
- package/dist/actions/cancel-reminders.d.cts.map +1 -0
- package/dist/actions/cancel-reminders.d.mts +9 -0
- package/dist/actions/cancel-reminders.d.mts.map +1 -0
- package/dist/actions/cancel-reminders.mjs +35 -0
- package/dist/actions/cancel-reminders.mjs.map +1 -0
- package/dist/actions/capture-subscription-payment.cjs +79 -0
- package/dist/actions/capture-subscription-payment.cjs.map +1 -0
- package/dist/actions/capture-subscription-payment.d.cts +9 -0
- package/dist/actions/capture-subscription-payment.d.cts.map +1 -0
- package/dist/actions/capture-subscription-payment.d.mts +9 -0
- package/dist/actions/capture-subscription-payment.d.mts.map +1 -0
- package/dist/actions/capture-subscription-payment.mjs +78 -0
- package/dist/actions/capture-subscription-payment.mjs.map +1 -0
- package/dist/actions/charge-payment-method.cjs +58 -0
- package/dist/actions/charge-payment-method.cjs.map +1 -0
- package/dist/actions/charge-payment-method.d.cts +9 -0
- package/dist/actions/charge-payment-method.d.cts.map +1 -0
- package/dist/actions/charge-payment-method.d.mts +9 -0
- package/dist/actions/charge-payment-method.d.mts.map +1 -0
- package/dist/actions/charge-payment-method.mjs +55 -0
- package/dist/actions/charge-payment-method.mjs.map +1 -0
- package/dist/actions/create-invoice.cjs +294 -0
- package/dist/actions/create-invoice.cjs.map +1 -0
- package/dist/actions/create-invoice.d.cts +9 -0
- package/dist/actions/create-invoice.d.cts.map +1 -0
- package/dist/actions/create-invoice.d.mts +9 -0
- package/dist/actions/create-invoice.d.mts.map +1 -0
- package/dist/actions/create-invoice.mjs +293 -0
- package/dist/actions/create-invoice.mjs.map +1 -0
- package/dist/actions/create-payment.cjs +178 -0
- package/dist/actions/create-payment.cjs.map +1 -0
- package/dist/actions/create-payment.d.cts +9 -0
- package/dist/actions/create-payment.d.cts.map +1 -0
- package/dist/actions/create-payment.d.mts +9 -0
- package/dist/actions/create-payment.d.mts.map +1 -0
- package/dist/actions/create-payment.mjs +177 -0
- package/dist/actions/create-payment.mjs.map +1 -0
- package/dist/actions/create-payments-billing-plans.cjs +111 -0
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -0
- package/dist/actions/create-payments-billing-plans.d.cts +9 -0
- package/dist/actions/create-payments-billing-plans.d.cts.map +1 -0
- package/dist/actions/create-payments-billing-plans.d.mts +9 -0
- package/dist/actions/create-payments-billing-plans.d.mts.map +1 -0
- package/dist/actions/create-payments-billing-plans.mjs +110 -0
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -0
- package/dist/actions/create-plan.cjs +119 -0
- package/dist/actions/create-plan.cjs.map +1 -0
- package/dist/actions/create-plan.d.cts +9 -0
- package/dist/actions/create-plan.d.cts.map +1 -0
- package/dist/actions/create-plan.d.mts +9 -0
- package/dist/actions/create-plan.d.mts.map +1 -0
- package/dist/actions/create-plan.mjs +118 -0
- package/dist/actions/create-plan.mjs.map +1 -0
- package/dist/actions/create-product.cjs +190 -0
- package/dist/actions/create-product.cjs.map +1 -0
- package/dist/actions/create-product.d.cts +9 -0
- package/dist/actions/create-product.d.cts.map +1 -0
- package/dist/actions/create-product.d.mts +9 -0
- package/dist/actions/create-product.d.mts.map +1 -0
- package/dist/actions/create-product.mjs +189 -0
- package/dist/actions/create-product.mjs.map +1 -0
- package/dist/actions/create-subscription.cjs +183 -0
- package/dist/actions/create-subscription.cjs.map +1 -0
- package/dist/actions/create-subscription.d.cts +9 -0
- package/dist/actions/create-subscription.d.cts.map +1 -0
- package/dist/actions/create-subscription.d.mts +9 -0
- package/dist/actions/create-subscription.d.mts.map +1 -0
- package/dist/actions/create-subscription.mjs +182 -0
- package/dist/actions/create-subscription.mjs.map +1 -0
- package/dist/actions/create-template.cjs +234 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +233 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/create-web-profile.cjs +66 -0
- package/dist/actions/create-web-profile.cjs.map +1 -0
- package/dist/actions/create-web-profile.d.cts +9 -0
- package/dist/actions/create-web-profile.d.cts.map +1 -0
- package/dist/actions/create-web-profile.d.mts +9 -0
- package/dist/actions/create-web-profile.d.mts.map +1 -0
- package/dist/actions/create-web-profile.mjs +65 -0
- package/dist/actions/create-web-profile.mjs.map +1 -0
- package/dist/actions/create-webhook-lookup.cjs +25 -0
- package/dist/actions/create-webhook-lookup.cjs.map +1 -0
- package/dist/actions/create-webhook-lookup.d.cts +9 -0
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -0
- package/dist/actions/create-webhook-lookup.d.mts +9 -0
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -0
- package/dist/actions/create-webhook-lookup.mjs +24 -0
- package/dist/actions/create-webhook-lookup.mjs.map +1 -0
- package/dist/actions/create-webhook.cjs +39 -0
- package/dist/actions/create-webhook.cjs.map +1 -0
- package/dist/actions/create-webhook.d.cts +9 -0
- package/dist/actions/create-webhook.d.cts.map +1 -0
- package/dist/actions/create-webhook.d.mts +9 -0
- package/dist/actions/create-webhook.d.mts.map +1 -0
- package/dist/actions/create-webhook.mjs +38 -0
- package/dist/actions/create-webhook.mjs.map +1 -0
- package/dist/actions/deactivate-plan.cjs +19 -0
- package/dist/actions/deactivate-plan.cjs.map +1 -0
- package/dist/actions/deactivate-plan.d.cts +9 -0
- package/dist/actions/deactivate-plan.d.cts.map +1 -0
- package/dist/actions/deactivate-plan.d.mts +9 -0
- package/dist/actions/deactivate-plan.d.mts.map +1 -0
- package/dist/actions/deactivate-plan.mjs +16 -0
- package/dist/actions/deactivate-plan.mjs.map +1 -0
- package/dist/actions/delete-external-payment.cjs +23 -0
- package/dist/actions/delete-external-payment.cjs.map +1 -0
- package/dist/actions/delete-external-payment.d.cts +9 -0
- package/dist/actions/delete-external-payment.d.cts.map +1 -0
- package/dist/actions/delete-external-payment.d.mts +9 -0
- package/dist/actions/delete-external-payment.d.mts.map +1 -0
- package/dist/actions/delete-external-payment.mjs +20 -0
- package/dist/actions/delete-external-payment.mjs.map +1 -0
- package/dist/actions/delete-invoice-payment-record.cjs +23 -0
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -0
- package/dist/actions/delete-invoice-payment-record.d.cts +9 -0
- package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -0
- package/dist/actions/delete-invoice-payment-record.d.mts +9 -0
- package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -0
- package/dist/actions/delete-invoice-payment-record.mjs +20 -0
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -0
- package/dist/actions/delete-invoice-refund-record.cjs +22 -0
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -0
- package/dist/actions/delete-invoice-refund-record.d.cts +9 -0
- package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -0
- package/dist/actions/delete-invoice-refund-record.d.mts +9 -0
- package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -0
- package/dist/actions/delete-invoice-refund-record.mjs +19 -0
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -0
- package/dist/actions/delete-invoice.cjs +36 -0
- package/dist/actions/delete-invoice.cjs.map +1 -0
- package/dist/actions/delete-invoice.d.cts +9 -0
- package/dist/actions/delete-invoice.d.cts.map +1 -0
- package/dist/actions/delete-invoice.d.mts +9 -0
- package/dist/actions/delete-invoice.d.mts.map +1 -0
- package/dist/actions/delete-invoice.mjs +35 -0
- package/dist/actions/delete-invoice.mjs.map +1 -0
- package/dist/actions/delete-payment-resource.cjs +19 -0
- package/dist/actions/delete-payment-resource.cjs.map +1 -0
- package/dist/actions/delete-payment-resource.d.cts +9 -0
- package/dist/actions/delete-payment-resource.d.cts.map +1 -0
- package/dist/actions/delete-payment-resource.d.mts +9 -0
- package/dist/actions/delete-payment-resource.d.mts.map +1 -0
- package/dist/actions/delete-payment-resource.mjs +16 -0
- package/dist/actions/delete-payment-resource.mjs.map +1 -0
- package/dist/actions/delete-template.cjs +36 -0
- package/dist/actions/delete-template.cjs.map +1 -0
- package/dist/actions/delete-template.d.cts +9 -0
- package/dist/actions/delete-template.d.cts.map +1 -0
- package/dist/actions/delete-template.d.mts +9 -0
- package/dist/actions/delete-template.d.mts.map +1 -0
- package/dist/actions/delete-template.mjs +35 -0
- package/dist/actions/delete-template.mjs.map +1 -0
- package/dist/actions/delete-web-profile.cjs +19 -0
- package/dist/actions/delete-web-profile.cjs.map +1 -0
- package/dist/actions/delete-web-profile.d.cts +9 -0
- package/dist/actions/delete-web-profile.d.cts.map +1 -0
- package/dist/actions/delete-web-profile.d.mts +9 -0
- package/dist/actions/delete-web-profile.d.mts.map +1 -0
- package/dist/actions/delete-web-profile.mjs +16 -0
- package/dist/actions/delete-web-profile.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +35 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +34 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/fetch-node.cjs +30 -0
- package/dist/actions/fetch-node.cjs.map +1 -0
- package/dist/actions/fetch-node.d.cts +9 -0
- package/dist/actions/fetch-node.d.cts.map +1 -0
- package/dist/actions/fetch-node.d.mts +9 -0
- package/dist/actions/fetch-node.d.mts.map +1 -0
- package/dist/actions/fetch-node.mjs +29 -0
- package/dist/actions/fetch-node.mjs.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +21 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +9 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +9 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +20 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -0
- package/dist/actions/find-eligible-methods.cjs +87 -0
- package/dist/actions/find-eligible-methods.cjs.map +1 -0
- package/dist/actions/find-eligible-methods.d.cts +9 -0
- package/dist/actions/find-eligible-methods.d.cts.map +1 -0
- package/dist/actions/find-eligible-methods.d.mts +9 -0
- package/dist/actions/find-eligible-methods.d.mts.map +1 -0
- package/dist/actions/find-eligible-methods.mjs +86 -0
- package/dist/actions/find-eligible-methods.mjs.map +1 -0
- package/dist/actions/generate-client-token.cjs +20 -0
- package/dist/actions/generate-client-token.cjs.map +1 -0
- package/dist/actions/generate-client-token.d.cts +9 -0
- package/dist/actions/generate-client-token.d.cts.map +1 -0
- package/dist/actions/generate-client-token.d.mts +9 -0
- package/dist/actions/generate-client-token.d.mts.map +1 -0
- package/dist/actions/generate-client-token.mjs +17 -0
- package/dist/actions/generate-client-token.mjs.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.cjs +19 -0
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.d.cts +9 -0
- package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.d.mts +9 -0
- package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -0
- package/dist/actions/generate-next-invoice-number-v2.mjs +16 -0
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -0
- package/dist/actions/generate-next-invoice-number.cjs +16 -0
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -0
- package/dist/actions/generate-next-invoice-number.d.cts +9 -0
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -0
- package/dist/actions/generate-next-invoice-number.d.mts +9 -0
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -0
- package/dist/actions/generate-next-invoice-number.mjs +13 -0
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -0
- package/dist/actions/generate-qr-code.cjs +46 -0
- package/dist/actions/generate-qr-code.cjs.map +1 -0
- package/dist/actions/generate-qr-code.d.cts +9 -0
- package/dist/actions/generate-qr-code.d.cts.map +1 -0
- package/dist/actions/generate-qr-code.d.mts +9 -0
- package/dist/actions/generate-qr-code.d.mts.map +1 -0
- package/dist/actions/generate-qr-code.mjs +45 -0
- package/dist/actions/generate-qr-code.mjs.map +1 -0
- package/dist/actions/get-billing-subscriptions.cjs +98 -0
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -0
- package/dist/actions/get-billing-subscriptions.d.cts +9 -0
- package/dist/actions/get-billing-subscriptions.d.cts.map +1 -0
- package/dist/actions/get-billing-subscriptions.d.mts +9 -0
- package/dist/actions/get-billing-subscriptions.d.mts.map +1 -0
- package/dist/actions/get-billing-subscriptions.mjs +97 -0
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -0
- package/dist/actions/get-invoice.cjs +159 -0
- package/dist/actions/get-invoice.cjs.map +1 -0
- package/dist/actions/get-invoice.d.cts +9 -0
- package/dist/actions/get-invoice.d.cts.map +1 -0
- package/dist/actions/get-invoice.d.mts +9 -0
- package/dist/actions/get-invoice.d.mts.map +1 -0
- package/dist/actions/get-invoice.mjs +158 -0
- package/dist/actions/get-invoice.mjs.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +29 -0
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +9 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +9 -0
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +28 -0
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -0
- package/dist/actions/get-invoicing-template.cjs +136 -0
- package/dist/actions/get-invoicing-template.cjs.map +1 -0
- package/dist/actions/get-invoicing-template.d.cts +9 -0
- package/dist/actions/get-invoicing-template.d.cts.map +1 -0
- package/dist/actions/get-invoicing-template.d.mts +9 -0
- package/dist/actions/get-invoicing-template.d.mts.map +1 -0
- package/dist/actions/get-invoicing-template.mjs +135 -0
- package/dist/actions/get-invoicing-template.mjs.map +1 -0
- package/dist/actions/get-order.cjs +112 -0
- package/dist/actions/get-order.cjs.map +1 -0
- package/dist/actions/get-order.d.cts +9 -0
- package/dist/actions/get-order.d.cts.map +1 -0
- package/dist/actions/get-order.d.mts +9 -0
- package/dist/actions/get-order.d.mts.map +1 -0
- package/dist/actions/get-order.mjs +111 -0
- package/dist/actions/get-order.mjs.map +1 -0
- package/dist/actions/get-payment.cjs +98 -0
- package/dist/actions/get-payment.cjs.map +1 -0
- package/dist/actions/get-payment.d.cts +9 -0
- package/dist/actions/get-payment.d.cts.map +1 -0
- package/dist/actions/get-payment.d.mts +9 -0
- package/dist/actions/get-payment.d.mts.map +1 -0
- package/dist/actions/get-payment.mjs +97 -0
- package/dist/actions/get-payment.mjs.map +1 -0
- package/dist/actions/get-payments-refund.cjs +37 -0
- package/dist/actions/get-payments-refund.cjs.map +1 -0
- package/dist/actions/get-payments-refund.d.cts +9 -0
- package/dist/actions/get-payments-refund.d.cts.map +1 -0
- package/dist/actions/get-payments-refund.d.mts +9 -0
- package/dist/actions/get-payments-refund.d.mts.map +1 -0
- package/dist/actions/get-payments-refund.mjs +36 -0
- package/dist/actions/get-payments-refund.mjs.map +1 -0
- package/dist/actions/get-plan.cjs +69 -0
- package/dist/actions/get-plan.cjs.map +1 -0
- package/dist/actions/get-plan.d.cts +9 -0
- package/dist/actions/get-plan.d.cts.map +1 -0
- package/dist/actions/get-plan.d.mts +9 -0
- package/dist/actions/get-plan.d.mts.map +1 -0
- package/dist/actions/get-plan.mjs +68 -0
- package/dist/actions/get-plan.mjs.map +1 -0
- package/dist/actions/get-product.cjs +32 -0
- package/dist/actions/get-product.cjs.map +1 -0
- package/dist/actions/get-product.d.cts +9 -0
- package/dist/actions/get-product.d.cts.map +1 -0
- package/dist/actions/get-product.d.mts +9 -0
- package/dist/actions/get-product.d.mts.map +1 -0
- package/dist/actions/get-product.mjs +31 -0
- package/dist/actions/get-product.mjs.map +1 -0
- package/dist/actions/get-subscription.cjs +88 -0
- package/dist/actions/get-subscription.cjs.map +1 -0
- package/dist/actions/get-subscription.d.cts +9 -0
- package/dist/actions/get-subscription.d.cts.map +1 -0
- package/dist/actions/get-subscription.d.mts +9 -0
- package/dist/actions/get-subscription.d.mts.map +1 -0
- package/dist/actions/get-subscription.mjs +87 -0
- package/dist/actions/get-subscription.mjs.map +1 -0
- package/dist/actions/get-user-info.cjs +43 -0
- package/dist/actions/get-user-info.cjs.map +1 -0
- package/dist/actions/get-user-info.d.cts +9 -0
- package/dist/actions/get-user-info.d.cts.map +1 -0
- package/dist/actions/get-user-info.d.mts +9 -0
- package/dist/actions/get-user-info.d.mts.map +1 -0
- package/dist/actions/get-user-info.mjs +42 -0
- package/dist/actions/get-user-info.mjs.map +1 -0
- package/dist/actions/get-userinfo.cjs +55 -0
- package/dist/actions/get-userinfo.cjs.map +1 -0
- package/dist/actions/get-userinfo.d.cts +9 -0
- package/dist/actions/get-userinfo.d.cts.map +1 -0
- package/dist/actions/get-userinfo.d.mts +9 -0
- package/dist/actions/get-userinfo.d.mts.map +1 -0
- package/dist/actions/get-userinfo.mjs +54 -0
- package/dist/actions/get-userinfo.mjs.map +1 -0
- package/dist/actions/get-web-profile.cjs +38 -0
- package/dist/actions/get-web-profile.cjs.map +1 -0
- package/dist/actions/get-web-profile.d.cts +9 -0
- package/dist/actions/get-web-profile.d.cts.map +1 -0
- package/dist/actions/get-web-profile.d.mts +9 -0
- package/dist/actions/get-web-profile.d.mts.map +1 -0
- package/dist/actions/get-web-profile.mjs +37 -0
- package/dist/actions/get-web-profile.mjs.map +1 -0
- package/dist/actions/get-webhook-lookup.cjs +25 -0
- package/dist/actions/get-webhook-lookup.cjs.map +1 -0
- package/dist/actions/get-webhook-lookup.d.cts +9 -0
- package/dist/actions/get-webhook-lookup.d.cts.map +1 -0
- package/dist/actions/get-webhook-lookup.d.mts +9 -0
- package/dist/actions/get-webhook-lookup.d.mts.map +1 -0
- package/dist/actions/get-webhook-lookup.mjs +24 -0
- package/dist/actions/get-webhook-lookup.mjs.map +1 -0
- package/dist/actions/get-webhook.cjs +33 -0
- package/dist/actions/get-webhook.cjs.map +1 -0
- package/dist/actions/get-webhook.d.cts +9 -0
- package/dist/actions/get-webhook.d.cts.map +1 -0
- package/dist/actions/get-webhook.d.mts +9 -0
- package/dist/actions/get-webhook.d.mts.map +1 -0
- package/dist/actions/get-webhook.mjs +32 -0
- package/dist/actions/get-webhook.mjs.map +1 -0
- package/dist/actions/index.cjs +157 -0
- package/dist/actions/index.d.cts +79 -0
- package/dist/actions/index.d.mts +79 -0
- package/dist/actions/index.mjs +79 -0
- package/dist/actions/list-disputes.cjs +62 -0
- package/dist/actions/list-disputes.cjs.map +1 -0
- package/dist/actions/list-disputes.d.cts +9 -0
- package/dist/actions/list-disputes.d.cts.map +1 -0
- package/dist/actions/list-disputes.d.mts +9 -0
- package/dist/actions/list-disputes.d.mts.map +1 -0
- package/dist/actions/list-disputes.mjs +61 -0
- package/dist/actions/list-disputes.mjs.map +1 -0
- package/dist/actions/list-invoices.cjs +81 -0
- package/dist/actions/list-invoices.cjs.map +1 -0
- package/dist/actions/list-invoices.d.cts +9 -0
- package/dist/actions/list-invoices.d.cts.map +1 -0
- package/dist/actions/list-invoices.d.mts +9 -0
- package/dist/actions/list-invoices.d.mts.map +1 -0
- package/dist/actions/list-invoices.mjs +80 -0
- package/dist/actions/list-invoices.mjs.map +1 -0
- package/dist/actions/list-legacy-billing-plans.cjs +87 -0
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -0
- package/dist/actions/list-legacy-billing-plans.d.cts +9 -0
- package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -0
- package/dist/actions/list-legacy-billing-plans.d.mts +9 -0
- package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -0
- package/dist/actions/list-legacy-billing-plans.mjs +86 -0
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -0
- package/dist/actions/list-payments.cjs +112 -0
- package/dist/actions/list-payments.cjs.map +1 -0
- package/dist/actions/list-payments.d.cts +9 -0
- package/dist/actions/list-payments.d.cts.map +1 -0
- package/dist/actions/list-payments.d.mts +9 -0
- package/dist/actions/list-payments.d.mts.map +1 -0
- package/dist/actions/list-payments.mjs +111 -0
- package/dist/actions/list-payments.mjs.map +1 -0
- package/dist/actions/list-plans.cjs +66 -0
- package/dist/actions/list-plans.cjs.map +1 -0
- package/dist/actions/list-plans.d.cts +9 -0
- package/dist/actions/list-plans.d.cts.map +1 -0
- package/dist/actions/list-plans.d.mts +9 -0
- package/dist/actions/list-plans.d.mts.map +1 -0
- package/dist/actions/list-plans.mjs +65 -0
- package/dist/actions/list-plans.mjs.map +1 -0
- package/dist/actions/list-products.cjs +37 -0
- package/dist/actions/list-products.cjs.map +1 -0
- package/dist/actions/list-products.d.cts +9 -0
- package/dist/actions/list-products.d.cts.map +1 -0
- package/dist/actions/list-products.d.mts +9 -0
- package/dist/actions/list-products.d.mts.map +1 -0
- package/dist/actions/list-products.mjs +36 -0
- package/dist/actions/list-products.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +74 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +73 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-web-profiles.cjs +48 -0
- package/dist/actions/list-web-profiles.cjs.map +1 -0
- package/dist/actions/list-web-profiles.d.cts +9 -0
- package/dist/actions/list-web-profiles.d.cts.map +1 -0
- package/dist/actions/list-web-profiles.d.mts +9 -0
- package/dist/actions/list-web-profiles.d.mts.map +1 -0
- package/dist/actions/list-web-profiles.mjs +47 -0
- package/dist/actions/list-web-profiles.mjs.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +23 -0
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +9 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +9 -0
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +22 -0
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -0
- package/dist/actions/list-webhook-event-types.cjs +23 -0
- package/dist/actions/list-webhook-event-types.cjs.map +1 -0
- package/dist/actions/list-webhook-event-types.d.cts +9 -0
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -0
- package/dist/actions/list-webhook-event-types.d.mts +9 -0
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -0
- package/dist/actions/list-webhook-event-types.mjs +22 -0
- package/dist/actions/list-webhook-event-types.mjs.map +1 -0
- package/dist/actions/list-webhook-lookups.cjs +26 -0
- package/dist/actions/list-webhook-lookups.cjs.map +1 -0
- package/dist/actions/list-webhook-lookups.d.cts +9 -0
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -0
- package/dist/actions/list-webhook-lookups.d.mts +9 -0
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -0
- package/dist/actions/list-webhook-lookups.mjs +25 -0
- package/dist/actions/list-webhook-lookups.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +31 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +30 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/patch-orders.cjs +43 -0
- package/dist/actions/patch-orders.cjs.map +1 -0
- package/dist/actions/patch-orders.d.cts +9 -0
- package/dist/actions/patch-orders.d.cts.map +1 -0
- package/dist/actions/patch-orders.d.mts +9 -0
- package/dist/actions/patch-orders.d.mts.map +1 -0
- package/dist/actions/patch-orders.mjs +40 -0
- package/dist/actions/patch-orders.mjs.map +1 -0
- package/dist/actions/patch-plan.cjs +34 -0
- package/dist/actions/patch-plan.cjs.map +1 -0
- package/dist/actions/patch-plan.d.cts +9 -0
- package/dist/actions/patch-plan.d.cts.map +1 -0
- package/dist/actions/patch-plan.d.mts +9 -0
- package/dist/actions/patch-plan.d.mts.map +1 -0
- package/dist/actions/patch-plan.mjs +31 -0
- package/dist/actions/patch-plan.mjs.map +1 -0
- package/dist/actions/patch-subscription.cjs +49 -0
- package/dist/actions/patch-subscription.cjs.map +1 -0
- package/dist/actions/patch-subscription.d.cts +9 -0
- package/dist/actions/patch-subscription.d.cts.map +1 -0
- package/dist/actions/patch-subscription.d.mts +9 -0
- package/dist/actions/patch-subscription.d.mts.map +1 -0
- package/dist/actions/patch-subscription.mjs +48 -0
- package/dist/actions/patch-subscription.mjs.map +1 -0
- package/dist/actions/patch-web-profile.cjs +41 -0
- package/dist/actions/patch-web-profile.cjs.map +1 -0
- package/dist/actions/patch-web-profile.d.cts +9 -0
- package/dist/actions/patch-web-profile.d.cts.map +1 -0
- package/dist/actions/patch-web-profile.d.mts +9 -0
- package/dist/actions/patch-web-profile.d.mts.map +1 -0
- package/dist/actions/patch-web-profile.mjs +38 -0
- package/dist/actions/patch-web-profile.mjs.map +1 -0
- package/dist/actions/ping-braintree.cjs +19 -0
- package/dist/actions/ping-braintree.cjs.map +1 -0
- package/dist/actions/ping-braintree.d.cts +9 -0
- package/dist/actions/ping-braintree.d.cts.map +1 -0
- package/dist/actions/ping-braintree.d.mts +9 -0
- package/dist/actions/ping-braintree.d.mts.map +1 -0
- package/dist/actions/ping-braintree.mjs +16 -0
- package/dist/actions/ping-braintree.mjs.map +1 -0
- package/dist/actions/query-braintree-report.cjs +39 -0
- package/dist/actions/query-braintree-report.cjs.map +1 -0
- package/dist/actions/query-braintree-report.d.cts +9 -0
- package/dist/actions/query-braintree-report.d.cts.map +1 -0
- package/dist/actions/query-braintree-report.d.mts +9 -0
- package/dist/actions/query-braintree-report.d.mts.map +1 -0
- package/dist/actions/query-braintree-report.mjs +38 -0
- package/dist/actions/query-braintree-report.mjs.map +1 -0
- package/dist/actions/retrieve-payment-resource.cjs +72 -0
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -0
- package/dist/actions/retrieve-payment-resource.d.cts +9 -0
- package/dist/actions/retrieve-payment-resource.d.cts.map +1 -0
- package/dist/actions/retrieve-payment-resource.d.mts +9 -0
- package/dist/actions/retrieve-payment-resource.d.mts.map +1 -0
- package/dist/actions/retrieve-payment-resource.mjs +71 -0
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -0
- package/dist/actions/search-invoices.cjs +120 -0
- package/dist/actions/search-invoices.cjs.map +1 -0
- package/dist/actions/search-invoices.d.cts +9 -0
- package/dist/actions/search-invoices.d.cts.map +1 -0
- package/dist/actions/search-invoices.d.mts +9 -0
- package/dist/actions/search-invoices.d.mts.map +1 -0
- package/dist/actions/search-invoices.mjs +119 -0
- package/dist/actions/search-invoices.mjs.map +1 -0
- package/dist/actions/send-invoice.cjs +37 -0
- package/dist/actions/send-invoice.cjs.map +1 -0
- package/dist/actions/send-invoice.d.cts +9 -0
- package/dist/actions/send-invoice.d.cts.map +1 -0
- package/dist/actions/send-invoice.d.mts +9 -0
- package/dist/actions/send-invoice.d.mts.map +1 -0
- package/dist/actions/send-invoice.mjs +36 -0
- package/dist/actions/send-invoice.mjs.map +1 -0
- package/dist/actions/simulate-webhook-event.cjs +52 -0
- package/dist/actions/simulate-webhook-event.cjs.map +1 -0
- package/dist/actions/simulate-webhook-event.d.cts +9 -0
- package/dist/actions/simulate-webhook-event.d.cts.map +1 -0
- package/dist/actions/simulate-webhook-event.d.mts +9 -0
- package/dist/actions/simulate-webhook-event.d.mts.map +1 -0
- package/dist/actions/simulate-webhook-event.mjs +51 -0
- package/dist/actions/simulate-webhook-event.mjs.map +1 -0
- package/dist/actions/update-dispute.cjs +45 -0
- package/dist/actions/update-dispute.cjs.map +1 -0
- package/dist/actions/update-dispute.d.cts +9 -0
- package/dist/actions/update-dispute.d.cts.map +1 -0
- package/dist/actions/update-dispute.d.mts +9 -0
- package/dist/actions/update-dispute.d.mts.map +1 -0
- package/dist/actions/update-dispute.mjs +44 -0
- package/dist/actions/update-dispute.mjs.map +1 -0
- package/dist/actions/update-invoice.cjs +367 -0
- package/dist/actions/update-invoice.cjs.map +1 -0
- package/dist/actions/update-invoice.d.cts +9 -0
- package/dist/actions/update-invoice.d.cts.map +1 -0
- package/dist/actions/update-invoice.d.mts +9 -0
- package/dist/actions/update-invoice.d.mts.map +1 -0
- package/dist/actions/update-invoice.mjs +366 -0
- package/dist/actions/update-invoice.mjs.map +1 -0
- package/dist/actions/update-pay-pal-product.cjs +41 -0
- package/dist/actions/update-pay-pal-product.cjs.map +1 -0
- package/dist/actions/update-pay-pal-product.d.cts +9 -0
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -0
- package/dist/actions/update-pay-pal-product.d.mts +9 -0
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -0
- package/dist/actions/update-pay-pal-product.mjs +38 -0
- package/dist/actions/update-pay-pal-product.mjs.map +1 -0
- package/dist/actions/update-pay-pal-webhook.cjs +54 -0
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -0
- package/dist/actions/update-pay-pal-webhook.d.cts +9 -0
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -0
- package/dist/actions/update-pay-pal-webhook.d.mts +9 -0
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -0
- package/dist/actions/update-pay-pal-webhook.mjs +53 -0
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -0
- package/dist/actions/update-templates.cjs +403 -0
- package/dist/actions/update-templates.cjs.map +1 -0
- package/dist/actions/update-templates.d.cts +9 -0
- package/dist/actions/update-templates.d.cts.map +1 -0
- package/dist/actions/update-templates.d.mts +9 -0
- package/dist/actions/update-templates.d.mts.map +1 -0
- package/dist/actions/update-templates.mjs +402 -0
- package/dist/actions/update-templates.mjs.map +1 -0
- package/dist/actions/update-web-profile.cjs +50 -0
- package/dist/actions/update-web-profile.cjs.map +1 -0
- package/dist/actions/update-web-profile.d.cts +9 -0
- package/dist/actions/update-web-profile.d.cts.map +1 -0
- package/dist/actions/update-web-profile.d.mts +9 -0
- package/dist/actions/update-web-profile.d.mts.map +1 -0
- package/dist/actions/update-web-profile.mjs +49 -0
- package/dist/actions/update-web-profile.mjs.map +1 -0
- package/dist/actions/verify-payment-method.cjs +33 -0
- package/dist/actions/verify-payment-method.cjs.map +1 -0
- package/dist/actions/verify-payment-method.d.cts +9 -0
- package/dist/actions/verify-payment-method.d.cts.map +1 -0
- package/dist/actions/verify-payment-method.d.mts +9 -0
- package/dist/actions/verify-payment-method.d.mts.map +1 -0
- package/dist/actions/verify-payment-method.mjs +32 -0
- package/dist/actions/verify-payment-method.mjs.map +1 -0
- package/dist/actions/verify-webhook-signature.cjs +37 -0
- package/dist/actions/verify-webhook-signature.cjs.map +1 -0
- package/dist/actions/verify-webhook-signature.d.cts +9 -0
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -0
- package/dist/actions/verify-webhook-signature.d.mts +9 -0
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -0
- package/dist/actions/verify-webhook-signature.mjs +34 -0
- package/dist/actions/verify-webhook-signature.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +162 -0
- package/dist/index.d.cts +81 -0
- package/dist/index.d.mts +81 -0
- package/dist/index.mjs +82 -0
- package/package.json +49 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-legacy-billing-plans.ts
|
|
4
|
+
const PaypalListLegacyBillingPlansInput = zod.z.object({
|
|
5
|
+
page: zod.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.").optional(),
|
|
6
|
+
status: zod.z.enum([
|
|
7
|
+
"CREATED",
|
|
8
|
+
"ACTIVE",
|
|
9
|
+
"INACTIVE",
|
|
10
|
+
"DELETED"
|
|
11
|
+
]).describe("Possible states of a billing plan in the legacy API.").optional(),
|
|
12
|
+
end_time: zod.z.string().describe("The end date and time for the range to consider, in ISO 8601 format (e.g., 2024-12-31T23:59:59Z).").optional(),
|
|
13
|
+
page_size: zod.z.number().int().default(25).describe("The number of items to return in the response. Defaults to 25.").optional(),
|
|
14
|
+
start_time: zod.z.string().describe("The start date and time for the range to consider, in ISO 8601 format (e.g., 2024-01-01T00:00:00Z).").optional(),
|
|
15
|
+
total_required: zod.z.boolean().default(false).describe("Indicates whether to show the total count in the response.").optional()
|
|
16
|
+
}).describe("Request to list legacy billing plans.");
|
|
17
|
+
const PaypalListLegacyBillingPlans_LinkDescriptionSchema = zod.z.object({
|
|
18
|
+
rel: zod.z.string().describe("The link relation type (e.g., 'self', 'edit').").nullable().optional(),
|
|
19
|
+
href: zod.z.string().describe("The target URL.").nullable().optional(),
|
|
20
|
+
method: zod.z.string().describe("The HTTP method for the link.").nullable().optional()
|
|
21
|
+
}).describe("HATEOAS link information for the billing plan.");
|
|
22
|
+
const PaypalListLegacyBillingPlans_PlanTypeSchema = zod.z.enum(["TRIAL", "REGULAR"]).describe("The type of billing plan.");
|
|
23
|
+
const PaypalListLegacyBillingPlans_PlanStatusSchema = zod.z.enum([
|
|
24
|
+
"CREATED",
|
|
25
|
+
"ACTIVE",
|
|
26
|
+
"INACTIVE",
|
|
27
|
+
"DELETED"
|
|
28
|
+
]).describe("Possible states of a billing plan in the legacy API.");
|
|
29
|
+
const PaypalListLegacyBillingPlans_TermSchema = zod.z.object({
|
|
30
|
+
name: zod.z.string().describe("The name of the term.").nullable().optional(),
|
|
31
|
+
type: zod.z.string().describe("The type of term.").nullable().optional(),
|
|
32
|
+
cycles: zod.z.string().describe("The number of cycles for this term.").nullable().optional(),
|
|
33
|
+
frequency: zod.z.string().describe("The frequency of the term.").nullable().optional(),
|
|
34
|
+
frequency_interval: zod.z.string().describe("The frequency interval for the term.").nullable().optional()
|
|
35
|
+
}).describe("Term information for the billing plan.");
|
|
36
|
+
const PaypalListLegacyBillingPlans_ChargeAmountSchema = zod.z.object({
|
|
37
|
+
amount: zod.z.string().describe("The amount value.").nullable().optional(),
|
|
38
|
+
currency: zod.z.string().describe("The three-letter ISO 4217 currency code.").nullable().optional()
|
|
39
|
+
}).describe("Amount to charge for a payment definition.");
|
|
40
|
+
const PaypalListLegacyBillingPlans_PaymentDefinitionSchema = zod.z.object({
|
|
41
|
+
id: zod.z.string().describe("The ID of the payment definition.").nullable().optional(),
|
|
42
|
+
name: zod.z.string().describe("The name of the payment definition.").nullable().optional(),
|
|
43
|
+
type: zod.z.string().describe("The payment definition type.").nullable().optional(),
|
|
44
|
+
amount: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),
|
|
45
|
+
cycles: zod.z.string().describe("The number of cycles for this payment.").nullable().optional(),
|
|
46
|
+
frequency: zod.z.string().describe("The frequency of the payment.").nullable().optional(),
|
|
47
|
+
frequency_interval: zod.z.string().describe("The frequency interval for the payment.").nullable().optional()
|
|
48
|
+
}).describe("Payment definition for the billing plan (legacy API format).");
|
|
49
|
+
const PaypalListLegacyBillingPlans_MerchantPreferencesSchema = zod.z.object({
|
|
50
|
+
id: zod.z.string().describe("The ID of the merchant preferences.").nullable().optional(),
|
|
51
|
+
setup_fee: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),
|
|
52
|
+
cancel_url: zod.z.string().describe("The cancel URL for the payment flow.").nullable().optional(),
|
|
53
|
+
return_url: zod.z.string().describe("The return URL after a successful payment.").nullable().optional(),
|
|
54
|
+
auto_bill_amount: zod.z.string().describe("Indicates whether to auto bill the outstanding amount.").nullable().optional(),
|
|
55
|
+
max_fail_attempts: zod.z.string().describe("The maximum number of failed payment attempts.").nullable().optional(),
|
|
56
|
+
initial_amount_term: zod.z.string().describe("The term for the initial amount.").nullable().optional()
|
|
57
|
+
}).describe("Merchant preferences for the billing plan (legacy API format).");
|
|
58
|
+
const PaypalListLegacyBillingPlans_BillingPlanSchema = zod.z.object({
|
|
59
|
+
id: zod.z.string().describe("The unique identifier for the billing plan.").nullable().optional(),
|
|
60
|
+
name: zod.z.string().describe("The name of the billing plan.").nullable().optional(),
|
|
61
|
+
type: PaypalListLegacyBillingPlans_PlanTypeSchema.nullable().optional(),
|
|
62
|
+
links: zod.z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe("An array of HATEOAS links related to the plan.").nullable().optional(),
|
|
63
|
+
state: PaypalListLegacyBillingPlans_PlanStatusSchema.nullable().optional(),
|
|
64
|
+
terms: zod.z.array(PaypalListLegacyBillingPlans_TermSchema).describe("An array of terms for the plan.").nullable().optional(),
|
|
65
|
+
create_time: zod.z.string().describe("The creation time in ISO 8601 format.").nullable().optional(),
|
|
66
|
+
description: zod.z.string().describe("The description of the billing plan.").nullable().optional(),
|
|
67
|
+
update_time: zod.z.string().describe("The last update time in ISO 8601 format.").nullable().optional(),
|
|
68
|
+
payment_definitions: zod.z.array(PaypalListLegacyBillingPlans_PaymentDefinitionSchema).describe("An array of payment definitions for the plan.").nullable().optional(),
|
|
69
|
+
merchant_preferences: PaypalListLegacyBillingPlans_MerchantPreferencesSchema.nullable().optional()
|
|
70
|
+
}).describe("Billing plan object from the legacy PayPal API.");
|
|
71
|
+
const PaypalListLegacyBillingPlansOutput = zod.z.object({
|
|
72
|
+
links: zod.z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe("An array of request-related HATEOAS links for pagination.").nullable().optional(),
|
|
73
|
+
total_items: zod.z.number().int().describe("The total number of items (only included if total_required is true).").nullable().optional(),
|
|
74
|
+
total_pages: zod.z.number().int().describe("The total number of pages (only included if total_required is true).").nullable().optional(),
|
|
75
|
+
billing_plans: zod.z.array(PaypalListLegacyBillingPlans_BillingPlanSchema).describe("An array of billing plan objects.").nullable().optional()
|
|
76
|
+
}).describe("Response containing a list of legacy billing plans.");
|
|
77
|
+
const paypalListLegacyBillingPlans = require_action.action("PAYPAL_LIST_LEGACY_BILLING_PLANS", {
|
|
78
|
+
slug: "paypal-list-legacy-billing-plans",
|
|
79
|
+
name: "List Legacy Billing Plans",
|
|
80
|
+
description: "Lists billing plans using the legacy PayPal payments API (v1/payments/billing-plans). Use when you need to retrieve billing plans created with the legacy PayPal billing agreements API. This is a read-only operation that returns plan details including payment definitions, merchant preferences, and status. Note: This action uses the legacy API endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.",
|
|
81
|
+
input: PaypalListLegacyBillingPlansInput,
|
|
82
|
+
output: PaypalListLegacyBillingPlansOutput
|
|
83
|
+
});
|
|
84
|
+
//#endregion
|
|
85
|
+
exports.paypalListLegacyBillingPlans = paypalListLegacyBillingPlans;
|
|
86
|
+
|
|
87
|
+
//# sourceMappingURL=list-legacy-billing-plans.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-legacy-billing-plans.cjs","names":["z","action"],"sources":["../../src/actions/list-legacy-billing-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListLegacyBillingPlansInput: z.ZodTypeAny = 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.\").optional(),\n status: z.enum([\"CREATED\", \"ACTIVE\", \"INACTIVE\", \"DELETED\"]).describe(\"Possible states of a billing plan in the legacy API.\").optional(),\n end_time: z.string().describe(\"The end date and time for the range to consider, in ISO 8601 format (e.g., 2024-12-31T23:59:59Z).\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n start_time: z.string().describe(\"The start date and time for the range to consider, in ISO 8601 format (e.g., 2024-01-01T00:00:00Z).\").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 legacy billing plans.\");\nconst PaypalListLegacyBillingPlans_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'edit').\").nullable().optional(),\n href: z.string().describe(\"The target URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalListLegacyBillingPlans_PlanTypeSchema: z.ZodTypeAny = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of billing plan.\");\nconst PaypalListLegacyBillingPlans_PlanStatusSchema: z.ZodTypeAny = z.enum([\"CREATED\", \"ACTIVE\", \"INACTIVE\", \"DELETED\"]).describe(\"Possible states of a billing plan in the legacy API.\");\nconst PaypalListLegacyBillingPlans_TermSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the term.\").nullable().optional(),\n type: z.string().describe(\"The type of term.\").nullable().optional(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: z.string().describe(\"The frequency of the term.\").nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).describe(\"Term information for the billing plan.\");\nconst PaypalListLegacyBillingPlans_ChargeAmountSchema: z.ZodTypeAny = z.object({\n amount: z.string().describe(\"The amount value.\").nullable().optional(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).describe(\"Amount to charge for a payment definition.\");\nconst PaypalListLegacyBillingPlans_PaymentDefinitionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the payment definition.\").nullable().optional(),\n name: z.string().describe(\"The name of the payment definition.\").nullable().optional(),\n type: z.string().describe(\"The payment definition type.\").nullable().optional(),\n amount: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),\n cycles: z.string().describe(\"The number of cycles for this payment.\").nullable().optional(),\n frequency: z.string().describe(\"The frequency of the payment.\").nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the payment.\").nullable().optional(),\n}).describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalListLegacyBillingPlans_MerchantPreferencesSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the merchant preferences.\").nullable().optional(),\n setup_fee: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL for the payment flow.\").nullable().optional(),\n return_url: z.string().describe(\"The return URL after a successful payment.\").nullable().optional(),\n auto_bill_amount: z.string().describe(\"Indicates whether to auto bill the outstanding amount.\").nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount.\").nullable().optional(),\n}).describe(\"Merchant preferences for the billing plan (legacy API format).\");\nconst PaypalListLegacyBillingPlans_BillingPlanSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The name of the billing plan.\").nullable().optional(),\n type: PaypalListLegacyBillingPlans_PlanTypeSchema.nullable().optional(),\n links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n state: PaypalListLegacyBillingPlans_PlanStatusSchema.nullable().optional(),\n terms: z.array(PaypalListLegacyBillingPlans_TermSchema).describe(\"An array of terms for the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalListLegacyBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the plan.\").nullable().optional(),\n merchant_preferences: PaypalListLegacyBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).describe(\"Billing plan object from the legacy PayPal API.\");\nexport const PaypalListLegacyBillingPlansOutput: z.ZodTypeAny = z.object({\n links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links for pagination.\").nullable().optional(),\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 billing_plans: z.array(PaypalListLegacyBillingPlans_BillingPlanSchema).describe(\"An array of billing plan objects.\").nullable().optional(),\n}).describe(\"Response containing a list of legacy billing plans.\");\n\nexport const paypalListLegacyBillingPlans = action(\"PAYPAL_LIST_LEGACY_BILLING_PLANS\", {\n slug: \"paypal-list-legacy-billing-plans\",\n name: \"List Legacy Billing Plans\",\n description: \"Lists billing plans using the legacy PayPal payments API (v1/payments/billing-plans). Use when you need to retrieve billing plans created with the legacy PayPal billing agreements API. This is a read-only operation that returns plan details including payment definitions, merchant preferences, and status. Note: This action uses the legacy API endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalListLegacyBilling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SAAS;CACnI,eAAeA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-legacy-billing-plans.d.ts
|
|
4
|
+
declare const PaypalListLegacyBillingPlansInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalListLegacyBillingPlansOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalListLegacyBillingPlans: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalListLegacyBillingPlans };
|
|
9
|
+
//# sourceMappingURL=list-legacy-billing-plans.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-legacy-billing-plans.d.cts","names":[],"sources":["../../src/actions/list-legacy-billing-plans.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOE;AAAA,cAkDvC,kCAAA,EAAoC,CAAA,CAAE,UAKe;AAAA,cAErD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-legacy-billing-plans.d.ts
|
|
4
|
+
declare const PaypalListLegacyBillingPlansInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalListLegacyBillingPlansOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalListLegacyBillingPlans: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalListLegacyBillingPlans };
|
|
9
|
+
//# sourceMappingURL=list-legacy-billing-plans.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-legacy-billing-plans.d.mts","names":[],"sources":["../../src/actions/list-legacy-billing-plans.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOE;AAAA,cAkDvC,kCAAA,EAAoC,CAAA,CAAE,UAKe;AAAA,cAErD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-legacy-billing-plans.ts
|
|
4
|
+
const PaypalListLegacyBillingPlansInput = z.object({
|
|
5
|
+
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.").optional(),
|
|
6
|
+
status: z.enum([
|
|
7
|
+
"CREATED",
|
|
8
|
+
"ACTIVE",
|
|
9
|
+
"INACTIVE",
|
|
10
|
+
"DELETED"
|
|
11
|
+
]).describe("Possible states of a billing plan in the legacy API.").optional(),
|
|
12
|
+
end_time: z.string().describe("The end date and time for the range to consider, in ISO 8601 format (e.g., 2024-12-31T23:59:59Z).").optional(),
|
|
13
|
+
page_size: z.number().int().default(25).describe("The number of items to return in the response. Defaults to 25.").optional(),
|
|
14
|
+
start_time: z.string().describe("The start date and time for the range to consider, in ISO 8601 format (e.g., 2024-01-01T00:00:00Z).").optional(),
|
|
15
|
+
total_required: z.boolean().default(false).describe("Indicates whether to show the total count in the response.").optional()
|
|
16
|
+
}).describe("Request to list legacy billing plans.");
|
|
17
|
+
const PaypalListLegacyBillingPlans_LinkDescriptionSchema = z.object({
|
|
18
|
+
rel: z.string().describe("The link relation type (e.g., 'self', 'edit').").nullable().optional(),
|
|
19
|
+
href: z.string().describe("The target URL.").nullable().optional(),
|
|
20
|
+
method: z.string().describe("The HTTP method for the link.").nullable().optional()
|
|
21
|
+
}).describe("HATEOAS link information for the billing plan.");
|
|
22
|
+
const PaypalListLegacyBillingPlans_PlanTypeSchema = z.enum(["TRIAL", "REGULAR"]).describe("The type of billing plan.");
|
|
23
|
+
const PaypalListLegacyBillingPlans_PlanStatusSchema = z.enum([
|
|
24
|
+
"CREATED",
|
|
25
|
+
"ACTIVE",
|
|
26
|
+
"INACTIVE",
|
|
27
|
+
"DELETED"
|
|
28
|
+
]).describe("Possible states of a billing plan in the legacy API.");
|
|
29
|
+
const PaypalListLegacyBillingPlans_TermSchema = z.object({
|
|
30
|
+
name: z.string().describe("The name of the term.").nullable().optional(),
|
|
31
|
+
type: z.string().describe("The type of term.").nullable().optional(),
|
|
32
|
+
cycles: z.string().describe("The number of cycles for this term.").nullable().optional(),
|
|
33
|
+
frequency: z.string().describe("The frequency of the term.").nullable().optional(),
|
|
34
|
+
frequency_interval: z.string().describe("The frequency interval for the term.").nullable().optional()
|
|
35
|
+
}).describe("Term information for the billing plan.");
|
|
36
|
+
const PaypalListLegacyBillingPlans_ChargeAmountSchema = z.object({
|
|
37
|
+
amount: z.string().describe("The amount value.").nullable().optional(),
|
|
38
|
+
currency: z.string().describe("The three-letter ISO 4217 currency code.").nullable().optional()
|
|
39
|
+
}).describe("Amount to charge for a payment definition.");
|
|
40
|
+
const PaypalListLegacyBillingPlans_PaymentDefinitionSchema = z.object({
|
|
41
|
+
id: z.string().describe("The ID of the payment definition.").nullable().optional(),
|
|
42
|
+
name: z.string().describe("The name of the payment definition.").nullable().optional(),
|
|
43
|
+
type: z.string().describe("The payment definition type.").nullable().optional(),
|
|
44
|
+
amount: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),
|
|
45
|
+
cycles: z.string().describe("The number of cycles for this payment.").nullable().optional(),
|
|
46
|
+
frequency: z.string().describe("The frequency of the payment.").nullable().optional(),
|
|
47
|
+
frequency_interval: z.string().describe("The frequency interval for the payment.").nullable().optional()
|
|
48
|
+
}).describe("Payment definition for the billing plan (legacy API format).");
|
|
49
|
+
const PaypalListLegacyBillingPlans_MerchantPreferencesSchema = z.object({
|
|
50
|
+
id: z.string().describe("The ID of the merchant preferences.").nullable().optional(),
|
|
51
|
+
setup_fee: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),
|
|
52
|
+
cancel_url: z.string().describe("The cancel URL for the payment flow.").nullable().optional(),
|
|
53
|
+
return_url: z.string().describe("The return URL after a successful payment.").nullable().optional(),
|
|
54
|
+
auto_bill_amount: z.string().describe("Indicates whether to auto bill the outstanding amount.").nullable().optional(),
|
|
55
|
+
max_fail_attempts: z.string().describe("The maximum number of failed payment attempts.").nullable().optional(),
|
|
56
|
+
initial_amount_term: z.string().describe("The term for the initial amount.").nullable().optional()
|
|
57
|
+
}).describe("Merchant preferences for the billing plan (legacy API format).");
|
|
58
|
+
const PaypalListLegacyBillingPlans_BillingPlanSchema = z.object({
|
|
59
|
+
id: z.string().describe("The unique identifier for the billing plan.").nullable().optional(),
|
|
60
|
+
name: z.string().describe("The name of the billing plan.").nullable().optional(),
|
|
61
|
+
type: PaypalListLegacyBillingPlans_PlanTypeSchema.nullable().optional(),
|
|
62
|
+
links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe("An array of HATEOAS links related to the plan.").nullable().optional(),
|
|
63
|
+
state: PaypalListLegacyBillingPlans_PlanStatusSchema.nullable().optional(),
|
|
64
|
+
terms: z.array(PaypalListLegacyBillingPlans_TermSchema).describe("An array of terms for the plan.").nullable().optional(),
|
|
65
|
+
create_time: z.string().describe("The creation time in ISO 8601 format.").nullable().optional(),
|
|
66
|
+
description: z.string().describe("The description of the billing plan.").nullable().optional(),
|
|
67
|
+
update_time: z.string().describe("The last update time in ISO 8601 format.").nullable().optional(),
|
|
68
|
+
payment_definitions: z.array(PaypalListLegacyBillingPlans_PaymentDefinitionSchema).describe("An array of payment definitions for the plan.").nullable().optional(),
|
|
69
|
+
merchant_preferences: PaypalListLegacyBillingPlans_MerchantPreferencesSchema.nullable().optional()
|
|
70
|
+
}).describe("Billing plan object from the legacy PayPal API.");
|
|
71
|
+
const paypalListLegacyBillingPlans = action("PAYPAL_LIST_LEGACY_BILLING_PLANS", {
|
|
72
|
+
slug: "paypal-list-legacy-billing-plans",
|
|
73
|
+
name: "List Legacy Billing Plans",
|
|
74
|
+
description: "Lists billing plans using the legacy PayPal payments API (v1/payments/billing-plans). Use when you need to retrieve billing plans created with the legacy PayPal billing agreements API. This is a read-only operation that returns plan details including payment definitions, merchant preferences, and status. Note: This action uses the legacy API endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.",
|
|
75
|
+
input: PaypalListLegacyBillingPlansInput,
|
|
76
|
+
output: z.object({
|
|
77
|
+
links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe("An array of request-related HATEOAS links for pagination.").nullable().optional(),
|
|
78
|
+
total_items: z.number().int().describe("The total number of items (only included if total_required is true).").nullable().optional(),
|
|
79
|
+
total_pages: z.number().int().describe("The total number of pages (only included if total_required is true).").nullable().optional(),
|
|
80
|
+
billing_plans: z.array(PaypalListLegacyBillingPlans_BillingPlanSchema).describe("An array of billing plan objects.").nullable().optional()
|
|
81
|
+
}).describe("Response containing a list of legacy billing plans.")
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { paypalListLegacyBillingPlans };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=list-legacy-billing-plans.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-legacy-billing-plans.mjs","names":[],"sources":["../../src/actions/list-legacy-billing-plans.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListLegacyBillingPlansInput: z.ZodTypeAny = 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.\").optional(),\n status: z.enum([\"CREATED\", \"ACTIVE\", \"INACTIVE\", \"DELETED\"]).describe(\"Possible states of a billing plan in the legacy API.\").optional(),\n end_time: z.string().describe(\"The end date and time for the range to consider, in ISO 8601 format (e.g., 2024-12-31T23:59:59Z).\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to return in the response. Defaults to 25.\").optional(),\n start_time: z.string().describe(\"The start date and time for the range to consider, in ISO 8601 format (e.g., 2024-01-01T00:00:00Z).\").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 legacy billing plans.\");\nconst PaypalListLegacyBillingPlans_LinkDescriptionSchema: z.ZodTypeAny = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'edit').\").nullable().optional(),\n href: z.string().describe(\"The target URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).describe(\"HATEOAS link information for the billing plan.\");\nconst PaypalListLegacyBillingPlans_PlanTypeSchema: z.ZodTypeAny = z.enum([\"TRIAL\", \"REGULAR\"]).describe(\"The type of billing plan.\");\nconst PaypalListLegacyBillingPlans_PlanStatusSchema: z.ZodTypeAny = z.enum([\"CREATED\", \"ACTIVE\", \"INACTIVE\", \"DELETED\"]).describe(\"Possible states of a billing plan in the legacy API.\");\nconst PaypalListLegacyBillingPlans_TermSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the term.\").nullable().optional(),\n type: z.string().describe(\"The type of term.\").nullable().optional(),\n cycles: z.string().describe(\"The number of cycles for this term.\").nullable().optional(),\n frequency: z.string().describe(\"The frequency of the term.\").nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the term.\").nullable().optional(),\n}).describe(\"Term information for the billing plan.\");\nconst PaypalListLegacyBillingPlans_ChargeAmountSchema: z.ZodTypeAny = z.object({\n amount: z.string().describe(\"The amount value.\").nullable().optional(),\n currency: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).describe(\"Amount to charge for a payment definition.\");\nconst PaypalListLegacyBillingPlans_PaymentDefinitionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the payment definition.\").nullable().optional(),\n name: z.string().describe(\"The name of the payment definition.\").nullable().optional(),\n type: z.string().describe(\"The payment definition type.\").nullable().optional(),\n amount: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),\n cycles: z.string().describe(\"The number of cycles for this payment.\").nullable().optional(),\n frequency: z.string().describe(\"The frequency of the payment.\").nullable().optional(),\n frequency_interval: z.string().describe(\"The frequency interval for the payment.\").nullable().optional(),\n}).describe(\"Payment definition for the billing plan (legacy API format).\");\nconst PaypalListLegacyBillingPlans_MerchantPreferencesSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID of the merchant preferences.\").nullable().optional(),\n setup_fee: PaypalListLegacyBillingPlans_ChargeAmountSchema.nullable().optional(),\n cancel_url: z.string().describe(\"The cancel URL for the payment flow.\").nullable().optional(),\n return_url: z.string().describe(\"The return URL after a successful payment.\").nullable().optional(),\n auto_bill_amount: z.string().describe(\"Indicates whether to auto bill the outstanding amount.\").nullable().optional(),\n max_fail_attempts: z.string().describe(\"The maximum number of failed payment attempts.\").nullable().optional(),\n initial_amount_term: z.string().describe(\"The term for the initial amount.\").nullable().optional(),\n}).describe(\"Merchant preferences for the billing plan (legacy API format).\");\nconst PaypalListLegacyBillingPlans_BillingPlanSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier for the billing plan.\").nullable().optional(),\n name: z.string().describe(\"The name of the billing plan.\").nullable().optional(),\n type: PaypalListLegacyBillingPlans_PlanTypeSchema.nullable().optional(),\n links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the plan.\").nullable().optional(),\n state: PaypalListLegacyBillingPlans_PlanStatusSchema.nullable().optional(),\n terms: z.array(PaypalListLegacyBillingPlans_TermSchema).describe(\"An array of terms for the plan.\").nullable().optional(),\n create_time: z.string().describe(\"The creation time in ISO 8601 format.\").nullable().optional(),\n description: z.string().describe(\"The description of the billing plan.\").nullable().optional(),\n update_time: z.string().describe(\"The last update time in ISO 8601 format.\").nullable().optional(),\n payment_definitions: z.array(PaypalListLegacyBillingPlans_PaymentDefinitionSchema).describe(\"An array of payment definitions for the plan.\").nullable().optional(),\n merchant_preferences: PaypalListLegacyBillingPlans_MerchantPreferencesSchema.nullable().optional(),\n}).describe(\"Billing plan object from the legacy PayPal API.\");\nexport const PaypalListLegacyBillingPlansOutput: z.ZodTypeAny = z.object({\n links: z.array(PaypalListLegacyBillingPlans_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links for pagination.\").nullable().optional(),\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 billing_plans: z.array(PaypalListLegacyBillingPlans_BillingPlanSchema).describe(\"An array of billing plan objects.\").nullable().optional(),\n}).describe(\"Response containing a list of legacy billing plans.\");\n\nexport const paypalListLegacyBillingPlans = action(\"PAYPAL_LIST_LEGACY_BILLING_PLANS\", {\n slug: \"paypal-list-legacy-billing-plans\",\n name: \"List Legacy Billing Plans\",\n description: \"Lists billing plans using the legacy PayPal payments API (v1/payments/billing-plans). Use when you need to retrieve billing plans created with the legacy PayPal billing agreements API. This is a read-only operation that returns plan details including payment definitions, merchant preferences, and status. Note: This action uses the legacy API endpoint. For newer integrations, consider using the /v1/billing/plans endpoint instead.\",\n input: PaypalListLegacyBillingPlansInput,\n output: PaypalListLegacyBillingPlansOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,qBAAqB,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,sBAAsB,uDAAuD,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAQ7D,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ8D,EAAE,OAAO;EACvE,OAAO,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,eAAe,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-payments.ts
|
|
4
|
+
const PaypalListPaymentsInput = zod.z.object({
|
|
5
|
+
count: zod.z.number().int().default(25).describe("The number of items to return. Default: 10. Maximum: 20.").optional(),
|
|
6
|
+
status: zod.z.enum([
|
|
7
|
+
"CREATED",
|
|
8
|
+
"APPROVED",
|
|
9
|
+
"FAILED",
|
|
10
|
+
"PAYER_ACTION_REQUIRED"
|
|
11
|
+
]).describe("Payment status values.").optional(),
|
|
12
|
+
end_time: zod.z.string().describe("Filters payments created before this date and time (ISO 8601 format).").optional(),
|
|
13
|
+
payer_id: zod.z.string().describe("Filters payments by the PayPal account ID of the payer.").optional(),
|
|
14
|
+
start_id: zod.z.string().describe("The ID of the starting payment in a paginated result set.").optional(),
|
|
15
|
+
start_time: zod.z.string().describe("Filters payments created after this date and time (ISO 8601 format).").optional(),
|
|
16
|
+
start_index: zod.z.number().int().describe("The index of the first payment to return. Must be a multiple of count.").optional()
|
|
17
|
+
}).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.");
|
|
18
|
+
const PaypalListPayments_LinkDescriptionSchema = zod.z.object({
|
|
19
|
+
rel: zod.z.string().describe("The link relation type.").nullable().optional(),
|
|
20
|
+
href: zod.z.string().describe("The hyperlink to the related resource.").nullable().optional(),
|
|
21
|
+
method: zod.z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional()
|
|
22
|
+
}).describe("The request-related HATEOAS link information.");
|
|
23
|
+
const PaypalListPayments_PayerInfoSchema = zod.z.object({
|
|
24
|
+
email: zod.z.string().describe("The email address of the payer.").nullable().optional(),
|
|
25
|
+
phone: zod.z.string().describe("The phone number of the payer.").nullable().optional(),
|
|
26
|
+
payer_id: zod.z.string().describe("The unique PayPal account ID of the payer.").nullable().optional(),
|
|
27
|
+
shipping_address: zod.z.object({}).describe("The payer's shipping address.").nullable().optional()
|
|
28
|
+
}).describe("The payer information.");
|
|
29
|
+
const PaypalListPayments_PaymentStatusSchema = zod.z.enum([
|
|
30
|
+
"CREATED",
|
|
31
|
+
"APPROVED",
|
|
32
|
+
"FAILED",
|
|
33
|
+
"PAYER_ACTION_REQUIRED"
|
|
34
|
+
]).describe("Payment status values.");
|
|
35
|
+
const PaypalListPayments_PaymentIntentSchema = zod.z.enum([
|
|
36
|
+
"SALE",
|
|
37
|
+
"AUTHORIZE",
|
|
38
|
+
"ORDER"
|
|
39
|
+
]).describe("The intent of the payment.");
|
|
40
|
+
const PaypalListPayments_AmountSchema = zod.z.object({
|
|
41
|
+
total: zod.z.string().describe("The total amount.").nullable().optional(),
|
|
42
|
+
details: zod.z.object({}).describe("The breakdown of the amount (subtotal, shipping, tax, etc.).").nullable().optional(),
|
|
43
|
+
currency: zod.z.string().describe("The currency code.").nullable().optional()
|
|
44
|
+
}).describe("The amount for the transaction.");
|
|
45
|
+
const PaypalListPayments_CaptureAmountSchema = zod.z.object({
|
|
46
|
+
value: zod.z.string().describe("The monetary value.").nullable().optional(),
|
|
47
|
+
breakdown: zod.z.object({}).describe("The breakdown of the captured amount.").nullable().optional(),
|
|
48
|
+
currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
|
|
49
|
+
}).describe("The amount captured for a payment.");
|
|
50
|
+
const PaypalListPayments_SellerProtectionSchema = zod.z.object({
|
|
51
|
+
status: zod.z.string().describe("The seller protection status.").nullable().optional(),
|
|
52
|
+
dispute_categories: zod.z.array(zod.z.string()).describe("The list of dispute categories covered.").nullable().optional()
|
|
53
|
+
}).describe("The seller protection details.");
|
|
54
|
+
const PaypalListPayments_CaptureSchema = zod.z.object({
|
|
55
|
+
id: zod.z.string().describe("The ID of the capture.").nullable().optional(),
|
|
56
|
+
links: zod.z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links.").nullable().optional(),
|
|
57
|
+
amount: PaypalListPayments_CaptureAmountSchema.nullable().optional(),
|
|
58
|
+
status: zod.z.string().describe("The status of the capture.").nullable().optional(),
|
|
59
|
+
custom_id: zod.z.string().describe("The custom ID.").nullable().optional(),
|
|
60
|
+
invoice_id: zod.z.string().describe("The invoice ID.").nullable().optional(),
|
|
61
|
+
create_time: zod.z.string().describe("The creation time.").nullable().optional(),
|
|
62
|
+
update_time: zod.z.string().describe("The update time.").nullable().optional(),
|
|
63
|
+
final_capture: zod.z.boolean().describe("Indicates if this is the final capture.").nullable().optional(),
|
|
64
|
+
seller_protection: PaypalListPayments_SellerProtectionSchema.nullable().optional()
|
|
65
|
+
}).describe("The capture details for a payment.");
|
|
66
|
+
const PaypalListPayments_RelatedResourceSchema = zod.z.object({
|
|
67
|
+
sale: zod.z.object({}).describe("The sale details (deprecated).").nullable().optional(),
|
|
68
|
+
order: zod.z.object({}).describe("The order details.").nullable().optional(),
|
|
69
|
+
refund: zod.z.object({}).describe("The refund details.").nullable().optional(),
|
|
70
|
+
capture: PaypalListPayments_CaptureSchema.nullable().optional(),
|
|
71
|
+
authorization: zod.z.object({}).describe("The authorization details (deprecated).").nullable().optional()
|
|
72
|
+
}).describe("A related resource for the payment.");
|
|
73
|
+
const PaypalListPayments_TransactionSchema = zod.z.object({
|
|
74
|
+
id: zod.z.string().describe("The transaction ID.").nullable().optional(),
|
|
75
|
+
payee: zod.z.object({}).describe("The payee details.").nullable().optional(),
|
|
76
|
+
amount: PaypalListPayments_AmountSchema.nullable().optional(),
|
|
77
|
+
custom: zod.z.string().describe("The custom field.").nullable().optional(),
|
|
78
|
+
status: zod.z.string().describe("The status of the transaction.").nullable().optional(),
|
|
79
|
+
description: zod.z.string().describe("The description of the transaction.").nullable().optional(),
|
|
80
|
+
invoice_number: zod.z.string().describe("The invoice number.").nullable().optional(),
|
|
81
|
+
purchase_units: zod.z.array(zod.z.object({})).describe("The purchase units (for orders).").nullable().optional(),
|
|
82
|
+
related_resources: zod.z.array(PaypalListPayments_RelatedResourceSchema).describe("The related resources (captures, authorizations).").nullable().optional()
|
|
83
|
+
}).describe("A transaction for the payment.");
|
|
84
|
+
const PaypalListPayments_PaymentElementSchema = zod.z.object({
|
|
85
|
+
id: zod.z.string().describe("The unique identifier for the payment.").nullable().optional(),
|
|
86
|
+
links: zod.z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links related to the payment.").nullable().optional(),
|
|
87
|
+
payer: PaypalListPayments_PayerInfoSchema.nullable().optional(),
|
|
88
|
+
state: PaypalListPayments_PaymentStatusSchema.nullable().optional(),
|
|
89
|
+
intent: PaypalListPayments_PaymentIntentSchema.nullable().optional(),
|
|
90
|
+
payer_info: PaypalListPayments_PayerInfoSchema.nullable().optional(),
|
|
91
|
+
create_time: zod.z.string().describe("The creation time of the payment in ISO 8601 format.").nullable().optional(),
|
|
92
|
+
update_time: zod.z.string().describe("The last update time of the payment in ISO 8601 format.").nullable().optional(),
|
|
93
|
+
transactions: zod.z.array(PaypalListPayments_TransactionSchema).describe("The list of transactions.").nullable().optional(),
|
|
94
|
+
failed_transactions: zod.z.array(zod.z.object({})).describe("The list of failed transactions.").nullable().optional()
|
|
95
|
+
}).describe("A payment object in the list response.");
|
|
96
|
+
const PaypalListPaymentsOutput = zod.z.object({
|
|
97
|
+
count: zod.z.number().int().describe("The number of payments in the response.").nullable().optional(),
|
|
98
|
+
links: zod.z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links for navigation.").nullable().optional(),
|
|
99
|
+
next_id: zod.z.string().describe("The ID of the next payment in a paginated result set.").nullable().optional(),
|
|
100
|
+
payments: zod.z.array(PaypalListPayments_PaymentElementSchema).describe("An array of payment objects.")
|
|
101
|
+
}).describe("Response schema for the ListPayments action containing an array of payments.");
|
|
102
|
+
const paypalListPayments = require_action.action("PAYPAL_LIST_PAYMENTS", {
|
|
103
|
+
slug: "paypal-list-payments",
|
|
104
|
+
name: "List Payments",
|
|
105
|
+
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.",
|
|
106
|
+
input: PaypalListPaymentsInput,
|
|
107
|
+
output: PaypalListPaymentsOutput
|
|
108
|
+
});
|
|
109
|
+
//#endregion
|
|
110
|
+
exports.paypalListPayments = paypalListPayments;
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=list-payments.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.cjs","names":["z","action"],"sources":["../../src/actions/list-payments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalListPaymentsInput: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\");\nconst PaypalListPayments_PaymentIntentSchema: z.ZodTypeAny = z.enum([\"SALE\", \"AUTHORIZE\", \"ORDER\"]).describe(\"The intent of the payment.\");\nconst PaypalListPayments_AmountSchema: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClH,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAY;EAAU;CAAuB,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACvH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC5H,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
|
+
declare const PaypalListPaymentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalListPaymentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalListPayments };
|
|
9
|
+
//# sourceMappingURL=list-payments.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.d.cts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQkJ;AAAA,cAsE7K,wBAAA,EAA0B,CAAA,CAAE,UAKkD;AAAA,cAE9E,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-payments.d.ts
|
|
4
|
+
declare const PaypalListPaymentsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PaypalListPaymentsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const paypalListPayments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { paypalListPayments };
|
|
9
|
+
//# sourceMappingURL=list-payments.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-payments.d.mts","names":[],"sources":["../../src/actions/list-payments.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQkJ;AAAA,cAsE7K,wBAAA,EAA0B,CAAA,CAAE,UAKkD;AAAA,cAE9E,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-payments.ts
|
|
4
|
+
const PaypalListPaymentsInput = z.object({
|
|
5
|
+
count: z.number().int().default(25).describe("The number of items to return. Default: 10. Maximum: 20.").optional(),
|
|
6
|
+
status: z.enum([
|
|
7
|
+
"CREATED",
|
|
8
|
+
"APPROVED",
|
|
9
|
+
"FAILED",
|
|
10
|
+
"PAYER_ACTION_REQUIRED"
|
|
11
|
+
]).describe("Payment status values.").optional(),
|
|
12
|
+
end_time: z.string().describe("Filters payments created before this date and time (ISO 8601 format).").optional(),
|
|
13
|
+
payer_id: z.string().describe("Filters payments by the PayPal account ID of the payer.").optional(),
|
|
14
|
+
start_id: z.string().describe("The ID of the starting payment in a paginated result set.").optional(),
|
|
15
|
+
start_time: z.string().describe("Filters payments created after this date and time (ISO 8601 format).").optional(),
|
|
16
|
+
start_index: z.number().int().describe("The index of the first payment to return. Must be a multiple of count.").optional()
|
|
17
|
+
}).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.");
|
|
18
|
+
const PaypalListPayments_LinkDescriptionSchema = z.object({
|
|
19
|
+
rel: z.string().describe("The link relation type.").nullable().optional(),
|
|
20
|
+
href: z.string().describe("The hyperlink to the related resource.").nullable().optional(),
|
|
21
|
+
method: z.string().describe("The HTTP method required to invoke the related resource.").nullable().optional()
|
|
22
|
+
}).describe("The request-related HATEOAS link information.");
|
|
23
|
+
const PaypalListPayments_PayerInfoSchema = z.object({
|
|
24
|
+
email: z.string().describe("The email address of the payer.").nullable().optional(),
|
|
25
|
+
phone: z.string().describe("The phone number of the payer.").nullable().optional(),
|
|
26
|
+
payer_id: z.string().describe("The unique PayPal account ID of the payer.").nullable().optional(),
|
|
27
|
+
shipping_address: z.object({}).describe("The payer's shipping address.").nullable().optional()
|
|
28
|
+
}).describe("The payer information.");
|
|
29
|
+
const PaypalListPayments_PaymentStatusSchema = z.enum([
|
|
30
|
+
"CREATED",
|
|
31
|
+
"APPROVED",
|
|
32
|
+
"FAILED",
|
|
33
|
+
"PAYER_ACTION_REQUIRED"
|
|
34
|
+
]).describe("Payment status values.");
|
|
35
|
+
const PaypalListPayments_PaymentIntentSchema = z.enum([
|
|
36
|
+
"SALE",
|
|
37
|
+
"AUTHORIZE",
|
|
38
|
+
"ORDER"
|
|
39
|
+
]).describe("The intent of the payment.");
|
|
40
|
+
const PaypalListPayments_AmountSchema = z.object({
|
|
41
|
+
total: z.string().describe("The total amount.").nullable().optional(),
|
|
42
|
+
details: z.object({}).describe("The breakdown of the amount (subtotal, shipping, tax, etc.).").nullable().optional(),
|
|
43
|
+
currency: z.string().describe("The currency code.").nullable().optional()
|
|
44
|
+
}).describe("The amount for the transaction.");
|
|
45
|
+
const PaypalListPayments_CaptureAmountSchema = z.object({
|
|
46
|
+
value: z.string().describe("The monetary value.").nullable().optional(),
|
|
47
|
+
breakdown: z.object({}).describe("The breakdown of the captured amount.").nullable().optional(),
|
|
48
|
+
currency_code: z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
|
|
49
|
+
}).describe("The amount captured for a payment.");
|
|
50
|
+
const PaypalListPayments_SellerProtectionSchema = z.object({
|
|
51
|
+
status: z.string().describe("The seller protection status.").nullable().optional(),
|
|
52
|
+
dispute_categories: z.array(z.string()).describe("The list of dispute categories covered.").nullable().optional()
|
|
53
|
+
}).describe("The seller protection details.");
|
|
54
|
+
const PaypalListPayments_CaptureSchema = z.object({
|
|
55
|
+
id: z.string().describe("The ID of the capture.").nullable().optional(),
|
|
56
|
+
links: z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links.").nullable().optional(),
|
|
57
|
+
amount: PaypalListPayments_CaptureAmountSchema.nullable().optional(),
|
|
58
|
+
status: z.string().describe("The status of the capture.").nullable().optional(),
|
|
59
|
+
custom_id: z.string().describe("The custom ID.").nullable().optional(),
|
|
60
|
+
invoice_id: z.string().describe("The invoice ID.").nullable().optional(),
|
|
61
|
+
create_time: z.string().describe("The creation time.").nullable().optional(),
|
|
62
|
+
update_time: z.string().describe("The update time.").nullable().optional(),
|
|
63
|
+
final_capture: z.boolean().describe("Indicates if this is the final capture.").nullable().optional(),
|
|
64
|
+
seller_protection: PaypalListPayments_SellerProtectionSchema.nullable().optional()
|
|
65
|
+
}).describe("The capture details for a payment.");
|
|
66
|
+
const PaypalListPayments_RelatedResourceSchema = z.object({
|
|
67
|
+
sale: z.object({}).describe("The sale details (deprecated).").nullable().optional(),
|
|
68
|
+
order: z.object({}).describe("The order details.").nullable().optional(),
|
|
69
|
+
refund: z.object({}).describe("The refund details.").nullable().optional(),
|
|
70
|
+
capture: PaypalListPayments_CaptureSchema.nullable().optional(),
|
|
71
|
+
authorization: z.object({}).describe("The authorization details (deprecated).").nullable().optional()
|
|
72
|
+
}).describe("A related resource for the payment.");
|
|
73
|
+
const PaypalListPayments_TransactionSchema = z.object({
|
|
74
|
+
id: z.string().describe("The transaction ID.").nullable().optional(),
|
|
75
|
+
payee: z.object({}).describe("The payee details.").nullable().optional(),
|
|
76
|
+
amount: PaypalListPayments_AmountSchema.nullable().optional(),
|
|
77
|
+
custom: z.string().describe("The custom field.").nullable().optional(),
|
|
78
|
+
status: z.string().describe("The status of the transaction.").nullable().optional(),
|
|
79
|
+
description: z.string().describe("The description of the transaction.").nullable().optional(),
|
|
80
|
+
invoice_number: z.string().describe("The invoice number.").nullable().optional(),
|
|
81
|
+
purchase_units: z.array(z.object({})).describe("The purchase units (for orders).").nullable().optional(),
|
|
82
|
+
related_resources: z.array(PaypalListPayments_RelatedResourceSchema).describe("The related resources (captures, authorizations).").nullable().optional()
|
|
83
|
+
}).describe("A transaction for the payment.");
|
|
84
|
+
const PaypalListPayments_PaymentElementSchema = z.object({
|
|
85
|
+
id: z.string().describe("The unique identifier for the payment.").nullable().optional(),
|
|
86
|
+
links: z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links related to the payment.").nullable().optional(),
|
|
87
|
+
payer: PaypalListPayments_PayerInfoSchema.nullable().optional(),
|
|
88
|
+
state: PaypalListPayments_PaymentStatusSchema.nullable().optional(),
|
|
89
|
+
intent: PaypalListPayments_PaymentIntentSchema.nullable().optional(),
|
|
90
|
+
payer_info: PaypalListPayments_PayerInfoSchema.nullable().optional(),
|
|
91
|
+
create_time: z.string().describe("The creation time of the payment in ISO 8601 format.").nullable().optional(),
|
|
92
|
+
update_time: z.string().describe("The last update time of the payment in ISO 8601 format.").nullable().optional(),
|
|
93
|
+
transactions: z.array(PaypalListPayments_TransactionSchema).describe("The list of transactions.").nullable().optional(),
|
|
94
|
+
failed_transactions: z.array(z.object({})).describe("The list of failed transactions.").nullable().optional()
|
|
95
|
+
}).describe("A payment object in the list response.");
|
|
96
|
+
const paypalListPayments = action("PAYPAL_LIST_PAYMENTS", {
|
|
97
|
+
slug: "paypal-list-payments",
|
|
98
|
+
name: "List Payments",
|
|
99
|
+
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.",
|
|
100
|
+
input: PaypalListPaymentsInput,
|
|
101
|
+
output: z.object({
|
|
102
|
+
count: z.number().int().describe("The number of payments in the response.").nullable().optional(),
|
|
103
|
+
links: z.array(PaypalListPayments_LinkDescriptionSchema).describe("HATEOAS links for navigation.").nullable().optional(),
|
|
104
|
+
next_id: z.string().describe("The ID of the next payment in a paginated result set.").nullable().optional(),
|
|
105
|
+
payments: z.array(PaypalListPayments_PaymentElementSchema).describe("An array of payment objects.")
|
|
106
|
+
}).describe("Response schema for the ListPayments action containing an array of payments.")
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
export { paypalListPayments };
|
|
110
|
+
|
|
111
|
+
//# sourceMappingURL=list-payments.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = z.enum([\"CREATED\", \"APPROVED\", \"FAILED\", \"PAYER_ACTION_REQUIRED\"]).describe(\"Payment status values.\");\nconst PaypalListPayments_PaymentIntentSchema: z.ZodTypeAny = z.enum([\"SALE\", \"AUTHORIZE\", \"ORDER\"]).describe(\"The intent of the payment.\");\nconst PaypalListPayments_AmountSchema: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,0BAAwC,EAAE,OAAO;CAC5D,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,w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