@metronome/sdk 0.1.0 → 0.3.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 +57 -0
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resources/shared.d.ts +53 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.ts +4 -8
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.d.ts +124 -8
- 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/products.d.ts +3 -0
- package/resources/v1/contracts/products.d.ts.map +1 -1
- package/resources/v1/contracts/products.js.map +1 -1
- package/resources/v1/contracts/products.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.ts +9 -0
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/commits.d.ts +6 -0
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.js +1 -0
- package/resources/v1/customers/commits.js.map +1 -1
- package/resources/v1/customers/commits.mjs +1 -0
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/invoices.d.ts +8 -0
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.js.map +1 -1
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/dashboards.d.ts +1 -1
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v2/contracts.d.ts +404 -28
- package/resources/v2/contracts.d.ts.map +1 -1
- package/src/index.ts +1 -0
- package/src/resources/shared.ts +72 -0
- package/src/resources/v1/alerts.ts +4 -8
- package/src/resources/v1/contracts/contracts.ts +141 -8
- package/src/resources/v1/contracts/products.ts +2 -0
- package/src/resources/v1/customers/alerts.ts +12 -0
- package/src/resources/v1/customers/commits.ts +7 -0
- package/src/resources/v1/customers/invoices.ts +9 -0
- package/src/resources/v1/dashboards.ts +3 -1
- package/src/resources/v2/contracts.ts +509 -28
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -327,6 +327,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
327
327
|
segment_id: string;
|
|
328
328
|
timestamp: string;
|
|
329
329
|
type: 'PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
330
|
+
contract_id?: string;
|
|
330
331
|
}
|
|
331
332
|
interface PrepaidCommitRolloverLedgerEntry {
|
|
332
333
|
amount: number;
|
|
@@ -347,6 +348,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
347
348
|
segment_id: string;
|
|
348
349
|
timestamp: string;
|
|
349
350
|
type: 'PREPAID_COMMIT_CANCELED';
|
|
351
|
+
contract_id?: string;
|
|
350
352
|
}
|
|
351
353
|
interface PrepaidCommitCreditedLedgerEntry {
|
|
352
354
|
amount: number;
|
|
@@ -354,6 +356,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
354
356
|
segment_id: string;
|
|
355
357
|
timestamp: string;
|
|
356
358
|
type: 'PREPAID_COMMIT_CREDITED';
|
|
359
|
+
contract_id?: string;
|
|
357
360
|
}
|
|
358
361
|
interface PrepaidCommitSeatBasedAdjustmentLedgerEntry {
|
|
359
362
|
amount: number;
|
|
@@ -372,6 +375,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
372
375
|
segment_id: string;
|
|
373
376
|
timestamp: string;
|
|
374
377
|
type: 'POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
378
|
+
contract_id?: string;
|
|
375
379
|
}
|
|
376
380
|
interface PostpaidCommitRolloverLedgerEntry {
|
|
377
381
|
amount: number;
|
|
@@ -385,6 +389,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
385
389
|
invoice_id: string;
|
|
386
390
|
timestamp: string;
|
|
387
391
|
type: 'POSTPAID_COMMIT_TRUEUP';
|
|
392
|
+
contract_id?: string;
|
|
388
393
|
}
|
|
389
394
|
interface PrepaidCommitManualLedgerEntry {
|
|
390
395
|
amount: number;
|
|
@@ -615,6 +620,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
615
620
|
segment_id: string;
|
|
616
621
|
timestamp: string;
|
|
617
622
|
type: 'CREDIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
623
|
+
contract_id?: string;
|
|
618
624
|
}
|
|
619
625
|
interface CreditExpirationLedgerEntry {
|
|
620
626
|
amount: number;
|
|
@@ -628,6 +634,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
628
634
|
segment_id: string;
|
|
629
635
|
timestamp: string;
|
|
630
636
|
type: 'CREDIT_CANCELED';
|
|
637
|
+
contract_id?: string;
|
|
631
638
|
}
|
|
632
639
|
interface CreditCreditedLedgerEntry {
|
|
633
640
|
amount: number;
|
|
@@ -635,6 +642,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
635
642
|
segment_id: string;
|
|
636
643
|
timestamp: string;
|
|
637
644
|
type: 'CREDIT_CREDITED';
|
|
645
|
+
contract_id?: string;
|
|
638
646
|
}
|
|
639
647
|
interface CreditManualLedgerEntry {
|
|
640
648
|
amount: number;
|
|
@@ -670,6 +678,10 @@ export declare namespace ContractRetrieveResponse {
|
|
|
670
678
|
* This field's availability is dependent on your client's configuration.
|
|
671
679
|
*/
|
|
672
680
|
interface CustomerBillingProviderConfiguration {
|
|
681
|
+
/**
|
|
682
|
+
* ID of Customer's billing provider configuration.
|
|
683
|
+
*/
|
|
684
|
+
id: string;
|
|
673
685
|
billing_provider: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
674
686
|
delivery_method: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
|
|
675
687
|
}
|
|
@@ -772,6 +784,8 @@ export declare namespace ContractRetrieveResponse {
|
|
|
772
784
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
773
785
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
774
786
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
787
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
788
|
+
* body of `specifiers`.
|
|
775
789
|
*/
|
|
776
790
|
specifiers?: Array<Commit.Specifier>;
|
|
777
791
|
}
|
|
@@ -892,7 +906,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
892
906
|
*/
|
|
893
907
|
ending_before?: string;
|
|
894
908
|
/**
|
|
895
|
-
* Optional configuration for recurring
|
|
909
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
896
910
|
*/
|
|
897
911
|
hierarchy_configuration?: RecurringCommit.HierarchyConfiguration;
|
|
898
912
|
/**
|
|
@@ -932,6 +946,10 @@ export declare namespace ContractRetrieveResponse {
|
|
|
932
946
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
933
947
|
*/
|
|
934
948
|
specifiers?: Array<RecurringCommit.Specifier>;
|
|
949
|
+
/**
|
|
950
|
+
* Attach a subscription to the recurring commit/credit.
|
|
951
|
+
*/
|
|
952
|
+
subscription_config?: RecurringCommit.SubscriptionConfig;
|
|
935
953
|
}
|
|
936
954
|
namespace RecurringCommit {
|
|
937
955
|
/**
|
|
@@ -957,7 +975,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
957
975
|
id: string;
|
|
958
976
|
}
|
|
959
977
|
/**
|
|
960
|
-
* Optional configuration for recurring
|
|
978
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
961
979
|
*/
|
|
962
980
|
interface HierarchyConfiguration {
|
|
963
981
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -999,6 +1017,22 @@ export declare namespace ContractRetrieveResponse {
|
|
|
999
1017
|
*/
|
|
1000
1018
|
product_tags?: Array<string>;
|
|
1001
1019
|
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1022
|
+
*/
|
|
1023
|
+
interface SubscriptionConfig {
|
|
1024
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
1025
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
1026
|
+
subscription_id: string;
|
|
1027
|
+
}
|
|
1028
|
+
namespace SubscriptionConfig {
|
|
1029
|
+
interface ApplySeatIncreaseConfig {
|
|
1030
|
+
/**
|
|
1031
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
1032
|
+
*/
|
|
1033
|
+
is_prorated: boolean;
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1002
1036
|
}
|
|
1003
1037
|
interface RecurringCredit {
|
|
1004
1038
|
id: string;
|
|
@@ -1041,7 +1075,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
1041
1075
|
*/
|
|
1042
1076
|
ending_before?: string;
|
|
1043
1077
|
/**
|
|
1044
|
-
* Optional configuration for recurring
|
|
1078
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1045
1079
|
*/
|
|
1046
1080
|
hierarchy_configuration?: RecurringCredit.HierarchyConfiguration;
|
|
1047
1081
|
/**
|
|
@@ -1077,6 +1111,10 @@ export declare namespace ContractRetrieveResponse {
|
|
|
1077
1111
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
1078
1112
|
*/
|
|
1079
1113
|
specifiers?: Array<RecurringCredit.Specifier>;
|
|
1114
|
+
/**
|
|
1115
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1116
|
+
*/
|
|
1117
|
+
subscription_config?: RecurringCredit.SubscriptionConfig;
|
|
1080
1118
|
}
|
|
1081
1119
|
namespace RecurringCredit {
|
|
1082
1120
|
/**
|
|
@@ -1102,7 +1140,7 @@ export declare namespace ContractRetrieveResponse {
|
|
|
1102
1140
|
id: string;
|
|
1103
1141
|
}
|
|
1104
1142
|
/**
|
|
1105
|
-
* Optional configuration for recurring
|
|
1143
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1106
1144
|
*/
|
|
1107
1145
|
interface HierarchyConfiguration {
|
|
1108
1146
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -1136,6 +1174,22 @@ export declare namespace ContractRetrieveResponse {
|
|
|
1136
1174
|
*/
|
|
1137
1175
|
product_tags?: Array<string>;
|
|
1138
1176
|
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1179
|
+
*/
|
|
1180
|
+
interface SubscriptionConfig {
|
|
1181
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
1182
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
1183
|
+
subscription_id: string;
|
|
1184
|
+
}
|
|
1185
|
+
namespace SubscriptionConfig {
|
|
1186
|
+
interface ApplySeatIncreaseConfig {
|
|
1187
|
+
/**
|
|
1188
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
1189
|
+
*/
|
|
1190
|
+
is_prorated: boolean;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1139
1193
|
}
|
|
1140
1194
|
interface ResellerRoyalty {
|
|
1141
1195
|
reseller_type: 'AWS' | 'AWS_PRO_SERVICE' | 'GCP' | 'GCP_PRO_SERVICE';
|
|
@@ -1495,6 +1549,7 @@ export declare namespace ContractListResponse {
|
|
|
1495
1549
|
segment_id: string;
|
|
1496
1550
|
timestamp: string;
|
|
1497
1551
|
type: 'PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
1552
|
+
contract_id?: string;
|
|
1498
1553
|
}
|
|
1499
1554
|
interface PrepaidCommitRolloverLedgerEntry {
|
|
1500
1555
|
amount: number;
|
|
@@ -1515,6 +1570,7 @@ export declare namespace ContractListResponse {
|
|
|
1515
1570
|
segment_id: string;
|
|
1516
1571
|
timestamp: string;
|
|
1517
1572
|
type: 'PREPAID_COMMIT_CANCELED';
|
|
1573
|
+
contract_id?: string;
|
|
1518
1574
|
}
|
|
1519
1575
|
interface PrepaidCommitCreditedLedgerEntry {
|
|
1520
1576
|
amount: number;
|
|
@@ -1522,6 +1578,7 @@ export declare namespace ContractListResponse {
|
|
|
1522
1578
|
segment_id: string;
|
|
1523
1579
|
timestamp: string;
|
|
1524
1580
|
type: 'PREPAID_COMMIT_CREDITED';
|
|
1581
|
+
contract_id?: string;
|
|
1525
1582
|
}
|
|
1526
1583
|
interface PrepaidCommitSeatBasedAdjustmentLedgerEntry {
|
|
1527
1584
|
amount: number;
|
|
@@ -1540,6 +1597,7 @@ export declare namespace ContractListResponse {
|
|
|
1540
1597
|
segment_id: string;
|
|
1541
1598
|
timestamp: string;
|
|
1542
1599
|
type: 'POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
1600
|
+
contract_id?: string;
|
|
1543
1601
|
}
|
|
1544
1602
|
interface PostpaidCommitRolloverLedgerEntry {
|
|
1545
1603
|
amount: number;
|
|
@@ -1553,6 +1611,7 @@ export declare namespace ContractListResponse {
|
|
|
1553
1611
|
invoice_id: string;
|
|
1554
1612
|
timestamp: string;
|
|
1555
1613
|
type: 'POSTPAID_COMMIT_TRUEUP';
|
|
1614
|
+
contract_id?: string;
|
|
1556
1615
|
}
|
|
1557
1616
|
interface PrepaidCommitManualLedgerEntry {
|
|
1558
1617
|
amount: number;
|
|
@@ -1783,6 +1842,7 @@ export declare namespace ContractListResponse {
|
|
|
1783
1842
|
segment_id: string;
|
|
1784
1843
|
timestamp: string;
|
|
1785
1844
|
type: 'CREDIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
1845
|
+
contract_id?: string;
|
|
1786
1846
|
}
|
|
1787
1847
|
interface CreditExpirationLedgerEntry {
|
|
1788
1848
|
amount: number;
|
|
@@ -1796,6 +1856,7 @@ export declare namespace ContractListResponse {
|
|
|
1796
1856
|
segment_id: string;
|
|
1797
1857
|
timestamp: string;
|
|
1798
1858
|
type: 'CREDIT_CANCELED';
|
|
1859
|
+
contract_id?: string;
|
|
1799
1860
|
}
|
|
1800
1861
|
interface CreditCreditedLedgerEntry {
|
|
1801
1862
|
amount: number;
|
|
@@ -1803,6 +1864,7 @@ export declare namespace ContractListResponse {
|
|
|
1803
1864
|
segment_id: string;
|
|
1804
1865
|
timestamp: string;
|
|
1805
1866
|
type: 'CREDIT_CREDITED';
|
|
1867
|
+
contract_id?: string;
|
|
1806
1868
|
}
|
|
1807
1869
|
interface CreditManualLedgerEntry {
|
|
1808
1870
|
amount: number;
|
|
@@ -1838,6 +1900,10 @@ export declare namespace ContractListResponse {
|
|
|
1838
1900
|
* This field's availability is dependent on your client's configuration.
|
|
1839
1901
|
*/
|
|
1840
1902
|
interface CustomerBillingProviderConfiguration {
|
|
1903
|
+
/**
|
|
1904
|
+
* ID of Customer's billing provider configuration.
|
|
1905
|
+
*/
|
|
1906
|
+
id: string;
|
|
1841
1907
|
billing_provider: 'aws_marketplace' | 'stripe' | 'netsuite' | 'custom' | 'azure_marketplace' | 'quickbooks_online' | 'workday' | 'gcp_marketplace';
|
|
1842
1908
|
delivery_method: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
|
|
1843
1909
|
}
|
|
@@ -1940,6 +2006,8 @@ export declare namespace ContractListResponse {
|
|
|
1940
2006
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
1941
2007
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
1942
2008
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2009
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
2010
|
+
* body of `specifiers`.
|
|
1943
2011
|
*/
|
|
1944
2012
|
specifiers?: Array<Commit.Specifier>;
|
|
1945
2013
|
}
|
|
@@ -2060,7 +2128,7 @@ export declare namespace ContractListResponse {
|
|
|
2060
2128
|
*/
|
|
2061
2129
|
ending_before?: string;
|
|
2062
2130
|
/**
|
|
2063
|
-
* Optional configuration for recurring
|
|
2131
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2064
2132
|
*/
|
|
2065
2133
|
hierarchy_configuration?: RecurringCommit.HierarchyConfiguration;
|
|
2066
2134
|
/**
|
|
@@ -2100,6 +2168,10 @@ export declare namespace ContractListResponse {
|
|
|
2100
2168
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
2101
2169
|
*/
|
|
2102
2170
|
specifiers?: Array<RecurringCommit.Specifier>;
|
|
2171
|
+
/**
|
|
2172
|
+
* Attach a subscription to the recurring commit/credit.
|
|
2173
|
+
*/
|
|
2174
|
+
subscription_config?: RecurringCommit.SubscriptionConfig;
|
|
2103
2175
|
}
|
|
2104
2176
|
namespace RecurringCommit {
|
|
2105
2177
|
/**
|
|
@@ -2125,7 +2197,7 @@ export declare namespace ContractListResponse {
|
|
|
2125
2197
|
id: string;
|
|
2126
2198
|
}
|
|
2127
2199
|
/**
|
|
2128
|
-
* Optional configuration for recurring
|
|
2200
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2129
2201
|
*/
|
|
2130
2202
|
interface HierarchyConfiguration {
|
|
2131
2203
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -2167,6 +2239,22 @@ export declare namespace ContractListResponse {
|
|
|
2167
2239
|
*/
|
|
2168
2240
|
product_tags?: Array<string>;
|
|
2169
2241
|
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Attach a subscription to the recurring commit/credit.
|
|
2244
|
+
*/
|
|
2245
|
+
interface SubscriptionConfig {
|
|
2246
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
2247
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
2248
|
+
subscription_id: string;
|
|
2249
|
+
}
|
|
2250
|
+
namespace SubscriptionConfig {
|
|
2251
|
+
interface ApplySeatIncreaseConfig {
|
|
2252
|
+
/**
|
|
2253
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
2254
|
+
*/
|
|
2255
|
+
is_prorated: boolean;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2170
2258
|
}
|
|
2171
2259
|
interface RecurringCredit {
|
|
2172
2260
|
id: string;
|
|
@@ -2209,7 +2297,7 @@ export declare namespace ContractListResponse {
|
|
|
2209
2297
|
*/
|
|
2210
2298
|
ending_before?: string;
|
|
2211
2299
|
/**
|
|
2212
|
-
* Optional configuration for recurring
|
|
2300
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2213
2301
|
*/
|
|
2214
2302
|
hierarchy_configuration?: RecurringCredit.HierarchyConfiguration;
|
|
2215
2303
|
/**
|
|
@@ -2245,6 +2333,10 @@ export declare namespace ContractListResponse {
|
|
|
2245
2333
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
2246
2334
|
*/
|
|
2247
2335
|
specifiers?: Array<RecurringCredit.Specifier>;
|
|
2336
|
+
/**
|
|
2337
|
+
* Attach a subscription to the recurring commit/credit.
|
|
2338
|
+
*/
|
|
2339
|
+
subscription_config?: RecurringCredit.SubscriptionConfig;
|
|
2248
2340
|
}
|
|
2249
2341
|
namespace RecurringCredit {
|
|
2250
2342
|
/**
|
|
@@ -2270,7 +2362,7 @@ export declare namespace ContractListResponse {
|
|
|
2270
2362
|
id: string;
|
|
2271
2363
|
}
|
|
2272
2364
|
/**
|
|
2273
|
-
* Optional configuration for recurring
|
|
2365
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2274
2366
|
*/
|
|
2275
2367
|
interface HierarchyConfiguration {
|
|
2276
2368
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -2304,6 +2396,22 @@ export declare namespace ContractListResponse {
|
|
|
2304
2396
|
*/
|
|
2305
2397
|
product_tags?: Array<string>;
|
|
2306
2398
|
}
|
|
2399
|
+
/**
|
|
2400
|
+
* Attach a subscription to the recurring commit/credit.
|
|
2401
|
+
*/
|
|
2402
|
+
interface SubscriptionConfig {
|
|
2403
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
2404
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
2405
|
+
subscription_id: string;
|
|
2406
|
+
}
|
|
2407
|
+
namespace SubscriptionConfig {
|
|
2408
|
+
interface ApplySeatIncreaseConfig {
|
|
2409
|
+
/**
|
|
2410
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
2411
|
+
*/
|
|
2412
|
+
is_prorated: boolean;
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2307
2415
|
}
|
|
2308
2416
|
interface ResellerRoyalty {
|
|
2309
2417
|
reseller_type: 'AWS' | 'AWS_PRO_SERVICE' | 'GCP' | 'GCP_PRO_SERVICE';
|
|
@@ -2523,6 +2631,10 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2523
2631
|
applicable_product_ids?: Array<string>;
|
|
2524
2632
|
applicable_product_tags?: Array<string>;
|
|
2525
2633
|
description?: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* Optional configuration for commit hierarchy access control
|
|
2636
|
+
*/
|
|
2637
|
+
hierarchy_configuration?: AddCommit.HierarchyConfiguration;
|
|
2526
2638
|
/**
|
|
2527
2639
|
* The schedule that the customer will be invoiced for this commit.
|
|
2528
2640
|
*/
|
|
@@ -2548,6 +2660,8 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2548
2660
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
2549
2661
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
2550
2662
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2663
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
2664
|
+
* body of `specifiers`.
|
|
2551
2665
|
*/
|
|
2552
2666
|
specifiers?: Array<AddCommit.Specifier>;
|
|
2553
2667
|
}
|
|
@@ -2556,6 +2670,24 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2556
2670
|
id: string;
|
|
2557
2671
|
name: string;
|
|
2558
2672
|
}
|
|
2673
|
+
/**
|
|
2674
|
+
* Optional configuration for commit hierarchy access control
|
|
2675
|
+
*/
|
|
2676
|
+
interface HierarchyConfiguration {
|
|
2677
|
+
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
2678
|
+
}
|
|
2679
|
+
namespace HierarchyConfiguration {
|
|
2680
|
+
interface CommitHierarchyChildAccessAll {
|
|
2681
|
+
type: 'ALL';
|
|
2682
|
+
}
|
|
2683
|
+
interface CommitHierarchyChildAccessNone {
|
|
2684
|
+
type: 'NONE';
|
|
2685
|
+
}
|
|
2686
|
+
interface CommitHierarchyChildAccessContractIDs {
|
|
2687
|
+
contract_ids: Array<string>;
|
|
2688
|
+
type: 'CONTRACT_IDS';
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2559
2691
|
interface Specifier {
|
|
2560
2692
|
presentation_group_values?: {
|
|
2561
2693
|
[key: string]: string;
|
|
@@ -2585,6 +2717,10 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2585
2717
|
applicable_product_ids?: Array<string>;
|
|
2586
2718
|
applicable_product_tags?: Array<string>;
|
|
2587
2719
|
description?: string;
|
|
2720
|
+
/**
|
|
2721
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2722
|
+
*/
|
|
2723
|
+
hierarchy_configuration?: AddCredit.HierarchyConfiguration;
|
|
2588
2724
|
name?: string;
|
|
2589
2725
|
/**
|
|
2590
2726
|
* This field's availability is dependent on your client's configuration.
|
|
@@ -2604,6 +2740,8 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2604
2740
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
2605
2741
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
2606
2742
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2743
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
2744
|
+
* body of `specifiers`.
|
|
2607
2745
|
*/
|
|
2608
2746
|
specifiers?: Array<AddCredit.Specifier>;
|
|
2609
2747
|
}
|
|
@@ -2612,6 +2750,24 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2612
2750
|
id: string;
|
|
2613
2751
|
name: string;
|
|
2614
2752
|
}
|
|
2753
|
+
/**
|
|
2754
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2755
|
+
*/
|
|
2756
|
+
interface HierarchyConfiguration {
|
|
2757
|
+
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
2758
|
+
}
|
|
2759
|
+
namespace HierarchyConfiguration {
|
|
2760
|
+
interface CommitHierarchyChildAccessAll {
|
|
2761
|
+
type: 'ALL';
|
|
2762
|
+
}
|
|
2763
|
+
interface CommitHierarchyChildAccessNone {
|
|
2764
|
+
type: 'NONE';
|
|
2765
|
+
}
|
|
2766
|
+
interface CommitHierarchyChildAccessContractIDs {
|
|
2767
|
+
contract_ids: Array<string>;
|
|
2768
|
+
type: 'CONTRACT_IDS';
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2615
2771
|
interface Specifier {
|
|
2616
2772
|
presentation_group_values?: {
|
|
2617
2773
|
[key: string]: string;
|
|
@@ -2753,6 +2909,8 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2753
2909
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
2754
2910
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
2755
2911
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2912
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
2913
|
+
* body of `specifiers`.
|
|
2756
2914
|
*/
|
|
2757
2915
|
specifiers?: Array<Commit.Specifier>;
|
|
2758
2916
|
}
|
|
@@ -2873,7 +3031,7 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2873
3031
|
*/
|
|
2874
3032
|
ending_before?: string;
|
|
2875
3033
|
/**
|
|
2876
|
-
* Optional configuration for recurring
|
|
3034
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2877
3035
|
*/
|
|
2878
3036
|
hierarchy_configuration?: AddRecurringCommit.HierarchyConfiguration;
|
|
2879
3037
|
/**
|
|
@@ -2913,6 +3071,10 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2913
3071
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
2914
3072
|
*/
|
|
2915
3073
|
specifiers?: Array<AddRecurringCommit.Specifier>;
|
|
3074
|
+
/**
|
|
3075
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3076
|
+
*/
|
|
3077
|
+
subscription_config?: AddRecurringCommit.SubscriptionConfig;
|
|
2916
3078
|
}
|
|
2917
3079
|
namespace AddRecurringCommit {
|
|
2918
3080
|
/**
|
|
@@ -2938,7 +3100,7 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2938
3100
|
id: string;
|
|
2939
3101
|
}
|
|
2940
3102
|
/**
|
|
2941
|
-
* Optional configuration for recurring
|
|
3103
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2942
3104
|
*/
|
|
2943
3105
|
interface HierarchyConfiguration {
|
|
2944
3106
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -2980,6 +3142,22 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
2980
3142
|
*/
|
|
2981
3143
|
product_tags?: Array<string>;
|
|
2982
3144
|
}
|
|
3145
|
+
/**
|
|
3146
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3147
|
+
*/
|
|
3148
|
+
interface SubscriptionConfig {
|
|
3149
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
3150
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
3151
|
+
subscription_id: string;
|
|
3152
|
+
}
|
|
3153
|
+
namespace SubscriptionConfig {
|
|
3154
|
+
interface ApplySeatIncreaseConfig {
|
|
3155
|
+
/**
|
|
3156
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
3157
|
+
*/
|
|
3158
|
+
is_prorated: boolean;
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
2983
3161
|
}
|
|
2984
3162
|
interface AddRecurringCredit {
|
|
2985
3163
|
id: string;
|
|
@@ -3022,7 +3200,7 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3022
3200
|
*/
|
|
3023
3201
|
ending_before?: string;
|
|
3024
3202
|
/**
|
|
3025
|
-
* Optional configuration for recurring
|
|
3203
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3026
3204
|
*/
|
|
3027
3205
|
hierarchy_configuration?: AddRecurringCredit.HierarchyConfiguration;
|
|
3028
3206
|
/**
|
|
@@ -3058,6 +3236,10 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3058
3236
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
3059
3237
|
*/
|
|
3060
3238
|
specifiers?: Array<AddRecurringCredit.Specifier>;
|
|
3239
|
+
/**
|
|
3240
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3241
|
+
*/
|
|
3242
|
+
subscription_config?: AddRecurringCredit.SubscriptionConfig;
|
|
3061
3243
|
}
|
|
3062
3244
|
namespace AddRecurringCredit {
|
|
3063
3245
|
/**
|
|
@@ -3083,7 +3265,7 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3083
3265
|
id: string;
|
|
3084
3266
|
}
|
|
3085
3267
|
/**
|
|
3086
|
-
* Optional configuration for recurring
|
|
3268
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3087
3269
|
*/
|
|
3088
3270
|
interface HierarchyConfiguration {
|
|
3089
3271
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -3117,6 +3299,22 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3117
3299
|
*/
|
|
3118
3300
|
product_tags?: Array<string>;
|
|
3119
3301
|
}
|
|
3302
|
+
/**
|
|
3303
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3304
|
+
*/
|
|
3305
|
+
interface SubscriptionConfig {
|
|
3306
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
3307
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
3308
|
+
subscription_id: string;
|
|
3309
|
+
}
|
|
3310
|
+
namespace SubscriptionConfig {
|
|
3311
|
+
interface ApplySeatIncreaseConfig {
|
|
3312
|
+
/**
|
|
3313
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
3314
|
+
*/
|
|
3315
|
+
is_prorated: boolean;
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3120
3318
|
}
|
|
3121
3319
|
interface AddResellerRoyalty {
|
|
3122
3320
|
reseller_type: 'AWS' | 'AWS_PRO_SERVICE' | 'GCP' | 'GCP_PRO_SERVICE';
|
|
@@ -3319,9 +3517,18 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3319
3517
|
* all products.
|
|
3320
3518
|
*/
|
|
3321
3519
|
applicable_product_tags?: Array<string> | null;
|
|
3520
|
+
/**
|
|
3521
|
+
* Optional configuration for commit hierarchy access control
|
|
3522
|
+
*/
|
|
3523
|
+
hierarchy_configuration?: UpdateCommit.HierarchyConfiguration;
|
|
3322
3524
|
invoice_schedule?: UpdateCommit.InvoiceSchedule;
|
|
3323
3525
|
name?: string;
|
|
3324
3526
|
netsuite_sales_order_id?: string | null;
|
|
3527
|
+
/**
|
|
3528
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
3529
|
+
* first.
|
|
3530
|
+
*/
|
|
3531
|
+
priority?: number | null;
|
|
3325
3532
|
product_id?: string;
|
|
3326
3533
|
rollover_fraction?: number | null;
|
|
3327
3534
|
/**
|
|
@@ -3329,6 +3536,8 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3329
3536
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
3330
3537
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
3331
3538
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
3539
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
3540
|
+
* body of `specifiers`.
|
|
3332
3541
|
*/
|
|
3333
3542
|
specifiers?: Array<UpdateCommit.Specifier> | null;
|
|
3334
3543
|
}
|
|
@@ -3366,6 +3575,24 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3366
3575
|
starting_at?: string;
|
|
3367
3576
|
}
|
|
3368
3577
|
}
|
|
3578
|
+
/**
|
|
3579
|
+
* Optional configuration for commit hierarchy access control
|
|
3580
|
+
*/
|
|
3581
|
+
interface HierarchyConfiguration {
|
|
3582
|
+
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
3583
|
+
}
|
|
3584
|
+
namespace HierarchyConfiguration {
|
|
3585
|
+
interface CommitHierarchyChildAccessAll {
|
|
3586
|
+
type: 'ALL';
|
|
3587
|
+
}
|
|
3588
|
+
interface CommitHierarchyChildAccessNone {
|
|
3589
|
+
type: 'NONE';
|
|
3590
|
+
}
|
|
3591
|
+
interface CommitHierarchyChildAccessContractIDs {
|
|
3592
|
+
contract_ids: Array<string>;
|
|
3593
|
+
type: 'CONTRACT_IDS';
|
|
3594
|
+
}
|
|
3595
|
+
}
|
|
3369
3596
|
interface InvoiceSchedule {
|
|
3370
3597
|
add_schedule_items?: Array<InvoiceSchedule.AddScheduleItem>;
|
|
3371
3598
|
remove_schedule_items?: Array<InvoiceSchedule.RemoveScheduleItem>;
|
|
@@ -3410,8 +3637,17 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3410
3637
|
interface UpdateCredit {
|
|
3411
3638
|
id: string;
|
|
3412
3639
|
access_schedule?: UpdateCredit.AccessSchedule;
|
|
3640
|
+
/**
|
|
3641
|
+
* Optional configuration for credit hierarchy access control
|
|
3642
|
+
*/
|
|
3643
|
+
hierarchy_configuration?: UpdateCredit.HierarchyConfiguration;
|
|
3413
3644
|
name?: string;
|
|
3414
3645
|
netsuite_sales_order_id?: string | null;
|
|
3646
|
+
/**
|
|
3647
|
+
* If multiple credits are applicable, the one with the lower priority will apply
|
|
3648
|
+
* first.
|
|
3649
|
+
*/
|
|
3650
|
+
priority?: number | null;
|
|
3415
3651
|
rollover_fraction?: number | null;
|
|
3416
3652
|
}
|
|
3417
3653
|
namespace UpdateCredit {
|
|
@@ -3448,6 +3684,24 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3448
3684
|
starting_at?: string;
|
|
3449
3685
|
}
|
|
3450
3686
|
}
|
|
3687
|
+
/**
|
|
3688
|
+
* Optional configuration for credit hierarchy access control
|
|
3689
|
+
*/
|
|
3690
|
+
interface HierarchyConfiguration {
|
|
3691
|
+
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
3692
|
+
}
|
|
3693
|
+
namespace HierarchyConfiguration {
|
|
3694
|
+
interface CommitHierarchyChildAccessAll {
|
|
3695
|
+
type: 'ALL';
|
|
3696
|
+
}
|
|
3697
|
+
interface CommitHierarchyChildAccessNone {
|
|
3698
|
+
type: 'NONE';
|
|
3699
|
+
}
|
|
3700
|
+
interface CommitHierarchyChildAccessContractIDs {
|
|
3701
|
+
contract_ids: Array<string>;
|
|
3702
|
+
type: 'CONTRACT_IDS';
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3451
3705
|
}
|
|
3452
3706
|
interface UpdateDiscount {
|
|
3453
3707
|
id: string;
|
|
@@ -3467,9 +3721,14 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3467
3721
|
*/
|
|
3468
3722
|
interface Schedule {
|
|
3469
3723
|
/**
|
|
3470
|
-
* Defaults to USD if not passed.
|
|
3724
|
+
* Defaults to USD (cents) if not passed.
|
|
3471
3725
|
*/
|
|
3472
3726
|
credit_type_id?: string;
|
|
3727
|
+
/**
|
|
3728
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
3729
|
+
* schedule will not generate an invoice.
|
|
3730
|
+
*/
|
|
3731
|
+
do_not_invoice?: boolean;
|
|
3473
3732
|
/**
|
|
3474
3733
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
3475
3734
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -3596,6 +3855,8 @@ export declare namespace ContractGetEditHistoryResponse {
|
|
|
3596
3855
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
3597
3856
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
3598
3857
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
3858
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
3859
|
+
* body of `specifiers`.
|
|
3599
3860
|
*/
|
|
3600
3861
|
specifiers?: Array<Commit.Specifier> | null;
|
|
3601
3862
|
}
|
|
@@ -4037,6 +4298,8 @@ export declare namespace ContractEditParams {
|
|
|
4037
4298
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4038
4299
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4039
4300
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
4301
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
4302
|
+
* body of `specifiers`.
|
|
4040
4303
|
*/
|
|
4041
4304
|
specifiers?: Array<AddCommit.Specifier>;
|
|
4042
4305
|
/**
|
|
@@ -4094,9 +4357,14 @@ export declare namespace ContractEditParams {
|
|
|
4094
4357
|
*/
|
|
4095
4358
|
interface InvoiceSchedule {
|
|
4096
4359
|
/**
|
|
4097
|
-
* Defaults to USD if not passed.
|
|
4360
|
+
* Defaults to USD (cents) if not passed.
|
|
4098
4361
|
*/
|
|
4099
4362
|
credit_type_id?: string;
|
|
4363
|
+
/**
|
|
4364
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
4365
|
+
* schedule will not generate an invoice.
|
|
4366
|
+
*/
|
|
4367
|
+
do_not_invoice?: boolean;
|
|
4100
4368
|
/**
|
|
4101
4369
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
4102
4370
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -4226,6 +4494,17 @@ export declare namespace ContractEditParams {
|
|
|
4226
4494
|
invoice_metadata?: {
|
|
4227
4495
|
[key: string]: string;
|
|
4228
4496
|
};
|
|
4497
|
+
/**
|
|
4498
|
+
* If true, the payment will be made assuming the customer is present (i.e. on
|
|
4499
|
+
* session).
|
|
4500
|
+
*
|
|
4501
|
+
* If false, the payment will be made assuming the customer is not present (i.e.
|
|
4502
|
+
* off session). For cardholders from a country with an e-mandate requirement (e.g.
|
|
4503
|
+
* India), the payment may be declined.
|
|
4504
|
+
*
|
|
4505
|
+
* If left blank, will default to false.
|
|
4506
|
+
*/
|
|
4507
|
+
on_session_payment?: boolean;
|
|
4229
4508
|
}
|
|
4230
4509
|
}
|
|
4231
4510
|
interface Specifier {
|
|
@@ -4292,6 +4571,8 @@ export declare namespace ContractEditParams {
|
|
|
4292
4571
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4293
4572
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4294
4573
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
4574
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
4575
|
+
* body of `specifiers`.
|
|
4295
4576
|
*/
|
|
4296
4577
|
specifiers?: Array<AddCredit.Specifier>;
|
|
4297
4578
|
}
|
|
@@ -4376,9 +4657,14 @@ export declare namespace ContractEditParams {
|
|
|
4376
4657
|
*/
|
|
4377
4658
|
interface Schedule {
|
|
4378
4659
|
/**
|
|
4379
|
-
* Defaults to USD if not passed.
|
|
4660
|
+
* Defaults to USD (cents) if not passed.
|
|
4380
4661
|
*/
|
|
4381
4662
|
credit_type_id?: string;
|
|
4663
|
+
/**
|
|
4664
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
4665
|
+
* schedule will not generate an invoice.
|
|
4666
|
+
*/
|
|
4667
|
+
do_not_invoice?: boolean;
|
|
4382
4668
|
/**
|
|
4383
4669
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
4384
4670
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -4650,6 +4936,8 @@ export declare namespace ContractEditParams {
|
|
|
4650
4936
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4651
4937
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4652
4938
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
4939
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
4940
|
+
* body of `specifiers`.
|
|
4653
4941
|
*/
|
|
4654
4942
|
specifiers?: Array<Commit.Specifier>;
|
|
4655
4943
|
}
|
|
@@ -4791,7 +5079,7 @@ export declare namespace ContractEditParams {
|
|
|
4791
5079
|
*/
|
|
4792
5080
|
ending_before?: string;
|
|
4793
5081
|
/**
|
|
4794
|
-
* Optional configuration for recurring
|
|
5082
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
4795
5083
|
*/
|
|
4796
5084
|
hierarchy_configuration?: AddRecurringCommit.HierarchyConfiguration;
|
|
4797
5085
|
/**
|
|
@@ -4834,8 +5122,14 @@ export declare namespace ContractEditParams {
|
|
|
4834
5122
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4835
5123
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4836
5124
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5125
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5126
|
+
* body of `specifiers`.
|
|
4837
5127
|
*/
|
|
4838
5128
|
specifiers?: Array<AddRecurringCommit.Specifier>;
|
|
5129
|
+
/**
|
|
5130
|
+
* Attach a subscription to the recurring commit/credit.
|
|
5131
|
+
*/
|
|
5132
|
+
subscription_config?: AddRecurringCommit.SubscriptionConfig;
|
|
4839
5133
|
/**
|
|
4840
5134
|
* A temporary ID that can be used to reference the recurring commit for commit
|
|
4841
5135
|
* specific overrides.
|
|
@@ -4850,8 +5144,8 @@ export declare namespace ContractEditParams {
|
|
|
4850
5144
|
credit_type_id: string;
|
|
4851
5145
|
unit_price: number;
|
|
4852
5146
|
/**
|
|
4853
|
-
* This field is
|
|
4854
|
-
*
|
|
5147
|
+
* This field is required unless a subscription is attached via
|
|
5148
|
+
* `subscription_config`.
|
|
4855
5149
|
*/
|
|
4856
5150
|
quantity?: number;
|
|
4857
5151
|
}
|
|
@@ -4865,7 +5159,7 @@ export declare namespace ContractEditParams {
|
|
|
4865
5159
|
unit?: 'PERIODS';
|
|
4866
5160
|
}
|
|
4867
5161
|
/**
|
|
4868
|
-
* Optional configuration for recurring
|
|
5162
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
4869
5163
|
*/
|
|
4870
5164
|
interface HierarchyConfiguration {
|
|
4871
5165
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -4907,6 +5201,28 @@ export declare namespace ContractEditParams {
|
|
|
4907
5201
|
*/
|
|
4908
5202
|
product_tags?: Array<string>;
|
|
4909
5203
|
}
|
|
5204
|
+
/**
|
|
5205
|
+
* Attach a subscription to the recurring commit/credit.
|
|
5206
|
+
*/
|
|
5207
|
+
interface SubscriptionConfig {
|
|
5208
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
5209
|
+
/**
|
|
5210
|
+
* ID of the subscription to configure on the recurring commit/credit.
|
|
5211
|
+
*/
|
|
5212
|
+
subscription_id: string;
|
|
5213
|
+
/**
|
|
5214
|
+
* If set to POOLED, allocation added per seat is pooled across the account.
|
|
5215
|
+
*/
|
|
5216
|
+
allocation?: 'POOLED';
|
|
5217
|
+
}
|
|
5218
|
+
namespace SubscriptionConfig {
|
|
5219
|
+
interface ApplySeatIncreaseConfig {
|
|
5220
|
+
/**
|
|
5221
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
5222
|
+
*/
|
|
5223
|
+
is_prorated: boolean;
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
4910
5226
|
}
|
|
4911
5227
|
interface AddRecurringCredit {
|
|
4912
5228
|
/**
|
|
@@ -4945,7 +5261,7 @@ export declare namespace ContractEditParams {
|
|
|
4945
5261
|
*/
|
|
4946
5262
|
ending_before?: string;
|
|
4947
5263
|
/**
|
|
4948
|
-
* Optional configuration for recurring
|
|
5264
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
4949
5265
|
*/
|
|
4950
5266
|
hierarchy_configuration?: AddRecurringCredit.HierarchyConfiguration;
|
|
4951
5267
|
/**
|
|
@@ -4984,8 +5300,14 @@ export declare namespace ContractEditParams {
|
|
|
4984
5300
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4985
5301
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4986
5302
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5303
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5304
|
+
* body of `specifiers`.
|
|
4987
5305
|
*/
|
|
4988
5306
|
specifiers?: Array<AddRecurringCredit.Specifier>;
|
|
5307
|
+
/**
|
|
5308
|
+
* Attach a subscription to the recurring commit/credit.
|
|
5309
|
+
*/
|
|
5310
|
+
subscription_config?: AddRecurringCredit.SubscriptionConfig;
|
|
4989
5311
|
/**
|
|
4990
5312
|
* A temporary ID that can be used to reference the recurring commit for commit
|
|
4991
5313
|
* specific overrides.
|
|
@@ -5000,8 +5322,8 @@ export declare namespace ContractEditParams {
|
|
|
5000
5322
|
credit_type_id: string;
|
|
5001
5323
|
unit_price: number;
|
|
5002
5324
|
/**
|
|
5003
|
-
* This field is
|
|
5004
|
-
*
|
|
5325
|
+
* This field is required unless a subscription is attached via
|
|
5326
|
+
* `subscription_config`.
|
|
5005
5327
|
*/
|
|
5006
5328
|
quantity?: number;
|
|
5007
5329
|
}
|
|
@@ -5015,7 +5337,7 @@ export declare namespace ContractEditParams {
|
|
|
5015
5337
|
unit?: 'PERIODS';
|
|
5016
5338
|
}
|
|
5017
5339
|
/**
|
|
5018
|
-
* Optional configuration for recurring
|
|
5340
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
5019
5341
|
*/
|
|
5020
5342
|
interface HierarchyConfiguration {
|
|
5021
5343
|
child_access: HierarchyConfiguration.CommitHierarchyChildAccessAll | HierarchyConfiguration.CommitHierarchyChildAccessNone | HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
@@ -5049,6 +5371,28 @@ export declare namespace ContractEditParams {
|
|
|
5049
5371
|
*/
|
|
5050
5372
|
product_tags?: Array<string>;
|
|
5051
5373
|
}
|
|
5374
|
+
/**
|
|
5375
|
+
* Attach a subscription to the recurring commit/credit.
|
|
5376
|
+
*/
|
|
5377
|
+
interface SubscriptionConfig {
|
|
5378
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
5379
|
+
/**
|
|
5380
|
+
* ID of the subscription to configure on the recurring commit/credit.
|
|
5381
|
+
*/
|
|
5382
|
+
subscription_id: string;
|
|
5383
|
+
/**
|
|
5384
|
+
* If set to POOLED, allocation added per seat is pooled across the account.
|
|
5385
|
+
*/
|
|
5386
|
+
allocation?: 'POOLED';
|
|
5387
|
+
}
|
|
5388
|
+
namespace SubscriptionConfig {
|
|
5389
|
+
interface ApplySeatIncreaseConfig {
|
|
5390
|
+
/**
|
|
5391
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
5392
|
+
*/
|
|
5393
|
+
is_prorated: boolean;
|
|
5394
|
+
}
|
|
5395
|
+
}
|
|
5052
5396
|
}
|
|
5053
5397
|
interface AddResellerRoyalty {
|
|
5054
5398
|
reseller_type: 'AWS' | 'AWS_PRO_SERVICE' | 'GCP' | 'GCP_PRO_SERVICE';
|
|
@@ -5088,6 +5432,9 @@ export declare namespace ContractEditParams {
|
|
|
5088
5432
|
* Must provide either schedule_items or recurring_schedule.
|
|
5089
5433
|
*/
|
|
5090
5434
|
schedule: AddScheduledCharge.Schedule;
|
|
5435
|
+
custom_fields?: {
|
|
5436
|
+
[key: string]: string;
|
|
5437
|
+
};
|
|
5091
5438
|
/**
|
|
5092
5439
|
* displayed on invoices
|
|
5093
5440
|
*/
|
|
@@ -5103,9 +5450,14 @@ export declare namespace ContractEditParams {
|
|
|
5103
5450
|
*/
|
|
5104
5451
|
interface Schedule {
|
|
5105
5452
|
/**
|
|
5106
|
-
* Defaults to USD if not passed.
|
|
5453
|
+
* Defaults to USD (cents) if not passed.
|
|
5107
5454
|
*/
|
|
5108
5455
|
credit_type_id?: string;
|
|
5456
|
+
/**
|
|
5457
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
5458
|
+
* schedule will not generate an invoice.
|
|
5459
|
+
*/
|
|
5460
|
+
do_not_invoice?: boolean;
|
|
5109
5461
|
/**
|
|
5110
5462
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
5111
5463
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -5285,14 +5637,20 @@ export declare namespace ContractEditParams {
|
|
|
5285
5637
|
* start date
|
|
5286
5638
|
*/
|
|
5287
5639
|
starting_at?: string;
|
|
5640
|
+
/**
|
|
5641
|
+
* A temporary ID used to reference the subscription in recurring commit/credit
|
|
5642
|
+
* subscription configs created within the same payload.
|
|
5643
|
+
*/
|
|
5644
|
+
temporary_id?: string;
|
|
5288
5645
|
}
|
|
5289
5646
|
namespace AddSubscription {
|
|
5290
5647
|
interface Proration {
|
|
5291
5648
|
/**
|
|
5292
|
-
* Indicates how mid-period quantity adjustments are invoiced.
|
|
5293
|
-
*
|
|
5294
|
-
*
|
|
5295
|
-
*
|
|
5649
|
+
* Indicates how mid-period quantity adjustments are invoiced.
|
|
5650
|
+
* **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
|
|
5651
|
+
* quantity increase will be billed immediately on the scheduled date.
|
|
5652
|
+
* **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
|
|
5653
|
+
* in-arrears at the end of the period.
|
|
5296
5654
|
*/
|
|
5297
5655
|
invoice_behavior?: 'BILL_IMMEDIATELY' | 'BILL_ON_NEXT_COLLECTION_DATE';
|
|
5298
5656
|
/**
|
|
@@ -5345,6 +5703,7 @@ export declare namespace ContractEditParams {
|
|
|
5345
5703
|
hierarchy_configuration?: UpdateCommit.HierarchyConfiguration;
|
|
5346
5704
|
invoice_schedule?: UpdateCommit.InvoiceSchedule;
|
|
5347
5705
|
netsuite_sales_order_id?: string | null;
|
|
5706
|
+
priority?: number | null;
|
|
5348
5707
|
product_id?: string;
|
|
5349
5708
|
rollover_fraction?: number | null;
|
|
5350
5709
|
}
|
|
@@ -5432,6 +5791,7 @@ export declare namespace ContractEditParams {
|
|
|
5432
5791
|
*/
|
|
5433
5792
|
hierarchy_configuration?: UpdateCredit.HierarchyConfiguration;
|
|
5434
5793
|
netsuite_sales_order_id?: string | null;
|
|
5794
|
+
priority?: number | null;
|
|
5435
5795
|
product_id?: string;
|
|
5436
5796
|
}
|
|
5437
5797
|
namespace UpdateCredit {
|
|
@@ -5528,6 +5888,8 @@ export declare namespace ContractEditParams {
|
|
|
5528
5888
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
5529
5889
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
5530
5890
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5891
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5892
|
+
* body of `specifiers`.
|
|
5531
5893
|
*/
|
|
5532
5894
|
specifiers?: Array<Commit.Specifier> | null;
|
|
5533
5895
|
}
|
|
@@ -5804,12 +6166,19 @@ export interface ContractEditCommitParams {
|
|
|
5804
6166
|
*/
|
|
5805
6167
|
invoice_contract_id?: string;
|
|
5806
6168
|
invoice_schedule?: ContractEditCommitParams.InvoiceSchedule;
|
|
6169
|
+
/**
|
|
6170
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
6171
|
+
* first.
|
|
6172
|
+
*/
|
|
6173
|
+
priority?: number | null;
|
|
5807
6174
|
product_id?: string;
|
|
5808
6175
|
/**
|
|
5809
6176
|
* List of filters that determine what kind of customer usage draws down a commit
|
|
5810
6177
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
5811
6178
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
5812
6179
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
6180
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
6181
|
+
* body of `specifiers`.
|
|
5813
6182
|
*/
|
|
5814
6183
|
specifiers?: Array<ContractEditCommitParams.Specifier> | null;
|
|
5815
6184
|
}
|
|
@@ -5896,12 +6265,19 @@ export interface ContractEditCreditParams {
|
|
|
5896
6265
|
* applicable_product_tags are not provided, the credit applies to all products.
|
|
5897
6266
|
*/
|
|
5898
6267
|
applicable_product_tags?: Array<string> | null;
|
|
6268
|
+
/**
|
|
6269
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
6270
|
+
* first.
|
|
6271
|
+
*/
|
|
6272
|
+
priority?: number | null;
|
|
5899
6273
|
product_id?: string;
|
|
5900
6274
|
/**
|
|
5901
6275
|
* List of filters that determine what kind of customer usage draws down a commit
|
|
5902
6276
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
5903
6277
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
5904
6278
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
6279
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
6280
|
+
* body of `specifiers`.
|
|
5905
6281
|
*/
|
|
5906
6282
|
specifiers?: Array<ContractEditCreditParams.Specifier> | null;
|
|
5907
6283
|
}
|