@metronome/sdk 3.7.0 → 3.9.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 +47 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/shared.d.mts +354 -20
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +354 -20
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.mts +39 -0
- package/resources/v1/alerts.d.mts.map +1 -1
- package/resources/v1/alerts.d.ts +39 -0
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.d.mts +303 -20
- package/resources/v1/contracts/contracts.d.mts.map +1 -1
- package/resources/v1/contracts/contracts.d.ts +303 -20
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js +43 -0
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs +43 -0
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/contracts/index.d.mts +1 -1
- package/resources/v1/contracts/index.d.mts.map +1 -1
- package/resources/v1/contracts/index.d.ts +1 -1
- package/resources/v1/contracts/index.d.ts.map +1 -1
- package/resources/v1/contracts/index.js.map +1 -1
- package/resources/v1/contracts/index.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.mts +4 -0
- package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.ts +4 -0
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.js +4 -0
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.mjs +4 -0
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.mts +79 -2
- package/resources/v1/customers/alerts.d.mts.map +1 -1
- package/resources/v1/customers/alerts.d.ts +79 -2
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/alerts.js +1 -1
- package/resources/v1/customers/alerts.mjs +1 -1
- package/resources/v1/customers/invoices.d.mts +5 -0
- package/resources/v1/customers/invoices.d.mts.map +1 -1
- package/resources/v1/customers/invoices.d.ts +5 -0
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/dashboards.d.mts +8 -3
- package/resources/v1/dashboards.d.mts.map +1 -1
- package/resources/v1/dashboards.d.ts +8 -3
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v1/dashboards.js +7 -2
- package/resources/v1/dashboards.js.map +1 -1
- package/resources/v1/dashboards.mjs +7 -2
- package/resources/v1/dashboards.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/packages.d.mts +240 -9
- package/resources/v1/packages.d.mts.map +1 -1
- package/resources/v1/packages.d.ts +240 -9
- package/resources/v1/packages.d.ts.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v2/contracts.d.mts +429 -8
- package/resources/v2/contracts.d.mts.map +1 -1
- package/resources/v2/contracts.d.ts +429 -8
- package/resources/v2/contracts.d.ts.map +1 -1
- package/src/client.ts +9 -1
- package/src/resources/shared.ts +422 -21
- package/src/resources/v1/alerts.ts +49 -0
- package/src/resources/v1/contracts/contracts.ts +356 -19
- package/src/resources/v1/contracts/index.ts +2 -0
- package/src/resources/v1/contracts/rate-cards/rates.ts +4 -0
- package/src/resources/v1/customers/alerts.ts +99 -2
- package/src/resources/v1/customers/invoices.ts +6 -0
- package/src/resources/v1/dashboards.ts +10 -3
- package/src/resources/v1/index.ts +2 -0
- package/src/resources/v1/packages.ts +291 -9
- package/src/resources/v1/v1.ts +4 -0
- package/src/resources/v2/contracts.ts +519 -8
- package/src/version.ts +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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Alerts, type AlertCreateResponse, type AlertArchiveResponse, type AlertCreateParams, type AlertArchiveParams, } from "./alerts.js";
|
|
2
2
|
export { AuditLogs, type AuditLogListResponse, type AuditLogListParams, type AuditLogListResponsesCursorPage, } from "./audit-logs.js";
|
|
3
3
|
export { BillableMetrics, type BillableMetricCreateResponse, type BillableMetricRetrieveResponse, type BillableMetricListResponse, type BillableMetricArchiveResponse, type BillableMetricCreateParams, type BillableMetricRetrieveParams, type BillableMetricListParams, type BillableMetricArchiveParams, type BillableMetricListResponsesCursorPage, } from "./billable-metrics.js";
|
|
4
|
-
export { Contracts, type ContractCreateResponse, type ContractRetrieveResponse, type ContractListResponse, type ContractAmendResponse, type ContractArchiveResponse, type ContractCreateHistoricalInvoicesResponse, type ContractGetNetBalanceResponse, type ContractListBalancesResponse, type ContractListSeatBalancesResponse, type ContractRetrieveRateScheduleResponse, type ContractRetrieveSubscriptionQuantityHistoryResponse, type ContractScheduleProServicesInvoiceResponse, type ContractUpdateEndDateResponse, type ContractCreateParams, type ContractRetrieveParams, type ContractListParams, type ContractAddManualBalanceEntryParams, type ContractAmendParams, type ContractArchiveParams, type ContractCreateHistoricalInvoicesParams, type ContractGetNetBalanceParams, type ContractListBalancesParams, type ContractListSeatBalancesParams, type ContractRetrieveRateScheduleParams, type ContractRetrieveSubscriptionQuantityHistoryParams, type ContractScheduleProServicesInvoiceParams, type ContractSetUsageFilterParams, type ContractUpdateEndDateParams, type ContractListBalancesResponsesBodyCursorPage, } from "./contracts/index.js";
|
|
4
|
+
export { Contracts, type ContractCreateResponse, type ContractRetrieveResponse, type ContractListResponse, type ContractAmendResponse, type ContractArchiveResponse, type ContractCreateHistoricalInvoicesResponse, type ContractGetNetBalanceResponse, type ContractGetSubscriptionSeatsHistoryResponse, type ContractListBalancesResponse, type ContractListSeatBalancesResponse, type ContractRetrieveRateScheduleResponse, type ContractRetrieveSubscriptionQuantityHistoryResponse, type ContractScheduleProServicesInvoiceResponse, type ContractUpdateEndDateResponse, type ContractCreateParams, type ContractRetrieveParams, type ContractListParams, type ContractAddManualBalanceEntryParams, type ContractAmendParams, type ContractArchiveParams, type ContractCreateHistoricalInvoicesParams, type ContractGetNetBalanceParams, type ContractGetSubscriptionSeatsHistoryParams, type ContractListBalancesParams, type ContractListSeatBalancesParams, type ContractRetrieveRateScheduleParams, type ContractRetrieveSubscriptionQuantityHistoryParams, type ContractScheduleProServicesInvoiceParams, type ContractSetUsageFilterParams, type ContractUpdateEndDateParams, type ContractListBalancesResponsesBodyCursorPage, } from "./contracts/index.js";
|
|
5
5
|
export { CreditGrants, type CreditLedgerEntry, type RolloverAmountMaxAmount, type RolloverAmountMaxPercentage, type CreditGrantCreateResponse, type CreditGrantListResponse, type CreditGrantEditResponse, type CreditGrantListEntriesResponse, type CreditGrantVoidResponse, type CreditGrantCreateParams, type CreditGrantListParams, type CreditGrantEditParams, type CreditGrantListEntriesParams, type CreditGrantVoidParams, type CreditGrantListResponsesCursorPage, type CreditGrantListEntriesResponsesCursorPageWithoutLimit, } from "./credit-grants.js";
|
|
6
6
|
export { CustomFields, type CustomFieldListKeysResponse, type CustomFieldAddKeyParams, type CustomFieldDeleteValuesParams, type CustomFieldListKeysParams, type CustomFieldRemoveKeyParams, type CustomFieldSetValuesParams, type CustomFieldListKeysResponsesCursorPageWithoutLimit, } from "./custom-fields.js";
|
|
7
7
|
export { Customers, type Customer, type CustomerDetail, type CustomerCreateResponse, type CustomerRetrieveResponse, type CustomerArchiveResponse, type CustomerArchiveBillingConfigurationsResponse, type CustomerListBillableMetricsResponse, type CustomerListCostsResponse, type CustomerPreviewEventsResponse, type CustomerRetrieveBillingConfigurationsResponse, type CustomerSetBillingConfigurationsResponse, type CustomerSetNameResponse, type CustomerCreateParams, type CustomerRetrieveParams, type CustomerListParams, type CustomerArchiveParams, type CustomerArchiveBillingConfigurationsParams, type CustomerListBillableMetricsParams, type CustomerListCostsParams, type CustomerPreviewEventsParams, type CustomerRetrieveBillingConfigurationsParams, type CustomerSetBillingConfigurationsParams, type CustomerSetIngestAliasesParams, type CustomerSetNameParams, type CustomerUpdateConfigParams, type CustomerDetailsCursorPage, type CustomerListBillableMetricsResponsesCursorPage, type CustomerListCostsResponsesCursorPage, } from "./customers/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,oBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,+BAA+B,GACrC,wBAAqB;AACtB,OAAO,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,qCAAqC,GAC3C,8BAA2B;AAC5B,OAAO,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,wCAAwC,EAC7C,KAAK,6BAA6B,EAClC,KA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AAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,sBAAmB;AAChE,OAAO,EACL,QAAQ,EACR,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,4BAAyB;AAC1B,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,wCAAwC,EAC7C,KAAK,sCAAsC,GAC5C,mBAAgB;AACjB,OAAO,EAAE,EAAE,EAAE,gBAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,8CAKsB;AAJpB,uGAAA,SAAS,OAAA;AAKX,0DAW4B;AAV1B,mHAAA,eAAe,OAAA;AAWjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAMkB;AALhB,gGAAA,MAAM,OAAA;AAMR,8CAKsB;AAJpB,uGAAA,SAAS,OAAA;AAKX,0DAW4B;AAV1B,mHAAA,eAAe,OAAA;AAWjB,8CAiC2B;AAhCzB,kGAAA,SAAS,OAAA;AAiCX,oDAiByB;AAhBvB,6GAAA,YAAY,OAAA;AAiBd,oDASyB;AARvB,6GAAA,YAAY,OAAA;AASd,8CA8B2B;AA7BzB,kGAAA,SAAS,OAAA;AA8BX,8CAIsB;AAHpB,wGAAA,UAAU,OAAA;AAIZ,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,0CAcoB;AAblB,oGAAA,QAAQ,OAAA;AAcV,oCAciB;AAbf,8FAAA,KAAK,OAAA;AAcP,oDAKyB;AAJvB,6GAAA,YAAY,OAAA;AAKd,0CAAgE;AAAvD,oGAAA,QAAQ,OAAA;AACjB,6CAI0B;AAHxB,iGAAA,QAAQ,OAAA;AAIV,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,SAAS,GAIV,yBAAqB;AACtB,OAAO,EACL,eAAe,GAUhB,+BAA2B;AAC5B,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAKP,qBAAiB;AAClB,OAAO,EACL,SAAS,GAIV,yBAAqB;AACtB,OAAO,EACL,eAAe,GAUhB,+BAA2B;AAC5B,OAAO,EACL,SAAS,GAgCV,8BAA0B;AAC3B,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,YAAY,GAQb,4BAAwB;AACzB,OAAO,EACL,SAAS,GA6BV,8BAA0B;AAC3B,OAAO,EACL,UAAU,GAGX,yBAAqB;AACtB,OAAO,EACL,QAAQ,GAKT,uBAAmB;AACpB,OAAO,EACL,QAAQ,GAaT,uBAAmB;AACpB,OAAO,EACL,KAAK,GAaN,oBAAgB;AACjB,OAAO,EACL,YAAY,GAIb,4BAAwB;AACzB,OAAO,EAAE,QAAQ,EAA4B,uBAAmB;AAChE,OAAO,EACL,QAAQ,GAGT,6BAAyB;AAC1B,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EAAE,EAAE,EAAE,iBAAa"}
|
|
@@ -308,6 +308,7 @@ export declare namespace PackageRetrieveResponse {
|
|
|
308
308
|
}
|
|
309
309
|
namespace Override {
|
|
310
310
|
interface OverrideSpecifier {
|
|
311
|
+
any_commit_or_credit_template_ids?: Array<string>;
|
|
311
312
|
billing_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
312
313
|
commit_template_ids?: Array<string>;
|
|
313
314
|
presentation_group_values?: {
|
|
@@ -479,6 +480,10 @@ export declare namespace PackageRetrieveResponse {
|
|
|
479
480
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
480
481
|
*/
|
|
481
482
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
483
|
+
/**
|
|
484
|
+
* Rounding configuration for prorated recurring commit amounts.
|
|
485
|
+
*/
|
|
486
|
+
proration_rounding?: RecurringCommit.ProrationRounding | null;
|
|
482
487
|
/**
|
|
483
488
|
* The frequency at which the recurring commits will be created. If not provided: -
|
|
484
489
|
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
@@ -486,7 +491,7 @@ export declare namespace PackageRetrieveResponse {
|
|
|
486
491
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
487
492
|
* invoice dates.
|
|
488
493
|
*/
|
|
489
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
494
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
490
495
|
/**
|
|
491
496
|
* Will be passed down to the individual commits. This controls how much of an
|
|
492
497
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -548,6 +553,35 @@ export declare namespace PackageRetrieveResponse {
|
|
|
548
553
|
quantity: number;
|
|
549
554
|
unit_price: number;
|
|
550
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* Rounding configuration for prorated recurring commit amounts.
|
|
558
|
+
*/
|
|
559
|
+
interface ProrationRounding {
|
|
560
|
+
access?: ProrationRounding.Access;
|
|
561
|
+
invoice?: ProrationRounding.Invoice;
|
|
562
|
+
}
|
|
563
|
+
namespace ProrationRounding {
|
|
564
|
+
interface Access {
|
|
565
|
+
/**
|
|
566
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
567
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
568
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
569
|
+
* dollar).
|
|
570
|
+
*/
|
|
571
|
+
decimal_places: number;
|
|
572
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
573
|
+
}
|
|
574
|
+
interface Invoice {
|
|
575
|
+
/**
|
|
576
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
577
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
578
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
579
|
+
* dollar).
|
|
580
|
+
*/
|
|
581
|
+
decimal_places: number;
|
|
582
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
583
|
+
}
|
|
584
|
+
}
|
|
551
585
|
/**
|
|
552
586
|
* Attach a subscription to the recurring commit/credit.
|
|
553
587
|
*/
|
|
@@ -606,6 +640,10 @@ export declare namespace PackageRetrieveResponse {
|
|
|
606
640
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
607
641
|
*/
|
|
608
642
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
643
|
+
/**
|
|
644
|
+
* Rounding configuration for prorated recurring credit amounts.
|
|
645
|
+
*/
|
|
646
|
+
proration_rounding?: RecurringCredit.ProrationRounding | null;
|
|
609
647
|
/**
|
|
610
648
|
* The frequency at which the recurring commits will be created. If not provided: -
|
|
611
649
|
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
@@ -613,7 +651,7 @@ export declare namespace PackageRetrieveResponse {
|
|
|
613
651
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
614
652
|
* invoice dates.
|
|
615
653
|
*/
|
|
616
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
654
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
617
655
|
/**
|
|
618
656
|
* Will be passed down to the individual commits. This controls how much of an
|
|
619
657
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -667,6 +705,24 @@ export declare namespace PackageRetrieveResponse {
|
|
|
667
705
|
unit: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
668
706
|
value: number;
|
|
669
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Rounding configuration for prorated recurring credit amounts.
|
|
710
|
+
*/
|
|
711
|
+
interface ProrationRounding {
|
|
712
|
+
access?: ProrationRounding.Access;
|
|
713
|
+
}
|
|
714
|
+
namespace ProrationRounding {
|
|
715
|
+
interface Access {
|
|
716
|
+
/**
|
|
717
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
718
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
719
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
720
|
+
* dollar).
|
|
721
|
+
*/
|
|
722
|
+
decimal_places: number;
|
|
723
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
724
|
+
}
|
|
725
|
+
}
|
|
670
726
|
/**
|
|
671
727
|
* Attach a subscription to the recurring commit/credit.
|
|
672
728
|
*/
|
|
@@ -705,6 +761,7 @@ export declare namespace PackageRetrieveResponse {
|
|
|
705
761
|
proration: Subscription.Proration;
|
|
706
762
|
subscription_rate: Subscription.SubscriptionRate;
|
|
707
763
|
id?: string;
|
|
764
|
+
billing_cycle_config?: Subscription.BillingCycleConfig;
|
|
708
765
|
/**
|
|
709
766
|
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
710
767
|
*/
|
|
@@ -735,6 +792,19 @@ export declare namespace PackageRetrieveResponse {
|
|
|
735
792
|
interface Proration {
|
|
736
793
|
invoice_behavior: 'BILL_IMMEDIATELY' | 'BILL_ON_NEXT_COLLECTION_DATE';
|
|
737
794
|
is_prorated: boolean;
|
|
795
|
+
rounding?: Proration.Rounding;
|
|
796
|
+
}
|
|
797
|
+
namespace Proration {
|
|
798
|
+
interface Rounding {
|
|
799
|
+
/**
|
|
800
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
801
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
802
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
803
|
+
* dollar).
|
|
804
|
+
*/
|
|
805
|
+
decimal_places: number;
|
|
806
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
807
|
+
}
|
|
738
808
|
}
|
|
739
809
|
interface SubscriptionRate {
|
|
740
810
|
billing_frequency: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
@@ -746,6 +816,9 @@ export declare namespace PackageRetrieveResponse {
|
|
|
746
816
|
name: string;
|
|
747
817
|
}
|
|
748
818
|
}
|
|
819
|
+
interface BillingCycleConfig {
|
|
820
|
+
invoice_placement?: 'ON_SCHEDULED_INVOICE' | 'ON_USAGE_INVOICE';
|
|
821
|
+
}
|
|
749
822
|
interface Duration {
|
|
750
823
|
unit: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
751
824
|
value: number;
|
|
@@ -930,6 +1003,7 @@ export declare namespace PackageListResponse {
|
|
|
930
1003
|
}
|
|
931
1004
|
namespace Override {
|
|
932
1005
|
interface OverrideSpecifier {
|
|
1006
|
+
any_commit_or_credit_template_ids?: Array<string>;
|
|
933
1007
|
billing_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
934
1008
|
commit_template_ids?: Array<string>;
|
|
935
1009
|
presentation_group_values?: {
|
|
@@ -1101,6 +1175,10 @@ export declare namespace PackageListResponse {
|
|
|
1101
1175
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
1102
1176
|
*/
|
|
1103
1177
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
1178
|
+
/**
|
|
1179
|
+
* Rounding configuration for prorated recurring commit amounts.
|
|
1180
|
+
*/
|
|
1181
|
+
proration_rounding?: RecurringCommit.ProrationRounding | null;
|
|
1104
1182
|
/**
|
|
1105
1183
|
* The frequency at which the recurring commits will be created. If not provided: -
|
|
1106
1184
|
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
@@ -1108,7 +1186,7 @@ export declare namespace PackageListResponse {
|
|
|
1108
1186
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
1109
1187
|
* invoice dates.
|
|
1110
1188
|
*/
|
|
1111
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
1189
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
1112
1190
|
/**
|
|
1113
1191
|
* Will be passed down to the individual commits. This controls how much of an
|
|
1114
1192
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -1170,6 +1248,35 @@ export declare namespace PackageListResponse {
|
|
|
1170
1248
|
quantity: number;
|
|
1171
1249
|
unit_price: number;
|
|
1172
1250
|
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Rounding configuration for prorated recurring commit amounts.
|
|
1253
|
+
*/
|
|
1254
|
+
interface ProrationRounding {
|
|
1255
|
+
access?: ProrationRounding.Access;
|
|
1256
|
+
invoice?: ProrationRounding.Invoice;
|
|
1257
|
+
}
|
|
1258
|
+
namespace ProrationRounding {
|
|
1259
|
+
interface Access {
|
|
1260
|
+
/**
|
|
1261
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
1262
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
1263
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
1264
|
+
* dollar).
|
|
1265
|
+
*/
|
|
1266
|
+
decimal_places: number;
|
|
1267
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
1268
|
+
}
|
|
1269
|
+
interface Invoice {
|
|
1270
|
+
/**
|
|
1271
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
1272
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
1273
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
1274
|
+
* dollar).
|
|
1275
|
+
*/
|
|
1276
|
+
decimal_places: number;
|
|
1277
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1173
1280
|
/**
|
|
1174
1281
|
* Attach a subscription to the recurring commit/credit.
|
|
1175
1282
|
*/
|
|
@@ -1228,6 +1335,10 @@ export declare namespace PackageListResponse {
|
|
|
1228
1335
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
1229
1336
|
*/
|
|
1230
1337
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
1338
|
+
/**
|
|
1339
|
+
* Rounding configuration for prorated recurring credit amounts.
|
|
1340
|
+
*/
|
|
1341
|
+
proration_rounding?: RecurringCredit.ProrationRounding | null;
|
|
1231
1342
|
/**
|
|
1232
1343
|
* The frequency at which the recurring commits will be created. If not provided: -
|
|
1233
1344
|
* The commits will be created on the usage invoice frequency. If provided: - The
|
|
@@ -1235,7 +1346,7 @@ export declare namespace PackageListResponse {
|
|
|
1235
1346
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
1236
1347
|
* invoice dates.
|
|
1237
1348
|
*/
|
|
1238
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
1349
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
1239
1350
|
/**
|
|
1240
1351
|
* Will be passed down to the individual commits. This controls how much of an
|
|
1241
1352
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -1289,6 +1400,24 @@ export declare namespace PackageListResponse {
|
|
|
1289
1400
|
unit: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
1290
1401
|
value: number;
|
|
1291
1402
|
}
|
|
1403
|
+
/**
|
|
1404
|
+
* Rounding configuration for prorated recurring credit amounts.
|
|
1405
|
+
*/
|
|
1406
|
+
interface ProrationRounding {
|
|
1407
|
+
access?: ProrationRounding.Access;
|
|
1408
|
+
}
|
|
1409
|
+
namespace ProrationRounding {
|
|
1410
|
+
interface Access {
|
|
1411
|
+
/**
|
|
1412
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
1413
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
1414
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
1415
|
+
* dollar).
|
|
1416
|
+
*/
|
|
1417
|
+
decimal_places: number;
|
|
1418
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1292
1421
|
/**
|
|
1293
1422
|
* Attach a subscription to the recurring commit/credit.
|
|
1294
1423
|
*/
|
|
@@ -1327,6 +1456,7 @@ export declare namespace PackageListResponse {
|
|
|
1327
1456
|
proration: Subscription.Proration;
|
|
1328
1457
|
subscription_rate: Subscription.SubscriptionRate;
|
|
1329
1458
|
id?: string;
|
|
1459
|
+
billing_cycle_config?: Subscription.BillingCycleConfig;
|
|
1330
1460
|
/**
|
|
1331
1461
|
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
1332
1462
|
*/
|
|
@@ -1357,6 +1487,19 @@ export declare namespace PackageListResponse {
|
|
|
1357
1487
|
interface Proration {
|
|
1358
1488
|
invoice_behavior: 'BILL_IMMEDIATELY' | 'BILL_ON_NEXT_COLLECTION_DATE';
|
|
1359
1489
|
is_prorated: boolean;
|
|
1490
|
+
rounding?: Proration.Rounding;
|
|
1491
|
+
}
|
|
1492
|
+
namespace Proration {
|
|
1493
|
+
interface Rounding {
|
|
1494
|
+
/**
|
|
1495
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
1496
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
1497
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
1498
|
+
* dollar).
|
|
1499
|
+
*/
|
|
1500
|
+
decimal_places: number;
|
|
1501
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
1502
|
+
}
|
|
1360
1503
|
}
|
|
1361
1504
|
interface SubscriptionRate {
|
|
1362
1505
|
billing_frequency: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
@@ -1368,6 +1511,9 @@ export declare namespace PackageListResponse {
|
|
|
1368
1511
|
name: string;
|
|
1369
1512
|
}
|
|
1370
1513
|
}
|
|
1514
|
+
interface BillingCycleConfig {
|
|
1515
|
+
invoice_placement?: 'ON_SCHEDULED_INVOICE' | 'ON_USAGE_INVOICE';
|
|
1516
|
+
}
|
|
1371
1517
|
interface Duration {
|
|
1372
1518
|
unit: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
1373
1519
|
value: number;
|
|
@@ -1723,9 +1869,10 @@ export declare namespace PackageCreateParams {
|
|
|
1723
1869
|
entitled?: boolean;
|
|
1724
1870
|
/**
|
|
1725
1871
|
* Indicates whether the override should only apply to commits. Defaults to
|
|
1726
|
-
* `false`. If `true
|
|
1727
|
-
* passing `commit_ids
|
|
1728
|
-
*
|
|
1872
|
+
* `false`. If `true` you can specify relevant commits in `override_specifiers` by
|
|
1873
|
+
* passing `commit_ids`, `recurring_commit_ids`, or `any_commit_or_credit_ids`. If
|
|
1874
|
+
* you do not specify any of these fields, the override will apply when consuming
|
|
1875
|
+
* any prepaid commit, postpaid commit, or credit
|
|
1729
1876
|
*/
|
|
1730
1877
|
is_commit_specific?: boolean;
|
|
1731
1878
|
/**
|
|
@@ -1760,6 +1907,14 @@ export declare namespace PackageCreateParams {
|
|
|
1760
1907
|
}
|
|
1761
1908
|
namespace Override {
|
|
1762
1909
|
interface OverrideSpecifier {
|
|
1910
|
+
/**
|
|
1911
|
+
* Can only be used for commit specific overrides. Must be used in conjunction with
|
|
1912
|
+
* one of `product_id`, `product_tags`, `pricing_group_values`, or
|
|
1913
|
+
* `presentation_group_values`. Must be used instead of both `commit_ids` and
|
|
1914
|
+
* `recurring_commit_ids` If provided, the override will apply to any specified
|
|
1915
|
+
* commit, credit, recurring commit or recurring credit IDs.
|
|
1916
|
+
*/
|
|
1917
|
+
any_commit_or_credit_ids?: Array<string>;
|
|
1763
1918
|
billing_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
1764
1919
|
/**
|
|
1765
1920
|
* Can only be used for commit specific overrides. Must be used in conjunction with
|
|
@@ -1903,6 +2058,10 @@ export declare namespace PackageCreateParams {
|
|
|
1903
2058
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
1904
2059
|
*/
|
|
1905
2060
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
2061
|
+
/**
|
|
2062
|
+
* Optional rounding configuration for prorated recurring commit amounts.
|
|
2063
|
+
*/
|
|
2064
|
+
proration_rounding?: RecurringCommit.ProrationRounding;
|
|
1906
2065
|
/**
|
|
1907
2066
|
* Whether the created commits will use the commit rate or list rate
|
|
1908
2067
|
*/
|
|
@@ -1914,7 +2073,7 @@ export declare namespace PackageCreateParams {
|
|
|
1914
2073
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
1915
2074
|
* invoice dates.
|
|
1916
2075
|
*/
|
|
1917
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
2076
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
1918
2077
|
/**
|
|
1919
2078
|
* Will be passed down to the individual commits. This controls how much of an
|
|
1920
2079
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -1984,6 +2143,35 @@ export declare namespace PackageCreateParams {
|
|
|
1984
2143
|
quantity: number;
|
|
1985
2144
|
unit_price: number;
|
|
1986
2145
|
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Optional rounding configuration for prorated recurring commit amounts.
|
|
2148
|
+
*/
|
|
2149
|
+
interface ProrationRounding {
|
|
2150
|
+
access?: ProrationRounding.Access;
|
|
2151
|
+
invoice?: ProrationRounding.Invoice;
|
|
2152
|
+
}
|
|
2153
|
+
namespace ProrationRounding {
|
|
2154
|
+
interface Access {
|
|
2155
|
+
/**
|
|
2156
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
2157
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
2158
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
2159
|
+
* dollar).
|
|
2160
|
+
*/
|
|
2161
|
+
decimal_places: number;
|
|
2162
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
2163
|
+
}
|
|
2164
|
+
interface Invoice {
|
|
2165
|
+
/**
|
|
2166
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
2167
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
2168
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
2169
|
+
* dollar).
|
|
2170
|
+
*/
|
|
2171
|
+
decimal_places: number;
|
|
2172
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
1987
2175
|
/**
|
|
1988
2176
|
* Attach a subscription to the recurring commit/credit.
|
|
1989
2177
|
*/
|
|
@@ -2055,6 +2243,10 @@ export declare namespace PackageCreateParams {
|
|
|
2055
2243
|
* the default is FIRST_AND_LAST (i.e. prorate both the first and last commits).
|
|
2056
2244
|
*/
|
|
2057
2245
|
proration?: 'NONE' | 'FIRST' | 'LAST' | 'FIRST_AND_LAST';
|
|
2246
|
+
/**
|
|
2247
|
+
* Optional rounding configuration for prorated recurring credit amounts.
|
|
2248
|
+
*/
|
|
2249
|
+
proration_rounding?: RecurringCredit.ProrationRounding;
|
|
2058
2250
|
/**
|
|
2059
2251
|
* Whether the created commits will use the commit rate or list rate
|
|
2060
2252
|
*/
|
|
@@ -2066,7 +2258,7 @@ export declare namespace PackageCreateParams {
|
|
|
2066
2258
|
* be created aligned with the recurring commit's starting_at rather than the usage
|
|
2067
2259
|
* invoice dates.
|
|
2068
2260
|
*/
|
|
2069
|
-
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
|
|
2261
|
+
recurrence_frequency?: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY' | 'DAILY';
|
|
2070
2262
|
/**
|
|
2071
2263
|
* Will be passed down to the individual commits. This controls how much of an
|
|
2072
2264
|
* individual unexpired commit will roll over upon contract transition. Must be
|
|
@@ -2128,6 +2320,24 @@ export declare namespace PackageCreateParams {
|
|
|
2128
2320
|
unit: 'DAYS' | 'WEEKS' | 'MONTHS' | 'YEARS';
|
|
2129
2321
|
value: number;
|
|
2130
2322
|
}
|
|
2323
|
+
/**
|
|
2324
|
+
* Optional rounding configuration for prorated recurring credit amounts.
|
|
2325
|
+
*/
|
|
2326
|
+
interface ProrationRounding {
|
|
2327
|
+
access?: ProrationRounding.Access;
|
|
2328
|
+
}
|
|
2329
|
+
namespace ProrationRounding {
|
|
2330
|
+
interface Access {
|
|
2331
|
+
/**
|
|
2332
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
2333
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
2334
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
2335
|
+
* dollar).
|
|
2336
|
+
*/
|
|
2337
|
+
decimal_places: number;
|
|
2338
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2131
2341
|
/**
|
|
2132
2342
|
* Attach a subscription to the recurring commit/credit.
|
|
2133
2343
|
*/
|
|
@@ -2234,6 +2444,7 @@ export declare namespace PackageCreateParams {
|
|
|
2234
2444
|
collection_schedule: 'ADVANCE' | 'ARREARS';
|
|
2235
2445
|
proration: Subscription.Proration;
|
|
2236
2446
|
subscription_rate: Subscription.SubscriptionRate;
|
|
2447
|
+
billing_cycle_config?: Subscription.BillingCycleConfig;
|
|
2237
2448
|
/**
|
|
2238
2449
|
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
2239
2450
|
*/
|
|
@@ -2290,6 +2501,19 @@ export declare namespace PackageCreateParams {
|
|
|
2290
2501
|
* Indicates if the partial period will be prorated or charged a full amount.
|
|
2291
2502
|
*/
|
|
2292
2503
|
is_prorated?: boolean;
|
|
2504
|
+
rounding?: Proration.Rounding;
|
|
2505
|
+
}
|
|
2506
|
+
namespace Proration {
|
|
2507
|
+
interface Rounding {
|
|
2508
|
+
/**
|
|
2509
|
+
* Number of decimal places to round to. Applied directly to the stored monetary
|
|
2510
|
+
* representation. Negative values round to powers of 10 (e.g., -2 rounds to
|
|
2511
|
+
* nearest 100 in the stored unit. For USD, this means rounding to the nearest
|
|
2512
|
+
* dollar).
|
|
2513
|
+
*/
|
|
2514
|
+
decimal_places: number;
|
|
2515
|
+
rounding_method: 'HALF_UP' | 'FLOOR' | 'CEILING';
|
|
2516
|
+
}
|
|
2293
2517
|
}
|
|
2294
2518
|
interface SubscriptionRate {
|
|
2295
2519
|
/**
|
|
@@ -2302,6 +2526,13 @@ export declare namespace PackageCreateParams {
|
|
|
2302
2526
|
*/
|
|
2303
2527
|
product_id: string;
|
|
2304
2528
|
}
|
|
2529
|
+
interface BillingCycleConfig {
|
|
2530
|
+
/**
|
|
2531
|
+
* Controls whether subscriptions consolidate onto usage invoices. Defaults to
|
|
2532
|
+
* ON_USAGE_INVOICE if omitted.
|
|
2533
|
+
*/
|
|
2534
|
+
invoice_placement?: 'ON_SCHEDULED_INVOICE' | 'ON_USAGE_INVOICE';
|
|
2535
|
+
}
|
|
2305
2536
|
/**
|
|
2306
2537
|
* Lifetime of the subscription from its start. If not provided, subscription
|
|
2307
2538
|
* inherits contract end date.
|