@keystrokehq/paypal 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/activate-plan.cjs +1 -1
- package/dist/actions/activate-plan.cjs.map +1 -1
- package/dist/actions/activate-plan.d.cts +14 -2
- package/dist/actions/activate-plan.d.mts +14 -2
- package/dist/actions/activate-plan.mjs +1 -1
- package/dist/actions/activate-plan.mjs.map +1 -1
- package/dist/actions/add-batch-trackers.cjs +5 -5
- package/dist/actions/add-batch-trackers.cjs.map +1 -1
- package/dist/actions/add-batch-trackers.d.cts +21 -8
- package/dist/actions/add-batch-trackers.d.mts +21 -8
- package/dist/actions/add-batch-trackers.mjs +5 -5
- package/dist/actions/add-batch-trackers.mjs.map +1 -1
- package/dist/actions/authorize-order.cjs +16 -16
- package/dist/actions/authorize-order.cjs.map +1 -1
- package/dist/actions/authorize-order.d.cts +34 -22
- package/dist/actions/authorize-order.d.cts.map +1 -1
- package/dist/actions/authorize-order.d.mts +34 -22
- package/dist/actions/authorize-order.d.mts.map +1 -1
- package/dist/actions/authorize-order.mjs +16 -16
- package/dist/actions/authorize-order.mjs.map +1 -1
- package/dist/actions/cancel-invoice.cjs +3 -3
- package/dist/actions/cancel-invoice.cjs.map +1 -1
- package/dist/actions/cancel-invoice.d.cts +16 -4
- package/dist/actions/cancel-invoice.d.mts +16 -4
- package/dist/actions/cancel-invoice.mjs +3 -3
- package/dist/actions/cancel-invoice.mjs.map +1 -1
- package/dist/actions/cancel-reminders.cjs +3 -3
- package/dist/actions/cancel-reminders.cjs.map +1 -1
- package/dist/actions/cancel-reminders.d.cts +16 -4
- package/dist/actions/cancel-reminders.d.mts +16 -4
- package/dist/actions/cancel-reminders.mjs +3 -3
- package/dist/actions/cancel-reminders.mjs.map +1 -1
- package/dist/actions/capture-subscription-payment.cjs +9 -9
- package/dist/actions/capture-subscription-payment.cjs.map +1 -1
- package/dist/actions/capture-subscription-payment.d.cts +23 -11
- package/dist/actions/capture-subscription-payment.d.mts +23 -11
- package/dist/actions/capture-subscription-payment.mjs +9 -9
- package/dist/actions/capture-subscription-payment.mjs.map +1 -1
- package/dist/actions/charge-payment-method.cjs +1 -1
- package/dist/actions/charge-payment-method.cjs.map +1 -1
- package/dist/actions/charge-payment-method.d.cts +14 -2
- package/dist/actions/charge-payment-method.d.cts.map +1 -1
- package/dist/actions/charge-payment-method.d.mts +14 -2
- package/dist/actions/charge-payment-method.d.mts.map +1 -1
- package/dist/actions/charge-payment-method.mjs +1 -1
- package/dist/actions/charge-payment-method.mjs.map +1 -1
- package/dist/actions/create-invoice.cjs +22 -22
- package/dist/actions/create-invoice.cjs.map +1 -1
- package/dist/actions/create-invoice.d.cts +49 -34
- package/dist/actions/create-invoice.d.mts +49 -34
- package/dist/actions/create-invoice.mjs +22 -22
- package/dist/actions/create-invoice.mjs.map +1 -1
- package/dist/actions/create-payment.cjs +31 -31
- package/dist/actions/create-payment.cjs.map +1 -1
- package/dist/actions/create-payment.d.cts +55 -39
- package/dist/actions/create-payment.d.mts +55 -39
- package/dist/actions/create-payment.mjs +31 -31
- package/dist/actions/create-payment.mjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.cjs +8 -8
- package/dist/actions/create-payments-billing-plans.cjs.map +1 -1
- package/dist/actions/create-payments-billing-plans.d.cts +24 -10
- package/dist/actions/create-payments-billing-plans.d.mts +24 -10
- package/dist/actions/create-payments-billing-plans.mjs +8 -8
- package/dist/actions/create-payments-billing-plans.mjs.map +1 -1
- package/dist/actions/create-plan.cjs +12 -12
- package/dist/actions/create-plan.cjs.map +1 -1
- package/dist/actions/create-plan.d.cts +27 -14
- package/dist/actions/create-plan.d.cts.map +1 -1
- package/dist/actions/create-plan.d.mts +27 -14
- package/dist/actions/create-plan.d.mts.map +1 -1
- package/dist/actions/create-plan.mjs +12 -12
- package/dist/actions/create-plan.mjs.map +1 -1
- package/dist/actions/create-product.cjs +2 -2
- package/dist/actions/create-product.cjs.map +1 -1
- package/dist/actions/create-product.d.cts +15 -3
- package/dist/actions/create-product.d.mts +15 -3
- package/dist/actions/create-product.mjs +2 -2
- package/dist/actions/create-product.mjs.map +1 -1
- package/dist/actions/create-subscription.cjs +15 -15
- package/dist/actions/create-subscription.cjs.map +1 -1
- package/dist/actions/create-subscription.d.cts +34 -21
- package/dist/actions/create-subscription.d.mts +34 -21
- package/dist/actions/create-subscription.mjs +15 -15
- package/dist/actions/create-subscription.mjs.map +1 -1
- package/dist/actions/create-template.cjs +25 -25
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +49 -31
- package/dist/actions/create-template.d.mts +49 -31
- package/dist/actions/create-template.mjs +25 -25
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/create-web-profile.cjs +5 -5
- package/dist/actions/create-web-profile.cjs.map +1 -1
- package/dist/actions/create-web-profile.d.cts +18 -6
- package/dist/actions/create-web-profile.d.mts +18 -6
- package/dist/actions/create-web-profile.mjs +5 -5
- package/dist/actions/create-web-profile.mjs.map +1 -1
- package/dist/actions/create-webhook-lookup.cjs +2 -2
- package/dist/actions/create-webhook-lookup.cjs.map +1 -1
- package/dist/actions/create-webhook-lookup.d.cts +15 -3
- package/dist/actions/create-webhook-lookup.d.cts.map +1 -1
- package/dist/actions/create-webhook-lookup.d.mts +15 -3
- package/dist/actions/create-webhook-lookup.d.mts.map +1 -1
- package/dist/actions/create-webhook-lookup.mjs +2 -2
- package/dist/actions/create-webhook-lookup.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +4 -4
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +18 -5
- package/dist/actions/create-webhook.d.mts +18 -5
- package/dist/actions/create-webhook.mjs +4 -4
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/deactivate-plan.cjs +1 -1
- package/dist/actions/deactivate-plan.cjs.map +1 -1
- package/dist/actions/deactivate-plan.d.cts +14 -2
- package/dist/actions/deactivate-plan.d.mts +14 -2
- package/dist/actions/deactivate-plan.mjs +1 -1
- package/dist/actions/deactivate-plan.mjs.map +1 -1
- package/dist/actions/delete-external-payment.cjs +1 -1
- package/dist/actions/delete-external-payment.cjs.map +1 -1
- package/dist/actions/delete-external-payment.d.cts +14 -2
- package/dist/actions/delete-external-payment.d.mts +14 -2
- package/dist/actions/delete-external-payment.mjs +1 -1
- package/dist/actions/delete-external-payment.mjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs +1 -1
- package/dist/actions/delete-invoice-payment-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-payment-record.d.cts +14 -2
- package/dist/actions/delete-invoice-payment-record.d.mts +14 -2
- package/dist/actions/delete-invoice-payment-record.mjs +1 -1
- package/dist/actions/delete-invoice-payment-record.mjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs +1 -1
- package/dist/actions/delete-invoice-refund-record.cjs.map +1 -1
- package/dist/actions/delete-invoice-refund-record.d.cts +14 -2
- package/dist/actions/delete-invoice-refund-record.d.mts +14 -2
- package/dist/actions/delete-invoice-refund-record.mjs +1 -1
- package/dist/actions/delete-invoice-refund-record.mjs.map +1 -1
- package/dist/actions/delete-invoice.cjs +3 -3
- package/dist/actions/delete-invoice.cjs.map +1 -1
- package/dist/actions/delete-invoice.d.cts +16 -4
- package/dist/actions/delete-invoice.d.mts +16 -4
- package/dist/actions/delete-invoice.mjs +3 -3
- package/dist/actions/delete-invoice.mjs.map +1 -1
- package/dist/actions/delete-payment-resource.cjs +1 -1
- package/dist/actions/delete-payment-resource.cjs.map +1 -1
- package/dist/actions/delete-payment-resource.d.cts +14 -2
- package/dist/actions/delete-payment-resource.d.mts +14 -2
- package/dist/actions/delete-payment-resource.mjs +1 -1
- package/dist/actions/delete-payment-resource.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +3 -3
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +16 -4
- package/dist/actions/delete-template.d.mts +16 -4
- package/dist/actions/delete-template.mjs +3 -3
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/delete-web-profile.cjs +1 -1
- package/dist/actions/delete-web-profile.cjs.map +1 -1
- package/dist/actions/delete-web-profile.d.cts +14 -2
- package/dist/actions/delete-web-profile.d.mts +14 -2
- package/dist/actions/delete-web-profile.mjs +1 -1
- package/dist/actions/delete-web-profile.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +3 -3
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +16 -4
- package/dist/actions/delete-webhook.d.mts +16 -4
- package/dist/actions/delete-webhook.mjs +3 -3
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-node.cjs +5 -5
- package/dist/actions/fetch-node.cjs.map +1 -1
- package/dist/actions/fetch-node.d.cts +18 -6
- package/dist/actions/fetch-node.d.mts +18 -6
- package/dist/actions/fetch-node.mjs +5 -5
- package/dist/actions/fetch-node.mjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.cjs.map +1 -1
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.cts +16 -4
- package/dist/actions/finalize-pay-pal-braintree-dispute.d.mts +16 -4
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs +3 -3
- package/dist/actions/finalize-pay-pal-braintree-dispute.mjs.map +1 -1
- package/dist/actions/find-eligible-methods.cjs +7 -7
- package/dist/actions/find-eligible-methods.cjs.map +1 -1
- package/dist/actions/find-eligible-methods.d.cts +24 -11
- package/dist/actions/find-eligible-methods.d.mts +24 -11
- package/dist/actions/find-eligible-methods.mjs +7 -7
- package/dist/actions/find-eligible-methods.mjs.map +1 -1
- package/dist/actions/generate-client-token.cjs +1 -1
- package/dist/actions/generate-client-token.cjs.map +1 -1
- package/dist/actions/generate-client-token.d.cts +14 -2
- package/dist/actions/generate-client-token.d.cts.map +1 -1
- package/dist/actions/generate-client-token.d.mts +14 -2
- package/dist/actions/generate-client-token.d.mts.map +1 -1
- package/dist/actions/generate-client-token.mjs +1 -1
- package/dist/actions/generate-client-token.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs +1 -1
- package/dist/actions/generate-next-invoice-number-v2.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number-v2.d.cts +14 -2
- package/dist/actions/generate-next-invoice-number-v2.d.mts +14 -2
- package/dist/actions/generate-next-invoice-number-v2.mjs +1 -1
- package/dist/actions/generate-next-invoice-number-v2.mjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.cjs +1 -1
- package/dist/actions/generate-next-invoice-number.cjs.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.cts +14 -2
- package/dist/actions/generate-next-invoice-number.d.cts.map +1 -1
- package/dist/actions/generate-next-invoice-number.d.mts +14 -2
- package/dist/actions/generate-next-invoice-number.d.mts.map +1 -1
- package/dist/actions/generate-next-invoice-number.mjs +1 -1
- package/dist/actions/generate-next-invoice-number.mjs.map +1 -1
- package/dist/actions/generate-qr-code.cjs +4 -4
- package/dist/actions/generate-qr-code.cjs.map +1 -1
- package/dist/actions/generate-qr-code.d.cts +17 -5
- package/dist/actions/generate-qr-code.d.mts +17 -5
- package/dist/actions/generate-qr-code.mjs +4 -4
- package/dist/actions/generate-qr-code.mjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.cjs +10 -10
- package/dist/actions/get-billing-subscriptions.cjs.map +1 -1
- package/dist/actions/get-billing-subscriptions.d.cts +24 -12
- package/dist/actions/get-billing-subscriptions.d.mts +24 -12
- package/dist/actions/get-billing-subscriptions.mjs +10 -10
- package/dist/actions/get-billing-subscriptions.mjs.map +1 -1
- package/dist/actions/get-invoice.cjs +24 -24
- package/dist/actions/get-invoice.cjs.map +1 -1
- package/dist/actions/get-invoice.d.cts +45 -33
- package/dist/actions/get-invoice.d.mts +45 -33
- package/dist/actions/get-invoice.mjs +24 -24
- package/dist/actions/get-invoice.mjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.cjs +2 -2
- package/dist/actions/get-invoicing-invoices-qr-code.cjs.map +1 -1
- package/dist/actions/get-invoicing-invoices-qr-code.d.cts +15 -3
- package/dist/actions/get-invoicing-invoices-qr-code.d.mts +15 -3
- package/dist/actions/get-invoicing-invoices-qr-code.mjs +2 -2
- package/dist/actions/get-invoicing-invoices-qr-code.mjs.map +1 -1
- package/dist/actions/get-invoicing-template.cjs +20 -20
- package/dist/actions/get-invoicing-template.cjs.map +1 -1
- package/dist/actions/get-invoicing-template.d.cts +42 -30
- package/dist/actions/get-invoicing-template.d.mts +42 -30
- package/dist/actions/get-invoicing-template.mjs +20 -20
- package/dist/actions/get-invoicing-template.mjs.map +1 -1
- package/dist/actions/get-order.cjs +16 -16
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +37 -25
- package/dist/actions/get-order.d.mts +37 -25
- package/dist/actions/get-order.mjs +16 -16
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-payment.cjs +14 -14
- package/dist/actions/get-payment.cjs.map +1 -1
- package/dist/actions/get-payment.d.cts +35 -23
- package/dist/actions/get-payment.d.mts +35 -23
- package/dist/actions/get-payment.mjs +14 -14
- package/dist/actions/get-payment.mjs.map +1 -1
- package/dist/actions/get-payments-refund.cjs +3 -3
- package/dist/actions/get-payments-refund.cjs.map +1 -1
- package/dist/actions/get-payments-refund.d.cts +16 -4
- package/dist/actions/get-payments-refund.d.mts +16 -4
- package/dist/actions/get-payments-refund.mjs +3 -3
- package/dist/actions/get-payments-refund.mjs.map +1 -1
- package/dist/actions/get-plan.cjs +11 -11
- package/dist/actions/get-plan.cjs.map +1 -1
- package/dist/actions/get-plan.d.cts +24 -12
- package/dist/actions/get-plan.d.mts +24 -12
- package/dist/actions/get-plan.mjs +11 -11
- package/dist/actions/get-plan.mjs.map +1 -1
- package/dist/actions/get-product.cjs +2 -2
- package/dist/actions/get-product.cjs.map +1 -1
- package/dist/actions/get-product.d.cts +15 -3
- package/dist/actions/get-product.d.mts +15 -3
- package/dist/actions/get-product.mjs +2 -2
- package/dist/actions/get-product.mjs.map +1 -1
- package/dist/actions/get-subscription.cjs +10 -10
- package/dist/actions/get-subscription.cjs.map +1 -1
- package/dist/actions/get-subscription.d.cts +26 -14
- package/dist/actions/get-subscription.d.mts +26 -14
- package/dist/actions/get-subscription.mjs +10 -10
- package/dist/actions/get-subscription.mjs.map +1 -1
- package/dist/actions/get-user-info.cjs +3 -3
- package/dist/actions/get-user-info.cjs.map +1 -1
- package/dist/actions/get-user-info.d.cts +16 -4
- package/dist/actions/get-user-info.d.mts +16 -4
- package/dist/actions/get-user-info.mjs +3 -3
- package/dist/actions/get-user-info.mjs.map +1 -1
- package/dist/actions/get-userinfo.cjs +3 -3
- package/dist/actions/get-userinfo.cjs.map +1 -1
- package/dist/actions/get-userinfo.d.cts +16 -4
- package/dist/actions/get-userinfo.d.mts +16 -4
- package/dist/actions/get-userinfo.mjs +3 -3
- package/dist/actions/get-userinfo.mjs.map +1 -1
- package/dist/actions/get-web-profile.cjs +4 -4
- package/dist/actions/get-web-profile.cjs.map +1 -1
- package/dist/actions/get-web-profile.d.cts +17 -5
- package/dist/actions/get-web-profile.d.mts +17 -5
- package/dist/actions/get-web-profile.mjs +4 -4
- package/dist/actions/get-web-profile.mjs.map +1 -1
- package/dist/actions/get-webhook-lookup.cjs +2 -2
- package/dist/actions/get-webhook-lookup.cjs.map +1 -1
- package/dist/actions/get-webhook-lookup.d.cts +15 -3
- package/dist/actions/get-webhook-lookup.d.mts +15 -3
- package/dist/actions/get-webhook-lookup.mjs +2 -2
- package/dist/actions/get-webhook-lookup.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +4 -4
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +17 -5
- package/dist/actions/get-webhook.d.mts +17 -5
- package/dist/actions/get-webhook.mjs +4 -4
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-disputes.cjs +5 -5
- package/dist/actions/list-disputes.cjs.map +1 -1
- package/dist/actions/list-disputes.d.cts +19 -7
- package/dist/actions/list-disputes.d.mts +19 -7
- package/dist/actions/list-disputes.mjs +5 -5
- package/dist/actions/list-disputes.mjs.map +1 -1
- package/dist/actions/list-invoices.cjs +15 -15
- package/dist/actions/list-invoices.cjs.map +1 -1
- package/dist/actions/list-invoices.d.cts +32 -20
- package/dist/actions/list-invoices.d.mts +32 -20
- package/dist/actions/list-invoices.mjs +15 -15
- package/dist/actions/list-invoices.mjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.cjs +7 -7
- package/dist/actions/list-legacy-billing-plans.cjs.map +1 -1
- package/dist/actions/list-legacy-billing-plans.d.cts +22 -10
- package/dist/actions/list-legacy-billing-plans.d.mts +22 -10
- package/dist/actions/list-legacy-billing-plans.mjs +7 -7
- package/dist/actions/list-legacy-billing-plans.mjs.map +1 -1
- package/dist/actions/list-payments.cjs +20 -20
- package/dist/actions/list-payments.cjs.map +1 -1
- package/dist/actions/list-payments.d.cts +40 -28
- package/dist/actions/list-payments.d.mts +40 -28
- package/dist/actions/list-payments.mjs +20 -20
- package/dist/actions/list-payments.mjs.map +1 -1
- package/dist/actions/list-plans.cjs +8 -8
- package/dist/actions/list-plans.cjs.map +1 -1
- package/dist/actions/list-plans.d.cts +22 -10
- package/dist/actions/list-plans.d.mts +22 -10
- package/dist/actions/list-plans.mjs +8 -8
- package/dist/actions/list-plans.mjs.map +1 -1
- package/dist/actions/list-products.cjs +3 -3
- package/dist/actions/list-products.cjs.map +1 -1
- package/dist/actions/list-products.d.cts +17 -5
- package/dist/actions/list-products.d.mts +17 -5
- package/dist/actions/list-products.mjs +3 -3
- package/dist/actions/list-products.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +8 -8
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +22 -10
- package/dist/actions/list-templates.d.mts +22 -10
- package/dist/actions/list-templates.mjs +8 -8
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/list-web-profiles.cjs +6 -6
- package/dist/actions/list-web-profiles.cjs.map +1 -1
- package/dist/actions/list-web-profiles.d.cts +19 -7
- package/dist/actions/list-web-profiles.d.mts +19 -7
- package/dist/actions/list-web-profiles.mjs +6 -6
- package/dist/actions/list-web-profiles.mjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.cjs +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.cjs.map +1 -1
- package/dist/actions/list-webhook-event-type-subscriptions.d.cts +16 -4
- package/dist/actions/list-webhook-event-type-subscriptions.d.mts +16 -4
- package/dist/actions/list-webhook-event-type-subscriptions.mjs +3 -3
- package/dist/actions/list-webhook-event-type-subscriptions.mjs.map +1 -1
- package/dist/actions/list-webhook-event-types.cjs +3 -3
- package/dist/actions/list-webhook-event-types.cjs.map +1 -1
- package/dist/actions/list-webhook-event-types.d.cts +16 -4
- package/dist/actions/list-webhook-event-types.d.cts.map +1 -1
- package/dist/actions/list-webhook-event-types.d.mts +16 -4
- package/dist/actions/list-webhook-event-types.d.mts.map +1 -1
- package/dist/actions/list-webhook-event-types.mjs +3 -3
- package/dist/actions/list-webhook-event-types.mjs.map +1 -1
- package/dist/actions/list-webhook-lookups.cjs +3 -3
- package/dist/actions/list-webhook-lookups.cjs.map +1 -1
- package/dist/actions/list-webhook-lookups.d.cts +16 -4
- package/dist/actions/list-webhook-lookups.d.cts.map +1 -1
- package/dist/actions/list-webhook-lookups.d.mts +16 -4
- package/dist/actions/list-webhook-lookups.d.mts.map +1 -1
- package/dist/actions/list-webhook-lookups.mjs +3 -3
- package/dist/actions/list-webhook-lookups.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +2 -2
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +15 -3
- package/dist/actions/list-webhooks.d.mts +15 -3
- package/dist/actions/list-webhooks.mjs +2 -2
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/patch-orders.cjs +2 -2
- package/dist/actions/patch-orders.cjs.map +1 -1
- package/dist/actions/patch-orders.d.cts +16 -3
- package/dist/actions/patch-orders.d.cts.map +1 -1
- package/dist/actions/patch-orders.d.mts +16 -3
- package/dist/actions/patch-orders.d.mts.map +1 -1
- package/dist/actions/patch-orders.mjs +2 -2
- package/dist/actions/patch-orders.mjs.map +1 -1
- package/dist/actions/patch-plan.cjs +2 -2
- package/dist/actions/patch-plan.cjs.map +1 -1
- package/dist/actions/patch-plan.d.cts +16 -3
- package/dist/actions/patch-plan.d.mts +16 -3
- package/dist/actions/patch-plan.mjs +2 -2
- package/dist/actions/patch-plan.mjs.map +1 -1
- package/dist/actions/patch-subscription.cjs +3 -3
- package/dist/actions/patch-subscription.cjs.map +1 -1
- package/dist/actions/patch-subscription.d.cts +17 -4
- package/dist/actions/patch-subscription.d.cts.map +1 -1
- package/dist/actions/patch-subscription.d.mts +17 -4
- package/dist/actions/patch-subscription.d.mts.map +1 -1
- package/dist/actions/patch-subscription.mjs +3 -3
- package/dist/actions/patch-subscription.mjs.map +1 -1
- package/dist/actions/patch-web-profile.cjs +2 -2
- package/dist/actions/patch-web-profile.cjs.map +1 -1
- package/dist/actions/patch-web-profile.d.cts +16 -3
- package/dist/actions/patch-web-profile.d.cts.map +1 -1
- package/dist/actions/patch-web-profile.d.mts +16 -3
- package/dist/actions/patch-web-profile.d.mts.map +1 -1
- package/dist/actions/patch-web-profile.mjs +2 -2
- package/dist/actions/patch-web-profile.mjs.map +1 -1
- package/dist/actions/ping-braintree.cjs +2 -2
- package/dist/actions/ping-braintree.cjs.map +1 -1
- package/dist/actions/ping-braintree.d.cts +15 -3
- package/dist/actions/ping-braintree.d.cts.map +1 -1
- package/dist/actions/ping-braintree.d.mts +15 -3
- package/dist/actions/ping-braintree.d.mts.map +1 -1
- package/dist/actions/ping-braintree.mjs +2 -2
- package/dist/actions/ping-braintree.mjs.map +1 -1
- package/dist/actions/query-braintree-report.cjs +4 -4
- package/dist/actions/query-braintree-report.cjs.map +1 -1
- package/dist/actions/query-braintree-report.d.cts +17 -5
- package/dist/actions/query-braintree-report.d.mts +17 -5
- package/dist/actions/query-braintree-report.mjs +4 -4
- package/dist/actions/query-braintree-report.mjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.cjs +11 -11
- package/dist/actions/retrieve-payment-resource.cjs.map +1 -1
- package/dist/actions/retrieve-payment-resource.d.cts +25 -13
- package/dist/actions/retrieve-payment-resource.d.mts +25 -13
- package/dist/actions/retrieve-payment-resource.mjs +11 -11
- package/dist/actions/retrieve-payment-resource.mjs.map +1 -1
- package/dist/actions/search-invoices.cjs +11 -11
- package/dist/actions/search-invoices.cjs.map +1 -1
- package/dist/actions/search-invoices.d.cts +28 -16
- package/dist/actions/search-invoices.d.mts +28 -16
- package/dist/actions/search-invoices.mjs +11 -11
- package/dist/actions/search-invoices.mjs.map +1 -1
- package/dist/actions/send-invoice.cjs +2 -2
- package/dist/actions/send-invoice.cjs.map +1 -1
- package/dist/actions/send-invoice.d.cts +15 -3
- package/dist/actions/send-invoice.d.mts +15 -3
- package/dist/actions/send-invoice.mjs +2 -2
- package/dist/actions/send-invoice.mjs.map +1 -1
- package/dist/actions/simulate-webhook-event.cjs +4 -4
- package/dist/actions/simulate-webhook-event.cjs.map +1 -1
- package/dist/actions/simulate-webhook-event.d.cts +17 -5
- package/dist/actions/simulate-webhook-event.d.mts +17 -5
- package/dist/actions/simulate-webhook-event.mjs +4 -4
- package/dist/actions/simulate-webhook-event.mjs.map +1 -1
- package/dist/actions/update-dispute.cjs +3 -3
- package/dist/actions/update-dispute.cjs.map +1 -1
- package/dist/actions/update-dispute.d.cts +17 -4
- package/dist/actions/update-dispute.d.mts +17 -4
- package/dist/actions/update-dispute.mjs +3 -3
- package/dist/actions/update-dispute.mjs.map +1 -1
- package/dist/actions/update-invoice.cjs +34 -34
- package/dist/actions/update-invoice.cjs.map +1 -1
- package/dist/actions/update-invoice.d.cts +67 -49
- package/dist/actions/update-invoice.d.cts.map +1 -1
- package/dist/actions/update-invoice.d.mts +67 -49
- package/dist/actions/update-invoice.d.mts.map +1 -1
- package/dist/actions/update-invoice.mjs +34 -34
- package/dist/actions/update-invoice.mjs.map +1 -1
- package/dist/actions/update-pay-pal-product.cjs +2 -2
- package/dist/actions/update-pay-pal-product.cjs.map +1 -1
- package/dist/actions/update-pay-pal-product.d.cts +16 -3
- package/dist/actions/update-pay-pal-product.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-product.d.mts +16 -3
- package/dist/actions/update-pay-pal-product.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-product.mjs +2 -2
- package/dist/actions/update-pay-pal-product.mjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.cjs +4 -4
- package/dist/actions/update-pay-pal-webhook.cjs.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.cts +18 -5
- package/dist/actions/update-pay-pal-webhook.d.cts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.d.mts +18 -5
- package/dist/actions/update-pay-pal-webhook.d.mts.map +1 -1
- package/dist/actions/update-pay-pal-webhook.mjs +4 -4
- package/dist/actions/update-pay-pal-webhook.mjs.map +1 -1
- package/dist/actions/update-templates.cjs +39 -39
- package/dist/actions/update-templates.cjs.map +1 -1
- package/dist/actions/update-templates.d.cts +78 -57
- package/dist/actions/update-templates.d.mts +78 -57
- package/dist/actions/update-templates.mjs +39 -39
- package/dist/actions/update-templates.mjs.map +1 -1
- package/dist/actions/update-web-profile.cjs +2 -2
- package/dist/actions/update-web-profile.cjs.map +1 -1
- package/dist/actions/update-web-profile.d.cts +15 -3
- package/dist/actions/update-web-profile.d.mts +15 -3
- package/dist/actions/update-web-profile.mjs +2 -2
- package/dist/actions/update-web-profile.mjs.map +1 -1
- package/dist/actions/verify-payment-method.cjs +2 -2
- package/dist/actions/verify-payment-method.cjs.map +1 -1
- package/dist/actions/verify-payment-method.d.cts +15 -3
- package/dist/actions/verify-payment-method.d.mts +15 -3
- package/dist/actions/verify-payment-method.mjs +2 -2
- package/dist/actions/verify-payment-method.mjs.map +1 -1
- package/dist/actions/verify-webhook-signature.cjs +1 -1
- package/dist/actions/verify-webhook-signature.cjs.map +1 -1
- package/dist/actions/verify-webhook-signature.d.cts +14 -2
- package/dist/actions/verify-webhook-signature.d.cts.map +1 -1
- package/dist/actions/verify-webhook-signature.d.mts +14 -2
- package/dist/actions/verify-webhook-signature.d.mts.map +1 -1
- package/dist/actions/verify-webhook-signature.mjs +1 -1
- package/dist/actions/verify-webhook-signature.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -23,7 +23,7 @@ declare const PaypalCreateSubscriptionInput: z.ZodObject<{
|
|
|
23
23
|
currency_code: z.ZodString;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
payment_preferences: z.ZodOptional<z.ZodObject<{
|
|
28
28
|
setup_fee: z.ZodOptional<z.ZodObject<{
|
|
29
29
|
value: z.ZodString;
|
|
@@ -93,7 +93,7 @@ declare const PaypalCreateSubscriptionOutput: z.ZodObject<{
|
|
|
93
93
|
taxes: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
94
94
|
inclusive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
95
95
|
percentage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
-
}, z.core.$
|
|
96
|
+
}, z.core.$loose>>>;
|
|
97
97
|
billing_cycles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
98
98
|
sequence: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
99
99
|
tenure_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -103,34 +103,34 @@ declare const PaypalCreateSubscriptionOutput: z.ZodObject<{
|
|
|
103
103
|
net_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
104
104
|
value: z.ZodNullable<z.ZodString>;
|
|
105
105
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
106
|
-
}, z.core.$
|
|
106
|
+
}, z.core.$loose>>>;
|
|
107
107
|
rolls_over: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
108
108
|
gross_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
109
109
|
value: z.ZodNullable<z.ZodString>;
|
|
110
110
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
111
|
-
}, z.core.$
|
|
112
|
-
}, z.core.$
|
|
113
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$loose>>>;
|
|
112
|
+
}, z.core.$loose>>>;
|
|
113
|
+
}, z.core.$loose>>>>;
|
|
114
114
|
payment_preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
115
115
|
setup_fee: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
116
116
|
value: z.ZodNullable<z.ZodString>;
|
|
117
117
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
118
|
-
}, z.core.$
|
|
118
|
+
}, z.core.$loose>>>;
|
|
119
119
|
auto_bill_outstanding: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
120
120
|
setup_fee_failure_action: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
121
|
payment_failure_threshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
|
-
}, z.core.$
|
|
123
|
-
}, z.core.$
|
|
122
|
+
}, z.core.$loose>>>;
|
|
123
|
+
}, z.core.$loose>>>;
|
|
124
124
|
links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
125
125
|
rel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
126
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
127
|
method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
-
}, z.core.$
|
|
128
|
+
}, z.core.$loose>>>>;
|
|
129
129
|
issues: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
130
130
|
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
131
|
issue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
132
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$loose>>>>;
|
|
134
134
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
135
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
136
|
plan_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -141,11 +141,11 @@ declare const PaypalCreateSubscriptionOutput: z.ZodObject<{
|
|
|
141
141
|
name: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
142
142
|
surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
143
|
given_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
144
|
-
}, z.core.$
|
|
144
|
+
}, z.core.$loose>>>;
|
|
145
145
|
phone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
146
146
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
147
|
national_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
-
}, z.core.$
|
|
148
|
+
}, z.core.$loose>>>;
|
|
149
149
|
payer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
150
|
email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
151
|
shipping_address: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -156,8 +156,8 @@ declare const PaypalCreateSubscriptionOutput: z.ZodObject<{
|
|
|
156
156
|
country_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
157
|
address_line_1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
158
158
|
address_line_2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
-
}, z.core.$
|
|
160
|
-
}, z.core.$
|
|
159
|
+
}, z.core.$loose>>>;
|
|
160
|
+
}, z.core.$loose>>>;
|
|
161
161
|
create_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
162
|
update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
163
|
billing_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -166,20 +166,20 @@ declare const PaypalCreateSubscriptionOutput: z.ZodObject<{
|
|
|
166
166
|
next_cycle_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
167
167
|
value: z.ZodNullable<z.ZodString>;
|
|
168
168
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
169
|
-
}, z.core.$
|
|
169
|
+
}, z.core.$loose>>>;
|
|
170
170
|
last_payment_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
171
171
|
value: z.ZodNullable<z.ZodString>;
|
|
172
172
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
173
|
-
}, z.core.$
|
|
174
|
-
}, z.core.$
|
|
173
|
+
}, z.core.$loose>>>;
|
|
174
|
+
}, z.core.$loose>>>;
|
|
175
175
|
plan_overridden: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
176
176
|
shipping_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
177
177
|
value: z.ZodNullable<z.ZodString>;
|
|
178
178
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
179
|
-
}, z.core.$
|
|
179
|
+
}, z.core.$loose>>>;
|
|
180
180
|
status_change_note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
181
|
status_update_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
-
}, z.core.$
|
|
182
|
+
}, z.core.$loose>;
|
|
183
183
|
declare const paypalCreateSubscription: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
184
184
|
plan_id: string;
|
|
185
185
|
plan?: {
|
|
@@ -188,6 +188,7 @@ declare const paypalCreateSubscription: import("@keystrokehq/action").WorkflowAc
|
|
|
188
188
|
percentage?: string | undefined;
|
|
189
189
|
} | undefined;
|
|
190
190
|
billing_cycles?: {
|
|
191
|
+
[x: string]: unknown;
|
|
191
192
|
sequence?: number | undefined;
|
|
192
193
|
tenure_type?: string | undefined;
|
|
193
194
|
total_cycles?: number | undefined;
|
|
@@ -254,7 +255,19 @@ declare const paypalCreateSubscription: import("@keystrokehq/action").WorkflowAc
|
|
|
254
255
|
} | undefined;
|
|
255
256
|
shipping_preference?: "GET_FROM_FILE" | "NO_SHIPPING" | "SET_PROVIDED_ADDRESS" | undefined;
|
|
256
257
|
} | undefined;
|
|
257
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
258
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
259
|
+
connectionId: z.ZodString;
|
|
260
|
+
entityId: z.ZodString;
|
|
261
|
+
instanceId: z.ZodString;
|
|
262
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
263
|
+
accessToken: z.ZodString;
|
|
264
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"paypal", z.ZodObject<{
|
|
265
|
+
connectionId: z.ZodString;
|
|
266
|
+
entityId: z.ZodString;
|
|
267
|
+
instanceId: z.ZodString;
|
|
268
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
269
|
+
accessToken: z.ZodString;
|
|
270
|
+
}, z.core.$strip>>]>;
|
|
258
271
|
//#endregion
|
|
259
272
|
export { paypalCreateSubscription };
|
|
260
273
|
//# sourceMappingURL=create-subscription.d.mts.map
|
|
@@ -23,7 +23,7 @@ const PaypalCreateSubscriptionInput = z.object({
|
|
|
23
23
|
currency_code: z.string().describe("The three-character ISO-4217 currency code.")
|
|
24
24
|
}).describe("The currency and amount for a financial transaction.").optional()
|
|
25
25
|
}).describe("Pricing scheme for a billing cycle.").optional()
|
|
26
|
-
}).describe("Billing cycle sequence for trial and regular billing.")).describe("An array of billing cycles for trial billing and regular billing.").optional(),
|
|
26
|
+
}).passthrough().describe("Billing cycle sequence for trial and regular billing.")).describe("An array of billing cycles for trial billing and regular billing.").optional(),
|
|
27
27
|
payment_preferences: z.object({
|
|
28
28
|
setup_fee: z.object({
|
|
29
29
|
value: z.string().describe("The value (integer for JPY-like currencies or decimal fraction for others)."),
|
|
@@ -81,52 +81,52 @@ const PaypalCreateSubscriptionInput = z.object({
|
|
|
81
81
|
const PaypalCreateSubscription_PlanTaxesSchema = z.object({
|
|
82
82
|
inclusive: z.boolean().describe("Whether the tax is inclusive in the plan amount.").nullable().optional(),
|
|
83
83
|
percentage: z.string().describe("The tax percentage as a string.").nullable().optional()
|
|
84
|
-
}).describe("Tax details for plan override.");
|
|
84
|
+
}).passthrough().describe("Tax details for plan override.");
|
|
85
85
|
const PaypalCreateSubscription_MoneySchema = z.object({
|
|
86
86
|
value: z.string().describe("The value (integer for JPY-like currencies or decimal fraction for others).").nullable(),
|
|
87
87
|
currency_code: z.string().describe("The three-character ISO-4217 currency code.").nullable()
|
|
88
|
-
}).describe("The currency and amount for a financial transaction.");
|
|
88
|
+
}).passthrough().describe("The currency and amount for a financial transaction.");
|
|
89
89
|
const PaypalCreateSubscription_PricingSchemeSchema = z.object({
|
|
90
90
|
version: z.number().int().describe("The version number of the pricing scheme.").nullable().optional(),
|
|
91
91
|
net_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),
|
|
92
92
|
rolls_over: z.boolean().describe("Whether the pricing rolls over to the next cycle.").nullable().optional(),
|
|
93
93
|
gross_amount: PaypalCreateSubscription_MoneySchema.nullable().optional()
|
|
94
|
-
}).describe("Pricing scheme for a billing cycle.");
|
|
94
|
+
}).passthrough().describe("Pricing scheme for a billing cycle.");
|
|
95
95
|
const PaypalCreateSubscription_BillingCycleSequenceSchema = z.object({
|
|
96
96
|
sequence: z.number().int().describe("The sequence number of the billing cycle.").nullable().optional(),
|
|
97
97
|
tenure_type: z.string().describe("The tenure type of the billing cycle.").nullable().optional(),
|
|
98
98
|
total_cycles: z.number().int().describe("The total number of cycles for this billing period.").nullable().optional(),
|
|
99
99
|
pricing_scheme: PaypalCreateSubscription_PricingSchemeSchema.nullable().optional()
|
|
100
|
-
}).describe("Billing cycle sequence for trial and regular billing.");
|
|
100
|
+
}).passthrough().describe("Billing cycle sequence for trial and regular billing.");
|
|
101
101
|
const PaypalCreateSubscription_PlanPaymentPreferencesSchema = z.object({
|
|
102
102
|
setup_fee: PaypalCreateSubscription_MoneySchema.nullable().optional(),
|
|
103
103
|
auto_bill_outstanding: z.boolean().describe("Whether to automatically bill outstanding amounts.").nullable().optional(),
|
|
104
104
|
setup_fee_failure_action: z.string().describe("The action to take when setup fee payment fails.").nullable().optional(),
|
|
105
105
|
payment_failure_threshold: z.number().int().describe("The number of payment failures allowed before the subscription is suspended.").nullable().optional()
|
|
106
|
-
}).describe("Payment preferences to override at subscription level.");
|
|
106
|
+
}).passthrough().describe("Payment preferences to override at subscription level.");
|
|
107
107
|
const PaypalCreateSubscription_PlanOverrideSchema = z.object({
|
|
108
108
|
taxes: PaypalCreateSubscription_PlanTaxesSchema.nullable().optional(),
|
|
109
109
|
billing_cycles: z.array(PaypalCreateSubscription_BillingCycleSequenceSchema).describe("An array of billing cycles for trial billing and regular billing.").nullable().optional(),
|
|
110
110
|
payment_preferences: PaypalCreateSubscription_PlanPaymentPreferencesSchema.nullable().optional()
|
|
111
|
-
}).describe("An inline plan object to customize the subscription.");
|
|
111
|
+
}).passthrough().describe("An inline plan object to customize the subscription.");
|
|
112
112
|
const PaypalCreateSubscription_LinkSchema = z.object({
|
|
113
113
|
rel: z.string().describe("The relationship between the resource and this link.").nullable().optional(),
|
|
114
114
|
href: z.string().describe("The hyperlink to the resource.").nullable().optional(),
|
|
115
115
|
method: z.string().describe("The HTTP method for the resource.").nullable().optional()
|
|
116
|
-
}).describe("HATEOAS link for the subscription.");
|
|
116
|
+
}).passthrough().describe("HATEOAS link for the subscription.");
|
|
117
117
|
const PaypalCreateSubscription_IssueSchema = z.object({
|
|
118
118
|
field: z.string().describe("The field that caused the issue.").nullable().optional(),
|
|
119
119
|
issue: z.string().describe("Description of the issue.").nullable().optional(),
|
|
120
120
|
description: z.string().describe("Additional details about the issue.").nullable().optional()
|
|
121
|
-
}).describe("A validation issue returned when the request fails.");
|
|
121
|
+
}).passthrough().describe("A validation issue returned when the request fails.");
|
|
122
122
|
const PaypalCreateSubscription_SubscriberNameSchema = z.object({
|
|
123
123
|
surname: z.string().describe("The subscriber's surname.").nullable().optional(),
|
|
124
124
|
given_name: z.string().describe("The subscriber's given name.").nullable().optional()
|
|
125
|
-
}).describe("Name of the subscriber.");
|
|
125
|
+
}).passthrough().describe("Name of the subscriber.");
|
|
126
126
|
const PaypalCreateSubscription_SubscriberPhoneSchema = z.object({
|
|
127
127
|
country_code: z.string().describe("Country code for the phone number.").nullable().optional(),
|
|
128
128
|
national_number: z.string().describe("National phone number.").nullable().optional()
|
|
129
|
-
}).describe("Phone number of the subscriber.");
|
|
129
|
+
}).passthrough().describe("Phone number of the subscriber.");
|
|
130
130
|
const PaypalCreateSubscription_ShippingAddressSchema = z.object({
|
|
131
131
|
city: z.string().describe("The city name.").nullable().optional(),
|
|
132
132
|
name: z.string().describe("The name of the recipient at the shipping address.").nullable().optional(),
|
|
@@ -135,20 +135,20 @@ const PaypalCreateSubscription_ShippingAddressSchema = z.object({
|
|
|
135
135
|
country_code: z.string().describe("The two-character ISO 3166-1 country code.").nullable().optional(),
|
|
136
136
|
address_line_1: z.string().describe("Line 1 of the address (street, PO Box).").nullable().optional(),
|
|
137
137
|
address_line_2: z.string().describe("Line 2 of the address (apartment, suite, etc.).").nullable().optional()
|
|
138
|
-
}).describe("Shipping address for the subscription.");
|
|
138
|
+
}).passthrough().describe("Shipping address for the subscription.");
|
|
139
139
|
const PaypalCreateSubscription_SubscriberSchema = z.object({
|
|
140
140
|
name: PaypalCreateSubscription_SubscriberNameSchema.nullable().optional(),
|
|
141
141
|
phone: PaypalCreateSubscription_SubscriberPhoneSchema.nullable().optional(),
|
|
142
142
|
payer_id: z.string().describe("The PayPal account identifier for the payer.").nullable().optional(),
|
|
143
143
|
email_address: z.string().describe("The subscriber's email address.").nullable().optional(),
|
|
144
144
|
shipping_address: PaypalCreateSubscription_ShippingAddressSchema.nullable().optional()
|
|
145
|
-
}).describe("The subscriber information for the subscription.");
|
|
145
|
+
}).passthrough().describe("The subscriber information for the subscription.");
|
|
146
146
|
const PaypalCreateSubscription_BillingInfoSchema = z.object({
|
|
147
147
|
last_payment_time: z.string().describe("The last payment time in ISO 8601 format.").nullable().optional(),
|
|
148
148
|
next_billing_time: z.string().describe("The next billing time in ISO 8601 format.").nullable().optional(),
|
|
149
149
|
next_cycle_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),
|
|
150
150
|
last_payment_amount: PaypalCreateSubscription_MoneySchema.nullable().optional()
|
|
151
|
-
}).describe("Billing information for the subscription.");
|
|
151
|
+
}).passthrough().describe("Billing information for the subscription.");
|
|
152
152
|
const paypalCreateSubscription = action("PAYPAL_CREATE_SUBSCRIPTION", {
|
|
153
153
|
slug: "paypal-create-subscription",
|
|
154
154
|
name: "Create Subscription",
|
|
@@ -174,7 +174,7 @@ const paypalCreateSubscription = action("PAYPAL_CREATE_SUBSCRIPTION", {
|
|
|
174
174
|
shipping_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),
|
|
175
175
|
status_change_note: z.string().describe("A note explaining why the status changed.").nullable().optional(),
|
|
176
176
|
status_update_time: z.string().describe("The time when the status was last updated.").nullable().optional()
|
|
177
|
-
}).describe("Response model returned after creating a PayPal subscription.\n\nContains the subscription ID, status, and HATEOAS links for next actions.\nThe subscriber must be redirected to the approval URL to complete the subscription.")
|
|
177
|
+
}).passthrough().describe("Response model returned after creating a PayPal subscription.\n\nContains the subscription ID, status, and HATEOAS links for next actions.\nThe subscriber must be redirected to the approval URL to complete the subscription.")
|
|
178
178
|
});
|
|
179
179
|
//#endregion
|
|
180
180
|
export { paypalCreateSubscription };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-subscription.mjs","names":[],"sources":["../../src/actions/create-subscription.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateSubscriptionInput = z.object({\n plan: z.object({\n taxes: z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").optional(),\n}).describe(\"Tax details for plan override.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").optional(),\n pricing_scheme: z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").optional(),\n net_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").optional(),\n gross_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).describe(\"Billing cycle sequence for trial and regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").optional(),\n}).describe(\"Payment preferences to override at subscription level.\").optional(),\n}).describe(\"An inline plan object to customize the subscription.\").optional(),\n plan_id: z.string().describe(\"The ID of the plan for the subscription. Typically a PayPal plan ID like 'P-4BP00732K8416940FNHU6FGA'.\"),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").optional(),\n custom_id: z.string().describe(\"The custom id for the subscription. Can be an invoice id.\").optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts, in Internet date and time format (ISO 8601).\").optional(),\n subscriber: z.object({\n name: z.object({\n surname: z.string().describe(\"The subscriber's surname.\").optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").optional(),\n}).describe(\"Name of the subscriber.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").optional(),\n national_number: z.string().describe(\"National phone number.\").optional(),\n}).describe(\"Phone number of the subscriber.\").optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"The city name.\").optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").optional(),\n state: z.string().describe(\"The state or province code.\").optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").optional(),\n}).describe(\"Shipping address for the subscription.\").optional(),\n}).describe(\"The subscriber information for the subscription.\").optional(),\n auto_renewal: z.boolean().describe(\"DEPRECATED. Indicates whether the subscription auto-renews after the billing cycles complete.\").optional(),\n shipping_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n application_context: z.object({\n locale: z.string().describe(\"The language tag for localization of error-related strings (e.g., 'en-US', 'fr-FR').\").optional(),\n brand_name: z.string().describe(\"The label that overrides the business name in the PayPal account on the PayPal site.\").optional(),\n cancel_url: z.string().describe(\"The URL where the customer is redirected after the customer cancels the payment.\"),\n return_url: z.string().describe(\"The URL where the customer is redirected after the customer approves the payment.\"),\n user_action: z.enum([\"CONTINUE\", \"SUBSCRIBE_NOW\"]).default(\"SUBSCRIBE_NOW\").describe(\"Configures the label name for subscription consent experience.\").optional(),\n payment_method: z.object({\n payee_preferred: z.enum([\"UNRESTRICTED\", \"IMMEDIATE_PAYMENT_REQUIRED\"]).describe(\"Customer and merchant payment preferences.\").optional(),\n}).describe(\"The customer and merchant payment preferences.\").optional(),\n shipping_preference: z.enum([\"GET_FROM_FILE\", \"NO_SHIPPING\", \"SET_PROVIDED_ADDRESS\"]).default(\"GET_FROM_FILE\").describe(\"Location from which the shipping address is derived.\").optional(),\n}).describe(\"The application context, which customizes the payer experience during\\nthe subscription approval process with PayPal.\").optional(),\n}).describe(\"Request model for creating a PayPal subscription.\\n\\nUse when you need to create a new PayPal billing subscription for a customer\\nbased on a plan. The subscriber will be redirected to PayPal to approve the subscription.\");\nconst PaypalCreateSubscription_PlanTaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").nullable().optional(),\n}).describe(\"Tax details for plan override.\");\nconst PaypalCreateSubscription_MoneySchema = z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateSubscription_PricingSchemeSchema = z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").nullable().optional(),\n net_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").nullable().optional(),\n gross_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreateSubscription_BillingCycleSequenceSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").nullable().optional(),\n pricing_scheme: PaypalCreateSubscription_PricingSchemeSchema.nullable().optional(),\n}).describe(\"Billing cycle sequence for trial and regular billing.\");\nconst PaypalCreateSubscription_PlanPaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").nullable().optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").nullable().optional(),\n}).describe(\"Payment preferences to override at subscription level.\");\nconst PaypalCreateSubscription_PlanOverrideSchema = z.object({\n taxes: PaypalCreateSubscription_PlanTaxesSchema.nullable().optional(),\n billing_cycles: z.array(PaypalCreateSubscription_BillingCycleSequenceSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n payment_preferences: PaypalCreateSubscription_PlanPaymentPreferencesSchema.nullable().optional(),\n}).describe(\"An inline plan object to customize the subscription.\");\nconst PaypalCreateSubscription_LinkSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and this link.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the resource.\").nullable().optional(),\n}).describe(\"HATEOAS link for the subscription.\");\nconst PaypalCreateSubscription_IssueSchema = z.object({\n field: z.string().describe(\"The field that caused the issue.\").nullable().optional(),\n issue: z.string().describe(\"Description of the issue.\").nullable().optional(),\n description: z.string().describe(\"Additional details about the issue.\").nullable().optional(),\n}).describe(\"A validation issue returned when the request fails.\");\nconst PaypalCreateSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The subscriber's surname.\").nullable().optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").nullable().optional(),\n}).describe(\"Name of the subscriber.\");\nconst PaypalCreateSubscription_SubscriberPhoneSchema = z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").nullable().optional(),\n national_number: z.string().describe(\"National phone number.\").nullable().optional(),\n}).describe(\"Phone number of the subscriber.\");\nconst PaypalCreateSubscription_ShippingAddressSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n name: z.string().describe(\"The name of the recipient at the shipping 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 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").nullable().optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").nullable().optional(),\n}).describe(\"Shipping address for the subscription.\");\nconst PaypalCreateSubscription_SubscriberSchema = z.object({\n name: PaypalCreateSubscription_SubscriberNameSchema.nullable().optional(),\n phone: PaypalCreateSubscription_SubscriberPhoneSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").nullable().optional(),\n shipping_address: PaypalCreateSubscription_ShippingAddressSchema.nullable().optional(),\n}).describe(\"The subscriber information for the subscription.\");\nconst PaypalCreateSubscription_BillingInfoSchema = z.object({\n last_payment_time: z.string().describe(\"The last payment time in ISO 8601 format.\").nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing time in ISO 8601 format.\").nullable().optional(),\n next_cycle_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n last_payment_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).describe(\"Billing information for the subscription.\");\nexport const PaypalCreateSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n name: z.string().describe(\"Error name if the request failed.\").nullable().optional(),\n plan: PaypalCreateSubscription_PlanOverrideSchema.nullable().optional(),\n links: z.array(PaypalCreateSubscription_LinkSchema).describe(\"HATEOAS links for the subscription. Use the approve link to redirect the subscriber to PayPal.\").nullable().optional(),\n issues: z.array(PaypalCreateSubscription_IssueSchema).describe(\"List of validation issues if the request failed.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., 'ACTIVE', 'PENDING').\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed.\").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 product in the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom id for the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The start time of the subscription in ISO 8601 format.\").nullable().optional(),\n subscriber: PaypalCreateSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalCreateSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Whether the plan was overridden at subscription level.\").nullable().optional(),\n shipping_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n status_change_note: z.string().describe(\"A note explaining why the status changed.\").nullable().optional(),\n status_update_time: z.string().describe(\"The time when the status was last updated.\").nullable().optional(),\n}).describe(\"Response model returned after creating a PayPal subscription.\\n\\nContains the subscription ID, status, and HATEOAS links for next actions.\\nThe subscriber must be redirected to the approval URL to complete the subscription.\");\n\nexport const paypalCreateSubscription = action(\"PAYPAL_CREATE_SUBSCRIPTION\", {\n slug: \"paypal-create-subscription\",\n name: \"Create Subscription\",\n description: \"Creates a new PayPal subscription based on a billing plan. Use this action when you need to set up a recurring billing subscription for a customer. The action returns a subscription ID and an approval URL where the subscriber must complete the subscription by logging into their PayPal account and confirming the payment. This action is irreversible once the subscriber approves the subscription. **Required fields:** - plan_id: The PayPal billing plan ID **Important:** - The subscriber will be redirected to PayPal to approve the subscription - Use the 'approve' link from the response to redirect the subscriber - The subscription status will be 'PENDING' until the subscriber approves it\",\n input: PaypalCreateSubscriptionInput,\n output: PaypalCreateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,OAAO;GAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrD,gBAAgB,EAAE,MAAM,EAAE,OAAO;GACjC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;GACxG,gBAAgB,EAAE,OAAO;IACzB,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;IACzF,YAAY,EAAE,OAAO;KACrB,OAAO,EAAE,OAAO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sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PaypalCreateSubscriptionInput = z.object({\n plan: z.object({\n taxes: z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").optional(),\n}).describe(\"Tax details for plan override.\").optional(),\n billing_cycles: z.array(z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").optional(),\n pricing_scheme: z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").optional(),\n net_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").optional(),\n gross_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n}).describe(\"Pricing scheme for a billing cycle.\").optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\")).describe(\"An array of billing cycles for trial billing and regular billing.\").optional(),\n payment_preferences: z.object({\n setup_fee: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").optional(),\n}).describe(\"Payment preferences to override at subscription level.\").optional(),\n}).describe(\"An inline plan object to customize the subscription.\").optional(),\n plan_id: z.string().describe(\"The ID of the plan for the subscription. Typically a PayPal plan ID like 'P-4BP00732K8416940FNHU6FGA'.\"),\n quantity: z.string().describe(\"The quantity of the product in the subscription.\").optional(),\n custom_id: z.string().describe(\"The custom id for the subscription. Can be an invoice id.\").optional(),\n start_time: z.string().describe(\"The date and time when the subscription starts, in Internet date and time format (ISO 8601).\").optional(),\n subscriber: z.object({\n name: z.object({\n surname: z.string().describe(\"The subscriber's surname.\").optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").optional(),\n}).describe(\"Name of the subscriber.\").optional(),\n phone: z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").optional(),\n national_number: z.string().describe(\"National phone number.\").optional(),\n}).describe(\"Phone number of the subscriber.\").optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").optional(),\n shipping_address: z.object({\n city: z.string().describe(\"The city name.\").optional(),\n name: z.string().describe(\"The name of the recipient at the shipping address.\").optional(),\n state: z.string().describe(\"The state or province code.\").optional(),\n postal_code: z.string().describe(\"The postal code or ZIP code.\").optional(),\n country_code: z.string().describe(\"The two-character ISO 3166-1 country code.\").optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").optional(),\n}).describe(\"Shipping address for the subscription.\").optional(),\n}).describe(\"The subscriber information for the subscription.\").optional(),\n auto_renewal: z.boolean().describe(\"DEPRECATED. Indicates whether the subscription auto-renews after the billing cycles complete.\").optional(),\n shipping_amount: z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\"),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\"),\n}).describe(\"The currency and amount for a financial transaction.\").optional(),\n application_context: z.object({\n locale: z.string().describe(\"The language tag for localization of error-related strings (e.g., 'en-US', 'fr-FR').\").optional(),\n brand_name: z.string().describe(\"The label that overrides the business name in the PayPal account on the PayPal site.\").optional(),\n cancel_url: z.string().describe(\"The URL where the customer is redirected after the customer cancels the payment.\"),\n return_url: z.string().describe(\"The URL where the customer is redirected after the customer approves the payment.\"),\n user_action: z.enum([\"CONTINUE\", \"SUBSCRIBE_NOW\"]).default(\"SUBSCRIBE_NOW\").describe(\"Configures the label name for subscription consent experience.\").optional(),\n payment_method: z.object({\n payee_preferred: z.enum([\"UNRESTRICTED\", \"IMMEDIATE_PAYMENT_REQUIRED\"]).describe(\"Customer and merchant payment preferences.\").optional(),\n}).describe(\"The customer and merchant payment preferences.\").optional(),\n shipping_preference: z.enum([\"GET_FROM_FILE\", \"NO_SHIPPING\", \"SET_PROVIDED_ADDRESS\"]).default(\"GET_FROM_FILE\").describe(\"Location from which the shipping address is derived.\").optional(),\n}).describe(\"The application context, which customizes the payer experience during\\nthe subscription approval process with PayPal.\").optional(),\n}).describe(\"Request model for creating a PayPal subscription.\\n\\nUse when you need to create a new PayPal billing subscription for a customer\\nbased on a plan. The subscriber will be redirected to PayPal to approve the subscription.\");\nconst PaypalCreateSubscription_PlanTaxesSchema = z.object({\n inclusive: z.boolean().describe(\"Whether the tax is inclusive in the plan amount.\").nullable().optional(),\n percentage: z.string().describe(\"The tax percentage as a string.\").nullable().optional(),\n}).passthrough().describe(\"Tax details for plan override.\");\nconst PaypalCreateSubscription_MoneySchema = z.object({\n value: z.string().describe(\"The value (integer for JPY-like currencies or decimal fraction for others).\").nullable(),\n currency_code: z.string().describe(\"The three-character ISO-4217 currency code.\").nullable(),\n}).passthrough().describe(\"The currency and amount for a financial transaction.\");\nconst PaypalCreateSubscription_PricingSchemeSchema = z.object({\n version: z.number().int().describe(\"The version number of the pricing scheme.\").nullable().optional(),\n net_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n rolls_over: z.boolean().describe(\"Whether the pricing rolls over to the next cycle.\").nullable().optional(),\n gross_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Pricing scheme for a billing cycle.\");\nconst PaypalCreateSubscription_BillingCycleSequenceSchema = z.object({\n sequence: z.number().int().describe(\"The sequence number of the billing cycle.\").nullable().optional(),\n tenure_type: z.string().describe(\"The tenure type of the billing cycle.\").nullable().optional(),\n total_cycles: z.number().int().describe(\"The total number of cycles for this billing period.\").nullable().optional(),\n pricing_scheme: PaypalCreateSubscription_PricingSchemeSchema.nullable().optional(),\n}).passthrough().describe(\"Billing cycle sequence for trial and regular billing.\");\nconst PaypalCreateSubscription_PlanPaymentPreferencesSchema = z.object({\n setup_fee: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n auto_bill_outstanding: z.boolean().describe(\"Whether to automatically bill outstanding amounts.\").nullable().optional(),\n setup_fee_failure_action: z.string().describe(\"The action to take when setup fee payment fails.\").nullable().optional(),\n payment_failure_threshold: z.number().int().describe(\"The number of payment failures allowed before the subscription is suspended.\").nullable().optional(),\n}).passthrough().describe(\"Payment preferences to override at subscription level.\");\nconst PaypalCreateSubscription_PlanOverrideSchema = z.object({\n taxes: PaypalCreateSubscription_PlanTaxesSchema.nullable().optional(),\n billing_cycles: z.array(PaypalCreateSubscription_BillingCycleSequenceSchema).describe(\"An array of billing cycles for trial billing and regular billing.\").nullable().optional(),\n payment_preferences: PaypalCreateSubscription_PlanPaymentPreferencesSchema.nullable().optional(),\n}).passthrough().describe(\"An inline plan object to customize the subscription.\");\nconst PaypalCreateSubscription_LinkSchema = z.object({\n rel: z.string().describe(\"The relationship between the resource and this link.\").nullable().optional(),\n href: z.string().describe(\"The hyperlink to the resource.\").nullable().optional(),\n method: z.string().describe(\"The HTTP method for the resource.\").nullable().optional(),\n}).passthrough().describe(\"HATEOAS link for the subscription.\");\nconst PaypalCreateSubscription_IssueSchema = z.object({\n field: z.string().describe(\"The field that caused the issue.\").nullable().optional(),\n issue: z.string().describe(\"Description of the issue.\").nullable().optional(),\n description: z.string().describe(\"Additional details about the issue.\").nullable().optional(),\n}).passthrough().describe(\"A validation issue returned when the request fails.\");\nconst PaypalCreateSubscription_SubscriberNameSchema = z.object({\n surname: z.string().describe(\"The subscriber's surname.\").nullable().optional(),\n given_name: z.string().describe(\"The subscriber's given name.\").nullable().optional(),\n}).passthrough().describe(\"Name of the subscriber.\");\nconst PaypalCreateSubscription_SubscriberPhoneSchema = z.object({\n country_code: z.string().describe(\"Country code for the phone number.\").nullable().optional(),\n national_number: z.string().describe(\"National phone number.\").nullable().optional(),\n}).passthrough().describe(\"Phone number of the subscriber.\");\nconst PaypalCreateSubscription_ShippingAddressSchema = z.object({\n city: z.string().describe(\"The city name.\").nullable().optional(),\n name: z.string().describe(\"The name of the recipient at the shipping 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 3166-1 country code.\").nullable().optional(),\n address_line_1: z.string().describe(\"Line 1 of the address (street, PO Box).\").nullable().optional(),\n address_line_2: z.string().describe(\"Line 2 of the address (apartment, suite, etc.).\").nullable().optional(),\n}).passthrough().describe(\"Shipping address for the subscription.\");\nconst PaypalCreateSubscription_SubscriberSchema = z.object({\n name: PaypalCreateSubscription_SubscriberNameSchema.nullable().optional(),\n phone: PaypalCreateSubscription_SubscriberPhoneSchema.nullable().optional(),\n payer_id: z.string().describe(\"The PayPal account identifier for the payer.\").nullable().optional(),\n email_address: z.string().describe(\"The subscriber's email address.\").nullable().optional(),\n shipping_address: PaypalCreateSubscription_ShippingAddressSchema.nullable().optional(),\n}).passthrough().describe(\"The subscriber information for the subscription.\");\nconst PaypalCreateSubscription_BillingInfoSchema = z.object({\n last_payment_time: z.string().describe(\"The last payment time in ISO 8601 format.\").nullable().optional(),\n next_billing_time: z.string().describe(\"The next billing time in ISO 8601 format.\").nullable().optional(),\n next_cycle_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n last_payment_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n}).passthrough().describe(\"Billing information for the subscription.\");\nexport const PaypalCreateSubscriptionOutput = z.object({\n id: z.string().describe(\"The unique identifier for the subscription.\").nullable().optional(),\n name: z.string().describe(\"Error name if the request failed.\").nullable().optional(),\n plan: PaypalCreateSubscription_PlanOverrideSchema.nullable().optional(),\n links: z.array(PaypalCreateSubscription_LinkSchema).describe(\"HATEOAS links for the subscription. Use the approve link to redirect the subscriber to PayPal.\").nullable().optional(),\n issues: z.array(PaypalCreateSubscription_IssueSchema).describe(\"List of validation issues if the request failed.\").nullable().optional(),\n status: z.string().describe(\"The status of the subscription (e.g., 'ACTIVE', 'PENDING').\").nullable().optional(),\n message: z.string().describe(\"Error message if the request failed.\").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 product in the subscription.\").nullable().optional(),\n custom_id: z.string().describe(\"The custom id for the subscription.\").nullable().optional(),\n start_time: z.string().describe(\"The start time of the subscription in ISO 8601 format.\").nullable().optional(),\n subscriber: PaypalCreateSubscription_SubscriberSchema.nullable().optional(),\n create_time: z.string().describe(\"The time when the subscription was created.\").nullable().optional(),\n update_time: z.string().describe(\"The time when the subscription was last updated.\").nullable().optional(),\n billing_info: PaypalCreateSubscription_BillingInfoSchema.nullable().optional(),\n plan_overridden: z.boolean().describe(\"Whether the plan was overridden at subscription level.\").nullable().optional(),\n shipping_amount: PaypalCreateSubscription_MoneySchema.nullable().optional(),\n status_change_note: z.string().describe(\"A note explaining why the status changed.\").nullable().optional(),\n status_update_time: z.string().describe(\"The time when the status was last updated.\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after creating a PayPal subscription.\\n\\nContains the subscription ID, status, and HATEOAS links for next actions.\\nThe subscriber must be redirected to the approval URL to complete the subscription.\");\n\nexport const paypalCreateSubscription = action(\"PAYPAL_CREATE_SUBSCRIPTION\", {\n slug: \"paypal-create-subscription\",\n name: \"Create Subscription\",\n description: \"Creates a new PayPal subscription based on a billing plan. Use this action when you need to set up a recurring billing subscription for a customer. The action returns a subscription ID and an approval URL where the subscriber must complete the subscription by logging into their PayPal account and confirming the payment. This action is irreversible once the subscriber approves the subscription. **Required fields:** - plan_id: The PayPal billing plan ID **Important:** - The subscriber will be redirected to PayPal to approve the subscription - Use the 'approve' link from the response to redirect the subscriber - The subscription status will be 'PENDING' until the subscriber approves it\",\n input: PaypalCreateSubscriptionInput,\n output: PaypalCreateSubscriptionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO;EACf,OAAO,EAAE,OAAO;GAChB,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;GAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrD,gBAAgB,EAAE,MAAM,EAAE,OAAO;GACjC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC1F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;GACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;GACxG,gBAAgB,EAAE,OAAO;IACzB,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;IACzF,YAAY,EAAE,OAAO;KACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;KACxG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;IAClF,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;IAC3E,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;IAC/F,cAAc,EAAE,OAAO;KACvB,OAAO,EA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put = zod.z.object({
|
|
|
7
7
|
template_item_settings: zod.z.array(zod.z.object({
|
|
8
8
|
name: zod.z.string().describe("The name of the setting.").optional(),
|
|
9
9
|
value: zod.z.string().describe("The value of the setting.").optional()
|
|
10
|
-
}).describe("The template item headers display preference.")).describe("The template item headers display preference.").optional(),
|
|
10
|
+
}).passthrough().describe("The template item headers display preference.")).describe("The template item headers display preference.").optional(),
|
|
11
11
|
template_subtotal_settings: zod.z.array(zod.z.object({
|
|
12
12
|
name: zod.z.string().describe("The name of the setting.").optional(),
|
|
13
13
|
value: zod.z.string().describe("The value of the setting.").optional()
|
|
14
|
-
}).describe("The template subtotal headers display preference.")).describe("The template subtotal headers display preference.").optional()
|
|
15
|
-
}).describe("The template settings including item and subtotal display preferences.")).describe("The template settings. Sets a template as the default template or edit template.").optional(),
|
|
14
|
+
}).passthrough().describe("The template subtotal headers display preference.")).describe("The template subtotal headers display preference.").optional()
|
|
15
|
+
}).passthrough().describe("The template settings including item and subtotal display preferences.")).describe("The template settings. Sets a template as the default template or edit template.").optional(),
|
|
16
16
|
template_info: zod.z.object({
|
|
17
17
|
items: zod.z.array(zod.z.object({
|
|
18
18
|
name: zod.z.string().describe("The item name.").optional(),
|
|
@@ -22,7 +22,7 @@ const PaypalCreateTemplateInput = zod.z.object({
|
|
|
22
22
|
value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others."),
|
|
23
23
|
currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.")
|
|
24
24
|
}).describe("The currency and amount for a financial transaction.").optional()
|
|
25
|
-
}).describe("An invoice line item.")).describe("An array of invoice line-item information.").optional(),
|
|
25
|
+
}).passthrough().describe("An invoice line item.")).describe("An array of invoice line-item information.").optional(),
|
|
26
26
|
amount: zod.z.object({
|
|
27
27
|
value: zod.z.string().describe("The total amount value.").optional(),
|
|
28
28
|
breakdown: zod.z.object({
|
|
@@ -63,7 +63,7 @@ const PaypalCreateTemplateInput = zod.z.object({
|
|
|
63
63
|
phones: zod.z.array(zod.z.object({
|
|
64
64
|
country_code: zod.z.string().describe("The country code.").optional(),
|
|
65
65
|
national_number: zod.z.string().describe("The national phone number.").optional()
|
|
66
|
-
}).describe("A phone number with country code and other details.")).describe("The phone numbers of the invoicer.").optional(),
|
|
66
|
+
}).passthrough().describe("A phone number with country code and other details.")).describe("The phone numbers of the invoicer.").optional(),
|
|
67
67
|
tax_id: zod.z.string().describe("The tax ID of the invoicer.").optional(),
|
|
68
68
|
website: zod.z.string().describe("The website URL of the invoicer.").optional(),
|
|
69
69
|
logo_url: zod.z.string().describe("The URL to the logo image for the invoicer.").optional(),
|
|
@@ -95,7 +95,7 @@ const PaypalCreateTemplateInput = zod.z.object({
|
|
|
95
95
|
email_address: zod.z.string().describe("The email address of the billing contact.").optional()
|
|
96
96
|
}).describe("The billing information for the recipient.").optional(),
|
|
97
97
|
shipping_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The shipping information for the recipient.").optional()
|
|
98
|
-
}).describe("The billing and shipping information for the recipient.")).describe("The billing and shipping information including name, email, address, phone, and language.").optional(),
|
|
98
|
+
}).passthrough().describe("The billing and shipping information for the recipient.")).describe("The billing and shipping information including name, email, address, phone, and language.").optional(),
|
|
99
99
|
additional_recipients: zod.z.array(zod.z.string()).describe("An array of one or more CC: emails to which notifications are sent.").optional()
|
|
100
100
|
}).describe("The template details including invoicer business information, invoice recipients, items, and configuration.").optional(),
|
|
101
101
|
unit_of_measure: zod.z.enum([
|
|
@@ -110,49 +110,49 @@ const PaypalCreateTemplate_LinkDescriptionSchema = zod.z.object({
|
|
|
110
110
|
rel: zod.z.string().describe("The link relationship type.").nullable(),
|
|
111
111
|
href: zod.z.string().describe("The complete URL to the related resource.").nullable(),
|
|
112
112
|
method: zod.z.string().describe("The HTTP method required to access the resource.").nullable().optional()
|
|
113
|
-
}).describe("HATEOAS link information.");
|
|
113
|
+
}).passthrough().describe("HATEOAS link information.");
|
|
114
114
|
const PaypalCreateTemplate_TemplateItemSettingSchema = zod.z.object({
|
|
115
115
|
name: zod.z.string().describe("The name of the setting.").nullable().optional(),
|
|
116
116
|
value: zod.z.string().describe("The value of the setting.").nullable().optional()
|
|
117
|
-
}).describe("The template item headers display preference.");
|
|
117
|
+
}).passthrough().describe("The template item headers display preference.");
|
|
118
118
|
const PaypalCreateTemplate_TemplateSubtotalSettingSchema = zod.z.object({
|
|
119
119
|
name: zod.z.string().describe("The name of the setting.").nullable().optional(),
|
|
120
120
|
value: zod.z.string().describe("The value of the setting.").nullable().optional()
|
|
121
|
-
}).describe("The template subtotal headers display preference.");
|
|
121
|
+
}).passthrough().describe("The template subtotal headers display preference.");
|
|
122
122
|
const PaypalCreateTemplate_TemplateSettingsSchema = zod.z.object({
|
|
123
123
|
template_item_settings: zod.z.array(PaypalCreateTemplate_TemplateItemSettingSchema).describe("The template item headers display preference.").nullable().optional(),
|
|
124
124
|
template_subtotal_settings: zod.z.array(PaypalCreateTemplate_TemplateSubtotalSettingSchema).describe("The template subtotal headers display preference.").nullable().optional()
|
|
125
|
-
}).describe("The template settings including item and subtotal display preferences.");
|
|
125
|
+
}).passthrough().describe("The template settings including item and subtotal display preferences.");
|
|
126
126
|
const PaypalCreateTemplate_MoneySchema = zod.z.object({
|
|
127
127
|
value: zod.z.string().describe("The value, which might be an integer for currencies like JPY or a decimal fraction for others.").nullable(),
|
|
128
128
|
currency_code: zod.z.string().describe("The three-character ISO-4217 currency code that identifies the currency.").nullable()
|
|
129
|
-
}).describe("The currency and amount for a financial transaction.");
|
|
129
|
+
}).passthrough().describe("The currency and amount for a financial transaction.");
|
|
130
130
|
const PaypalCreateTemplate_InvoiceItemSchema = zod.z.object({
|
|
131
131
|
name: zod.z.string().describe("The item name.").nullable().optional(),
|
|
132
132
|
quantity: zod.z.string().describe("The quantity of the item.").nullable().optional(),
|
|
133
133
|
description: zod.z.string().describe("The item description.").nullable().optional(),
|
|
134
134
|
unit_amount: PaypalCreateTemplate_MoneySchema.nullable().optional()
|
|
135
|
-
}).describe("An invoice line item.");
|
|
135
|
+
}).passthrough().describe("An invoice line item.");
|
|
136
136
|
const PaypalCreateTemplate_AmountBreakdownSchema = zod.z.object({
|
|
137
137
|
custom: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The custom amount.").nullable().optional(),
|
|
138
138
|
discount: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The discount amount.").nullable().optional(),
|
|
139
139
|
shipping: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
140
140
|
tax_total: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
141
141
|
item_total: PaypalCreateTemplate_MoneySchema.nullable().optional()
|
|
142
|
-
}).describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
|
|
142
|
+
}).passthrough().describe("The breakdown of the amount including item total, tax, shipping, and discounts.");
|
|
143
143
|
const PaypalCreateTemplate_InvoiceAmountSummarySchema = zod.z.object({
|
|
144
144
|
value: zod.z.string().describe("The total amount value.").nullable().optional(),
|
|
145
145
|
breakdown: PaypalCreateTemplate_AmountBreakdownSchema.nullable().optional(),
|
|
146
146
|
currency_code: zod.z.string().describe("The three-character ISO-4217 currency code.").nullable().optional()
|
|
147
|
-
}).describe("The invoice amount summary including breakdown.");
|
|
147
|
+
}).passthrough().describe("The invoice amount summary including breakdown.");
|
|
148
148
|
const PaypalCreateTemplate_TemplateMetadataSchema = zod.z.object({
|
|
149
149
|
create_user: zod.z.string().describe("The user who created the template.").nullable().optional(),
|
|
150
150
|
modify_user: zod.z.string().describe("The user who last modified the template.").nullable().optional()
|
|
151
|
-
}).describe("The metadata for the invoice template.");
|
|
151
|
+
}).passthrough().describe("The metadata for the invoice template.");
|
|
152
152
|
const PaypalCreateTemplate_TemplatePaymentTermSchema = zod.z.object({
|
|
153
153
|
due_type: zod.z.string().describe("The type of the due date.").nullable().optional(),
|
|
154
154
|
interval_days: zod.z.number().int().describe("The number of days after invoice date.").nullable().optional()
|
|
155
|
-
}).describe("The payment term for the invoice.");
|
|
155
|
+
}).passthrough().describe("The payment term for the invoice.");
|
|
156
156
|
const PaypalCreateTemplate_TemplateDetailSchema = zod.z.object({
|
|
157
157
|
memo: zod.z.string().describe("A memo for the invoice.").nullable().optional(),
|
|
158
158
|
note: zod.z.string().describe("A note to the payer.").nullable().optional(),
|
|
@@ -162,11 +162,11 @@ const PaypalCreateTemplate_TemplateDetailSchema = zod.z.object({
|
|
|
162
162
|
payment_term: PaypalCreateTemplate_TemplatePaymentTermSchema.nullable().optional(),
|
|
163
163
|
currency_code: zod.z.string().describe("The three-character ISO-4217 currency code for the invoice.").nullable(),
|
|
164
164
|
terms_and_conditions: zod.z.string().describe("The terms of the invoice.").nullable().optional()
|
|
165
|
-
}).describe("The template-related details including notes, terms and conditions, memo, and attachments.");
|
|
165
|
+
}).passthrough().describe("The template-related details including notes, terms and conditions, memo, and attachments.");
|
|
166
166
|
const PaypalCreateTemplate_PhoneNumberSchema = zod.z.object({
|
|
167
167
|
country_code: zod.z.string().describe("The country code.").nullable().optional(),
|
|
168
168
|
national_number: zod.z.string().describe("The national phone number.").nullable().optional()
|
|
169
|
-
}).describe("A phone number with country code and other details.");
|
|
169
|
+
}).passthrough().describe("A phone number with country code and other details.");
|
|
170
170
|
const PaypalCreateTemplate_InvoicerInfoSchema = zod.z.object({
|
|
171
171
|
phones: zod.z.array(PaypalCreateTemplate_PhoneNumberSchema).describe("The phone numbers of the invoicer.").nullable().optional(),
|
|
172
172
|
tax_id: zod.z.string().describe("The tax ID of the invoicer.").nullable().optional(),
|
|
@@ -174,28 +174,28 @@ const PaypalCreateTemplate_InvoicerInfoSchema = zod.z.object({
|
|
|
174
174
|
logo_url: zod.z.string().describe("The URL to the logo image for the invoicer.").nullable().optional(),
|
|
175
175
|
email_address: zod.z.string().describe("The email address of the invoicer.").nullable().optional(),
|
|
176
176
|
additional_notes: zod.z.string().describe("Additional notes for the invoicer.").nullable().optional()
|
|
177
|
-
}).describe("The invoicer business information that appears on the invoice.");
|
|
177
|
+
}).passthrough().describe("The invoicer business information that appears on the invoice.");
|
|
178
178
|
const PaypalCreateTemplate_PartialPaymentSchema = zod.z.object({
|
|
179
179
|
total_due: PaypalCreateTemplate_MoneySchema.nullable().optional(),
|
|
180
180
|
enable_partial_payment: zod.z.boolean().describe("Whether partial payment is enabled.").nullable().optional()
|
|
181
|
-
}).describe("The partial payment configuration.");
|
|
181
|
+
}).passthrough().describe("The partial payment configuration.");
|
|
182
182
|
const PaypalCreateTemplate_TemplateConfigurationSchema = zod.z.object({
|
|
183
183
|
allow_tip: zod.z.boolean().describe("Indicates whether the tip is allowed.").nullable().optional(),
|
|
184
184
|
tax_inclusive: zod.z.boolean().describe("Indicates whether tax is inclusive in the amount.").nullable().optional(),
|
|
185
185
|
partial_payment: PaypalCreateTemplate_PartialPaymentSchema.nullable().optional(),
|
|
186
186
|
has_conditional_rule: zod.z.boolean().describe("Indicates whether a conditional rule is present.").nullable().optional(),
|
|
187
187
|
tax_calculated_after_discount: zod.z.boolean().describe("Indicates whether tax is calculated after discount.").nullable().optional()
|
|
188
|
-
}).describe("The template configuration details including tax information, tip, and partial payment.");
|
|
188
|
+
}).passthrough().describe("The template configuration details including tax information, tip, and partial payment.");
|
|
189
189
|
const PaypalCreateTemplate_BillingInfoSchema = zod.z.object({
|
|
190
190
|
last_name: zod.z.string().describe("The last name of the billing contact.").nullable().optional(),
|
|
191
191
|
first_name: zod.z.string().describe("The first name of the billing contact.").nullable().optional(),
|
|
192
192
|
business_name: zod.z.string().describe("The business name of the billing contact.").nullable().optional(),
|
|
193
193
|
email_address: zod.z.string().describe("The email address of the billing contact.").nullable().optional()
|
|
194
|
-
}).describe("The billing information for the recipient.");
|
|
194
|
+
}).passthrough().describe("The billing information for the recipient.");
|
|
195
195
|
const PaypalCreateTemplate_RecipientInfoSchema = zod.z.object({
|
|
196
196
|
billing_info: PaypalCreateTemplate_BillingInfoSchema.nullable().optional(),
|
|
197
197
|
shipping_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The shipping information for the recipient.").nullable().optional()
|
|
198
|
-
}).describe("The billing and shipping information for the recipient.");
|
|
198
|
+
}).passthrough().describe("The billing and shipping information for the recipient.");
|
|
199
199
|
const PaypalCreateTemplate_TemplateInfoSchema = zod.z.object({
|
|
200
200
|
items: zod.z.array(PaypalCreateTemplate_InvoiceItemSchema).describe("An array of invoice line-item information.").nullable().optional(),
|
|
201
201
|
amount: PaypalCreateTemplate_InvoiceAmountSummarySchema.nullable().optional(),
|
|
@@ -205,7 +205,7 @@ const PaypalCreateTemplate_TemplateInfoSchema = zod.z.object({
|
|
|
205
205
|
configuration: PaypalCreateTemplate_TemplateConfigurationSchema.nullable().optional(),
|
|
206
206
|
primary_recipients: zod.z.array(PaypalCreateTemplate_RecipientInfoSchema).describe("The billing and shipping information including name, email, address, phone, and language.").nullable().optional(),
|
|
207
207
|
additional_recipients: zod.z.array(zod.z.string()).describe("An array of one or more CC: emails to which notifications are sent.").nullable().optional()
|
|
208
|
-
}).describe("The template details including invoicer business information, invoice recipients, items, and configuration.");
|
|
208
|
+
}).passthrough().describe("The template details including invoicer business information, invoice recipients, items, and configuration.");
|
|
209
209
|
const PaypalCreateTemplate_UnitOfMeasureSchema = zod.z.enum([
|
|
210
210
|
"QUANTITY",
|
|
211
211
|
"HOURS",
|
|
@@ -220,7 +220,7 @@ const PaypalCreateTemplateOutput = zod.z.object({
|
|
|
220
220
|
unit_of_measure: PaypalCreateTemplate_UnitOfMeasureSchema.nullable().optional(),
|
|
221
221
|
default_template: zod.z.boolean().describe("Indicates whether this template is the default template.").nullable().optional(),
|
|
222
222
|
standard_template: zod.z.boolean().describe("Indicates whether this template is a invoicer-created custom template.").nullable().optional()
|
|
223
|
-
}).describe("Response schema for a created PayPal invoice template.");
|
|
223
|
+
}).passthrough().describe("Response schema for a created PayPal invoice template.");
|
|
224
224
|
const paypalCreateTemplate = require_action.action("PAYPAL_CREATE_TEMPLATE", {
|
|
225
225
|
slug: "paypal-create-template",
|
|
226
226
|
name: "Create template",
|