@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
|
@@ -13,7 +13,7 @@ exports.metadata = {
|
|
|
13
13
|
};
|
|
14
14
|
exports.tool = {
|
|
15
15
|
name: 'edit_v2_contracts',
|
|
16
|
-
description: '
|
|
16
|
+
description: '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',
|
|
17
17
|
inputSchema: {
|
|
18
18
|
type: 'object',
|
|
19
19
|
properties: {
|
|
@@ -25,6 +25,50 @@ exports.tool = {
|
|
|
25
25
|
type: 'string',
|
|
26
26
|
description: 'ID of the customer whose contract is being edited',
|
|
27
27
|
},
|
|
28
|
+
add_billing_provider_configuration_update: {
|
|
29
|
+
type: 'object',
|
|
30
|
+
description: '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.',
|
|
31
|
+
properties: {
|
|
32
|
+
billing_provider_configuration: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
billing_provider: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: [
|
|
38
|
+
'aws_marketplace',
|
|
39
|
+
'stripe',
|
|
40
|
+
'netsuite',
|
|
41
|
+
'custom',
|
|
42
|
+
'azure_marketplace',
|
|
43
|
+
'quickbooks_online',
|
|
44
|
+
'workday',
|
|
45
|
+
'gcp_marketplace',
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
billing_provider_configuration_id: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
},
|
|
51
|
+
delivery_method: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
enum: ['direct_to_billing_provider', 'aws_sqs', 'tackle', 'aws_sns'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
schedule: {
|
|
58
|
+
type: 'object',
|
|
59
|
+
description: '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.',
|
|
60
|
+
properties: {
|
|
61
|
+
effective_at: {
|
|
62
|
+
type: 'string',
|
|
63
|
+
description: 'When the billing provider update will take effect.',
|
|
64
|
+
enum: ['START_OF_CURRENT_PERIOD'],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
required: ['effective_at'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
required: ['billing_provider_configuration', 'schedule'],
|
|
71
|
+
},
|
|
28
72
|
add_commits: {
|
|
29
73
|
type: 'array',
|
|
30
74
|
items: {
|
|
@@ -89,6 +133,7 @@ exports.tool = {
|
|
|
89
133
|
},
|
|
90
134
|
custom_fields: {
|
|
91
135
|
type: 'object',
|
|
136
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
92
137
|
additionalProperties: true,
|
|
93
138
|
},
|
|
94
139
|
description: {
|
|
@@ -96,51 +141,7 @@ exports.tool = {
|
|
|
96
141
|
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
97
142
|
},
|
|
98
143
|
hierarchy_configuration: {
|
|
99
|
-
|
|
100
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
101
|
-
properties: {
|
|
102
|
-
child_access: {
|
|
103
|
-
anyOf: [
|
|
104
|
-
{
|
|
105
|
-
type: 'object',
|
|
106
|
-
properties: {
|
|
107
|
-
type: {
|
|
108
|
-
type: 'string',
|
|
109
|
-
enum: ['ALL'],
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
required: ['type'],
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
type: 'object',
|
|
116
|
-
properties: {
|
|
117
|
-
type: {
|
|
118
|
-
type: 'string',
|
|
119
|
-
enum: ['NONE'],
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
required: ['type'],
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
type: 'object',
|
|
126
|
-
properties: {
|
|
127
|
-
contract_ids: {
|
|
128
|
-
type: 'array',
|
|
129
|
-
items: {
|
|
130
|
-
type: 'string',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
type: {
|
|
134
|
-
type: 'string',
|
|
135
|
-
enum: ['CONTRACT_IDS'],
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
required: ['contract_ids', 'type'],
|
|
139
|
-
},
|
|
140
|
-
],
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
required: ['child_access'],
|
|
144
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
144
145
|
},
|
|
145
146
|
invoice_schedule: {
|
|
146
147
|
type: 'object',
|
|
@@ -276,7 +277,7 @@ exports.tool = {
|
|
|
276
277
|
tax_type: {
|
|
277
278
|
type: 'string',
|
|
278
279
|
description: '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.',
|
|
279
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
280
|
+
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
280
281
|
},
|
|
281
282
|
},
|
|
282
283
|
required: ['payment_gate_type'],
|
|
@@ -297,28 +298,7 @@ exports.tool = {
|
|
|
297
298
|
type: 'array',
|
|
298
299
|
description: "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`.",
|
|
299
300
|
items: {
|
|
300
|
-
|
|
301
|
-
properties: {
|
|
302
|
-
presentation_group_values: {
|
|
303
|
-
type: 'object',
|
|
304
|
-
additionalProperties: true,
|
|
305
|
-
},
|
|
306
|
-
pricing_group_values: {
|
|
307
|
-
type: 'object',
|
|
308
|
-
additionalProperties: true,
|
|
309
|
-
},
|
|
310
|
-
product_id: {
|
|
311
|
-
type: 'string',
|
|
312
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
313
|
-
},
|
|
314
|
-
product_tags: {
|
|
315
|
-
type: 'array',
|
|
316
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
317
|
-
items: {
|
|
318
|
-
type: 'string',
|
|
319
|
-
},
|
|
320
|
-
},
|
|
321
|
-
},
|
|
301
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
322
302
|
},
|
|
323
303
|
},
|
|
324
304
|
temporary_id: {
|
|
@@ -385,6 +365,7 @@ exports.tool = {
|
|
|
385
365
|
},
|
|
386
366
|
custom_fields: {
|
|
387
367
|
type: 'object',
|
|
368
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
388
369
|
additionalProperties: true,
|
|
389
370
|
},
|
|
390
371
|
description: {
|
|
@@ -392,51 +373,7 @@ exports.tool = {
|
|
|
392
373
|
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
393
374
|
},
|
|
394
375
|
hierarchy_configuration: {
|
|
395
|
-
|
|
396
|
-
description: 'Optional configuration for credit hierarchy access control',
|
|
397
|
-
properties: {
|
|
398
|
-
child_access: {
|
|
399
|
-
anyOf: [
|
|
400
|
-
{
|
|
401
|
-
type: 'object',
|
|
402
|
-
properties: {
|
|
403
|
-
type: {
|
|
404
|
-
type: 'string',
|
|
405
|
-
enum: ['ALL'],
|
|
406
|
-
},
|
|
407
|
-
},
|
|
408
|
-
required: ['type'],
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
type: 'object',
|
|
412
|
-
properties: {
|
|
413
|
-
type: {
|
|
414
|
-
type: 'string',
|
|
415
|
-
enum: ['NONE'],
|
|
416
|
-
},
|
|
417
|
-
},
|
|
418
|
-
required: ['type'],
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
type: 'object',
|
|
422
|
-
properties: {
|
|
423
|
-
contract_ids: {
|
|
424
|
-
type: 'array',
|
|
425
|
-
items: {
|
|
426
|
-
type: 'string',
|
|
427
|
-
},
|
|
428
|
-
},
|
|
429
|
-
type: {
|
|
430
|
-
type: 'string',
|
|
431
|
-
enum: ['CONTRACT_IDS'],
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
required: ['contract_ids', 'type'],
|
|
435
|
-
},
|
|
436
|
-
],
|
|
437
|
-
},
|
|
438
|
-
},
|
|
439
|
-
required: ['child_access'],
|
|
376
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
440
377
|
},
|
|
441
378
|
name: {
|
|
442
379
|
type: 'string',
|
|
@@ -458,28 +395,7 @@ exports.tool = {
|
|
|
458
395
|
type: 'array',
|
|
459
396
|
description: "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`.",
|
|
460
397
|
items: {
|
|
461
|
-
|
|
462
|
-
properties: {
|
|
463
|
-
presentation_group_values: {
|
|
464
|
-
type: 'object',
|
|
465
|
-
additionalProperties: true,
|
|
466
|
-
},
|
|
467
|
-
pricing_group_values: {
|
|
468
|
-
type: 'object',
|
|
469
|
-
additionalProperties: true,
|
|
470
|
-
},
|
|
471
|
-
product_id: {
|
|
472
|
-
type: 'string',
|
|
473
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
474
|
-
},
|
|
475
|
-
product_tags: {
|
|
476
|
-
type: 'array',
|
|
477
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
478
|
-
items: {
|
|
479
|
-
type: 'string',
|
|
480
|
-
},
|
|
481
|
-
},
|
|
482
|
-
},
|
|
398
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
483
399
|
},
|
|
484
400
|
},
|
|
485
401
|
},
|
|
@@ -574,6 +490,7 @@ exports.tool = {
|
|
|
574
490
|
},
|
|
575
491
|
custom_fields: {
|
|
576
492
|
type: 'object',
|
|
493
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
577
494
|
additionalProperties: true,
|
|
578
495
|
},
|
|
579
496
|
name: {
|
|
@@ -753,133 +670,7 @@ exports.tool = {
|
|
|
753
670
|
},
|
|
754
671
|
},
|
|
755
672
|
add_prepaid_balance_threshold_configuration: {
|
|
756
|
-
|
|
757
|
-
properties: {
|
|
758
|
-
commit: {
|
|
759
|
-
type: 'object',
|
|
760
|
-
properties: {
|
|
761
|
-
product_id: {
|
|
762
|
-
type: 'string',
|
|
763
|
-
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
764
|
-
},
|
|
765
|
-
applicable_product_ids: {
|
|
766
|
-
type: 'array',
|
|
767
|
-
description: '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.',
|
|
768
|
-
items: {
|
|
769
|
-
type: 'string',
|
|
770
|
-
},
|
|
771
|
-
},
|
|
772
|
-
applicable_product_tags: {
|
|
773
|
-
type: 'array',
|
|
774
|
-
description: '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.',
|
|
775
|
-
items: {
|
|
776
|
-
type: 'string',
|
|
777
|
-
},
|
|
778
|
-
},
|
|
779
|
-
description: {
|
|
780
|
-
type: 'string',
|
|
781
|
-
},
|
|
782
|
-
name: {
|
|
783
|
-
type: 'string',
|
|
784
|
-
description: 'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
785
|
-
},
|
|
786
|
-
specifiers: {
|
|
787
|
-
type: 'array',
|
|
788
|
-
description: "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`.",
|
|
789
|
-
items: {
|
|
790
|
-
type: 'object',
|
|
791
|
-
properties: {
|
|
792
|
-
presentation_group_values: {
|
|
793
|
-
type: 'object',
|
|
794
|
-
additionalProperties: true,
|
|
795
|
-
},
|
|
796
|
-
pricing_group_values: {
|
|
797
|
-
type: 'object',
|
|
798
|
-
additionalProperties: true,
|
|
799
|
-
},
|
|
800
|
-
product_id: {
|
|
801
|
-
type: 'string',
|
|
802
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
803
|
-
},
|
|
804
|
-
product_tags: {
|
|
805
|
-
type: 'array',
|
|
806
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
807
|
-
items: {
|
|
808
|
-
type: 'string',
|
|
809
|
-
},
|
|
810
|
-
},
|
|
811
|
-
},
|
|
812
|
-
},
|
|
813
|
-
},
|
|
814
|
-
},
|
|
815
|
-
required: ['product_id'],
|
|
816
|
-
},
|
|
817
|
-
is_enabled: {
|
|
818
|
-
type: 'boolean',
|
|
819
|
-
description: '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.',
|
|
820
|
-
},
|
|
821
|
-
payment_gate_config: {
|
|
822
|
-
type: 'object',
|
|
823
|
-
properties: {
|
|
824
|
-
payment_gate_type: {
|
|
825
|
-
type: 'string',
|
|
826
|
-
description: '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.',
|
|
827
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
828
|
-
},
|
|
829
|
-
precalculated_tax_config: {
|
|
830
|
-
type: 'object',
|
|
831
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
832
|
-
properties: {
|
|
833
|
-
tax_amount: {
|
|
834
|
-
type: 'number',
|
|
835
|
-
description: "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
836
|
-
},
|
|
837
|
-
tax_name: {
|
|
838
|
-
type: 'string',
|
|
839
|
-
description: 'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
840
|
-
},
|
|
841
|
-
},
|
|
842
|
-
required: ['tax_amount'],
|
|
843
|
-
},
|
|
844
|
-
stripe_config: {
|
|
845
|
-
type: 'object',
|
|
846
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
847
|
-
properties: {
|
|
848
|
-
payment_type: {
|
|
849
|
-
type: 'string',
|
|
850
|
-
description: 'If left blank, will default to INVOICE',
|
|
851
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
852
|
-
},
|
|
853
|
-
invoice_metadata: {
|
|
854
|
-
type: 'object',
|
|
855
|
-
description: 'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
856
|
-
additionalProperties: true,
|
|
857
|
-
},
|
|
858
|
-
},
|
|
859
|
-
required: ['payment_type'],
|
|
860
|
-
},
|
|
861
|
-
tax_type: {
|
|
862
|
-
type: 'string',
|
|
863
|
-
description: '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.',
|
|
864
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
865
|
-
},
|
|
866
|
-
},
|
|
867
|
-
required: ['payment_gate_type'],
|
|
868
|
-
},
|
|
869
|
-
recharge_to_amount: {
|
|
870
|
-
type: 'number',
|
|
871
|
-
description: 'Specify the amount the balance should be recharged to.',
|
|
872
|
-
},
|
|
873
|
-
threshold_amount: {
|
|
874
|
-
type: 'number',
|
|
875
|
-
description: "Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
876
|
-
},
|
|
877
|
-
custom_credit_type_id: {
|
|
878
|
-
type: 'string',
|
|
879
|
-
description: '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.',
|
|
880
|
-
},
|
|
881
|
-
},
|
|
882
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'recharge_to_amount', 'threshold_amount'],
|
|
673
|
+
$ref: '#/$defs/prepaid_balance_threshold_configuration_v2',
|
|
883
674
|
},
|
|
884
675
|
add_professional_services: {
|
|
885
676
|
type: 'array',
|
|
@@ -904,6 +695,7 @@ exports.tool = {
|
|
|
904
695
|
},
|
|
905
696
|
custom_fields: {
|
|
906
697
|
type: 'object',
|
|
698
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
907
699
|
additionalProperties: true,
|
|
908
700
|
},
|
|
909
701
|
description: {
|
|
@@ -989,51 +781,7 @@ exports.tool = {
|
|
|
989
781
|
format: 'date-time',
|
|
990
782
|
},
|
|
991
783
|
hierarchy_configuration: {
|
|
992
|
-
|
|
993
|
-
description: 'Optional configuration for recurring credit hierarchy access control',
|
|
994
|
-
properties: {
|
|
995
|
-
child_access: {
|
|
996
|
-
anyOf: [
|
|
997
|
-
{
|
|
998
|
-
type: 'object',
|
|
999
|
-
properties: {
|
|
1000
|
-
type: {
|
|
1001
|
-
type: 'string',
|
|
1002
|
-
enum: ['ALL'],
|
|
1003
|
-
},
|
|
1004
|
-
},
|
|
1005
|
-
required: ['type'],
|
|
1006
|
-
},
|
|
1007
|
-
{
|
|
1008
|
-
type: 'object',
|
|
1009
|
-
properties: {
|
|
1010
|
-
type: {
|
|
1011
|
-
type: 'string',
|
|
1012
|
-
enum: ['NONE'],
|
|
1013
|
-
},
|
|
1014
|
-
},
|
|
1015
|
-
required: ['type'],
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
type: 'object',
|
|
1019
|
-
properties: {
|
|
1020
|
-
contract_ids: {
|
|
1021
|
-
type: 'array',
|
|
1022
|
-
items: {
|
|
1023
|
-
type: 'string',
|
|
1024
|
-
},
|
|
1025
|
-
},
|
|
1026
|
-
type: {
|
|
1027
|
-
type: 'string',
|
|
1028
|
-
enum: ['CONTRACT_IDS'],
|
|
1029
|
-
},
|
|
1030
|
-
},
|
|
1031
|
-
required: ['contract_ids', 'type'],
|
|
1032
|
-
},
|
|
1033
|
-
],
|
|
1034
|
-
},
|
|
1035
|
-
},
|
|
1036
|
-
required: ['child_access'],
|
|
784
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1037
785
|
},
|
|
1038
786
|
invoice_amount: {
|
|
1039
787
|
type: 'object',
|
|
@@ -1082,28 +830,7 @@ exports.tool = {
|
|
|
1082
830
|
type: 'array',
|
|
1083
831
|
description: "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`.",
|
|
1084
832
|
items: {
|
|
1085
|
-
|
|
1086
|
-
properties: {
|
|
1087
|
-
presentation_group_values: {
|
|
1088
|
-
type: 'object',
|
|
1089
|
-
additionalProperties: true,
|
|
1090
|
-
},
|
|
1091
|
-
pricing_group_values: {
|
|
1092
|
-
type: 'object',
|
|
1093
|
-
additionalProperties: true,
|
|
1094
|
-
},
|
|
1095
|
-
product_id: {
|
|
1096
|
-
type: 'string',
|
|
1097
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
1098
|
-
},
|
|
1099
|
-
product_tags: {
|
|
1100
|
-
type: 'array',
|
|
1101
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
1102
|
-
items: {
|
|
1103
|
-
type: 'string',
|
|
1104
|
-
},
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
833
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
1107
834
|
},
|
|
1108
835
|
},
|
|
1109
836
|
subscription_config: {
|
|
@@ -1127,7 +854,7 @@ exports.tool = {
|
|
|
1127
854
|
allocation: {
|
|
1128
855
|
type: 'string',
|
|
1129
856
|
description: 'If set to POOLED, allocation added per seat is pooled across the account.',
|
|
1130
|
-
enum: ['POOLED'],
|
|
857
|
+
enum: ['POOLED', 'INDIVIDUAL'],
|
|
1131
858
|
},
|
|
1132
859
|
},
|
|
1133
860
|
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
@@ -1212,51 +939,7 @@ exports.tool = {
|
|
|
1212
939
|
format: 'date-time',
|
|
1213
940
|
},
|
|
1214
941
|
hierarchy_configuration: {
|
|
1215
|
-
|
|
1216
|
-
description: 'Optional configuration for recurring credit hierarchy access control',
|
|
1217
|
-
properties: {
|
|
1218
|
-
child_access: {
|
|
1219
|
-
anyOf: [
|
|
1220
|
-
{
|
|
1221
|
-
type: 'object',
|
|
1222
|
-
properties: {
|
|
1223
|
-
type: {
|
|
1224
|
-
type: 'string',
|
|
1225
|
-
enum: ['ALL'],
|
|
1226
|
-
},
|
|
1227
|
-
},
|
|
1228
|
-
required: ['type'],
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
type: 'object',
|
|
1232
|
-
properties: {
|
|
1233
|
-
type: {
|
|
1234
|
-
type: 'string',
|
|
1235
|
-
enum: ['NONE'],
|
|
1236
|
-
},
|
|
1237
|
-
},
|
|
1238
|
-
required: ['type'],
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
type: 'object',
|
|
1242
|
-
properties: {
|
|
1243
|
-
contract_ids: {
|
|
1244
|
-
type: 'array',
|
|
1245
|
-
items: {
|
|
1246
|
-
type: 'string',
|
|
1247
|
-
},
|
|
1248
|
-
},
|
|
1249
|
-
type: {
|
|
1250
|
-
type: 'string',
|
|
1251
|
-
enum: ['CONTRACT_IDS'],
|
|
1252
|
-
},
|
|
1253
|
-
},
|
|
1254
|
-
required: ['contract_ids', 'type'],
|
|
1255
|
-
},
|
|
1256
|
-
],
|
|
1257
|
-
},
|
|
1258
|
-
},
|
|
1259
|
-
required: ['child_access'],
|
|
942
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1260
943
|
},
|
|
1261
944
|
name: {
|
|
1262
945
|
type: 'string',
|
|
@@ -1289,28 +972,7 @@ exports.tool = {
|
|
|
1289
972
|
type: 'array',
|
|
1290
973
|
description: "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`.",
|
|
1291
974
|
items: {
|
|
1292
|
-
|
|
1293
|
-
properties: {
|
|
1294
|
-
presentation_group_values: {
|
|
1295
|
-
type: 'object',
|
|
1296
|
-
additionalProperties: true,
|
|
1297
|
-
},
|
|
1298
|
-
pricing_group_values: {
|
|
1299
|
-
type: 'object',
|
|
1300
|
-
additionalProperties: true,
|
|
1301
|
-
},
|
|
1302
|
-
product_id: {
|
|
1303
|
-
type: 'string',
|
|
1304
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
1305
|
-
},
|
|
1306
|
-
product_tags: {
|
|
1307
|
-
type: 'array',
|
|
1308
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
1309
|
-
items: {
|
|
1310
|
-
type: 'string',
|
|
1311
|
-
},
|
|
1312
|
-
},
|
|
1313
|
-
},
|
|
975
|
+
$ref: '#/$defs/commit_specifier_input',
|
|
1314
976
|
},
|
|
1315
977
|
},
|
|
1316
978
|
subscription_config: {
|
|
@@ -1334,7 +996,7 @@ exports.tool = {
|
|
|
1334
996
|
allocation: {
|
|
1335
997
|
type: 'string',
|
|
1336
998
|
description: 'If set to POOLED, allocation added per seat is pooled across the account.',
|
|
1337
|
-
enum: ['POOLED'],
|
|
999
|
+
enum: ['POOLED', 'INDIVIDUAL'],
|
|
1338
1000
|
},
|
|
1339
1001
|
},
|
|
1340
1002
|
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
@@ -1505,6 +1167,7 @@ exports.tool = {
|
|
|
1505
1167
|
},
|
|
1506
1168
|
custom_fields: {
|
|
1507
1169
|
type: 'object',
|
|
1170
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1508
1171
|
additionalProperties: true,
|
|
1509
1172
|
},
|
|
1510
1173
|
name: {
|
|
@@ -1520,96 +1183,17 @@ exports.tool = {
|
|
|
1520
1183
|
},
|
|
1521
1184
|
},
|
|
1522
1185
|
add_spend_threshold_configuration: {
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
},
|
|
1535
|
-
name: {
|
|
1536
|
-
type: 'string',
|
|
1537
|
-
description: 'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
1538
|
-
},
|
|
1539
|
-
},
|
|
1540
|
-
required: ['product_id'],
|
|
1541
|
-
},
|
|
1542
|
-
is_enabled: {
|
|
1543
|
-
type: 'boolean',
|
|
1544
|
-
description: '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.',
|
|
1545
|
-
},
|
|
1546
|
-
payment_gate_config: {
|
|
1547
|
-
type: 'object',
|
|
1548
|
-
properties: {
|
|
1549
|
-
payment_gate_type: {
|
|
1550
|
-
type: 'string',
|
|
1551
|
-
description: '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.',
|
|
1552
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
1553
|
-
},
|
|
1554
|
-
precalculated_tax_config: {
|
|
1555
|
-
type: 'object',
|
|
1556
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
1557
|
-
properties: {
|
|
1558
|
-
tax_amount: {
|
|
1559
|
-
type: 'number',
|
|
1560
|
-
description: "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
1561
|
-
},
|
|
1562
|
-
tax_name: {
|
|
1563
|
-
type: 'string',
|
|
1564
|
-
description: 'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
1565
|
-
},
|
|
1566
|
-
},
|
|
1567
|
-
required: ['tax_amount'],
|
|
1568
|
-
},
|
|
1569
|
-
stripe_config: {
|
|
1570
|
-
type: 'object',
|
|
1571
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
1572
|
-
properties: {
|
|
1573
|
-
payment_type: {
|
|
1574
|
-
type: 'string',
|
|
1575
|
-
description: 'If left blank, will default to INVOICE',
|
|
1576
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
1577
|
-
},
|
|
1578
|
-
invoice_metadata: {
|
|
1579
|
-
type: 'object',
|
|
1580
|
-
description: 'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
1581
|
-
additionalProperties: true,
|
|
1582
|
-
},
|
|
1583
|
-
},
|
|
1584
|
-
required: ['payment_type'],
|
|
1585
|
-
},
|
|
1586
|
-
tax_type: {
|
|
1587
|
-
type: 'string',
|
|
1588
|
-
description: '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.',
|
|
1589
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
1590
|
-
},
|
|
1591
|
-
},
|
|
1592
|
-
required: ['payment_gate_type'],
|
|
1593
|
-
},
|
|
1594
|
-
threshold_amount: {
|
|
1595
|
-
type: 'number',
|
|
1596
|
-
description: "Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
1597
|
-
},
|
|
1598
|
-
},
|
|
1599
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'threshold_amount'],
|
|
1600
|
-
},
|
|
1601
|
-
add_subscriptions: {
|
|
1602
|
-
type: 'array',
|
|
1603
|
-
description: 'Optional list of [subscriptions](https://docs.metronome.com/manage-product-access/create-subscription/) to add to the contract.',
|
|
1604
|
-
items: {
|
|
1605
|
-
type: 'object',
|
|
1606
|
-
properties: {
|
|
1607
|
-
collection_schedule: {
|
|
1608
|
-
type: 'string',
|
|
1609
|
-
enum: ['ADVANCE', 'ARREARS'],
|
|
1610
|
-
},
|
|
1611
|
-
initial_quantity: {
|
|
1612
|
-
type: 'number',
|
|
1186
|
+
$ref: '#/$defs/spend_threshold_configuration_v2',
|
|
1187
|
+
},
|
|
1188
|
+
add_subscriptions: {
|
|
1189
|
+
type: 'array',
|
|
1190
|
+
description: 'Optional list of [subscriptions](https://docs.metronome.com/manage-product-access/create-subscription/) to add to the contract.',
|
|
1191
|
+
items: {
|
|
1192
|
+
type: 'object',
|
|
1193
|
+
properties: {
|
|
1194
|
+
collection_schedule: {
|
|
1195
|
+
type: 'string',
|
|
1196
|
+
enum: ['ADVANCE', 'ARREARS'],
|
|
1613
1197
|
},
|
|
1614
1198
|
proration: {
|
|
1615
1199
|
type: 'object',
|
|
@@ -1642,6 +1226,7 @@ exports.tool = {
|
|
|
1642
1226
|
},
|
|
1643
1227
|
custom_fields: {
|
|
1644
1228
|
type: 'object',
|
|
1229
|
+
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1645
1230
|
additionalProperties: true,
|
|
1646
1231
|
},
|
|
1647
1232
|
description: {
|
|
@@ -1652,9 +1237,18 @@ exports.tool = {
|
|
|
1652
1237
|
description: 'Exclusive end time for the subscription. If not provided, subscription inherits contract end date.',
|
|
1653
1238
|
format: 'date-time',
|
|
1654
1239
|
},
|
|
1240
|
+
initial_quantity: {
|
|
1241
|
+
type: 'number',
|
|
1242
|
+
description: 'The initial quantity for the subscription. It must be non-negative value. Required if quantity_management_mode is QUANTITY_ONLY.',
|
|
1243
|
+
},
|
|
1655
1244
|
name: {
|
|
1656
1245
|
type: 'string',
|
|
1657
1246
|
},
|
|
1247
|
+
quantity_management_mode: {
|
|
1248
|
+
type: 'string',
|
|
1249
|
+
description: "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.",
|
|
1250
|
+
enum: ['SEAT_BASED', 'QUANTITY_ONLY'],
|
|
1251
|
+
},
|
|
1658
1252
|
starting_at: {
|
|
1659
1253
|
type: 'string',
|
|
1660
1254
|
description: 'Inclusive start time for the subscription. If not provided, defaults to contract start date',
|
|
@@ -1665,7 +1259,7 @@ exports.tool = {
|
|
|
1665
1259
|
description: 'A temporary ID used to reference the subscription in recurring commit/credit subscription configs created within the same payload.',
|
|
1666
1260
|
},
|
|
1667
1261
|
},
|
|
1668
|
-
required: ['collection_schedule', '
|
|
1262
|
+
required: ['collection_schedule', 'proration', 'subscription_rate'],
|
|
1669
1263
|
},
|
|
1670
1264
|
},
|
|
1671
1265
|
allow_contract_ending_before_finalized_invoice: {
|
|
@@ -1724,6 +1318,10 @@ exports.tool = {
|
|
|
1724
1318
|
required: ['id'],
|
|
1725
1319
|
},
|
|
1726
1320
|
},
|
|
1321
|
+
uniqueness_key: {
|
|
1322
|
+
type: 'string',
|
|
1323
|
+
description: 'Optional uniqueness key to prevent duplicate contract edits.',
|
|
1324
|
+
},
|
|
1727
1325
|
update_commits: {
|
|
1728
1326
|
type: 'array',
|
|
1729
1327
|
items: {
|
|
@@ -1807,51 +1405,7 @@ exports.tool = {
|
|
|
1807
1405
|
},
|
|
1808
1406
|
},
|
|
1809
1407
|
hierarchy_configuration: {
|
|
1810
|
-
|
|
1811
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
1812
|
-
properties: {
|
|
1813
|
-
child_access: {
|
|
1814
|
-
anyOf: [
|
|
1815
|
-
{
|
|
1816
|
-
type: 'object',
|
|
1817
|
-
properties: {
|
|
1818
|
-
type: {
|
|
1819
|
-
type: 'string',
|
|
1820
|
-
enum: ['ALL'],
|
|
1821
|
-
},
|
|
1822
|
-
},
|
|
1823
|
-
required: ['type'],
|
|
1824
|
-
},
|
|
1825
|
-
{
|
|
1826
|
-
type: 'object',
|
|
1827
|
-
properties: {
|
|
1828
|
-
type: {
|
|
1829
|
-
type: 'string',
|
|
1830
|
-
enum: ['NONE'],
|
|
1831
|
-
},
|
|
1832
|
-
},
|
|
1833
|
-
required: ['type'],
|
|
1834
|
-
},
|
|
1835
|
-
{
|
|
1836
|
-
type: 'object',
|
|
1837
|
-
properties: {
|
|
1838
|
-
contract_ids: {
|
|
1839
|
-
type: 'array',
|
|
1840
|
-
items: {
|
|
1841
|
-
type: 'string',
|
|
1842
|
-
},
|
|
1843
|
-
},
|
|
1844
|
-
type: {
|
|
1845
|
-
type: 'string',
|
|
1846
|
-
enum: ['CONTRACT_IDS'],
|
|
1847
|
-
},
|
|
1848
|
-
},
|
|
1849
|
-
required: ['contract_ids', 'type'],
|
|
1850
|
-
},
|
|
1851
|
-
],
|
|
1852
|
-
},
|
|
1853
|
-
},
|
|
1854
|
-
required: ['child_access'],
|
|
1408
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1855
1409
|
},
|
|
1856
1410
|
invoice_schedule: {
|
|
1857
1411
|
type: 'object',
|
|
@@ -1926,6 +1480,11 @@ exports.tool = {
|
|
|
1926
1480
|
product_id: {
|
|
1927
1481
|
type: 'string',
|
|
1928
1482
|
},
|
|
1483
|
+
rate_type: {
|
|
1484
|
+
type: 'string',
|
|
1485
|
+
description: '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.',
|
|
1486
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1487
|
+
},
|
|
1929
1488
|
rollover_fraction: {
|
|
1930
1489
|
type: 'number',
|
|
1931
1490
|
},
|
|
@@ -2025,51 +1584,7 @@ exports.tool = {
|
|
|
2025
1584
|
},
|
|
2026
1585
|
},
|
|
2027
1586
|
hierarchy_configuration: {
|
|
2028
|
-
|
|
2029
|
-
description: 'Optional configuration for commit hierarchy access control',
|
|
2030
|
-
properties: {
|
|
2031
|
-
child_access: {
|
|
2032
|
-
anyOf: [
|
|
2033
|
-
{
|
|
2034
|
-
type: 'object',
|
|
2035
|
-
properties: {
|
|
2036
|
-
type: {
|
|
2037
|
-
type: 'string',
|
|
2038
|
-
enum: ['ALL'],
|
|
2039
|
-
},
|
|
2040
|
-
},
|
|
2041
|
-
required: ['type'],
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
type: 'object',
|
|
2045
|
-
properties: {
|
|
2046
|
-
type: {
|
|
2047
|
-
type: 'string',
|
|
2048
|
-
enum: ['NONE'],
|
|
2049
|
-
},
|
|
2050
|
-
},
|
|
2051
|
-
required: ['type'],
|
|
2052
|
-
},
|
|
2053
|
-
{
|
|
2054
|
-
type: 'object',
|
|
2055
|
-
properties: {
|
|
2056
|
-
contract_ids: {
|
|
2057
|
-
type: 'array',
|
|
2058
|
-
items: {
|
|
2059
|
-
type: 'string',
|
|
2060
|
-
},
|
|
2061
|
-
},
|
|
2062
|
-
type: {
|
|
2063
|
-
type: 'string',
|
|
2064
|
-
enum: ['CONTRACT_IDS'],
|
|
2065
|
-
},
|
|
2066
|
-
},
|
|
2067
|
-
required: ['contract_ids', 'type'],
|
|
2068
|
-
},
|
|
2069
|
-
],
|
|
2070
|
-
},
|
|
2071
|
-
},
|
|
2072
|
-
required: ['child_access'],
|
|
1587
|
+
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
2073
1588
|
},
|
|
2074
1589
|
netsuite_sales_order_id: {
|
|
2075
1590
|
type: 'string',
|
|
@@ -2080,6 +1595,11 @@ exports.tool = {
|
|
|
2080
1595
|
product_id: {
|
|
2081
1596
|
type: 'string',
|
|
2082
1597
|
},
|
|
1598
|
+
rate_type: {
|
|
1599
|
+
type: 'string',
|
|
1600
|
+
description: '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.',
|
|
1601
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1602
|
+
},
|
|
2083
1603
|
},
|
|
2084
1604
|
required: ['credit_id'],
|
|
2085
1605
|
},
|
|
@@ -2088,62 +1608,11 @@ exports.tool = {
|
|
|
2088
1608
|
type: 'object',
|
|
2089
1609
|
properties: {
|
|
2090
1610
|
commit: {
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
type: 'array',
|
|
2095
|
-
description: '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.',
|
|
2096
|
-
items: {
|
|
2097
|
-
type: 'string',
|
|
2098
|
-
},
|
|
2099
|
-
},
|
|
2100
|
-
applicable_product_tags: {
|
|
2101
|
-
type: 'array',
|
|
2102
|
-
description: '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.',
|
|
2103
|
-
items: {
|
|
2104
|
-
type: 'string',
|
|
2105
|
-
},
|
|
2106
|
-
},
|
|
2107
|
-
description: {
|
|
2108
|
-
type: 'string',
|
|
2109
|
-
},
|
|
2110
|
-
name: {
|
|
2111
|
-
type: 'string',
|
|
2112
|
-
description: 'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2113
|
-
},
|
|
2114
|
-
product_id: {
|
|
2115
|
-
type: 'string',
|
|
2116
|
-
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
2117
|
-
},
|
|
2118
|
-
specifiers: {
|
|
2119
|
-
type: 'array',
|
|
2120
|
-
description: "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`.",
|
|
2121
|
-
items: {
|
|
2122
|
-
type: 'object',
|
|
2123
|
-
properties: {
|
|
2124
|
-
presentation_group_values: {
|
|
2125
|
-
type: 'object',
|
|
2126
|
-
additionalProperties: true,
|
|
2127
|
-
},
|
|
2128
|
-
pricing_group_values: {
|
|
2129
|
-
type: 'object',
|
|
2130
|
-
additionalProperties: true,
|
|
2131
|
-
},
|
|
2132
|
-
product_id: {
|
|
2133
|
-
type: 'string',
|
|
2134
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
2135
|
-
},
|
|
2136
|
-
product_tags: {
|
|
2137
|
-
type: 'array',
|
|
2138
|
-
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
2139
|
-
items: {
|
|
2140
|
-
type: 'string',
|
|
2141
|
-
},
|
|
2142
|
-
},
|
|
2143
|
-
},
|
|
2144
|
-
},
|
|
1611
|
+
allOf: [
|
|
1612
|
+
{
|
|
1613
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2145
1614
|
},
|
|
2146
|
-
|
|
1615
|
+
],
|
|
2147
1616
|
},
|
|
2148
1617
|
custom_credit_type_id: {
|
|
2149
1618
|
type: 'string',
|
|
@@ -2154,52 +1623,7 @@ exports.tool = {
|
|
|
2154
1623
|
description: '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.',
|
|
2155
1624
|
},
|
|
2156
1625
|
payment_gate_config: {
|
|
2157
|
-
|
|
2158
|
-
properties: {
|
|
2159
|
-
payment_gate_type: {
|
|
2160
|
-
type: 'string',
|
|
2161
|
-
description: '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.',
|
|
2162
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2163
|
-
},
|
|
2164
|
-
precalculated_tax_config: {
|
|
2165
|
-
type: 'object',
|
|
2166
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2167
|
-
properties: {
|
|
2168
|
-
tax_amount: {
|
|
2169
|
-
type: 'number',
|
|
2170
|
-
description: "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2171
|
-
},
|
|
2172
|
-
tax_name: {
|
|
2173
|
-
type: 'string',
|
|
2174
|
-
description: 'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2175
|
-
},
|
|
2176
|
-
},
|
|
2177
|
-
required: ['tax_amount'],
|
|
2178
|
-
},
|
|
2179
|
-
stripe_config: {
|
|
2180
|
-
type: 'object',
|
|
2181
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2182
|
-
properties: {
|
|
2183
|
-
payment_type: {
|
|
2184
|
-
type: 'string',
|
|
2185
|
-
description: 'If left blank, will default to INVOICE',
|
|
2186
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2187
|
-
},
|
|
2188
|
-
invoice_metadata: {
|
|
2189
|
-
type: 'object',
|
|
2190
|
-
description: 'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2191
|
-
additionalProperties: true,
|
|
2192
|
-
},
|
|
2193
|
-
},
|
|
2194
|
-
required: ['payment_type'],
|
|
2195
|
-
},
|
|
2196
|
-
tax_type: {
|
|
2197
|
-
type: 'string',
|
|
2198
|
-
description: '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.',
|
|
2199
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
2200
|
-
},
|
|
2201
|
-
},
|
|
2202
|
-
required: ['payment_gate_type'],
|
|
1626
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2203
1627
|
},
|
|
2204
1628
|
recharge_to_amount: {
|
|
2205
1629
|
type: 'number',
|
|
@@ -2246,6 +1670,11 @@ exports.tool = {
|
|
|
2246
1670
|
},
|
|
2247
1671
|
},
|
|
2248
1672
|
},
|
|
1673
|
+
rate_type: {
|
|
1674
|
+
type: 'string',
|
|
1675
|
+
description: 'If provided, updates the recurring commit to use the specified rate type when generating future commits.',
|
|
1676
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1677
|
+
},
|
|
2249
1678
|
},
|
|
2250
1679
|
required: ['recurring_commit_id'],
|
|
2251
1680
|
},
|
|
@@ -2274,6 +1703,11 @@ exports.tool = {
|
|
|
2274
1703
|
type: 'string',
|
|
2275
1704
|
format: 'date-time',
|
|
2276
1705
|
},
|
|
1706
|
+
rate_type: {
|
|
1707
|
+
type: 'string',
|
|
1708
|
+
description: 'If provided, updates the recurring credit to use the specified rate type when generating future credits.',
|
|
1709
|
+
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1710
|
+
},
|
|
2277
1711
|
},
|
|
2278
1712
|
required: ['recurring_credit_id'],
|
|
2279
1713
|
},
|
|
@@ -2361,72 +1795,14 @@ exports.tool = {
|
|
|
2361
1795
|
type: 'object',
|
|
2362
1796
|
properties: {
|
|
2363
1797
|
commit: {
|
|
2364
|
-
|
|
2365
|
-
properties: {
|
|
2366
|
-
description: {
|
|
2367
|
-
type: 'string',
|
|
2368
|
-
},
|
|
2369
|
-
name: {
|
|
2370
|
-
type: 'string',
|
|
2371
|
-
description: 'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2372
|
-
},
|
|
2373
|
-
product_id: {
|
|
2374
|
-
type: 'string',
|
|
2375
|
-
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
2376
|
-
},
|
|
2377
|
-
},
|
|
1798
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2378
1799
|
},
|
|
2379
1800
|
is_enabled: {
|
|
2380
1801
|
type: 'boolean',
|
|
2381
1802
|
description: '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.',
|
|
2382
1803
|
},
|
|
2383
1804
|
payment_gate_config: {
|
|
2384
|
-
|
|
2385
|
-
properties: {
|
|
2386
|
-
payment_gate_type: {
|
|
2387
|
-
type: 'string',
|
|
2388
|
-
description: '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.',
|
|
2389
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2390
|
-
},
|
|
2391
|
-
precalculated_tax_config: {
|
|
2392
|
-
type: 'object',
|
|
2393
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2394
|
-
properties: {
|
|
2395
|
-
tax_amount: {
|
|
2396
|
-
type: 'number',
|
|
2397
|
-
description: "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2398
|
-
},
|
|
2399
|
-
tax_name: {
|
|
2400
|
-
type: 'string',
|
|
2401
|
-
description: 'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2402
|
-
},
|
|
2403
|
-
},
|
|
2404
|
-
required: ['tax_amount'],
|
|
2405
|
-
},
|
|
2406
|
-
stripe_config: {
|
|
2407
|
-
type: 'object',
|
|
2408
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2409
|
-
properties: {
|
|
2410
|
-
payment_type: {
|
|
2411
|
-
type: 'string',
|
|
2412
|
-
description: 'If left blank, will default to INVOICE',
|
|
2413
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2414
|
-
},
|
|
2415
|
-
invoice_metadata: {
|
|
2416
|
-
type: 'object',
|
|
2417
|
-
description: 'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2418
|
-
additionalProperties: true,
|
|
2419
|
-
},
|
|
2420
|
-
},
|
|
2421
|
-
required: ['payment_type'],
|
|
2422
|
-
},
|
|
2423
|
-
tax_type: {
|
|
2424
|
-
type: 'string',
|
|
2425
|
-
description: '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.',
|
|
2426
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'PRECALCULATED'],
|
|
2427
|
-
},
|
|
2428
|
-
},
|
|
2429
|
-
required: ['payment_gate_type'],
|
|
1805
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2430
1806
|
},
|
|
2431
1807
|
threshold_amount: {
|
|
2432
1808
|
type: 'number',
|
|
@@ -2476,6 +1852,76 @@ exports.tool = {
|
|
|
2476
1852
|
},
|
|
2477
1853
|
required: ['contract_id', 'customer_id'],
|
|
2478
1854
|
$defs: {
|
|
1855
|
+
commit_hierarchy_configuration: {
|
|
1856
|
+
type: 'object',
|
|
1857
|
+
properties: {
|
|
1858
|
+
child_access: {
|
|
1859
|
+
anyOf: [
|
|
1860
|
+
{
|
|
1861
|
+
type: 'object',
|
|
1862
|
+
properties: {
|
|
1863
|
+
type: {
|
|
1864
|
+
type: 'string',
|
|
1865
|
+
enum: ['ALL'],
|
|
1866
|
+
},
|
|
1867
|
+
},
|
|
1868
|
+
required: ['type'],
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
type: 'object',
|
|
1872
|
+
properties: {
|
|
1873
|
+
type: {
|
|
1874
|
+
type: 'string',
|
|
1875
|
+
enum: ['NONE'],
|
|
1876
|
+
},
|
|
1877
|
+
},
|
|
1878
|
+
required: ['type'],
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
type: 'object',
|
|
1882
|
+
properties: {
|
|
1883
|
+
contract_ids: {
|
|
1884
|
+
type: 'array',
|
|
1885
|
+
items: {
|
|
1886
|
+
type: 'string',
|
|
1887
|
+
},
|
|
1888
|
+
},
|
|
1889
|
+
type: {
|
|
1890
|
+
type: 'string',
|
|
1891
|
+
enum: ['CONTRACT_IDS'],
|
|
1892
|
+
},
|
|
1893
|
+
},
|
|
1894
|
+
required: ['contract_ids', 'type'],
|
|
1895
|
+
},
|
|
1896
|
+
],
|
|
1897
|
+
},
|
|
1898
|
+
},
|
|
1899
|
+
required: ['child_access'],
|
|
1900
|
+
},
|
|
1901
|
+
commit_specifier_input: {
|
|
1902
|
+
type: 'object',
|
|
1903
|
+
properties: {
|
|
1904
|
+
presentation_group_values: {
|
|
1905
|
+
type: 'object',
|
|
1906
|
+
additionalProperties: true,
|
|
1907
|
+
},
|
|
1908
|
+
pricing_group_values: {
|
|
1909
|
+
type: 'object',
|
|
1910
|
+
additionalProperties: true,
|
|
1911
|
+
},
|
|
1912
|
+
product_id: {
|
|
1913
|
+
type: 'string',
|
|
1914
|
+
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
1915
|
+
},
|
|
1916
|
+
product_tags: {
|
|
1917
|
+
type: 'array',
|
|
1918
|
+
description: 'If provided, the specifier will only apply to products with all the specified tags.',
|
|
1919
|
+
items: {
|
|
1920
|
+
type: 'string',
|
|
1921
|
+
},
|
|
1922
|
+
},
|
|
1923
|
+
},
|
|
1924
|
+
},
|
|
2479
1925
|
tier: {
|
|
2480
1926
|
type: 'object',
|
|
2481
1927
|
properties: {
|
|
@@ -2488,6 +1934,122 @@ exports.tool = {
|
|
|
2488
1934
|
},
|
|
2489
1935
|
required: ['price'],
|
|
2490
1936
|
},
|
|
1937
|
+
prepaid_balance_threshold_configuration_v2: {
|
|
1938
|
+
type: 'object',
|
|
1939
|
+
properties: {
|
|
1940
|
+
commit: {
|
|
1941
|
+
allOf: [
|
|
1942
|
+
{
|
|
1943
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
1944
|
+
},
|
|
1945
|
+
],
|
|
1946
|
+
},
|
|
1947
|
+
is_enabled: {
|
|
1948
|
+
type: 'boolean',
|
|
1949
|
+
description: '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.',
|
|
1950
|
+
},
|
|
1951
|
+
payment_gate_config: {
|
|
1952
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
1953
|
+
},
|
|
1954
|
+
recharge_to_amount: {
|
|
1955
|
+
type: 'number',
|
|
1956
|
+
description: 'Specify the amount the balance should be recharged to.',
|
|
1957
|
+
},
|
|
1958
|
+
threshold_amount: {
|
|
1959
|
+
type: 'number',
|
|
1960
|
+
description: "Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
1961
|
+
},
|
|
1962
|
+
custom_credit_type_id: {
|
|
1963
|
+
type: 'string',
|
|
1964
|
+
description: '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.',
|
|
1965
|
+
},
|
|
1966
|
+
},
|
|
1967
|
+
required: ['commit', 'is_enabled', 'payment_gate_config', 'recharge_to_amount', 'threshold_amount'],
|
|
1968
|
+
},
|
|
1969
|
+
update_base_threshold_commit: {
|
|
1970
|
+
type: 'object',
|
|
1971
|
+
properties: {
|
|
1972
|
+
description: {
|
|
1973
|
+
type: 'string',
|
|
1974
|
+
},
|
|
1975
|
+
name: {
|
|
1976
|
+
type: 'string',
|
|
1977
|
+
description: 'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
1978
|
+
},
|
|
1979
|
+
product_id: {
|
|
1980
|
+
type: 'string',
|
|
1981
|
+
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
1982
|
+
},
|
|
1983
|
+
},
|
|
1984
|
+
},
|
|
1985
|
+
payment_gate_config_v2: {
|
|
1986
|
+
type: 'object',
|
|
1987
|
+
properties: {
|
|
1988
|
+
payment_gate_type: {
|
|
1989
|
+
type: 'string',
|
|
1990
|
+
description: '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.',
|
|
1991
|
+
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
1992
|
+
},
|
|
1993
|
+
precalculated_tax_config: {
|
|
1994
|
+
type: 'object',
|
|
1995
|
+
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
1996
|
+
properties: {
|
|
1997
|
+
tax_amount: {
|
|
1998
|
+
type: 'number',
|
|
1999
|
+
description: "Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2000
|
+
},
|
|
2001
|
+
tax_name: {
|
|
2002
|
+
type: 'string',
|
|
2003
|
+
description: 'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2004
|
+
},
|
|
2005
|
+
},
|
|
2006
|
+
required: ['tax_amount'],
|
|
2007
|
+
},
|
|
2008
|
+
stripe_config: {
|
|
2009
|
+
type: 'object',
|
|
2010
|
+
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2011
|
+
properties: {
|
|
2012
|
+
payment_type: {
|
|
2013
|
+
type: 'string',
|
|
2014
|
+
description: 'If left blank, will default to INVOICE',
|
|
2015
|
+
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2016
|
+
},
|
|
2017
|
+
invoice_metadata: {
|
|
2018
|
+
type: 'object',
|
|
2019
|
+
description: 'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2020
|
+
additionalProperties: true,
|
|
2021
|
+
},
|
|
2022
|
+
},
|
|
2023
|
+
required: ['payment_type'],
|
|
2024
|
+
},
|
|
2025
|
+
tax_type: {
|
|
2026
|
+
type: 'string',
|
|
2027
|
+
description: '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.',
|
|
2028
|
+
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
2029
|
+
},
|
|
2030
|
+
},
|
|
2031
|
+
required: ['payment_gate_type'],
|
|
2032
|
+
},
|
|
2033
|
+
spend_threshold_configuration_v2: {
|
|
2034
|
+
type: 'object',
|
|
2035
|
+
properties: {
|
|
2036
|
+
commit: {
|
|
2037
|
+
$ref: '#/$defs/update_base_threshold_commit',
|
|
2038
|
+
},
|
|
2039
|
+
is_enabled: {
|
|
2040
|
+
type: 'boolean',
|
|
2041
|
+
description: '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.',
|
|
2042
|
+
},
|
|
2043
|
+
payment_gate_config: {
|
|
2044
|
+
$ref: '#/$defs/payment_gate_config_v2',
|
|
2045
|
+
},
|
|
2046
|
+
threshold_amount: {
|
|
2047
|
+
type: 'number',
|
|
2048
|
+
description: "Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
2049
|
+
},
|
|
2050
|
+
},
|
|
2051
|
+
required: ['commit', 'is_enabled', 'payment_gate_config', 'threshold_amount'],
|
|
2052
|
+
},
|
|
2491
2053
|
},
|
|
2492
2054
|
},
|
|
2493
2055
|
annotations: {},
|