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,486 @@
|
|
|
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: 'products',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'update_products',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
addons: {
|
|
23
|
+
type: 'array',
|
|
24
|
+
description: 'Available Addons for subscription products',
|
|
25
|
+
items: {
|
|
26
|
+
type: 'string',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
description: {
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: 'Description of the product, optional and must be at most 1000 characters.',
|
|
32
|
+
},
|
|
33
|
+
image_id: {
|
|
34
|
+
type: 'string',
|
|
35
|
+
description: 'Product image id after its uploaded to S3',
|
|
36
|
+
},
|
|
37
|
+
license_key_activation_message: {
|
|
38
|
+
type: 'string',
|
|
39
|
+
description:
|
|
40
|
+
'Message sent to the customer upon license key activation.\n\nOnly applicable if `license_key_enabled` is `true`. This message contains instructions for\nactivating the license key.',
|
|
41
|
+
},
|
|
42
|
+
license_key_activations_limit: {
|
|
43
|
+
type: 'integer',
|
|
44
|
+
description:
|
|
45
|
+
'Limit for the number of activations for the license key.\n\nOnly applicable if `license_key_enabled` is `true`. Represents the maximum number of times\nthe license key can be activated.',
|
|
46
|
+
},
|
|
47
|
+
license_key_duration: {
|
|
48
|
+
type: 'object',
|
|
49
|
+
properties: {
|
|
50
|
+
count: {
|
|
51
|
+
type: 'integer',
|
|
52
|
+
},
|
|
53
|
+
interval: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
enum: ['Day', 'Week', 'Month', 'Year'],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
required: ['count', 'interval'],
|
|
59
|
+
},
|
|
60
|
+
license_key_enabled: {
|
|
61
|
+
type: 'boolean',
|
|
62
|
+
description:
|
|
63
|
+
'Whether the product requires a license key.\n\nIf `true`, additional fields related to license key (duration, activations limit, activation message)\nbecome applicable.',
|
|
64
|
+
},
|
|
65
|
+
name: {
|
|
66
|
+
type: 'string',
|
|
67
|
+
description: 'Name of the product, optional and must be at most 100 characters.',
|
|
68
|
+
},
|
|
69
|
+
price: {
|
|
70
|
+
anyOf: [
|
|
71
|
+
{
|
|
72
|
+
type: 'object',
|
|
73
|
+
title: 'One Time Price',
|
|
74
|
+
properties: {
|
|
75
|
+
currency: {
|
|
76
|
+
type: 'string',
|
|
77
|
+
enum: [
|
|
78
|
+
'AED',
|
|
79
|
+
'ALL',
|
|
80
|
+
'AMD',
|
|
81
|
+
'ANG',
|
|
82
|
+
'AOA',
|
|
83
|
+
'ARS',
|
|
84
|
+
'AUD',
|
|
85
|
+
'AWG',
|
|
86
|
+
'AZN',
|
|
87
|
+
'BAM',
|
|
88
|
+
'BBD',
|
|
89
|
+
'BDT',
|
|
90
|
+
'BGN',
|
|
91
|
+
'BHD',
|
|
92
|
+
'BIF',
|
|
93
|
+
'BMD',
|
|
94
|
+
'BND',
|
|
95
|
+
'BOB',
|
|
96
|
+
'BRL',
|
|
97
|
+
'BSD',
|
|
98
|
+
'BWP',
|
|
99
|
+
'BYN',
|
|
100
|
+
'BZD',
|
|
101
|
+
'CAD',
|
|
102
|
+
'CHF',
|
|
103
|
+
'CLP',
|
|
104
|
+
'CNY',
|
|
105
|
+
'COP',
|
|
106
|
+
'CRC',
|
|
107
|
+
'CUP',
|
|
108
|
+
'CVE',
|
|
109
|
+
'CZK',
|
|
110
|
+
'DJF',
|
|
111
|
+
'DKK',
|
|
112
|
+
'DOP',
|
|
113
|
+
'DZD',
|
|
114
|
+
'EGP',
|
|
115
|
+
'ETB',
|
|
116
|
+
'EUR',
|
|
117
|
+
'FJD',
|
|
118
|
+
'FKP',
|
|
119
|
+
'GBP',
|
|
120
|
+
'GEL',
|
|
121
|
+
'GHS',
|
|
122
|
+
'GIP',
|
|
123
|
+
'GMD',
|
|
124
|
+
'GNF',
|
|
125
|
+
'GTQ',
|
|
126
|
+
'GYD',
|
|
127
|
+
'HKD',
|
|
128
|
+
'HNL',
|
|
129
|
+
'HRK',
|
|
130
|
+
'HTG',
|
|
131
|
+
'HUF',
|
|
132
|
+
'IDR',
|
|
133
|
+
'ILS',
|
|
134
|
+
'INR',
|
|
135
|
+
'IQD',
|
|
136
|
+
'JMD',
|
|
137
|
+
'JOD',
|
|
138
|
+
'JPY',
|
|
139
|
+
'KES',
|
|
140
|
+
'KGS',
|
|
141
|
+
'KHR',
|
|
142
|
+
'KMF',
|
|
143
|
+
'KRW',
|
|
144
|
+
'KWD',
|
|
145
|
+
'KYD',
|
|
146
|
+
'KZT',
|
|
147
|
+
'LAK',
|
|
148
|
+
'LBP',
|
|
149
|
+
'LKR',
|
|
150
|
+
'LRD',
|
|
151
|
+
'LSL',
|
|
152
|
+
'LYD',
|
|
153
|
+
'MAD',
|
|
154
|
+
'MDL',
|
|
155
|
+
'MGA',
|
|
156
|
+
'MKD',
|
|
157
|
+
'MMK',
|
|
158
|
+
'MNT',
|
|
159
|
+
'MOP',
|
|
160
|
+
'MRU',
|
|
161
|
+
'MUR',
|
|
162
|
+
'MVR',
|
|
163
|
+
'MWK',
|
|
164
|
+
'MXN',
|
|
165
|
+
'MYR',
|
|
166
|
+
'MZN',
|
|
167
|
+
'NAD',
|
|
168
|
+
'NGN',
|
|
169
|
+
'NIO',
|
|
170
|
+
'NOK',
|
|
171
|
+
'NPR',
|
|
172
|
+
'NZD',
|
|
173
|
+
'OMR',
|
|
174
|
+
'PAB',
|
|
175
|
+
'PEN',
|
|
176
|
+
'PGK',
|
|
177
|
+
'PHP',
|
|
178
|
+
'PKR',
|
|
179
|
+
'PLN',
|
|
180
|
+
'PYG',
|
|
181
|
+
'QAR',
|
|
182
|
+
'RON',
|
|
183
|
+
'RSD',
|
|
184
|
+
'RUB',
|
|
185
|
+
'RWF',
|
|
186
|
+
'SAR',
|
|
187
|
+
'SBD',
|
|
188
|
+
'SCR',
|
|
189
|
+
'SEK',
|
|
190
|
+
'SGD',
|
|
191
|
+
'SHP',
|
|
192
|
+
'SLE',
|
|
193
|
+
'SLL',
|
|
194
|
+
'SOS',
|
|
195
|
+
'SRD',
|
|
196
|
+
'SSP',
|
|
197
|
+
'STN',
|
|
198
|
+
'SVC',
|
|
199
|
+
'SZL',
|
|
200
|
+
'THB',
|
|
201
|
+
'TND',
|
|
202
|
+
'TOP',
|
|
203
|
+
'TRY',
|
|
204
|
+
'TTD',
|
|
205
|
+
'TWD',
|
|
206
|
+
'TZS',
|
|
207
|
+
'UAH',
|
|
208
|
+
'UGX',
|
|
209
|
+
'USD',
|
|
210
|
+
'UYU',
|
|
211
|
+
'UZS',
|
|
212
|
+
'VES',
|
|
213
|
+
'VND',
|
|
214
|
+
'VUV',
|
|
215
|
+
'WST',
|
|
216
|
+
'XAF',
|
|
217
|
+
'XCD',
|
|
218
|
+
'XOF',
|
|
219
|
+
'XPF',
|
|
220
|
+
'YER',
|
|
221
|
+
'ZAR',
|
|
222
|
+
'ZMW',
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
discount: {
|
|
226
|
+
type: 'number',
|
|
227
|
+
description: 'Discount applied to the price, represented as a percentage (0 to 100).',
|
|
228
|
+
},
|
|
229
|
+
price: {
|
|
230
|
+
type: 'integer',
|
|
231
|
+
description:
|
|
232
|
+
'The payment amount, in the smallest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.\n\nIf [`pay_what_you_want`](Self::pay_what_you_want) is set to `true`, this field represents\nthe **minimum** amount the customer must pay.',
|
|
233
|
+
},
|
|
234
|
+
purchasing_power_parity: {
|
|
235
|
+
type: 'boolean',
|
|
236
|
+
description:
|
|
237
|
+
'Indicates if purchasing power parity adjustments are applied to the price.\nPurchasing power parity feature is not available as of now.',
|
|
238
|
+
},
|
|
239
|
+
type: {
|
|
240
|
+
type: 'string',
|
|
241
|
+
enum: ['one_time_price'],
|
|
242
|
+
},
|
|
243
|
+
pay_what_you_want: {
|
|
244
|
+
type: 'boolean',
|
|
245
|
+
description:
|
|
246
|
+
'Indicates whether the customer can pay any amount they choose.\nIf set to `true`, the [`price`](Self::price) field is the minimum amount.',
|
|
247
|
+
},
|
|
248
|
+
suggested_price: {
|
|
249
|
+
type: 'integer',
|
|
250
|
+
description:
|
|
251
|
+
'A suggested price for the user to pay. This value is only considered if\n[`pay_what_you_want`](Self::pay_what_you_want) is `true`. Otherwise, it is ignored.',
|
|
252
|
+
},
|
|
253
|
+
tax_inclusive: {
|
|
254
|
+
type: 'boolean',
|
|
255
|
+
description: 'Indicates if the price is tax inclusive.',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
required: ['currency', 'discount', 'price', 'purchasing_power_parity', 'type'],
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
type: 'object',
|
|
262
|
+
title: 'Recurring Price',
|
|
263
|
+
properties: {
|
|
264
|
+
currency: {
|
|
265
|
+
type: 'string',
|
|
266
|
+
enum: [
|
|
267
|
+
'AED',
|
|
268
|
+
'ALL',
|
|
269
|
+
'AMD',
|
|
270
|
+
'ANG',
|
|
271
|
+
'AOA',
|
|
272
|
+
'ARS',
|
|
273
|
+
'AUD',
|
|
274
|
+
'AWG',
|
|
275
|
+
'AZN',
|
|
276
|
+
'BAM',
|
|
277
|
+
'BBD',
|
|
278
|
+
'BDT',
|
|
279
|
+
'BGN',
|
|
280
|
+
'BHD',
|
|
281
|
+
'BIF',
|
|
282
|
+
'BMD',
|
|
283
|
+
'BND',
|
|
284
|
+
'BOB',
|
|
285
|
+
'BRL',
|
|
286
|
+
'BSD',
|
|
287
|
+
'BWP',
|
|
288
|
+
'BYN',
|
|
289
|
+
'BZD',
|
|
290
|
+
'CAD',
|
|
291
|
+
'CHF',
|
|
292
|
+
'CLP',
|
|
293
|
+
'CNY',
|
|
294
|
+
'COP',
|
|
295
|
+
'CRC',
|
|
296
|
+
'CUP',
|
|
297
|
+
'CVE',
|
|
298
|
+
'CZK',
|
|
299
|
+
'DJF',
|
|
300
|
+
'DKK',
|
|
301
|
+
'DOP',
|
|
302
|
+
'DZD',
|
|
303
|
+
'EGP',
|
|
304
|
+
'ETB',
|
|
305
|
+
'EUR',
|
|
306
|
+
'FJD',
|
|
307
|
+
'FKP',
|
|
308
|
+
'GBP',
|
|
309
|
+
'GEL',
|
|
310
|
+
'GHS',
|
|
311
|
+
'GIP',
|
|
312
|
+
'GMD',
|
|
313
|
+
'GNF',
|
|
314
|
+
'GTQ',
|
|
315
|
+
'GYD',
|
|
316
|
+
'HKD',
|
|
317
|
+
'HNL',
|
|
318
|
+
'HRK',
|
|
319
|
+
'HTG',
|
|
320
|
+
'HUF',
|
|
321
|
+
'IDR',
|
|
322
|
+
'ILS',
|
|
323
|
+
'INR',
|
|
324
|
+
'IQD',
|
|
325
|
+
'JMD',
|
|
326
|
+
'JOD',
|
|
327
|
+
'JPY',
|
|
328
|
+
'KES',
|
|
329
|
+
'KGS',
|
|
330
|
+
'KHR',
|
|
331
|
+
'KMF',
|
|
332
|
+
'KRW',
|
|
333
|
+
'KWD',
|
|
334
|
+
'KYD',
|
|
335
|
+
'KZT',
|
|
336
|
+
'LAK',
|
|
337
|
+
'LBP',
|
|
338
|
+
'LKR',
|
|
339
|
+
'LRD',
|
|
340
|
+
'LSL',
|
|
341
|
+
'LYD',
|
|
342
|
+
'MAD',
|
|
343
|
+
'MDL',
|
|
344
|
+
'MGA',
|
|
345
|
+
'MKD',
|
|
346
|
+
'MMK',
|
|
347
|
+
'MNT',
|
|
348
|
+
'MOP',
|
|
349
|
+
'MRU',
|
|
350
|
+
'MUR',
|
|
351
|
+
'MVR',
|
|
352
|
+
'MWK',
|
|
353
|
+
'MXN',
|
|
354
|
+
'MYR',
|
|
355
|
+
'MZN',
|
|
356
|
+
'NAD',
|
|
357
|
+
'NGN',
|
|
358
|
+
'NIO',
|
|
359
|
+
'NOK',
|
|
360
|
+
'NPR',
|
|
361
|
+
'NZD',
|
|
362
|
+
'OMR',
|
|
363
|
+
'PAB',
|
|
364
|
+
'PEN',
|
|
365
|
+
'PGK',
|
|
366
|
+
'PHP',
|
|
367
|
+
'PKR',
|
|
368
|
+
'PLN',
|
|
369
|
+
'PYG',
|
|
370
|
+
'QAR',
|
|
371
|
+
'RON',
|
|
372
|
+
'RSD',
|
|
373
|
+
'RUB',
|
|
374
|
+
'RWF',
|
|
375
|
+
'SAR',
|
|
376
|
+
'SBD',
|
|
377
|
+
'SCR',
|
|
378
|
+
'SEK',
|
|
379
|
+
'SGD',
|
|
380
|
+
'SHP',
|
|
381
|
+
'SLE',
|
|
382
|
+
'SLL',
|
|
383
|
+
'SOS',
|
|
384
|
+
'SRD',
|
|
385
|
+
'SSP',
|
|
386
|
+
'STN',
|
|
387
|
+
'SVC',
|
|
388
|
+
'SZL',
|
|
389
|
+
'THB',
|
|
390
|
+
'TND',
|
|
391
|
+
'TOP',
|
|
392
|
+
'TRY',
|
|
393
|
+
'TTD',
|
|
394
|
+
'TWD',
|
|
395
|
+
'TZS',
|
|
396
|
+
'UAH',
|
|
397
|
+
'UGX',
|
|
398
|
+
'USD',
|
|
399
|
+
'UYU',
|
|
400
|
+
'UZS',
|
|
401
|
+
'VES',
|
|
402
|
+
'VND',
|
|
403
|
+
'VUV',
|
|
404
|
+
'WST',
|
|
405
|
+
'XAF',
|
|
406
|
+
'XCD',
|
|
407
|
+
'XOF',
|
|
408
|
+
'XPF',
|
|
409
|
+
'YER',
|
|
410
|
+
'ZAR',
|
|
411
|
+
'ZMW',
|
|
412
|
+
],
|
|
413
|
+
},
|
|
414
|
+
discount: {
|
|
415
|
+
type: 'number',
|
|
416
|
+
description: 'Discount applied to the price, represented as a percentage (0 to 100).',
|
|
417
|
+
},
|
|
418
|
+
payment_frequency_count: {
|
|
419
|
+
type: 'integer',
|
|
420
|
+
description:
|
|
421
|
+
'Number of units for the payment frequency.\nFor example, a value of `1` with a `payment_frequency_interval` of `month` represents monthly payments.',
|
|
422
|
+
},
|
|
423
|
+
payment_frequency_interval: {
|
|
424
|
+
$ref: '#/properties/license_key_duration/interval',
|
|
425
|
+
},
|
|
426
|
+
price: {
|
|
427
|
+
type: 'integer',
|
|
428
|
+
description:
|
|
429
|
+
'The payment amount. Represented in the lowest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.',
|
|
430
|
+
},
|
|
431
|
+
purchasing_power_parity: {
|
|
432
|
+
type: 'boolean',
|
|
433
|
+
description:
|
|
434
|
+
'Indicates if purchasing power parity adjustments are applied to the price.\nPurchasing power parity feature is not available as of now',
|
|
435
|
+
},
|
|
436
|
+
subscription_period_count: {
|
|
437
|
+
type: 'integer',
|
|
438
|
+
description:
|
|
439
|
+
'Number of units for the subscription period.\nFor example, a value of `12` with a `subscription_period_interval` of `month` represents a one-year subscription.',
|
|
440
|
+
},
|
|
441
|
+
subscription_period_interval: {
|
|
442
|
+
$ref: '#/properties/license_key_duration/interval',
|
|
443
|
+
},
|
|
444
|
+
type: {
|
|
445
|
+
type: 'string',
|
|
446
|
+
enum: ['recurring_price'],
|
|
447
|
+
},
|
|
448
|
+
tax_inclusive: {
|
|
449
|
+
type: 'boolean',
|
|
450
|
+
description: 'Indicates if the price is tax inclusive',
|
|
451
|
+
},
|
|
452
|
+
trial_period_days: {
|
|
453
|
+
type: 'integer',
|
|
454
|
+
description: 'Number of days for the trial period. A value of `0` indicates no trial period.',
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
required: [
|
|
458
|
+
'currency',
|
|
459
|
+
'discount',
|
|
460
|
+
'payment_frequency_count',
|
|
461
|
+
'payment_frequency_interval',
|
|
462
|
+
'price',
|
|
463
|
+
'purchasing_power_parity',
|
|
464
|
+
'subscription_period_count',
|
|
465
|
+
'subscription_period_interval',
|
|
466
|
+
'type',
|
|
467
|
+
],
|
|
468
|
+
},
|
|
469
|
+
],
|
|
470
|
+
},
|
|
471
|
+
tax_category: {
|
|
472
|
+
type: 'string',
|
|
473
|
+
description:
|
|
474
|
+
'Represents the different categories of taxation applicable to various products and services.',
|
|
475
|
+
enum: ['digital_products', 'saas', 'e_book', 'edtech'],
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
482
|
+
const { id, ...body } = args;
|
|
483
|
+
return client.products.update(id, body);
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,41 @@
|
|
|
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: 'refunds',
|
|
9
|
+
operation: 'write',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'create_refunds',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
payment_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'The unique identifier of the payment to be refunded.',
|
|
22
|
+
},
|
|
23
|
+
amount: {
|
|
24
|
+
type: 'integer',
|
|
25
|
+
description:
|
|
26
|
+
'The amount to be refunded. Must be non-negative. Optional.\nPartial refunds are currently disabled.',
|
|
27
|
+
},
|
|
28
|
+
reason: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'The reason for the refund, if any. Maximum length is 3000 characters. Optional.',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
37
|
+
const { ...body } = args;
|
|
38
|
+
return client.refunds.create(body);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
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: 'refunds',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'list_refunds',
|
|
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: ['succeeded', 'failed', 'pending', 'review'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
50
|
+
const { ...body } = args;
|
|
51
|
+
return client.refunds.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: 'refunds',
|
|
9
|
+
operation: 'read',
|
|
10
|
+
tags: [],
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool: Tool = {
|
|
14
|
+
name: 'retrieve_refunds',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
refund_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
27
|
+
const { refund_id } = args;
|
|
28
|
+
return client.refunds.retrieve(refund_id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default { metadata, tool, handler };
|
|
@@ -0,0 +1,36 @@
|
|
|
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: 'charge_subscriptions',
|
|
15
|
+
description: '',
|
|
16
|
+
inputSchema: {
|
|
17
|
+
type: 'object',
|
|
18
|
+
properties: {
|
|
19
|
+
subscription_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
product_price: {
|
|
23
|
+
type: 'integer',
|
|
24
|
+
description:
|
|
25
|
+
'The product price. Represented in the lowest denomination of the currency (e.g., cents for USD).\nFor example, to charge $1.00, pass `100`.',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const handler = (client: DodoPayments, args: any) => {
|
|
32
|
+
const { subscription_id, ...body } = args;
|
|
33
|
+
return client.subscriptions.charge(subscription_id, body);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export default { metadata, tool, handler };
|