@metronome/sdk 3.6.0 → 3.7.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/CHANGELOG.md +22 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +226 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +226 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.mts.map +1 -1
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/alerts.mjs.map +1 -1
- package/resources/v1/audit-logs.d.mts.map +1 -1
- package/resources/v1/audit-logs.d.ts.map +1 -1
- package/resources/v1/audit-logs.mjs.map +1 -1
- package/resources/v1/billable-metrics.d.mts.map +1 -1
- package/resources/v1/billable-metrics.d.ts.map +1 -1
- package/resources/v1/billable-metrics.mjs.map +1 -1
- package/resources/v1/contracts/contracts.d.mts +406 -1
- package/resources/v1/contracts/contracts.d.mts.map +1 -1
- package/resources/v1/contracts/contracts.d.ts +406 -1
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/contracts/index.d.mts.map +1 -1
- package/resources/v1/contracts/index.d.ts.map +1 -1
- package/resources/v1/contracts/index.mjs.map +1 -1
- package/resources/v1/contracts/named-schedules.d.mts.map +1 -1
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/products.d.mts.map +1 -1
- package/resources/v1/contracts/products.d.ts.map +1 -1
- package/resources/v1/contracts/products.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/index.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards.mjs.map +1 -1
- package/resources/v1/contracts.d.mts.map +1 -1
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.mjs.map +1 -1
- package/resources/v1/credit-grants.d.mts.map +1 -1
- package/resources/v1/credit-grants.d.ts.map +1 -1
- package/resources/v1/credit-grants.mjs.map +1 -1
- package/resources/v1/custom-fields.d.mts.map +1 -1
- package/resources/v1/custom-fields.d.ts.map +1 -1
- package/resources/v1/custom-fields.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.mts.map +1 -1
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/alerts.mjs.map +1 -1
- package/resources/v1/customers/billing-config.d.mts.map +1 -1
- package/resources/v1/customers/billing-config.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.mjs.map +1 -1
- package/resources/v1/customers/commits.d.mts.map +1 -1
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/credits.d.mts.map +1 -1
- package/resources/v1/customers/credits.d.ts.map +1 -1
- package/resources/v1/customers/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/invoices.d.mts.map +1 -1
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/customers/named-schedules.d.mts.map +1 -1
- package/resources/v1/customers/named-schedules.d.ts.map +1 -1
- package/resources/v1/customers/named-schedules.mjs.map +1 -1
- package/resources/v1/customers/plans.d.mts.map +1 -1
- package/resources/v1/customers/plans.d.ts.map +1 -1
- package/resources/v1/customers/plans.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/dashboards.d.mts.map +1 -1
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v1/dashboards.mjs.map +1 -1
- package/resources/v1/index.d.mts +0 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +0 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +1 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/invoices.d.mts.map +1 -1
- package/resources/v1/invoices.d.ts.map +1 -1
- package/resources/v1/invoices.mjs.map +1 -1
- package/resources/v1/packages.d.mts +57 -4
- package/resources/v1/packages.d.mts.map +1 -1
- package/resources/v1/packages.d.ts +57 -4
- package/resources/v1/packages.d.ts.map +1 -1
- package/resources/v1/packages.js +3 -4
- package/resources/v1/packages.js.map +1 -1
- package/resources/v1/packages.mjs +3 -4
- package/resources/v1/packages.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/pricing-units.d.mts.map +1 -1
- package/resources/v1/pricing-units.d.ts.map +1 -1
- package/resources/v1/pricing-units.mjs.map +1 -1
- package/resources/v1/services.d.mts.map +1 -1
- package/resources/v1/services.d.ts.map +1 -1
- package/resources/v1/services.mjs.map +1 -1
- package/resources/v1/settings/billing-providers.d.mts.map +1 -1
- package/resources/v1/settings/billing-providers.d.ts.map +1 -1
- package/resources/v1/settings/billing-providers.mjs.map +1 -1
- package/resources/v1/settings/index.d.mts.map +1 -1
- package/resources/v1/settings/index.d.ts.map +1 -1
- package/resources/v1/settings/index.mjs.map +1 -1
- package/resources/v1/settings/settings.d.mts.map +1 -1
- package/resources/v1/settings/settings.d.ts.map +1 -1
- package/resources/v1/settings/settings.mjs.map +1 -1
- package/resources/v1/settings.d.mts.map +1 -1
- package/resources/v1/settings.d.ts.map +1 -1
- package/resources/v1/settings.mjs.map +1 -1
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +0 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +0 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources/v2/contracts.d.mts +1337 -1
- package/resources/v2/contracts.d.mts.map +1 -1
- package/resources/v2/contracts.d.ts +1337 -1
- package/resources/v2/contracts.d.ts.map +1 -1
- package/resources/v2/contracts.mjs.map +1 -1
- package/resources/v2/index.d.mts.map +1 -1
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/index.mjs.map +1 -1
- package/resources/v2/v2.d.mts.map +1 -1
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.mjs.map +1 -1
- package/resources/v2.d.mts.map +1 -1
- package/resources/v2.d.ts.map +1 -1
- package/resources/v2.mjs.map +1 -1
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/shared.ts +290 -0
- package/src/resources/v1/contracts/contracts.ts +530 -1
- package/src/resources/v1/index.ts +0 -11
- package/src/resources/v1/packages.ts +81 -4
- package/src/resources/v1/v1.ts +0 -26
- package/src/resources/v2/contracts.ts +1756 -1
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/payments.d.mts +0 -127
- package/resources/v1/payments.d.mts.map +0 -1
- package/resources/v1/payments.d.ts +0 -127
- package/resources/v1/payments.d.ts.map +0 -1
- package/resources/v1/payments.js +0 -71
- package/resources/v1/payments.js.map +0 -1
- package/resources/v1/payments.mjs +0 -67
- package/resources/v1/payments.mjs.map +0 -1
- package/src/resources/v1/payments.ts +0 -187
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billable-metrics.d.ts","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"billable-metrics.d.ts","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billable-metrics.mjs","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"billable-metrics.mjs","sourceRoot":"","sources":["../../src/resources/v1/billable-metrics.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,UAAU,EAAsC,kCAA8B;AAEvF,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6BAA6B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CACN,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,UAAsC,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CACL,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|
|
@@ -599,7 +599,360 @@ export declare class Contracts extends APIResource {
|
|
|
599
599
|
}
|
|
600
600
|
export type ContractListBalancesResponsesBodyCursorPage = BodyCursorPage<ContractListBalancesResponse>;
|
|
601
601
|
export interface ContractCreateResponse {
|
|
602
|
-
data:
|
|
602
|
+
data: ContractCreateResponse.Data;
|
|
603
|
+
}
|
|
604
|
+
export declare namespace ContractCreateResponse {
|
|
605
|
+
interface Data {
|
|
606
|
+
id: string;
|
|
607
|
+
/**
|
|
608
|
+
* The created contract.
|
|
609
|
+
*/
|
|
610
|
+
contract?: Data.Contract;
|
|
611
|
+
}
|
|
612
|
+
namespace Data {
|
|
613
|
+
/**
|
|
614
|
+
* The created contract.
|
|
615
|
+
*/
|
|
616
|
+
interface Contract {
|
|
617
|
+
id: string;
|
|
618
|
+
commits: Array<Shared.Commit>;
|
|
619
|
+
created_at: string;
|
|
620
|
+
created_by: string;
|
|
621
|
+
customer_id: string;
|
|
622
|
+
overrides: Array<Shared.Override>;
|
|
623
|
+
scheduled_charges: Array<Shared.ScheduledCharge>;
|
|
624
|
+
starting_at: string;
|
|
625
|
+
transitions: Array<Contract.Transition>;
|
|
626
|
+
usage_filter: Array<Contract.UsageFilter>;
|
|
627
|
+
usage_statement_schedule: Contract.UsageStatementSchedule;
|
|
628
|
+
credits?: Array<Shared.Credit>;
|
|
629
|
+
/**
|
|
630
|
+
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
631
|
+
*/
|
|
632
|
+
custom_fields?: {
|
|
633
|
+
[key: string]: string;
|
|
634
|
+
};
|
|
635
|
+
/**
|
|
636
|
+
* The billing provider configuration associated with the contract.
|
|
637
|
+
*/
|
|
638
|
+
customer_billing_provider_configuration?: Contract.CustomerBillingProviderConfiguration;
|
|
639
|
+
ending_before?: string;
|
|
640
|
+
/**
|
|
641
|
+
* Indicates whether there are more items than the limit for this endpoint. Use the
|
|
642
|
+
* respective list endpoints to get the full lists.
|
|
643
|
+
*/
|
|
644
|
+
has_more?: Contract.HasMore;
|
|
645
|
+
/**
|
|
646
|
+
* Either a **parent** configuration with a list of children or a **child**
|
|
647
|
+
* configuration with a single parent.
|
|
648
|
+
*/
|
|
649
|
+
hierarchy_configuration?: Shared.HierarchyConfiguration;
|
|
650
|
+
/**
|
|
651
|
+
* Defaults to LOWEST_MULTIPLIER, which applies the greatest discount to list
|
|
652
|
+
* prices automatically. EXPLICIT prioritization requires specifying priorities for
|
|
653
|
+
* each multiplier; the one with the lowest priority value will be prioritized
|
|
654
|
+
* first.
|
|
655
|
+
*/
|
|
656
|
+
multiplier_override_prioritization?: 'LOWEST_MULTIPLIER' | 'EXPLICIT';
|
|
657
|
+
name?: string;
|
|
658
|
+
net_payment_terms_days?: number;
|
|
659
|
+
/**
|
|
660
|
+
* ID of the package this contract was created from, if applicable.
|
|
661
|
+
*/
|
|
662
|
+
package_id?: string;
|
|
663
|
+
prepaid_balance_threshold_configuration?: Shared.PrepaidBalanceThresholdConfiguration;
|
|
664
|
+
rate_card_id?: string;
|
|
665
|
+
recurring_commits?: Array<Contract.RecurringCommit>;
|
|
666
|
+
recurring_credits?: Array<Contract.RecurringCredit>;
|
|
667
|
+
/**
|
|
668
|
+
* Determines which scheduled and commit charges to consolidate onto the Contract's
|
|
669
|
+
* usage invoice. The charge's `timestamp` must match the usage invoice's
|
|
670
|
+
* `ending_before` date for consolidation to occur. This field cannot be modified
|
|
671
|
+
* after a Contract has been created. If this field is omitted, charges will appear
|
|
672
|
+
* on a separate invoice from usage charges.
|
|
673
|
+
*/
|
|
674
|
+
scheduled_charges_on_usage_invoices?: 'ALL';
|
|
675
|
+
spend_threshold_configuration?: Shared.SpendThresholdConfiguration;
|
|
676
|
+
/**
|
|
677
|
+
* List of subscriptions on the contract.
|
|
678
|
+
*/
|
|
679
|
+
subscriptions?: Array<Shared.Subscription>;
|
|
680
|
+
/**
|
|
681
|
+
* Optional uniqueness key to prevent duplicate contract creations.
|
|
682
|
+
*/
|
|
683
|
+
uniqueness_key?: string;
|
|
684
|
+
}
|
|
685
|
+
namespace Contract {
|
|
686
|
+
interface Transition {
|
|
687
|
+
from_contract_id: string;
|
|
688
|
+
to_contract_id: string;
|
|
689
|
+
type: 'SUPERSEDE' | 'RENEWAL';
|
|
690
|
+
}
|
|
691
|
+
interface UsageFilter {
|
|
692
|
+
group_key: string;
|
|
693
|
+
group_values: Array<string>;
|
|
694
|
+
starting_at: string;
|
|
695
|
+
ending_before?: string;
|
|
696
|
+
}
|
|
697
|
+
interface UsageStatementSchedule {
|
|
698
|
+
/**
|
|
699
|
+
* Contract usage statements follow a selected cadence based on this date.
|
|
700
|
+
*/
|
|
701
|
+
billing_anchor_date: string;
|
|
702
|
+
frequency: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* The billing provider configuration associated with the contract.
|
|
706
|
+
*/
|
|
707
|
+
interface CustomerBillingProviderConfiguration {
|
|
708
|
+
id?: string;
|
|
709
|
+
billing_provider?: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace' | 'metronome';
|
|
710
|
+
delivery_method?: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Indicates whether there are more items than the limit for this endpoint. Use the
|
|
714
|
+
* respective list endpoints to get the full lists.
|
|
715
|
+
*/
|
|
716
|
+
interface HasMore {
|
|
717
|
+
/**
|
|
718
|
+
* Whether there are more commits on this contract than the limit for this
|
|
719
|
+
* endpoint. Use the /contracts/customerCommits/list endpoint to get the full list
|
|
720
|
+
* of commits.
|
|
721
|
+
*/
|
|
722
|
+
commits: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* Whether there are more credits on this contract than the limit for this
|
|
725
|
+
* endpoint. Use the /contracts/customerCredits/list endpoint to get the full list
|
|
726
|
+
* of credits.
|
|
727
|
+
*/
|
|
728
|
+
credits: boolean;
|
|
729
|
+
}
|
|
730
|
+
interface RecurringCommit {
|
|
731
|
+
id: string;
|
|
732
|
+
/**
|
|
733
|
+
* The amount of commit to grant.
|
|
734
|
+
*/
|
|
735
|
+
access_amount: RecurringCommit.AccessAmount;
|
|
736
|
+
/**
|
|
737
|
+
* The amount of time the created commits will be valid for
|
|
738
|
+
*/
|
|
739
|
+
commit_duration: RecurringCommit.CommitDuration;
|
|
740
|
+
/**
|
|
741
|
+
* Will be passed down to the individual commits
|
|
742
|
+
*/
|
|
743
|
+
priority: number;
|
|
744
|
+
product: RecurringCommit.Product;
|
|
745
|
+
/**
|
|
746
|
+
* Whether the created commits will use the commit rate or list rate
|
|
747
|
+
*/
|
|
748
|
+
rate_type: 'COMMIT_RATE' | 'LIST_RATE';
|
|
749
|
+
/**
|
|
750
|
+
* Determines the start time for the first commit
|
|
751
|
+
*/
|
|
752
|
+
starting_at: string;
|
|
753
|
+
/**
|
|
754
|
+
* Will be passed down to the individual commits
|
|
755
|
+
*/
|
|
756
|
+
applicable_product_ids?: Array<string>;
|
|
757
|
+
/**
|
|
758
|
+
* Will be passed down to the individual commits
|
|
759
|
+
*/
|
|
760
|
+
applicable_product_tags?: Array<string>;
|
|
761
|
+
contract?: RecurringCommit.Contract;
|
|
762
|
+
/**
|
|
763
|
+
* Will be passed down to the individual commits
|
|
764
|
+
*/
|
|
765
|
+
description?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Determines when the contract will stop creating recurring commits. Optional
|
|
768
|
+
*/
|
|
769
|
+
ending_before?: string;
|
|
770
|
+
/**
|
|
771
|
+
* Optional configuration for recurring commit/credit hierarchy access control
|
|
772
|
+
*/
|
|
773
|
+
hierarchy_configuration?: Shared.CommitHierarchyConfiguration;
|
|
774
|
+
/**
|
|
775
|
+
* The amount the customer should be billed for the commit. Not required.
|
|
776
|
+
*/
|
|
777
|
+
invoice_amount?: RecurringCommit.InvoiceAmount;
|
|
778
|
+
/**
|
|
779
|
+
* Displayed on invoices. Will be passed through to the individual commits
|
|
780
|
+
*/
|
|
781
|
+
name?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Will be passed down to the individual commits
|
|
784
|
+
*/
|
|
785
|
+
netsuite_sales_order_id?: string;
|
|
786
|
+
/**
|
|
787
|
+
* Determines whether the first and last commit will be prorated. If not provided,
|
|
788
|
+
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
789
|
+
*/
|
|
790
|
+
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
791
|
+
/**
|
|
792
|
+
* The frequency at which the recurring commits will be created. If not provided: -
|
|
793
|
+
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
794
|
+
* period defined in the duration will correspond to this frequency. - Commits will
|
|
795
|
+
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
796
|
+
* invoice dates.
|
|
797
|
+
*/
|
|
798
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
799
|
+
/**
|
|
800
|
+
* Will be passed down to the individual commits. This controls how much of an
|
|
801
|
+
* individual unexpired commit will roll over upon contract transition. Must be
|
|
802
|
+
* between 0 and 1.
|
|
803
|
+
*/
|
|
804
|
+
rollover_fraction?: number;
|
|
805
|
+
/**
|
|
806
|
+
* List of filters that determine what kind of customer usage draws down a commit
|
|
807
|
+
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
808
|
+
* specifiers to contribute to a commit's or credit's drawdown.
|
|
809
|
+
*/
|
|
810
|
+
specifiers?: Array<Shared.CommitSpecifier>;
|
|
811
|
+
/**
|
|
812
|
+
* Attach a subscription to the recurring commit/credit.
|
|
813
|
+
*/
|
|
814
|
+
subscription_config?: Shared.RecurringCommitSubscriptionConfig;
|
|
815
|
+
}
|
|
816
|
+
namespace RecurringCommit {
|
|
817
|
+
/**
|
|
818
|
+
* The amount of commit to grant.
|
|
819
|
+
*/
|
|
820
|
+
interface AccessAmount {
|
|
821
|
+
credit_type_id: string;
|
|
822
|
+
unit_price: number;
|
|
823
|
+
quantity?: number;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* The amount of time the created commits will be valid for
|
|
827
|
+
*/
|
|
828
|
+
interface CommitDuration {
|
|
829
|
+
value: number;
|
|
830
|
+
unit?: 'PERIODS';
|
|
831
|
+
}
|
|
832
|
+
interface Product {
|
|
833
|
+
id: string;
|
|
834
|
+
name: string;
|
|
835
|
+
}
|
|
836
|
+
interface Contract {
|
|
837
|
+
id: string;
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* The amount the customer should be billed for the commit. Not required.
|
|
841
|
+
*/
|
|
842
|
+
interface InvoiceAmount {
|
|
843
|
+
credit_type_id: string;
|
|
844
|
+
quantity: number;
|
|
845
|
+
unit_price: number;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
interface RecurringCredit {
|
|
849
|
+
id: string;
|
|
850
|
+
/**
|
|
851
|
+
* The amount of commit to grant.
|
|
852
|
+
*/
|
|
853
|
+
access_amount: RecurringCredit.AccessAmount;
|
|
854
|
+
/**
|
|
855
|
+
* The amount of time the created commits will be valid for
|
|
856
|
+
*/
|
|
857
|
+
commit_duration: RecurringCredit.CommitDuration;
|
|
858
|
+
/**
|
|
859
|
+
* Will be passed down to the individual commits
|
|
860
|
+
*/
|
|
861
|
+
priority: number;
|
|
862
|
+
product: RecurringCredit.Product;
|
|
863
|
+
/**
|
|
864
|
+
* Whether the created commits will use the commit rate or list rate
|
|
865
|
+
*/
|
|
866
|
+
rate_type: 'COMMIT_RATE' | 'LIST_RATE';
|
|
867
|
+
/**
|
|
868
|
+
* Determines the start time for the first commit
|
|
869
|
+
*/
|
|
870
|
+
starting_at: string;
|
|
871
|
+
/**
|
|
872
|
+
* Will be passed down to the individual commits
|
|
873
|
+
*/
|
|
874
|
+
applicable_product_ids?: Array<string>;
|
|
875
|
+
/**
|
|
876
|
+
* Will be passed down to the individual commits
|
|
877
|
+
*/
|
|
878
|
+
applicable_product_tags?: Array<string>;
|
|
879
|
+
contract?: RecurringCredit.Contract;
|
|
880
|
+
/**
|
|
881
|
+
* Will be passed down to the individual commits
|
|
882
|
+
*/
|
|
883
|
+
description?: string;
|
|
884
|
+
/**
|
|
885
|
+
* Determines when the contract will stop creating recurring commits. Optional
|
|
886
|
+
*/
|
|
887
|
+
ending_before?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Optional configuration for recurring commit/credit hierarchy access control
|
|
890
|
+
*/
|
|
891
|
+
hierarchy_configuration?: Shared.CommitHierarchyConfiguration;
|
|
892
|
+
/**
|
|
893
|
+
* Displayed on invoices. Will be passed through to the individual commits
|
|
894
|
+
*/
|
|
895
|
+
name?: string;
|
|
896
|
+
/**
|
|
897
|
+
* Will be passed down to the individual commits
|
|
898
|
+
*/
|
|
899
|
+
netsuite_sales_order_id?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Determines whether the first and last commit will be prorated. If not provided,
|
|
902
|
+
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
903
|
+
*/
|
|
904
|
+
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
905
|
+
/**
|
|
906
|
+
* The frequency at which the recurring commits will be created. If not provided: -
|
|
907
|
+
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
908
|
+
* period defined in the duration will correspond to this frequency. - Commits will
|
|
909
|
+
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
910
|
+
* invoice dates.
|
|
911
|
+
*/
|
|
912
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
913
|
+
/**
|
|
914
|
+
* Will be passed down to the individual commits. This controls how much of an
|
|
915
|
+
* individual unexpired commit will roll over upon contract transition. Must be
|
|
916
|
+
* between 0 and 1.
|
|
917
|
+
*/
|
|
918
|
+
rollover_fraction?: number;
|
|
919
|
+
/**
|
|
920
|
+
* List of filters that determine what kind of customer usage draws down a commit
|
|
921
|
+
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
922
|
+
* specifiers to contribute to a commit's or credit's drawdown.
|
|
923
|
+
*/
|
|
924
|
+
specifiers?: Array<Shared.CommitSpecifier>;
|
|
925
|
+
/**
|
|
926
|
+
* Attach a subscription to the recurring commit/credit.
|
|
927
|
+
*/
|
|
928
|
+
subscription_config?: Shared.RecurringCommitSubscriptionConfig;
|
|
929
|
+
}
|
|
930
|
+
namespace RecurringCredit {
|
|
931
|
+
/**
|
|
932
|
+
* The amount of commit to grant.
|
|
933
|
+
*/
|
|
934
|
+
interface AccessAmount {
|
|
935
|
+
credit_type_id: string;
|
|
936
|
+
unit_price: number;
|
|
937
|
+
quantity?: number;
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* The amount of time the created commits will be valid for
|
|
941
|
+
*/
|
|
942
|
+
interface CommitDuration {
|
|
943
|
+
value: number;
|
|
944
|
+
unit?: 'PERIODS';
|
|
945
|
+
}
|
|
946
|
+
interface Product {
|
|
947
|
+
id: string;
|
|
948
|
+
name: string;
|
|
949
|
+
}
|
|
950
|
+
interface Contract {
|
|
951
|
+
id: string;
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
603
956
|
}
|
|
604
957
|
export interface ContractRetrieveResponse {
|
|
605
958
|
data: Shared.Contract;
|
|
@@ -912,6 +1265,11 @@ export interface ContractCreateParams {
|
|
|
912
1265
|
*/
|
|
913
1266
|
scheduled_charges_on_usage_invoices?: 'ALL';
|
|
914
1267
|
spend_threshold_configuration?: Shared.SpendThresholdConfiguration;
|
|
1268
|
+
/**
|
|
1269
|
+
* Spend trackers to attach to this contract. Aliases must be unique within a
|
|
1270
|
+
* contract.
|
|
1271
|
+
*/
|
|
1272
|
+
spend_trackers?: Array<ContractCreateParams.SpendTracker>;
|
|
915
1273
|
/**
|
|
916
1274
|
* Optional list of
|
|
917
1275
|
* [subscriptions](https://docs.metronome.com/manage-product-access/create-subscription/)
|
|
@@ -1024,6 +1382,10 @@ export declare namespace ContractCreateParams {
|
|
|
1024
1382
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
1025
1383
|
*/
|
|
1026
1384
|
specifiers?: Array<Shared.CommitSpecifierInput>;
|
|
1385
|
+
/**
|
|
1386
|
+
* Optional attributes for spend tracker integration. Immutable after creation.
|
|
1387
|
+
*/
|
|
1388
|
+
spend_tracker_attributes?: Commit.SpendTrackerAttributes;
|
|
1027
1389
|
/**
|
|
1028
1390
|
* A temporary ID for the commit that can be used to reference the commit for
|
|
1029
1391
|
* commit specific overrides.
|
|
@@ -1144,6 +1506,16 @@ export declare namespace ContractCreateParams {
|
|
|
1144
1506
|
unit_price?: number;
|
|
1145
1507
|
}
|
|
1146
1508
|
}
|
|
1509
|
+
/**
|
|
1510
|
+
* Optional attributes for spend tracker integration. Immutable after creation.
|
|
1511
|
+
*/
|
|
1512
|
+
interface SpendTrackerAttributes {
|
|
1513
|
+
/**
|
|
1514
|
+
* If true, this commit will be included in spend trackers with discounted set to
|
|
1515
|
+
* DISCOUNTED_ONLY
|
|
1516
|
+
*/
|
|
1517
|
+
counts_as_discounted: boolean;
|
|
1518
|
+
}
|
|
1147
1519
|
}
|
|
1148
1520
|
interface Credit {
|
|
1149
1521
|
/**
|
|
@@ -1982,6 +2354,25 @@ export declare namespace ContractCreateParams {
|
|
|
1982
2354
|
}
|
|
1983
2355
|
}
|
|
1984
2356
|
}
|
|
2357
|
+
interface SpendTracker {
|
|
2358
|
+
/**
|
|
2359
|
+
* Human-readable identifier, unique per contract.
|
|
2360
|
+
*/
|
|
2361
|
+
alias: string;
|
|
2362
|
+
applicable_spend_specifiers: Array<SpendTracker.ApplicableSpendSpecifier>;
|
|
2363
|
+
credit_type_id: string;
|
|
2364
|
+
reset_frequency: 'BILLING_PERIOD';
|
|
2365
|
+
}
|
|
2366
|
+
namespace SpendTracker {
|
|
2367
|
+
interface ApplicableSpendSpecifier {
|
|
2368
|
+
sources: Array<'THRESHOLD_RECHARGE' | 'MANUAL'>;
|
|
2369
|
+
spend_type: 'COMMIT_PURCHASE';
|
|
2370
|
+
/**
|
|
2371
|
+
* Filter by whether the spend was discounted. Defaults to ANY if omitted.
|
|
2372
|
+
*/
|
|
2373
|
+
discounted?: 'ANY' | 'DISCOUNTED_ONLY' | 'UNDISCOUNTED_ONLY';
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
1985
2376
|
interface Subscription {
|
|
1986
2377
|
collection_schedule: 'ADVANCE' | 'ARREARS';
|
|
1987
2378
|
proration: Subscription.Proration;
|
|
@@ -2315,6 +2706,10 @@ export declare namespace ContractAmendParams {
|
|
|
2315
2706
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2316
2707
|
*/
|
|
2317
2708
|
specifiers?: Array<Shared.CommitSpecifierInput>;
|
|
2709
|
+
/**
|
|
2710
|
+
* Optional attributes for spend tracker integration. Immutable after creation.
|
|
2711
|
+
*/
|
|
2712
|
+
spend_tracker_attributes?: Commit.SpendTrackerAttributes;
|
|
2318
2713
|
/**
|
|
2319
2714
|
* A temporary ID for the commit that can be used to reference the commit for
|
|
2320
2715
|
* commit specific overrides.
|
|
@@ -2435,6 +2830,16 @@ export declare namespace ContractAmendParams {
|
|
|
2435
2830
|
unit_price?: number;
|
|
2436
2831
|
}
|
|
2437
2832
|
}
|
|
2833
|
+
/**
|
|
2834
|
+
* Optional attributes for spend tracker integration. Immutable after creation.
|
|
2835
|
+
*/
|
|
2836
|
+
interface SpendTrackerAttributes {
|
|
2837
|
+
/**
|
|
2838
|
+
* If true, this commit will be included in spend trackers with discounted set to
|
|
2839
|
+
* DISCOUNTED_ONLY
|
|
2840
|
+
*/
|
|
2841
|
+
counts_as_discounted: boolean;
|
|
2842
|
+
}
|
|
2438
2843
|
}
|
|
2439
2844
|
interface Credit {
|
|
2440
2845
|
/**
|