@metronome/mcp 0.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1062 -76
- package/code-tool-paths.cjs +6 -0
- package/code-tool-paths.cjs.map +1 -0
- package/code-tool-paths.d.cts +2 -0
- package/code-tool-paths.d.cts.map +1 -0
- package/code-tool-types.d.mts +14 -0
- package/code-tool-types.d.mts.map +1 -0
- package/code-tool-types.d.ts +14 -0
- package/code-tool-types.d.ts.map +1 -0
- package/code-tool-types.js +4 -0
- package/code-tool-types.js.map +1 -0
- package/code-tool-types.mjs +3 -0
- package/code-tool-types.mjs.map +1 -0
- package/code-tool-worker.d.mts +5 -0
- package/code-tool-worker.d.mts.map +1 -0
- package/code-tool-worker.d.ts +5 -0
- package/code-tool-worker.d.ts.map +1 -0
- package/code-tool-worker.js +45 -0
- package/code-tool-worker.js.map +1 -0
- package/code-tool-worker.mjs +40 -0
- package/code-tool-worker.mjs.map +1 -0
- package/code-tool.d.mts +12 -0
- package/code-tool.d.mts.map +1 -0
- package/code-tool.d.ts +12 -0
- package/code-tool.d.ts.map +1 -0
- package/code-tool.js +158 -0
- package/code-tool.js.map +1 -0
- package/code-tool.mjs +122 -0
- package/code-tool.mjs.map +1 -0
- package/compat.d.mts +4 -2
- package/compat.d.mts.map +1 -1
- package/compat.d.ts +4 -2
- package/compat.d.ts.map +1 -1
- package/compat.js +3 -1
- package/compat.js.map +1 -1
- package/compat.mjs +2 -0
- package/compat.mjs.map +1 -1
- package/docs-search-tool.d.mts +44 -0
- package/docs-search-tool.d.mts.map +1 -0
- package/docs-search-tool.d.ts +44 -0
- package/docs-search-tool.d.ts.map +1 -0
- package/docs-search-tool.js +43 -0
- package/docs-search-tool.js.map +1 -0
- package/docs-search-tool.mjs +39 -0
- package/docs-search-tool.mjs.map +1 -0
- package/dynamic-tools.js +3 -3
- package/dynamic-tools.js.map +1 -1
- package/dynamic-tools.mjs +3 -3
- package/dynamic-tools.mjs.map +1 -1
- package/headers.d.mts +1 -1
- package/headers.d.mts.map +1 -1
- package/headers.d.ts +1 -1
- package/headers.d.ts.map +1 -1
- package/headers.js +1 -1
- package/headers.js.map +1 -1
- package/headers.mjs +1 -1
- package/headers.mjs.map +1 -1
- package/http.d.mts +6 -3
- package/http.d.mts.map +1 -1
- package/http.d.ts +6 -3
- package/http.d.ts.map +1 -1
- package/http.js +25 -10
- package/http.js.map +1 -1
- package/http.mjs +25 -10
- package/http.mjs.map +1 -1
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/index.mjs +7 -7
- package/index.mjs.map +1 -1
- package/options.d.mts +9 -6
- package/options.d.mts.map +1 -1
- package/options.d.ts +9 -6
- package/options.d.ts.map +1 -1
- package/options.js +126 -16
- package/options.js.map +1 -1
- package/options.mjs +125 -16
- package/options.mjs.map +1 -1
- package/package.json +171 -10
- package/server.d.mts +3 -16
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -16
- package/server.d.ts.map +1 -1
- package/server.js +87 -25
- package/server.js.map +1 -1
- package/server.mjs +86 -24
- package/server.mjs.map +1 -1
- package/src/code-tool-paths.cts +3 -0
- package/src/code-tool-types.ts +14 -0
- package/src/code-tool-worker.ts +46 -0
- package/src/code-tool.ts +147 -0
- package/src/compat.ts +4 -2
- package/src/docs-search-tool.ts +48 -0
- package/src/dynamic-tools.ts +3 -3
- package/src/headers.ts +2 -3
- package/src/http.ts +54 -26
- package/src/index.ts +7 -7
- package/src/options.ts +147 -22
- package/src/server.ts +99 -36
- package/src/stdio.ts +3 -4
- package/src/tools/index.ts +12 -0
- package/src/tools/v1/alerts/archive-v1-alerts.ts +3 -3
- package/src/tools/v1/alerts/create-v1-alerts.ts +15 -14
- package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +1 -1
- package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +1 -1
- package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +1 -1
- package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +1 -1
- package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +1 -1
- package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +2 -1
- package/src/tools/v1/contracts/amend-v1-contracts.ts +86 -143
- package/src/tools/v1/contracts/archive-v1-contracts.ts +1 -1
- package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +3 -1
- package/src/tools/v1/contracts/create-v1-contracts.ts +258 -517
- package/src/tools/v1/contracts/list-balances-v1-contracts.ts +4 -2
- package/src/tools/v1/contracts/list-v1-contracts.ts +1 -1
- package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +1 -1
- package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +1 -1
- package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +2 -1
- package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +1 -1
- package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +1 -1
- package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +2 -1
- package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +25 -22
- package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +25 -22
- package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +1 -1
- package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +1 -1
- package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +1 -1
- package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +1 -1
- package/src/tools/v1/contracts/set-usage-filter-v1-contracts.ts +2 -1
- package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +1 -1
- package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +3 -2
- package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +1 -1
- package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +1 -1
- package/src/tools/v1/custom-fields/add-key-v1-custom-fields.ts +1 -1
- package/src/tools/v1/custom-fields/delete-values-v1-custom-fields.ts +2 -1
- package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +3 -2
- package/src/tools/v1/custom-fields/remove-key-v1-custom-fields.ts +2 -1
- package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +2 -1
- package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +5 -3
- package/src/tools/v1/customers/alerts/reset-customers-v1-alerts.ts +3 -2
- package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +24 -12
- package/src/tools/v1/customers/archive-v1-customers.ts +1 -1
- package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +6 -1
- package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +1 -1
- package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +32 -33
- package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +4 -2
- package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +1 -1
- package/src/tools/v1/customers/create-v1-customers.ts +14 -2
- package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +30 -24
- package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +4 -2
- package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +1 -1
- package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +1 -1
- package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +1 -1
- package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +1 -1
- package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +2 -1
- package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +43 -0
- package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +1 -1
- package/src/tools/v1/customers/list-costs-v1-customers.ts +1 -1
- package/src/tools/v1/customers/list-v1-customers.ts +1 -1
- package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +1 -1
- package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +1 -1
- package/src/tools/v1/customers/preview-events-v1-customers.ts +2 -7
- package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +50 -0
- package/src/tools/v1/customers/retrieve-v1-customers.ts +1 -1
- package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +85 -0
- package/src/tools/v1/customers/set-ingest-aliases-v1-customers.ts +1 -1
- package/src/tools/v1/customers/set-name-v1-customers.ts +1 -1
- package/src/tools/v1/customers/update-config-v1-customers.ts +2 -1
- package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +1 -1
- package/src/tools/v1/invoices/regenerate-v1-invoices.ts +1 -1
- package/src/tools/v1/invoices/void-v1-invoices.ts +1 -1
- package/src/tools/v1/payments/attempt-v1-payments.ts +48 -0
- package/src/tools/v1/payments/cancel-v1-payments.ts +48 -0
- package/src/tools/v1/payments/list-v1-payments.ts +69 -0
- package/src/tools/v1/plans/get-details-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-charges-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-customers-v1-plans.ts +1 -1
- package/src/tools/v1/plans/list-v1-plans.ts +1 -1
- package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +1 -1
- package/src/tools/v1/services/list-v1-services.ts +1 -1
- package/src/tools/v1/usage/ingest-v1-usage.ts +2 -2
- package/src/tools/v1/usage/list-v1-usage.ts +3 -2
- package/src/tools/v1/usage/list-with-groups-v1-usage.ts +1 -1
- package/src/tools/v1/usage/search-v1-usage.ts +1 -1
- package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +84 -24
- package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +84 -24
- package/src/tools/v2/contracts/edit-v2-contracts.ts +314 -782
- package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +1 -1
- package/src/tools/v2/contracts/list-v2-contracts.ts +1 -1
- package/src/tools/v2/contracts/retrieve-v2-contracts.ts +2 -1
- package/stdio.d.mts +1 -2
- package/stdio.d.mts.map +1 -1
- package/stdio.d.ts +1 -2
- package/stdio.d.ts.map +1 -1
- package/stdio.js +2 -2
- package/stdio.js.map +1 -1
- package/stdio.mjs +3 -3
- package/stdio.mjs.map +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +12 -0
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +12 -0
- package/tools/index.mjs.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.js +3 -3
- package/tools/v1/alerts/archive-v1-alerts.js.map +1 -1
- package/tools/v1/alerts/archive-v1-alerts.mjs +3 -3
- package/tools/v1/alerts/archive-v1-alerts.mjs.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.d.mts.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.d.ts.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.js +14 -14
- package/tools/v1/alerts/create-v1-alerts.js.map +1 -1
- package/tools/v1/alerts/create-v1-alerts.mjs +14 -14
- package/tools/v1/alerts/create-v1-alerts.mjs.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.js +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.js.map +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs +1 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +1 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +1 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +1 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +1 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.js +85 -139
- package/tools/v1/contracts/amend-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs +85 -139
- package/tools/v1/contracts/amend-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.js +1 -1
- package/tools/v1/contracts/archive-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/archive-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/archive-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +2 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +2 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.js +241 -485
- package/tools/v1/contracts/create-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/create-v1-contracts.mjs +241 -485
- package/tools/v1/contracts/create-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js +3 -2
- package/tools/v1/contracts/list-balances-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-balances-v1-contracts.mjs +3 -2
- package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.js +1 -1
- package/tools/v1/contracts/list-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/list-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/list-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +1 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.js +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +1 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.js +2 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs +2 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.js +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs +1 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +1 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.js +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.js.map +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs +1 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +1 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +2 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +2 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +1 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +1 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +1 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +24 -21
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +24 -21
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +24 -21
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +24 -21
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +1 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +1 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +1 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.js +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.js +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.js.map +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs +1 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +3 -2
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +3 -2
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js.map +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs +1 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.js +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs +1 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.js +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs +1 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +3 -2
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +3 -2
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.js +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs +1 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.js +2 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +1 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +2 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js +4 -3
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +4 -3
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.js +2 -2
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs +2 -2
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +22 -11
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +1 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +22 -11
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +1 -1
- package/tools/v1/customers/archive-v1-customers.js +1 -1
- package/tools/v1/customers/archive-v1-customers.js.map +1 -1
- package/tools/v1/customers/archive-v1-customers.mjs +1 -1
- package/tools/v1/customers/archive-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +6 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +6 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +1 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.js +31 -31
- package/tools/v1/customers/commits/create-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs +31 -31
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.js +3 -2
- package/tools/v1/customers/commits/list-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs +3 -2
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +1 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/create-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/create-v1-customers.js +13 -2
- package/tools/v1/customers/create-v1-customers.js.map +1 -1
- package/tools/v1/customers/create-v1-customers.mjs +13 -2
- package/tools/v1/customers/create-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.js +29 -23
- package/tools/v1/customers/credits/create-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs +29 -23
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.js +3 -2
- package/tools/v1/customers/credits/list-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs +3 -2
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +1 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +1 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +1 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +45 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +1 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +45 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +1 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +39 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +1 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +35 -0
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +1 -0
- package/tools/v1/customers/list-billable-metrics-v1-customers.js +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +1 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.js +1 -1
- package/tools/v1/customers/list-costs-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs +1 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/list-v1-customers.js +1 -1
- package/tools/v1/customers/list-v1-customers.js.map +1 -1
- package/tools/v1/customers/list-v1-customers.mjs +1 -1
- package/tools/v1/customers/list-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +1 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +1 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.js +2 -6
- package/tools/v1/customers/preview-events-v1-customers.js.map +1 -1
- package/tools/v1/customers/preview-events-v1-customers.mjs +2 -6
- package/tools/v1/customers/preview-events-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +45 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +1 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +45 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +1 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +43 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +1 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +39 -0
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +1 -0
- package/tools/v1/customers/retrieve-v1-customers.js +1 -1
- package/tools/v1/customers/retrieve-v1-customers.js.map +1 -1
- package/tools/v1/customers/retrieve-v1-customers.mjs +1 -1
- package/tools/v1/customers/retrieve-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +45 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +1 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +45 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +1 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.js +77 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +1 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +73 -0
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +1 -0
- package/tools/v1/customers/set-ingest-aliases-v1-customers.js +1 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs +1 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.js +1 -1
- package/tools/v1/customers/set-name-v1-customers.js.map +1 -1
- package/tools/v1/customers/set-name-v1-customers.mjs +1 -1
- package/tools/v1/customers/set-name-v1-customers.mjs.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.d.mts.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.d.ts.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.js +1 -1
- package/tools/v1/customers/update-config-v1-customers.js.map +1 -1
- package/tools/v1/customers/update-config-v1-customers.mjs +1 -1
- package/tools/v1/customers/update-config-v1-customers.mjs.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +1 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.js +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.js.map +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.mjs +1 -1
- package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.js +1 -1
- package/tools/v1/invoices/void-v1-invoices.js.map +1 -1
- package/tools/v1/invoices/void-v1-invoices.mjs +1 -1
- package/tools/v1/invoices/void-v1-invoices.mjs.map +1 -1
- package/tools/v1/payments/attempt-v1-payments.d.mts +45 -0
- package/tools/v1/payments/attempt-v1-payments.d.mts.map +1 -0
- package/tools/v1/payments/attempt-v1-payments.d.ts +45 -0
- package/tools/v1/payments/attempt-v1-payments.d.ts.map +1 -0
- package/tools/v1/payments/attempt-v1-payments.js +43 -0
- package/tools/v1/payments/attempt-v1-payments.js.map +1 -0
- package/tools/v1/payments/attempt-v1-payments.mjs +39 -0
- package/tools/v1/payments/attempt-v1-payments.mjs.map +1 -0
- package/tools/v1/payments/cancel-v1-payments.d.mts +45 -0
- package/tools/v1/payments/cancel-v1-payments.d.mts.map +1 -0
- package/tools/v1/payments/cancel-v1-payments.d.ts +45 -0
- package/tools/v1/payments/cancel-v1-payments.d.ts.map +1 -0
- package/tools/v1/payments/cancel-v1-payments.js +43 -0
- package/tools/v1/payments/cancel-v1-payments.js.map +1 -0
- package/tools/v1/payments/cancel-v1-payments.mjs +39 -0
- package/tools/v1/payments/cancel-v1-payments.mjs.map +1 -0
- package/tools/v1/payments/list-v1-payments.d.mts +45 -0
- package/tools/v1/payments/list-v1-payments.d.mts.map +1 -0
- package/tools/v1/payments/list-v1-payments.d.ts +45 -0
- package/tools/v1/payments/list-v1-payments.d.ts.map +1 -0
- package/tools/v1/payments/list-v1-payments.js +64 -0
- package/tools/v1/payments/list-v1-payments.js.map +1 -0
- package/tools/v1/payments/list-v1-payments.mjs +60 -0
- package/tools/v1/payments/list-v1-payments.mjs.map +1 -0
- package/tools/v1/plans/get-details-v1-plans.js +1 -1
- package/tools/v1/plans/get-details-v1-plans.js.map +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs +1 -1
- package/tools/v1/plans/get-details-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.js +1 -1
- package/tools/v1/plans/list-charges-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.js +1 -1
- package/tools/v1/plans/list-customers-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs.map +1 -1
- package/tools/v1/plans/list-v1-plans.js +1 -1
- package/tools/v1/plans/list-v1-plans.js.map +1 -1
- package/tools/v1/plans/list-v1-plans.mjs +1 -1
- package/tools/v1/plans/list-v1-plans.mjs.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.js +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.js.map +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs +1 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +1 -1
- package/tools/v1/services/list-v1-services.js +1 -1
- package/tools/v1/services/list-v1-services.js.map +1 -1
- package/tools/v1/services/list-v1-services.mjs +1 -1
- package/tools/v1/services/list-v1-services.mjs.map +1 -1
- package/tools/v1/usage/ingest-v1-usage.js +2 -2
- package/tools/v1/usage/ingest-v1-usage.js.map +1 -1
- package/tools/v1/usage/ingest-v1-usage.mjs +2 -2
- package/tools/v1/usage/ingest-v1-usage.mjs.map +1 -1
- package/tools/v1/usage/list-v1-usage.d.mts.map +1 -1
- package/tools/v1/usage/list-v1-usage.d.ts.map +1 -1
- package/tools/v1/usage/list-v1-usage.js +3 -2
- package/tools/v1/usage/list-v1-usage.js.map +1 -1
- package/tools/v1/usage/list-v1-usage.mjs +3 -2
- package/tools/v1/usage/list-v1-usage.mjs.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.js +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.js.map +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.mjs +1 -1
- package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +1 -1
- package/tools/v1/usage/search-v1-usage.js +1 -1
- package/tools/v1/usage/search-v1-usage.js.map +1 -1
- package/tools/v1/usage/search-v1-usage.mjs +1 -1
- package/tools/v1/usage/search-v1-usage.mjs.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.js +82 -23
- package/tools/v2/contracts/edit-commit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs +82 -23
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.js +82 -23
- package/tools/v2/contracts/edit-credit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs +82 -23
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.js +303 -741
- package/tools/v2/contracts/edit-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/edit-v2-contracts.mjs +303 -741
- package/tools/v2/contracts/edit-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.js +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +1 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.js +1 -1
- package/tools/v2/contracts/list-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/list-v2-contracts.mjs +1 -1
- package/tools/v2/contracts/list-v2-contracts.mjs.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.js +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.js.map +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.mjs +1 -1
- package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +1 -1
|
@@ -16,7 +16,8 @@ export const metadata: Metadata = {
|
|
|
16
16
|
|
|
17
17
|
export const tool: Tool = {
|
|
18
18
|
name: 'edit_v2_contracts',
|
|
19
|
-
description:
|
|
19
|
+
description:
|
|
20
|
+
'The ability to edit a contract helps you react quickly to the needs of your customers and your business.\n\n### Use this endpoint to:\n- Encode mid-term commitment and discount changes\n- Fix configuration mistakes and easily roll back packaging changes\n\n### Key response fields:\n- The `id` of the edit\n- Complete edit details. For example, if you edited the contract to add new overrides and credits, you will receive the IDs of those overrides and credits in the response.\n\n### Usage guidelines:\n- When you edit a contract, any draft invoices update immediately to reflect that edit. Finalized invoices remain unchanged - you must void and regenerate them in the UI or API to reflect the edit.\n- Contract editing must be enabled to use this endpoint. Reach out to your Metronome representative to learn more.\n',
|
|
20
21
|
inputSchema: {
|
|
21
22
|
type: 'object',
|
|
22
23
|
properties: {
|
|
@@ -28,6 +29,52 @@ export const tool: Tool = {
|
|
|
28
29
|
type: 'string',
|
|
29
30
|
description: 'ID of the customer whose contract is being edited',
|
|
30
31
|
},
|
|
32
|
+
add_billing_provider_configuration_update: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
description:
|
|
35
|
+
'Update the billing provider configuration on the contract. Currently only supports adding a billing provider configuration to a contract that does not already have one.',
|
|
36
|
+
properties: {
|
|
37
|
+
billing_provider_configuration: {
|
|
38
|
+
type: 'object',
|
|
39
|
+
properties: {
|
|
40
|
+
billing_provider: {
|
|
41
|
+
type: 'string',
|
|
42
|
+
enum: [
|
|
43
|
+
'aws_marketplace',
|
|
44
|
+
'stripe',
|
|
45
|
+
'netsuite',
|
|
46
|
+
'custom',
|
|
47
|
+
'azure_marketplace',
|
|
48
|
+
'quickbooks_online',
|
|
49
|
+
'workday',
|
|
50
|
+
'gcp_marketplace',
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
billing_provider_configuration_id: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
delivery_method: {
|
|
57
|
+
type: 'string',
|
|
58
|
+
enum: ['direct_to_billing_provider', 'aws_sqs', 'tackle', 'aws_sns'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
schedule: {
|
|
63
|
+
type: 'object',
|
|
64
|
+
description:
|
|
65
|
+
'Indicates when the billing provider will be active on the contract. Any charges accrued during the schedule will be billed to the indicated billing provider.',
|
|
66
|
+
properties: {
|
|
67
|
+
effective_at: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
description: 'When the billing provider update will take effect.',
|
|
70
|
+
enum: ['START_OF_CURRENT_PERIOD'],
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
required: ['effective_at'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
required: ['billing_provider_configuration', 'schedule'],
|
|
77
|
+
},
|
|
31
78
|
add_commits: {
|
|
32
79
|
type: 'array',
|
|
33
80
|
items: {
|
|
@@ -95,6 +142,7 @@ export const tool: Tool = {
|
|
|
95
142
|
},
|
|
96
143
|
custom_fields: {
|
|
97
144
|
type: 'object',
|
|
145
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
98
146
|
additionalProperties: true,
|
|
99
147
|
},
|
|
100
148
|
description: {
|
|
@@ -102,51 +150,7 @@ export const tool: Tool = {
|
|
|
102
150
|
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
103
151
|
},
|
|
104
152
|
hierarchy_configuration: {
|
|
105
|
-
|
|
106
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
107
|
-
properties: {
|
|
108
|
-
child_access: {
|
|
109
|
-
anyOf: [
|
|
110
|
-
{
|
|
111
|
-
type: 'object',
|
|
112
|
-
properties: {
|
|
113
|
-
type: {
|
|
114
|
-
type: 'string',
|
|
115
|
-
enum: ['ALL'],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
required: ['type'],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: 'object',
|
|
122
|
-
properties: {
|
|
123
|
-
type: {
|
|
124
|
-
type: 'string',
|
|
125
|
-
enum: ['NONE'],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
required: ['type'],
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
type: 'object',
|
|
132
|
-
properties: {
|
|
133
|
-
contract_ids: {
|
|
134
|
-
type: 'array',
|
|
135
|
-
items: {
|
|
136
|
-
type: 'string',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
type: {
|
|
140
|
-
type: 'string',
|
|
141
|
-
enum: ['CONTRACT_IDS'],
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
required: ['contract_ids', 'type'],
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
required: ['child_access'],
|
|
153
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
150
154
|
},
|
|
151
155
|
invoice_schedule: {
|
|
152
156
|
type: 'object',
|
|
@@ -297,7 +301,7 @@ export const tool: Tool = {
|
|
|
297
301
|
type: 'string',
|
|
298
302
|
description:
|
|
299
303
|
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
300
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
304
|
+
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
301
305
|
},
|
|
302
306
|
},
|
|
303
307
|
required: ['payment_gate_type'],
|
|
@@ -320,30 +324,7 @@ export const tool: Tool = {
|
|
|
320
324
|
description:
|
|
321
325
|
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
322
326
|
items: {
|
|
323
|
-
|
|
324
|
-
properties: {
|
|
325
|
-
presentation_group_values: {
|
|
326
|
-
type: 'object',
|
|
327
|
-
additionalProperties: true,
|
|
328
|
-
},
|
|
329
|
-
pricing_group_values: {
|
|
330
|
-
type: 'object',
|
|
331
|
-
additionalProperties: true,
|
|
332
|
-
},
|
|
333
|
-
product_id: {
|
|
334
|
-
type: 'string',
|
|
335
|
-
description:
|
|
336
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
337
|
-
},
|
|
338
|
-
product_tags: {
|
|
339
|
-
type: 'array',
|
|
340
|
-
description:
|
|
341
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
342
|
-
items: {
|
|
343
|
-
type: 'string',
|
|
344
|
-
},
|
|
345
|
-
},
|
|
346
|
-
},
|
|
327
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
347
328
|
},
|
|
348
329
|
},
|
|
349
330
|
temporary_id: {
|
|
@@ -413,6 +394,7 @@ export const tool: Tool = {
|
|
|
413
394
|
},
|
|
414
395
|
custom_fields: {
|
|
415
396
|
type: 'object',
|
|
397
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
416
398
|
additionalProperties: true,
|
|
417
399
|
},
|
|
418
400
|
description: {
|
|
@@ -420,51 +402,7 @@ export const tool: Tool = {
|
|
|
420
402
|
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
421
403
|
},
|
|
422
404
|
hierarchy_configuration: {
|
|
423
|
-
|
|
424
|
-
description: 'Optional configuration for credit hierarchy access control',
|
|
425
|
-
properties: {
|
|
426
|
-
child_access: {
|
|
427
|
-
anyOf: [
|
|
428
|
-
{
|
|
429
|
-
type: 'object',
|
|
430
|
-
properties: {
|
|
431
|
-
type: {
|
|
432
|
-
type: 'string',
|
|
433
|
-
enum: ['ALL'],
|
|
434
|
-
},
|
|
435
|
-
},
|
|
436
|
-
required: ['type'],
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
type: 'object',
|
|
440
|
-
properties: {
|
|
441
|
-
type: {
|
|
442
|
-
type: 'string',
|
|
443
|
-
enum: ['NONE'],
|
|
444
|
-
},
|
|
445
|
-
},
|
|
446
|
-
required: ['type'],
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
type: 'object',
|
|
450
|
-
properties: {
|
|
451
|
-
contract_ids: {
|
|
452
|
-
type: 'array',
|
|
453
|
-
items: {
|
|
454
|
-
type: 'string',
|
|
455
|
-
},
|
|
456
|
-
},
|
|
457
|
-
type: {
|
|
458
|
-
type: 'string',
|
|
459
|
-
enum: ['CONTRACT_IDS'],
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
required: ['contract_ids', 'type'],
|
|
463
|
-
},
|
|
464
|
-
],
|
|
465
|
-
},
|
|
466
|
-
},
|
|
467
|
-
required: ['child_access'],
|
|
405
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
468
406
|
},
|
|
469
407
|
name: {
|
|
470
408
|
type: 'string',
|
|
@@ -488,30 +426,7 @@ export const tool: Tool = {
|
|
|
488
426
|
description:
|
|
489
427
|
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
490
428
|
items: {
|
|
491
|
-
|
|
492
|
-
properties: {
|
|
493
|
-
presentation_group_values: {
|
|
494
|
-
type: 'object',
|
|
495
|
-
additionalProperties: true,
|
|
496
|
-
},
|
|
497
|
-
pricing_group_values: {
|
|
498
|
-
type: 'object',
|
|
499
|
-
additionalProperties: true,
|
|
500
|
-
},
|
|
501
|
-
product_id: {
|
|
502
|
-
type: 'string',
|
|
503
|
-
description:
|
|
504
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
505
|
-
},
|
|
506
|
-
product_tags: {
|
|
507
|
-
type: 'array',
|
|
508
|
-
description:
|
|
509
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
510
|
-
items: {
|
|
511
|
-
type: 'string',
|
|
512
|
-
},
|
|
513
|
-
},
|
|
514
|
-
},
|
|
429
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
515
430
|
},
|
|
516
431
|
},
|
|
517
432
|
},
|
|
@@ -614,6 +529,7 @@ export const tool: Tool = {
|
|
|
614
529
|
},
|
|
615
530
|
custom_fields: {
|
|
616
531
|
type: 'object',
|
|
532
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
617
533
|
additionalProperties: true,
|
|
618
534
|
},
|
|
619
535
|
name: {
|
|
@@ -807,148 +723,7 @@ export const tool: Tool = {
|
|
|
807
723
|
},
|
|
808
724
|
},
|
|
809
725
|
add_prepaid_balance_threshold_configuration: {
|
|
810
|
-
|
|
811
|
-
properties: {
|
|
812
|
-
commit: {
|
|
813
|
-
type: 'object',
|
|
814
|
-
properties: {
|
|
815
|
-
product_id: {
|
|
816
|
-
type: 'string',
|
|
817
|
-
description:
|
|
818
|
-
'The commit product that will be used to generate the line item for commit payment.',
|
|
819
|
-
},
|
|
820
|
-
applicable_product_ids: {
|
|
821
|
-
type: 'array',
|
|
822
|
-
description:
|
|
823
|
-
'Which products the threshold commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
824
|
-
items: {
|
|
825
|
-
type: 'string',
|
|
826
|
-
},
|
|
827
|
-
},
|
|
828
|
-
applicable_product_tags: {
|
|
829
|
-
type: 'array',
|
|
830
|
-
description:
|
|
831
|
-
'Which tags the threshold commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
832
|
-
items: {
|
|
833
|
-
type: 'string',
|
|
834
|
-
},
|
|
835
|
-
},
|
|
836
|
-
description: {
|
|
837
|
-
type: 'string',
|
|
838
|
-
},
|
|
839
|
-
name: {
|
|
840
|
-
type: 'string',
|
|
841
|
-
description:
|
|
842
|
-
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
843
|
-
},
|
|
844
|
-
specifiers: {
|
|
845
|
-
type: 'array',
|
|
846
|
-
description:
|
|
847
|
-
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
848
|
-
items: {
|
|
849
|
-
type: 'object',
|
|
850
|
-
properties: {
|
|
851
|
-
presentation_group_values: {
|
|
852
|
-
type: 'object',
|
|
853
|
-
additionalProperties: true,
|
|
854
|
-
},
|
|
855
|
-
pricing_group_values: {
|
|
856
|
-
type: 'object',
|
|
857
|
-
additionalProperties: true,
|
|
858
|
-
},
|
|
859
|
-
product_id: {
|
|
860
|
-
type: 'string',
|
|
861
|
-
description:
|
|
862
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
863
|
-
},
|
|
864
|
-
product_tags: {
|
|
865
|
-
type: 'array',
|
|
866
|
-
description:
|
|
867
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
868
|
-
items: {
|
|
869
|
-
type: 'string',
|
|
870
|
-
},
|
|
871
|
-
},
|
|
872
|
-
},
|
|
873
|
-
},
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
required: ['product_id'],
|
|
877
|
-
},
|
|
878
|
-
is_enabled: {
|
|
879
|
-
type: 'boolean',
|
|
880
|
-
description:
|
|
881
|
-
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
882
|
-
},
|
|
883
|
-
payment_gate_config: {
|
|
884
|
-
type: 'object',
|
|
885
|
-
properties: {
|
|
886
|
-
payment_gate_type: {
|
|
887
|
-
type: 'string',
|
|
888
|
-
description:
|
|
889
|
-
'Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.',
|
|
890
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
891
|
-
},
|
|
892
|
-
precalculated_tax_config: {
|
|
893
|
-
type: 'object',
|
|
894
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
895
|
-
properties: {
|
|
896
|
-
tax_amount: {
|
|
897
|
-
type: 'number',
|
|
898
|
-
description:
|
|
899
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
900
|
-
},
|
|
901
|
-
tax_name: {
|
|
902
|
-
type: 'string',
|
|
903
|
-
description:
|
|
904
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
905
|
-
},
|
|
906
|
-
},
|
|
907
|
-
required: ['tax_amount'],
|
|
908
|
-
},
|
|
909
|
-
stripe_config: {
|
|
910
|
-
type: 'object',
|
|
911
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
912
|
-
properties: {
|
|
913
|
-
payment_type: {
|
|
914
|
-
type: 'string',
|
|
915
|
-
description: 'If left blank, will default to INVOICE',
|
|
916
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
917
|
-
},
|
|
918
|
-
invoice_metadata: {
|
|
919
|
-
type: 'object',
|
|
920
|
-
description:
|
|
921
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
922
|
-
additionalProperties: true,
|
|
923
|
-
},
|
|
924
|
-
},
|
|
925
|
-
required: ['payment_type'],
|
|
926
|
-
},
|
|
927
|
-
tax_type: {
|
|
928
|
-
type: 'string',
|
|
929
|
-
description:
|
|
930
|
-
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
931
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
932
|
-
},
|
|
933
|
-
},
|
|
934
|
-
required: ['payment_gate_type'],
|
|
935
|
-
},
|
|
936
|
-
recharge_to_amount: {
|
|
937
|
-
type: 'number',
|
|
938
|
-
description: 'Specify the amount the balance should be recharged to.',
|
|
939
|
-
},
|
|
940
|
-
threshold_amount: {
|
|
941
|
-
type: 'number',
|
|
942
|
-
description:
|
|
943
|
-
"Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
944
|
-
},
|
|
945
|
-
custom_credit_type_id: {
|
|
946
|
-
type: 'string',
|
|
947
|
-
description:
|
|
948
|
-
'If provided, the threshold, recharge-to amount, and the resulting threshold commit amount will be in terms of this credit type instead of the fiat currency.',
|
|
949
|
-
},
|
|
950
|
-
},
|
|
951
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'recharge_to_amount', 'threshold_amount'],
|
|
726
|
+
$ref: '#/$defs/prepaid_balance_threshold_configuration_v2',
|
|
952
727
|
},
|
|
953
728
|
add_professional_services: {
|
|
954
729
|
type: 'array',
|
|
@@ -975,6 +750,7 @@ export const tool: Tool = {
|
|
|
975
750
|
},
|
|
976
751
|
custom_fields: {
|
|
977
752
|
type: 'object',
|
|
753
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
978
754
|
additionalProperties: true,
|
|
979
755
|
},
|
|
980
756
|
description: {
|
|
@@ -1062,51 +838,7 @@ export const tool: Tool = {
|
|
|
1062
838
|
format: 'date-time',
|
|
1063
839
|
},
|
|
1064
840
|
hierarchy_configuration: {
|
|
1065
|
-
|
|
1066
|
-
description: 'Optional configuration for recurring credit hierarchy access control',
|
|
1067
|
-
properties: {
|
|
1068
|
-
child_access: {
|
|
1069
|
-
anyOf: [
|
|
1070
|
-
{
|
|
1071
|
-
type: 'object',
|
|
1072
|
-
properties: {
|
|
1073
|
-
type: {
|
|
1074
|
-
type: 'string',
|
|
1075
|
-
enum: ['ALL'],
|
|
1076
|
-
},
|
|
1077
|
-
},
|
|
1078
|
-
required: ['type'],
|
|
1079
|
-
},
|
|
1080
|
-
{
|
|
1081
|
-
type: 'object',
|
|
1082
|
-
properties: {
|
|
1083
|
-
type: {
|
|
1084
|
-
type: 'string',
|
|
1085
|
-
enum: ['NONE'],
|
|
1086
|
-
},
|
|
1087
|
-
},
|
|
1088
|
-
required: ['type'],
|
|
1089
|
-
},
|
|
1090
|
-
{
|
|
1091
|
-
type: 'object',
|
|
1092
|
-
properties: {
|
|
1093
|
-
contract_ids: {
|
|
1094
|
-
type: 'array',
|
|
1095
|
-
items: {
|
|
1096
|
-
type: 'string',
|
|
1097
|
-
},
|
|
1098
|
-
},
|
|
1099
|
-
type: {
|
|
1100
|
-
type: 'string',
|
|
1101
|
-
enum: ['CONTRACT_IDS'],
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
|
-
required: ['contract_ids', 'type'],
|
|
1105
|
-
},
|
|
1106
|
-
],
|
|
1107
|
-
},
|
|
1108
|
-
},
|
|
1109
|
-
required: ['child_access'],
|
|
841
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1110
842
|
},
|
|
1111
843
|
invoice_amount: {
|
|
1112
844
|
type: 'object',
|
|
@@ -1159,30 +891,7 @@ export const tool: Tool = {
|
|
|
1159
891
|
description:
|
|
1160
892
|
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
1161
893
|
items: {
|
|
1162
|
-
|
|
1163
|
-
properties: {
|
|
1164
|
-
presentation_group_values: {
|
|
1165
|
-
type: 'object',
|
|
1166
|
-
additionalProperties: true,
|
|
1167
|
-
},
|
|
1168
|
-
pricing_group_values: {
|
|
1169
|
-
type: 'object',
|
|
1170
|
-
additionalProperties: true,
|
|
1171
|
-
},
|
|
1172
|
-
product_id: {
|
|
1173
|
-
type: 'string',
|
|
1174
|
-
description:
|
|
1175
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
1176
|
-
},
|
|
1177
|
-
product_tags: {
|
|
1178
|
-
type: 'array',
|
|
1179
|
-
description:
|
|
1180
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
1181
|
-
items: {
|
|
1182
|
-
type: 'string',
|
|
1183
|
-
},
|
|
1184
|
-
},
|
|
1185
|
-
},
|
|
894
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
1186
895
|
},
|
|
1187
896
|
},
|
|
1188
897
|
subscription_config: {
|
|
@@ -1206,7 +915,7 @@ export const tool: Tool = {
|
|
|
1206
915
|
allocation: {
|
|
1207
916
|
type: 'string',
|
|
1208
917
|
description: 'If set to POOLED, allocation added per seat is pooled across the account.',
|
|
1209
|
-
enum: ['POOLED'],
|
|
918
|
+
enum: ['POOLED', 'INDIVIDUAL'],
|
|
1210
919
|
},
|
|
1211
920
|
},
|
|
1212
921
|
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
@@ -1294,51 +1003,7 @@ export const tool: Tool = {
|
|
|
1294
1003
|
format: 'date-time',
|
|
1295
1004
|
},
|
|
1296
1005
|
hierarchy_configuration: {
|
|
1297
|
-
|
|
1298
|
-
description: 'Optional configuration for recurring credit hierarchy access control',
|
|
1299
|
-
properties: {
|
|
1300
|
-
child_access: {
|
|
1301
|
-
anyOf: [
|
|
1302
|
-
{
|
|
1303
|
-
type: 'object',
|
|
1304
|
-
properties: {
|
|
1305
|
-
type: {
|
|
1306
|
-
type: 'string',
|
|
1307
|
-
enum: ['ALL'],
|
|
1308
|
-
},
|
|
1309
|
-
},
|
|
1310
|
-
required: ['type'],
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
type: 'object',
|
|
1314
|
-
properties: {
|
|
1315
|
-
type: {
|
|
1316
|
-
type: 'string',
|
|
1317
|
-
enum: ['NONE'],
|
|
1318
|
-
},
|
|
1319
|
-
},
|
|
1320
|
-
required: ['type'],
|
|
1321
|
-
},
|
|
1322
|
-
{
|
|
1323
|
-
type: 'object',
|
|
1324
|
-
properties: {
|
|
1325
|
-
contract_ids: {
|
|
1326
|
-
type: 'array',
|
|
1327
|
-
items: {
|
|
1328
|
-
type: 'string',
|
|
1329
|
-
},
|
|
1330
|
-
},
|
|
1331
|
-
type: {
|
|
1332
|
-
type: 'string',
|
|
1333
|
-
enum: ['CONTRACT_IDS'],
|
|
1334
|
-
},
|
|
1335
|
-
},
|
|
1336
|
-
required: ['contract_ids', 'type'],
|
|
1337
|
-
},
|
|
1338
|
-
],
|
|
1339
|
-
},
|
|
1340
|
-
},
|
|
1341
|
-
required: ['child_access'],
|
|
1006
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1342
1007
|
},
|
|
1343
1008
|
name: {
|
|
1344
1009
|
type: 'string',
|
|
@@ -1375,30 +1040,7 @@ export const tool: Tool = {
|
|
|
1375
1040
|
description:
|
|
1376
1041
|
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
1377
1042
|
items: {
|
|
1378
|
-
|
|
1379
|
-
properties: {
|
|
1380
|
-
presentation_group_values: {
|
|
1381
|
-
type: 'object',
|
|
1382
|
-
additionalProperties: true,
|
|
1383
|
-
},
|
|
1384
|
-
pricing_group_values: {
|
|
1385
|
-
type: 'object',
|
|
1386
|
-
additionalProperties: true,
|
|
1387
|
-
},
|
|
1388
|
-
product_id: {
|
|
1389
|
-
type: 'string',
|
|
1390
|
-
description:
|
|
1391
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
1392
|
-
},
|
|
1393
|
-
product_tags: {
|
|
1394
|
-
type: 'array',
|
|
1395
|
-
description:
|
|
1396
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
1397
|
-
items: {
|
|
1398
|
-
type: 'string',
|
|
1399
|
-
},
|
|
1400
|
-
},
|
|
1401
|
-
},
|
|
1043
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
1402
1044
|
},
|
|
1403
1045
|
},
|
|
1404
1046
|
subscription_config: {
|
|
@@ -1422,7 +1064,7 @@ export const tool: Tool = {
|
|
|
1422
1064
|
allocation: {
|
|
1423
1065
|
type: 'string',
|
|
1424
1066
|
description: 'If set to POOLED, allocation added per seat is pooled across the account.',
|
|
1425
|
-
enum: ['POOLED'],
|
|
1067
|
+
enum: ['POOLED', 'INDIVIDUAL'],
|
|
1426
1068
|
},
|
|
1427
1069
|
},
|
|
1428
1070
|
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
@@ -1602,6 +1244,7 @@ export const tool: Tool = {
|
|
|
1602
1244
|
},
|
|
1603
1245
|
custom_fields: {
|
|
1604
1246
|
type: 'object',
|
|
1247
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1605
1248
|
additionalProperties: true,
|
|
1606
1249
|
},
|
|
1607
1250
|
name: {
|
|
@@ -1617,92 +1260,7 @@ export const tool: Tool = {
|
|
|
1617
1260
|
},
|
|
1618
1261
|
},
|
|
1619
1262
|
add_spend_threshold_configuration: {
|
|
1620
|
-
|
|
1621
|
-
properties: {
|
|
1622
|
-
commit: {
|
|
1623
|
-
type: 'object',
|
|
1624
|
-
properties: {
|
|
1625
|
-
product_id: {
|
|
1626
|
-
type: 'string',
|
|
1627
|
-
description:
|
|
1628
|
-
'The commit product that will be used to generate the line item for commit payment.',
|
|
1629
|
-
},
|
|
1630
|
-
description: {
|
|
1631
|
-
type: 'string',
|
|
1632
|
-
},
|
|
1633
|
-
name: {
|
|
1634
|
-
type: 'string',
|
|
1635
|
-
description:
|
|
1636
|
-
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
1637
|
-
},
|
|
1638
|
-
},
|
|
1639
|
-
required: ['product_id'],
|
|
1640
|
-
},
|
|
1641
|
-
is_enabled: {
|
|
1642
|
-
type: 'boolean',
|
|
1643
|
-
description:
|
|
1644
|
-
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
1645
|
-
},
|
|
1646
|
-
payment_gate_config: {
|
|
1647
|
-
type: 'object',
|
|
1648
|
-
properties: {
|
|
1649
|
-
payment_gate_type: {
|
|
1650
|
-
type: 'string',
|
|
1651
|
-
description:
|
|
1652
|
-
'Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.',
|
|
1653
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
1654
|
-
},
|
|
1655
|
-
precalculated_tax_config: {
|
|
1656
|
-
type: 'object',
|
|
1657
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
1658
|
-
properties: {
|
|
1659
|
-
tax_amount: {
|
|
1660
|
-
type: 'number',
|
|
1661
|
-
description:
|
|
1662
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
1663
|
-
},
|
|
1664
|
-
tax_name: {
|
|
1665
|
-
type: 'string',
|
|
1666
|
-
description:
|
|
1667
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
1668
|
-
},
|
|
1669
|
-
},
|
|
1670
|
-
required: ['tax_amount'],
|
|
1671
|
-
},
|
|
1672
|
-
stripe_config: {
|
|
1673
|
-
type: 'object',
|
|
1674
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
1675
|
-
properties: {
|
|
1676
|
-
payment_type: {
|
|
1677
|
-
type: 'string',
|
|
1678
|
-
description: 'If left blank, will default to INVOICE',
|
|
1679
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
1680
|
-
},
|
|
1681
|
-
invoice_metadata: {
|
|
1682
|
-
type: 'object',
|
|
1683
|
-
description:
|
|
1684
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
1685
|
-
additionalProperties: true,
|
|
1686
|
-
},
|
|
1687
|
-
},
|
|
1688
|
-
required: ['payment_type'],
|
|
1689
|
-
},
|
|
1690
|
-
tax_type: {
|
|
1691
|
-
type: 'string',
|
|
1692
|
-
description:
|
|
1693
|
-
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
1694
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
1695
|
-
},
|
|
1696
|
-
},
|
|
1697
|
-
required: ['payment_gate_type'],
|
|
1698
|
-
},
|
|
1699
|
-
threshold_amount: {
|
|
1700
|
-
type: 'number',
|
|
1701
|
-
description:
|
|
1702
|
-
"Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
1703
|
-
},
|
|
1704
|
-
},
|
|
1705
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'threshold_amount'],
|
|
1263
|
+
$ref: '#/$defs/spend_threshold_configuration_v2',
|
|
1706
1264
|
},
|
|
1707
1265
|
add_subscriptions: {
|
|
1708
1266
|
type: 'array',
|
|
@@ -1715,9 +1273,6 @@ export const tool: Tool = {
|
|
|
1715
1273
|
type: 'string',
|
|
1716
1274
|
enum: ['ADVANCE', 'ARREARS'],
|
|
1717
1275
|
},
|
|
1718
|
-
initial_quantity: {
|
|
1719
|
-
type: 'number',
|
|
1720
|
-
},
|
|
1721
1276
|
proration: {
|
|
1722
1277
|
type: 'object',
|
|
1723
1278
|
properties: {
|
|
@@ -1751,6 +1306,7 @@ export const tool: Tool = {
|
|
|
1751
1306
|
},
|
|
1752
1307
|
custom_fields: {
|
|
1753
1308
|
type: 'object',
|
|
1309
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1754
1310
|
additionalProperties: true,
|
|
1755
1311
|
},
|
|
1756
1312
|
description: {
|
|
@@ -1762,9 +1318,20 @@ export const tool: Tool = {
|
|
|
1762
1318
|
'Exclusive end time for the subscription. If not provided, subscription inherits contract end date.',
|
|
1763
1319
|
format: 'date-time',
|
|
1764
1320
|
},
|
|
1321
|
+
initial_quantity: {
|
|
1322
|
+
type: 'number',
|
|
1323
|
+
description:
|
|
1324
|
+
'The initial quantity for the subscription. It must be non-negative value. Required if quantity_management_mode is QUANTITY_ONLY.',
|
|
1325
|
+
},
|
|
1765
1326
|
name: {
|
|
1766
1327
|
type: 'string',
|
|
1767
1328
|
},
|
|
1329
|
+
quantity_management_mode: {
|
|
1330
|
+
type: 'string',
|
|
1331
|
+
description:
|
|
1332
|
+
"Determines how the subscription's quantity is controlled. Defaults to QUANTITY_ONLY. **QUANTITY_ONLY**: The subscription quantity is specified directly on the subscription. `initial_quantity` must be provided with this option. Compatible with recurring commits/credits that use POOLED allocation.",
|
|
1333
|
+
enum: ['SEAT_BASED', 'QUANTITY_ONLY'],
|
|
1334
|
+
},
|
|
1768
1335
|
starting_at: {
|
|
1769
1336
|
type: 'string',
|
|
1770
1337
|
description:
|
|
@@ -1777,7 +1344,7 @@ export const tool: Tool = {
|
|
|
1777
1344
|
'A temporary ID used to reference the subscription in recurring commit/credit subscription configs created within the same payload.',
|
|
1778
1345
|
},
|
|
1779
1346
|
},
|
|
1780
|
-
required: ['collection_schedule', '
|
|
1347
|
+
required: ['collection_schedule', 'proration', 'subscription_rate'],
|
|
1781
1348
|
},
|
|
1782
1349
|
},
|
|
1783
1350
|
allow_contract_ending_before_finalized_invoice: {
|
|
@@ -1837,6 +1404,10 @@ export const tool: Tool = {
|
|
|
1837
1404
|
required: ['id'],
|
|
1838
1405
|
},
|
|
1839
1406
|
},
|
|
1407
|
+
uniqueness_key: {
|
|
1408
|
+
type: 'string',
|
|
1409
|
+
description: 'Optional uniqueness key to prevent duplicate contract edits.',
|
|
1410
|
+
},
|
|
1840
1411
|
update_commits: {
|
|
1841
1412
|
type: 'array',
|
|
1842
1413
|
items: {
|
|
@@ -1922,51 +1493,7 @@ export const tool: Tool = {
|
|
|
1922
1493
|
},
|
|
1923
1494
|
},
|
|
1924
1495
|
hierarchy_configuration: {
|
|
1925
|
-
|
|
1926
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
1927
|
-
properties: {
|
|
1928
|
-
child_access: {
|
|
1929
|
-
anyOf: [
|
|
1930
|
-
{
|
|
1931
|
-
type: 'object',
|
|
1932
|
-
properties: {
|
|
1933
|
-
type: {
|
|
1934
|
-
type: 'string',
|
|
1935
|
-
enum: ['ALL'],
|
|
1936
|
-
},
|
|
1937
|
-
},
|
|
1938
|
-
required: ['type'],
|
|
1939
|
-
},
|
|
1940
|
-
{
|
|
1941
|
-
type: 'object',
|
|
1942
|
-
properties: {
|
|
1943
|
-
type: {
|
|
1944
|
-
type: 'string',
|
|
1945
|
-
enum: ['NONE'],
|
|
1946
|
-
},
|
|
1947
|
-
},
|
|
1948
|
-
required: ['type'],
|
|
1949
|
-
},
|
|
1950
|
-
{
|
|
1951
|
-
type: 'object',
|
|
1952
|
-
properties: {
|
|
1953
|
-
contract_ids: {
|
|
1954
|
-
type: 'array',
|
|
1955
|
-
items: {
|
|
1956
|
-
type: 'string',
|
|
1957
|
-
},
|
|
1958
|
-
},
|
|
1959
|
-
type: {
|
|
1960
|
-
type: 'string',
|
|
1961
|
-
enum: ['CONTRACT_IDS'],
|
|
1962
|
-
},
|
|
1963
|
-
},
|
|
1964
|
-
required: ['contract_ids', 'type'],
|
|
1965
|
-
},
|
|
1966
|
-
],
|
|
1967
|
-
},
|
|
1968
|
-
},
|
|
1969
|
-
required: ['child_access'],
|
|
1496
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1970
1497
|
},
|
|
1971
1498
|
invoice_schedule: {
|
|
1972
1499
|
type: 'object',
|
|
@@ -2041,6 +1568,12 @@ export const tool: Tool = {
|
|
|
2041
1568
|
product_id: {
|
|
2042
1569
|
type: 'string',
|
|
2043
1570
|
},
|
|
1571
|
+
rate_type: {
|
|
1572
|
+
type: 'string',
|
|
1573
|
+
description:
|
|
1574
|
+
'If provided, updates the commit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.',
|
|
1575
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1576
|
+
},
|
|
2044
1577
|
rollover_fraction: {
|
|
2045
1578
|
type: 'number',
|
|
2046
1579
|
},
|
|
@@ -2143,51 +1676,7 @@ export const tool: Tool = {
|
|
|
2143
1676
|
},
|
|
2144
1677
|
},
|
|
2145
1678
|
hierarchy_configuration: {
|
|
2146
|
-
|
|
2147
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
2148
|
-
properties: {
|
|
2149
|
-
child_access: {
|
|
2150
|
-
anyOf: [
|
|
2151
|
-
{
|
|
2152
|
-
type: 'object',
|
|
2153
|
-
properties: {
|
|
2154
|
-
type: {
|
|
2155
|
-
type: 'string',
|
|
2156
|
-
enum: ['ALL'],
|
|
2157
|
-
},
|
|
2158
|
-
},
|
|
2159
|
-
required: ['type'],
|
|
2160
|
-
},
|
|
2161
|
-
{
|
|
2162
|
-
type: 'object',
|
|
2163
|
-
properties: {
|
|
2164
|
-
type: {
|
|
2165
|
-
type: 'string',
|
|
2166
|
-
enum: ['NONE'],
|
|
2167
|
-
},
|
|
2168
|
-
},
|
|
2169
|
-
required: ['type'],
|
|
2170
|
-
},
|
|
2171
|
-
{
|
|
2172
|
-
type: 'object',
|
|
2173
|
-
properties: {
|
|
2174
|
-
contract_ids: {
|
|
2175
|
-
type: 'array',
|
|
2176
|
-
items: {
|
|
2177
|
-
type: 'string',
|
|
2178
|
-
},
|
|
2179
|
-
},
|
|
2180
|
-
type: {
|
|
2181
|
-
type: 'string',
|
|
2182
|
-
enum: ['CONTRACT_IDS'],
|
|
2183
|
-
},
|
|
2184
|
-
},
|
|
2185
|
-
required: ['contract_ids', 'type'],
|
|
2186
|
-
},
|
|
2187
|
-
],
|
|
2188
|
-
},
|
|
2189
|
-
},
|
|
2190
|
-
required: ['child_access'],
|
|
1679
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
2191
1680
|
},
|
|
2192
1681
|
netsuite_sales_order_id: {
|
|
2193
1682
|
type: 'string',
|
|
@@ -2198,6 +1687,12 @@ export const tool: Tool = {
|
|
|
2198
1687
|
product_id: {
|
|
2199
1688
|
type: 'string',
|
|
2200
1689
|
},
|
|
1690
|
+
rate_type: {
|
|
1691
|
+
type: 'string',
|
|
1692
|
+
description:
|
|
1693
|
+
'If provided, updates the credit to use the specified rate type for current and future invoices. Previously finalized invoices will need to be voided and regenerated to reflect the rate type change.',
|
|
1694
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1695
|
+
},
|
|
2201
1696
|
},
|
|
2202
1697
|
required: ['credit_id'],
|
|
2203
1698
|
},
|
|
@@ -2206,69 +1701,11 @@ export const tool: Tool = {
|
|
|
2206
1701
|
type: 'object',
|
|
2207
1702
|
properties: {
|
|
2208
1703
|
commit: {
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
type: 'array',
|
|
2213
|
-
description:
|
|
2214
|
-
'Which products the threshold commit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the commit applies to all products.',
|
|
2215
|
-
items: {
|
|
2216
|
-
type: 'string',
|
|
2217
|
-
},
|
|
2218
|
-
},
|
|
2219
|
-
applicable_product_tags: {
|
|
2220
|
-
type: 'array',
|
|
2221
|
-
description:
|
|
2222
|
-
'Which tags the threshold commit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the commit applies to all products.',
|
|
2223
|
-
items: {
|
|
2224
|
-
type: 'string',
|
|
2225
|
-
},
|
|
2226
|
-
},
|
|
2227
|
-
description: {
|
|
2228
|
-
type: 'string',
|
|
2229
|
-
},
|
|
2230
|
-
name: {
|
|
2231
|
-
type: 'string',
|
|
2232
|
-
description:
|
|
2233
|
-
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2234
|
-
},
|
|
2235
|
-
product_id: {
|
|
2236
|
-
type: 'string',
|
|
2237
|
-
description:
|
|
2238
|
-
'The commit product that will be used to generate the line item for commit payment.',
|
|
2239
|
-
},
|
|
2240
|
-
specifiers: {
|
|
2241
|
-
type: 'array',
|
|
2242
|
-
description:
|
|
2243
|
-
"List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with `applicable_product_ids` or `applicable_product_tags`. Instead, to target usage by product or product tag, pass those values in the body of `specifiers`.",
|
|
2244
|
-
items: {
|
|
2245
|
-
type: 'object',
|
|
2246
|
-
properties: {
|
|
2247
|
-
presentation_group_values: {
|
|
2248
|
-
type: 'object',
|
|
2249
|
-
additionalProperties: true,
|
|
2250
|
-
},
|
|
2251
|
-
pricing_group_values: {
|
|
2252
|
-
type: 'object',
|
|
2253
|
-
additionalProperties: true,
|
|
2254
|
-
},
|
|
2255
|
-
product_id: {
|
|
2256
|
-
type: 'string',
|
|
2257
|
-
description:
|
|
2258
|
-
'If provided, the specifier will only apply to the product with the specified ID.',
|
|
2259
|
-
},
|
|
2260
|
-
product_tags: {
|
|
2261
|
-
type: 'array',
|
|
2262
|
-
description:
|
|
2263
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
2264
|
-
items: {
|
|
2265
|
-
type: 'string',
|
|
2266
|
-
},
|
|
2267
|
-
},
|
|
2268
|
-
},
|
|
2269
|
-
},
|
|
1704
|
+
allOf: [
|
|
1705
|
+
{
|
|
1706
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2270
1707
|
},
|
|
2271
|
-
|
|
1708
|
+
],
|
|
2272
1709
|
},
|
|
2273
1710
|
custom_credit_type_id: {
|
|
2274
1711
|
type: 'string',
|
|
@@ -2281,57 +1718,7 @@ export const tool: Tool = {
|
|
|
2281
1718
|
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
2282
1719
|
},
|
|
2283
1720
|
payment_gate_config: {
|
|
2284
|
-
|
|
2285
|
-
properties: {
|
|
2286
|
-
payment_gate_type: {
|
|
2287
|
-
type: 'string',
|
|
2288
|
-
description:
|
|
2289
|
-
'Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.',
|
|
2290
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2291
|
-
},
|
|
2292
|
-
precalculated_tax_config: {
|
|
2293
|
-
type: 'object',
|
|
2294
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2295
|
-
properties: {
|
|
2296
|
-
tax_amount: {
|
|
2297
|
-
type: 'number',
|
|
2298
|
-
description:
|
|
2299
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2300
|
-
},
|
|
2301
|
-
tax_name: {
|
|
2302
|
-
type: 'string',
|
|
2303
|
-
description:
|
|
2304
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2305
|
-
},
|
|
2306
|
-
},
|
|
2307
|
-
required: ['tax_amount'],
|
|
2308
|
-
},
|
|
2309
|
-
stripe_config: {
|
|
2310
|
-
type: 'object',
|
|
2311
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2312
|
-
properties: {
|
|
2313
|
-
payment_type: {
|
|
2314
|
-
type: 'string',
|
|
2315
|
-
description: 'If left blank, will default to INVOICE',
|
|
2316
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2317
|
-
},
|
|
2318
|
-
invoice_metadata: {
|
|
2319
|
-
type: 'object',
|
|
2320
|
-
description:
|
|
2321
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2322
|
-
additionalProperties: true,
|
|
2323
|
-
},
|
|
2324
|
-
},
|
|
2325
|
-
required: ['payment_type'],
|
|
2326
|
-
},
|
|
2327
|
-
tax_type: {
|
|
2328
|
-
type: 'string',
|
|
2329
|
-
description:
|
|
2330
|
-
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
2331
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
2332
|
-
},
|
|
2333
|
-
},
|
|
2334
|
-
required: ['payment_gate_type'],
|
|
1721
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2335
1722
|
},
|
|
2336
1723
|
recharge_to_amount: {
|
|
2337
1724
|
type: 'number',
|
|
@@ -2380,6 +1767,12 @@ export const tool: Tool = {
|
|
|
2380
1767
|
},
|
|
2381
1768
|
},
|
|
2382
1769
|
},
|
|
1770
|
+
rate_type: {
|
|
1771
|
+
type: 'string',
|
|
1772
|
+
description:
|
|
1773
|
+
'If provided, updates the recurring commit to use the specified rate type when generating future commits.',
|
|
1774
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1775
|
+
},
|
|
2383
1776
|
},
|
|
2384
1777
|
required: ['recurring_commit_id'],
|
|
2385
1778
|
},
|
|
@@ -2409,6 +1802,12 @@ export const tool: Tool = {
|
|
|
2409
1802
|
type: 'string',
|
|
2410
1803
|
format: 'date-time',
|
|
2411
1804
|
},
|
|
1805
|
+
rate_type: {
|
|
1806
|
+
type: 'string',
|
|
1807
|
+
description:
|
|
1808
|
+
'If provided, updates the recurring credit to use the specified rate type when generating future credits.',
|
|
1809
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1810
|
+
},
|
|
2412
1811
|
},
|
|
2413
1812
|
required: ['recurring_credit_id'],
|
|
2414
1813
|
},
|
|
@@ -2496,22 +1895,7 @@ export const tool: Tool = {
|
|
|
2496
1895
|
type: 'object',
|
|
2497
1896
|
properties: {
|
|
2498
1897
|
commit: {
|
|
2499
|
-
|
|
2500
|
-
properties: {
|
|
2501
|
-
description: {
|
|
2502
|
-
type: 'string',
|
|
2503
|
-
},
|
|
2504
|
-
name: {
|
|
2505
|
-
type: 'string',
|
|
2506
|
-
description:
|
|
2507
|
-
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2508
|
-
},
|
|
2509
|
-
product_id: {
|
|
2510
|
-
type: 'string',
|
|
2511
|
-
description:
|
|
2512
|
-
'The commit product that will be used to generate the line item for commit payment.',
|
|
2513
|
-
},
|
|
2514
|
-
},
|
|
1898
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2515
1899
|
},
|
|
2516
1900
|
is_enabled: {
|
|
2517
1901
|
type: 'boolean',
|
|
@@ -2519,57 +1903,7 @@ export const tool: Tool = {
|
|
|
2519
1903
|
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
2520
1904
|
},
|
|
2521
1905
|
payment_gate_config: {
|
|
2522
|
-
|
|
2523
|
-
properties: {
|
|
2524
|
-
payment_gate_type: {
|
|
2525
|
-
type: 'string',
|
|
2526
|
-
description:
|
|
2527
|
-
'Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.',
|
|
2528
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2529
|
-
},
|
|
2530
|
-
precalculated_tax_config: {
|
|
2531
|
-
type: 'object',
|
|
2532
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2533
|
-
properties: {
|
|
2534
|
-
tax_amount: {
|
|
2535
|
-
type: 'number',
|
|
2536
|
-
description:
|
|
2537
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2538
|
-
},
|
|
2539
|
-
tax_name: {
|
|
2540
|
-
type: 'string',
|
|
2541
|
-
description:
|
|
2542
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2543
|
-
},
|
|
2544
|
-
},
|
|
2545
|
-
required: ['tax_amount'],
|
|
2546
|
-
},
|
|
2547
|
-
stripe_config: {
|
|
2548
|
-
type: 'object',
|
|
2549
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2550
|
-
properties: {
|
|
2551
|
-
payment_type: {
|
|
2552
|
-
type: 'string',
|
|
2553
|
-
description: 'If left blank, will default to INVOICE',
|
|
2554
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2555
|
-
},
|
|
2556
|
-
invoice_metadata: {
|
|
2557
|
-
type: 'object',
|
|
2558
|
-
description:
|
|
2559
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2560
|
-
additionalProperties: true,
|
|
2561
|
-
},
|
|
2562
|
-
},
|
|
2563
|
-
required: ['payment_type'],
|
|
2564
|
-
},
|
|
2565
|
-
tax_type: {
|
|
2566
|
-
type: 'string',
|
|
2567
|
-
description:
|
|
2568
|
-
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
2569
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
2570
|
-
},
|
|
2571
|
-
},
|
|
2572
|
-
required: ['payment_gate_type'],
|
|
1906
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2573
1907
|
},
|
|
2574
1908
|
threshold_amount: {
|
|
2575
1909
|
type: 'number',
|
|
@@ -2623,6 +1957,77 @@ export const tool: Tool = {
|
|
|
2623
1957
|
},
|
|
2624
1958
|
required: ['contract_id', 'customer_id'],
|
|
2625
1959
|
$defs: {
|
|
1960
|
+
commit_hierarchy_configuration: {
|
|
1961
|
+
type: 'object',
|
|
1962
|
+
properties: {
|
|
1963
|
+
child_access: {
|
|
1964
|
+
anyOf: [
|
|
1965
|
+
{
|
|
1966
|
+
type: 'object',
|
|
1967
|
+
properties: {
|
|
1968
|
+
type: {
|
|
1969
|
+
type: 'string',
|
|
1970
|
+
enum: ['ALL'],
|
|
1971
|
+
},
|
|
1972
|
+
},
|
|
1973
|
+
required: ['type'],
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
type: 'object',
|
|
1977
|
+
properties: {
|
|
1978
|
+
type: {
|
|
1979
|
+
type: 'string',
|
|
1980
|
+
enum: ['NONE'],
|
|
1981
|
+
},
|
|
1982
|
+
},
|
|
1983
|
+
required: ['type'],
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
type: 'object',
|
|
1987
|
+
properties: {
|
|
1988
|
+
contract_ids: {
|
|
1989
|
+
type: 'array',
|
|
1990
|
+
items: {
|
|
1991
|
+
type: 'string',
|
|
1992
|
+
},
|
|
1993
|
+
},
|
|
1994
|
+
type: {
|
|
1995
|
+
type: 'string',
|
|
1996
|
+
enum: ['CONTRACT_IDS'],
|
|
1997
|
+
},
|
|
1998
|
+
},
|
|
1999
|
+
required: ['contract_ids', 'type'],
|
|
2000
|
+
},
|
|
2001
|
+
],
|
|
2002
|
+
},
|
|
2003
|
+
},
|
|
2004
|
+
required: ['child_access'],
|
|
2005
|
+
},
|
|
2006
|
+
commit_specifier_input: {
|
|
2007
|
+
type: 'object',
|
|
2008
|
+
properties: {
|
|
2009
|
+
presentation_group_values: {
|
|
2010
|
+
type: 'object',
|
|
2011
|
+
additionalProperties: true,
|
|
2012
|
+
},
|
|
2013
|
+
pricing_group_values: {
|
|
2014
|
+
type: 'object',
|
|
2015
|
+
additionalProperties: true,
|
|
2016
|
+
},
|
|
2017
|
+
product_id: {
|
|
2018
|
+
type: 'string',
|
|
2019
|
+
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
2020
|
+
},
|
|
2021
|
+
product_tags: {
|
|
2022
|
+
type: 'array',
|
|
2023
|
+
description:
|
|
2024
|
+
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
2025
|
+
items: {
|
|
2026
|
+
type: 'string',
|
|
2027
|
+
},
|
|
2028
|
+
},
|
|
2029
|
+
},
|
|
2030
|
+
},
|
|
2626
2031
|
tier: {
|
|
2627
2032
|
type: 'object',
|
|
2628
2033
|
properties: {
|
|
@@ -2635,6 +2040,133 @@ export const tool: Tool = {
|
|
|
2635
2040
|
},
|
|
2636
2041
|
required: ['price'],
|
|
2637
2042
|
},
|
|
2043
|
+
prepaid_balance_threshold_configuration_v2: {
|
|
2044
|
+
type: 'object',
|
|
2045
|
+
properties: {
|
|
2046
|
+
commit: {
|
|
2047
|
+
allOf: [
|
|
2048
|
+
{
|
|
2049
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2050
|
+
},
|
|
2051
|
+
],
|
|
2052
|
+
},
|
|
2053
|
+
is_enabled: {
|
|
2054
|
+
type: 'boolean',
|
|
2055
|
+
description:
|
|
2056
|
+
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
2057
|
+
},
|
|
2058
|
+
payment_gate_config: {
|
|
2059
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2060
|
+
},
|
|
2061
|
+
recharge_to_amount: {
|
|
2062
|
+
type: 'number',
|
|
2063
|
+
description: 'Specify the amount the balance should be recharged to.',
|
|
2064
|
+
},
|
|
2065
|
+
threshold_amount: {
|
|
2066
|
+
type: 'number',
|
|
2067
|
+
description:
|
|
2068
|
+
"Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
2069
|
+
},
|
|
2070
|
+
custom_credit_type_id: {
|
|
2071
|
+
type: 'string',
|
|
2072
|
+
description:
|
|
2073
|
+
'If provided, the threshold, recharge-to amount, and the resulting threshold commit amount will be in terms of this credit type instead of the fiat currency.',
|
|
2074
|
+
},
|
|
2075
|
+
},
|
|
2076
|
+
required: ['commit', 'is_enabled', 'payment_gate_config', 'recharge_to_amount', 'threshold_amount'],
|
|
2077
|
+
},
|
|
2078
|
+
update_base_threshold_commit: {
|
|
2079
|
+
type: 'object',
|
|
2080
|
+
properties: {
|
|
2081
|
+
description: {
|
|
2082
|
+
type: 'string',
|
|
2083
|
+
},
|
|
2084
|
+
name: {
|
|
2085
|
+
type: 'string',
|
|
2086
|
+
description:
|
|
2087
|
+
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2088
|
+
},
|
|
2089
|
+
product_id: {
|
|
2090
|
+
type: 'string',
|
|
2091
|
+
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
2092
|
+
},
|
|
2093
|
+
},
|
|
2094
|
+
},
|
|
2095
|
+
payment_gate_config_v2: {
|
|
2096
|
+
type: 'object',
|
|
2097
|
+
properties: {
|
|
2098
|
+
payment_gate_type: {
|
|
2099
|
+
type: 'string',
|
|
2100
|
+
description:
|
|
2101
|
+
'Gate access to the commit balance based on successful collection of payment. Select STRIPE for Metronome to facilitate payment via Stripe. Select EXTERNAL to facilitate payment using your own payment integration. Select NONE if you do not wish to payment gate the commit balance.',
|
|
2102
|
+
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2103
|
+
},
|
|
2104
|
+
precalculated_tax_config: {
|
|
2105
|
+
type: 'object',
|
|
2106
|
+
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2107
|
+
properties: {
|
|
2108
|
+
tax_amount: {
|
|
2109
|
+
type: 'number',
|
|
2110
|
+
description:
|
|
2111
|
+
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2112
|
+
},
|
|
2113
|
+
tax_name: {
|
|
2114
|
+
type: 'string',
|
|
2115
|
+
description:
|
|
2116
|
+
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2117
|
+
},
|
|
2118
|
+
},
|
|
2119
|
+
required: ['tax_amount'],
|
|
2120
|
+
},
|
|
2121
|
+
stripe_config: {
|
|
2122
|
+
type: 'object',
|
|
2123
|
+
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2124
|
+
properties: {
|
|
2125
|
+
payment_type: {
|
|
2126
|
+
type: 'string',
|
|
2127
|
+
description: 'If left blank, will default to INVOICE',
|
|
2128
|
+
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2129
|
+
},
|
|
2130
|
+
invoice_metadata: {
|
|
2131
|
+
type: 'object',
|
|
2132
|
+
description:
|
|
2133
|
+
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2134
|
+
additionalProperties: true,
|
|
2135
|
+
},
|
|
2136
|
+
},
|
|
2137
|
+
required: ['payment_type'],
|
|
2138
|
+
},
|
|
2139
|
+
tax_type: {
|
|
2140
|
+
type: 'string',
|
|
2141
|
+
description:
|
|
2142
|
+
'Stripe tax is only supported for Stripe payment gateway. Select NONE if you do not wish Metronome to calculate tax on your behalf. Leaving this field blank will default to NONE.',
|
|
2143
|
+
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
2144
|
+
},
|
|
2145
|
+
},
|
|
2146
|
+
required: ['payment_gate_type'],
|
|
2147
|
+
},
|
|
2148
|
+
spend_threshold_configuration_v2: {
|
|
2149
|
+
type: 'object',
|
|
2150
|
+
properties: {
|
|
2151
|
+
commit: {
|
|
2152
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2153
|
+
},
|
|
2154
|
+
is_enabled: {
|
|
2155
|
+
type: 'boolean',
|
|
2156
|
+
description:
|
|
2157
|
+
'When set to false, the contract will not be evaluated against the threshold_amount. Toggling to true will result an immediate evaluation, regardless of prior state.',
|
|
2158
|
+
},
|
|
2159
|
+
payment_gate_config: {
|
|
2160
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2161
|
+
},
|
|
2162
|
+
threshold_amount: {
|
|
2163
|
+
type: 'number',
|
|
2164
|
+
description:
|
|
2165
|
+
"Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
2166
|
+
},
|
|
2167
|
+
},
|
|
2168
|
+
required: ['commit', 'is_enabled', 'payment_gate_config', 'threshold_amount'],
|
|
2169
|
+
},
|
|
2638
2170
|
},
|
|
2639
2171
|
},
|
|
2640
2172
|
annotations: {},
|