@keystrokehq/paypal 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/activate-plan.cjs +1 -0
- package/dist/actions/activate-plan.cjs.map +1 -1
- package/dist/actions/activate-plan.d.cts +3 -3
- package/dist/actions/activate-plan.d.cts.map +1 -1
- package/dist/actions/activate-plan.d.mts +3 -3
- package/dist/actions/activate-plan.d.mts.map +1 -1
- package/dist/actions/activate-plan.mjs +1 -0
- package/dist/actions/activate-plan.mjs.map +1 -1
- package/dist/actions/add-batch-trackers.cjs +1 -0
- package/dist/actions/add-batch-trackers.cjs.map +1 -1
- package/dist/actions/add-batch-trackers.d.cts +3 -21
- package/dist/actions/add-batch-trackers.d.cts.map +1 -1
- package/dist/actions/add-batch-trackers.d.mts +3 -21
- package/dist/actions/add-batch-trackers.d.mts.map +1 -1
- package/dist/actions/add-batch-trackers.mjs +1 -0
- package/dist/actions/add-batch-trackers.mjs.map +1 -1
- package/dist/actions/authorize-order.cjs +1 -0
- package/dist/actions/authorize-order.cjs.map +1 -1
- package/dist/actions/authorize-order.d.cts +3 -11
- package/dist/actions/authorize-order.d.cts.map +1 -1
- package/dist/actions/authorize-order.d.mts +3 -11
- package/dist/actions/authorize-order.d.mts.map +1 -1
- package/dist/actions/authorize-order.mjs +1 -0
- package/dist/actions/authorize-order.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +1 -0
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +3 -8
- package/dist/actions/cancel-invoice.d.cts.map +1 -1
- package/dist/actions/cancel-invoice.d.mts +3 -8
- package/dist/actions/cancel-invoice.d.mts.map +1 -1
- package/dist/actions/cancel-invoice.mjs +1 -0
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-reminders.cjs +1 -0
- package/dist/actions/cancel-reminders.cjs.map +1 -1
- package/dist/actions/cancel-reminders.d.cts +3 -3
- package/dist/actions/cancel-reminders.d.cts.map +1 -1
- package/dist/actions/cancel-reminders.d.mts +3 -3
- package/dist/actions/cancel-reminders.d.mts.map +1 -1
- package/dist/actions/cancel-reminders.mjs +1 -0
- package/dist/actions/cancel-reminders.mjs.map +1 -1
- package/dist/actions/capture-subscription-payment.cjs +1 -0
- package/dist/actions/capture-subscription-payment.cjs.map +1 -1
- package/dist/actions/capture-subscription-payment.d.cts +5 -11
- package/dist/actions/capture-subscription-payment.d.cts.map +1 -1
- package/dist/actions/capture-subscription-payment.d.mts +5 -11
- package/dist/actions/capture-subscription-payment.d.mts.map +1 -1
- package/dist/actions/capture-subscription-payment.mjs +1 -0
- package/dist/actions/capture-subscription-payment.mjs.map +1 -1
- package/dist/actions/charge-payment-method.cjs +1 -0
- package/dist/actions/charge-payment-method.cjs.map +1 -1
- package/dist/actions/charge-payment-method.d.cts +3 -43
- package/dist/actions/charge-payment-method.d.cts.map +1 -1
- package/dist/actions/charge-payment-method.d.mts +3 -43
- package/dist/actions/charge-payment-method.d.mts.map +1 -1
- package/dist/actions/charge-payment-method.mjs +1 -0
- package/dist/actions/charge-payment-method.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +1 -0
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +5 -139
- package/dist/actions/create-invoice.d.cts.map +1 -1
- package/dist/actions/create-invoice.d.mts +5 -139
- package/dist/actions/create-invoice.d.mts.map +1 -1
- package/dist/actions/create-invoice.mjs +1 -0
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-payment.cjs +1 -0
- package/dist/actions/create-payment.cjs.map +1 -1
- package/dist/actions/create-payment.d.cts +3 -65
- package/dist/actions/create-payment.d.cts.map +1 -1
- package/dist/actions/create-payment.d.mts +3 -65
- package/dist/actions/create-payment.d.mts.map +1 -1
- package/dist/actions/create-payment.mjs +1 -0
- package/dist/actions/create-payment.mjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.cjs +1 -0
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.cts +3 -36
- package/dist/actions/create-payments-billing-plans.d.cts.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.mts +3 -36
- package/dist/actions/create-payments-billing-plans.d.mts.map +1 -1
- package/dist/actions/create-payments-billing-plans.mjs +1 -0
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +1 -0
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +3 -37
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +3 -37
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +1 -0
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-product.cjs +1 -0
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +3 -9
- package/dist/actions/create-product.d.cts.map +1 -1
- package/dist/actions/create-product.d.mts +3 -9
- package/dist/actions/create-product.d.mts.map +1 -1
- package/dist/actions/create-product.mjs +1 -0
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/create-subscription.cjs +1 -0
- package/dist/actions/create-subscription.cjs.map +1 -1
- package/dist/actions/create-subscription.d.cts +3 -76
- package/dist/actions/create-subscription.d.cts.map +1 -1
- package/dist/actions/create-subscription.d.mts +3 -76
- package/dist/actions/create-subscription.d.mts.map +1 -1
- package/dist/actions/create-subscription.mjs +1 -0
- package/dist/actions/create-subscription.mjs.map +1 -1
- package/dist/actions/create-template.cjs +1 -0
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +3 -107
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +3 -107
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +1 -0
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-web-profile.cjs +1 -0
- package/dist/actions/create-web-profile.cjs.map +1 -1
- package/dist/actions/create-web-profile.d.cts +3 -20
- package/dist/actions/create-web-profile.d.cts.map +1 -1
- package/dist/actions/create-web-profile.d.mts +3 -20
- package/dist/actions/create-web-profile.d.mts.map +1 -1
- package/dist/actions/create-web-profile.mjs +1 -0
- package/dist/actions/create-web-profile.mjs.map +1 -1
- package/dist/actions/create-webhook-lookup.cjs +1 -0
- package/dist/actions/create-webhook-lookup.cjs.map +1 -1
- package/dist/actions/create-webhook-lookup.d.cts +3 -1
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/create-webhook-lookup.d.mts +3 -1
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/create-webhook-lookup.mjs +1 -0
- package/dist/actions/create-webhook-lookup.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -0
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +3 -9
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +3 -9
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +1 -0
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/deactivate-plan.cjs +1 -0
- package/dist/actions/deactivate-plan.cjs.map +1 -1
- package/dist/actions/deactivate-plan.d.cts +3 -3
- package/dist/actions/deactivate-plan.d.cts.map +1 -1
- package/dist/actions/deactivate-plan.d.mts +3 -3
- package/dist/actions/deactivate-plan.d.mts.map +1 -1
- package/dist/actions/deactivate-plan.mjs +1 -0
- package/dist/actions/deactivate-plan.mjs.map +1 -1
- package/dist/actions/delete-external-payment.cjs +1 -0
- package/dist/actions/delete-external-payment.cjs.map +1 -1
- package/dist/actions/delete-external-payment.d.cts +3 -4
- package/dist/actions/delete-external-payment.d.cts.map +1 -1
- package/dist/actions/delete-external-payment.d.mts +3 -4
- package/dist/actions/delete-external-payment.d.mts.map +1 -1
- package/dist/actions/delete-external-payment.mjs +1 -0
- package/dist/actions/delete-external-payment.mjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs +1 -0
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.cts +3 -4
- package/dist/actions/delete-invoice-payment-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.mts +3 -4
- package/dist/actions/delete-invoice-payment-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-payment-record.mjs +1 -0
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs +1 -0
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.cts +3 -4
- package/dist/actions/delete-invoice-refund-record.d.cts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.mts +3 -4
- package/dist/actions/delete-invoice-refund-record.d.mts.map +1 -1
- package/dist/actions/delete-invoice-refund-record.mjs +1 -0
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +1 -0
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +3 -3
- package/dist/actions/delete-invoice.d.cts.map +1 -1
- package/dist/actions/delete-invoice.d.mts +3 -3
- package/dist/actions/delete-invoice.d.mts.map +1 -1
- package/dist/actions/delete-invoice.mjs +1 -0
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment-resource.cjs +1 -0
- package/dist/actions/delete-payment-resource.cjs.map +1 -1
- package/dist/actions/delete-payment-resource.d.cts +3 -3
- package/dist/actions/delete-payment-resource.d.cts.map +1 -1
- package/dist/actions/delete-payment-resource.d.mts +3 -3
- package/dist/actions/delete-payment-resource.d.mts.map +1 -1
- package/dist/actions/delete-payment-resource.mjs +1 -0
- package/dist/actions/delete-payment-resource.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +1 -0
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +3 -3
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +3 -3
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +1 -0
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-web-profile.cjs +1 -0
- package/dist/actions/delete-web-profile.cjs.map +1 -1
- package/dist/actions/delete-web-profile.d.cts +3 -3
- package/dist/actions/delete-web-profile.d.cts.map +1 -1
- package/dist/actions/delete-web-profile.d.mts +3 -3
- package/dist/actions/delete-web-profile.d.mts.map +1 -1
- package/dist/actions/delete-web-profile.mjs +1 -0
- package/dist/actions/delete-web-profile.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -0
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +3 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +3 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -0
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-node.cjs +1 -0
- package/dist/actions/fetch-node.cjs.map +1 -1
- package/dist/actions/fetch-node.d.cts +3 -3
- package/dist/actions/fetch-node.d.cts.map +1 -1
- package/dist/actions/fetch-node.d.mts +3 -3
- package/dist/actions/fetch-node.d.mts.map +1 -1
- package/dist/actions/fetch-node.mjs +1 -0
- package/dist/actions/fetch-node.mjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +1 -0
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
- package/dist/actions/find-eligible-methods.cjs +1 -0
- package/dist/actions/find-eligible-methods.cjs.map +1 -1
- package/dist/actions/find-eligible-methods.d.cts +3 -37
- package/dist/actions/find-eligible-methods.d.cts.map +1 -1
- package/dist/actions/find-eligible-methods.d.mts +3 -37
- package/dist/actions/find-eligible-methods.d.mts.map +1 -1
- package/dist/actions/find-eligible-methods.mjs +1 -0
- package/dist/actions/find-eligible-methods.mjs.map +1 -1
- package/dist/actions/generate-client-token.cjs +1 -0
- package/dist/actions/generate-client-token.cjs.map +1 -1
- package/dist/actions/generate-client-token.d.cts +3 -1
- package/dist/actions/generate-client-token.d.cts.map +1 -1
- package/dist/actions/generate-client-token.d.mts +3 -1
- package/dist/actions/generate-client-token.d.mts.map +1 -1
- package/dist/actions/generate-client-token.mjs +1 -0
- package/dist/actions/generate-client-token.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs +1 -0
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.cts +3 -3
- package/dist/actions/generate-next-invoice-number-v2.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.mts +3 -3
- package/dist/actions/generate-next-invoice-number-v2.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.mjs +1 -0
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.cjs +1 -0
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.cts +3 -1
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.mts +3 -1
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number.mjs +1 -0
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
- package/dist/actions/generate-qr-code.cjs +1 -0
- package/dist/actions/generate-qr-code.cjs.map +1 -1
- package/dist/actions/generate-qr-code.d.cts +3 -6
- package/dist/actions/generate-qr-code.d.cts.map +1 -1
- package/dist/actions/generate-qr-code.d.mts +3 -6
- package/dist/actions/generate-qr-code.d.mts.map +1 -1
- package/dist/actions/generate-qr-code.mjs +1 -0
- package/dist/actions/generate-qr-code.mjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.cjs +1 -0
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.cts +3 -8
- package/dist/actions/get-billing-subscriptions.d.cts.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.mts +3 -8
- package/dist/actions/get-billing-subscriptions.d.mts.map +1 -1
- package/dist/actions/get-billing-subscriptions.mjs +1 -0
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +1 -0
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +3 -3
- package/dist/actions/get-invoice.d.cts.map +1 -1
- package/dist/actions/get-invoice.d.mts +3 -3
- package/dist/actions/get-invoice.d.mts.map +1 -1
- package/dist/actions/get-invoice.mjs +1 -0
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +3 -6
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +3 -6
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +1 -0
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
- package/dist/actions/get-invoicing-template.cjs +1 -0
- package/dist/actions/get-invoicing-template.cjs.map +1 -1
- package/dist/actions/get-invoicing-template.d.cts +3 -3
- package/dist/actions/get-invoicing-template.d.cts.map +1 -1
- package/dist/actions/get-invoicing-template.d.mts +3 -3
- package/dist/actions/get-invoicing-template.d.mts.map +1 -1
- package/dist/actions/get-invoicing-template.mjs +1 -0
- package/dist/actions/get-invoicing-template.mjs.map +1 -1
- package/dist/actions/get-order.cjs +1 -0
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +3 -4
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +3 -4
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs +1 -0
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +1 -0
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +3 -3
- package/dist/actions/get-payment.d.cts.map +1 -1
- package/dist/actions/get-payment.d.mts +3 -3
- package/dist/actions/get-payment.d.mts.map +1 -1
- package/dist/actions/get-payment.mjs +1 -0
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-payments-refund.cjs +1 -0
- package/dist/actions/get-payments-refund.cjs.map +1 -1
- package/dist/actions/get-payments-refund.d.cts +3 -3
- package/dist/actions/get-payments-refund.d.cts.map +1 -1
- package/dist/actions/get-payments-refund.d.mts +3 -3
- package/dist/actions/get-payments-refund.d.mts.map +1 -1
- package/dist/actions/get-payments-refund.mjs +1 -0
- package/dist/actions/get-payments-refund.mjs.map +1 -1
- package/dist/actions/get-plan.cjs +1 -0
- package/dist/actions/get-plan.cjs.map +1 -1
- package/dist/actions/get-plan.d.cts +3 -3
- package/dist/actions/get-plan.d.cts.map +1 -1
- package/dist/actions/get-plan.d.mts +3 -3
- package/dist/actions/get-plan.d.mts.map +1 -1
- package/dist/actions/get-plan.mjs +1 -0
- package/dist/actions/get-plan.mjs.map +1 -1
- package/dist/actions/get-product.cjs +1 -0
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +3 -3
- package/dist/actions/get-product.d.cts.map +1 -1
- package/dist/actions/get-product.d.mts +3 -3
- package/dist/actions/get-product.d.mts.map +1 -1
- package/dist/actions/get-product.mjs +1 -0
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-subscription.cjs +1 -0
- package/dist/actions/get-subscription.cjs.map +1 -1
- package/dist/actions/get-subscription.d.cts +3 -4
- package/dist/actions/get-subscription.d.cts.map +1 -1
- package/dist/actions/get-subscription.d.mts +3 -4
- package/dist/actions/get-subscription.d.mts.map +1 -1
- package/dist/actions/get-subscription.mjs +1 -0
- package/dist/actions/get-subscription.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs +1 -0
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +3 -3
- package/dist/actions/get-user-info.d.cts.map +1 -1
- package/dist/actions/get-user-info.d.mts +3 -3
- package/dist/actions/get-user-info.d.mts.map +1 -1
- package/dist/actions/get-user-info.mjs +1 -0
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-userinfo.cjs +1 -0
- package/dist/actions/get-userinfo.cjs.map +1 -1
- package/dist/actions/get-userinfo.d.cts +3 -3
- package/dist/actions/get-userinfo.d.cts.map +1 -1
- package/dist/actions/get-userinfo.d.mts +3 -3
- package/dist/actions/get-userinfo.d.mts.map +1 -1
- package/dist/actions/get-userinfo.mjs +1 -0
- package/dist/actions/get-userinfo.mjs.map +1 -1
- package/dist/actions/get-web-profile.cjs +1 -0
- package/dist/actions/get-web-profile.cjs.map +1 -1
- package/dist/actions/get-web-profile.d.cts +3 -3
- package/dist/actions/get-web-profile.d.cts.map +1 -1
- package/dist/actions/get-web-profile.d.mts +3 -3
- package/dist/actions/get-web-profile.d.mts.map +1 -1
- package/dist/actions/get-web-profile.mjs +1 -0
- package/dist/actions/get-web-profile.mjs.map +1 -1
- package/dist/actions/get-webhook-lookup.cjs +1 -0
- package/dist/actions/get-webhook-lookup.cjs.map +1 -1
- package/dist/actions/get-webhook-lookup.d.cts +3 -3
- package/dist/actions/get-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/get-webhook-lookup.d.mts +3 -3
- package/dist/actions/get-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/get-webhook-lookup.mjs +1 -0
- package/dist/actions/get-webhook-lookup.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -0
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +3 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +3 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +1 -0
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +1 -0
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +3 -9
- package/dist/actions/list-disputes.d.cts.map +1 -1
- package/dist/actions/list-disputes.d.mts +3 -9
- package/dist/actions/list-disputes.d.mts.map +1 -1
- package/dist/actions/list-disputes.mjs +1 -0
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +1 -0
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +3 -6
- package/dist/actions/list-invoices.d.cts.map +1 -1
- package/dist/actions/list-invoices.d.mts +3 -6
- package/dist/actions/list-invoices.d.mts.map +1 -1
- package/dist/actions/list-invoices.mjs +1 -0
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.cjs +1 -0
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.cts +3 -8
- package/dist/actions/list-legacy-billing-plans.d.cts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.mts +3 -8
- package/dist/actions/list-legacy-billing-plans.d.mts.map +1 -1
- package/dist/actions/list-legacy-billing-plans.mjs +1 -0
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +1 -0
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +3 -9
- package/dist/actions/list-payments.d.cts.map +1 -1
- package/dist/actions/list-payments.d.mts +3 -9
- package/dist/actions/list-payments.d.mts.map +1 -1
- package/dist/actions/list-payments.mjs +1 -0
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +1 -0
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +3 -6
- package/dist/actions/list-plans.d.cts.map +1 -1
- package/dist/actions/list-plans.d.mts +3 -6
- package/dist/actions/list-plans.d.mts.map +1 -1
- package/dist/actions/list-plans.mjs +1 -0
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs +1 -0
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +3 -5
- package/dist/actions/list-products.d.cts.map +1 -1
- package/dist/actions/list-products.d.mts +3 -5
- package/dist/actions/list-products.d.mts.map +1 -1
- package/dist/actions/list-products.mjs +1 -0
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +1 -0
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +3 -5
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +3 -5
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +1 -0
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-web-profiles.cjs +1 -0
- package/dist/actions/list-web-profiles.cjs.map +1 -1
- package/dist/actions/list-web-profiles.d.cts +3 -5
- package/dist/actions/list-web-profiles.d.cts.map +1 -1
- package/dist/actions/list-web-profiles.d.mts +3 -5
- package/dist/actions/list-web-profiles.d.mts.map +1 -1
- package/dist/actions/list-web-profiles.mjs +1 -0
- package/dist/actions/list-web-profiles.mjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +1 -0
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
- package/dist/actions/list-webhook-event-types.cjs +1 -0
- package/dist/actions/list-webhook-event-types.cjs.map +1 -1
- package/dist/actions/list-webhook-event-types.d.cts +3 -1
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-types.d.mts +3 -1
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-types.mjs +1 -0
- package/dist/actions/list-webhook-event-types.mjs.map +1 -1
- package/dist/actions/list-webhook-lookups.cjs +1 -0
- package/dist/actions/list-webhook-lookups.cjs.map +1 -1
- package/dist/actions/list-webhook-lookups.d.cts +3 -1
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
- package/dist/actions/list-webhook-lookups.d.mts +3 -1
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
- package/dist/actions/list-webhook-lookups.mjs +1 -0
- package/dist/actions/list-webhook-lookups.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -0
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +3 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -0
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/patch-orders.cjs +1 -0
- package/dist/actions/patch-orders.cjs.map +1 -1
- package/dist/actions/patch-orders.d.cts +3 -10
- package/dist/actions/patch-orders.d.cts.map +1 -1
- package/dist/actions/patch-orders.d.mts +3 -10
- package/dist/actions/patch-orders.d.mts.map +1 -1
- package/dist/actions/patch-orders.mjs +1 -0
- package/dist/actions/patch-orders.mjs.map +1 -1
- package/dist/actions/patch-plan.cjs +1 -0
- package/dist/actions/patch-plan.cjs.map +1 -1
- package/dist/actions/patch-plan.d.cts +3 -10
- package/dist/actions/patch-plan.d.cts.map +1 -1
- package/dist/actions/patch-plan.d.mts +3 -10
- package/dist/actions/patch-plan.d.mts.map +1 -1
- package/dist/actions/patch-plan.mjs +1 -0
- package/dist/actions/patch-plan.mjs.map +1 -1
- package/dist/actions/patch-subscription.cjs +1 -0
- package/dist/actions/patch-subscription.cjs.map +1 -1
- package/dist/actions/patch-subscription.d.cts +3 -10
- package/dist/actions/patch-subscription.d.cts.map +1 -1
- package/dist/actions/patch-subscription.d.mts +3 -10
- package/dist/actions/patch-subscription.d.mts.map +1 -1
- package/dist/actions/patch-subscription.mjs +1 -0
- package/dist/actions/patch-subscription.mjs.map +1 -1
- package/dist/actions/patch-web-profile.cjs +1 -0
- package/dist/actions/patch-web-profile.cjs.map +1 -1
- package/dist/actions/patch-web-profile.d.cts +3 -10
- package/dist/actions/patch-web-profile.d.cts.map +1 -1
- package/dist/actions/patch-web-profile.d.mts +3 -10
- package/dist/actions/patch-web-profile.d.mts.map +1 -1
- package/dist/actions/patch-web-profile.mjs +1 -0
- package/dist/actions/patch-web-profile.mjs.map +1 -1
- package/dist/actions/ping-braintree.cjs +1 -0
- package/dist/actions/ping-braintree.cjs.map +1 -1
- package/dist/actions/ping-braintree.d.cts +3 -1
- package/dist/actions/ping-braintree.d.cts.map +1 -1
- package/dist/actions/ping-braintree.d.mts +3 -1
- package/dist/actions/ping-braintree.d.mts.map +1 -1
- package/dist/actions/ping-braintree.mjs +1 -0
- package/dist/actions/ping-braintree.mjs.map +1 -1
- package/dist/actions/query-braintree-report.cjs +1 -0
- package/dist/actions/query-braintree-report.cjs.map +1 -1
- package/dist/actions/query-braintree-report.d.cts +3 -6
- package/dist/actions/query-braintree-report.d.cts.map +1 -1
- package/dist/actions/query-braintree-report.d.mts +3 -6
- package/dist/actions/query-braintree-report.d.mts.map +1 -1
- package/dist/actions/query-braintree-report.mjs +1 -0
- package/dist/actions/query-braintree-report.mjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.cjs +1 -0
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.cts +3 -3
- package/dist/actions/retrieve-payment-resource.d.cts.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.mts +3 -3
- package/dist/actions/retrieve-payment-resource.d.mts.map +1 -1
- package/dist/actions/retrieve-payment-resource.mjs +1 -0
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
- package/dist/actions/search-invoices.cjs +1 -0
- package/dist/actions/search-invoices.cjs.map +1 -1
- package/dist/actions/search-invoices.d.cts +5 -44
- package/dist/actions/search-invoices.d.cts.map +1 -1
- package/dist/actions/search-invoices.d.mts +5 -44
- package/dist/actions/search-invoices.d.mts.map +1 -1
- package/dist/actions/search-invoices.mjs +1 -0
- package/dist/actions/search-invoices.mjs.map +1 -1
- package/dist/actions/send-invoice.cjs +1 -0
- package/dist/actions/send-invoice.cjs.map +1 -1
- package/dist/actions/send-invoice.d.cts +3 -8
- package/dist/actions/send-invoice.d.cts.map +1 -1
- package/dist/actions/send-invoice.d.mts +3 -8
- package/dist/actions/send-invoice.d.mts.map +1 -1
- package/dist/actions/send-invoice.mjs +1 -0
- package/dist/actions/send-invoice.mjs.map +1 -1
- package/dist/actions/simulate-webhook-event.cjs +1 -0
- package/dist/actions/simulate-webhook-event.cjs.map +1 -1
- package/dist/actions/simulate-webhook-event.d.cts +3 -6
- package/dist/actions/simulate-webhook-event.d.cts.map +1 -1
- package/dist/actions/simulate-webhook-event.d.mts +3 -6
- package/dist/actions/simulate-webhook-event.d.mts.map +1 -1
- package/dist/actions/simulate-webhook-event.mjs +1 -0
- package/dist/actions/simulate-webhook-event.mjs.map +1 -1
- package/dist/actions/update-dispute.cjs +1 -0
- package/dist/actions/update-dispute.cjs.map +1 -1
- package/dist/actions/update-dispute.d.cts +3 -10
- package/dist/actions/update-dispute.d.cts.map +1 -1
- package/dist/actions/update-dispute.d.mts +3 -10
- package/dist/actions/update-dispute.d.mts.map +1 -1
- package/dist/actions/update-dispute.mjs +1 -0
- package/dist/actions/update-dispute.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +1 -0
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +5 -171
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +5 -171
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +1 -0
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-pay-pal-product.cjs +1 -0
- package/dist/actions/update-pay-pal-product.cjs.map +1 -1
- package/dist/actions/update-pay-pal-product.d.cts +3 -10
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-product.d.mts +3 -10
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-product.mjs +1 -0
- package/dist/actions/update-pay-pal-product.mjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.cjs +1 -0
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.cts +3 -10
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.mts +3 -10
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.mjs +1 -0
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
- package/dist/actions/update-templates.cjs +1 -0
- package/dist/actions/update-templates.cjs.map +1 -1
- package/dist/actions/update-templates.d.cts +3 -213
- package/dist/actions/update-templates.d.cts.map +1 -1
- package/dist/actions/update-templates.d.mts +3 -213
- package/dist/actions/update-templates.d.mts.map +1 -1
- package/dist/actions/update-templates.mjs +1 -0
- package/dist/actions/update-templates.mjs.map +1 -1
- package/dist/actions/update-web-profile.cjs +1 -0
- package/dist/actions/update-web-profile.cjs.map +1 -1
- package/dist/actions/update-web-profile.d.cts +3 -20
- package/dist/actions/update-web-profile.d.cts.map +1 -1
- package/dist/actions/update-web-profile.d.mts +3 -20
- package/dist/actions/update-web-profile.d.mts.map +1 -1
- package/dist/actions/update-web-profile.mjs +1 -0
- package/dist/actions/update-web-profile.mjs.map +1 -1
- package/dist/actions/verify-payment-method.cjs +1 -0
- package/dist/actions/verify-payment-method.cjs.map +1 -1
- package/dist/actions/verify-payment-method.d.cts +3 -6
- package/dist/actions/verify-payment-method.d.cts.map +1 -1
- package/dist/actions/verify-payment-method.d.mts +3 -6
- package/dist/actions/verify-payment-method.d.mts.map +1 -1
- package/dist/actions/verify-payment-method.mjs +1 -0
- package/dist/actions/verify-payment-method.mjs.map +1 -1
- package/dist/actions/verify-webhook-signature.cjs +1 -0
- package/dist/actions/verify-webhook-signature.cjs.map +1 -1
- package/dist/actions/verify-webhook-signature.d.cts +3 -24
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
- package/dist/actions/verify-webhook-signature.d.mts +3 -24
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
- package/dist/actions/verify-webhook-signature.mjs +1 -0
- package/dist/actions/verify-webhook-signature.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-payment.d.ts
|
|
@@ -91,9 +93,7 @@ declare const PaypalGetPaymentOutput: z.ZodObject<{
|
|
|
91
93
|
}, z.core.$loose>>>>;
|
|
92
94
|
}, z.core.$loose>>>>;
|
|
93
95
|
}, z.core.$loose>;
|
|
94
|
-
declare const paypalGetPayment:
|
|
95
|
-
payment_id: string;
|
|
96
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
96
|
+
declare const paypalGetPayment: AppAction<typeof PaypalGetPaymentInput, typeof PaypalGetPaymentOutput, typeof paypal.credential>;
|
|
97
97
|
//#endregion
|
|
98
98
|
export { paypalGetPayment };
|
|
99
99
|
//# sourceMappingURL=get-payment.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payment.d.mts","names":[],"sources":["../../src/actions/get-payment.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-payment.d.mts","names":[],"sources":["../../src/actions/get-payment.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cA2ErB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payment.mjs","names":[],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPaymentInput = z.object({\n payment_id: z.string().describe(\"The ID of the payment to retrieve. This is the unique identifier assigned when a payment was created.\"),\n}).describe(\"Request schema for retrieving a PayPal payment by ID.\");\nconst PaypalGetPayment_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'approval_url', 'execute').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this payment.\");\nconst PaypalGetPayment_ShippingDetailsSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n line1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n line2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n recipient_name: z.string().describe(\"The name of the person at the shipping address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the payment.\");\nconst PaypalGetPayment_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The payer's phone number.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n last_name: z.string().describe(\"The payer's last name.\").nullable().optional(),\n first_name: z.string().describe(\"The payer's first name.\").nullable().optional(),\n shipping_address: PaypalGetPayment_ShippingDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Detailed payer information.\");\nconst PaypalGetPayment_PayerSchema = z.object({\n status: z.string().describe(\"The status of the payer's verified account.\").nullable().optional(),\n payer_info: PaypalGetPayment_PayerInfoSchema.nullable().optional(),\n payment_method: z.string().describe(\"The payment method used. Value is 'paypal' or 'credit_card'.\").nullable().optional(),\n}).passthrough().describe(\"The payment's payer information.\");\nconst PaypalGetPayment_PayeeSchema = z.object({\n email: z.string().describe(\"The email address of the merchant.\").nullable().optional(),\n merchant_id: z.string().describe(\"The PayPal account ID of the merchant.\").nullable().optional(),\n}).passthrough().describe(\"The merchant who receives payment.\");\nconst PaypalGetPayment_AmountSchema = z.object({\n total: z.string().describe(\"The total amount charged. Required when the currency is specified.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"The additional amount details, such as handling fees, insurance, or shipping.\").nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a transaction.\");\nconst PaypalGetPayment_SaleSchema = z.object({\n id: z.string().describe(\"The PayPal sale ID.\").nullable().optional(),\n state: z.string().describe(\"The sale state. Possible values: pending, completed, refunded,buyer_complaint, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A sale transaction.\");\nconst PaypalGetPayment_OrderSchema = z.object({\n id: z.string().describe(\"The PayPal order ID.\").nullable().optional(),\n state: z.string().describe(\"The order state. Possible values: pending, started, completed, reversed.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An order transaction.\");\nconst PaypalGetPayment_CaptureSchema = z.object({\n id: z.string().describe(\"The PayPal capture ID.\").nullable().optional(),\n state: z.string().describe(\"The capture state. Possible values: pending, completed, refunded, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A capture transaction.\");\nconst PaypalGetPayment_AuthorizationSchema = z.object({\n id: z.string().describe(\"The PayPal authorization ID.\").nullable().optional(),\n state: z.string().describe(\"The authorization state. Possible values: pending, authorized, captured, voided.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An authorization transaction.\");\nconst PaypalGetPayment_RelatedResourcesSchema = z.object({\n sale: PaypalGetPayment_SaleSchema.nullable().optional(),\n order: PaypalGetPayment_OrderSchema.nullable().optional(),\n refund: z.record(z.string(), z.unknown()).describe(\"The refund transaction.\").nullable().optional(),\n capture: PaypalGetPayment_CaptureSchema.nullable().optional(),\n authorization: PaypalGetPayment_AuthorizationSchema.nullable().optional(),\n}).passthrough().describe(\"The resources related to the payment transaction.\");\nconst PaypalGetPayment_TransactionSchema = z.object({\n payee: PaypalGetPayment_PayeeSchema.nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"Custom field passed by the merchant.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number used by the merchant to track the payment.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor to be shown on the payer's statement.\").nullable().optional(),\n related_resources: z.array(PaypalGetPayment_RelatedResourcesSchema).describe(\"The resources that are related to this transaction, such as sale, authorization, or capture.\").nullable().optional(),\n}).passthrough().describe(\"A transaction describes the financial details of a payment.\");\nexport const PaypalGetPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal payment ID. This is the unique identifier for the payment.\").nullable().optional(),\n cart: z.string().describe(\"The encrypted ID of the cart for this transaction.\").nullable().optional(),\n links: z.array(PaypalGetPayment_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment. These links provide actions that can be performed on the payment, such as executing or redirecting.\").nullable().optional(),\n payer: PaypalGetPayment_PayerSchema.nullable().optional(),\n state: z.string().describe(\"The state of the payment. Possible values: created, approved, failed, canceled, expired.\").nullable().optional(),\n intent: z.string().describe(\"The intent of the payment. Possible values: sale, authorize, order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was last updated.\").nullable().optional(),\n transactions: z.array(PaypalGetPayment_TransactionSchema).describe(\"The list of transactions. Contains financial details including amounts, payee, and related resources like sales or authorizations.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving payment details.\");\n\nexport const paypalGetPayment = action(\"PAYPAL_GET_PAYMENT\", {\n slug: \"paypal-get-payment\",\n name: \"Get Payment Details\",\n description: \"Retrieves details for a PayPal payment by its ID using the deprecated v1 Payments API. Use when you need to check the status, payer information, transaction details, or related resources of an existing payment. This action is useful for verifying payment details, checking if a payment was approved, viewing transaction amounts, or accessing related sale/authorization/capture resources. Note that this is a deprecated v1 API endpoint — consider using the v2 Payments API for new integrations.\",\n input: PaypalGetPaymentInput,\n output: PaypalGetPaymentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACzI,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAc,EAAE,OAAO,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AC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-payment.mjs","names":[],"sources":["../../src/actions/get-payment.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetPaymentInput = z.object({\n payment_id: z.string().describe(\"The ID of the payment to retrieve. This is the unique identifier assigned when a payment was created.\"),\n}).describe(\"Request schema for retrieving a PayPal payment by ID.\");\nconst PaypalGetPayment_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'approval_url', 'execute').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this payment.\");\nconst PaypalGetPayment_ShippingDetailsSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n line1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n line2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n state: z.string().describe(\"The state or province code.\").nullable().optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n recipient_name: z.string().describe(\"The name of the person at the shipping address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the payment.\");\nconst PaypalGetPayment_PayerInfoSchema = z.object({\n email: z.string().describe(\"The email address of the payer.\").nullable().optional(),\n phone: z.string().describe(\"The payer's phone number.\").nullable().optional(),\n payer_id: z.string().describe(\"The PayPal-assigned ID for the payer.\").nullable().optional(),\n last_name: z.string().describe(\"The payer's last name.\").nullable().optional(),\n first_name: z.string().describe(\"The payer's first name.\").nullable().optional(),\n shipping_address: PaypalGetPayment_ShippingDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Detailed payer information.\");\nconst PaypalGetPayment_PayerSchema = z.object({\n status: z.string().describe(\"The status of the payer's verified account.\").nullable().optional(),\n payer_info: PaypalGetPayment_PayerInfoSchema.nullable().optional(),\n payment_method: z.string().describe(\"The payment method used. Value is 'paypal' or 'credit_card'.\").nullable().optional(),\n}).passthrough().describe(\"The payment's payer information.\");\nconst PaypalGetPayment_PayeeSchema = z.object({\n email: z.string().describe(\"The email address of the merchant.\").nullable().optional(),\n merchant_id: z.string().describe(\"The PayPal account ID of the merchant.\").nullable().optional(),\n}).passthrough().describe(\"The merchant who receives payment.\");\nconst PaypalGetPayment_AmountSchema = z.object({\n total: z.string().describe(\"The total amount charged. Required when the currency is specified.\").nullable().optional(),\n details: z.record(z.string(), z.unknown()).describe(\"The additional amount details, such as handling fees, insurance, or shipping.\").nullable().optional(),\n currency: z.string().describe(\"The three-character ISO-4217 currency code that identifies the currency.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a transaction.\");\nconst PaypalGetPayment_SaleSchema = z.object({\n id: z.string().describe(\"The PayPal sale ID.\").nullable().optional(),\n state: z.string().describe(\"The sale state. Possible values: pending, completed, refunded,buyer_complaint, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A sale transaction.\");\nconst PaypalGetPayment_OrderSchema = z.object({\n id: z.string().describe(\"The PayPal order ID.\").nullable().optional(),\n state: z.string().describe(\"The order state. Possible values: pending, started, completed, reversed.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An order transaction.\");\nconst PaypalGetPayment_CaptureSchema = z.object({\n id: z.string().describe(\"The PayPal capture ID.\").nullable().optional(),\n state: z.string().describe(\"The capture state. Possible values: pending, completed, refunded, denied.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"A capture transaction.\");\nconst PaypalGetPayment_AuthorizationSchema = z.object({\n id: z.string().describe(\"The PayPal authorization ID.\").nullable().optional(),\n state: z.string().describe(\"The authorization state. Possible values: pending, authorized, captured, voided.\").nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n}).passthrough().describe(\"An authorization transaction.\");\nconst PaypalGetPayment_RelatedResourcesSchema = z.object({\n sale: PaypalGetPayment_SaleSchema.nullable().optional(),\n order: PaypalGetPayment_OrderSchema.nullable().optional(),\n refund: z.record(z.string(), z.unknown()).describe(\"The refund transaction.\").nullable().optional(),\n capture: PaypalGetPayment_CaptureSchema.nullable().optional(),\n authorization: PaypalGetPayment_AuthorizationSchema.nullable().optional(),\n}).passthrough().describe(\"The resources related to the payment transaction.\");\nconst PaypalGetPayment_TransactionSchema = z.object({\n payee: PaypalGetPayment_PayeeSchema.nullable().optional(),\n amount: PaypalGetPayment_AmountSchema.nullable().optional(),\n custom: z.string().describe(\"Custom field passed by the merchant.\").nullable().optional(),\n description: z.string().describe(\"The description of the transaction.\").nullable().optional(),\n invoice_number: z.string().describe(\"The invoice number used by the merchant to track the payment.\").nullable().optional(),\n soft_descriptor: z.string().describe(\"The soft descriptor to be shown on the payer's statement.\").nullable().optional(),\n related_resources: z.array(PaypalGetPayment_RelatedResourcesSchema).describe(\"The resources that are related to this transaction, such as sale, authorization, or capture.\").nullable().optional(),\n}).passthrough().describe(\"A transaction describes the financial details of a payment.\");\nexport const PaypalGetPaymentOutput = z.object({\n id: z.string().describe(\"The PayPal payment ID. This is the unique identifier for the payment.\").nullable().optional(),\n cart: z.string().describe(\"The encrypted ID of the cart for this transaction.\").nullable().optional(),\n links: z.array(PaypalGetPayment_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this payment. These links provide actions that can be performed on the payment, such as executing or redirecting.\").nullable().optional(),\n payer: PaypalGetPayment_PayerSchema.nullable().optional(),\n state: z.string().describe(\"The state of the payment. Possible values: created, approved, failed, canceled, expired.\").nullable().optional(),\n intent: z.string().describe(\"The intent of the payment. Possible values: sale, authorize, order.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the payment was last updated.\").nullable().optional(),\n transactions: z.array(PaypalGetPayment_TransactionSchema).describe(\"The list of transactions. Contains financial details including amounts, payee, and related resources like sales or authorizations.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving payment details.\");\n\nexport const paypalGetPayment: AppAction<\n typeof PaypalGetPaymentInput,\n typeof PaypalGetPaymentOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PAYMENT\", {\n slug: \"paypal-get-payment\",\n name: \"Get Payment Details\",\n description: \"Retrieves details for a PayPal payment by its ID using the deprecated v1 Payments API. Use when you need to check the status, payer information, transaction details, or related resources of an existing payment. This action is useful for verifying payment details, checking if a payment was approved, viewing transaction amounts, or accessing related sale/authorization/capture resources. Note that this is a deprecated v1 API endpoint — consider using the v2 Payments API for new integrations.\",\n input: PaypalGetPaymentInput,\n output: PaypalGetPaymentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,EACzI,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAA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,CAAC,CAAC,SAAS;EACvH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClI,cAAc,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/N,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payments-refund.cjs","names":["z","action"],"sources":["../../src/actions/get-payments-refund.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPaymentsRefundInput = z.object({\n refund_id: z.string().describe(\"The ID of the refund to retrieve. This is the unique identifier assigned when a refund was created.\"),\n}).describe(\"Request schema for retrieving a PayPal refund by ID.\");\nconst PaypalGetPaymentsRefund_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this refund.\");\nconst PaypalGetPaymentsRefund_MoneySchema = z.object({\n value: z.string().describe(\"The monetary value as a string.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nexport const PaypalGetPaymentsRefundOutput = z.object({\n id: z.string().describe(\"The PayPal refund ID. This is the unique identifier for the refund.\").nullable().optional(),\n links: z.array(PaypalGetPaymentsRefund_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this refund. These links provide actions that can be performed on the refund, such as viewing the parent payment.\").nullable().optional(),\n amount: PaypalGetPaymentsRefund_MoneySchema.nullable().optional(),\n reason: z.string().describe(\"The reason for the refund.\").nullable().optional(),\n status: z.string().describe(\"The status of the refund. Possible values: CANCELED, PENDING, REFUNDED.\").nullable().optional(),\n capture_id: z.string().describe(\"The ID of the capture associated with this refund.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID provided by the merchant for this refund.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was last updated.\").nullable().optional(),\n note_to_payer: z.string().describe(\"The note to the payer describing the refund.\").nullable().optional(),\n parentPayment: z.string().describe(\"The ID of the payment resource on which this refund is applied.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving refund details.\");\n\nexport const paypalGetPaymentsRefund = action(\"PAYPAL_GET_PAYMENTS_REFUND\", {\n slug: \"paypal-get-payments-refund\",\n name: \"Get Refund Details\",\n description: \"Retrieves details for a PayPal refund by its ID. Use when you need to check the status, amount, or details of an existing refund. This action is useful for verifying refund details, checking refund status, or monitoring refund progress. Note that this is a deprecated v1 API endpoint.\",\n input: PaypalGetPaymentsRefundInput,\n output: PaypalGetPaymentsRefundOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-payments-refund.cjs","names":["z","action"],"sources":["../../src/actions/get-payments-refund.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetPaymentsRefundInput = z.object({\n refund_id: z.string().describe(\"The ID of the refund to retrieve. This is the unique identifier assigned when a refund was created.\"),\n}).describe(\"Request schema for retrieving a PayPal refund by ID.\");\nconst PaypalGetPaymentsRefund_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this refund.\");\nconst PaypalGetPaymentsRefund_MoneySchema = z.object({\n value: z.string().describe(\"The monetary value as a string.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nexport const PaypalGetPaymentsRefundOutput = z.object({\n id: z.string().describe(\"The PayPal refund ID. This is the unique identifier for the refund.\").nullable().optional(),\n links: z.array(PaypalGetPaymentsRefund_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this refund. These links provide actions that can be performed on the refund, such as viewing the parent payment.\").nullable().optional(),\n amount: PaypalGetPaymentsRefund_MoneySchema.nullable().optional(),\n reason: z.string().describe(\"The reason for the refund.\").nullable().optional(),\n status: z.string().describe(\"The status of the refund. Possible values: CANCELED, PENDING, REFUNDED.\").nullable().optional(),\n capture_id: z.string().describe(\"The ID of the capture associated with this refund.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID provided by the merchant for this refund.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was last updated.\").nullable().optional(),\n note_to_payer: z.string().describe(\"The note to the payer describing the refund.\").nullable().optional(),\n parentPayment: z.string().describe(\"The ID of the payment resource on which this refund is applied.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving refund details.\");\n\nexport const paypalGetPaymentsRefund: AppAction<\n typeof PaypalGetPaymentsRefundInput,\n typeof PaypalGetPaymentsRefundOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PAYMENTS_REFUND\", {\n slug: \"paypal-get-payments-refund\",\n name: \"Get Refund Details\",\n description: \"Retrieves details for a PayPal refund by its ID. Use when you need to check the status, amount, or details of an existing refund. This action is useful for verifying refund details, checking refund status, or monitoring refund progress. Note that this is a deprecated v1 API endpoint.\",\n input: P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,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-payments-refund.d.ts
|
|
@@ -24,9 +26,7 @@ declare const PaypalGetPaymentsRefundOutput: z.ZodObject<{
|
|
|
24
26
|
note_to_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
parentPayment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const paypalGetPaymentsRefund:
|
|
28
|
-
refund_id: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const paypalGetPaymentsRefund: AppAction<typeof PaypalGetPaymentsRefundInput, typeof PaypalGetPaymentsRefundOutput, typeof paypal.credential>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { paypalGetPaymentsRefund };
|
|
32
32
|
//# sourceMappingURL=get-payments-refund.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payments-refund.d.cts","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-payments-refund.d.cts","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAY5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAc7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-payments-refund.d.ts
|
|
@@ -24,9 +26,7 @@ declare const PaypalGetPaymentsRefundOutput: z.ZodObject<{
|
|
|
24
26
|
note_to_payer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
27
|
parentPayment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const paypalGetPaymentsRefund:
|
|
28
|
-
refund_id: string;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
29
|
+
declare const paypalGetPaymentsRefund: AppAction<typeof PaypalGetPaymentsRefundInput, typeof PaypalGetPaymentsRefundOutput, typeof paypal.credential>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { paypalGetPaymentsRefund };
|
|
32
32
|
//# sourceMappingURL=get-payments-refund.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payments-refund.d.mts","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-payments-refund.d.mts","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAY5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAc7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-payments-refund.mjs","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPaymentsRefundInput = z.object({\n refund_id: z.string().describe(\"The ID of the refund to retrieve. This is the unique identifier assigned when a refund was created.\"),\n}).describe(\"Request schema for retrieving a PayPal refund by ID.\");\nconst PaypalGetPaymentsRefund_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this refund.\");\nconst PaypalGetPaymentsRefund_MoneySchema = z.object({\n value: z.string().describe(\"The monetary value as a string.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nexport const PaypalGetPaymentsRefundOutput = z.object({\n id: z.string().describe(\"The PayPal refund ID. This is the unique identifier for the refund.\").nullable().optional(),\n links: z.array(PaypalGetPaymentsRefund_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this refund. These links provide actions that can be performed on the refund, such as viewing the parent payment.\").nullable().optional(),\n amount: PaypalGetPaymentsRefund_MoneySchema.nullable().optional(),\n reason: z.string().describe(\"The reason for the refund.\").nullable().optional(),\n status: z.string().describe(\"The status of the refund. Possible values: CANCELED, PENDING, REFUNDED.\").nullable().optional(),\n capture_id: z.string().describe(\"The ID of the capture associated with this refund.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID provided by the merchant for this refund.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was last updated.\").nullable().optional(),\n note_to_payer: z.string().describe(\"The note to the payer describing the refund.\").nullable().optional(),\n parentPayment: z.string().describe(\"The ID of the payment resource on which this refund is applied.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving refund details.\");\n\nexport const paypalGetPaymentsRefund = action(\"PAYPAL_GET_PAYMENTS_REFUND\", {\n slug: \"paypal-get-payments-refund\",\n name: \"Get Refund Details\",\n description: \"Retrieves details for a PayPal refund by its ID. Use when you need to check the status, amount, or details of an existing refund. This action is useful for verifying refund details, checking refund status, or monitoring refund progress. Note that this is a deprecated v1 API endpoint.\",\n input: PaypalGetPaymentsRefundInput,\n output: PaypalGetPaymentsRefundOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-payments-refund.mjs","names":[],"sources":["../../src/actions/get-payments-refund.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetPaymentsRefundInput = z.object({\n refund_id: z.string().describe(\"The ID of the refund to retrieve. This is the unique identifier assigned when a refund was created.\"),\n}).describe(\"Request schema for retrieving a PayPal refund by ID.\");\nconst PaypalGetPaymentsRefund_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'capture').\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this refund.\");\nconst PaypalGetPaymentsRefund_MoneySchema = z.object({\n value: z.string().describe(\"The monetary value as a string.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nexport const PaypalGetPaymentsRefundOutput = z.object({\n id: z.string().describe(\"The PayPal refund ID. This is the unique identifier for the refund.\").nullable().optional(),\n links: z.array(PaypalGetPaymentsRefund_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to this refund. These links provide actions that can be performed on the refund, such as viewing the parent payment.\").nullable().optional(),\n amount: PaypalGetPaymentsRefund_MoneySchema.nullable().optional(),\n reason: z.string().describe(\"The reason for the refund.\").nullable().optional(),\n status: z.string().describe(\"The status of the refund. Possible values: CANCELED, PENDING, REFUNDED.\").nullable().optional(),\n capture_id: z.string().describe(\"The ID of the capture associated with this refund.\").nullable().optional(),\n invoice_id: z.string().describe(\"The invoice ID provided by the merchant for this refund.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time, in ISO 8601 format, when the refund was last updated.\").nullable().optional(),\n note_to_payer: z.string().describe(\"The note to the payer describing the refund.\").nullable().optional(),\n parentPayment: z.string().describe(\"The ID of the payment resource on which this refund is applied.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving refund details.\");\n\nexport const paypalGetPaymentsRefund: AppAction<\n typeof PaypalGetPaymentsRefundInput,\n typeof PaypalGetPaymentsRefundOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PAYMENTS_REFUND\", {\n slug: \"paypal-get-payments-refund\",\n name: \"Get Refund Details\",\n description: \"Retrieves details for a PayPal refund by its ID. Use when you need to check the status, amount, or details of an existing refund. This action is useful for verifying refund details, checking refund status, or monitoring refund progress. Note that this is a deprecated v1 API endpoint.\",\n input: PaypalGetPaymentsRefundInput,\n output: PaypalGetPaymentsRefundOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO,EACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,EACtI,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAM,sCAAsC,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAehF,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAvB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,OAAO,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrP,QAAQ,oCAAoC,SAAS,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plan.cjs","names":["z","action"],"sources":["../../src/actions/get-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPlanInput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan. Plan IDs start with 'P-' followed by alphanumeric characters.\"),\n}).describe(\"Request schema for retrieving a PayPal billing plan by ID.\");\nconst PaypalGetPlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'first', 'last').\").nullable().optional(),\n href: z.string().describe(\"The link URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information.\");\nconst PaypalGetPlan_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The percentage, as a fixed-point, signed decimal number.\").nullable().optional(),\n}).passthrough().describe(\"Model for tax details.\");\nconst PaypalGetPlan_FrequencySchema = z.object({\n intervalUnit: z.string().describe(\"The interval for the billing cycle. The possible values are DAY, WEEK, MONTH, YEAR.\").nullable().optional(),\n intervalCount: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing happens every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Model for billing frequency details.\");\nconst PaypalGetPlan_PricingTierSchema = z.object({\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for this tier.\").nullable().optional(),\n endingQuantity: z.string().describe(\"The ending quantity for this tier.\").nullable().optional(),\n startingQuantity: z.string().describe(\"The starting quantity for this tier.\").nullable().optional(),\n}).passthrough().describe(\"Model for a pricing tier in volume-based pricing.\");\nconst PaypalGetPlan_PricingSchemeSchema = z.object({\n tiers: z.array(PaypalGetPlan_PricingTierSchema).describe(\"The pricing tiers for volume-based pricing.\").nullable().optional(),\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for the billing cycle.\").nullable().optional(),\n pricingModel: z.string().describe(\"The pricing model for the billing cycle.\").nullable().optional(),\n}).passthrough().describe(\"Model for pricing scheme details.\");\nconst PaypalGetPlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The sequence of the billing cycle.\").nullable().optional(),\n frequency: PaypalGetPlan_FrequencySchema.nullable().optional(),\n tenureType: z.string().describe(\"The tenure type of the billing cycle. Possible values: REGULAR, TRIAL.\").nullable().optional(),\n totalCycles: z.number().int().describe(\"The total number of billing cycles.\").nullable().optional(),\n pricingScheme: PaypalGetPlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Model for billing cycle details.\");\nconst PaypalGetPlan_MoneySchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currencyCode: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"Model for currency amounts.\");\nconst PaypalGetPlan_PaymentPreferencesSchema = z.object({\n setupFee: PaypalGetPlan_MoneySchema.nullable().optional(),\n autoBillOutstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setupFeeFailureAction: z.string().describe(\"The action to take on the subscription if the initial payment for the setup fails. Possible values: CONTINUE, CANCEL.\").nullable().optional(),\n paymentFailureThreshold: z.number().int().describe(\"The maximum number of payment failures before a subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Model for payment preferences.\");\nexport const PaypalGetPlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalGetPlan_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n taxes: PaypalGetPlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. Possible values: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n productId: z.string().describe(\"The ID for the product.\").nullable().optional(),\n createTime: z.string().describe(\"The date and time when the plan was created.\").nullable().optional(),\n updateTime: z.string().describe(\"The date and time when the plan was last updated.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n billingCycles: z.array(PaypalGetPlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantitySupported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n paymentPreferences: PaypalGetPlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving plan details.\");\n\nexport const paypalGetPlan = action(\"PAYPAL_GET_PLAN\", {\n slug: \"paypal-get-plan\",\n name: \"Get Plan\",\n description: \"Retrieves details for a specific PayPal billing plan by its ID. Use when you need to fetch information about an existing subscription plan, such as its pricing, billing cycles, status, or payment preferences.\",\n input: PaypalGetPlanInput,\n output: PaypalGetPlanOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,EACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,EACtI,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,4BAA4BA,IAAAA,EAAE,OAAO;CACzC,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,eAAeA,IAAAA,EAAE,OAAO,CA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CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,OAAO,0BAA0B,SAAS,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,oBAAoB,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,gBAAgBC,eAAAA,OAAO,mBAAmB;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-plan.cjs","names":["z","action"],"sources":["../../src/actions/get-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetPlanInput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan. Plan IDs start with 'P-' followed by alphanumeric characters.\"),\n}).describe(\"Request schema for retrieving a PayPal billing plan by ID.\");\nconst PaypalGetPlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'first', 'last').\").nullable().optional(),\n href: z.string().describe(\"The link URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information.\");\nconst PaypalGetPlan_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The percentage, as a fixed-point, signed decimal number.\").nullable().optional(),\n}).passthrough().describe(\"Model for tax details.\");\nconst PaypalGetPlan_FrequencySchema = z.object({\n intervalUnit: z.string().describe(\"The interval for the billing cycle. The possible values are DAY, WEEK, MONTH, YEAR.\").nullable().optional(),\n intervalCount: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing happens every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Model for billing frequency details.\");\nconst PaypalGetPlan_PricingTierSchema = z.object({\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for this tier.\").nullable().optional(),\n endingQuantity: z.string().describe(\"The ending quantity for this tier.\").nullable().optional(),\n startingQuantity: z.string().describe(\"The starting quantity for this tier.\").nullable().optional(),\n}).passthrough().describe(\"Model for a pricing tier in volume-based pricing.\");\nconst PaypalGetPlan_PricingSchemeSchema = z.object({\n tiers: z.array(PaypalGetPlan_PricingTierSchema).describe(\"The pricing tiers for volume-based pricing.\").nullable().optional(),\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for the billing cycle.\").nullable().optional(),\n pricingModel: z.string().describe(\"The pricing model for the billing cycle.\").nullable().optional(),\n}).passthrough().describe(\"Model for pricing scheme details.\");\nconst PaypalGetPlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The sequence of the billing cycle.\").nullable().optional(),\n frequency: PaypalGetPlan_FrequencySchema.nullable().optional(),\n tenureType: z.string().describe(\"The tenure type of the billing cycle. Possible values: REGULAR, TRIAL.\").nullable().optional(),\n totalCycles: z.number().int().describe(\"The total number of billing cycles.\").nullable().optional(),\n pricingScheme: PaypalGetPlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Model for billing cycle details.\");\nconst PaypalGetPlan_MoneySchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currencyCode: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"Model for currency amounts.\");\nconst PaypalGetPlan_PaymentPreferencesSchema = z.object({\n setupFee: PaypalGetPlan_MoneySchema.nullable().optional(),\n autoBillOutstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setupFeeFailureAction: z.string().describe(\"The action to take on the subscription if the initial payment for the setup fails. Possible values: CONTINUE, CANCEL.\").nullable().optional(),\n paymentFailureThreshold: z.number().int().describe(\"The maximum number of payment failures before a subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Model for payment preferences.\");\nexport const PaypalGetPlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalGetPlan_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n taxes: PaypalGetPlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. Possible values: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n productId: z.string().describe(\"The ID for the product.\").nullable().optional(),\n createTime: z.string().describe(\"The date and time when the plan was created.\").nullable().optional(),\n updateTime: z.string().describe(\"The date and time when the plan was last updated.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n billingCycles: z.array(PaypalGetPlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantitySupported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n paymentPreferences: PaypalGetPlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving plan details.\");\n\nexport const paypalGetPlan: AppAction<\n typeof PaypalGetPlanInput,\n typeof PaypalGetPlanOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PLAN\", {\n slug: \"paypal-get-plan\",\n name: \"Get Plan\",\n description: \"Retrieves details for a specific PayPal billing plan by its ID. Use when you need to fetch information about an existing subscription plan, such as its pricing, billing cycles, status, or payment preferences.\",\n input: PaypalGetPlanInput,\n output: PaypalGetPlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO,EACzC,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,EACtI,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,sCAAsCA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,4BAA4BA,IAAAA,EAAE,OAAO;CACzC,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,E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AAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,gBAITC,eAAAA,OAAO,mBAAmB;CAC5B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-plan.d.ts
|
|
@@ -50,9 +52,7 @@ declare const PaypalGetPlanOutput: z.ZodObject<{
|
|
|
50
52
|
paymentFailureThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
53
|
}, z.core.$loose>>>;
|
|
52
54
|
}, z.core.$loose>;
|
|
53
|
-
declare const paypalGetPlan:
|
|
54
|
-
id: string;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
|
+
declare const paypalGetPlan: AppAction<typeof PaypalGetPlanInput, typeof PaypalGetPlanOutput, typeof paypal.credential>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { paypalGetPlan };
|
|
58
58
|
//# sourceMappingURL=get-plan.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plan.d.cts","names":[],"sources":["../../src/actions/get-plan.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-plan.d.cts","names":[],"sources":["../../src/actions/get-plan.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;cA2ClB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAenB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-plan.d.ts
|
|
@@ -50,9 +52,7 @@ declare const PaypalGetPlanOutput: z.ZodObject<{
|
|
|
50
52
|
paymentFailureThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
53
|
}, z.core.$loose>>>;
|
|
52
54
|
}, z.core.$loose>;
|
|
53
|
-
declare const paypalGetPlan:
|
|
54
|
-
id: string;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
55
|
+
declare const paypalGetPlan: AppAction<typeof PaypalGetPlanInput, typeof PaypalGetPlanOutput, typeof paypal.credential>;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { paypalGetPlan };
|
|
58
58
|
//# sourceMappingURL=get-plan.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plan.d.mts","names":[],"sources":["../../src/actions/get-plan.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-plan.d.mts","names":[],"sources":["../../src/actions/get-plan.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;cA2ClB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAenB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-plan.mjs","names":[],"sources":["../../src/actions/get-plan.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetPlanInput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan. Plan IDs start with 'P-' followed by alphanumeric characters.\"),\n}).describe(\"Request schema for retrieving a PayPal billing plan by ID.\");\nconst PaypalGetPlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'first', 'last').\").nullable().optional(),\n href: z.string().describe(\"The link URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information.\");\nconst PaypalGetPlan_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The percentage, as a fixed-point, signed decimal number.\").nullable().optional(),\n}).passthrough().describe(\"Model for tax details.\");\nconst PaypalGetPlan_FrequencySchema = z.object({\n intervalUnit: z.string().describe(\"The interval for the billing cycle. The possible values are DAY, WEEK, MONTH, YEAR.\").nullable().optional(),\n intervalCount: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing happens every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Model for billing frequency details.\");\nconst PaypalGetPlan_PricingTierSchema = z.object({\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for this tier.\").nullable().optional(),\n endingQuantity: z.string().describe(\"The ending quantity for this tier.\").nullable().optional(),\n startingQuantity: z.string().describe(\"The starting quantity for this tier.\").nullable().optional(),\n}).passthrough().describe(\"Model for a pricing tier in volume-based pricing.\");\nconst PaypalGetPlan_PricingSchemeSchema = z.object({\n tiers: z.array(PaypalGetPlan_PricingTierSchema).describe(\"The pricing tiers for volume-based pricing.\").nullable().optional(),\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for the billing cycle.\").nullable().optional(),\n pricingModel: z.string().describe(\"The pricing model for the billing cycle.\").nullable().optional(),\n}).passthrough().describe(\"Model for pricing scheme details.\");\nconst PaypalGetPlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The sequence of the billing cycle.\").nullable().optional(),\n frequency: PaypalGetPlan_FrequencySchema.nullable().optional(),\n tenureType: z.string().describe(\"The tenure type of the billing cycle. Possible values: REGULAR, TRIAL.\").nullable().optional(),\n totalCycles: z.number().int().describe(\"The total number of billing cycles.\").nullable().optional(),\n pricingScheme: PaypalGetPlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Model for billing cycle details.\");\nconst PaypalGetPlan_MoneySchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currencyCode: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"Model for currency amounts.\");\nconst PaypalGetPlan_PaymentPreferencesSchema = z.object({\n setupFee: PaypalGetPlan_MoneySchema.nullable().optional(),\n autoBillOutstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setupFeeFailureAction: z.string().describe(\"The action to take on the subscription if the initial payment for the setup fails. Possible values: CONTINUE, CANCEL.\").nullable().optional(),\n paymentFailureThreshold: z.number().int().describe(\"The maximum number of payment failures before a subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Model for payment preferences.\");\nexport const PaypalGetPlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalGetPlan_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n taxes: PaypalGetPlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. Possible values: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n productId: z.string().describe(\"The ID for the product.\").nullable().optional(),\n createTime: z.string().describe(\"The date and time when the plan was created.\").nullable().optional(),\n updateTime: z.string().describe(\"The date and time when the plan was last updated.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n billingCycles: z.array(PaypalGetPlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantitySupported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n paymentPreferences: PaypalGetPlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving plan details.\");\n\nexport const paypalGetPlan = action(\"PAYPAL_GET_PLAN\", {\n slug: \"paypal-get-plan\",\n name: \"Get Plan\",\n description: \"Retrieves details for a specific PayPal billing plan by its ID. Use when you need to fetch information about an existing subscription plan, such as its pricing, billing cycles, status, or payment preferences.\",\n input: PaypalGetPlanInput,\n output: PaypalGetPlanOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-plan.mjs","names":[],"sources":["../../src/actions/get-plan.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetPlanInput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan. Plan IDs start with 'P-' followed by alphanumeric characters.\"),\n}).describe(\"Request schema for retrieving a PayPal billing plan by ID.\");\nconst PaypalGetPlan_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type (e.g., 'self', 'up', 'first', 'last').\").nullable().optional(),\n href: z.string().describe(\"The link URL.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the link.\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information.\");\nconst PaypalGetPlan_TaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Indicates whether the tax was already included in the billing amount.\").nullable().optional(),\n percentage: z.string().describe(\"The percentage, as a fixed-point, signed decimal number.\").nullable().optional(),\n}).passthrough().describe(\"Model for tax details.\");\nconst PaypalGetPlan_FrequencySchema = z.object({\n intervalUnit: z.string().describe(\"The interval for the billing cycle. The possible values are DAY, WEEK, MONTH, YEAR.\").nullable().optional(),\n intervalCount: z.number().int().describe(\"The number of intervals between billing cycles. For example, if interval_unit is MONTH and interval_count is 3, billing happens every 3 months.\").nullable().optional(),\n}).passthrough().describe(\"Model for billing frequency details.\");\nconst PaypalGetPlan_PricingTierSchema = z.object({\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for this tier.\").nullable().optional(),\n endingQuantity: z.string().describe(\"The ending quantity for this tier.\").nullable().optional(),\n startingQuantity: z.string().describe(\"The starting quantity for this tier.\").nullable().optional(),\n}).passthrough().describe(\"Model for a pricing tier in volume-based pricing.\");\nconst PaypalGetPlan_PricingSchemeSchema = z.object({\n tiers: z.array(PaypalGetPlan_PricingTierSchema).describe(\"The pricing tiers for volume-based pricing.\").nullable().optional(),\n fixedPrice: z.record(z.string(), z.unknown()).describe(\"The fixed price for the billing cycle.\").nullable().optional(),\n pricingModel: z.string().describe(\"The pricing model for the billing cycle.\").nullable().optional(),\n}).passthrough().describe(\"Model for pricing scheme details.\");\nconst PaypalGetPlan_BillingCycleSchema = z.object({\n sequence: z.number().int().describe(\"The sequence of the billing cycle.\").nullable().optional(),\n frequency: PaypalGetPlan_FrequencySchema.nullable().optional(),\n tenureType: z.string().describe(\"The tenure type of the billing cycle. Possible values: REGULAR, TRIAL.\").nullable().optional(),\n totalCycles: z.number().int().describe(\"The total number of billing cycles.\").nullable().optional(),\n pricingScheme: PaypalGetPlan_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Model for billing cycle details.\");\nconst PaypalGetPlan_MoneySchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currencyCode: z.string().describe(\"The three-letter ISO 4217 currency code.\").nullable().optional(),\n}).passthrough().describe(\"Model for currency amounts.\");\nconst PaypalGetPlan_PaymentPreferencesSchema = z.object({\n setupFee: PaypalGetPlan_MoneySchema.nullable().optional(),\n autoBillOutstanding: z.boolean().describe(\"Indicates whether to automatically bill the outstanding amount in the next billing cycle.\").nullable().optional(),\n setupFeeFailureAction: z.string().describe(\"The action to take on the subscription if the initial payment for the setup fails. Possible values: CONTINUE, CANCEL.\").nullable().optional(),\n paymentFailureThreshold: z.number().int().describe(\"The maximum number of payment failures before a subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Model for payment preferences.\");\nexport const PaypalGetPlanOutput = z.object({\n id: z.string().describe(\"The unique PayPal-generated ID for the plan.\").nullable().optional(),\n name: z.string().describe(\"The plan name.\").nullable().optional(),\n links: z.array(PaypalGetPlan_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links.\").nullable().optional(),\n taxes: PaypalGetPlan_TaxesSchema.nullable().optional(),\n status: z.string().describe(\"The plan status. Possible values: CREATED, INACTIVE, ACTIVE.\").nullable().optional(),\n productId: z.string().describe(\"The ID for the product.\").nullable().optional(),\n createTime: z.string().describe(\"The date and time when the plan was created.\").nullable().optional(),\n updateTime: z.string().describe(\"The date and time when the plan was last updated.\").nullable().optional(),\n description: z.string().describe(\"The detailed description of the plan.\").nullable().optional(),\n billingCycles: z.array(PaypalGetPlan_BillingCycleSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n quantitySupported: z.boolean().describe(\"Indicates whether you can subscribe to this plan by providing a quantity.\").nullable().optional(),\n paymentPreferences: PaypalGetPlan_PaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for retrieving plan details.\");\n\nexport const paypalGetPlan: AppAction<\n typeof PaypalGetPlanInput,\n typeof PaypalGetPlanOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PLAN\", {\n slug: \"paypal-get-plan\",\n name: \"Get Plan\",\n description: \"Retrieves details for a specific PayPal billing plan by its ID. Use when you need to fetch information about an existing subscription plan, such as its pricing, billing cycles, status, or payment preferences.\",\n input: PaypalGetPlanInput,\n output: PaypalGetPlanOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO,EACzC,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,EACtI,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,sCAAsC,EAAE,OAAO;CACnD,KAAK,EAAE,OAAO,CAA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AAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzI,oBAAoB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product.cjs","names":["z","action"],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetProductInput = z.object({\n product_id: z.string().describe(\"The ID of the product to retrieve. This is the unique identifier assigned when the product was created.\"),\n}).describe(\"Request model for getting a PayPal product by ID.\");\nconst PaypalGetProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'up').\").nullable(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information in the product response.\");\nexport const PaypalGetProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable(),\n name: z.string().describe(\"The product name.\").nullable(),\n type: z.string().describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Possible values: PHYSICAL, DIGITAL, SERVICE.\").nullable().optional(),\n links: z.array(PaypalGetProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the product.\").nullable().optional(),\n category: z.string().describe(\"The product category. A comprehensive list of valid categories is available in the PayPal API documentation.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n}).passthrough().describe(\"Response model containing product details from PayPal API.\");\n\nexport const paypalGetProduct = action(\"PAYPAL_GET_PRODUCT\", {\n slug: \"paypal-get-product\",\n name: \"Get Product\",\n description: \"Retrieves detailed information about a specific PayPal product by its ID. Use when you need to get details about a product, such as its name, description, category, or type. This action is useful for verifying product details before creating plans or subscriptions.\",\n input: PaypalGetProductInput,\n output: PaypalGetProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-product.cjs","names":["z","action"],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetProductInput = z.object({\n product_id: z.string().describe(\"The ID of the product to retrieve. This is the unique identifier assigned when the product was created.\"),\n}).describe(\"Request model for getting a PayPal product by ID.\");\nconst PaypalGetProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'up').\").nullable(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information in the product response.\");\nexport const PaypalGetProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable(),\n name: z.string().describe(\"The product name.\").nullable(),\n type: z.string().describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Possible values: PHYSICAL, DIGITAL, SERVICE.\").nullable().optional(),\n links: z.array(PaypalGetProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the product.\").nullable().optional(),\n category: z.string().describe(\"The product category. A comprehensive list of valid categories is available in the PayPal API documentation.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n}).passthrough().describe(\"Response model containing product details from PayPal API.\");\n\nexport const paypalGetProduct: AppAction<\n typeof PaypalGetProductInput,\n typeof PaypalGetProductOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PRODUCT\", {\n slug: \"paypal-get-product\",\n name: \"Get Product\",\n description: \"Retrieves detailed information about a specific PayPal product by its ID. Use when you need to get details about a product, such as its name, description, category, or type. This action is useful for verifying product details before creating plans or subscriptions.\",\n input: PaypalGetProductInput,\n output: PaypalGetProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EAC3I,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1L,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpM,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAEtF,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-product.d.ts
|
|
@@ -20,9 +22,7 @@ declare const PaypalGetProductOutput: z.ZodObject<{
|
|
|
20
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const paypalGetProduct:
|
|
24
|
-
product_id: string;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const paypalGetProduct: AppAction<typeof PaypalGetProductInput, typeof PaypalGetProductOutput, typeof paypal.credential>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { paypalGetProduct };
|
|
28
28
|
//# sourceMappingURL=get-product.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product.d.cts","names":[],"sources":["../../src/actions/get-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-product.d.cts","names":[],"sources":["../../src/actions/get-product.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAQrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAatB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { paypal } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-product.d.ts
|
|
@@ -20,9 +22,7 @@ declare const PaypalGetProductOutput: z.ZodObject<{
|
|
|
20
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>;
|
|
23
|
-
declare const paypalGetProduct:
|
|
24
|
-
product_id: string;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
|
+
declare const paypalGetProduct: AppAction<typeof PaypalGetProductInput, typeof PaypalGetProductOutput, typeof paypal.credential>;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { paypalGetProduct };
|
|
28
28
|
//# sourceMappingURL=get-product.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product.d.mts","names":[],"sources":["../../src/actions/get-product.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-product.d.mts","names":[],"sources":["../../src/actions/get-product.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAQrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAatB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-product.mjs","names":[],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetProductInput = z.object({\n product_id: z.string().describe(\"The ID of the product to retrieve. This is the unique identifier assigned when the product was created.\"),\n}).describe(\"Request model for getting a PayPal product by ID.\");\nconst PaypalGetProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'up').\").nullable(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information in the product response.\");\nexport const PaypalGetProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable(),\n name: z.string().describe(\"The product name.\").nullable(),\n type: z.string().describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Possible values: PHYSICAL, DIGITAL, SERVICE.\").nullable().optional(),\n links: z.array(PaypalGetProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the product.\").nullable().optional(),\n category: z.string().describe(\"The product category. A comprehensive list of valid categories is available in the PayPal API documentation.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n}).passthrough().describe(\"Response model containing product details from PayPal API.\");\n\nexport const paypalGetProduct = action(\"PAYPAL_GET_PRODUCT\", {\n slug: \"paypal-get-product\",\n name: \"Get Product\",\n description: \"Retrieves detailed information about a specific PayPal product by its ID. Use when you need to get details about a product, such as its name, description, category, or type. This action is useful for verifying product details before creating plans or subscriptions.\",\n input: PaypalGetProductInput,\n output: PaypalGetProductOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-product.mjs","names":[],"sources":["../../src/actions/get-product.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetProductInput = z.object({\n product_id: z.string().describe(\"The ID of the product to retrieve. This is the unique identifier assigned when the product was created.\"),\n}).describe(\"Request model for getting a PayPal product by ID.\");\nconst PaypalGetProduct_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The relationship between the response and the linked resource (e.g., 'self', 'up').\").nullable(),\n href: z.string().describe(\"The URL of the link.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method to use when following the link (e.g., 'GET', 'POST').\").nullable().optional(),\n}).passthrough().describe(\"Model for HATEOAS link information in the product response.\");\nexport const PaypalGetProductOutput = z.object({\n id: z.string().describe(\"The unique identifier for the product.\").nullable(),\n name: z.string().describe(\"The product name.\").nullable(),\n type: z.string().describe(\"The product type. Indicates whether the product is physical or digital goods, or a service. Possible values: PHYSICAL, DIGITAL, SERVICE.\").nullable().optional(),\n links: z.array(PaypalGetProduct_LinkDescriptionSchema).describe(\"An array of request-related HATEOAS links. These links provide actions that can be performed on the product.\").nullable().optional(),\n category: z.string().describe(\"The product category. A comprehensive list of valid categories is available in the PayPal API documentation.\").nullable().optional(),\n home_url: z.string().describe(\"The home page URL for the product.\").nullable().optional(),\n image_url: z.string().describe(\"The image URL for the product.\").nullable().optional(),\n create_time: z.string().describe(\"The date and time when the product was created, in Internet date and time format (RFC3339).\").nullable().optional(),\n description: z.string().describe(\"The product description.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the product was last updated, in Internet date and time format (RFC3339).\").nullable().optional(),\n}).passthrough().describe(\"Response model containing product details from PayPal API.\");\n\nexport const paypalGetProduct: AppAction<\n typeof PaypalGetProductInput,\n typeof PaypalGetProductOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_PRODUCT\", {\n slug: \"paypal-get-product\",\n name: \"Get Product\",\n description: \"Retrieves detailed information about a specific PayPal product by its ID. Use when you need to get details about a product, such as its name, description, category, or type. This action is useful for verifying product details before creating plans or subscriptions.\",\n input: PaypalGetProductInput,\n output: PaypalGetProductOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO,EAC5C,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,EAC3I,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACzH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAcvF,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBoC,EAAE,OAAO;EAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0IAA0I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1L,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpM,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscription.cjs","names":["z","action"],"sources":["../../src/actions/get-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalGetSubscriptionInput = z.object({\n id: z.string().describe(\"The ID of the subscription to retrieve.\"),\n fields: z.string().describe(\"A comma-separated list of additional fields to include in the response. Possible values are 'last_failed_payment' and 'plan'.\").optional(),\n}).describe(\"Request model for getting subscription details.\");\nconst PaypalGetSubscription_PlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan.\").nullable().optional(),\n}).passthrough().describe(\"The plan information for the subscription.\");\nconst PaypalGetSubscription_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n enc_type: z.string().describe(\"The encryption type of the link.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this subscription.\");\nconst PaypalGetSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The surname of the subscriber.\").nullable().optional(),\n given_name: z.string().describe(\"The given name of the subscriber.\").nullable().optional(),\n}).passthrough().describe(\"The name parts of the subscriber.\");\nconst PaypalGetSubscription_SubscriberSchema = z.object({\n name: PaypalGetSubscription_SubscriberNameSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal ID of the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the subscriber.\").nullable().optional(),\n subscriber_id: z.string().describe(\"The internal identifier for the subscriber.\").nullable().optional(),\n}).passthrough().describe(\"The subscriber information for the subscription.\");\nconst PaypalGetSubscription_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"The shipping amount for the subscription.\");\nconst PaypalGetSubscription_PaymentDetailsSchema = z.object({\n time: z.string().describe(\"The date and time of the payment.\").nullable().optional(),\n amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status: z.string().describe(\"The status of the payment.\").nullable().optional(),\n}).passthrough().describe(\"Details of a payment transaction.\");\nconst PaypalGetSubscription_CycleExecutionSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles.\").nullable().optional(),\n cycles_completed: z.number().int().describe(\"The number of cycles completed.\").nullable().optional(),\n cycles_remaining: z.number().int().describe(\"The number of cycles remaining.\").nullable().optional(),\n}).passthrough().describe(\"Details of a cycle execution.\");\nconst PaypalGetSubscription_ShippingAddressSchema = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state or province code.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city name.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the subscription.\");\nconst PaypalGetSubscription_BillingInfoSchema = z.object({\n last_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n cycle_executions: z.array(PaypalGetSubscription_CycleExecutionSchema).describe(\"The cycle executions for the subscription.\").nullable().optional(),\n shipping_address: PaypalGetSubscription_ShippingAddressSchema.nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing date and time.\").nullable().optional(),\n last_failed_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n failed_payment_count: z.number().int().describe(\"The number of failed payments.\").nullable().optional(),\n}).passthrough().describe(\"The billing information for the subscription.\");\nexport const PaypalGetSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n plan: PaypalGetSubscription_PlanSchema.nullable().optional(),\n links: z.array(PaypalGetSubscription_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the subscription.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., ACTIVE, SUSPENDED, CANCELLED, EXPIRED).\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan associated with the subscription.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"A custom ID you can set to track the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts.\").nullable().optional(),\n subscriber: PaypalGetSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The date and time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalGetSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Indicates whether the plan was overridden.\").nullable().optional(),\n shipping_amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status_change_note: z.string().describe(\"The reason for the status change.\").nullable().optional(),\n status_update_time: z.string().describe(\"The date and time when the status was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Response model for subscription details.\");\n\nexport const paypalGetSubscription = action(\"PAYPAL_GET_SUBSCRIPTION\", {\n slug: \"paypal-get-subscription\",\n name: \"Get Subscription Details\",\n description: \"Retrieves the details of a PayPal subscription by its ID. Use this action when you need to check the status, billing information, subscriber details, or other properties of an existing subscription. Optionally, you can request additional fields like 'last_failed_payment' or 'plan' details using the fields parameter.\",\n input: PaypalGetSubscriptionInput,\n output: PaypalGetSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAA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SAAS;CACxG,iBAAiB,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAChF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAEpE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get-subscription.cjs","names":["z","action"],"sources":["../../src/actions/get-subscription.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { paypal } from \"../app\";\n\nexport const PaypalGetSubscriptionInput = z.object({\n id: z.string().describe(\"The ID of the subscription to retrieve.\"),\n fields: z.string().describe(\"A comma-separated list of additional fields to include in the response. Possible values are 'last_failed_payment' and 'plan'.\").optional(),\n}).describe(\"Request model for getting subscription details.\");\nconst PaypalGetSubscription_PlanSchema = z.object({\n name: z.string().describe(\"The name of the plan.\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan.\").nullable().optional(),\n}).passthrough().describe(\"The plan information for the subscription.\");\nconst PaypalGetSubscription_LinkDescriptionSchema = z.object({\n rel: z.string().describe(\"The link relation type.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the related resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method required to invoke the related resource.\").nullable().optional(),\n enc_type: z.string().describe(\"The encryption type of the link.\").nullable().optional(),\n}).passthrough().describe(\"The HATEOAS link related to this subscription.\");\nconst PaypalGetSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The surname of the subscriber.\").nullable().optional(),\n given_name: z.string().describe(\"The given name of the subscriber.\").nullable().optional(),\n}).passthrough().describe(\"The name parts of the subscriber.\");\nconst PaypalGetSubscription_SubscriberSchema = z.object({\n name: PaypalGetSubscription_SubscriberNameSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal ID of the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The email address of the subscriber.\").nullable().optional(),\n subscriber_id: z.string().describe(\"The internal identifier for the subscriber.\").nullable().optional(),\n}).passthrough().describe(\"The subscriber information for the subscription.\");\nconst PaypalGetSubscription_ShippingAmountSchema = z.object({\n value: z.string().describe(\"The amount value.\").nullable().optional(),\n currency_code: z.string().describe(\"The three-character ISO currency code.\").nullable().optional(),\n}).passthrough().describe(\"The shipping amount for the subscription.\");\nconst PaypalGetSubscription_PaymentDetailsSchema = z.object({\n time: z.string().describe(\"The date and time of the payment.\").nullable().optional(),\n amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status: z.string().describe(\"The status of the payment.\").nullable().optional(),\n}).passthrough().describe(\"Details of a payment transaction.\");\nconst PaypalGetSubscription_CycleExecutionSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles.\").nullable().optional(),\n cycles_completed: z.number().int().describe(\"The number of cycles completed.\").nullable().optional(),\n cycles_remaining: z.number().int().describe(\"The number of cycles remaining.\").nullable().optional(),\n}).passthrough().describe(\"Details of a cycle execution.\");\nconst PaypalGetSubscription_ShippingAddressSchema = z.object({\n postal_code: z.string().describe(\"The postal code or ZIP code.\").nullable().optional(),\n admin_area_1: z.string().describe(\"The state or province code.\").nullable().optional(),\n admin_area_2: z.string().describe(\"The city name.\").nullable().optional(),\n country_code: z.string().describe(\"The two-character ISO country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"The first line of the address.\").nullable().optional(),\n address_line_2: z.string().describe(\"The second line of the address.\").nullable().optional(),\n}).passthrough().describe(\"The shipping address for the subscription.\");\nconst PaypalGetSubscription_BillingInfoSchema = z.object({\n last_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n cycle_executions: z.array(PaypalGetSubscription_CycleExecutionSchema).describe(\"The cycle executions for the subscription.\").nullable().optional(),\n shipping_address: PaypalGetSubscription_ShippingAddressSchema.nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing date and time.\").nullable().optional(),\n last_failed_payment: PaypalGetSubscription_PaymentDetailsSchema.nullable().optional(),\n failed_payment_count: z.number().int().describe(\"The number of failed payments.\").nullable().optional(),\n}).passthrough().describe(\"The billing information for the subscription.\");\nexport const PaypalGetSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n plan: PaypalGetSubscription_PlanSchema.nullable().optional(),\n links: z.array(PaypalGetSubscription_LinkDescriptionSchema).describe(\"An array of HATEOAS links related to the subscription.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., ACTIVE, SUSPENDED, CANCELLED, EXPIRED).\").nullable().optional(),\n plan_id: z.string().describe(\"The ID of the plan associated with the subscription.\").nullable().optional(),\n quantity: z.string().describe(\"The quantity of the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"A custom ID you can set to track the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts.\").nullable().optional(),\n subscriber: PaypalGetSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The date and time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The date and time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalGetSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Indicates whether the plan was overridden.\").nullable().optional(),\n shipping_amount: PaypalGetSubscription_ShippingAmountSchema.nullable().optional(),\n status_change_note: z.string().describe(\"The reason for the status change.\").nullable().optional(),\n status_update_time: z.string().describe(\"The date and time when the status was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Response model for subscription details.\");\n\nexport const paypalGetSubscription: AppAction<\n typeof PaypalGetSubscriptionInput,\n typeof PaypalGetSubscriptionOutput,\n typeof paypal.credential\n> = action(\"PAYPAL_GET_SUBSCRIPTION\", {\n slug: \"paypal-get-subscription\",\n name: \"Get Subscription Details\",\n description: \"Retrieves the details of a PayPal subscription by its ID. Use this action when you need to check the status, billing information, subscriber details, or other properties of an existing subscription. Optionally, you can request additional fields like 'last_failed_payment' or 'plan' details using the fields parameter.\",\n input: PaypalGetSubscriptionInput,\n output: PaypalGetSubscriptionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;AACxK,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAA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
|
+
import { paypal } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-subscription.d.ts
|
|
@@ -76,10 +78,7 @@ declare const PaypalGetSubscriptionOutput: z.ZodObject<{
|
|
|
76
78
|
status_change_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
79
|
status_update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
80
|
}, z.core.$loose>;
|
|
79
|
-
declare const paypalGetSubscription:
|
|
80
|
-
id: string;
|
|
81
|
-
fields?: string | undefined;
|
|
82
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
81
|
+
declare const paypalGetSubscription: AppAction<typeof PaypalGetSubscriptionInput, typeof PaypalGetSubscriptionOutput, typeof paypal.credential>;
|
|
83
82
|
//#endregion
|
|
84
83
|
export { paypalGetSubscription };
|
|
85
84
|
//# sourceMappingURL=get-subscription.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-subscription.d.cts","names":[],"sources":["../../src/actions/get-subscription.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-subscription.d.cts","names":[],"sources":["../../src/actions/get-subscription.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAwD1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
|