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