@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
|
@@ -452,6 +452,8 @@ export namespace ContractRetrieveResponse {
|
|
|
452
452
|
timestamp: string;
|
|
453
453
|
|
|
454
454
|
type: 'PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
455
|
+
|
|
456
|
+
contract_id?: string;
|
|
455
457
|
}
|
|
456
458
|
|
|
457
459
|
export interface PrepaidCommitRolloverLedgerEntry {
|
|
@@ -486,6 +488,8 @@ export namespace ContractRetrieveResponse {
|
|
|
486
488
|
timestamp: string;
|
|
487
489
|
|
|
488
490
|
type: 'PREPAID_COMMIT_CANCELED';
|
|
491
|
+
|
|
492
|
+
contract_id?: string;
|
|
489
493
|
}
|
|
490
494
|
|
|
491
495
|
export interface PrepaidCommitCreditedLedgerEntry {
|
|
@@ -498,6 +502,8 @@ export namespace ContractRetrieveResponse {
|
|
|
498
502
|
timestamp: string;
|
|
499
503
|
|
|
500
504
|
type: 'PREPAID_COMMIT_CREDITED';
|
|
505
|
+
|
|
506
|
+
contract_id?: string;
|
|
501
507
|
}
|
|
502
508
|
|
|
503
509
|
export interface PrepaidCommitSeatBasedAdjustmentLedgerEntry {
|
|
@@ -528,6 +534,8 @@ export namespace ContractRetrieveResponse {
|
|
|
528
534
|
timestamp: string;
|
|
529
535
|
|
|
530
536
|
type: 'POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
537
|
+
|
|
538
|
+
contract_id?: string;
|
|
531
539
|
}
|
|
532
540
|
|
|
533
541
|
export interface PostpaidCommitRolloverLedgerEntry {
|
|
@@ -550,6 +558,8 @@ export namespace ContractRetrieveResponse {
|
|
|
550
558
|
timestamp: string;
|
|
551
559
|
|
|
552
560
|
type: 'POSTPAID_COMMIT_TRUEUP';
|
|
561
|
+
|
|
562
|
+
contract_id?: string;
|
|
553
563
|
}
|
|
554
564
|
|
|
555
565
|
export interface PrepaidCommitManualLedgerEntry {
|
|
@@ -873,6 +883,8 @@ export namespace ContractRetrieveResponse {
|
|
|
873
883
|
timestamp: string;
|
|
874
884
|
|
|
875
885
|
type: 'CREDIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
886
|
+
|
|
887
|
+
contract_id?: string;
|
|
876
888
|
}
|
|
877
889
|
|
|
878
890
|
export interface CreditExpirationLedgerEntry {
|
|
@@ -895,6 +907,8 @@ export namespace ContractRetrieveResponse {
|
|
|
895
907
|
timestamp: string;
|
|
896
908
|
|
|
897
909
|
type: 'CREDIT_CANCELED';
|
|
910
|
+
|
|
911
|
+
contract_id?: string;
|
|
898
912
|
}
|
|
899
913
|
|
|
900
914
|
export interface CreditCreditedLedgerEntry {
|
|
@@ -907,6 +921,8 @@ export namespace ContractRetrieveResponse {
|
|
|
907
921
|
timestamp: string;
|
|
908
922
|
|
|
909
923
|
type: 'CREDIT_CREDITED';
|
|
924
|
+
|
|
925
|
+
contract_id?: string;
|
|
910
926
|
}
|
|
911
927
|
|
|
912
928
|
export interface CreditManualLedgerEntry {
|
|
@@ -951,6 +967,11 @@ export namespace ContractRetrieveResponse {
|
|
|
951
967
|
* This field's availability is dependent on your client's configuration.
|
|
952
968
|
*/
|
|
953
969
|
export interface CustomerBillingProviderConfiguration {
|
|
970
|
+
/**
|
|
971
|
+
* ID of Customer's billing provider configuration.
|
|
972
|
+
*/
|
|
973
|
+
id: string;
|
|
974
|
+
|
|
954
975
|
billing_provider:
|
|
955
976
|
| 'aws_marketplace'
|
|
956
977
|
| 'stripe'
|
|
@@ -1082,6 +1103,8 @@ export namespace ContractRetrieveResponse {
|
|
|
1082
1103
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
1083
1104
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
1084
1105
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
1106
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
1107
|
+
* body of `specifiers`.
|
|
1085
1108
|
*/
|
|
1086
1109
|
specifiers?: Array<Commit.Specifier>;
|
|
1087
1110
|
}
|
|
@@ -1221,7 +1244,7 @@ export namespace ContractRetrieveResponse {
|
|
|
1221
1244
|
ending_before?: string;
|
|
1222
1245
|
|
|
1223
1246
|
/**
|
|
1224
|
-
* Optional configuration for recurring
|
|
1247
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1225
1248
|
*/
|
|
1226
1249
|
hierarchy_configuration?: RecurringCommit.HierarchyConfiguration;
|
|
1227
1250
|
|
|
@@ -1268,6 +1291,11 @@ export namespace ContractRetrieveResponse {
|
|
|
1268
1291
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
1269
1292
|
*/
|
|
1270
1293
|
specifiers?: Array<RecurringCommit.Specifier>;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1297
|
+
*/
|
|
1298
|
+
subscription_config?: RecurringCommit.SubscriptionConfig;
|
|
1271
1299
|
}
|
|
1272
1300
|
|
|
1273
1301
|
export namespace RecurringCommit {
|
|
@@ -1302,7 +1330,7 @@ export namespace ContractRetrieveResponse {
|
|
|
1302
1330
|
}
|
|
1303
1331
|
|
|
1304
1332
|
/**
|
|
1305
|
-
* Optional configuration for recurring
|
|
1333
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1306
1334
|
*/
|
|
1307
1335
|
export interface HierarchyConfiguration {
|
|
1308
1336
|
child_access:
|
|
@@ -1354,6 +1382,26 @@ export namespace ContractRetrieveResponse {
|
|
|
1354
1382
|
*/
|
|
1355
1383
|
product_tags?: Array<string>;
|
|
1356
1384
|
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1388
|
+
*/
|
|
1389
|
+
export interface SubscriptionConfig {
|
|
1390
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
1391
|
+
|
|
1392
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
1393
|
+
|
|
1394
|
+
subscription_id: string;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
export namespace SubscriptionConfig {
|
|
1398
|
+
export interface ApplySeatIncreaseConfig {
|
|
1399
|
+
/**
|
|
1400
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
1401
|
+
*/
|
|
1402
|
+
is_prorated: boolean;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1357
1405
|
}
|
|
1358
1406
|
|
|
1359
1407
|
export interface RecurringCredit {
|
|
@@ -1409,7 +1457,7 @@ export namespace ContractRetrieveResponse {
|
|
|
1409
1457
|
ending_before?: string;
|
|
1410
1458
|
|
|
1411
1459
|
/**
|
|
1412
|
-
* Optional configuration for recurring
|
|
1460
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1413
1461
|
*/
|
|
1414
1462
|
hierarchy_configuration?: RecurringCredit.HierarchyConfiguration;
|
|
1415
1463
|
|
|
@@ -1451,6 +1499,11 @@ export namespace ContractRetrieveResponse {
|
|
|
1451
1499
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
1452
1500
|
*/
|
|
1453
1501
|
specifiers?: Array<RecurringCredit.Specifier>;
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1505
|
+
*/
|
|
1506
|
+
subscription_config?: RecurringCredit.SubscriptionConfig;
|
|
1454
1507
|
}
|
|
1455
1508
|
|
|
1456
1509
|
export namespace RecurringCredit {
|
|
@@ -1485,7 +1538,7 @@ export namespace ContractRetrieveResponse {
|
|
|
1485
1538
|
}
|
|
1486
1539
|
|
|
1487
1540
|
/**
|
|
1488
|
-
* Optional configuration for recurring
|
|
1541
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
1489
1542
|
*/
|
|
1490
1543
|
export interface HierarchyConfiguration {
|
|
1491
1544
|
child_access:
|
|
@@ -1526,6 +1579,26 @@ export namespace ContractRetrieveResponse {
|
|
|
1526
1579
|
*/
|
|
1527
1580
|
product_tags?: Array<string>;
|
|
1528
1581
|
}
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* Attach a subscription to the recurring commit/credit.
|
|
1585
|
+
*/
|
|
1586
|
+
export interface SubscriptionConfig {
|
|
1587
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
1588
|
+
|
|
1589
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
1590
|
+
|
|
1591
|
+
subscription_id: string;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
export namespace SubscriptionConfig {
|
|
1595
|
+
export interface ApplySeatIncreaseConfig {
|
|
1596
|
+
/**
|
|
1597
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
1598
|
+
*/
|
|
1599
|
+
is_prorated: boolean;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1529
1602
|
}
|
|
1530
1603
|
|
|
1531
1604
|
export interface ResellerRoyalty {
|
|
@@ -2024,6 +2097,8 @@ export namespace ContractListResponse {
|
|
|
2024
2097
|
timestamp: string;
|
|
2025
2098
|
|
|
2026
2099
|
type: 'PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
2100
|
+
|
|
2101
|
+
contract_id?: string;
|
|
2027
2102
|
}
|
|
2028
2103
|
|
|
2029
2104
|
export interface PrepaidCommitRolloverLedgerEntry {
|
|
@@ -2058,6 +2133,8 @@ export namespace ContractListResponse {
|
|
|
2058
2133
|
timestamp: string;
|
|
2059
2134
|
|
|
2060
2135
|
type: 'PREPAID_COMMIT_CANCELED';
|
|
2136
|
+
|
|
2137
|
+
contract_id?: string;
|
|
2061
2138
|
}
|
|
2062
2139
|
|
|
2063
2140
|
export interface PrepaidCommitCreditedLedgerEntry {
|
|
@@ -2070,6 +2147,8 @@ export namespace ContractListResponse {
|
|
|
2070
2147
|
timestamp: string;
|
|
2071
2148
|
|
|
2072
2149
|
type: 'PREPAID_COMMIT_CREDITED';
|
|
2150
|
+
|
|
2151
|
+
contract_id?: string;
|
|
2073
2152
|
}
|
|
2074
2153
|
|
|
2075
2154
|
export interface PrepaidCommitSeatBasedAdjustmentLedgerEntry {
|
|
@@ -2100,6 +2179,8 @@ export namespace ContractListResponse {
|
|
|
2100
2179
|
timestamp: string;
|
|
2101
2180
|
|
|
2102
2181
|
type: 'POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
2182
|
+
|
|
2183
|
+
contract_id?: string;
|
|
2103
2184
|
}
|
|
2104
2185
|
|
|
2105
2186
|
export interface PostpaidCommitRolloverLedgerEntry {
|
|
@@ -2122,6 +2203,8 @@ export namespace ContractListResponse {
|
|
|
2122
2203
|
timestamp: string;
|
|
2123
2204
|
|
|
2124
2205
|
type: 'POSTPAID_COMMIT_TRUEUP';
|
|
2206
|
+
|
|
2207
|
+
contract_id?: string;
|
|
2125
2208
|
}
|
|
2126
2209
|
|
|
2127
2210
|
export interface PrepaidCommitManualLedgerEntry {
|
|
@@ -2445,6 +2528,8 @@ export namespace ContractListResponse {
|
|
|
2445
2528
|
timestamp: string;
|
|
2446
2529
|
|
|
2447
2530
|
type: 'CREDIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
2531
|
+
|
|
2532
|
+
contract_id?: string;
|
|
2448
2533
|
}
|
|
2449
2534
|
|
|
2450
2535
|
export interface CreditExpirationLedgerEntry {
|
|
@@ -2467,6 +2552,8 @@ export namespace ContractListResponse {
|
|
|
2467
2552
|
timestamp: string;
|
|
2468
2553
|
|
|
2469
2554
|
type: 'CREDIT_CANCELED';
|
|
2555
|
+
|
|
2556
|
+
contract_id?: string;
|
|
2470
2557
|
}
|
|
2471
2558
|
|
|
2472
2559
|
export interface CreditCreditedLedgerEntry {
|
|
@@ -2479,6 +2566,8 @@ export namespace ContractListResponse {
|
|
|
2479
2566
|
timestamp: string;
|
|
2480
2567
|
|
|
2481
2568
|
type: 'CREDIT_CREDITED';
|
|
2569
|
+
|
|
2570
|
+
contract_id?: string;
|
|
2482
2571
|
}
|
|
2483
2572
|
|
|
2484
2573
|
export interface CreditManualLedgerEntry {
|
|
@@ -2523,6 +2612,11 @@ export namespace ContractListResponse {
|
|
|
2523
2612
|
* This field's availability is dependent on your client's configuration.
|
|
2524
2613
|
*/
|
|
2525
2614
|
export interface CustomerBillingProviderConfiguration {
|
|
2615
|
+
/**
|
|
2616
|
+
* ID of Customer's billing provider configuration.
|
|
2617
|
+
*/
|
|
2618
|
+
id: string;
|
|
2619
|
+
|
|
2526
2620
|
billing_provider:
|
|
2527
2621
|
| 'aws_marketplace'
|
|
2528
2622
|
| 'stripe'
|
|
@@ -2654,6 +2748,8 @@ export namespace ContractListResponse {
|
|
|
2654
2748
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
2655
2749
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
2656
2750
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
2751
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
2752
|
+
* body of `specifiers`.
|
|
2657
2753
|
*/
|
|
2658
2754
|
specifiers?: Array<Commit.Specifier>;
|
|
2659
2755
|
}
|
|
@@ -2793,7 +2889,7 @@ export namespace ContractListResponse {
|
|
|
2793
2889
|
ending_before?: string;
|
|
2794
2890
|
|
|
2795
2891
|
/**
|
|
2796
|
-
* Optional configuration for recurring
|
|
2892
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2797
2893
|
*/
|
|
2798
2894
|
hierarchy_configuration?: RecurringCommit.HierarchyConfiguration;
|
|
2799
2895
|
|
|
@@ -2840,6 +2936,11 @@ export namespace ContractListResponse {
|
|
|
2840
2936
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
2841
2937
|
*/
|
|
2842
2938
|
specifiers?: Array<RecurringCommit.Specifier>;
|
|
2939
|
+
|
|
2940
|
+
/**
|
|
2941
|
+
* Attach a subscription to the recurring commit/credit.
|
|
2942
|
+
*/
|
|
2943
|
+
subscription_config?: RecurringCommit.SubscriptionConfig;
|
|
2843
2944
|
}
|
|
2844
2945
|
|
|
2845
2946
|
export namespace RecurringCommit {
|
|
@@ -2874,7 +2975,7 @@ export namespace ContractListResponse {
|
|
|
2874
2975
|
}
|
|
2875
2976
|
|
|
2876
2977
|
/**
|
|
2877
|
-
* Optional configuration for recurring
|
|
2978
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2878
2979
|
*/
|
|
2879
2980
|
export interface HierarchyConfiguration {
|
|
2880
2981
|
child_access:
|
|
@@ -2926,6 +3027,26 @@ export namespace ContractListResponse {
|
|
|
2926
3027
|
*/
|
|
2927
3028
|
product_tags?: Array<string>;
|
|
2928
3029
|
}
|
|
3030
|
+
|
|
3031
|
+
/**
|
|
3032
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3033
|
+
*/
|
|
3034
|
+
export interface SubscriptionConfig {
|
|
3035
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
3036
|
+
|
|
3037
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
3038
|
+
|
|
3039
|
+
subscription_id: string;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
export namespace SubscriptionConfig {
|
|
3043
|
+
export interface ApplySeatIncreaseConfig {
|
|
3044
|
+
/**
|
|
3045
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
3046
|
+
*/
|
|
3047
|
+
is_prorated: boolean;
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
2929
3050
|
}
|
|
2930
3051
|
|
|
2931
3052
|
export interface RecurringCredit {
|
|
@@ -2981,7 +3102,7 @@ export namespace ContractListResponse {
|
|
|
2981
3102
|
ending_before?: string;
|
|
2982
3103
|
|
|
2983
3104
|
/**
|
|
2984
|
-
* Optional configuration for recurring
|
|
3105
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
2985
3106
|
*/
|
|
2986
3107
|
hierarchy_configuration?: RecurringCredit.HierarchyConfiguration;
|
|
2987
3108
|
|
|
@@ -3023,6 +3144,11 @@ export namespace ContractListResponse {
|
|
|
3023
3144
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
3024
3145
|
*/
|
|
3025
3146
|
specifiers?: Array<RecurringCredit.Specifier>;
|
|
3147
|
+
|
|
3148
|
+
/**
|
|
3149
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3150
|
+
*/
|
|
3151
|
+
subscription_config?: RecurringCredit.SubscriptionConfig;
|
|
3026
3152
|
}
|
|
3027
3153
|
|
|
3028
3154
|
export namespace RecurringCredit {
|
|
@@ -3057,7 +3183,7 @@ export namespace ContractListResponse {
|
|
|
3057
3183
|
}
|
|
3058
3184
|
|
|
3059
3185
|
/**
|
|
3060
|
-
* Optional configuration for recurring
|
|
3186
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3061
3187
|
*/
|
|
3062
3188
|
export interface HierarchyConfiguration {
|
|
3063
3189
|
child_access:
|
|
@@ -3098,6 +3224,26 @@ export namespace ContractListResponse {
|
|
|
3098
3224
|
*/
|
|
3099
3225
|
product_tags?: Array<string>;
|
|
3100
3226
|
}
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* Attach a subscription to the recurring commit/credit.
|
|
3230
|
+
*/
|
|
3231
|
+
export interface SubscriptionConfig {
|
|
3232
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
3233
|
+
|
|
3234
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
3235
|
+
|
|
3236
|
+
subscription_id: string;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
export namespace SubscriptionConfig {
|
|
3240
|
+
export interface ApplySeatIncreaseConfig {
|
|
3241
|
+
/**
|
|
3242
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
3243
|
+
*/
|
|
3244
|
+
is_prorated: boolean;
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3101
3247
|
}
|
|
3102
3248
|
|
|
3103
3249
|
export interface ResellerRoyalty {
|
|
@@ -3406,6 +3552,11 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3406
3552
|
|
|
3407
3553
|
description?: string;
|
|
3408
3554
|
|
|
3555
|
+
/**
|
|
3556
|
+
* Optional configuration for commit hierarchy access control
|
|
3557
|
+
*/
|
|
3558
|
+
hierarchy_configuration?: AddCommit.HierarchyConfiguration;
|
|
3559
|
+
|
|
3409
3560
|
/**
|
|
3410
3561
|
* The schedule that the customer will be invoiced for this commit.
|
|
3411
3562
|
*/
|
|
@@ -3438,6 +3589,8 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3438
3589
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
3439
3590
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
3440
3591
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
3592
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
3593
|
+
* body of `specifiers`.
|
|
3441
3594
|
*/
|
|
3442
3595
|
specifiers?: Array<AddCommit.Specifier>;
|
|
3443
3596
|
}
|
|
@@ -3449,6 +3602,32 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3449
3602
|
name: string;
|
|
3450
3603
|
}
|
|
3451
3604
|
|
|
3605
|
+
/**
|
|
3606
|
+
* Optional configuration for commit hierarchy access control
|
|
3607
|
+
*/
|
|
3608
|
+
export interface HierarchyConfiguration {
|
|
3609
|
+
child_access:
|
|
3610
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessAll
|
|
3611
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessNone
|
|
3612
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
3613
|
+
}
|
|
3614
|
+
|
|
3615
|
+
export namespace HierarchyConfiguration {
|
|
3616
|
+
export interface CommitHierarchyChildAccessAll {
|
|
3617
|
+
type: 'ALL';
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
export interface CommitHierarchyChildAccessNone {
|
|
3621
|
+
type: 'NONE';
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
export interface CommitHierarchyChildAccessContractIDs {
|
|
3625
|
+
contract_ids: Array<string>;
|
|
3626
|
+
|
|
3627
|
+
type: 'CONTRACT_IDS';
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3452
3631
|
export interface Specifier {
|
|
3453
3632
|
presentation_group_values?: { [key: string]: string };
|
|
3454
3633
|
|
|
@@ -3485,6 +3664,11 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3485
3664
|
|
|
3486
3665
|
description?: string;
|
|
3487
3666
|
|
|
3667
|
+
/**
|
|
3668
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3669
|
+
*/
|
|
3670
|
+
hierarchy_configuration?: AddCredit.HierarchyConfiguration;
|
|
3671
|
+
|
|
3488
3672
|
name?: string;
|
|
3489
3673
|
|
|
3490
3674
|
/**
|
|
@@ -3508,6 +3692,8 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3508
3692
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
3509
3693
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
3510
3694
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
3695
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
3696
|
+
* body of `specifiers`.
|
|
3511
3697
|
*/
|
|
3512
3698
|
specifiers?: Array<AddCredit.Specifier>;
|
|
3513
3699
|
}
|
|
@@ -3519,6 +3705,32 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3519
3705
|
name: string;
|
|
3520
3706
|
}
|
|
3521
3707
|
|
|
3708
|
+
/**
|
|
3709
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3710
|
+
*/
|
|
3711
|
+
export interface HierarchyConfiguration {
|
|
3712
|
+
child_access:
|
|
3713
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessAll
|
|
3714
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessNone
|
|
3715
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
export namespace HierarchyConfiguration {
|
|
3719
|
+
export interface CommitHierarchyChildAccessAll {
|
|
3720
|
+
type: 'ALL';
|
|
3721
|
+
}
|
|
3722
|
+
|
|
3723
|
+
export interface CommitHierarchyChildAccessNone {
|
|
3724
|
+
type: 'NONE';
|
|
3725
|
+
}
|
|
3726
|
+
|
|
3727
|
+
export interface CommitHierarchyChildAccessContractIDs {
|
|
3728
|
+
contract_ids: Array<string>;
|
|
3729
|
+
|
|
3730
|
+
type: 'CONTRACT_IDS';
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3522
3734
|
export interface Specifier {
|
|
3523
3735
|
presentation_group_values?: { [key: string]: string };
|
|
3524
3736
|
|
|
@@ -3698,6 +3910,8 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3698
3910
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
3699
3911
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
3700
3912
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
3913
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
3914
|
+
* body of `specifiers`.
|
|
3701
3915
|
*/
|
|
3702
3916
|
specifiers?: Array<Commit.Specifier>;
|
|
3703
3917
|
}
|
|
@@ -3837,7 +4051,7 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3837
4051
|
ending_before?: string;
|
|
3838
4052
|
|
|
3839
4053
|
/**
|
|
3840
|
-
* Optional configuration for recurring
|
|
4054
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3841
4055
|
*/
|
|
3842
4056
|
hierarchy_configuration?: AddRecurringCommit.HierarchyConfiguration;
|
|
3843
4057
|
|
|
@@ -3884,6 +4098,11 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3884
4098
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
3885
4099
|
*/
|
|
3886
4100
|
specifiers?: Array<AddRecurringCommit.Specifier>;
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* Attach a subscription to the recurring commit/credit.
|
|
4104
|
+
*/
|
|
4105
|
+
subscription_config?: AddRecurringCommit.SubscriptionConfig;
|
|
3887
4106
|
}
|
|
3888
4107
|
|
|
3889
4108
|
export namespace AddRecurringCommit {
|
|
@@ -3918,7 +4137,7 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3918
4137
|
}
|
|
3919
4138
|
|
|
3920
4139
|
/**
|
|
3921
|
-
* Optional configuration for recurring
|
|
4140
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
3922
4141
|
*/
|
|
3923
4142
|
export interface HierarchyConfiguration {
|
|
3924
4143
|
child_access:
|
|
@@ -3970,6 +4189,26 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
3970
4189
|
*/
|
|
3971
4190
|
product_tags?: Array<string>;
|
|
3972
4191
|
}
|
|
4192
|
+
|
|
4193
|
+
/**
|
|
4194
|
+
* Attach a subscription to the recurring commit/credit.
|
|
4195
|
+
*/
|
|
4196
|
+
export interface SubscriptionConfig {
|
|
4197
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
4198
|
+
|
|
4199
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
4200
|
+
|
|
4201
|
+
subscription_id: string;
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
export namespace SubscriptionConfig {
|
|
4205
|
+
export interface ApplySeatIncreaseConfig {
|
|
4206
|
+
/**
|
|
4207
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
4208
|
+
*/
|
|
4209
|
+
is_prorated: boolean;
|
|
4210
|
+
}
|
|
4211
|
+
}
|
|
3973
4212
|
}
|
|
3974
4213
|
|
|
3975
4214
|
export interface AddRecurringCredit {
|
|
@@ -4025,7 +4264,7 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4025
4264
|
ending_before?: string;
|
|
4026
4265
|
|
|
4027
4266
|
/**
|
|
4028
|
-
* Optional configuration for recurring
|
|
4267
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
4029
4268
|
*/
|
|
4030
4269
|
hierarchy_configuration?: AddRecurringCredit.HierarchyConfiguration;
|
|
4031
4270
|
|
|
@@ -4067,6 +4306,11 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4067
4306
|
* specifiers to contribute to a commit's or credit's drawdown.
|
|
4068
4307
|
*/
|
|
4069
4308
|
specifiers?: Array<AddRecurringCredit.Specifier>;
|
|
4309
|
+
|
|
4310
|
+
/**
|
|
4311
|
+
* Attach a subscription to the recurring commit/credit.
|
|
4312
|
+
*/
|
|
4313
|
+
subscription_config?: AddRecurringCredit.SubscriptionConfig;
|
|
4070
4314
|
}
|
|
4071
4315
|
|
|
4072
4316
|
export namespace AddRecurringCredit {
|
|
@@ -4101,7 +4345,7 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4101
4345
|
}
|
|
4102
4346
|
|
|
4103
4347
|
/**
|
|
4104
|
-
* Optional configuration for recurring
|
|
4348
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
4105
4349
|
*/
|
|
4106
4350
|
export interface HierarchyConfiguration {
|
|
4107
4351
|
child_access:
|
|
@@ -4142,6 +4386,26 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4142
4386
|
*/
|
|
4143
4387
|
product_tags?: Array<string>;
|
|
4144
4388
|
}
|
|
4389
|
+
|
|
4390
|
+
/**
|
|
4391
|
+
* Attach a subscription to the recurring commit/credit.
|
|
4392
|
+
*/
|
|
4393
|
+
export interface SubscriptionConfig {
|
|
4394
|
+
allocation: 'INDIVIDUAL' | 'POOLED';
|
|
4395
|
+
|
|
4396
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
4397
|
+
|
|
4398
|
+
subscription_id: string;
|
|
4399
|
+
}
|
|
4400
|
+
|
|
4401
|
+
export namespace SubscriptionConfig {
|
|
4402
|
+
export interface ApplySeatIncreaseConfig {
|
|
4403
|
+
/**
|
|
4404
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
4405
|
+
*/
|
|
4406
|
+
is_prorated: boolean;
|
|
4407
|
+
}
|
|
4408
|
+
}
|
|
4145
4409
|
}
|
|
4146
4410
|
|
|
4147
4411
|
export interface AddResellerRoyalty {
|
|
@@ -4408,12 +4672,23 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4408
4672
|
*/
|
|
4409
4673
|
applicable_product_tags?: Array<string> | null;
|
|
4410
4674
|
|
|
4675
|
+
/**
|
|
4676
|
+
* Optional configuration for commit hierarchy access control
|
|
4677
|
+
*/
|
|
4678
|
+
hierarchy_configuration?: UpdateCommit.HierarchyConfiguration;
|
|
4679
|
+
|
|
4411
4680
|
invoice_schedule?: UpdateCommit.InvoiceSchedule;
|
|
4412
4681
|
|
|
4413
4682
|
name?: string;
|
|
4414
4683
|
|
|
4415
4684
|
netsuite_sales_order_id?: string | null;
|
|
4416
4685
|
|
|
4686
|
+
/**
|
|
4687
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
4688
|
+
* first.
|
|
4689
|
+
*/
|
|
4690
|
+
priority?: number | null;
|
|
4691
|
+
|
|
4417
4692
|
product_id?: string;
|
|
4418
4693
|
|
|
4419
4694
|
rollover_fraction?: number | null;
|
|
@@ -4423,6 +4698,8 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4423
4698
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4424
4699
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4425
4700
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
4701
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
4702
|
+
* body of `specifiers`.
|
|
4426
4703
|
*/
|
|
4427
4704
|
specifiers?: Array<UpdateCommit.Specifier> | null;
|
|
4428
4705
|
}
|
|
@@ -4472,6 +4749,32 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4472
4749
|
}
|
|
4473
4750
|
}
|
|
4474
4751
|
|
|
4752
|
+
/**
|
|
4753
|
+
* Optional configuration for commit hierarchy access control
|
|
4754
|
+
*/
|
|
4755
|
+
export interface HierarchyConfiguration {
|
|
4756
|
+
child_access:
|
|
4757
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessAll
|
|
4758
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessNone
|
|
4759
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
4760
|
+
}
|
|
4761
|
+
|
|
4762
|
+
export namespace HierarchyConfiguration {
|
|
4763
|
+
export interface CommitHierarchyChildAccessAll {
|
|
4764
|
+
type: 'ALL';
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4767
|
+
export interface CommitHierarchyChildAccessNone {
|
|
4768
|
+
type: 'NONE';
|
|
4769
|
+
}
|
|
4770
|
+
|
|
4771
|
+
export interface CommitHierarchyChildAccessContractIDs {
|
|
4772
|
+
contract_ids: Array<string>;
|
|
4773
|
+
|
|
4774
|
+
type: 'CONTRACT_IDS';
|
|
4775
|
+
}
|
|
4776
|
+
}
|
|
4777
|
+
|
|
4475
4778
|
export interface InvoiceSchedule {
|
|
4476
4779
|
add_schedule_items?: Array<InvoiceSchedule.AddScheduleItem>;
|
|
4477
4780
|
|
|
@@ -4531,10 +4834,21 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4531
4834
|
|
|
4532
4835
|
access_schedule?: UpdateCredit.AccessSchedule;
|
|
4533
4836
|
|
|
4837
|
+
/**
|
|
4838
|
+
* Optional configuration for credit hierarchy access control
|
|
4839
|
+
*/
|
|
4840
|
+
hierarchy_configuration?: UpdateCredit.HierarchyConfiguration;
|
|
4841
|
+
|
|
4534
4842
|
name?: string;
|
|
4535
4843
|
|
|
4536
4844
|
netsuite_sales_order_id?: string | null;
|
|
4537
4845
|
|
|
4846
|
+
/**
|
|
4847
|
+
* If multiple credits are applicable, the one with the lower priority will apply
|
|
4848
|
+
* first.
|
|
4849
|
+
*/
|
|
4850
|
+
priority?: number | null;
|
|
4851
|
+
|
|
4538
4852
|
rollover_fraction?: number | null;
|
|
4539
4853
|
}
|
|
4540
4854
|
|
|
@@ -4582,6 +4896,32 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4582
4896
|
starting_at?: string;
|
|
4583
4897
|
}
|
|
4584
4898
|
}
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
* Optional configuration for credit hierarchy access control
|
|
4902
|
+
*/
|
|
4903
|
+
export interface HierarchyConfiguration {
|
|
4904
|
+
child_access:
|
|
4905
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessAll
|
|
4906
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessNone
|
|
4907
|
+
| HierarchyConfiguration.CommitHierarchyChildAccessContractIDs;
|
|
4908
|
+
}
|
|
4909
|
+
|
|
4910
|
+
export namespace HierarchyConfiguration {
|
|
4911
|
+
export interface CommitHierarchyChildAccessAll {
|
|
4912
|
+
type: 'ALL';
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4915
|
+
export interface CommitHierarchyChildAccessNone {
|
|
4916
|
+
type: 'NONE';
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
export interface CommitHierarchyChildAccessContractIDs {
|
|
4920
|
+
contract_ids: Array<string>;
|
|
4921
|
+
|
|
4922
|
+
type: 'CONTRACT_IDS';
|
|
4923
|
+
}
|
|
4924
|
+
}
|
|
4585
4925
|
}
|
|
4586
4926
|
|
|
4587
4927
|
export interface UpdateDiscount {
|
|
@@ -4605,10 +4945,16 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4605
4945
|
*/
|
|
4606
4946
|
export interface Schedule {
|
|
4607
4947
|
/**
|
|
4608
|
-
* Defaults to USD if not passed.
|
|
4948
|
+
* Defaults to USD (cents) if not passed.
|
|
4609
4949
|
*/
|
|
4610
4950
|
credit_type_id?: string;
|
|
4611
4951
|
|
|
4952
|
+
/**
|
|
4953
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
4954
|
+
* schedule will not generate an invoice.
|
|
4955
|
+
*/
|
|
4956
|
+
do_not_invoice?: boolean;
|
|
4957
|
+
|
|
4612
4958
|
/**
|
|
4613
4959
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
4614
4960
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -4759,6 +5105,8 @@ export namespace ContractGetEditHistoryResponse {
|
|
|
4759
5105
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
4760
5106
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
4761
5107
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5108
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5109
|
+
* body of `specifiers`.
|
|
4762
5110
|
*/
|
|
4763
5111
|
specifiers?: Array<Commit.Specifier> | null;
|
|
4764
5112
|
}
|
|
@@ -5312,6 +5660,8 @@ export namespace ContractEditParams {
|
|
|
5312
5660
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
5313
5661
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
5314
5662
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5663
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5664
|
+
* body of `specifiers`.
|
|
5315
5665
|
*/
|
|
5316
5666
|
specifiers?: Array<AddCommit.Specifier>;
|
|
5317
5667
|
|
|
@@ -5384,10 +5734,16 @@ export namespace ContractEditParams {
|
|
|
5384
5734
|
*/
|
|
5385
5735
|
export interface InvoiceSchedule {
|
|
5386
5736
|
/**
|
|
5387
|
-
* Defaults to USD if not passed.
|
|
5737
|
+
* Defaults to USD (cents) if not passed.
|
|
5388
5738
|
*/
|
|
5389
5739
|
credit_type_id?: string;
|
|
5390
5740
|
|
|
5741
|
+
/**
|
|
5742
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
5743
|
+
* schedule will not generate an invoice.
|
|
5744
|
+
*/
|
|
5745
|
+
do_not_invoice?: boolean;
|
|
5746
|
+
|
|
5391
5747
|
/**
|
|
5392
5748
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
5393
5749
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -5535,6 +5891,18 @@ export namespace ContractEditParams {
|
|
|
5535
5891
|
* your payment type.
|
|
5536
5892
|
*/
|
|
5537
5893
|
invoice_metadata?: { [key: string]: string };
|
|
5894
|
+
|
|
5895
|
+
/**
|
|
5896
|
+
* If true, the payment will be made assuming the customer is present (i.e. on
|
|
5897
|
+
* session).
|
|
5898
|
+
*
|
|
5899
|
+
* If false, the payment will be made assuming the customer is not present (i.e.
|
|
5900
|
+
* off session). For cardholders from a country with an e-mandate requirement (e.g.
|
|
5901
|
+
* India), the payment may be declined.
|
|
5902
|
+
*
|
|
5903
|
+
* If left blank, will default to false.
|
|
5904
|
+
*/
|
|
5905
|
+
on_session_payment?: boolean;
|
|
5538
5906
|
}
|
|
5539
5907
|
}
|
|
5540
5908
|
|
|
@@ -5611,6 +5979,8 @@ export namespace ContractEditParams {
|
|
|
5611
5979
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
5612
5980
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
5613
5981
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
5982
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
5983
|
+
* body of `specifiers`.
|
|
5614
5984
|
*/
|
|
5615
5985
|
specifiers?: Array<AddCredit.Specifier>;
|
|
5616
5986
|
}
|
|
@@ -5712,10 +6082,16 @@ export namespace ContractEditParams {
|
|
|
5712
6082
|
*/
|
|
5713
6083
|
export interface Schedule {
|
|
5714
6084
|
/**
|
|
5715
|
-
* Defaults to USD if not passed.
|
|
6085
|
+
* Defaults to USD (cents) if not passed.
|
|
5716
6086
|
*/
|
|
5717
6087
|
credit_type_id?: string;
|
|
5718
6088
|
|
|
6089
|
+
/**
|
|
6090
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
6091
|
+
* schedule will not generate an invoice.
|
|
6092
|
+
*/
|
|
6093
|
+
do_not_invoice?: boolean;
|
|
6094
|
+
|
|
5719
6095
|
/**
|
|
5720
6096
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
5721
6097
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -6035,6 +6411,8 @@ export namespace ContractEditParams {
|
|
|
6035
6411
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
6036
6412
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
6037
6413
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
6414
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
6415
|
+
* body of `specifiers`.
|
|
6038
6416
|
*/
|
|
6039
6417
|
specifiers?: Array<Commit.Specifier>;
|
|
6040
6418
|
}
|
|
@@ -6197,7 +6575,7 @@ export namespace ContractEditParams {
|
|
|
6197
6575
|
ending_before?: string;
|
|
6198
6576
|
|
|
6199
6577
|
/**
|
|
6200
|
-
* Optional configuration for recurring
|
|
6578
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
6201
6579
|
*/
|
|
6202
6580
|
hierarchy_configuration?: AddRecurringCommit.HierarchyConfiguration;
|
|
6203
6581
|
|
|
@@ -6248,9 +6626,16 @@ export namespace ContractEditParams {
|
|
|
6248
6626
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
6249
6627
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
6250
6628
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
6629
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
6630
|
+
* body of `specifiers`.
|
|
6251
6631
|
*/
|
|
6252
6632
|
specifiers?: Array<AddRecurringCommit.Specifier>;
|
|
6253
6633
|
|
|
6634
|
+
/**
|
|
6635
|
+
* Attach a subscription to the recurring commit/credit.
|
|
6636
|
+
*/
|
|
6637
|
+
subscription_config?: AddRecurringCommit.SubscriptionConfig;
|
|
6638
|
+
|
|
6254
6639
|
/**
|
|
6255
6640
|
* A temporary ID that can be used to reference the recurring commit for commit
|
|
6256
6641
|
* specific overrides.
|
|
@@ -6268,8 +6653,8 @@ export namespace ContractEditParams {
|
|
|
6268
6653
|
unit_price: number;
|
|
6269
6654
|
|
|
6270
6655
|
/**
|
|
6271
|
-
* This field is
|
|
6272
|
-
*
|
|
6656
|
+
* This field is required unless a subscription is attached via
|
|
6657
|
+
* `subscription_config`.
|
|
6273
6658
|
*/
|
|
6274
6659
|
quantity?: number;
|
|
6275
6660
|
}
|
|
@@ -6286,7 +6671,7 @@ export namespace ContractEditParams {
|
|
|
6286
6671
|
}
|
|
6287
6672
|
|
|
6288
6673
|
/**
|
|
6289
|
-
* Optional configuration for recurring
|
|
6674
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
6290
6675
|
*/
|
|
6291
6676
|
export interface HierarchyConfiguration {
|
|
6292
6677
|
child_access:
|
|
@@ -6338,6 +6723,32 @@ export namespace ContractEditParams {
|
|
|
6338
6723
|
*/
|
|
6339
6724
|
product_tags?: Array<string>;
|
|
6340
6725
|
}
|
|
6726
|
+
|
|
6727
|
+
/**
|
|
6728
|
+
* Attach a subscription to the recurring commit/credit.
|
|
6729
|
+
*/
|
|
6730
|
+
export interface SubscriptionConfig {
|
|
6731
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
6732
|
+
|
|
6733
|
+
/**
|
|
6734
|
+
* ID of the subscription to configure on the recurring commit/credit.
|
|
6735
|
+
*/
|
|
6736
|
+
subscription_id: string;
|
|
6737
|
+
|
|
6738
|
+
/**
|
|
6739
|
+
* If set to POOLED, allocation added per seat is pooled across the account.
|
|
6740
|
+
*/
|
|
6741
|
+
allocation?: 'POOLED';
|
|
6742
|
+
}
|
|
6743
|
+
|
|
6744
|
+
export namespace SubscriptionConfig {
|
|
6745
|
+
export interface ApplySeatIncreaseConfig {
|
|
6746
|
+
/**
|
|
6747
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
6748
|
+
*/
|
|
6749
|
+
is_prorated: boolean;
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6341
6752
|
}
|
|
6342
6753
|
|
|
6343
6754
|
export interface AddRecurringCredit {
|
|
@@ -6386,7 +6797,7 @@ export namespace ContractEditParams {
|
|
|
6386
6797
|
ending_before?: string;
|
|
6387
6798
|
|
|
6388
6799
|
/**
|
|
6389
|
-
* Optional configuration for recurring
|
|
6800
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
6390
6801
|
*/
|
|
6391
6802
|
hierarchy_configuration?: AddRecurringCredit.HierarchyConfiguration;
|
|
6392
6803
|
|
|
@@ -6432,9 +6843,16 @@ export namespace ContractEditParams {
|
|
|
6432
6843
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
6433
6844
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
6434
6845
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
6846
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
6847
|
+
* body of `specifiers`.
|
|
6435
6848
|
*/
|
|
6436
6849
|
specifiers?: Array<AddRecurringCredit.Specifier>;
|
|
6437
6850
|
|
|
6851
|
+
/**
|
|
6852
|
+
* Attach a subscription to the recurring commit/credit.
|
|
6853
|
+
*/
|
|
6854
|
+
subscription_config?: AddRecurringCredit.SubscriptionConfig;
|
|
6855
|
+
|
|
6438
6856
|
/**
|
|
6439
6857
|
* A temporary ID that can be used to reference the recurring commit for commit
|
|
6440
6858
|
* specific overrides.
|
|
@@ -6452,8 +6870,8 @@ export namespace ContractEditParams {
|
|
|
6452
6870
|
unit_price: number;
|
|
6453
6871
|
|
|
6454
6872
|
/**
|
|
6455
|
-
* This field is
|
|
6456
|
-
*
|
|
6873
|
+
* This field is required unless a subscription is attached via
|
|
6874
|
+
* `subscription_config`.
|
|
6457
6875
|
*/
|
|
6458
6876
|
quantity?: number;
|
|
6459
6877
|
}
|
|
@@ -6470,7 +6888,7 @@ export namespace ContractEditParams {
|
|
|
6470
6888
|
}
|
|
6471
6889
|
|
|
6472
6890
|
/**
|
|
6473
|
-
* Optional configuration for recurring
|
|
6891
|
+
* Optional configuration for recurring credit hierarchy access control
|
|
6474
6892
|
*/
|
|
6475
6893
|
export interface HierarchyConfiguration {
|
|
6476
6894
|
child_access:
|
|
@@ -6511,6 +6929,32 @@ export namespace ContractEditParams {
|
|
|
6511
6929
|
*/
|
|
6512
6930
|
product_tags?: Array<string>;
|
|
6513
6931
|
}
|
|
6932
|
+
|
|
6933
|
+
/**
|
|
6934
|
+
* Attach a subscription to the recurring commit/credit.
|
|
6935
|
+
*/
|
|
6936
|
+
export interface SubscriptionConfig {
|
|
6937
|
+
apply_seat_increase_config: SubscriptionConfig.ApplySeatIncreaseConfig;
|
|
6938
|
+
|
|
6939
|
+
/**
|
|
6940
|
+
* ID of the subscription to configure on the recurring commit/credit.
|
|
6941
|
+
*/
|
|
6942
|
+
subscription_id: string;
|
|
6943
|
+
|
|
6944
|
+
/**
|
|
6945
|
+
* If set to POOLED, allocation added per seat is pooled across the account.
|
|
6946
|
+
*/
|
|
6947
|
+
allocation?: 'POOLED';
|
|
6948
|
+
}
|
|
6949
|
+
|
|
6950
|
+
export namespace SubscriptionConfig {
|
|
6951
|
+
export interface ApplySeatIncreaseConfig {
|
|
6952
|
+
/**
|
|
6953
|
+
* Indicates whether a mid-period seat increase should be prorated.
|
|
6954
|
+
*/
|
|
6955
|
+
is_prorated: boolean;
|
|
6956
|
+
}
|
|
6957
|
+
}
|
|
6514
6958
|
}
|
|
6515
6959
|
|
|
6516
6960
|
export interface AddResellerRoyalty {
|
|
@@ -6568,6 +7012,8 @@ export namespace ContractEditParams {
|
|
|
6568
7012
|
*/
|
|
6569
7013
|
schedule: AddScheduledCharge.Schedule;
|
|
6570
7014
|
|
|
7015
|
+
custom_fields?: { [key: string]: string };
|
|
7016
|
+
|
|
6571
7017
|
/**
|
|
6572
7018
|
* displayed on invoices
|
|
6573
7019
|
*/
|
|
@@ -6585,10 +7031,16 @@ export namespace ContractEditParams {
|
|
|
6585
7031
|
*/
|
|
6586
7032
|
export interface Schedule {
|
|
6587
7033
|
/**
|
|
6588
|
-
* Defaults to USD if not passed.
|
|
7034
|
+
* Defaults to USD (cents) if not passed.
|
|
6589
7035
|
*/
|
|
6590
7036
|
credit_type_id?: string;
|
|
6591
7037
|
|
|
7038
|
+
/**
|
|
7039
|
+
* This field is only applicable to commit invoice schedules. If true, this
|
|
7040
|
+
* schedule will not generate an invoice.
|
|
7041
|
+
*/
|
|
7042
|
+
do_not_invoice?: boolean;
|
|
7043
|
+
|
|
6592
7044
|
/**
|
|
6593
7045
|
* Enter the unit price and quantity for the charge or instead only send the
|
|
6594
7046
|
* amount. If amount is sent, the unit price is assumed to be the amount and
|
|
@@ -6800,15 +7252,22 @@ export namespace ContractEditParams {
|
|
|
6800
7252
|
* start date
|
|
6801
7253
|
*/
|
|
6802
7254
|
starting_at?: string;
|
|
7255
|
+
|
|
7256
|
+
/**
|
|
7257
|
+
* A temporary ID used to reference the subscription in recurring commit/credit
|
|
7258
|
+
* subscription configs created within the same payload.
|
|
7259
|
+
*/
|
|
7260
|
+
temporary_id?: string;
|
|
6803
7261
|
}
|
|
6804
7262
|
|
|
6805
7263
|
export namespace AddSubscription {
|
|
6806
7264
|
export interface Proration {
|
|
6807
7265
|
/**
|
|
6808
|
-
* Indicates how mid-period quantity adjustments are invoiced.
|
|
6809
|
-
*
|
|
6810
|
-
*
|
|
6811
|
-
*
|
|
7266
|
+
* Indicates how mid-period quantity adjustments are invoiced.
|
|
7267
|
+
* **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
|
|
7268
|
+
* quantity increase will be billed immediately on the scheduled date.
|
|
7269
|
+
* **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
|
|
7270
|
+
* in-arrears at the end of the period.
|
|
6812
7271
|
*/
|
|
6813
7272
|
invoice_behavior?: 'BILL_IMMEDIATELY' | 'BILL_ON_NEXT_COLLECTION_DATE';
|
|
6814
7273
|
|
|
@@ -6876,6 +7335,8 @@ export namespace ContractEditParams {
|
|
|
6876
7335
|
|
|
6877
7336
|
netsuite_sales_order_id?: string | null;
|
|
6878
7337
|
|
|
7338
|
+
priority?: number | null;
|
|
7339
|
+
|
|
6879
7340
|
product_id?: string;
|
|
6880
7341
|
|
|
6881
7342
|
rollover_fraction?: number | null;
|
|
@@ -7003,6 +7464,8 @@ export namespace ContractEditParams {
|
|
|
7003
7464
|
|
|
7004
7465
|
netsuite_sales_order_id?: string | null;
|
|
7005
7466
|
|
|
7467
|
+
priority?: number | null;
|
|
7468
|
+
|
|
7006
7469
|
product_id?: string;
|
|
7007
7470
|
}
|
|
7008
7471
|
|
|
@@ -7130,6 +7593,8 @@ export namespace ContractEditParams {
|
|
|
7130
7593
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
7131
7594
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
7132
7595
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
7596
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
7597
|
+
* body of `specifiers`.
|
|
7133
7598
|
*/
|
|
7134
7599
|
specifiers?: Array<Commit.Specifier> | null;
|
|
7135
7600
|
}
|
|
@@ -7468,6 +7933,12 @@ export interface ContractEditCommitParams {
|
|
|
7468
7933
|
|
|
7469
7934
|
invoice_schedule?: ContractEditCommitParams.InvoiceSchedule;
|
|
7470
7935
|
|
|
7936
|
+
/**
|
|
7937
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
7938
|
+
* first.
|
|
7939
|
+
*/
|
|
7940
|
+
priority?: number | null;
|
|
7941
|
+
|
|
7471
7942
|
product_id?: string;
|
|
7472
7943
|
|
|
7473
7944
|
/**
|
|
@@ -7475,6 +7946,8 @@ export interface ContractEditCommitParams {
|
|
|
7475
7946
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
7476
7947
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
7477
7948
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
7949
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
7950
|
+
* body of `specifiers`.
|
|
7478
7951
|
*/
|
|
7479
7952
|
specifiers?: Array<ContractEditCommitParams.Specifier> | null;
|
|
7480
7953
|
}
|
|
@@ -7591,6 +8064,12 @@ export interface ContractEditCreditParams {
|
|
|
7591
8064
|
*/
|
|
7592
8065
|
applicable_product_tags?: Array<string> | null;
|
|
7593
8066
|
|
|
8067
|
+
/**
|
|
8068
|
+
* If multiple commits are applicable, the one with the lower priority will apply
|
|
8069
|
+
* first.
|
|
8070
|
+
*/
|
|
8071
|
+
priority?: number | null;
|
|
8072
|
+
|
|
7594
8073
|
product_id?: string;
|
|
7595
8074
|
|
|
7596
8075
|
/**
|
|
@@ -7598,6 +8077,8 @@ export interface ContractEditCreditParams {
|
|
|
7598
8077
|
* or credit. A customer's usage needs to meet the condition of at least one of the
|
|
7599
8078
|
* specifiers to contribute to a commit's or credit's drawdown. This field cannot
|
|
7600
8079
|
* be used together with `applicable_product_ids` or `applicable_product_tags`.
|
|
8080
|
+
* Instead, to target usage by product or product tag, pass those values in the
|
|
8081
|
+
* body of `specifiers`.
|
|
7601
8082
|
*/
|
|
7602
8083
|
specifiers?: Array<ContractEditCreditParams.Specifier> | null;
|
|
7603
8084
|
}
|