dodopayments-mcp 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +184 -0
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +162 -0
- package/index.js.map +1 -0
- package/index.mjs +156 -0
- package/index.mjs.map +1 -0
- package/package.json +45 -0
- package/server.d.mts +30 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +30 -0
- package/server.d.ts.map +1 -0
- package/server.js +77 -0
- package/server.js.map +1 -0
- package/server.mjs +67 -0
- package/server.mjs.map +1 -0
- package/src/index.ts +190 -0
- package/src/server.ts +89 -0
- package/src/tools/customers/create-customers.ts +37 -0
- package/src/tools/customers/customer-portal/create-customers-customer-portal.ts +35 -0
- package/src/tools/customers/list-customers.ts +36 -0
- package/src/tools/customers/retrieve-customers.ts +31 -0
- package/src/tools/customers/update-customers.ts +37 -0
- package/src/tools/discounts/create-discounts.ts +61 -0
- package/src/tools/discounts/delete-discounts.ts +31 -0
- package/src/tools/discounts/list-discounts.ts +36 -0
- package/src/tools/discounts/retrieve-discounts.ts +31 -0
- package/src/tools/discounts/update-discounts.ts +62 -0
- package/src/tools/disputes/list-disputes.ts +66 -0
- package/src/tools/disputes/retrieve-disputes.ts +31 -0
- package/src/tools/index.ts +159 -0
- package/src/tools/invoices/payments/retrieve-invoices-payments.ts +31 -0
- package/src/tools/license-key-instances/list-license-key-instances.ts +40 -0
- package/src/tools/license-key-instances/retrieve-license-key-instances.ts +31 -0
- package/src/tools/license-key-instances/update-license-key-instances.ts +34 -0
- package/src/tools/license-keys/list-license-keys.ts +48 -0
- package/src/tools/license-keys/retrieve-license-keys.ts +31 -0
- package/src/tools/license-keys/update-license-keys.ts +47 -0
- package/src/tools/licenses/activate-licenses.ts +34 -0
- package/src/tools/licenses/deactivate-licenses.ts +34 -0
- package/src/tools/licenses/validate-licenses.ts +34 -0
- package/src/tools/misc/list-supported-countries-misc.ts +27 -0
- package/src/tools/payments/create-payments.ts +562 -0
- package/src/tools/payments/list-payments.ts +70 -0
- package/src/tools/payments/retrieve-payments.ts +31 -0
- package/src/tools/payouts/list-payouts.ts +36 -0
- package/src/tools/products/create-products.ts +476 -0
- package/src/tools/products/delete-products.ts +31 -0
- package/src/tools/products/images/update-products-images.ts +34 -0
- package/src/tools/products/list-products.ts +45 -0
- package/src/tools/products/retrieve-products.ts +31 -0
- package/src/tools/products/unarchive-products.ts +31 -0
- package/src/tools/products/update-products.ts +486 -0
- package/src/tools/refunds/create-refunds.ts +41 -0
- package/src/tools/refunds/list-refunds.ts +54 -0
- package/src/tools/refunds/retrieve-refunds.ts +31 -0
- package/src/tools/subscriptions/charge-subscriptions.ts +36 -0
- package/src/tools/subscriptions/create-subscriptions.ts +570 -0
- package/src/tools/subscriptions/list-subscriptions.ts +54 -0
- package/src/tools/subscriptions/retrieve-subscriptions.ts +31 -0
- package/src/tools/subscriptions/update-subscriptions.ts +38 -0
- package/src/tools/webhook-events/list-webhook-events.ts +54 -0
- package/src/tools/webhook-events/retrieve-webhook-events.ts +31 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/tools/customers/create-customers.d.mts +24 -0
- package/tools/customers/create-customers.d.mts.map +1 -0
- package/tools/customers/create-customers.d.ts +24 -0
- package/tools/customers/create-customers.d.ts.map +1 -0
- package/tools/customers/create-customers.js +34 -0
- package/tools/customers/create-customers.js.map +1 -0
- package/tools/customers/create-customers.mjs +30 -0
- package/tools/customers/create-customers.mjs.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts +24 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.mts.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts +24 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.d.ts.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.js +32 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.js.map +1 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs +28 -0
- package/tools/customers/customer-portal/create-customers-customer-portal.mjs.map +1 -0
- package/tools/customers/list-customers.d.mts +24 -0
- package/tools/customers/list-customers.d.mts.map +1 -0
- package/tools/customers/list-customers.d.ts +24 -0
- package/tools/customers/list-customers.d.ts.map +1 -0
- package/tools/customers/list-customers.js +33 -0
- package/tools/customers/list-customers.js.map +1 -0
- package/tools/customers/list-customers.mjs +29 -0
- package/tools/customers/list-customers.mjs.map +1 -0
- package/tools/customers/retrieve-customers.d.mts +24 -0
- package/tools/customers/retrieve-customers.d.mts.map +1 -0
- package/tools/customers/retrieve-customers.d.ts +24 -0
- package/tools/customers/retrieve-customers.d.ts.map +1 -0
- package/tools/customers/retrieve-customers.js +28 -0
- package/tools/customers/retrieve-customers.js.map +1 -0
- package/tools/customers/retrieve-customers.mjs +24 -0
- package/tools/customers/retrieve-customers.mjs.map +1 -0
- package/tools/customers/update-customers.d.mts +24 -0
- package/tools/customers/update-customers.d.mts.map +1 -0
- package/tools/customers/update-customers.d.ts +24 -0
- package/tools/customers/update-customers.d.ts.map +1 -0
- package/tools/customers/update-customers.js +34 -0
- package/tools/customers/update-customers.js.map +1 -0
- package/tools/customers/update-customers.mjs +30 -0
- package/tools/customers/update-customers.mjs.map +1 -0
- package/tools/discounts/create-discounts.d.mts +24 -0
- package/tools/discounts/create-discounts.d.mts.map +1 -0
- package/tools/discounts/create-discounts.d.ts +24 -0
- package/tools/discounts/create-discounts.d.ts.map +1 -0
- package/tools/discounts/create-discounts.js +56 -0
- package/tools/discounts/create-discounts.js.map +1 -0
- package/tools/discounts/create-discounts.mjs +52 -0
- package/tools/discounts/create-discounts.mjs.map +1 -0
- package/tools/discounts/delete-discounts.d.mts +24 -0
- package/tools/discounts/delete-discounts.d.mts.map +1 -0
- package/tools/discounts/delete-discounts.d.ts +24 -0
- package/tools/discounts/delete-discounts.d.ts.map +1 -0
- package/tools/discounts/delete-discounts.js +28 -0
- package/tools/discounts/delete-discounts.js.map +1 -0
- package/tools/discounts/delete-discounts.mjs +24 -0
- package/tools/discounts/delete-discounts.mjs.map +1 -0
- package/tools/discounts/list-discounts.d.mts +24 -0
- package/tools/discounts/list-discounts.d.mts.map +1 -0
- package/tools/discounts/list-discounts.d.ts +24 -0
- package/tools/discounts/list-discounts.d.ts.map +1 -0
- package/tools/discounts/list-discounts.js +33 -0
- package/tools/discounts/list-discounts.js.map +1 -0
- package/tools/discounts/list-discounts.mjs +29 -0
- package/tools/discounts/list-discounts.mjs.map +1 -0
- package/tools/discounts/retrieve-discounts.d.mts +24 -0
- package/tools/discounts/retrieve-discounts.d.mts.map +1 -0
- package/tools/discounts/retrieve-discounts.d.ts +24 -0
- package/tools/discounts/retrieve-discounts.d.ts.map +1 -0
- package/tools/discounts/retrieve-discounts.js +28 -0
- package/tools/discounts/retrieve-discounts.js.map +1 -0
- package/tools/discounts/retrieve-discounts.mjs +24 -0
- package/tools/discounts/retrieve-discounts.mjs.map +1 -0
- package/tools/discounts/update-discounts.d.mts +24 -0
- package/tools/discounts/update-discounts.d.mts.map +1 -0
- package/tools/discounts/update-discounts.d.ts +24 -0
- package/tools/discounts/update-discounts.d.ts.map +1 -0
- package/tools/discounts/update-discounts.js +57 -0
- package/tools/discounts/update-discounts.js.map +1 -0
- package/tools/discounts/update-discounts.mjs +53 -0
- package/tools/discounts/update-discounts.mjs.map +1 -0
- package/tools/disputes/list-disputes.d.mts +24 -0
- package/tools/disputes/list-disputes.d.mts.map +1 -0
- package/tools/disputes/list-disputes.d.ts +24 -0
- package/tools/disputes/list-disputes.d.ts.map +1 -0
- package/tools/disputes/list-disputes.js +63 -0
- package/tools/disputes/list-disputes.js.map +1 -0
- package/tools/disputes/list-disputes.mjs +59 -0
- package/tools/disputes/list-disputes.mjs.map +1 -0
- package/tools/disputes/retrieve-disputes.d.mts +24 -0
- package/tools/disputes/retrieve-disputes.d.mts.map +1 -0
- package/tools/disputes/retrieve-disputes.d.ts +24 -0
- package/tools/disputes/retrieve-disputes.d.ts.map +1 -0
- package/tools/disputes/retrieve-disputes.js +28 -0
- package/tools/disputes/retrieve-disputes.js.map +1 -0
- package/tools/disputes/retrieve-disputes.mjs +24 -0
- package/tools/disputes/retrieve-disputes.mjs.map +1 -0
- package/tools/index.d.mts +21 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +21 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +134 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +127 -0
- package/tools/index.mjs.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.mts.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.d.ts.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.js +28 -0
- package/tools/invoices/payments/retrieve-invoices-payments.js.map +1 -0
- package/tools/invoices/payments/retrieve-invoices-payments.mjs +24 -0
- package/tools/invoices/payments/retrieve-invoices-payments.mjs.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/list-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/list-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.js +37 -0
- package/tools/license-key-instances/list-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/list-license-key-instances.mjs +33 -0
- package/tools/license-key-instances/list-license-key-instances.mjs.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.js +28 -0
- package/tools/license-key-instances/retrieve-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/retrieve-license-key-instances.mjs +24 -0
- package/tools/license-key-instances/retrieve-license-key-instances.mjs.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.d.mts +24 -0
- package/tools/license-key-instances/update-license-key-instances.d.mts.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.d.ts +24 -0
- package/tools/license-key-instances/update-license-key-instances.d.ts.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.js +31 -0
- package/tools/license-key-instances/update-license-key-instances.js.map +1 -0
- package/tools/license-key-instances/update-license-key-instances.mjs +27 -0
- package/tools/license-key-instances/update-license-key-instances.mjs.map +1 -0
- package/tools/license-keys/list-license-keys.d.mts +24 -0
- package/tools/license-keys/list-license-keys.d.mts.map +1 -0
- package/tools/license-keys/list-license-keys.d.ts +24 -0
- package/tools/license-keys/list-license-keys.d.ts.map +1 -0
- package/tools/license-keys/list-license-keys.js +45 -0
- package/tools/license-keys/list-license-keys.js.map +1 -0
- package/tools/license-keys/list-license-keys.mjs +41 -0
- package/tools/license-keys/list-license-keys.mjs.map +1 -0
- package/tools/license-keys/retrieve-license-keys.d.mts +24 -0
- package/tools/license-keys/retrieve-license-keys.d.mts.map +1 -0
- package/tools/license-keys/retrieve-license-keys.d.ts +24 -0
- package/tools/license-keys/retrieve-license-keys.d.ts.map +1 -0
- package/tools/license-keys/retrieve-license-keys.js +28 -0
- package/tools/license-keys/retrieve-license-keys.js.map +1 -0
- package/tools/license-keys/retrieve-license-keys.mjs +24 -0
- package/tools/license-keys/retrieve-license-keys.mjs.map +1 -0
- package/tools/license-keys/update-license-keys.d.mts +24 -0
- package/tools/license-keys/update-license-keys.d.mts.map +1 -0
- package/tools/license-keys/update-license-keys.d.ts +24 -0
- package/tools/license-keys/update-license-keys.d.ts.map +1 -0
- package/tools/license-keys/update-license-keys.js +41 -0
- package/tools/license-keys/update-license-keys.js.map +1 -0
- package/tools/license-keys/update-license-keys.mjs +37 -0
- package/tools/license-keys/update-license-keys.mjs.map +1 -0
- package/tools/licenses/activate-licenses.d.mts +24 -0
- package/tools/licenses/activate-licenses.d.mts.map +1 -0
- package/tools/licenses/activate-licenses.d.ts +24 -0
- package/tools/licenses/activate-licenses.d.ts.map +1 -0
- package/tools/licenses/activate-licenses.js +31 -0
- package/tools/licenses/activate-licenses.js.map +1 -0
- package/tools/licenses/activate-licenses.mjs +27 -0
- package/tools/licenses/activate-licenses.mjs.map +1 -0
- package/tools/licenses/deactivate-licenses.d.mts +24 -0
- package/tools/licenses/deactivate-licenses.d.mts.map +1 -0
- package/tools/licenses/deactivate-licenses.d.ts +24 -0
- package/tools/licenses/deactivate-licenses.d.ts.map +1 -0
- package/tools/licenses/deactivate-licenses.js +31 -0
- package/tools/licenses/deactivate-licenses.js.map +1 -0
- package/tools/licenses/deactivate-licenses.mjs +27 -0
- package/tools/licenses/deactivate-licenses.mjs.map +1 -0
- package/tools/licenses/validate-licenses.d.mts +24 -0
- package/tools/licenses/validate-licenses.d.mts.map +1 -0
- package/tools/licenses/validate-licenses.d.ts +24 -0
- package/tools/licenses/validate-licenses.d.ts.map +1 -0
- package/tools/licenses/validate-licenses.js +31 -0
- package/tools/licenses/validate-licenses.js.map +1 -0
- package/tools/licenses/validate-licenses.mjs +27 -0
- package/tools/licenses/validate-licenses.mjs.map +1 -0
- package/tools/misc/list-supported-countries-misc.d.mts +24 -0
- package/tools/misc/list-supported-countries-misc.d.mts.map +1 -0
- package/tools/misc/list-supported-countries-misc.d.ts +24 -0
- package/tools/misc/list-supported-countries-misc.d.ts.map +1 -0
- package/tools/misc/list-supported-countries-misc.js +24 -0
- package/tools/misc/list-supported-countries-misc.js.map +1 -0
- package/tools/misc/list-supported-countries-misc.mjs +20 -0
- package/tools/misc/list-supported-countries-misc.mjs.map +1 -0
- package/tools/payments/create-payments.d.mts +24 -0
- package/tools/payments/create-payments.d.mts.map +1 -0
- package/tools/payments/create-payments.d.ts +24 -0
- package/tools/payments/create-payments.d.ts.map +1 -0
- package/tools/payments/create-payments.js +555 -0
- package/tools/payments/create-payments.js.map +1 -0
- package/tools/payments/create-payments.mjs +551 -0
- package/tools/payments/create-payments.mjs.map +1 -0
- package/tools/payments/list-payments.d.mts +24 -0
- package/tools/payments/list-payments.d.mts.map +1 -0
- package/tools/payments/list-payments.d.ts +24 -0
- package/tools/payments/list-payments.d.ts.map +1 -0
- package/tools/payments/list-payments.js +67 -0
- package/tools/payments/list-payments.js.map +1 -0
- package/tools/payments/list-payments.mjs +63 -0
- package/tools/payments/list-payments.mjs.map +1 -0
- package/tools/payments/retrieve-payments.d.mts +24 -0
- package/tools/payments/retrieve-payments.d.mts.map +1 -0
- package/tools/payments/retrieve-payments.d.ts +24 -0
- package/tools/payments/retrieve-payments.d.ts.map +1 -0
- package/tools/payments/retrieve-payments.js +28 -0
- package/tools/payments/retrieve-payments.js.map +1 -0
- package/tools/payments/retrieve-payments.mjs +24 -0
- package/tools/payments/retrieve-payments.mjs.map +1 -0
- package/tools/payouts/list-payouts.d.mts +24 -0
- package/tools/payouts/list-payouts.d.mts.map +1 -0
- package/tools/payouts/list-payouts.d.ts +24 -0
- package/tools/payouts/list-payouts.d.ts.map +1 -0
- package/tools/payouts/list-payouts.js +33 -0
- package/tools/payouts/list-payouts.js.map +1 -0
- package/tools/payouts/list-payouts.mjs +29 -0
- package/tools/payouts/list-payouts.mjs.map +1 -0
- package/tools/products/create-products.d.mts +24 -0
- package/tools/products/create-products.d.mts.map +1 -0
- package/tools/products/create-products.d.ts +24 -0
- package/tools/products/create-products.d.ts.map +1 -0
- package/tools/products/create-products.js +464 -0
- package/tools/products/create-products.js.map +1 -0
- package/tools/products/create-products.mjs +460 -0
- package/tools/products/create-products.mjs.map +1 -0
- package/tools/products/delete-products.d.mts +24 -0
- package/tools/products/delete-products.d.mts.map +1 -0
- package/tools/products/delete-products.d.ts +24 -0
- package/tools/products/delete-products.d.ts.map +1 -0
- package/tools/products/delete-products.js +28 -0
- package/tools/products/delete-products.js.map +1 -0
- package/tools/products/delete-products.mjs +24 -0
- package/tools/products/delete-products.mjs.map +1 -0
- package/tools/products/images/update-products-images.d.mts +24 -0
- package/tools/products/images/update-products-images.d.mts.map +1 -0
- package/tools/products/images/update-products-images.d.ts +24 -0
- package/tools/products/images/update-products-images.d.ts.map +1 -0
- package/tools/products/images/update-products-images.js +31 -0
- package/tools/products/images/update-products-images.js.map +1 -0
- package/tools/products/images/update-products-images.mjs +27 -0
- package/tools/products/images/update-products-images.mjs.map +1 -0
- package/tools/products/list-products.d.mts +24 -0
- package/tools/products/list-products.d.mts.map +1 -0
- package/tools/products/list-products.d.ts +24 -0
- package/tools/products/list-products.d.ts.map +1 -0
- package/tools/products/list-products.js +41 -0
- package/tools/products/list-products.js.map +1 -0
- package/tools/products/list-products.mjs +37 -0
- package/tools/products/list-products.mjs.map +1 -0
- package/tools/products/retrieve-products.d.mts +24 -0
- package/tools/products/retrieve-products.d.mts.map +1 -0
- package/tools/products/retrieve-products.d.ts +24 -0
- package/tools/products/retrieve-products.d.ts.map +1 -0
- package/tools/products/retrieve-products.js +28 -0
- package/tools/products/retrieve-products.js.map +1 -0
- package/tools/products/retrieve-products.mjs +24 -0
- package/tools/products/retrieve-products.mjs.map +1 -0
- package/tools/products/unarchive-products.d.mts +24 -0
- package/tools/products/unarchive-products.d.mts.map +1 -0
- package/tools/products/unarchive-products.d.ts +24 -0
- package/tools/products/unarchive-products.d.ts.map +1 -0
- package/tools/products/unarchive-products.js +28 -0
- package/tools/products/unarchive-products.js.map +1 -0
- package/tools/products/unarchive-products.mjs +24 -0
- package/tools/products/unarchive-products.mjs.map +1 -0
- package/tools/products/update-products.d.mts +24 -0
- package/tools/products/update-products.d.mts.map +1 -0
- package/tools/products/update-products.d.ts +24 -0
- package/tools/products/update-products.d.ts.map +1 -0
- package/tools/products/update-products.js +471 -0
- package/tools/products/update-products.js.map +1 -0
- package/tools/products/update-products.mjs +467 -0
- package/tools/products/update-products.mjs.map +1 -0
- package/tools/refunds/create-refunds.d.mts +24 -0
- package/tools/refunds/create-refunds.d.mts.map +1 -0
- package/tools/refunds/create-refunds.d.ts +24 -0
- package/tools/refunds/create-refunds.d.ts.map +1 -0
- package/tools/refunds/create-refunds.js +37 -0
- package/tools/refunds/create-refunds.js.map +1 -0
- package/tools/refunds/create-refunds.mjs +33 -0
- package/tools/refunds/create-refunds.mjs.map +1 -0
- package/tools/refunds/list-refunds.d.mts +24 -0
- package/tools/refunds/list-refunds.d.mts.map +1 -0
- package/tools/refunds/list-refunds.d.ts +24 -0
- package/tools/refunds/list-refunds.d.ts.map +1 -0
- package/tools/refunds/list-refunds.js +51 -0
- package/tools/refunds/list-refunds.js.map +1 -0
- package/tools/refunds/list-refunds.mjs +47 -0
- package/tools/refunds/list-refunds.mjs.map +1 -0
- package/tools/refunds/retrieve-refunds.d.mts +24 -0
- package/tools/refunds/retrieve-refunds.d.mts.map +1 -0
- package/tools/refunds/retrieve-refunds.d.ts +24 -0
- package/tools/refunds/retrieve-refunds.d.ts.map +1 -0
- package/tools/refunds/retrieve-refunds.js +28 -0
- package/tools/refunds/retrieve-refunds.js.map +1 -0
- package/tools/refunds/retrieve-refunds.mjs +24 -0
- package/tools/refunds/retrieve-refunds.mjs.map +1 -0
- package/tools/subscriptions/charge-subscriptions.d.mts +24 -0
- package/tools/subscriptions/charge-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/charge-subscriptions.d.ts +24 -0
- package/tools/subscriptions/charge-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/charge-subscriptions.js +32 -0
- package/tools/subscriptions/charge-subscriptions.js.map +1 -0
- package/tools/subscriptions/charge-subscriptions.mjs +28 -0
- package/tools/subscriptions/charge-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/create-subscriptions.d.mts +24 -0
- package/tools/subscriptions/create-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/create-subscriptions.d.ts +24 -0
- package/tools/subscriptions/create-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/create-subscriptions.js +561 -0
- package/tools/subscriptions/create-subscriptions.js.map +1 -0
- package/tools/subscriptions/create-subscriptions.mjs +557 -0
- package/tools/subscriptions/create-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/list-subscriptions.d.mts +24 -0
- package/tools/subscriptions/list-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/list-subscriptions.d.ts +24 -0
- package/tools/subscriptions/list-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/list-subscriptions.js +51 -0
- package/tools/subscriptions/list-subscriptions.js.map +1 -0
- package/tools/subscriptions/list-subscriptions.mjs +47 -0
- package/tools/subscriptions/list-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.d.mts +24 -0
- package/tools/subscriptions/retrieve-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.d.ts +24 -0
- package/tools/subscriptions/retrieve-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.js +28 -0
- package/tools/subscriptions/retrieve-subscriptions.js.map +1 -0
- package/tools/subscriptions/retrieve-subscriptions.mjs +24 -0
- package/tools/subscriptions/retrieve-subscriptions.mjs.map +1 -0
- package/tools/subscriptions/update-subscriptions.d.mts +24 -0
- package/tools/subscriptions/update-subscriptions.d.mts.map +1 -0
- package/tools/subscriptions/update-subscriptions.d.ts +24 -0
- package/tools/subscriptions/update-subscriptions.d.ts.map +1 -0
- package/tools/subscriptions/update-subscriptions.js +35 -0
- package/tools/subscriptions/update-subscriptions.js.map +1 -0
- package/tools/subscriptions/update-subscriptions.mjs +31 -0
- package/tools/subscriptions/update-subscriptions.mjs.map +1 -0
- package/tools/webhook-events/list-webhook-events.d.mts +24 -0
- package/tools/webhook-events/list-webhook-events.d.mts.map +1 -0
- package/tools/webhook-events/list-webhook-events.d.ts +24 -0
- package/tools/webhook-events/list-webhook-events.d.ts.map +1 -0
- package/tools/webhook-events/list-webhook-events.js +51 -0
- package/tools/webhook-events/list-webhook-events.js.map +1 -0
- package/tools/webhook-events/list-webhook-events.mjs +47 -0
- package/tools/webhook-events/list-webhook-events.mjs.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.d.mts +24 -0
- package/tools/webhook-events/retrieve-webhook-events.d.mts.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.d.ts +24 -0
- package/tools/webhook-events/retrieve-webhook-events.d.ts.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.js +28 -0
- package/tools/webhook-events/retrieve-webhook-events.js.map +1 -0
- package/tools/webhook-events/retrieve-webhook-events.mjs +24 -0
- package/tools/webhook-events/retrieve-webhook-events.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'subscriptions',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'create_subscriptions',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
billing: {
|
|
20
|
+
type: 'object',
|
|
21
|
+
properties: {
|
|
22
|
+
city: {
|
|
23
|
+
type: 'string',
|
|
24
|
+
description: 'City name',
|
|
25
|
+
},
|
|
26
|
+
country: {
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: 'ISO country code alpha2 variant',
|
|
29
|
+
enum: [
|
|
30
|
+
'AF',
|
|
31
|
+
'AX',
|
|
32
|
+
'AL',
|
|
33
|
+
'DZ',
|
|
34
|
+
'AS',
|
|
35
|
+
'AD',
|
|
36
|
+
'AO',
|
|
37
|
+
'AI',
|
|
38
|
+
'AQ',
|
|
39
|
+
'AG',
|
|
40
|
+
'AR',
|
|
41
|
+
'AM',
|
|
42
|
+
'AW',
|
|
43
|
+
'AU',
|
|
44
|
+
'AT',
|
|
45
|
+
'AZ',
|
|
46
|
+
'BS',
|
|
47
|
+
'BH',
|
|
48
|
+
'BD',
|
|
49
|
+
'BB',
|
|
50
|
+
'BY',
|
|
51
|
+
'BE',
|
|
52
|
+
'BZ',
|
|
53
|
+
'BJ',
|
|
54
|
+
'BM',
|
|
55
|
+
'BT',
|
|
56
|
+
'BO',
|
|
57
|
+
'BQ',
|
|
58
|
+
'BA',
|
|
59
|
+
'BW',
|
|
60
|
+
'BV',
|
|
61
|
+
'BR',
|
|
62
|
+
'IO',
|
|
63
|
+
'BN',
|
|
64
|
+
'BG',
|
|
65
|
+
'BF',
|
|
66
|
+
'BI',
|
|
67
|
+
'KH',
|
|
68
|
+
'CM',
|
|
69
|
+
'CA',
|
|
70
|
+
'CV',
|
|
71
|
+
'KY',
|
|
72
|
+
'CF',
|
|
73
|
+
'TD',
|
|
74
|
+
'CL',
|
|
75
|
+
'CN',
|
|
76
|
+
'CX',
|
|
77
|
+
'CC',
|
|
78
|
+
'CO',
|
|
79
|
+
'KM',
|
|
80
|
+
'CG',
|
|
81
|
+
'CD',
|
|
82
|
+
'CK',
|
|
83
|
+
'CR',
|
|
84
|
+
'CI',
|
|
85
|
+
'HR',
|
|
86
|
+
'CU',
|
|
87
|
+
'CW',
|
|
88
|
+
'CY',
|
|
89
|
+
'CZ',
|
|
90
|
+
'DK',
|
|
91
|
+
'DJ',
|
|
92
|
+
'DM',
|
|
93
|
+
'DO',
|
|
94
|
+
'EC',
|
|
95
|
+
'EG',
|
|
96
|
+
'SV',
|
|
97
|
+
'GQ',
|
|
98
|
+
'ER',
|
|
99
|
+
'EE',
|
|
100
|
+
'ET',
|
|
101
|
+
'FK',
|
|
102
|
+
'FO',
|
|
103
|
+
'FJ',
|
|
104
|
+
'FI',
|
|
105
|
+
'FR',
|
|
106
|
+
'GF',
|
|
107
|
+
'PF',
|
|
108
|
+
'TF',
|
|
109
|
+
'GA',
|
|
110
|
+
'GM',
|
|
111
|
+
'GE',
|
|
112
|
+
'DE',
|
|
113
|
+
'GH',
|
|
114
|
+
'GI',
|
|
115
|
+
'GR',
|
|
116
|
+
'GL',
|
|
117
|
+
'GD',
|
|
118
|
+
'GP',
|
|
119
|
+
'GU',
|
|
120
|
+
'GT',
|
|
121
|
+
'GG',
|
|
122
|
+
'GN',
|
|
123
|
+
'GW',
|
|
124
|
+
'GY',
|
|
125
|
+
'HT',
|
|
126
|
+
'HM',
|
|
127
|
+
'VA',
|
|
128
|
+
'HN',
|
|
129
|
+
'HK',
|
|
130
|
+
'HU',
|
|
131
|
+
'IS',
|
|
132
|
+
'IN',
|
|
133
|
+
'ID',
|
|
134
|
+
'IR',
|
|
135
|
+
'IQ',
|
|
136
|
+
'IE',
|
|
137
|
+
'IM',
|
|
138
|
+
'IL',
|
|
139
|
+
'IT',
|
|
140
|
+
'JM',
|
|
141
|
+
'JP',
|
|
142
|
+
'JE',
|
|
143
|
+
'JO',
|
|
144
|
+
'KZ',
|
|
145
|
+
'KE',
|
|
146
|
+
'KI',
|
|
147
|
+
'KP',
|
|
148
|
+
'KR',
|
|
149
|
+
'KW',
|
|
150
|
+
'KG',
|
|
151
|
+
'LA',
|
|
152
|
+
'LV',
|
|
153
|
+
'LB',
|
|
154
|
+
'LS',
|
|
155
|
+
'LR',
|
|
156
|
+
'LY',
|
|
157
|
+
'LI',
|
|
158
|
+
'LT',
|
|
159
|
+
'LU',
|
|
160
|
+
'MO',
|
|
161
|
+
'MK',
|
|
162
|
+
'MG',
|
|
163
|
+
'MW',
|
|
164
|
+
'MY',
|
|
165
|
+
'MV',
|
|
166
|
+
'ML',
|
|
167
|
+
'MT',
|
|
168
|
+
'MH',
|
|
169
|
+
'MQ',
|
|
170
|
+
'MR',
|
|
171
|
+
'MU',
|
|
172
|
+
'YT',
|
|
173
|
+
'MX',
|
|
174
|
+
'FM',
|
|
175
|
+
'MD',
|
|
176
|
+
'MC',
|
|
177
|
+
'MN',
|
|
178
|
+
'ME',
|
|
179
|
+
'MS',
|
|
180
|
+
'MA',
|
|
181
|
+
'MZ',
|
|
182
|
+
'MM',
|
|
183
|
+
'NA',
|
|
184
|
+
'NR',
|
|
185
|
+
'NP',
|
|
186
|
+
'NL',
|
|
187
|
+
'NC',
|
|
188
|
+
'NZ',
|
|
189
|
+
'NI',
|
|
190
|
+
'NE',
|
|
191
|
+
'NG',
|
|
192
|
+
'NU',
|
|
193
|
+
'NF',
|
|
194
|
+
'MP',
|
|
195
|
+
'NO',
|
|
196
|
+
'OM',
|
|
197
|
+
'PK',
|
|
198
|
+
'PW',
|
|
199
|
+
'PS',
|
|
200
|
+
'PA',
|
|
201
|
+
'PG',
|
|
202
|
+
'PY',
|
|
203
|
+
'PE',
|
|
204
|
+
'PH',
|
|
205
|
+
'PN',
|
|
206
|
+
'PL',
|
|
207
|
+
'PT',
|
|
208
|
+
'PR',
|
|
209
|
+
'QA',
|
|
210
|
+
'RE',
|
|
211
|
+
'RO',
|
|
212
|
+
'RU',
|
|
213
|
+
'RW',
|
|
214
|
+
'BL',
|
|
215
|
+
'SH',
|
|
216
|
+
'KN',
|
|
217
|
+
'LC',
|
|
218
|
+
'MF',
|
|
219
|
+
'PM',
|
|
220
|
+
'VC',
|
|
221
|
+
'WS',
|
|
222
|
+
'SM',
|
|
223
|
+
'ST',
|
|
224
|
+
'SA',
|
|
225
|
+
'SN',
|
|
226
|
+
'RS',
|
|
227
|
+
'SC',
|
|
228
|
+
'SL',
|
|
229
|
+
'SG',
|
|
230
|
+
'SX',
|
|
231
|
+
'SK',
|
|
232
|
+
'SI',
|
|
233
|
+
'SB',
|
|
234
|
+
'SO',
|
|
235
|
+
'ZA',
|
|
236
|
+
'GS',
|
|
237
|
+
'SS',
|
|
238
|
+
'ES',
|
|
239
|
+
'LK',
|
|
240
|
+
'SD',
|
|
241
|
+
'SR',
|
|
242
|
+
'SJ',
|
|
243
|
+
'SZ',
|
|
244
|
+
'SE',
|
|
245
|
+
'CH',
|
|
246
|
+
'SY',
|
|
247
|
+
'TW',
|
|
248
|
+
'TJ',
|
|
249
|
+
'TZ',
|
|
250
|
+
'TH',
|
|
251
|
+
'TL',
|
|
252
|
+
'TG',
|
|
253
|
+
'TK',
|
|
254
|
+
'TO',
|
|
255
|
+
'TT',
|
|
256
|
+
'TN',
|
|
257
|
+
'TR',
|
|
258
|
+
'TM',
|
|
259
|
+
'TC',
|
|
260
|
+
'TV',
|
|
261
|
+
'UG',
|
|
262
|
+
'UA',
|
|
263
|
+
'AE',
|
|
264
|
+
'GB',
|
|
265
|
+
'UM',
|
|
266
|
+
'US',
|
|
267
|
+
'UY',
|
|
268
|
+
'UZ',
|
|
269
|
+
'VU',
|
|
270
|
+
'VE',
|
|
271
|
+
'VN',
|
|
272
|
+
'VG',
|
|
273
|
+
'VI',
|
|
274
|
+
'WF',
|
|
275
|
+
'EH',
|
|
276
|
+
'YE',
|
|
277
|
+
'ZM',
|
|
278
|
+
'ZW',
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
state: {
|
|
282
|
+
type: 'string',
|
|
283
|
+
description: 'State or province name',
|
|
284
|
+
},
|
|
285
|
+
street: {
|
|
286
|
+
type: 'string',
|
|
287
|
+
description: 'Street address including house number and unit/apartment if applicable',
|
|
288
|
+
},
|
|
289
|
+
zipcode: {
|
|
290
|
+
type: 'string',
|
|
291
|
+
description: 'Postal code or ZIP code',
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
required: ['city', 'country', 'state', 'street', 'zipcode'],
|
|
295
|
+
},
|
|
296
|
+
customer: {
|
|
297
|
+
anyOf: [
|
|
298
|
+
{
|
|
299
|
+
type: 'object',
|
|
300
|
+
title: 'Attach Existing Customer',
|
|
301
|
+
properties: {
|
|
302
|
+
customer_id: {
|
|
303
|
+
type: 'string',
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
required: ['customer_id'],
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type: 'object',
|
|
310
|
+
title: 'Create New Customer',
|
|
311
|
+
properties: {
|
|
312
|
+
email: {
|
|
313
|
+
type: 'string',
|
|
314
|
+
},
|
|
315
|
+
name: {
|
|
316
|
+
type: 'string',
|
|
317
|
+
},
|
|
318
|
+
create_new_customer: {
|
|
319
|
+
type: 'boolean',
|
|
320
|
+
description:
|
|
321
|
+
'When false, the most recently created customer object with the given email is used if exists.\nWhen true, a new customer object is always created\nFalse by default',
|
|
322
|
+
},
|
|
323
|
+
phone_number: {
|
|
324
|
+
type: 'string',
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
required: ['email', 'name'],
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
product_id: {
|
|
332
|
+
type: 'string',
|
|
333
|
+
description: 'Unique identifier of the product to subscribe to',
|
|
334
|
+
},
|
|
335
|
+
quantity: {
|
|
336
|
+
type: 'integer',
|
|
337
|
+
description: 'Number of units to subscribe for. Must be at least 1.',
|
|
338
|
+
},
|
|
339
|
+
allowed_payment_method_types: {
|
|
340
|
+
type: 'array',
|
|
341
|
+
description:
|
|
342
|
+
'List of payment methods allowed during checkout.\n\nCustomers will **never** see payment methods that are **not** in this list.\nHowever, adding a method here **does not guarantee** customers will see it.\nAvailability still depends on other factors (e.g., customer location, merchant settings).',
|
|
343
|
+
items: {
|
|
344
|
+
type: 'string',
|
|
345
|
+
enum: [
|
|
346
|
+
'credit',
|
|
347
|
+
'debit',
|
|
348
|
+
'upi_collect',
|
|
349
|
+
'upi_intent',
|
|
350
|
+
'apple_pay',
|
|
351
|
+
'cashapp',
|
|
352
|
+
'google_pay',
|
|
353
|
+
'multibanco',
|
|
354
|
+
'bancontact_card',
|
|
355
|
+
'eps',
|
|
356
|
+
'ideal',
|
|
357
|
+
'przelewy24',
|
|
358
|
+
'affirm',
|
|
359
|
+
'klarna',
|
|
360
|
+
'sepa',
|
|
361
|
+
'ach',
|
|
362
|
+
'amazon_pay',
|
|
363
|
+
],
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
billing_currency: {
|
|
367
|
+
type: 'string',
|
|
368
|
+
enum: [
|
|
369
|
+
'AED',
|
|
370
|
+
'ALL',
|
|
371
|
+
'AMD',
|
|
372
|
+
'ANG',
|
|
373
|
+
'AOA',
|
|
374
|
+
'ARS',
|
|
375
|
+
'AUD',
|
|
376
|
+
'AWG',
|
|
377
|
+
'AZN',
|
|
378
|
+
'BAM',
|
|
379
|
+
'BBD',
|
|
380
|
+
'BDT',
|
|
381
|
+
'BGN',
|
|
382
|
+
'BHD',
|
|
383
|
+
'BIF',
|
|
384
|
+
'BMD',
|
|
385
|
+
'BND',
|
|
386
|
+
'BOB',
|
|
387
|
+
'BRL',
|
|
388
|
+
'BSD',
|
|
389
|
+
'BWP',
|
|
390
|
+
'BYN',
|
|
391
|
+
'BZD',
|
|
392
|
+
'CAD',
|
|
393
|
+
'CHF',
|
|
394
|
+
'CLP',
|
|
395
|
+
'CNY',
|
|
396
|
+
'COP',
|
|
397
|
+
'CRC',
|
|
398
|
+
'CUP',
|
|
399
|
+
'CVE',
|
|
400
|
+
'CZK',
|
|
401
|
+
'DJF',
|
|
402
|
+
'DKK',
|
|
403
|
+
'DOP',
|
|
404
|
+
'DZD',
|
|
405
|
+
'EGP',
|
|
406
|
+
'ETB',
|
|
407
|
+
'EUR',
|
|
408
|
+
'FJD',
|
|
409
|
+
'FKP',
|
|
410
|
+
'GBP',
|
|
411
|
+
'GEL',
|
|
412
|
+
'GHS',
|
|
413
|
+
'GIP',
|
|
414
|
+
'GMD',
|
|
415
|
+
'GNF',
|
|
416
|
+
'GTQ',
|
|
417
|
+
'GYD',
|
|
418
|
+
'HKD',
|
|
419
|
+
'HNL',
|
|
420
|
+
'HRK',
|
|
421
|
+
'HTG',
|
|
422
|
+
'HUF',
|
|
423
|
+
'IDR',
|
|
424
|
+
'ILS',
|
|
425
|
+
'INR',
|
|
426
|
+
'IQD',
|
|
427
|
+
'JMD',
|
|
428
|
+
'JOD',
|
|
429
|
+
'JPY',
|
|
430
|
+
'KES',
|
|
431
|
+
'KGS',
|
|
432
|
+
'KHR',
|
|
433
|
+
'KMF',
|
|
434
|
+
'KRW',
|
|
435
|
+
'KWD',
|
|
436
|
+
'KYD',
|
|
437
|
+
'KZT',
|
|
438
|
+
'LAK',
|
|
439
|
+
'LBP',
|
|
440
|
+
'LKR',
|
|
441
|
+
'LRD',
|
|
442
|
+
'LSL',
|
|
443
|
+
'LYD',
|
|
444
|
+
'MAD',
|
|
445
|
+
'MDL',
|
|
446
|
+
'MGA',
|
|
447
|
+
'MKD',
|
|
448
|
+
'MMK',
|
|
449
|
+
'MNT',
|
|
450
|
+
'MOP',
|
|
451
|
+
'MRU',
|
|
452
|
+
'MUR',
|
|
453
|
+
'MVR',
|
|
454
|
+
'MWK',
|
|
455
|
+
'MXN',
|
|
456
|
+
'MYR',
|
|
457
|
+
'MZN',
|
|
458
|
+
'NAD',
|
|
459
|
+
'NGN',
|
|
460
|
+
'NIO',
|
|
461
|
+
'NOK',
|
|
462
|
+
'NPR',
|
|
463
|
+
'NZD',
|
|
464
|
+
'OMR',
|
|
465
|
+
'PAB',
|
|
466
|
+
'PEN',
|
|
467
|
+
'PGK',
|
|
468
|
+
'PHP',
|
|
469
|
+
'PKR',
|
|
470
|
+
'PLN',
|
|
471
|
+
'PYG',
|
|
472
|
+
'QAR',
|
|
473
|
+
'RON',
|
|
474
|
+
'RSD',
|
|
475
|
+
'RUB',
|
|
476
|
+
'RWF',
|
|
477
|
+
'SAR',
|
|
478
|
+
'SBD',
|
|
479
|
+
'SCR',
|
|
480
|
+
'SEK',
|
|
481
|
+
'SGD',
|
|
482
|
+
'SHP',
|
|
483
|
+
'SLE',
|
|
484
|
+
'SLL',
|
|
485
|
+
'SOS',
|
|
486
|
+
'SRD',
|
|
487
|
+
'SSP',
|
|
488
|
+
'STN',
|
|
489
|
+
'SVC',
|
|
490
|
+
'SZL',
|
|
491
|
+
'THB',
|
|
492
|
+
'TND',
|
|
493
|
+
'TOP',
|
|
494
|
+
'TRY',
|
|
495
|
+
'TTD',
|
|
496
|
+
'TWD',
|
|
497
|
+
'TZS',
|
|
498
|
+
'UAH',
|
|
499
|
+
'UGX',
|
|
500
|
+
'USD',
|
|
501
|
+
'UYU',
|
|
502
|
+
'UZS',
|
|
503
|
+
'VES',
|
|
504
|
+
'VND',
|
|
505
|
+
'VUV',
|
|
506
|
+
'WST',
|
|
507
|
+
'XAF',
|
|
508
|
+
'XCD',
|
|
509
|
+
'XOF',
|
|
510
|
+
'XPF',
|
|
511
|
+
'YER',
|
|
512
|
+
'ZAR',
|
|
513
|
+
'ZMW',
|
|
514
|
+
],
|
|
515
|
+
},
|
|
516
|
+
discount_code: {
|
|
517
|
+
type: 'string',
|
|
518
|
+
description: 'Discount Code to apply to the subscription',
|
|
519
|
+
},
|
|
520
|
+
metadata: {
|
|
521
|
+
type: 'object',
|
|
522
|
+
},
|
|
523
|
+
on_demand: {
|
|
524
|
+
type: 'object',
|
|
525
|
+
properties: {
|
|
526
|
+
mandate_only: {
|
|
527
|
+
type: 'boolean',
|
|
528
|
+
description:
|
|
529
|
+
'If set as True, does not perform any charge and only authorizes payment method details for future use.',
|
|
530
|
+
},
|
|
531
|
+
product_price: {
|
|
532
|
+
type: 'integer',
|
|
533
|
+
description:
|
|
534
|
+
'Product price for the initial charge to customer\nIf not specified the stored price of the product will be used\nRepresented in the lowest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.',
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
required: ['mandate_only'],
|
|
538
|
+
},
|
|
539
|
+
payment_link: {
|
|
540
|
+
type: 'boolean',
|
|
541
|
+
description: 'If true, generates a payment link.\nDefaults to false if not specified.',
|
|
542
|
+
},
|
|
543
|
+
return_url: {
|
|
544
|
+
type: 'string',
|
|
545
|
+
description: 'Optional URL to redirect after successful subscription creation',
|
|
546
|
+
},
|
|
547
|
+
show_saved_payment_methods: {
|
|
548
|
+
type: 'boolean',
|
|
549
|
+
description: 'Display saved payment methods of a returning customer\nFalse by default',
|
|
550
|
+
},
|
|
551
|
+
tax_id: {
|
|
552
|
+
type: 'string',
|
|
553
|
+
description:
|
|
554
|
+
'Tax ID in case the payment is B2B. If tax id validation fails the payment creation will fail',
|
|
555
|
+
},
|
|
556
|
+
trial_period_days: {
|
|
557
|
+
type: 'integer',
|
|
558
|
+
description:
|
|
559
|
+
"Optional trial period in days\nIf specified, this value overrides the trial period set in the product's price\nMust be between 0 and 10000 days",
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
};
|
|
564
|
+
|
|
565
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
566
|
+
const { ...body } = args;
|
|
567
|
+
return client.subscriptions.create(body);
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'subscriptions',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_subscriptions',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
created_at_gte: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Get events after this created time',
|
|
22
|
+
format: 'date-time',
|
|
23
|
+
},
|
|
24
|
+
created_at_lte: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Get events created before this time',
|
|
27
|
+
format: 'date-time',
|
|
28
|
+
},
|
|
29
|
+
customer_id: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Filter by customer id',
|
|
32
|
+
},
|
|
33
|
+
page_number: {
|
|
34
|
+
type: 'integer',
|
|
35
|
+
description: 'Page number default is 0',
|
|
36
|
+
},
|
|
37
|
+
page_size: {
|
|
38
|
+
type: 'integer',
|
|
39
|
+
description: 'Page size default is 10 max is 100',
|
|
40
|
+
},
|
|
41
|
+
status: {
|
|
42
|
+
type: 'string',
|
|
43
|
+
enum: ['pending', 'active', 'on_hold', 'paused', 'cancelled', 'failed', 'expired'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
50
|
+
const { ...body } = args;
|
|
51
|
+
return client.subscriptions.list(body);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'subscriptions',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_subscriptions',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
subscription_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { subscription_id } = args;
|
|
28
|
+
return client.subscriptions.retrieve(subscription_id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
+
import type { Metadata } from '../';
|
|
5
|
+
import DodoPayments from 'dodopayments';
|
|
6
|
+
|
|
7
|
+
export const metadata: Metadata = {
|
|
8
|
+
resource: 'subscriptions',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_subscriptions',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
subscription_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
metadata: {
|
|
23
|
+
type: 'object',
|
|
24
|
+
},
|
|
25
|
+
status: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
enum: ['pending', 'active', 'on_hold', 'paused', 'cancelled', 'failed', 'expired'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
34
|
+
const { subscription_id, ...body } = args;
|
|
35
|
+
return client.subscriptions.update(subscription_id, body);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export default { metadata, tool, handler };
|