@metronome/mcp 2.2.0 → 3.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/LICENSE +1 -1
- package/README.md +16 -1323
- package/code-tool-types.d.mts +7 -9
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +7 -9
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +2 -44
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +2 -44
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +59 -7
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +60 -8
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +4 -3
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +4 -3
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +1 -1
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +1 -1
- package/http.d.mts.map +1 -1
- package/http.d.ts.map +1 -1
- package/http.js +2 -22
- package/http.js.map +1 -1
- package/http.mjs +2 -22
- package/http.mjs.map +1 -1
- package/index.js +4 -40
- package/index.js.map +1 -1
- package/index.mjs +4 -40
- package/index.mjs.map +1 -1
- package/options.d.mts +0 -9
- package/options.d.mts.map +1 -1
- package/options.d.ts +0 -9
- package/options.d.ts.map +1 -1
- package/options.js +6 -361
- package/options.js.map +1 -1
- package/options.mjs +6 -361
- package/options.mjs.map +1 -1
- package/package.json +11 -51
- package/server.d.mts +3 -8
- package/server.d.mts.map +1 -1
- package/server.d.ts +3 -8
- package/server.d.ts.map +1 -1
- package/server.js +12 -65
- package/server.js.map +1 -1
- package/server.mjs +11 -62
- package/server.mjs.map +1 -1
- package/src/code-tool-types.ts +7 -9
- package/src/code-tool.ts +64 -11
- package/src/docs-search-tool.ts +1 -1
- package/src/http.ts +3 -24
- package/src/index.ts +5 -52
- package/src/options.ts +7 -388
- package/src/server.ts +12 -72
- package/src/stdio.ts +2 -3
- package/src/{tools/types.ts → types.ts} +1 -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 +2 -2
- package/stdio.mjs.map +1 -1
- package/{tools/types.d.mts → types.d.mts} +1 -1
- package/types.d.mts.map +1 -0
- package/{tools/types.d.ts → types.d.ts} +1 -1
- package/types.d.ts.map +1 -0
- package/types.js.map +1 -0
- package/types.mjs.map +1 -0
- package/compat.d.mts +0 -58
- package/compat.d.mts.map +0 -1
- package/compat.d.ts +0 -58
- package/compat.d.ts.map +0 -1
- package/compat.js +0 -387
- package/compat.js.map +0 -1
- package/compat.mjs +0 -378
- package/compat.mjs.map +0 -1
- package/dynamic-tools.d.mts +0 -12
- package/dynamic-tools.d.mts.map +0 -1
- package/dynamic-tools.d.ts +0 -12
- package/dynamic-tools.d.ts.map +0 -1
- package/dynamic-tools.js +0 -135
- package/dynamic-tools.js.map +0 -1
- package/dynamic-tools.mjs +0 -132
- package/dynamic-tools.mjs.map +0 -1
- package/filtering.d.mts +0 -3
- package/filtering.d.mts.map +0 -1
- package/filtering.d.ts +0 -3
- package/filtering.d.ts.map +0 -1
- package/filtering.js +0 -24
- package/filtering.js.map +0 -1
- package/filtering.mjs +0 -16
- package/filtering.mjs.map +0 -1
- package/src/compat.ts +0 -483
- package/src/dynamic-tools.ts +0 -159
- package/src/filtering.ts +0 -18
- package/src/tools/index.ts +0 -289
- package/src/tools/v1/alerts/archive-v1-alerts.ts +0 -57
- package/src/tools/v1/alerts/create-v1-alerts.ts +0 -179
- package/src/tools/v1/audit-logs/list-v1-audit-logs.ts +0 -86
- package/src/tools/v1/billable-metrics/archive-v1-billable-metrics.ts +0 -52
- package/src/tools/v1/billable-metrics/create-v1-billable-metrics.ts +0 -150
- package/src/tools/v1/billable-metrics/list-v1-billable-metrics.ts +0 -64
- package/src/tools/v1/billable-metrics/retrieve-v1-billable-metrics.ts +0 -54
- package/src/tools/v1/contracts/add-manual-balance-entry-v1-contracts.ts +0 -72
- package/src/tools/v1/contracts/amend-v1-contracts.ts +0 -1030
- package/src/tools/v1/contracts/archive-v1-contracts.ts +0 -61
- package/src/tools/v1/contracts/create-historical-invoices-v1-contracts.ts +0 -148
- package/src/tools/v1/contracts/create-v1-contracts.ts +0 -1780
- package/src/tools/v1/contracts/list-balances-v1-contracts.ts +0 -93
- package/src/tools/v1/contracts/list-v1-contracts.ts +0 -71
- package/src/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.ts +0 -65
- package/src/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.ts +0 -58
- package/src/tools/v1/contracts/products/archive-contracts-v1-products.ts +0 -55
- package/src/tools/v1/contracts/products/create-contracts-v1-products.ts +0 -164
- package/src/tools/v1/contracts/products/list-contracts-v1-products.ts +0 -63
- package/src/tools/v1/contracts/products/retrieve-contracts-v1-products.ts +0 -54
- package/src/tools/v1/contracts/products/update-contracts-v1-products.ts +0 -171
- package/src/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.ts +0 -54
- package/src/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.ts +0 -106
- package/src/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.ts +0 -62
- package/src/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.ts +0 -69
- package/src/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.ts +0 -62
- package/src/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.ts +0 -61
- package/src/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.ts +0 -72
- package/src/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.ts +0 -173
- package/src/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.ts +0 -164
- package/src/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.ts +0 -107
- package/src/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.ts +0 -54
- package/src/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.ts +0 -106
- package/src/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.ts +0 -84
- package/src/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.ts +0 -113
- package/src/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.ts +0 -60
- package/src/tools/v1/contracts/retrieve-v1-contracts.ts +0 -58
- package/src/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.ts +0 -109
- package/src/tools/v1/contracts/set-usage-filter-v1-contracts.ts +0 -55
- package/src/tools/v1/contracts/update-end-date-v1-contracts.ts +0 -68
- package/src/tools/v1/credit-grants/create-v1-credit-grants.ts +0 -188
- package/src/tools/v1/credit-grants/edit-v1-credit-grants.ts +0 -66
- package/src/tools/v1/credit-grants/list-entries-v1-credit-grants.ts +0 -86
- package/src/tools/v1/credit-grants/list-v1-credit-grants.ts +0 -92
- package/src/tools/v1/credit-grants/void-v1-credit-grants.ts +0 -60
- package/src/tools/v1/custom-fields/add-key-v1-custom-fields.ts +0 -65
- package/src/tools/v1/custom-fields/delete-values-v1-custom-fields.ts +0 -68
- package/src/tools/v1/custom-fields/list-keys-v1-custom-fields.ts +0 -81
- package/src/tools/v1/custom-fields/remove-key-v1-custom-fields.ts +0 -62
- package/src/tools/v1/custom-fields/set-values-v1-custom-fields.ts +0 -67
- package/src/tools/v1/customers/alerts/list-customers-v1-alerts.ts +0 -67
- package/src/tools/v1/customers/alerts/reset-customers-v1-alerts.ts +0 -44
- package/src/tools/v1/customers/alerts/retrieve-customers-v1-alerts.ts +0 -91
- package/src/tools/v1/customers/archive-v1-customers.ts +0 -52
- package/src/tools/v1/customers/billing-config/create-customers-v1-billing-config.ts +0 -108
- package/src/tools/v1/customers/billing-config/delete-customers-v1-billing-config.ts +0 -55
- package/src/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.ts +0 -70
- package/src/tools/v1/customers/commits/create-customers-v1-commits.ts +0 -274
- package/src/tools/v1/customers/commits/list-customers-v1-commits.ts +0 -90
- package/src/tools/v1/customers/commits/update-end-date-customers-v1-commits.ts +0 -71
- package/src/tools/v1/customers/create-v1-customers.ts +0 -215
- package/src/tools/v1/customers/credits/create-customers-v1-credits.ts +0 -182
- package/src/tools/v1/customers/credits/list-customers-v1-credits.ts +0 -90
- package/src/tools/v1/customers/credits/update-end-date-customers-v1-credits.ts +0 -65
- package/src/tools/v1/customers/invoices/add-charge-customers-v1-invoices.ts +0 -87
- package/src/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.ts +0 -91
- package/src/tools/v1/customers/invoices/list-customers-v1-invoices.ts +0 -85
- package/src/tools/v1/customers/invoices/retrieve-customers-v1-invoices.ts +0 -54
- package/src/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.ts +0 -43
- package/src/tools/v1/customers/list-billable-metrics-v1-customers.ts +0 -72
- package/src/tools/v1/customers/list-costs-v1-customers.ts +0 -73
- package/src/tools/v1/customers/list-v1-customers.ts +0 -83
- package/src/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.ts +0 -65
- package/src/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.ts +0 -58
- package/src/tools/v1/customers/plans/add-customers-v1-plans.ts +0 -155
- package/src/tools/v1/customers/plans/end-customers-v1-plans.ts +0 -71
- package/src/tools/v1/customers/plans/list-customers-v1-plans.ts +0 -63
- package/src/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.ts +0 -66
- package/src/tools/v1/customers/preview-events-v1-customers.ts +0 -82
- package/src/tools/v1/customers/retrieve-billing-configurations-v1-customers.ts +0 -57
- package/src/tools/v1/customers/retrieve-v1-customers.ts +0 -54
- package/src/tools/v1/customers/set-billing-configurations-v1-customers.ts +0 -101
- package/src/tools/v1/customers/set-ingest-aliases-v1-customers.ts +0 -45
- package/src/tools/v1/customers/set-name-v1-customers.ts +0 -57
- package/src/tools/v1/customers/update-config-v1-customers.ts +0 -48
- package/src/tools/v1/dashboards/get-embeddable-url-v1-dashboards.ts +0 -141
- package/src/tools/v1/invoices/regenerate-v1-invoices.ts +0 -53
- package/src/tools/v1/invoices/void-v1-invoices.ts +0 -53
- package/src/tools/v1/payments/attempt-v1-payments.ts +0 -55
- package/src/tools/v1/payments/cancel-v1-payments.ts +0 -55
- package/src/tools/v1/payments/list-v1-payments.ts +0 -76
- package/src/tools/v1/plans/get-details-v1-plans.ts +0 -54
- package/src/tools/v1/plans/list-charges-v1-plans.ts +0 -63
- package/src/tools/v1/plans/list-customers-v1-plans.ts +0 -69
- package/src/tools/v1/plans/list-v1-plans.ts +0 -60
- package/src/tools/v1/pricing-units/list-v1-pricing-units.ts +0 -60
- package/src/tools/v1/services/list-v1-services.ts +0 -51
- package/src/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.ts +0 -67
- package/src/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.ts +0 -55
- package/src/tools/v1/settings/upsert-avalara-credentials-v1-settings.ts +0 -77
- package/src/tools/v1/usage/ingest-v1-usage.ts +0 -62
- package/src/tools/v1/usage/list-v1-usage.ts +0 -108
- package/src/tools/v1/usage/list-with-groups-v1-usage.ts +0 -101
- package/src/tools/v1/usage/search-v1-usage.ts +0 -56
- package/src/tools/v2/contracts/edit-commit-v2-contracts.ts +0 -306
- package/src/tools/v2/contracts/edit-credit-v2-contracts.ts +0 -238
- package/src/tools/v2/contracts/edit-v2-contracts.ts +0 -2336
- package/src/tools/v2/contracts/get-edit-history-v2-contracts.ts +0 -48
- package/src/tools/v2/contracts/list-v2-contracts.ts +0 -71
- package/src/tools/v2/contracts/retrieve-v2-contracts.ts +0 -64
- package/src/tools.ts +0 -1
- package/tools/index.d.mts +0 -10
- package/tools/index.d.mts.map +0 -1
- package/tools/index.d.ts +0 -10
- package/tools/index.d.ts.map +0 -1
- package/tools/index.js +0 -273
- package/tools/index.js.map +0 -1
- package/tools/index.mjs +0 -266
- package/tools/index.mjs.map +0 -1
- package/tools/types.d.mts.map +0 -1
- package/tools/types.d.ts.map +0 -1
- package/tools/types.js.map +0 -1
- package/tools/types.mjs.map +0 -1
- package/tools/v1/alerts/archive-v1-alerts.d.mts +0 -51
- package/tools/v1/alerts/archive-v1-alerts.d.mts.map +0 -1
- package/tools/v1/alerts/archive-v1-alerts.d.ts +0 -51
- package/tools/v1/alerts/archive-v1-alerts.d.ts.map +0 -1
- package/tools/v1/alerts/archive-v1-alerts.js +0 -57
- package/tools/v1/alerts/archive-v1-alerts.js.map +0 -1
- package/tools/v1/alerts/archive-v1-alerts.mjs +0 -50
- package/tools/v1/alerts/archive-v1-alerts.mjs.map +0 -1
- package/tools/v1/alerts/create-v1-alerts.d.mts +0 -51
- package/tools/v1/alerts/create-v1-alerts.d.mts.map +0 -1
- package/tools/v1/alerts/create-v1-alerts.d.ts +0 -51
- package/tools/v1/alerts/create-v1-alerts.d.ts.map +0 -1
- package/tools/v1/alerts/create-v1-alerts.js +0 -167
- package/tools/v1/alerts/create-v1-alerts.js.map +0 -1
- package/tools/v1/alerts/create-v1-alerts.mjs +0 -160
- package/tools/v1/alerts/create-v1-alerts.mjs.map +0 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.d.mts +0 -51
- package/tools/v1/audit-logs/list-v1-audit-logs.d.mts.map +0 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.d.ts +0 -51
- package/tools/v1/audit-logs/list-v1-audit-logs.d.ts.map +0 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.js +0 -83
- package/tools/v1/audit-logs/list-v1-audit-logs.js.map +0 -1
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs +0 -76
- package/tools/v1/audit-logs/list-v1-audit-logs.mjs.map +0 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts +0 -51
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.mts.map +0 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts +0 -51
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.d.ts.map +0 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js +0 -52
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.js.map +0 -1
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs +0 -45
- package/tools/v1/billable-metrics/archive-v1-billable-metrics.mjs.map +0 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts +0 -51
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.mts.map +0 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts +0 -51
- package/tools/v1/billable-metrics/create-v1-billable-metrics.d.ts.map +0 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js +0 -141
- package/tools/v1/billable-metrics/create-v1-billable-metrics.js.map +0 -1
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs +0 -134
- package/tools/v1/billable-metrics/create-v1-billable-metrics.mjs.map +0 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts +0 -51
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.mts.map +0 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts +0 -51
- package/tools/v1/billable-metrics/list-v1-billable-metrics.d.ts.map +0 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js +0 -64
- package/tools/v1/billable-metrics/list-v1-billable-metrics.js.map +0 -1
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs +0 -57
- package/tools/v1/billable-metrics/list-v1-billable-metrics.mjs.map +0 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts +0 -51
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.mts.map +0 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts +0 -51
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.d.ts.map +0 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js +0 -54
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.js.map +0 -1
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs +0 -47
- package/tools/v1/billable-metrics/retrieve-v1-billable-metrics.mjs.map +0 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js +0 -66
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs +0 -62
- package/tools/v1/contracts/add-manual-balance-entry-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/amend-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/amend-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/amend-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/amend-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/amend-v1-contracts.js +0 -971
- package/tools/v1/contracts/amend-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/amend-v1-contracts.mjs +0 -964
- package/tools/v1/contracts/amend-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/archive-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/archive-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/archive-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/archive-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/archive-v1-contracts.js +0 -61
- package/tools/v1/contracts/archive-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/archive-v1-contracts.mjs +0 -54
- package/tools/v1/contracts/archive-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js +0 -149
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs +0 -142
- package/tools/v1/contracts/create-historical-invoices-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/create-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/create-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/create-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/create-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/create-v1-contracts.js +0 -1670
- package/tools/v1/contracts/create-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/create-v1-contracts.mjs +0 -1663
- package/tools/v1/contracts/create-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/list-balances-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/list-balances-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/list-balances-v1-contracts.js +0 -93
- package/tools/v1/contracts/list-balances-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/list-balances-v1-contracts.mjs +0 -86
- package/tools/v1/contracts/list-balances-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/list-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/list-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/list-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/list-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/list-v1-contracts.js +0 -68
- package/tools/v1/contracts/list-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/list-v1-contracts.mjs +0 -61
- package/tools/v1/contracts/list-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts +0 -51
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts +0 -51
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js +0 -62
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.js.map +0 -1
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs +0 -55
- package/tools/v1/contracts/named-schedules/retrieve-contracts-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts +0 -51
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts +0 -51
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js +0 -53
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.js.map +0 -1
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs +0 -49
- package/tools/v1/contracts/named-schedules/update-contracts-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts +0 -51
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.mts.map +0 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts +0 -51
- package/tools/v1/contracts/products/archive-contracts-v1-products.d.ts.map +0 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.js +0 -53
- package/tools/v1/contracts/products/archive-contracts-v1-products.js.map +0 -1
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs +0 -46
- package/tools/v1/contracts/products/archive-contracts-v1-products.mjs.map +0 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.mts +0 -51
- package/tools/v1/contracts/products/create-contracts-v1-products.d.mts.map +0 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.d.ts +0 -51
- package/tools/v1/contracts/products/create-contracts-v1-products.d.ts.map +0 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.js +0 -158
- package/tools/v1/contracts/products/create-contracts-v1-products.js.map +0 -1
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs +0 -151
- package/tools/v1/contracts/products/create-contracts-v1-products.mjs.map +0 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.d.mts +0 -51
- package/tools/v1/contracts/products/list-contracts-v1-products.d.mts.map +0 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.d.ts +0 -51
- package/tools/v1/contracts/products/list-contracts-v1-products.d.ts.map +0 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.js +0 -63
- package/tools/v1/contracts/products/list-contracts-v1-products.js.map +0 -1
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs +0 -56
- package/tools/v1/contracts/products/list-contracts-v1-products.mjs.map +0 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts +0 -51
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.mts.map +0 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts +0 -51
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.d.ts.map +0 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js +0 -52
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.js.map +0 -1
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs +0 -45
- package/tools/v1/contracts/products/retrieve-contracts-v1-products.mjs.map +0 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.d.mts +0 -51
- package/tools/v1/contracts/products/update-contracts-v1-products.d.mts.map +0 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.d.ts +0 -51
- package/tools/v1/contracts/products/update-contracts-v1-products.d.ts.map +0 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.js +0 -159
- package/tools/v1/contracts/products/update-contracts-v1-products.js.map +0 -1
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs +0 -152
- package/tools/v1/contracts/products/update-contracts-v1-products.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js +0 -52
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs +0 -45
- package/tools/v1/contracts/rate-cards/archive-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js +0 -102
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs +0 -95
- package/tools/v1/contracts/rate-cards/create-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js +0 -62
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs +0 -55
- package/tools/v1/contracts/rate-cards/list-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js +0 -66
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.js.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs +0 -59
- package/tools/v1/contracts/rate-cards/named-schedules/retrieve-rate-cards-contracts-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js +0 -57
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.js.map +0 -1
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs +0 -53
- package/tools/v1/contracts/rate-cards/named-schedules/update-rate-cards-contracts-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js +0 -59
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.js.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs +0 -52
- package/tools/v1/contracts/rate-cards/product-orders/set-rate-cards-contracts-v1-product-orders.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js +0 -70
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.js.map +0 -1
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs +0 -63
- package/tools/v1/contracts/rate-cards/product-orders/update-rate-cards-contracts-v1-product-orders.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js +0 -163
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.js.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs +0 -156
- package/tools/v1/contracts/rate-cards/rates/add-many-rate-cards-contracts-v1-rates.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js +0 -155
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.js.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs +0 -148
- package/tools/v1/contracts/rate-cards/rates/add-rate-cards-contracts-v1-rates.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js +0 -102
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.js.map +0 -1
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs +0 -95
- package/tools/v1/contracts/rate-cards/rates/list-rate-cards-contracts-v1-rates.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js +0 -52
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs +0 -45
- package/tools/v1/contracts/rate-cards/retrieve-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js +0 -99
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs +0 -92
- package/tools/v1/contracts/rate-cards/retrieve-rate-schedule-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts +0 -51
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.mts.map +0 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts +0 -51
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.d.ts.map +0 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js +0 -81
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.js.map +0 -1
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs +0 -74
- package/tools/v1/contracts/rate-cards/update-contracts-v1-rate-cards.mjs.map +0 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js +0 -105
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs +0 -98
- package/tools/v1/contracts/retrieve-rate-schedule-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js +0 -58
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs +0 -51
- package/tools/v1/contracts/retrieve-subscription-quantity-history-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/retrieve-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/retrieve-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/retrieve-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/retrieve-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/retrieve-v1-contracts.js +0 -57
- package/tools/v1/contracts/retrieve-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/retrieve-v1-contracts.mjs +0 -50
- package/tools/v1/contracts/retrieve-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js +0 -108
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs +0 -101
- package/tools/v1/contracts/schedule-pro-services-invoice-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/set-usage-filter-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.js +0 -51
- package/tools/v1/contracts/set-usage-filter-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs +0 -47
- package/tools/v1/contracts/set-usage-filter-v1-contracts.mjs.map +0 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.d.mts +0 -51
- package/tools/v1/contracts/update-end-date-v1-contracts.d.mts.map +0 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.d.ts +0 -51
- package/tools/v1/contracts/update-end-date-v1-contracts.d.ts.map +0 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.js +0 -66
- package/tools/v1/contracts/update-end-date-v1-contracts.js.map +0 -1
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs +0 -59
- package/tools/v1/contracts/update-end-date-v1-contracts.mjs.map +0 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.d.mts +0 -51
- package/tools/v1/credit-grants/create-v1-credit-grants.d.mts.map +0 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.d.ts +0 -51
- package/tools/v1/credit-grants/create-v1-credit-grants.d.ts.map +0 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.js +0 -184
- package/tools/v1/credit-grants/create-v1-credit-grants.js.map +0 -1
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs +0 -177
- package/tools/v1/credit-grants/create-v1-credit-grants.mjs.map +0 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts +0 -51
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.mts.map +0 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts +0 -51
- package/tools/v1/credit-grants/edit-v1-credit-grants.d.ts.map +0 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.js +0 -66
- package/tools/v1/credit-grants/edit-v1-credit-grants.js.map +0 -1
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs +0 -59
- package/tools/v1/credit-grants/edit-v1-credit-grants.mjs.map +0 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts +0 -51
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.mts.map +0 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts +0 -51
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.d.ts.map +0 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js +0 -83
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.js.map +0 -1
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs +0 -76
- package/tools/v1/credit-grants/list-entries-v1-credit-grants.mjs.map +0 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.d.mts +0 -51
- package/tools/v1/credit-grants/list-v1-credit-grants.d.mts.map +0 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.d.ts +0 -51
- package/tools/v1/credit-grants/list-v1-credit-grants.d.ts.map +0 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.js +0 -89
- package/tools/v1/credit-grants/list-v1-credit-grants.js.map +0 -1
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs +0 -82
- package/tools/v1/credit-grants/list-v1-credit-grants.mjs.map +0 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.d.mts +0 -51
- package/tools/v1/credit-grants/void-v1-credit-grants.d.mts.map +0 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.d.ts +0 -51
- package/tools/v1/credit-grants/void-v1-credit-grants.d.ts.map +0 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.js +0 -60
- package/tools/v1/credit-grants/void-v1-credit-grants.js.map +0 -1
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs +0 -53
- package/tools/v1/credit-grants/void-v1-credit-grants.mjs.map +0 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts +0 -51
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.mts.map +0 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts +0 -51
- package/tools/v1/custom-fields/add-key-v1-custom-fields.d.ts.map +0 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.js +0 -61
- package/tools/v1/custom-fields/add-key-v1-custom-fields.js.map +0 -1
- package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs +0 -57
- package/tools/v1/custom-fields/add-key-v1-custom-fields.mjs.map +0 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts +0 -51
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.mts.map +0 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts +0 -51
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.d.ts.map +0 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.js +0 -64
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.js.map +0 -1
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs +0 -60
- package/tools/v1/custom-fields/delete-values-v1-custom-fields.mjs.map +0 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts +0 -51
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.mts.map +0 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts +0 -51
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.d.ts.map +0 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js +0 -81
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.js.map +0 -1
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs +0 -74
- package/tools/v1/custom-fields/list-keys-v1-custom-fields.mjs.map +0 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts +0 -51
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.mts.map +0 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts +0 -51
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.d.ts.map +0 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.js +0 -58
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.js.map +0 -1
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs +0 -54
- package/tools/v1/custom-fields/remove-key-v1-custom-fields.mjs.map +0 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts +0 -51
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.mts.map +0 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts +0 -51
- package/tools/v1/custom-fields/set-values-v1-custom-fields.d.ts.map +0 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.js +0 -63
- package/tools/v1/custom-fields/set-values-v1-custom-fields.js.map +0 -1
- package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs +0 -59
- package/tools/v1/custom-fields/set-values-v1-custom-fields.mjs.map +0 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts +0 -51
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.mts.map +0 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts +0 -51
- package/tools/v1/customers/alerts/list-customers-v1-alerts.d.ts.map +0 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js +0 -66
- package/tools/v1/customers/alerts/list-customers-v1-alerts.js.map +0 -1
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs +0 -59
- package/tools/v1/customers/alerts/list-customers-v1-alerts.mjs.map +0 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts +0 -51
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.mts.map +0 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts +0 -51
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.d.ts.map +0 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.js +0 -40
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.js.map +0 -1
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs +0 -36
- package/tools/v1/customers/alerts/reset-customers-v1-alerts.mjs.map +0 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts +0 -51
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.mts.map +0 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts +0 -51
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.d.ts.map +0 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js +0 -88
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.js.map +0 -1
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs +0 -81
- package/tools/v1/customers/alerts/retrieve-customers-v1-alerts.mjs.map +0 -1
- package/tools/v1/customers/archive-v1-customers.d.mts +0 -51
- package/tools/v1/customers/archive-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/archive-v1-customers.d.ts +0 -51
- package/tools/v1/customers/archive-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/archive-v1-customers.js +0 -52
- package/tools/v1/customers/archive-v1-customers.js.map +0 -1
- package/tools/v1/customers/archive-v1-customers.mjs +0 -45
- package/tools/v1/customers/archive-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts +0 -51
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.mts.map +0 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts +0 -51
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.d.ts.map +0 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js +0 -102
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.js.map +0 -1
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs +0 -98
- package/tools/v1/customers/billing-config/create-customers-v1-billing-config.mjs.map +0 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts +0 -51
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.mts.map +0 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts +0 -51
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.d.ts.map +0 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js +0 -51
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.js.map +0 -1
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs +0 -47
- package/tools/v1/customers/billing-config/delete-customers-v1-billing-config.mjs.map +0 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts +0 -51
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.mts.map +0 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts +0 -51
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.d.ts.map +0 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js +0 -68
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.js.map +0 -1
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs +0 -61
- package/tools/v1/customers/billing-config/retrieve-customers-v1-billing-config.mjs.map +0 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.mts +0 -51
- package/tools/v1/customers/commits/create-customers-v1-commits.d.mts.map +0 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.d.ts +0 -51
- package/tools/v1/customers/commits/create-customers-v1-commits.d.ts.map +0 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.js +0 -256
- package/tools/v1/customers/commits/create-customers-v1-commits.js.map +0 -1
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs +0 -249
- package/tools/v1/customers/commits/create-customers-v1-commits.mjs.map +0 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.mts +0 -51
- package/tools/v1/customers/commits/list-customers-v1-commits.d.mts.map +0 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.d.ts +0 -51
- package/tools/v1/customers/commits/list-customers-v1-commits.d.ts.map +0 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.js +0 -89
- package/tools/v1/customers/commits/list-customers-v1-commits.js.map +0 -1
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs +0 -82
- package/tools/v1/customers/commits/list-customers-v1-commits.mjs.map +0 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts +0 -51
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.mts.map +0 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts +0 -51
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.d.ts.map +0 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js +0 -67
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.js.map +0 -1
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs +0 -60
- package/tools/v1/customers/commits/update-end-date-customers-v1-commits.mjs.map +0 -1
- package/tools/v1/customers/create-v1-customers.d.mts +0 -51
- package/tools/v1/customers/create-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/create-v1-customers.d.ts +0 -51
- package/tools/v1/customers/create-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/create-v1-customers.js +0 -206
- package/tools/v1/customers/create-v1-customers.js.map +0 -1
- package/tools/v1/customers/create-v1-customers.mjs +0 -199
- package/tools/v1/customers/create-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.mts +0 -51
- package/tools/v1/customers/credits/create-customers-v1-credits.d.mts.map +0 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.d.ts +0 -51
- package/tools/v1/customers/credits/create-customers-v1-credits.d.ts.map +0 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.js +0 -175
- package/tools/v1/customers/credits/create-customers-v1-credits.js.map +0 -1
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs +0 -168
- package/tools/v1/customers/credits/create-customers-v1-credits.mjs.map +0 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.mts +0 -51
- package/tools/v1/customers/credits/list-customers-v1-credits.d.mts.map +0 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.d.ts +0 -51
- package/tools/v1/customers/credits/list-customers-v1-credits.d.ts.map +0 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.js +0 -89
- package/tools/v1/customers/credits/list-customers-v1-credits.js.map +0 -1
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs +0 -82
- package/tools/v1/customers/credits/list-customers-v1-credits.mjs.map +0 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts +0 -51
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.mts.map +0 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts +0 -51
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.d.ts.map +0 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js +0 -62
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.js.map +0 -1
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs +0 -55
- package/tools/v1/customers/credits/update-end-date-customers-v1-credits.mjs.map +0 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts +0 -51
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.mts.map +0 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts +0 -51
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.d.ts.map +0 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js +0 -83
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.js.map +0 -1
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs +0 -76
- package/tools/v1/customers/invoices/add-charge-customers-v1-invoices.mjs.map +0 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts +0 -51
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.mts.map +0 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts +0 -51
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.d.ts.map +0 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js +0 -89
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.js.map +0 -1
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs +0 -82
- package/tools/v1/customers/invoices/list-breakdowns-customers-v1-invoices.mjs.map +0 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts +0 -51
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.mts.map +0 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts +0 -51
- package/tools/v1/customers/invoices/list-customers-v1-invoices.d.ts.map +0 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js +0 -84
- package/tools/v1/customers/invoices/list-customers-v1-invoices.js.map +0 -1
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs +0 -77
- package/tools/v1/customers/invoices/list-customers-v1-invoices.mjs.map +0 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts +0 -51
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.mts.map +0 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts +0 -51
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.d.ts.map +0 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js +0 -55
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.js.map +0 -1
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs +0 -48
- package/tools/v1/customers/invoices/retrieve-customers-v1-invoices.mjs.map +0 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts +0 -51
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.mts.map +0 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts +0 -51
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.d.ts.map +0 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js +0 -39
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.js.map +0 -1
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs +0 -35
- package/tools/v1/customers/invoices/retrieve-pdf-customers-v1-invoices.mjs.map +0 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts +0 -51
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts +0 -51
- package/tools/v1/customers/list-billable-metrics-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.js +0 -71
- package/tools/v1/customers/list-billable-metrics-v1-customers.js.map +0 -1
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs +0 -64
- package/tools/v1/customers/list-billable-metrics-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/list-costs-v1-customers.d.mts +0 -51
- package/tools/v1/customers/list-costs-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/list-costs-v1-customers.d.ts +0 -51
- package/tools/v1/customers/list-costs-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/list-costs-v1-customers.js +0 -73
- package/tools/v1/customers/list-costs-v1-customers.js.map +0 -1
- package/tools/v1/customers/list-costs-v1-customers.mjs +0 -66
- package/tools/v1/customers/list-costs-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/list-v1-customers.d.mts +0 -51
- package/tools/v1/customers/list-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/list-v1-customers.d.ts +0 -51
- package/tools/v1/customers/list-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/list-v1-customers.js +0 -82
- package/tools/v1/customers/list-v1-customers.js.map +0 -1
- package/tools/v1/customers/list-v1-customers.mjs +0 -75
- package/tools/v1/customers/list-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts +0 -51
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts +0 -51
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js +0 -62
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.js.map +0 -1
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs +0 -55
- package/tools/v1/customers/named-schedules/retrieve-customers-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts +0 -51
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.mts.map +0 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts +0 -51
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.d.ts.map +0 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js +0 -53
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.js.map +0 -1
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs +0 -49
- package/tools/v1/customers/named-schedules/update-customers-v1-named-schedules.mjs.map +0 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.d.mts +0 -51
- package/tools/v1/customers/plans/add-customers-v1-plans.d.mts.map +0 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.d.ts +0 -51
- package/tools/v1/customers/plans/add-customers-v1-plans.d.ts.map +0 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.js +0 -147
- package/tools/v1/customers/plans/add-customers-v1-plans.js.map +0 -1
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs +0 -140
- package/tools/v1/customers/plans/add-customers-v1-plans.mjs.map +0 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.d.mts +0 -51
- package/tools/v1/customers/plans/end-customers-v1-plans.d.mts.map +0 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.d.ts +0 -51
- package/tools/v1/customers/plans/end-customers-v1-plans.d.ts.map +0 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.js +0 -68
- package/tools/v1/customers/plans/end-customers-v1-plans.js.map +0 -1
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs +0 -61
- package/tools/v1/customers/plans/end-customers-v1-plans.mjs.map +0 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.d.mts +0 -51
- package/tools/v1/customers/plans/list-customers-v1-plans.d.mts.map +0 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.d.ts +0 -51
- package/tools/v1/customers/plans/list-customers-v1-plans.d.ts.map +0 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.js +0 -63
- package/tools/v1/customers/plans/list-customers-v1-plans.js.map +0 -1
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs +0 -56
- package/tools/v1/customers/plans/list-customers-v1-plans.mjs.map +0 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts +0 -51
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.mts.map +0 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts +0 -51
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.d.ts.map +0 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js +0 -66
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.js.map +0 -1
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs +0 -59
- package/tools/v1/customers/plans/list-price-adjustments-customers-v1-plans.mjs.map +0 -1
- package/tools/v1/customers/preview-events-v1-customers.d.mts +0 -51
- package/tools/v1/customers/preview-events-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/preview-events-v1-customers.d.ts +0 -51
- package/tools/v1/customers/preview-events-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/preview-events-v1-customers.js +0 -80
- package/tools/v1/customers/preview-events-v1-customers.js.map +0 -1
- package/tools/v1/customers/preview-events-v1-customers.mjs +0 -73
- package/tools/v1/customers/preview-events-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts +0 -51
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts +0 -51
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js +0 -55
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.js.map +0 -1
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs +0 -48
- package/tools/v1/customers/retrieve-billing-configurations-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/retrieve-v1-customers.d.mts +0 -51
- package/tools/v1/customers/retrieve-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/retrieve-v1-customers.d.ts +0 -51
- package/tools/v1/customers/retrieve-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/retrieve-v1-customers.js +0 -54
- package/tools/v1/customers/retrieve-v1-customers.js.map +0 -1
- package/tools/v1/customers/retrieve-v1-customers.mjs +0 -47
- package/tools/v1/customers/retrieve-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts +0 -51
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts +0 -51
- package/tools/v1/customers/set-billing-configurations-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.js +0 -95
- package/tools/v1/customers/set-billing-configurations-v1-customers.js.map +0 -1
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs +0 -88
- package/tools/v1/customers/set-billing-configurations-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts +0 -51
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts +0 -51
- package/tools/v1/customers/set-ingest-aliases-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.js +0 -41
- package/tools/v1/customers/set-ingest-aliases-v1-customers.js.map +0 -1
- package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs +0 -37
- package/tools/v1/customers/set-ingest-aliases-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/set-name-v1-customers.d.mts +0 -51
- package/tools/v1/customers/set-name-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/set-name-v1-customers.d.ts +0 -51
- package/tools/v1/customers/set-name-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/set-name-v1-customers.js +0 -56
- package/tools/v1/customers/set-name-v1-customers.js.map +0 -1
- package/tools/v1/customers/set-name-v1-customers.mjs +0 -49
- package/tools/v1/customers/set-name-v1-customers.mjs.map +0 -1
- package/tools/v1/customers/update-config-v1-customers.d.mts +0 -51
- package/tools/v1/customers/update-config-v1-customers.d.mts.map +0 -1
- package/tools/v1/customers/update-config-v1-customers.d.ts +0 -51
- package/tools/v1/customers/update-config-v1-customers.d.ts.map +0 -1
- package/tools/v1/customers/update-config-v1-customers.js +0 -43
- package/tools/v1/customers/update-config-v1-customers.js.map +0 -1
- package/tools/v1/customers/update-config-v1-customers.mjs +0 -39
- package/tools/v1/customers/update-config-v1-customers.mjs.map +0 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts +0 -51
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.mts.map +0 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts +0 -51
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.d.ts.map +0 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js +0 -138
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.js.map +0 -1
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs +0 -131
- package/tools/v1/dashboards/get-embeddable-url-v1-dashboards.mjs.map +0 -1
- package/tools/v1/invoices/regenerate-v1-invoices.d.mts +0 -51
- package/tools/v1/invoices/regenerate-v1-invoices.d.mts.map +0 -1
- package/tools/v1/invoices/regenerate-v1-invoices.d.ts +0 -51
- package/tools/v1/invoices/regenerate-v1-invoices.d.ts.map +0 -1
- package/tools/v1/invoices/regenerate-v1-invoices.js +0 -53
- package/tools/v1/invoices/regenerate-v1-invoices.js.map +0 -1
- package/tools/v1/invoices/regenerate-v1-invoices.mjs +0 -46
- package/tools/v1/invoices/regenerate-v1-invoices.mjs.map +0 -1
- package/tools/v1/invoices/void-v1-invoices.d.mts +0 -51
- package/tools/v1/invoices/void-v1-invoices.d.mts.map +0 -1
- package/tools/v1/invoices/void-v1-invoices.d.ts +0 -51
- package/tools/v1/invoices/void-v1-invoices.d.ts.map +0 -1
- package/tools/v1/invoices/void-v1-invoices.js +0 -53
- package/tools/v1/invoices/void-v1-invoices.js.map +0 -1
- package/tools/v1/invoices/void-v1-invoices.mjs +0 -46
- package/tools/v1/invoices/void-v1-invoices.mjs.map +0 -1
- package/tools/v1/payments/attempt-v1-payments.d.mts +0 -51
- package/tools/v1/payments/attempt-v1-payments.d.mts.map +0 -1
- package/tools/v1/payments/attempt-v1-payments.d.ts +0 -51
- package/tools/v1/payments/attempt-v1-payments.d.ts.map +0 -1
- package/tools/v1/payments/attempt-v1-payments.js +0 -55
- package/tools/v1/payments/attempt-v1-payments.js.map +0 -1
- package/tools/v1/payments/attempt-v1-payments.mjs +0 -48
- package/tools/v1/payments/attempt-v1-payments.mjs.map +0 -1
- package/tools/v1/payments/cancel-v1-payments.d.mts +0 -51
- package/tools/v1/payments/cancel-v1-payments.d.mts.map +0 -1
- package/tools/v1/payments/cancel-v1-payments.d.ts +0 -51
- package/tools/v1/payments/cancel-v1-payments.d.ts.map +0 -1
- package/tools/v1/payments/cancel-v1-payments.js +0 -55
- package/tools/v1/payments/cancel-v1-payments.js.map +0 -1
- package/tools/v1/payments/cancel-v1-payments.mjs +0 -48
- package/tools/v1/payments/cancel-v1-payments.mjs.map +0 -1
- package/tools/v1/payments/list-v1-payments.d.mts +0 -51
- package/tools/v1/payments/list-v1-payments.d.mts.map +0 -1
- package/tools/v1/payments/list-v1-payments.d.ts +0 -51
- package/tools/v1/payments/list-v1-payments.d.ts.map +0 -1
- package/tools/v1/payments/list-v1-payments.js +0 -76
- package/tools/v1/payments/list-v1-payments.js.map +0 -1
- package/tools/v1/payments/list-v1-payments.mjs +0 -69
- package/tools/v1/payments/list-v1-payments.mjs.map +0 -1
- package/tools/v1/plans/get-details-v1-plans.d.mts +0 -51
- package/tools/v1/plans/get-details-v1-plans.d.mts.map +0 -1
- package/tools/v1/plans/get-details-v1-plans.d.ts +0 -51
- package/tools/v1/plans/get-details-v1-plans.d.ts.map +0 -1
- package/tools/v1/plans/get-details-v1-plans.js +0 -54
- package/tools/v1/plans/get-details-v1-plans.js.map +0 -1
- package/tools/v1/plans/get-details-v1-plans.mjs +0 -47
- package/tools/v1/plans/get-details-v1-plans.mjs.map +0 -1
- package/tools/v1/plans/list-charges-v1-plans.d.mts +0 -51
- package/tools/v1/plans/list-charges-v1-plans.d.mts.map +0 -1
- package/tools/v1/plans/list-charges-v1-plans.d.ts +0 -51
- package/tools/v1/plans/list-charges-v1-plans.d.ts.map +0 -1
- package/tools/v1/plans/list-charges-v1-plans.js +0 -63
- package/tools/v1/plans/list-charges-v1-plans.js.map +0 -1
- package/tools/v1/plans/list-charges-v1-plans.mjs +0 -56
- package/tools/v1/plans/list-charges-v1-plans.mjs.map +0 -1
- package/tools/v1/plans/list-customers-v1-plans.d.mts +0 -51
- package/tools/v1/plans/list-customers-v1-plans.d.mts.map +0 -1
- package/tools/v1/plans/list-customers-v1-plans.d.ts +0 -51
- package/tools/v1/plans/list-customers-v1-plans.d.ts.map +0 -1
- package/tools/v1/plans/list-customers-v1-plans.js +0 -68
- package/tools/v1/plans/list-customers-v1-plans.js.map +0 -1
- package/tools/v1/plans/list-customers-v1-plans.mjs +0 -61
- package/tools/v1/plans/list-customers-v1-plans.mjs.map +0 -1
- package/tools/v1/plans/list-v1-plans.d.mts +0 -51
- package/tools/v1/plans/list-v1-plans.d.mts.map +0 -1
- package/tools/v1/plans/list-v1-plans.d.ts +0 -51
- package/tools/v1/plans/list-v1-plans.d.ts.map +0 -1
- package/tools/v1/plans/list-v1-plans.js +0 -60
- package/tools/v1/plans/list-v1-plans.js.map +0 -1
- package/tools/v1/plans/list-v1-plans.mjs +0 -53
- package/tools/v1/plans/list-v1-plans.mjs.map +0 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.d.mts +0 -51
- package/tools/v1/pricing-units/list-v1-pricing-units.d.mts.map +0 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.d.ts +0 -51
- package/tools/v1/pricing-units/list-v1-pricing-units.d.ts.map +0 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.js +0 -60
- package/tools/v1/pricing-units/list-v1-pricing-units.js.map +0 -1
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs +0 -53
- package/tools/v1/pricing-units/list-v1-pricing-units.mjs.map +0 -1
- package/tools/v1/services/list-v1-services.d.mts +0 -51
- package/tools/v1/services/list-v1-services.d.mts.map +0 -1
- package/tools/v1/services/list-v1-services.d.ts +0 -51
- package/tools/v1/services/list-v1-services.d.ts.map +0 -1
- package/tools/v1/services/list-v1-services.js +0 -51
- package/tools/v1/services/list-v1-services.js.map +0 -1
- package/tools/v1/services/list-v1-services.mjs +0 -44
- package/tools/v1/services/list-v1-services.mjs.map +0 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts +0 -51
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.mts.map +0 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts +0 -51
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.d.ts.map +0 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js +0 -64
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.js.map +0 -1
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs +0 -57
- package/tools/v1/settings/billing-providers/create-settings-v1-billing-providers.mjs.map +0 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts +0 -51
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.mts.map +0 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts +0 -51
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.d.ts.map +0 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js +0 -53
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.js.map +0 -1
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs +0 -46
- package/tools/v1/settings/billing-providers/list-settings-v1-billing-providers.mjs.map +0 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts +0 -51
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.mts.map +0 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts +0 -51
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.d.ts.map +0 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js +0 -73
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.js.map +0 -1
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs +0 -66
- package/tools/v1/settings/upsert-avalara-credentials-v1-settings.mjs.map +0 -1
- package/tools/v1/usage/ingest-v1-usage.d.mts +0 -51
- package/tools/v1/usage/ingest-v1-usage.d.mts.map +0 -1
- package/tools/v1/usage/ingest-v1-usage.d.ts +0 -51
- package/tools/v1/usage/ingest-v1-usage.d.ts.map +0 -1
- package/tools/v1/usage/ingest-v1-usage.js +0 -58
- package/tools/v1/usage/ingest-v1-usage.js.map +0 -1
- package/tools/v1/usage/ingest-v1-usage.mjs +0 -54
- package/tools/v1/usage/ingest-v1-usage.mjs.map +0 -1
- package/tools/v1/usage/list-v1-usage.d.mts +0 -51
- package/tools/v1/usage/list-v1-usage.d.mts.map +0 -1
- package/tools/v1/usage/list-v1-usage.d.ts +0 -51
- package/tools/v1/usage/list-v1-usage.d.ts.map +0 -1
- package/tools/v1/usage/list-v1-usage.js +0 -104
- package/tools/v1/usage/list-v1-usage.js.map +0 -1
- package/tools/v1/usage/list-v1-usage.mjs +0 -97
- package/tools/v1/usage/list-v1-usage.mjs.map +0 -1
- package/tools/v1/usage/list-with-groups-v1-usage.d.mts +0 -51
- package/tools/v1/usage/list-with-groups-v1-usage.d.mts.map +0 -1
- package/tools/v1/usage/list-with-groups-v1-usage.d.ts +0 -51
- package/tools/v1/usage/list-with-groups-v1-usage.d.ts.map +0 -1
- package/tools/v1/usage/list-with-groups-v1-usage.js +0 -98
- package/tools/v1/usage/list-with-groups-v1-usage.js.map +0 -1
- package/tools/v1/usage/list-with-groups-v1-usage.mjs +0 -91
- package/tools/v1/usage/list-with-groups-v1-usage.mjs.map +0 -1
- package/tools/v1/usage/search-v1-usage.d.mts +0 -51
- package/tools/v1/usage/search-v1-usage.d.mts.map +0 -1
- package/tools/v1/usage/search-v1-usage.d.ts +0 -51
- package/tools/v1/usage/search-v1-usage.d.ts.map +0 -1
- package/tools/v1/usage/search-v1-usage.js +0 -56
- package/tools/v1/usage/search-v1-usage.js.map +0 -1
- package/tools/v1/usage/search-v1-usage.mjs +0 -49
- package/tools/v1/usage/search-v1-usage.mjs.map +0 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/edit-commit-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/edit-commit-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.js +0 -301
- package/tools/v2/contracts/edit-commit-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs +0 -294
- package/tools/v2/contracts/edit-commit-v2-contracts.mjs.map +0 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/edit-credit-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/edit-credit-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.js +0 -233
- package/tools/v2/contracts/edit-credit-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs +0 -226
- package/tools/v2/contracts/edit-credit-v2-contracts.mjs.map +0 -1
- package/tools/v2/contracts/edit-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/edit-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/edit-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/edit-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/edit-v2-contracts.js +0 -2214
- package/tools/v2/contracts/edit-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/edit-v2-contracts.mjs +0 -2207
- package/tools/v2/contracts/edit-v2-contracts.mjs.map +0 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/get-edit-history-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.js +0 -49
- package/tools/v2/contracts/get-edit-history-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs +0 -42
- package/tools/v2/contracts/get-edit-history-v2-contracts.mjs.map +0 -1
- package/tools/v2/contracts/list-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/list-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/list-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/list-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/list-v2-contracts.js +0 -68
- package/tools/v2/contracts/list-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/list-v2-contracts.mjs +0 -61
- package/tools/v2/contracts/list-v2-contracts.mjs.map +0 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.mts +0 -51
- package/tools/v2/contracts/retrieve-v2-contracts.d.mts.map +0 -1
- package/tools/v2/contracts/retrieve-v2-contracts.d.ts +0 -51
- package/tools/v2/contracts/retrieve-v2-contracts.d.ts.map +0 -1
- package/tools/v2/contracts/retrieve-v2-contracts.js +0 -62
- package/tools/v2/contracts/retrieve-v2-contracts.js.map +0 -1
- package/tools/v2/contracts/retrieve-v2-contracts.mjs +0 -55
- package/tools/v2/contracts/retrieve-v2-contracts.mjs.map +0 -1
- package/tools.d.mts +0 -2
- package/tools.d.mts.map +0 -1
- package/tools.d.ts +0 -2
- package/tools.d.ts.map +0 -1
- package/tools.js +0 -18
- package/tools.js.map +0 -1
- package/tools.mjs +0 -2
- package/tools.mjs.map +0 -1
- /package/{tools/types.js → types.js} +0 -0
- /package/{tools/types.mjs → types.mjs} +0 -0
|
@@ -1,2336 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { Metadata, asErrorResult, asTextContentResult } from '@metronome/mcp/tools/types';
|
|
4
|
-
|
|
5
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
6
|
-
import Metronome from '@metronome/sdk';
|
|
7
|
-
|
|
8
|
-
export const metadata: Metadata = {
|
|
9
|
-
resource: 'v2.contracts',
|
|
10
|
-
operation: 'write',
|
|
11
|
-
tags: [],
|
|
12
|
-
httpMethod: 'post',
|
|
13
|
-
httpPath: '/v2/contracts/edit',
|
|
14
|
-
operationId: 'editContract-v2',
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const tool: Tool = {
|
|
18
|
-
name: 'edit_v2_contracts',
|
|
19
|
-
description:
|
|
20
|
-
'The ability to edit a contract helps you react quickly to the needs of your customers and your business.\n\n### Use this endpoint to:\n- Encode mid-term commitment and discount changes\n- Fix configuration mistakes and easily roll back packaging changes\n\n### Key response fields:\n- The `id` of the edit\n- Complete edit details. For example, if you edited the contract to add new overrides and credits, you will receive the IDs of those overrides and credits in the response.\n\n### Usage guidelines:\n- When you edit a contract, any draft invoices update immediately to reflect that edit. Finalized invoices remain unchanged - you must void and regenerate them in the UI or API to reflect the edit.\n- Contract editing must be enabled to use this endpoint. Reach out to your Metronome representative to learn more.\n',
|
|
21
|
-
inputSchema: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
contract_id: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'ID of the contract being edited',
|
|
27
|
-
},
|
|
28
|
-
customer_id: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'ID of the customer whose contract is being edited',
|
|
31
|
-
},
|
|
32
|
-
add_billing_provider_configuration_update: {
|
|
33
|
-
type: 'object',
|
|
34
|
-
description:
|
|
35
|
-
'Update the billing provider configuration on the contract. Currently only supports adding a billing provider configuration to a contract that does not already have one.',
|
|
36
|
-
properties: {
|
|
37
|
-
billing_provider_configuration: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
billing_provider: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
enum: [
|
|
43
|
-
'aws_marketplace',
|
|
44
|
-
'stripe',
|
|
45
|
-
'netsuite',
|
|
46
|
-
'custom',
|
|
47
|
-
'azure_marketplace',
|
|
48
|
-
'quickbooks_online',
|
|
49
|
-
'workday',
|
|
50
|
-
'gcp_marketplace',
|
|
51
|
-
'metronome',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
billing_provider_configuration_id: {
|
|
55
|
-
type: 'string',
|
|
56
|
-
},
|
|
57
|
-
delivery_method: {
|
|
58
|
-
type: 'string',
|
|
59
|
-
enum: ['direct_to_billing_provider', 'aws_sqs', 'tackle', 'aws_sns'],
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
schedule: {
|
|
64
|
-
type: 'object',
|
|
65
|
-
description:
|
|
66
|
-
'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.',
|
|
67
|
-
properties: {
|
|
68
|
-
effective_at: {
|
|
69
|
-
type: 'string',
|
|
70
|
-
description: 'When the billing provider update will take effect.',
|
|
71
|
-
enum: ['START_OF_CURRENT_PERIOD'],
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
required: ['effective_at'],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
required: ['billing_provider_configuration', 'schedule'],
|
|
78
|
-
},
|
|
79
|
-
add_commits: {
|
|
80
|
-
type: 'array',
|
|
81
|
-
items: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
properties: {
|
|
84
|
-
product_id: {
|
|
85
|
-
type: 'string',
|
|
86
|
-
},
|
|
87
|
-
type: {
|
|
88
|
-
type: 'string',
|
|
89
|
-
enum: ['PREPAID', 'POSTPAID'],
|
|
90
|
-
},
|
|
91
|
-
access_schedule: {
|
|
92
|
-
type: 'object',
|
|
93
|
-
description:
|
|
94
|
-
'Required: Schedule for distributing the commit to the customer. For "POSTPAID" commits only one schedule item is allowed and amount must match invoice_schedule total.',
|
|
95
|
-
properties: {
|
|
96
|
-
schedule_items: {
|
|
97
|
-
type: 'array',
|
|
98
|
-
items: {
|
|
99
|
-
type: 'object',
|
|
100
|
-
properties: {
|
|
101
|
-
amount: {
|
|
102
|
-
type: 'number',
|
|
103
|
-
},
|
|
104
|
-
ending_before: {
|
|
105
|
-
type: 'string',
|
|
106
|
-
description: 'RFC 3339 timestamp (exclusive)',
|
|
107
|
-
format: 'date-time',
|
|
108
|
-
},
|
|
109
|
-
starting_at: {
|
|
110
|
-
type: 'string',
|
|
111
|
-
description: 'RFC 3339 timestamp (inclusive)',
|
|
112
|
-
format: 'date-time',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
required: ['amount', 'ending_before', 'starting_at'],
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
credit_type_id: {
|
|
119
|
-
type: 'string',
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
required: ['schedule_items'],
|
|
123
|
-
},
|
|
124
|
-
amount: {
|
|
125
|
-
type: 'number',
|
|
126
|
-
description: '(DEPRECATED) Use access_schedule and invoice_schedule instead.',
|
|
127
|
-
},
|
|
128
|
-
applicable_product_ids: {
|
|
129
|
-
type: 'array',
|
|
130
|
-
description:
|
|
131
|
-
'Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
132
|
-
items: {
|
|
133
|
-
type: 'string',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
applicable_product_tags: {
|
|
137
|
-
type: 'array',
|
|
138
|
-
description:
|
|
139
|
-
'Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
140
|
-
items: {
|
|
141
|
-
type: 'string',
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
custom_fields: {
|
|
145
|
-
type: 'object',
|
|
146
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
147
|
-
additionalProperties: true,
|
|
148
|
-
},
|
|
149
|
-
description: {
|
|
150
|
-
type: 'string',
|
|
151
|
-
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
152
|
-
},
|
|
153
|
-
hierarchy_configuration: {
|
|
154
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
155
|
-
},
|
|
156
|
-
invoice_schedule: {
|
|
157
|
-
type: 'object',
|
|
158
|
-
description:
|
|
159
|
-
'Required for "POSTPAID" commits: the true up invoice will be generated at this time and only one schedule item is allowed; the total must match access_schedule amount. Optional for "PREPAID" commits: if not provided, this will be a "complimentary" commit with no invoice.',
|
|
160
|
-
properties: {
|
|
161
|
-
credit_type_id: {
|
|
162
|
-
type: 'string',
|
|
163
|
-
description: 'Defaults to USD (cents) if not passed.',
|
|
164
|
-
},
|
|
165
|
-
do_not_invoice: {
|
|
166
|
-
type: 'boolean',
|
|
167
|
-
description:
|
|
168
|
-
'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
|
|
169
|
-
},
|
|
170
|
-
recurring_schedule: {
|
|
171
|
-
type: 'object',
|
|
172
|
-
description:
|
|
173
|
-
'Enter the unit price and quantity for the charge or instead only send the amount. If amount is sent, the unit price is assumed to be the amount and quantity is inferred to be 1.',
|
|
174
|
-
properties: {
|
|
175
|
-
amount_distribution: {
|
|
176
|
-
type: 'string',
|
|
177
|
-
enum: ['DIVIDED', 'DIVIDED_ROUNDED', 'EACH'],
|
|
178
|
-
},
|
|
179
|
-
ending_before: {
|
|
180
|
-
type: 'string',
|
|
181
|
-
description: 'RFC 3339 timestamp (exclusive).',
|
|
182
|
-
format: 'date-time',
|
|
183
|
-
},
|
|
184
|
-
frequency: {
|
|
185
|
-
type: 'string',
|
|
186
|
-
enum: ['MONTHLY', 'QUARTERLY', 'SEMI_ANNUAL', 'ANNUAL', 'WEEKLY'],
|
|
187
|
-
},
|
|
188
|
-
starting_at: {
|
|
189
|
-
type: 'string',
|
|
190
|
-
description: 'RFC 3339 timestamp (inclusive).',
|
|
191
|
-
format: 'date-time',
|
|
192
|
-
},
|
|
193
|
-
amount: {
|
|
194
|
-
type: 'number',
|
|
195
|
-
description:
|
|
196
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
197
|
-
},
|
|
198
|
-
quantity: {
|
|
199
|
-
type: 'number',
|
|
200
|
-
description:
|
|
201
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
202
|
-
},
|
|
203
|
-
unit_price: {
|
|
204
|
-
type: 'number',
|
|
205
|
-
description:
|
|
206
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
required: ['amount_distribution', 'ending_before', 'frequency', 'starting_at'],
|
|
210
|
-
},
|
|
211
|
-
schedule_items: {
|
|
212
|
-
type: 'array',
|
|
213
|
-
description: 'Either provide amount or provide both unit_price and quantity.',
|
|
214
|
-
items: {
|
|
215
|
-
type: 'object',
|
|
216
|
-
properties: {
|
|
217
|
-
timestamp: {
|
|
218
|
-
type: 'string',
|
|
219
|
-
description: 'timestamp of the scheduled event',
|
|
220
|
-
format: 'date-time',
|
|
221
|
-
},
|
|
222
|
-
amount: {
|
|
223
|
-
type: 'number',
|
|
224
|
-
description:
|
|
225
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
226
|
-
},
|
|
227
|
-
quantity: {
|
|
228
|
-
type: 'number',
|
|
229
|
-
description:
|
|
230
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
231
|
-
},
|
|
232
|
-
unit_price: {
|
|
233
|
-
type: 'number',
|
|
234
|
-
description:
|
|
235
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
required: ['timestamp'],
|
|
239
|
-
},
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
name: {
|
|
244
|
-
type: 'string',
|
|
245
|
-
description: 'displayed on invoices',
|
|
246
|
-
},
|
|
247
|
-
netsuite_sales_order_id: {
|
|
248
|
-
type: 'string',
|
|
249
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
250
|
-
},
|
|
251
|
-
payment_gate_config: {
|
|
252
|
-
type: 'object',
|
|
253
|
-
description: 'optionally payment gate this commit',
|
|
254
|
-
properties: {
|
|
255
|
-
payment_gate_type: {
|
|
256
|
-
type: 'string',
|
|
257
|
-
description:
|
|
258
|
-
'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.',
|
|
259
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
260
|
-
},
|
|
261
|
-
precalculated_tax_config: {
|
|
262
|
-
type: 'object',
|
|
263
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
264
|
-
properties: {
|
|
265
|
-
tax_amount: {
|
|
266
|
-
type: 'number',
|
|
267
|
-
description:
|
|
268
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
269
|
-
},
|
|
270
|
-
tax_name: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
description:
|
|
273
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
required: ['tax_amount'],
|
|
277
|
-
},
|
|
278
|
-
stripe_config: {
|
|
279
|
-
type: 'object',
|
|
280
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
281
|
-
properties: {
|
|
282
|
-
payment_type: {
|
|
283
|
-
type: 'string',
|
|
284
|
-
description: 'If left blank, will default to INVOICE',
|
|
285
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
286
|
-
},
|
|
287
|
-
invoice_metadata: {
|
|
288
|
-
type: 'object',
|
|
289
|
-
description:
|
|
290
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
291
|
-
additionalProperties: true,
|
|
292
|
-
},
|
|
293
|
-
on_session_payment: {
|
|
294
|
-
type: 'boolean',
|
|
295
|
-
description:
|
|
296
|
-
'If true, the payment will be made assuming the customer is present (i.e. on session). \n\nIf false, the payment will be made assuming the customer is not present (i.e. off session). \nFor cardholders from a country with an e-mandate requirement (e.g. India), the payment may be declined.\n\nIf left blank, will default to false.',
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
required: ['payment_type'],
|
|
300
|
-
},
|
|
301
|
-
tax_type: {
|
|
302
|
-
type: 'string',
|
|
303
|
-
description:
|
|
304
|
-
'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.',
|
|
305
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
required: ['payment_gate_type'],
|
|
309
|
-
},
|
|
310
|
-
priority: {
|
|
311
|
-
type: 'number',
|
|
312
|
-
description:
|
|
313
|
-
'If multiple commits are applicable, the one with the lower priority will apply first.',
|
|
314
|
-
},
|
|
315
|
-
rate_type: {
|
|
316
|
-
type: 'string',
|
|
317
|
-
enum: ['COMMIT_RATE', 'LIST_RATE'],
|
|
318
|
-
},
|
|
319
|
-
rollover_fraction: {
|
|
320
|
-
type: 'number',
|
|
321
|
-
description: 'Fraction of unused segments that will be rolled over. Must be between 0 and 1.',
|
|
322
|
-
},
|
|
323
|
-
specifiers: {
|
|
324
|
-
type: 'array',
|
|
325
|
-
description:
|
|
326
|
-
"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`.",
|
|
327
|
-
items: {
|
|
328
|
-
$ref: '#/$defs/commit_specifier_input',
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
temporary_id: {
|
|
332
|
-
type: 'string',
|
|
333
|
-
description:
|
|
334
|
-
'A temporary ID for the commit that can be used to reference the commit for commit specific overrides.',
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
required: ['product_id', 'type'],
|
|
338
|
-
},
|
|
339
|
-
},
|
|
340
|
-
add_credits: {
|
|
341
|
-
type: 'array',
|
|
342
|
-
items: {
|
|
343
|
-
type: 'object',
|
|
344
|
-
properties: {
|
|
345
|
-
access_schedule: {
|
|
346
|
-
type: 'object',
|
|
347
|
-
description: 'Schedule for distributing the credit to the customer.',
|
|
348
|
-
properties: {
|
|
349
|
-
schedule_items: {
|
|
350
|
-
type: 'array',
|
|
351
|
-
items: {
|
|
352
|
-
type: 'object',
|
|
353
|
-
properties: {
|
|
354
|
-
amount: {
|
|
355
|
-
type: 'number',
|
|
356
|
-
},
|
|
357
|
-
ending_before: {
|
|
358
|
-
type: 'string',
|
|
359
|
-
description: 'RFC 3339 timestamp (exclusive)',
|
|
360
|
-
format: 'date-time',
|
|
361
|
-
},
|
|
362
|
-
starting_at: {
|
|
363
|
-
type: 'string',
|
|
364
|
-
description: 'RFC 3339 timestamp (inclusive)',
|
|
365
|
-
format: 'date-time',
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
required: ['amount', 'ending_before', 'starting_at'],
|
|
369
|
-
},
|
|
370
|
-
},
|
|
371
|
-
credit_type_id: {
|
|
372
|
-
type: 'string',
|
|
373
|
-
},
|
|
374
|
-
},
|
|
375
|
-
required: ['schedule_items'],
|
|
376
|
-
},
|
|
377
|
-
product_id: {
|
|
378
|
-
type: 'string',
|
|
379
|
-
},
|
|
380
|
-
applicable_product_ids: {
|
|
381
|
-
type: 'array',
|
|
382
|
-
description:
|
|
383
|
-
'Which products the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.',
|
|
384
|
-
items: {
|
|
385
|
-
type: 'string',
|
|
386
|
-
},
|
|
387
|
-
},
|
|
388
|
-
applicable_product_tags: {
|
|
389
|
-
type: 'array',
|
|
390
|
-
description:
|
|
391
|
-
'Which tags the credit applies to. If both applicable_product_ids and applicable_product_tags are not provided, the credit applies to all products.',
|
|
392
|
-
items: {
|
|
393
|
-
type: 'string',
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
custom_fields: {
|
|
397
|
-
type: 'object',
|
|
398
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
399
|
-
additionalProperties: true,
|
|
400
|
-
},
|
|
401
|
-
description: {
|
|
402
|
-
type: 'string',
|
|
403
|
-
description: 'Used only in UI/API. It is not exposed to end customers.',
|
|
404
|
-
},
|
|
405
|
-
hierarchy_configuration: {
|
|
406
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
407
|
-
},
|
|
408
|
-
name: {
|
|
409
|
-
type: 'string',
|
|
410
|
-
description: 'displayed on invoices',
|
|
411
|
-
},
|
|
412
|
-
netsuite_sales_order_id: {
|
|
413
|
-
type: 'string',
|
|
414
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
415
|
-
},
|
|
416
|
-
priority: {
|
|
417
|
-
type: 'number',
|
|
418
|
-
description:
|
|
419
|
-
'If multiple credits are applicable, the one with the lower priority will apply first.',
|
|
420
|
-
},
|
|
421
|
-
rate_type: {
|
|
422
|
-
type: 'string',
|
|
423
|
-
enum: ['COMMIT_RATE', 'LIST_RATE'],
|
|
424
|
-
},
|
|
425
|
-
specifiers: {
|
|
426
|
-
type: 'array',
|
|
427
|
-
description:
|
|
428
|
-
"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`.",
|
|
429
|
-
items: {
|
|
430
|
-
$ref: '#/$defs/commit_specifier_input',
|
|
431
|
-
},
|
|
432
|
-
},
|
|
433
|
-
},
|
|
434
|
-
required: ['access_schedule', 'product_id'],
|
|
435
|
-
},
|
|
436
|
-
},
|
|
437
|
-
add_discounts: {
|
|
438
|
-
type: 'array',
|
|
439
|
-
items: {
|
|
440
|
-
type: 'object',
|
|
441
|
-
properties: {
|
|
442
|
-
product_id: {
|
|
443
|
-
type: 'string',
|
|
444
|
-
},
|
|
445
|
-
schedule: {
|
|
446
|
-
type: 'object',
|
|
447
|
-
description: 'Must provide either schedule_items or recurring_schedule.',
|
|
448
|
-
properties: {
|
|
449
|
-
credit_type_id: {
|
|
450
|
-
type: 'string',
|
|
451
|
-
description: 'Defaults to USD (cents) if not passed.',
|
|
452
|
-
},
|
|
453
|
-
do_not_invoice: {
|
|
454
|
-
type: 'boolean',
|
|
455
|
-
description:
|
|
456
|
-
'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
|
|
457
|
-
},
|
|
458
|
-
recurring_schedule: {
|
|
459
|
-
type: 'object',
|
|
460
|
-
description:
|
|
461
|
-
'Enter the unit price and quantity for the charge or instead only send the amount. If amount is sent, the unit price is assumed to be the amount and quantity is inferred to be 1.',
|
|
462
|
-
properties: {
|
|
463
|
-
amount_distribution: {
|
|
464
|
-
type: 'string',
|
|
465
|
-
enum: ['DIVIDED', 'DIVIDED_ROUNDED', 'EACH'],
|
|
466
|
-
},
|
|
467
|
-
ending_before: {
|
|
468
|
-
type: 'string',
|
|
469
|
-
description: 'RFC 3339 timestamp (exclusive).',
|
|
470
|
-
format: 'date-time',
|
|
471
|
-
},
|
|
472
|
-
frequency: {
|
|
473
|
-
type: 'string',
|
|
474
|
-
enum: ['MONTHLY', 'QUARTERLY', 'SEMI_ANNUAL', 'ANNUAL', 'WEEKLY'],
|
|
475
|
-
},
|
|
476
|
-
starting_at: {
|
|
477
|
-
type: 'string',
|
|
478
|
-
description: 'RFC 3339 timestamp (inclusive).',
|
|
479
|
-
format: 'date-time',
|
|
480
|
-
},
|
|
481
|
-
amount: {
|
|
482
|
-
type: 'number',
|
|
483
|
-
description:
|
|
484
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
485
|
-
},
|
|
486
|
-
quantity: {
|
|
487
|
-
type: 'number',
|
|
488
|
-
description:
|
|
489
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
490
|
-
},
|
|
491
|
-
unit_price: {
|
|
492
|
-
type: 'number',
|
|
493
|
-
description:
|
|
494
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
required: ['amount_distribution', 'ending_before', 'frequency', 'starting_at'],
|
|
498
|
-
},
|
|
499
|
-
schedule_items: {
|
|
500
|
-
type: 'array',
|
|
501
|
-
description: 'Either provide amount or provide both unit_price and quantity.',
|
|
502
|
-
items: {
|
|
503
|
-
type: 'object',
|
|
504
|
-
properties: {
|
|
505
|
-
timestamp: {
|
|
506
|
-
type: 'string',
|
|
507
|
-
description: 'timestamp of the scheduled event',
|
|
508
|
-
format: 'date-time',
|
|
509
|
-
},
|
|
510
|
-
amount: {
|
|
511
|
-
type: 'number',
|
|
512
|
-
description:
|
|
513
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
514
|
-
},
|
|
515
|
-
quantity: {
|
|
516
|
-
type: 'number',
|
|
517
|
-
description:
|
|
518
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
519
|
-
},
|
|
520
|
-
unit_price: {
|
|
521
|
-
type: 'number',
|
|
522
|
-
description:
|
|
523
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
524
|
-
},
|
|
525
|
-
},
|
|
526
|
-
required: ['timestamp'],
|
|
527
|
-
},
|
|
528
|
-
},
|
|
529
|
-
},
|
|
530
|
-
},
|
|
531
|
-
custom_fields: {
|
|
532
|
-
type: 'object',
|
|
533
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
534
|
-
additionalProperties: true,
|
|
535
|
-
},
|
|
536
|
-
name: {
|
|
537
|
-
type: 'string',
|
|
538
|
-
description: 'displayed on invoices',
|
|
539
|
-
},
|
|
540
|
-
netsuite_sales_order_id: {
|
|
541
|
-
type: 'string',
|
|
542
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
543
|
-
},
|
|
544
|
-
},
|
|
545
|
-
required: ['product_id', 'schedule'],
|
|
546
|
-
},
|
|
547
|
-
},
|
|
548
|
-
add_overrides: {
|
|
549
|
-
type: 'array',
|
|
550
|
-
items: {
|
|
551
|
-
type: 'object',
|
|
552
|
-
properties: {
|
|
553
|
-
starting_at: {
|
|
554
|
-
type: 'string',
|
|
555
|
-
description: 'RFC 3339 timestamp indicating when the override will start applying (inclusive)',
|
|
556
|
-
format: 'date-time',
|
|
557
|
-
},
|
|
558
|
-
applicable_product_tags: {
|
|
559
|
-
type: 'array',
|
|
560
|
-
description: 'tags identifying products whose rates are being overridden',
|
|
561
|
-
items: {
|
|
562
|
-
type: 'string',
|
|
563
|
-
},
|
|
564
|
-
},
|
|
565
|
-
ending_before: {
|
|
566
|
-
type: 'string',
|
|
567
|
-
description: 'RFC 3339 timestamp indicating when the override will stop applying (exclusive)',
|
|
568
|
-
format: 'date-time',
|
|
569
|
-
},
|
|
570
|
-
entitled: {
|
|
571
|
-
type: 'boolean',
|
|
572
|
-
},
|
|
573
|
-
is_commit_specific: {
|
|
574
|
-
type: 'boolean',
|
|
575
|
-
description:
|
|
576
|
-
'Indicates whether the override should only apply to commits. Defaults to `false`. If `true`, you can specify relevant commits in `override_specifiers` by passing `commit_ids`.',
|
|
577
|
-
},
|
|
578
|
-
multiplier: {
|
|
579
|
-
type: 'number',
|
|
580
|
-
description: 'Required for MULTIPLIER type. Must be >=0.',
|
|
581
|
-
},
|
|
582
|
-
override_specifiers: {
|
|
583
|
-
type: 'array',
|
|
584
|
-
description:
|
|
585
|
-
'Cannot be used in conjunction with product_id or applicable_product_tags. If provided, the override will apply to all products with the specified specifiers.',
|
|
586
|
-
items: {
|
|
587
|
-
type: 'object',
|
|
588
|
-
properties: {
|
|
589
|
-
billing_frequency: {
|
|
590
|
-
type: 'string',
|
|
591
|
-
enum: ['MONTHLY', 'QUARTERLY', 'ANNUAL', 'WEEKLY'],
|
|
592
|
-
},
|
|
593
|
-
commit_ids: {
|
|
594
|
-
type: 'array',
|
|
595
|
-
description:
|
|
596
|
-
'If provided, the override will only apply to the specified commits. Can only be used for commit specific overrides. If not provided, the override will apply to all commits.',
|
|
597
|
-
items: {
|
|
598
|
-
type: 'string',
|
|
599
|
-
},
|
|
600
|
-
},
|
|
601
|
-
presentation_group_values: {
|
|
602
|
-
type: 'object',
|
|
603
|
-
description:
|
|
604
|
-
'A map of group names to values. The override will only apply to line items with the specified presentation group values. Can only be used for multiplier overrides.',
|
|
605
|
-
additionalProperties: true,
|
|
606
|
-
},
|
|
607
|
-
pricing_group_values: {
|
|
608
|
-
type: 'object',
|
|
609
|
-
description:
|
|
610
|
-
'A map of pricing group names to values. The override will only apply to products with the specified pricing group values.',
|
|
611
|
-
additionalProperties: true,
|
|
612
|
-
},
|
|
613
|
-
product_id: {
|
|
614
|
-
type: 'string',
|
|
615
|
-
description:
|
|
616
|
-
'If provided, the override will only apply to the product with the specified ID.',
|
|
617
|
-
},
|
|
618
|
-
product_tags: {
|
|
619
|
-
type: 'array',
|
|
620
|
-
description:
|
|
621
|
-
'If provided, the override will only apply to products with all the specified tags.',
|
|
622
|
-
items: {
|
|
623
|
-
type: 'string',
|
|
624
|
-
},
|
|
625
|
-
},
|
|
626
|
-
recurring_commit_ids: {
|
|
627
|
-
type: 'array',
|
|
628
|
-
description:
|
|
629
|
-
'Can only be used for commit specific overrides. Must be used in conjunction with one of product_id, product_tags, pricing_group_values, or presentation_group_values. If provided, the override will only apply to commits created by the specified recurring commit ids.',
|
|
630
|
-
items: {
|
|
631
|
-
type: 'string',
|
|
632
|
-
},
|
|
633
|
-
},
|
|
634
|
-
recurring_credit_ids: {
|
|
635
|
-
type: 'array',
|
|
636
|
-
description:
|
|
637
|
-
'Can only be used for commit specific overrides. Must be used in conjunction with one of product_id, product_tags, pricing_group_values, or presentation_group_values. If provided, the override will only apply to commits created by the specified recurring credit ids.',
|
|
638
|
-
items: {
|
|
639
|
-
type: 'string',
|
|
640
|
-
},
|
|
641
|
-
},
|
|
642
|
-
},
|
|
643
|
-
},
|
|
644
|
-
},
|
|
645
|
-
overwrite_rate: {
|
|
646
|
-
type: 'object',
|
|
647
|
-
description: 'Required for OVERWRITE type.',
|
|
648
|
-
properties: {
|
|
649
|
-
rate_type: {
|
|
650
|
-
type: 'string',
|
|
651
|
-
enum: ['FLAT', 'PERCENTAGE', 'SUBSCRIPTION', 'TIERED', 'CUSTOM'],
|
|
652
|
-
},
|
|
653
|
-
credit_type_id: {
|
|
654
|
-
type: 'string',
|
|
655
|
-
},
|
|
656
|
-
custom_rate: {
|
|
657
|
-
type: 'object',
|
|
658
|
-
description:
|
|
659
|
-
'Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.',
|
|
660
|
-
additionalProperties: true,
|
|
661
|
-
},
|
|
662
|
-
is_prorated: {
|
|
663
|
-
type: 'boolean',
|
|
664
|
-
description:
|
|
665
|
-
'Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.',
|
|
666
|
-
},
|
|
667
|
-
price: {
|
|
668
|
-
type: 'number',
|
|
669
|
-
description:
|
|
670
|
-
'Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.',
|
|
671
|
-
},
|
|
672
|
-
quantity: {
|
|
673
|
-
type: 'number',
|
|
674
|
-
description: 'Default quantity. For SUBSCRIPTION rate_type, this must be >=0.',
|
|
675
|
-
},
|
|
676
|
-
tiers: {
|
|
677
|
-
type: 'array',
|
|
678
|
-
description: 'Only set for TIERED rate_type.',
|
|
679
|
-
items: {
|
|
680
|
-
$ref: '#/$defs/tier',
|
|
681
|
-
},
|
|
682
|
-
},
|
|
683
|
-
},
|
|
684
|
-
required: ['rate_type'],
|
|
685
|
-
},
|
|
686
|
-
priority: {
|
|
687
|
-
type: 'number',
|
|
688
|
-
description:
|
|
689
|
-
'Required for EXPLICIT multiplier prioritization scheme and all TIERED overrides. Under EXPLICIT prioritization, overwrites are prioritized first, and then tiered and multiplier overrides are prioritized by their priority value (lowest first). Must be > 0.',
|
|
690
|
-
},
|
|
691
|
-
product_id: {
|
|
692
|
-
type: 'string',
|
|
693
|
-
description: 'ID of the product whose rate is being overridden',
|
|
694
|
-
},
|
|
695
|
-
target: {
|
|
696
|
-
type: 'string',
|
|
697
|
-
description:
|
|
698
|
-
'Indicates whether the override applies to commit rates or list rates. Can only be used for overrides that have `is_commit_specific` set to `true`. Defaults to `"LIST_RATE"`.',
|
|
699
|
-
enum: ['COMMIT_RATE', 'LIST_RATE'],
|
|
700
|
-
},
|
|
701
|
-
tiers: {
|
|
702
|
-
type: 'array',
|
|
703
|
-
description: 'Required for TIERED type. Must have at least one tier.',
|
|
704
|
-
items: {
|
|
705
|
-
type: 'object',
|
|
706
|
-
properties: {
|
|
707
|
-
multiplier: {
|
|
708
|
-
type: 'number',
|
|
709
|
-
},
|
|
710
|
-
size: {
|
|
711
|
-
type: 'number',
|
|
712
|
-
},
|
|
713
|
-
},
|
|
714
|
-
required: ['multiplier'],
|
|
715
|
-
},
|
|
716
|
-
},
|
|
717
|
-
type: {
|
|
718
|
-
type: 'string',
|
|
719
|
-
description: 'Overwrites are prioritized over multipliers and tiered overrides.',
|
|
720
|
-
enum: ['OVERWRITE', 'MULTIPLIER', 'TIERED'],
|
|
721
|
-
},
|
|
722
|
-
},
|
|
723
|
-
required: ['starting_at'],
|
|
724
|
-
},
|
|
725
|
-
},
|
|
726
|
-
add_prepaid_balance_threshold_configuration: {
|
|
727
|
-
$ref: '#/$defs/prepaid_balance_threshold_configuration_v2',
|
|
728
|
-
},
|
|
729
|
-
add_professional_services: {
|
|
730
|
-
type: 'array',
|
|
731
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
732
|
-
items: {
|
|
733
|
-
type: 'object',
|
|
734
|
-
properties: {
|
|
735
|
-
max_amount: {
|
|
736
|
-
type: 'number',
|
|
737
|
-
description: 'Maximum amount for the term.',
|
|
738
|
-
},
|
|
739
|
-
product_id: {
|
|
740
|
-
type: 'string',
|
|
741
|
-
},
|
|
742
|
-
quantity: {
|
|
743
|
-
type: 'number',
|
|
744
|
-
description:
|
|
745
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount.',
|
|
746
|
-
},
|
|
747
|
-
unit_price: {
|
|
748
|
-
type: 'number',
|
|
749
|
-
description:
|
|
750
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified.',
|
|
751
|
-
},
|
|
752
|
-
custom_fields: {
|
|
753
|
-
type: 'object',
|
|
754
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
755
|
-
additionalProperties: true,
|
|
756
|
-
},
|
|
757
|
-
description: {
|
|
758
|
-
type: 'string',
|
|
759
|
-
},
|
|
760
|
-
netsuite_sales_order_id: {
|
|
761
|
-
type: 'string',
|
|
762
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
763
|
-
},
|
|
764
|
-
},
|
|
765
|
-
required: ['max_amount', 'product_id', 'quantity', 'unit_price'],
|
|
766
|
-
},
|
|
767
|
-
},
|
|
768
|
-
add_recurring_commits: {
|
|
769
|
-
type: 'array',
|
|
770
|
-
items: {
|
|
771
|
-
type: 'object',
|
|
772
|
-
properties: {
|
|
773
|
-
access_amount: {
|
|
774
|
-
type: 'object',
|
|
775
|
-
description: 'The amount of commit to grant.',
|
|
776
|
-
properties: {
|
|
777
|
-
credit_type_id: {
|
|
778
|
-
type: 'string',
|
|
779
|
-
},
|
|
780
|
-
unit_price: {
|
|
781
|
-
type: 'number',
|
|
782
|
-
},
|
|
783
|
-
quantity: {
|
|
784
|
-
type: 'number',
|
|
785
|
-
description:
|
|
786
|
-
'This field is required unless a subscription is attached via `subscription_config`.',
|
|
787
|
-
},
|
|
788
|
-
},
|
|
789
|
-
required: ['credit_type_id', 'unit_price'],
|
|
790
|
-
},
|
|
791
|
-
commit_duration: {
|
|
792
|
-
type: 'object',
|
|
793
|
-
description:
|
|
794
|
-
'Defines the length of the access schedule for each created commit/credit. The value represents the number of units. Unit defaults to "PERIODS", where the length of a period is determined by the recurrence_frequency.',
|
|
795
|
-
properties: {
|
|
796
|
-
value: {
|
|
797
|
-
type: 'number',
|
|
798
|
-
},
|
|
799
|
-
unit: {
|
|
800
|
-
type: 'string',
|
|
801
|
-
enum: ['PERIODS'],
|
|
802
|
-
},
|
|
803
|
-
},
|
|
804
|
-
required: ['value'],
|
|
805
|
-
},
|
|
806
|
-
priority: {
|
|
807
|
-
type: 'number',
|
|
808
|
-
description: 'Will be passed down to the individual commits',
|
|
809
|
-
},
|
|
810
|
-
product_id: {
|
|
811
|
-
type: 'string',
|
|
812
|
-
},
|
|
813
|
-
starting_at: {
|
|
814
|
-
type: 'string',
|
|
815
|
-
description: 'determines the start time for the first commit',
|
|
816
|
-
format: 'date-time',
|
|
817
|
-
},
|
|
818
|
-
applicable_product_ids: {
|
|
819
|
-
type: 'array',
|
|
820
|
-
description: 'Will be passed down to the individual commits',
|
|
821
|
-
items: {
|
|
822
|
-
type: 'string',
|
|
823
|
-
},
|
|
824
|
-
},
|
|
825
|
-
applicable_product_tags: {
|
|
826
|
-
type: 'array',
|
|
827
|
-
description: 'Will be passed down to the individual commits',
|
|
828
|
-
items: {
|
|
829
|
-
type: 'string',
|
|
830
|
-
},
|
|
831
|
-
},
|
|
832
|
-
description: {
|
|
833
|
-
type: 'string',
|
|
834
|
-
description: 'Will be passed down to the individual commits',
|
|
835
|
-
},
|
|
836
|
-
ending_before: {
|
|
837
|
-
type: 'string',
|
|
838
|
-
description: 'Determines when the contract will stop creating recurring commits. optional',
|
|
839
|
-
format: 'date-time',
|
|
840
|
-
},
|
|
841
|
-
hierarchy_configuration: {
|
|
842
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
843
|
-
},
|
|
844
|
-
invoice_amount: {
|
|
845
|
-
type: 'object',
|
|
846
|
-
description: 'The amount the customer should be billed for the commit. Not required.',
|
|
847
|
-
properties: {
|
|
848
|
-
credit_type_id: {
|
|
849
|
-
type: 'string',
|
|
850
|
-
},
|
|
851
|
-
quantity: {
|
|
852
|
-
type: 'number',
|
|
853
|
-
},
|
|
854
|
-
unit_price: {
|
|
855
|
-
type: 'number',
|
|
856
|
-
},
|
|
857
|
-
},
|
|
858
|
-
required: ['credit_type_id', 'quantity', 'unit_price'],
|
|
859
|
-
},
|
|
860
|
-
name: {
|
|
861
|
-
type: 'string',
|
|
862
|
-
description: 'displayed on invoices. will be passed through to the individual commits',
|
|
863
|
-
},
|
|
864
|
-
netsuite_sales_order_id: {
|
|
865
|
-
type: 'string',
|
|
866
|
-
description: 'Will be passed down to the individual commits',
|
|
867
|
-
},
|
|
868
|
-
proration: {
|
|
869
|
-
type: 'string',
|
|
870
|
-
description:
|
|
871
|
-
'Determines whether the first and last commit will be prorated. If not provided, the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).',
|
|
872
|
-
enum: ['NONE', 'FIRST', 'LAST', 'FIRST_AND_LAST'],
|
|
873
|
-
},
|
|
874
|
-
rate_type: {
|
|
875
|
-
type: 'string',
|
|
876
|
-
description: 'Whether the created commits will use the commit rate or list rate',
|
|
877
|
-
enum: ['COMMIT_RATE', 'LIST_RATE'],
|
|
878
|
-
},
|
|
879
|
-
recurrence_frequency: {
|
|
880
|
-
type: 'string',
|
|
881
|
-
description:
|
|
882
|
-
"The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.",
|
|
883
|
-
enum: ['MONTHLY', 'QUARTERLY', 'ANNUAL', 'WEEKLY'],
|
|
884
|
-
},
|
|
885
|
-
rollover_fraction: {
|
|
886
|
-
type: 'number',
|
|
887
|
-
description:
|
|
888
|
-
'Will be passed down to the individual commits. This controls how much of an individual unexpired commit will roll over upon contract transition. Must be between 0 and 1.',
|
|
889
|
-
},
|
|
890
|
-
specifiers: {
|
|
891
|
-
type: 'array',
|
|
892
|
-
description:
|
|
893
|
-
"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`.",
|
|
894
|
-
items: {
|
|
895
|
-
$ref: '#/$defs/commit_specifier_input',
|
|
896
|
-
},
|
|
897
|
-
},
|
|
898
|
-
subscription_config: {
|
|
899
|
-
type: 'object',
|
|
900
|
-
description: 'Attach a subscription to the recurring commit/credit.',
|
|
901
|
-
properties: {
|
|
902
|
-
apply_seat_increase_config: {
|
|
903
|
-
type: 'object',
|
|
904
|
-
properties: {
|
|
905
|
-
is_prorated: {
|
|
906
|
-
type: 'boolean',
|
|
907
|
-
description: 'Indicates whether a mid-period seat increase should be prorated.',
|
|
908
|
-
},
|
|
909
|
-
},
|
|
910
|
-
required: ['is_prorated'],
|
|
911
|
-
},
|
|
912
|
-
subscription_id: {
|
|
913
|
-
type: 'string',
|
|
914
|
-
description: 'ID of the subscription to configure on the recurring commit/credit.',
|
|
915
|
-
},
|
|
916
|
-
allocation: {
|
|
917
|
-
type: 'string',
|
|
918
|
-
description:
|
|
919
|
-
'If set to POOLED, allocation added per seat is pooled across the account. If set to INDIVIDUAL, each seat in the subscription will have its own allocation.',
|
|
920
|
-
enum: ['POOLED', 'INDIVIDUAL'],
|
|
921
|
-
},
|
|
922
|
-
},
|
|
923
|
-
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
924
|
-
},
|
|
925
|
-
temporary_id: {
|
|
926
|
-
type: 'string',
|
|
927
|
-
description:
|
|
928
|
-
'A temporary ID that can be used to reference the recurring commit for commit specific overrides.',
|
|
929
|
-
},
|
|
930
|
-
},
|
|
931
|
-
required: ['access_amount', 'commit_duration', 'priority', 'product_id', 'starting_at'],
|
|
932
|
-
},
|
|
933
|
-
},
|
|
934
|
-
add_recurring_credits: {
|
|
935
|
-
type: 'array',
|
|
936
|
-
items: {
|
|
937
|
-
type: 'object',
|
|
938
|
-
properties: {
|
|
939
|
-
access_amount: {
|
|
940
|
-
type: 'object',
|
|
941
|
-
description: 'The amount of commit to grant.',
|
|
942
|
-
properties: {
|
|
943
|
-
credit_type_id: {
|
|
944
|
-
type: 'string',
|
|
945
|
-
},
|
|
946
|
-
unit_price: {
|
|
947
|
-
type: 'number',
|
|
948
|
-
},
|
|
949
|
-
quantity: {
|
|
950
|
-
type: 'number',
|
|
951
|
-
description:
|
|
952
|
-
'This field is required unless a subscription is attached via `subscription_config`.',
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
|
-
required: ['credit_type_id', 'unit_price'],
|
|
956
|
-
},
|
|
957
|
-
commit_duration: {
|
|
958
|
-
type: 'object',
|
|
959
|
-
description:
|
|
960
|
-
'Defines the length of the access schedule for each created commit/credit. The value represents the number of units. Unit defaults to "PERIODS", where the length of a period is determined by the recurrence_frequency.',
|
|
961
|
-
properties: {
|
|
962
|
-
value: {
|
|
963
|
-
type: 'number',
|
|
964
|
-
},
|
|
965
|
-
unit: {
|
|
966
|
-
type: 'string',
|
|
967
|
-
enum: ['PERIODS'],
|
|
968
|
-
},
|
|
969
|
-
},
|
|
970
|
-
required: ['value'],
|
|
971
|
-
},
|
|
972
|
-
priority: {
|
|
973
|
-
type: 'number',
|
|
974
|
-
description: 'Will be passed down to the individual commits',
|
|
975
|
-
},
|
|
976
|
-
product_id: {
|
|
977
|
-
type: 'string',
|
|
978
|
-
},
|
|
979
|
-
starting_at: {
|
|
980
|
-
type: 'string',
|
|
981
|
-
description: 'determines the start time for the first commit',
|
|
982
|
-
format: 'date-time',
|
|
983
|
-
},
|
|
984
|
-
applicable_product_ids: {
|
|
985
|
-
type: 'array',
|
|
986
|
-
description: 'Will be passed down to the individual commits',
|
|
987
|
-
items: {
|
|
988
|
-
type: 'string',
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
|
-
applicable_product_tags: {
|
|
992
|
-
type: 'array',
|
|
993
|
-
description: 'Will be passed down to the individual commits',
|
|
994
|
-
items: {
|
|
995
|
-
type: 'string',
|
|
996
|
-
},
|
|
997
|
-
},
|
|
998
|
-
description: {
|
|
999
|
-
type: 'string',
|
|
1000
|
-
description: 'Will be passed down to the individual commits',
|
|
1001
|
-
},
|
|
1002
|
-
ending_before: {
|
|
1003
|
-
type: 'string',
|
|
1004
|
-
description: 'Determines when the contract will stop creating recurring commits. optional',
|
|
1005
|
-
format: 'date-time',
|
|
1006
|
-
},
|
|
1007
|
-
hierarchy_configuration: {
|
|
1008
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1009
|
-
},
|
|
1010
|
-
name: {
|
|
1011
|
-
type: 'string',
|
|
1012
|
-
description: 'displayed on invoices. will be passed through to the individual commits',
|
|
1013
|
-
},
|
|
1014
|
-
netsuite_sales_order_id: {
|
|
1015
|
-
type: 'string',
|
|
1016
|
-
description: 'Will be passed down to the individual commits',
|
|
1017
|
-
},
|
|
1018
|
-
proration: {
|
|
1019
|
-
type: 'string',
|
|
1020
|
-
description:
|
|
1021
|
-
'Determines whether the first and last commit will be prorated. If not provided, the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).',
|
|
1022
|
-
enum: ['NONE', 'FIRST', 'LAST', 'FIRST_AND_LAST'],
|
|
1023
|
-
},
|
|
1024
|
-
rate_type: {
|
|
1025
|
-
type: 'string',
|
|
1026
|
-
description: 'Whether the created commits will use the commit rate or list rate',
|
|
1027
|
-
enum: ['COMMIT_RATE', 'LIST_RATE'],
|
|
1028
|
-
},
|
|
1029
|
-
recurrence_frequency: {
|
|
1030
|
-
type: 'string',
|
|
1031
|
-
description:
|
|
1032
|
-
"The frequency at which the recurring commits will be created. If not provided: - The commits will be created on the usage invoice frequency. If provided: - The period defined in the duration will correspond to this frequency. - Commits will be created aligned with the recurring commit's starting_at rather than the usage invoice dates.",
|
|
1033
|
-
enum: ['MONTHLY', 'QUARTERLY', 'ANNUAL', 'WEEKLY'],
|
|
1034
|
-
},
|
|
1035
|
-
rollover_fraction: {
|
|
1036
|
-
type: 'number',
|
|
1037
|
-
description:
|
|
1038
|
-
'Will be passed down to the individual commits. This controls how much of an individual unexpired commit will roll over upon contract transition. Must be between 0 and 1.',
|
|
1039
|
-
},
|
|
1040
|
-
specifiers: {
|
|
1041
|
-
type: 'array',
|
|
1042
|
-
description:
|
|
1043
|
-
"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`.",
|
|
1044
|
-
items: {
|
|
1045
|
-
$ref: '#/$defs/commit_specifier_input',
|
|
1046
|
-
},
|
|
1047
|
-
},
|
|
1048
|
-
subscription_config: {
|
|
1049
|
-
type: 'object',
|
|
1050
|
-
description: 'Attach a subscription to the recurring commit/credit.',
|
|
1051
|
-
properties: {
|
|
1052
|
-
apply_seat_increase_config: {
|
|
1053
|
-
type: 'object',
|
|
1054
|
-
properties: {
|
|
1055
|
-
is_prorated: {
|
|
1056
|
-
type: 'boolean',
|
|
1057
|
-
description: 'Indicates whether a mid-period seat increase should be prorated.',
|
|
1058
|
-
},
|
|
1059
|
-
},
|
|
1060
|
-
required: ['is_prorated'],
|
|
1061
|
-
},
|
|
1062
|
-
subscription_id: {
|
|
1063
|
-
type: 'string',
|
|
1064
|
-
description: 'ID of the subscription to configure on the recurring commit/credit.',
|
|
1065
|
-
},
|
|
1066
|
-
allocation: {
|
|
1067
|
-
type: 'string',
|
|
1068
|
-
description:
|
|
1069
|
-
'If set to POOLED, allocation added per seat is pooled across the account. If set to INDIVIDUAL, each seat in the subscription will have its own allocation.',
|
|
1070
|
-
enum: ['POOLED', 'INDIVIDUAL'],
|
|
1071
|
-
},
|
|
1072
|
-
},
|
|
1073
|
-
required: ['apply_seat_increase_config', 'subscription_id'],
|
|
1074
|
-
},
|
|
1075
|
-
temporary_id: {
|
|
1076
|
-
type: 'string',
|
|
1077
|
-
description:
|
|
1078
|
-
'A temporary ID that can be used to reference the recurring commit for commit specific overrides.',
|
|
1079
|
-
},
|
|
1080
|
-
},
|
|
1081
|
-
required: ['access_amount', 'commit_duration', 'priority', 'product_id', 'starting_at'],
|
|
1082
|
-
},
|
|
1083
|
-
},
|
|
1084
|
-
add_reseller_royalties: {
|
|
1085
|
-
type: 'array',
|
|
1086
|
-
items: {
|
|
1087
|
-
type: 'object',
|
|
1088
|
-
properties: {
|
|
1089
|
-
reseller_type: {
|
|
1090
|
-
type: 'string',
|
|
1091
|
-
enum: ['AWS', 'AWS_PRO_SERVICE', 'GCP', 'GCP_PRO_SERVICE'],
|
|
1092
|
-
},
|
|
1093
|
-
applicable_product_ids: {
|
|
1094
|
-
type: 'array',
|
|
1095
|
-
description: 'Must provide at least one of applicable_product_ids or applicable_product_tags.',
|
|
1096
|
-
items: {
|
|
1097
|
-
type: 'string',
|
|
1098
|
-
},
|
|
1099
|
-
},
|
|
1100
|
-
applicable_product_tags: {
|
|
1101
|
-
type: 'array',
|
|
1102
|
-
description: 'Must provide at least one of applicable_product_ids or applicable_product_tags.',
|
|
1103
|
-
items: {
|
|
1104
|
-
type: 'string',
|
|
1105
|
-
},
|
|
1106
|
-
},
|
|
1107
|
-
aws_options: {
|
|
1108
|
-
type: 'object',
|
|
1109
|
-
properties: {
|
|
1110
|
-
aws_account_number: {
|
|
1111
|
-
type: 'string',
|
|
1112
|
-
},
|
|
1113
|
-
aws_offer_id: {
|
|
1114
|
-
type: 'string',
|
|
1115
|
-
},
|
|
1116
|
-
aws_payer_reference_id: {
|
|
1117
|
-
type: 'string',
|
|
1118
|
-
},
|
|
1119
|
-
},
|
|
1120
|
-
},
|
|
1121
|
-
ending_before: {
|
|
1122
|
-
type: 'string',
|
|
1123
|
-
description: 'Use null to indicate that the existing end timestamp should be removed.',
|
|
1124
|
-
format: 'date-time',
|
|
1125
|
-
},
|
|
1126
|
-
fraction: {
|
|
1127
|
-
type: 'number',
|
|
1128
|
-
},
|
|
1129
|
-
gcp_options: {
|
|
1130
|
-
type: 'object',
|
|
1131
|
-
properties: {
|
|
1132
|
-
gcp_account_id: {
|
|
1133
|
-
type: 'string',
|
|
1134
|
-
},
|
|
1135
|
-
gcp_offer_id: {
|
|
1136
|
-
type: 'string',
|
|
1137
|
-
},
|
|
1138
|
-
},
|
|
1139
|
-
},
|
|
1140
|
-
netsuite_reseller_id: {
|
|
1141
|
-
type: 'string',
|
|
1142
|
-
},
|
|
1143
|
-
reseller_contract_value: {
|
|
1144
|
-
type: 'number',
|
|
1145
|
-
},
|
|
1146
|
-
starting_at: {
|
|
1147
|
-
type: 'string',
|
|
1148
|
-
format: 'date-time',
|
|
1149
|
-
},
|
|
1150
|
-
},
|
|
1151
|
-
required: ['reseller_type'],
|
|
1152
|
-
},
|
|
1153
|
-
},
|
|
1154
|
-
add_scheduled_charges: {
|
|
1155
|
-
type: 'array',
|
|
1156
|
-
items: {
|
|
1157
|
-
type: 'object',
|
|
1158
|
-
properties: {
|
|
1159
|
-
product_id: {
|
|
1160
|
-
type: 'string',
|
|
1161
|
-
},
|
|
1162
|
-
schedule: {
|
|
1163
|
-
type: 'object',
|
|
1164
|
-
description: 'Must provide either schedule_items or recurring_schedule.',
|
|
1165
|
-
properties: {
|
|
1166
|
-
credit_type_id: {
|
|
1167
|
-
type: 'string',
|
|
1168
|
-
description: 'Defaults to USD (cents) if not passed.',
|
|
1169
|
-
},
|
|
1170
|
-
do_not_invoice: {
|
|
1171
|
-
type: 'boolean',
|
|
1172
|
-
description:
|
|
1173
|
-
'This field is only applicable to commit invoice schedules. If true, this schedule will not generate an invoice.',
|
|
1174
|
-
},
|
|
1175
|
-
recurring_schedule: {
|
|
1176
|
-
type: 'object',
|
|
1177
|
-
description:
|
|
1178
|
-
'Enter the unit price and quantity for the charge or instead only send the amount. If amount is sent, the unit price is assumed to be the amount and quantity is inferred to be 1.',
|
|
1179
|
-
properties: {
|
|
1180
|
-
amount_distribution: {
|
|
1181
|
-
type: 'string',
|
|
1182
|
-
enum: ['DIVIDED', 'DIVIDED_ROUNDED', 'EACH'],
|
|
1183
|
-
},
|
|
1184
|
-
ending_before: {
|
|
1185
|
-
type: 'string',
|
|
1186
|
-
description: 'RFC 3339 timestamp (exclusive).',
|
|
1187
|
-
format: 'date-time',
|
|
1188
|
-
},
|
|
1189
|
-
frequency: {
|
|
1190
|
-
type: 'string',
|
|
1191
|
-
enum: ['MONTHLY', 'QUARTERLY', 'SEMI_ANNUAL', 'ANNUAL', 'WEEKLY'],
|
|
1192
|
-
},
|
|
1193
|
-
starting_at: {
|
|
1194
|
-
type: 'string',
|
|
1195
|
-
description: 'RFC 3339 timestamp (inclusive).',
|
|
1196
|
-
format: 'date-time',
|
|
1197
|
-
},
|
|
1198
|
-
amount: {
|
|
1199
|
-
type: 'number',
|
|
1200
|
-
description:
|
|
1201
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
1202
|
-
},
|
|
1203
|
-
quantity: {
|
|
1204
|
-
type: 'number',
|
|
1205
|
-
description:
|
|
1206
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
1207
|
-
},
|
|
1208
|
-
unit_price: {
|
|
1209
|
-
type: 'number',
|
|
1210
|
-
description:
|
|
1211
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
1212
|
-
},
|
|
1213
|
-
},
|
|
1214
|
-
required: ['amount_distribution', 'ending_before', 'frequency', 'starting_at'],
|
|
1215
|
-
},
|
|
1216
|
-
schedule_items: {
|
|
1217
|
-
type: 'array',
|
|
1218
|
-
description: 'Either provide amount or provide both unit_price and quantity.',
|
|
1219
|
-
items: {
|
|
1220
|
-
type: 'object',
|
|
1221
|
-
properties: {
|
|
1222
|
-
timestamp: {
|
|
1223
|
-
type: 'string',
|
|
1224
|
-
description: 'timestamp of the scheduled event',
|
|
1225
|
-
format: 'date-time',
|
|
1226
|
-
},
|
|
1227
|
-
amount: {
|
|
1228
|
-
type: 'number',
|
|
1229
|
-
description:
|
|
1230
|
-
'Amount for the charge. Can be provided instead of unit_price and quantity. If amount is sent, the unit_price is assumed to be the amount and quantity is inferred to be 1.',
|
|
1231
|
-
},
|
|
1232
|
-
quantity: {
|
|
1233
|
-
type: 'number',
|
|
1234
|
-
description:
|
|
1235
|
-
'Quantity for the charge. Will be multiplied by unit_price to determine the amount and must be specified with unit_price. If specified amount cannot be provided.',
|
|
1236
|
-
},
|
|
1237
|
-
unit_price: {
|
|
1238
|
-
type: 'number',
|
|
1239
|
-
description:
|
|
1240
|
-
'Unit price for the charge. Will be multiplied by quantity to determine the amount and must be specified with quantity. If specified amount cannot be provided.',
|
|
1241
|
-
},
|
|
1242
|
-
},
|
|
1243
|
-
required: ['timestamp'],
|
|
1244
|
-
},
|
|
1245
|
-
},
|
|
1246
|
-
},
|
|
1247
|
-
},
|
|
1248
|
-
custom_fields: {
|
|
1249
|
-
type: 'object',
|
|
1250
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1251
|
-
additionalProperties: true,
|
|
1252
|
-
},
|
|
1253
|
-
name: {
|
|
1254
|
-
type: 'string',
|
|
1255
|
-
description: 'displayed on invoices',
|
|
1256
|
-
},
|
|
1257
|
-
netsuite_sales_order_id: {
|
|
1258
|
-
type: 'string',
|
|
1259
|
-
description: "This field's availability is dependent on your client's configuration.",
|
|
1260
|
-
},
|
|
1261
|
-
},
|
|
1262
|
-
required: ['product_id', 'schedule'],
|
|
1263
|
-
},
|
|
1264
|
-
},
|
|
1265
|
-
add_spend_threshold_configuration: {
|
|
1266
|
-
$ref: '#/$defs/spend_threshold_configuration_v2',
|
|
1267
|
-
},
|
|
1268
|
-
add_subscriptions: {
|
|
1269
|
-
type: 'array',
|
|
1270
|
-
description:
|
|
1271
|
-
'Optional list of [subscriptions](https://docs.metronome.com/manage-product-access/create-subscription/) to add to the contract.',
|
|
1272
|
-
items: {
|
|
1273
|
-
type: 'object',
|
|
1274
|
-
properties: {
|
|
1275
|
-
collection_schedule: {
|
|
1276
|
-
type: 'string',
|
|
1277
|
-
enum: ['ADVANCE', 'ARREARS'],
|
|
1278
|
-
},
|
|
1279
|
-
proration: {
|
|
1280
|
-
type: 'object',
|
|
1281
|
-
properties: {
|
|
1282
|
-
invoice_behavior: {
|
|
1283
|
-
type: 'string',
|
|
1284
|
-
description:
|
|
1285
|
-
'Indicates how mid-period quantity adjustments are invoiced. \n**BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The quantity increase will be billed immediately on the scheduled date.\n**BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for in-arrears at the end of the period.',
|
|
1286
|
-
enum: ['BILL_IMMEDIATELY', 'BILL_ON_NEXT_COLLECTION_DATE'],
|
|
1287
|
-
},
|
|
1288
|
-
is_prorated: {
|
|
1289
|
-
type: 'boolean',
|
|
1290
|
-
description: 'Indicates if the partial period will be prorated or charged a full amount.',
|
|
1291
|
-
},
|
|
1292
|
-
},
|
|
1293
|
-
},
|
|
1294
|
-
subscription_rate: {
|
|
1295
|
-
type: 'object',
|
|
1296
|
-
properties: {
|
|
1297
|
-
billing_frequency: {
|
|
1298
|
-
type: 'string',
|
|
1299
|
-
description:
|
|
1300
|
-
'Frequency to bill subscription with. Together with product_id, must match existing rate on the rate card.',
|
|
1301
|
-
enum: ['MONTHLY', 'QUARTERLY', 'ANNUAL', 'WEEKLY'],
|
|
1302
|
-
},
|
|
1303
|
-
product_id: {
|
|
1304
|
-
type: 'string',
|
|
1305
|
-
description: 'Must be subscription type product',
|
|
1306
|
-
},
|
|
1307
|
-
},
|
|
1308
|
-
required: ['billing_frequency', 'product_id'],
|
|
1309
|
-
},
|
|
1310
|
-
custom_fields: {
|
|
1311
|
-
type: 'object',
|
|
1312
|
-
description: 'Custom fields to be added eg. { "key1": "value1", "key2": "value2" }',
|
|
1313
|
-
additionalProperties: true,
|
|
1314
|
-
},
|
|
1315
|
-
description: {
|
|
1316
|
-
type: 'string',
|
|
1317
|
-
},
|
|
1318
|
-
ending_before: {
|
|
1319
|
-
type: 'string',
|
|
1320
|
-
description:
|
|
1321
|
-
'Exclusive end time for the subscription. If not provided, subscription inherits contract end date.',
|
|
1322
|
-
format: 'date-time',
|
|
1323
|
-
},
|
|
1324
|
-
initial_quantity: {
|
|
1325
|
-
type: 'number',
|
|
1326
|
-
description:
|
|
1327
|
-
'The initial quantity for the subscription. It must be non-negative value. Required if quantity_management_mode is QUANTITY_ONLY.',
|
|
1328
|
-
},
|
|
1329
|
-
name: {
|
|
1330
|
-
type: 'string',
|
|
1331
|
-
},
|
|
1332
|
-
quantity_management_mode: {
|
|
1333
|
-
type: 'string',
|
|
1334
|
-
description:
|
|
1335
|
-
"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. **SEAT_BASED**: Use when you want to pass specific seat identifiers (e.g. add user_123) to increment and decrement a subscription quantity, rather than directly providing the quantity. You must use a **SEAT_BASED** subscription to use a linked recurring credit with an allocation per seat. `seat_config` must be provided with this option.",
|
|
1336
|
-
enum: ['SEAT_BASED', 'QUANTITY_ONLY'],
|
|
1337
|
-
},
|
|
1338
|
-
seat_config: {
|
|
1339
|
-
type: 'object',
|
|
1340
|
-
properties: {
|
|
1341
|
-
initial_seat_ids: {
|
|
1342
|
-
type: 'array',
|
|
1343
|
-
description: 'The initial assigned seats on this subscription.',
|
|
1344
|
-
items: {
|
|
1345
|
-
type: 'string',
|
|
1346
|
-
},
|
|
1347
|
-
},
|
|
1348
|
-
seat_group_key: {
|
|
1349
|
-
type: 'string',
|
|
1350
|
-
description:
|
|
1351
|
-
"The property name, sent on usage events, that identifies the seat ID associated with the usage event. For example, the property name might be seat_id or user_id. The property must be set as a group key on billable metrics and a presentation/pricing group key on contract products. This allows linked recurring credits with an allocation per seat to be consumed by only one seat's usage.",
|
|
1352
|
-
},
|
|
1353
|
-
initial_unassigned_seats: {
|
|
1354
|
-
type: 'number',
|
|
1355
|
-
description: 'The initial amount of unassigned seats on this subscription.',
|
|
1356
|
-
},
|
|
1357
|
-
},
|
|
1358
|
-
required: ['initial_seat_ids', 'seat_group_key'],
|
|
1359
|
-
},
|
|
1360
|
-
starting_at: {
|
|
1361
|
-
type: 'string',
|
|
1362
|
-
description:
|
|
1363
|
-
'Inclusive start time for the subscription. If not provided, defaults to contract start date',
|
|
1364
|
-
format: 'date-time',
|
|
1365
|
-
},
|
|
1366
|
-
temporary_id: {
|
|
1367
|
-
type: 'string',
|
|
1368
|
-
description:
|
|
1369
|
-
'A temporary ID used to reference the subscription in recurring commit/credit subscription configs created within the same payload.',
|
|
1370
|
-
},
|
|
1371
|
-
},
|
|
1372
|
-
required: ['collection_schedule', 'proration', 'subscription_rate'],
|
|
1373
|
-
},
|
|
1374
|
-
},
|
|
1375
|
-
allow_contract_ending_before_finalized_invoice: {
|
|
1376
|
-
type: 'boolean',
|
|
1377
|
-
description:
|
|
1378
|
-
'If true, allows setting the contract end date earlier than the end_timestamp of existing finalized invoices. Finalized invoices will be unchanged; if you want to incorporate the new end date, you can void and regenerate finalized usage invoices. Defaults to true.',
|
|
1379
|
-
},
|
|
1380
|
-
archive_commits: {
|
|
1381
|
-
type: 'array',
|
|
1382
|
-
description: 'IDs of commits to archive',
|
|
1383
|
-
items: {
|
|
1384
|
-
type: 'object',
|
|
1385
|
-
properties: {
|
|
1386
|
-
id: {
|
|
1387
|
-
type: 'string',
|
|
1388
|
-
},
|
|
1389
|
-
},
|
|
1390
|
-
required: ['id'],
|
|
1391
|
-
},
|
|
1392
|
-
},
|
|
1393
|
-
archive_credits: {
|
|
1394
|
-
type: 'array',
|
|
1395
|
-
description: 'IDs of credits to archive',
|
|
1396
|
-
items: {
|
|
1397
|
-
type: 'object',
|
|
1398
|
-
properties: {
|
|
1399
|
-
id: {
|
|
1400
|
-
type: 'string',
|
|
1401
|
-
},
|
|
1402
|
-
},
|
|
1403
|
-
required: ['id'],
|
|
1404
|
-
},
|
|
1405
|
-
},
|
|
1406
|
-
archive_scheduled_charges: {
|
|
1407
|
-
type: 'array',
|
|
1408
|
-
description: 'IDs of scheduled charges to archive',
|
|
1409
|
-
items: {
|
|
1410
|
-
type: 'object',
|
|
1411
|
-
properties: {
|
|
1412
|
-
id: {
|
|
1413
|
-
type: 'string',
|
|
1414
|
-
},
|
|
1415
|
-
},
|
|
1416
|
-
required: ['id'],
|
|
1417
|
-
},
|
|
1418
|
-
},
|
|
1419
|
-
remove_overrides: {
|
|
1420
|
-
type: 'array',
|
|
1421
|
-
description: 'IDs of overrides to remove',
|
|
1422
|
-
items: {
|
|
1423
|
-
type: 'object',
|
|
1424
|
-
properties: {
|
|
1425
|
-
id: {
|
|
1426
|
-
type: 'string',
|
|
1427
|
-
},
|
|
1428
|
-
},
|
|
1429
|
-
required: ['id'],
|
|
1430
|
-
},
|
|
1431
|
-
},
|
|
1432
|
-
uniqueness_key: {
|
|
1433
|
-
type: 'string',
|
|
1434
|
-
description: 'Optional uniqueness key to prevent duplicate contract edits.',
|
|
1435
|
-
},
|
|
1436
|
-
update_commits: {
|
|
1437
|
-
type: 'array',
|
|
1438
|
-
items: {
|
|
1439
|
-
type: 'object',
|
|
1440
|
-
properties: {
|
|
1441
|
-
commit_id: {
|
|
1442
|
-
type: 'string',
|
|
1443
|
-
},
|
|
1444
|
-
access_schedule: {
|
|
1445
|
-
type: 'object',
|
|
1446
|
-
properties: {
|
|
1447
|
-
add_schedule_items: {
|
|
1448
|
-
type: 'array',
|
|
1449
|
-
items: {
|
|
1450
|
-
type: 'object',
|
|
1451
|
-
properties: {
|
|
1452
|
-
amount: {
|
|
1453
|
-
type: 'number',
|
|
1454
|
-
},
|
|
1455
|
-
ending_before: {
|
|
1456
|
-
type: 'string',
|
|
1457
|
-
format: 'date-time',
|
|
1458
|
-
},
|
|
1459
|
-
starting_at: {
|
|
1460
|
-
type: 'string',
|
|
1461
|
-
format: 'date-time',
|
|
1462
|
-
},
|
|
1463
|
-
},
|
|
1464
|
-
required: ['amount', 'ending_before', 'starting_at'],
|
|
1465
|
-
},
|
|
1466
|
-
},
|
|
1467
|
-
remove_schedule_items: {
|
|
1468
|
-
type: 'array',
|
|
1469
|
-
items: {
|
|
1470
|
-
type: 'object',
|
|
1471
|
-
properties: {
|
|
1472
|
-
id: {
|
|
1473
|
-
type: 'string',
|
|
1474
|
-
},
|
|
1475
|
-
},
|
|
1476
|
-
required: ['id'],
|
|
1477
|
-
},
|
|
1478
|
-
},
|
|
1479
|
-
update_schedule_items: {
|
|
1480
|
-
type: 'array',
|
|
1481
|
-
items: {
|
|
1482
|
-
type: 'object',
|
|
1483
|
-
properties: {
|
|
1484
|
-
id: {
|
|
1485
|
-
type: 'string',
|
|
1486
|
-
},
|
|
1487
|
-
amount: {
|
|
1488
|
-
type: 'number',
|
|
1489
|
-
},
|
|
1490
|
-
ending_before: {
|
|
1491
|
-
type: 'string',
|
|
1492
|
-
format: 'date-time',
|
|
1493
|
-
},
|
|
1494
|
-
starting_at: {
|
|
1495
|
-
type: 'string',
|
|
1496
|
-
format: 'date-time',
|
|
1497
|
-
},
|
|
1498
|
-
},
|
|
1499
|
-
required: ['id'],
|
|
1500
|
-
},
|
|
1501
|
-
},
|
|
1502
|
-
},
|
|
1503
|
-
},
|
|
1504
|
-
applicable_product_ids: {
|
|
1505
|
-
type: 'array',
|
|
1506
|
-
description:
|
|
1507
|
-
'Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
1508
|
-
items: {
|
|
1509
|
-
type: 'string',
|
|
1510
|
-
},
|
|
1511
|
-
},
|
|
1512
|
-
applicable_product_tags: {
|
|
1513
|
-
type: 'array',
|
|
1514
|
-
description:
|
|
1515
|
-
'Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
1516
|
-
items: {
|
|
1517
|
-
type: 'string',
|
|
1518
|
-
},
|
|
1519
|
-
},
|
|
1520
|
-
description: {
|
|
1521
|
-
type: 'string',
|
|
1522
|
-
},
|
|
1523
|
-
hierarchy_configuration: {
|
|
1524
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1525
|
-
},
|
|
1526
|
-
invoice_schedule: {
|
|
1527
|
-
type: 'object',
|
|
1528
|
-
properties: {
|
|
1529
|
-
add_schedule_items: {
|
|
1530
|
-
type: 'array',
|
|
1531
|
-
items: {
|
|
1532
|
-
type: 'object',
|
|
1533
|
-
properties: {
|
|
1534
|
-
timestamp: {
|
|
1535
|
-
type: 'string',
|
|
1536
|
-
format: 'date-time',
|
|
1537
|
-
},
|
|
1538
|
-
amount: {
|
|
1539
|
-
type: 'number',
|
|
1540
|
-
},
|
|
1541
|
-
quantity: {
|
|
1542
|
-
type: 'number',
|
|
1543
|
-
},
|
|
1544
|
-
unit_price: {
|
|
1545
|
-
type: 'number',
|
|
1546
|
-
},
|
|
1547
|
-
},
|
|
1548
|
-
required: ['timestamp'],
|
|
1549
|
-
},
|
|
1550
|
-
},
|
|
1551
|
-
remove_schedule_items: {
|
|
1552
|
-
type: 'array',
|
|
1553
|
-
items: {
|
|
1554
|
-
type: 'object',
|
|
1555
|
-
properties: {
|
|
1556
|
-
id: {
|
|
1557
|
-
type: 'string',
|
|
1558
|
-
},
|
|
1559
|
-
},
|
|
1560
|
-
required: ['id'],
|
|
1561
|
-
},
|
|
1562
|
-
},
|
|
1563
|
-
update_schedule_items: {
|
|
1564
|
-
type: 'array',
|
|
1565
|
-
items: {
|
|
1566
|
-
type: 'object',
|
|
1567
|
-
properties: {
|
|
1568
|
-
id: {
|
|
1569
|
-
type: 'string',
|
|
1570
|
-
},
|
|
1571
|
-
amount: {
|
|
1572
|
-
type: 'number',
|
|
1573
|
-
},
|
|
1574
|
-
quantity: {
|
|
1575
|
-
type: 'number',
|
|
1576
|
-
},
|
|
1577
|
-
timestamp: {
|
|
1578
|
-
type: 'string',
|
|
1579
|
-
format: 'date-time',
|
|
1580
|
-
},
|
|
1581
|
-
unit_price: {
|
|
1582
|
-
type: 'number',
|
|
1583
|
-
},
|
|
1584
|
-
},
|
|
1585
|
-
required: ['id'],
|
|
1586
|
-
},
|
|
1587
|
-
},
|
|
1588
|
-
},
|
|
1589
|
-
},
|
|
1590
|
-
name: {
|
|
1591
|
-
type: 'string',
|
|
1592
|
-
},
|
|
1593
|
-
netsuite_sales_order_id: {
|
|
1594
|
-
type: 'string',
|
|
1595
|
-
},
|
|
1596
|
-
priority: {
|
|
1597
|
-
type: 'number',
|
|
1598
|
-
},
|
|
1599
|
-
product_id: {
|
|
1600
|
-
type: 'string',
|
|
1601
|
-
},
|
|
1602
|
-
rate_type: {
|
|
1603
|
-
type: 'string',
|
|
1604
|
-
description:
|
|
1605
|
-
'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.',
|
|
1606
|
-
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1607
|
-
},
|
|
1608
|
-
rollover_fraction: {
|
|
1609
|
-
type: 'number',
|
|
1610
|
-
},
|
|
1611
|
-
},
|
|
1612
|
-
required: ['commit_id'],
|
|
1613
|
-
},
|
|
1614
|
-
},
|
|
1615
|
-
update_contract_end_date: {
|
|
1616
|
-
type: 'string',
|
|
1617
|
-
description: 'RFC 3339 timestamp indicating when the contract will end (exclusive).',
|
|
1618
|
-
format: 'date-time',
|
|
1619
|
-
},
|
|
1620
|
-
update_contract_name: {
|
|
1621
|
-
type: 'string',
|
|
1622
|
-
description:
|
|
1623
|
-
'Value to update the contract name to. If not provided, the contract name will remain unchanged.',
|
|
1624
|
-
},
|
|
1625
|
-
update_credits: {
|
|
1626
|
-
type: 'array',
|
|
1627
|
-
items: {
|
|
1628
|
-
type: 'object',
|
|
1629
|
-
properties: {
|
|
1630
|
-
credit_id: {
|
|
1631
|
-
type: 'string',
|
|
1632
|
-
},
|
|
1633
|
-
access_schedule: {
|
|
1634
|
-
type: 'object',
|
|
1635
|
-
properties: {
|
|
1636
|
-
add_schedule_items: {
|
|
1637
|
-
type: 'array',
|
|
1638
|
-
items: {
|
|
1639
|
-
type: 'object',
|
|
1640
|
-
properties: {
|
|
1641
|
-
amount: {
|
|
1642
|
-
type: 'number',
|
|
1643
|
-
},
|
|
1644
|
-
ending_before: {
|
|
1645
|
-
type: 'string',
|
|
1646
|
-
format: 'date-time',
|
|
1647
|
-
},
|
|
1648
|
-
starting_at: {
|
|
1649
|
-
type: 'string',
|
|
1650
|
-
format: 'date-time',
|
|
1651
|
-
},
|
|
1652
|
-
},
|
|
1653
|
-
required: ['amount', 'ending_before', 'starting_at'],
|
|
1654
|
-
},
|
|
1655
|
-
},
|
|
1656
|
-
remove_schedule_items: {
|
|
1657
|
-
type: 'array',
|
|
1658
|
-
items: {
|
|
1659
|
-
type: 'object',
|
|
1660
|
-
properties: {
|
|
1661
|
-
id: {
|
|
1662
|
-
type: 'string',
|
|
1663
|
-
},
|
|
1664
|
-
},
|
|
1665
|
-
required: ['id'],
|
|
1666
|
-
},
|
|
1667
|
-
},
|
|
1668
|
-
update_schedule_items: {
|
|
1669
|
-
type: 'array',
|
|
1670
|
-
items: {
|
|
1671
|
-
type: 'object',
|
|
1672
|
-
properties: {
|
|
1673
|
-
id: {
|
|
1674
|
-
type: 'string',
|
|
1675
|
-
},
|
|
1676
|
-
amount: {
|
|
1677
|
-
type: 'number',
|
|
1678
|
-
},
|
|
1679
|
-
ending_before: {
|
|
1680
|
-
type: 'string',
|
|
1681
|
-
format: 'date-time',
|
|
1682
|
-
},
|
|
1683
|
-
starting_at: {
|
|
1684
|
-
type: 'string',
|
|
1685
|
-
format: 'date-time',
|
|
1686
|
-
},
|
|
1687
|
-
},
|
|
1688
|
-
required: ['id'],
|
|
1689
|
-
},
|
|
1690
|
-
},
|
|
1691
|
-
},
|
|
1692
|
-
},
|
|
1693
|
-
applicable_product_ids: {
|
|
1694
|
-
type: 'array',
|
|
1695
|
-
description:
|
|
1696
|
-
'Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
1697
|
-
items: {
|
|
1698
|
-
type: 'string',
|
|
1699
|
-
},
|
|
1700
|
-
},
|
|
1701
|
-
applicable_product_tags: {
|
|
1702
|
-
type: 'array',
|
|
1703
|
-
description:
|
|
1704
|
-
'Which tags the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.',
|
|
1705
|
-
items: {
|
|
1706
|
-
type: 'string',
|
|
1707
|
-
},
|
|
1708
|
-
},
|
|
1709
|
-
description: {
|
|
1710
|
-
type: 'string',
|
|
1711
|
-
},
|
|
1712
|
-
hierarchy_configuration: {
|
|
1713
|
-
$ref: '#/$defs/commit_hierarchy_configuration',
|
|
1714
|
-
},
|
|
1715
|
-
name: {
|
|
1716
|
-
type: 'string',
|
|
1717
|
-
},
|
|
1718
|
-
netsuite_sales_order_id: {
|
|
1719
|
-
type: 'string',
|
|
1720
|
-
},
|
|
1721
|
-
priority: {
|
|
1722
|
-
type: 'number',
|
|
1723
|
-
},
|
|
1724
|
-
product_id: {
|
|
1725
|
-
type: 'string',
|
|
1726
|
-
},
|
|
1727
|
-
rate_type: {
|
|
1728
|
-
type: 'string',
|
|
1729
|
-
description:
|
|
1730
|
-
'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.',
|
|
1731
|
-
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1732
|
-
},
|
|
1733
|
-
},
|
|
1734
|
-
required: ['credit_id'],
|
|
1735
|
-
},
|
|
1736
|
-
},
|
|
1737
|
-
update_prepaid_balance_threshold_configuration: {
|
|
1738
|
-
type: 'object',
|
|
1739
|
-
properties: {
|
|
1740
|
-
commit: {
|
|
1741
|
-
allOf: [
|
|
1742
|
-
{
|
|
1743
|
-
$ref: '#/$defs/update_base_threshold_commit',
|
|
1744
|
-
},
|
|
1745
|
-
],
|
|
1746
|
-
},
|
|
1747
|
-
custom_credit_type_id: {
|
|
1748
|
-
type: 'string',
|
|
1749
|
-
description:
|
|
1750
|
-
'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.',
|
|
1751
|
-
},
|
|
1752
|
-
is_enabled: {
|
|
1753
|
-
type: 'boolean',
|
|
1754
|
-
description:
|
|
1755
|
-
'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.',
|
|
1756
|
-
},
|
|
1757
|
-
payment_gate_config: {
|
|
1758
|
-
$ref: '#/$defs/payment_gate_config_v2',
|
|
1759
|
-
},
|
|
1760
|
-
recharge_to_amount: {
|
|
1761
|
-
type: 'number',
|
|
1762
|
-
description: 'Specify the amount the balance should be recharged to.',
|
|
1763
|
-
},
|
|
1764
|
-
threshold_amount: {
|
|
1765
|
-
type: 'number',
|
|
1766
|
-
description:
|
|
1767
|
-
"Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
1768
|
-
},
|
|
1769
|
-
},
|
|
1770
|
-
},
|
|
1771
|
-
update_recurring_commits: {
|
|
1772
|
-
type: 'array',
|
|
1773
|
-
description:
|
|
1774
|
-
'Edits to these recurring commits will only affect commits whose access schedules has not started. Expired commits, and commits with an active access schedule will remain unchanged.',
|
|
1775
|
-
items: {
|
|
1776
|
-
type: 'object',
|
|
1777
|
-
properties: {
|
|
1778
|
-
recurring_commit_id: {
|
|
1779
|
-
type: 'string',
|
|
1780
|
-
},
|
|
1781
|
-
access_amount: {
|
|
1782
|
-
type: 'object',
|
|
1783
|
-
properties: {
|
|
1784
|
-
quantity: {
|
|
1785
|
-
type: 'number',
|
|
1786
|
-
},
|
|
1787
|
-
unit_price: {
|
|
1788
|
-
type: 'number',
|
|
1789
|
-
},
|
|
1790
|
-
},
|
|
1791
|
-
},
|
|
1792
|
-
ending_before: {
|
|
1793
|
-
type: 'string',
|
|
1794
|
-
format: 'date-time',
|
|
1795
|
-
},
|
|
1796
|
-
invoice_amount: {
|
|
1797
|
-
type: 'object',
|
|
1798
|
-
properties: {
|
|
1799
|
-
quantity: {
|
|
1800
|
-
type: 'number',
|
|
1801
|
-
},
|
|
1802
|
-
unit_price: {
|
|
1803
|
-
type: 'number',
|
|
1804
|
-
},
|
|
1805
|
-
},
|
|
1806
|
-
},
|
|
1807
|
-
rate_type: {
|
|
1808
|
-
type: 'string',
|
|
1809
|
-
description:
|
|
1810
|
-
'If provided, updates the recurring commit to use the specified rate type when generating future commits.',
|
|
1811
|
-
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1812
|
-
},
|
|
1813
|
-
},
|
|
1814
|
-
required: ['recurring_commit_id'],
|
|
1815
|
-
},
|
|
1816
|
-
},
|
|
1817
|
-
update_recurring_credits: {
|
|
1818
|
-
type: 'array',
|
|
1819
|
-
description:
|
|
1820
|
-
'Edits to these recurring credits will only affect credits whose access schedules has not started. Expired credits, and credits with an active access schedule will remain unchanged.',
|
|
1821
|
-
items: {
|
|
1822
|
-
type: 'object',
|
|
1823
|
-
properties: {
|
|
1824
|
-
recurring_credit_id: {
|
|
1825
|
-
type: 'string',
|
|
1826
|
-
},
|
|
1827
|
-
access_amount: {
|
|
1828
|
-
type: 'object',
|
|
1829
|
-
properties: {
|
|
1830
|
-
quantity: {
|
|
1831
|
-
type: 'number',
|
|
1832
|
-
},
|
|
1833
|
-
unit_price: {
|
|
1834
|
-
type: 'number',
|
|
1835
|
-
},
|
|
1836
|
-
},
|
|
1837
|
-
},
|
|
1838
|
-
ending_before: {
|
|
1839
|
-
type: 'string',
|
|
1840
|
-
format: 'date-time',
|
|
1841
|
-
},
|
|
1842
|
-
rate_type: {
|
|
1843
|
-
type: 'string',
|
|
1844
|
-
description:
|
|
1845
|
-
'If provided, updates the recurring credit to use the specified rate type when generating future credits.',
|
|
1846
|
-
enum: ['LIST_RATE', 'COMMIT_RATE'],
|
|
1847
|
-
},
|
|
1848
|
-
},
|
|
1849
|
-
required: ['recurring_credit_id'],
|
|
1850
|
-
},
|
|
1851
|
-
},
|
|
1852
|
-
update_scheduled_charges: {
|
|
1853
|
-
type: 'array',
|
|
1854
|
-
items: {
|
|
1855
|
-
type: 'object',
|
|
1856
|
-
properties: {
|
|
1857
|
-
scheduled_charge_id: {
|
|
1858
|
-
type: 'string',
|
|
1859
|
-
},
|
|
1860
|
-
invoice_schedule: {
|
|
1861
|
-
type: 'object',
|
|
1862
|
-
properties: {
|
|
1863
|
-
add_schedule_items: {
|
|
1864
|
-
type: 'array',
|
|
1865
|
-
items: {
|
|
1866
|
-
type: 'object',
|
|
1867
|
-
properties: {
|
|
1868
|
-
timestamp: {
|
|
1869
|
-
type: 'string',
|
|
1870
|
-
format: 'date-time',
|
|
1871
|
-
},
|
|
1872
|
-
amount: {
|
|
1873
|
-
type: 'number',
|
|
1874
|
-
},
|
|
1875
|
-
quantity: {
|
|
1876
|
-
type: 'number',
|
|
1877
|
-
},
|
|
1878
|
-
unit_price: {
|
|
1879
|
-
type: 'number',
|
|
1880
|
-
},
|
|
1881
|
-
},
|
|
1882
|
-
required: ['timestamp'],
|
|
1883
|
-
},
|
|
1884
|
-
},
|
|
1885
|
-
remove_schedule_items: {
|
|
1886
|
-
type: 'array',
|
|
1887
|
-
items: {
|
|
1888
|
-
type: 'object',
|
|
1889
|
-
properties: {
|
|
1890
|
-
id: {
|
|
1891
|
-
type: 'string',
|
|
1892
|
-
},
|
|
1893
|
-
},
|
|
1894
|
-
required: ['id'],
|
|
1895
|
-
},
|
|
1896
|
-
},
|
|
1897
|
-
update_schedule_items: {
|
|
1898
|
-
type: 'array',
|
|
1899
|
-
items: {
|
|
1900
|
-
type: 'object',
|
|
1901
|
-
properties: {
|
|
1902
|
-
id: {
|
|
1903
|
-
type: 'string',
|
|
1904
|
-
},
|
|
1905
|
-
amount: {
|
|
1906
|
-
type: 'number',
|
|
1907
|
-
},
|
|
1908
|
-
quantity: {
|
|
1909
|
-
type: 'number',
|
|
1910
|
-
},
|
|
1911
|
-
timestamp: {
|
|
1912
|
-
type: 'string',
|
|
1913
|
-
format: 'date-time',
|
|
1914
|
-
},
|
|
1915
|
-
unit_price: {
|
|
1916
|
-
type: 'number',
|
|
1917
|
-
},
|
|
1918
|
-
},
|
|
1919
|
-
required: ['id'],
|
|
1920
|
-
},
|
|
1921
|
-
},
|
|
1922
|
-
},
|
|
1923
|
-
},
|
|
1924
|
-
netsuite_sales_order_id: {
|
|
1925
|
-
type: 'string',
|
|
1926
|
-
},
|
|
1927
|
-
},
|
|
1928
|
-
required: ['scheduled_charge_id'],
|
|
1929
|
-
},
|
|
1930
|
-
},
|
|
1931
|
-
update_spend_threshold_configuration: {
|
|
1932
|
-
type: 'object',
|
|
1933
|
-
properties: {
|
|
1934
|
-
commit: {
|
|
1935
|
-
$ref: '#/$defs/update_base_threshold_commit',
|
|
1936
|
-
},
|
|
1937
|
-
is_enabled: {
|
|
1938
|
-
type: 'boolean',
|
|
1939
|
-
description:
|
|
1940
|
-
'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.',
|
|
1941
|
-
},
|
|
1942
|
-
payment_gate_config: {
|
|
1943
|
-
$ref: '#/$defs/payment_gate_config_v2',
|
|
1944
|
-
},
|
|
1945
|
-
threshold_amount: {
|
|
1946
|
-
type: 'number',
|
|
1947
|
-
description:
|
|
1948
|
-
"Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
1949
|
-
},
|
|
1950
|
-
},
|
|
1951
|
-
},
|
|
1952
|
-
update_subscriptions: {
|
|
1953
|
-
type: 'array',
|
|
1954
|
-
description: 'Optional list of subscriptions to update.',
|
|
1955
|
-
items: {
|
|
1956
|
-
type: 'object',
|
|
1957
|
-
properties: {
|
|
1958
|
-
subscription_id: {
|
|
1959
|
-
type: 'string',
|
|
1960
|
-
},
|
|
1961
|
-
ending_before: {
|
|
1962
|
-
type: 'string',
|
|
1963
|
-
format: 'date-time',
|
|
1964
|
-
},
|
|
1965
|
-
quantity_management_mode_update: {
|
|
1966
|
-
type: 'object',
|
|
1967
|
-
description:
|
|
1968
|
-
"Update the subscription's quantity management mode from QUANTITY_ONLY to SEAT_BASED with the provided seat_group_key.",
|
|
1969
|
-
properties: {
|
|
1970
|
-
quantity_management_mode: {
|
|
1971
|
-
type: 'string',
|
|
1972
|
-
enum: ['SEAT_BASED'],
|
|
1973
|
-
},
|
|
1974
|
-
seat_config: {
|
|
1975
|
-
type: 'object',
|
|
1976
|
-
properties: {
|
|
1977
|
-
seat_group_key: {
|
|
1978
|
-
type: 'string',
|
|
1979
|
-
},
|
|
1980
|
-
},
|
|
1981
|
-
required: ['seat_group_key'],
|
|
1982
|
-
},
|
|
1983
|
-
},
|
|
1984
|
-
required: ['quantity_management_mode', 'seat_config'],
|
|
1985
|
-
},
|
|
1986
|
-
quantity_updates: {
|
|
1987
|
-
type: 'array',
|
|
1988
|
-
description:
|
|
1989
|
-
'Quantity changes are applied on the effective date based on the order which they are sent. For example, if I scheduled the quantity to be 12 on May 21 and then scheduled a quantity delta change of -1, the result from that day would be 11.',
|
|
1990
|
-
items: {
|
|
1991
|
-
type: 'object',
|
|
1992
|
-
properties: {
|
|
1993
|
-
starting_at: {
|
|
1994
|
-
type: 'string',
|
|
1995
|
-
format: 'date-time',
|
|
1996
|
-
},
|
|
1997
|
-
quantity: {
|
|
1998
|
-
type: 'number',
|
|
1999
|
-
description:
|
|
2000
|
-
'The new quantity for the subscription. Must be provided if quantity_delta is not provided. Must be non-negative.',
|
|
2001
|
-
},
|
|
2002
|
-
quantity_delta: {
|
|
2003
|
-
type: 'number',
|
|
2004
|
-
description:
|
|
2005
|
-
"The delta to add to the subscription's quantity. Must be provided if quantity is not provided. Can't be zero. It also can't result in a negative quantity on the subscription.",
|
|
2006
|
-
},
|
|
2007
|
-
},
|
|
2008
|
-
required: ['starting_at'],
|
|
2009
|
-
},
|
|
2010
|
-
},
|
|
2011
|
-
seat_updates: {
|
|
2012
|
-
type: 'object',
|
|
2013
|
-
properties: {
|
|
2014
|
-
add_seat_ids: {
|
|
2015
|
-
type: 'array',
|
|
2016
|
-
description:
|
|
2017
|
-
'Adds seat IDs to the subscription. If there are unassigned seats, the new seat IDs will fill these unassigned seats and not increase the total subscription quantity. Otherwise, if there are more new seat IDs than unassigned seats, the total subscription quantity will increase.',
|
|
2018
|
-
items: {
|
|
2019
|
-
type: 'object',
|
|
2020
|
-
properties: {
|
|
2021
|
-
seat_ids: {
|
|
2022
|
-
type: 'array',
|
|
2023
|
-
items: {
|
|
2024
|
-
type: 'string',
|
|
2025
|
-
},
|
|
2026
|
-
},
|
|
2027
|
-
starting_at: {
|
|
2028
|
-
type: 'string',
|
|
2029
|
-
description: 'Assigned seats will be added/removed starting at this date.',
|
|
2030
|
-
format: 'date-time',
|
|
2031
|
-
},
|
|
2032
|
-
},
|
|
2033
|
-
required: ['seat_ids', 'starting_at'],
|
|
2034
|
-
},
|
|
2035
|
-
},
|
|
2036
|
-
add_unassigned_seats: {
|
|
2037
|
-
type: 'array',
|
|
2038
|
-
description:
|
|
2039
|
-
'Adds unassigned seats to the subscription. This will increase the total subscription quantity.',
|
|
2040
|
-
items: {
|
|
2041
|
-
type: 'object',
|
|
2042
|
-
properties: {
|
|
2043
|
-
quantity: {
|
|
2044
|
-
type: 'number',
|
|
2045
|
-
description:
|
|
2046
|
-
'The number of unassigned seats on the subscription will increase/decrease by this delta. Must be greater than 0.',
|
|
2047
|
-
},
|
|
2048
|
-
starting_at: {
|
|
2049
|
-
type: 'string',
|
|
2050
|
-
description: 'Unassigned seats will be updated starting at this date.',
|
|
2051
|
-
format: 'date-time',
|
|
2052
|
-
},
|
|
2053
|
-
},
|
|
2054
|
-
required: ['quantity', 'starting_at'],
|
|
2055
|
-
},
|
|
2056
|
-
},
|
|
2057
|
-
remove_seat_ids: {
|
|
2058
|
-
type: 'array',
|
|
2059
|
-
description:
|
|
2060
|
-
'Removes seat IDs from the subscription, if possible. If a seat ID is removed, the total subscription quantity will decrease. Otherwise, if the seat ID is not found on the subscription, this is a no-op.',
|
|
2061
|
-
items: {
|
|
2062
|
-
type: 'object',
|
|
2063
|
-
properties: {
|
|
2064
|
-
seat_ids: {
|
|
2065
|
-
type: 'array',
|
|
2066
|
-
items: {
|
|
2067
|
-
type: 'string',
|
|
2068
|
-
},
|
|
2069
|
-
},
|
|
2070
|
-
starting_at: {
|
|
2071
|
-
type: 'string',
|
|
2072
|
-
description: 'Assigned seats will be added/removed starting at this date.',
|
|
2073
|
-
format: 'date-time',
|
|
2074
|
-
},
|
|
2075
|
-
},
|
|
2076
|
-
required: ['seat_ids', 'starting_at'],
|
|
2077
|
-
},
|
|
2078
|
-
},
|
|
2079
|
-
remove_unassigned_seats: {
|
|
2080
|
-
type: 'array',
|
|
2081
|
-
description:
|
|
2082
|
-
'Removes unassigned seats from the subscription. This will decrease the total subscription quantity if there are are unassigned seats.',
|
|
2083
|
-
items: {
|
|
2084
|
-
type: 'object',
|
|
2085
|
-
properties: {
|
|
2086
|
-
quantity: {
|
|
2087
|
-
type: 'number',
|
|
2088
|
-
description:
|
|
2089
|
-
'The number of unassigned seats on the subscription will increase/decrease by this delta. Must be greater than 0.',
|
|
2090
|
-
},
|
|
2091
|
-
starting_at: {
|
|
2092
|
-
type: 'string',
|
|
2093
|
-
description: 'Unassigned seats will be updated starting at this date.',
|
|
2094
|
-
format: 'date-time',
|
|
2095
|
-
},
|
|
2096
|
-
},
|
|
2097
|
-
required: ['quantity', 'starting_at'],
|
|
2098
|
-
},
|
|
2099
|
-
},
|
|
2100
|
-
},
|
|
2101
|
-
},
|
|
2102
|
-
},
|
|
2103
|
-
required: ['subscription_id'],
|
|
2104
|
-
},
|
|
2105
|
-
},
|
|
2106
|
-
},
|
|
2107
|
-
required: ['contract_id', 'customer_id'],
|
|
2108
|
-
$defs: {
|
|
2109
|
-
commit_hierarchy_configuration: {
|
|
2110
|
-
type: 'object',
|
|
2111
|
-
properties: {
|
|
2112
|
-
child_access: {
|
|
2113
|
-
anyOf: [
|
|
2114
|
-
{
|
|
2115
|
-
type: 'object',
|
|
2116
|
-
properties: {
|
|
2117
|
-
type: {
|
|
2118
|
-
type: 'string',
|
|
2119
|
-
enum: ['ALL'],
|
|
2120
|
-
},
|
|
2121
|
-
},
|
|
2122
|
-
required: ['type'],
|
|
2123
|
-
},
|
|
2124
|
-
{
|
|
2125
|
-
type: 'object',
|
|
2126
|
-
properties: {
|
|
2127
|
-
type: {
|
|
2128
|
-
type: 'string',
|
|
2129
|
-
enum: ['NONE'],
|
|
2130
|
-
},
|
|
2131
|
-
},
|
|
2132
|
-
required: ['type'],
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
type: 'object',
|
|
2136
|
-
properties: {
|
|
2137
|
-
contract_ids: {
|
|
2138
|
-
type: 'array',
|
|
2139
|
-
items: {
|
|
2140
|
-
type: 'string',
|
|
2141
|
-
},
|
|
2142
|
-
},
|
|
2143
|
-
type: {
|
|
2144
|
-
type: 'string',
|
|
2145
|
-
enum: ['CONTRACT_IDS'],
|
|
2146
|
-
},
|
|
2147
|
-
},
|
|
2148
|
-
required: ['contract_ids', 'type'],
|
|
2149
|
-
},
|
|
2150
|
-
],
|
|
2151
|
-
},
|
|
2152
|
-
},
|
|
2153
|
-
required: ['child_access'],
|
|
2154
|
-
},
|
|
2155
|
-
commit_specifier_input: {
|
|
2156
|
-
type: 'object',
|
|
2157
|
-
properties: {
|
|
2158
|
-
presentation_group_values: {
|
|
2159
|
-
type: 'object',
|
|
2160
|
-
additionalProperties: true,
|
|
2161
|
-
},
|
|
2162
|
-
pricing_group_values: {
|
|
2163
|
-
type: 'object',
|
|
2164
|
-
additionalProperties: true,
|
|
2165
|
-
},
|
|
2166
|
-
product_id: {
|
|
2167
|
-
type: 'string',
|
|
2168
|
-
description: 'If provided, the specifier will only apply to the product with the specified ID.',
|
|
2169
|
-
},
|
|
2170
|
-
product_tags: {
|
|
2171
|
-
type: 'array',
|
|
2172
|
-
description:
|
|
2173
|
-
'If provided, the specifier will only apply to products with all the specified tags.',
|
|
2174
|
-
items: {
|
|
2175
|
-
type: 'string',
|
|
2176
|
-
},
|
|
2177
|
-
},
|
|
2178
|
-
},
|
|
2179
|
-
},
|
|
2180
|
-
tier: {
|
|
2181
|
-
type: 'object',
|
|
2182
|
-
properties: {
|
|
2183
|
-
price: {
|
|
2184
|
-
type: 'number',
|
|
2185
|
-
},
|
|
2186
|
-
size: {
|
|
2187
|
-
type: 'number',
|
|
2188
|
-
},
|
|
2189
|
-
},
|
|
2190
|
-
required: ['price'],
|
|
2191
|
-
},
|
|
2192
|
-
prepaid_balance_threshold_configuration_v2: {
|
|
2193
|
-
type: 'object',
|
|
2194
|
-
properties: {
|
|
2195
|
-
commit: {
|
|
2196
|
-
allOf: [
|
|
2197
|
-
{
|
|
2198
|
-
$ref: '#/$defs/update_base_threshold_commit',
|
|
2199
|
-
},
|
|
2200
|
-
],
|
|
2201
|
-
},
|
|
2202
|
-
is_enabled: {
|
|
2203
|
-
type: 'boolean',
|
|
2204
|
-
description:
|
|
2205
|
-
'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.',
|
|
2206
|
-
},
|
|
2207
|
-
payment_gate_config: {
|
|
2208
|
-
$ref: '#/$defs/payment_gate_config_v2',
|
|
2209
|
-
},
|
|
2210
|
-
recharge_to_amount: {
|
|
2211
|
-
type: 'number',
|
|
2212
|
-
description: 'Specify the amount the balance should be recharged to.',
|
|
2213
|
-
},
|
|
2214
|
-
threshold_amount: {
|
|
2215
|
-
type: 'number',
|
|
2216
|
-
description:
|
|
2217
|
-
"Specify the threshold amount for the contract. Each time the contract's balance lowers to this amount, a threshold charge will be initiated.",
|
|
2218
|
-
},
|
|
2219
|
-
custom_credit_type_id: {
|
|
2220
|
-
type: 'string',
|
|
2221
|
-
description:
|
|
2222
|
-
'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.',
|
|
2223
|
-
},
|
|
2224
|
-
},
|
|
2225
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'recharge_to_amount', 'threshold_amount'],
|
|
2226
|
-
},
|
|
2227
|
-
update_base_threshold_commit: {
|
|
2228
|
-
type: 'object',
|
|
2229
|
-
properties: {
|
|
2230
|
-
description: {
|
|
2231
|
-
type: 'string',
|
|
2232
|
-
},
|
|
2233
|
-
name: {
|
|
2234
|
-
type: 'string',
|
|
2235
|
-
description:
|
|
2236
|
-
'Specify the name of the line item for the threshold charge. If left blank, it will default to the commit product name.',
|
|
2237
|
-
},
|
|
2238
|
-
product_id: {
|
|
2239
|
-
type: 'string',
|
|
2240
|
-
description: 'The commit product that will be used to generate the line item for commit payment.',
|
|
2241
|
-
},
|
|
2242
|
-
},
|
|
2243
|
-
},
|
|
2244
|
-
payment_gate_config_v2: {
|
|
2245
|
-
type: 'object',
|
|
2246
|
-
properties: {
|
|
2247
|
-
payment_gate_type: {
|
|
2248
|
-
type: 'string',
|
|
2249
|
-
description:
|
|
2250
|
-
'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.',
|
|
2251
|
-
enum: ['NONE', 'STRIPE', 'EXTERNAL'],
|
|
2252
|
-
},
|
|
2253
|
-
precalculated_tax_config: {
|
|
2254
|
-
type: 'object',
|
|
2255
|
-
description: 'Only applicable if using PRECALCULATED as your tax type.',
|
|
2256
|
-
properties: {
|
|
2257
|
-
tax_amount: {
|
|
2258
|
-
type: 'number',
|
|
2259
|
-
description:
|
|
2260
|
-
"Amount of tax to be applied. This should be in the same currency and denomination as the commit's invoice schedule",
|
|
2261
|
-
},
|
|
2262
|
-
tax_name: {
|
|
2263
|
-
type: 'string',
|
|
2264
|
-
description:
|
|
2265
|
-
'Name of the tax to be applied. This may be used in an invoice line item description.',
|
|
2266
|
-
},
|
|
2267
|
-
},
|
|
2268
|
-
required: ['tax_amount'],
|
|
2269
|
-
},
|
|
2270
|
-
stripe_config: {
|
|
2271
|
-
type: 'object',
|
|
2272
|
-
description: 'Only applicable if using STRIPE as your payment gateway type.',
|
|
2273
|
-
properties: {
|
|
2274
|
-
payment_type: {
|
|
2275
|
-
type: 'string',
|
|
2276
|
-
description: 'If left blank, will default to INVOICE',
|
|
2277
|
-
enum: ['INVOICE', 'PAYMENT_INTENT'],
|
|
2278
|
-
},
|
|
2279
|
-
invoice_metadata: {
|
|
2280
|
-
type: 'object',
|
|
2281
|
-
description:
|
|
2282
|
-
'Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as your payment type.',
|
|
2283
|
-
additionalProperties: true,
|
|
2284
|
-
},
|
|
2285
|
-
},
|
|
2286
|
-
required: ['payment_type'],
|
|
2287
|
-
},
|
|
2288
|
-
tax_type: {
|
|
2289
|
-
type: 'string',
|
|
2290
|
-
description:
|
|
2291
|
-
'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.',
|
|
2292
|
-
enum: ['NONE', 'STRIPE', 'ANROK', 'AVALARA', 'PRECALCULATED'],
|
|
2293
|
-
},
|
|
2294
|
-
},
|
|
2295
|
-
required: ['payment_gate_type'],
|
|
2296
|
-
},
|
|
2297
|
-
spend_threshold_configuration_v2: {
|
|
2298
|
-
type: 'object',
|
|
2299
|
-
properties: {
|
|
2300
|
-
commit: {
|
|
2301
|
-
$ref: '#/$defs/update_base_threshold_commit',
|
|
2302
|
-
},
|
|
2303
|
-
is_enabled: {
|
|
2304
|
-
type: 'boolean',
|
|
2305
|
-
description:
|
|
2306
|
-
'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.',
|
|
2307
|
-
},
|
|
2308
|
-
payment_gate_config: {
|
|
2309
|
-
$ref: '#/$defs/payment_gate_config_v2',
|
|
2310
|
-
},
|
|
2311
|
-
threshold_amount: {
|
|
2312
|
-
type: 'number',
|
|
2313
|
-
description:
|
|
2314
|
-
"Specify the threshold amount for the contract. Each time the contract's usage hits this amount, a threshold charge will be initiated.",
|
|
2315
|
-
},
|
|
2316
|
-
},
|
|
2317
|
-
required: ['commit', 'is_enabled', 'payment_gate_config', 'threshold_amount'],
|
|
2318
|
-
},
|
|
2319
|
-
},
|
|
2320
|
-
},
|
|
2321
|
-
annotations: {},
|
|
2322
|
-
};
|
|
2323
|
-
|
|
2324
|
-
export const handler = async (client: Metronome, args: Record<string, unknown> | undefined) => {
|
|
2325
|
-
const body = args as any;
|
|
2326
|
-
try {
|
|
2327
|
-
return asTextContentResult(await client.v2.contracts.edit(body));
|
|
2328
|
-
} catch (error) {
|
|
2329
|
-
if (error instanceof Metronome.APIError) {
|
|
2330
|
-
return asErrorResult(error.message);
|
|
2331
|
-
}
|
|
2332
|
-
throw error;
|
|
2333
|
-
}
|
|
2334
|
-
};
|
|
2335
|
-
|
|
2336
|
-
export default { metadata, tool, handler };
|