orb-billing 4.72.3 → 4.73.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 +16 -0
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +18 -0
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +7492 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/beta/beta.js +67 -0
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +40 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/beta/external-plan-id.d.ts +7218 -0
- package/resources/beta/external-plan-id.d.ts.map +1 -0
- package/resources/beta/external-plan-id.js +40 -0
- package/resources/beta/external-plan-id.js.map +1 -0
- package/resources/beta/external-plan-id.mjs +36 -0
- package/resources/beta/external-plan-id.mjs.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +9 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +4 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/beta.js +19 -0
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +3 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/credit-notes.d.ts +4 -4
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/customers/balance-transactions.d.ts +0 -7
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +17 -0
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +2 -2
- package/resources/customers/customers.d.ts +16 -7
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +1 -4
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +1 -4
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.js +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +149 -9
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +386 -26
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +23 -0
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +6 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +6 -0
- package/resources/items.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +1 -1
- package/resources/plans/external-plan-id.js +1 -1
- package/resources/plans/external-plan-id.mjs +1 -1
- package/resources/plans/plans.d.ts +1153 -22
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +6180 -123
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +40 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +40 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +14 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/subscription-changes.d.ts +648 -87
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscriptions.d.ts +9509 -2981
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +21 -0
- package/src/resources/alerts.ts +21 -0
- package/src/resources/beta/beta.ts +9106 -0
- package/src/resources/beta/external-plan-id.ts +8748 -0
- package/src/resources/beta/index.ts +14 -0
- package/src/resources/beta.ts +3 -0
- package/src/resources/credit-notes.ts +4 -4
- package/src/resources/customers/balance-transactions.ts +0 -7
- package/src/resources/customers/credits/ledger.ts +21 -0
- package/src/resources/customers/credits/top-ups.ts +2 -2
- package/src/resources/customers/customers.ts +22 -4
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +1 -1
- package/src/resources/index.ts +9 -0
- package/src/resources/invoice-line-items.ts +177 -9
- package/src/resources/invoices.ts +458 -26
- package/src/resources/items.ts +29 -0
- package/src/resources/plans/external-plan-id.ts +1 -1
- package/src/resources/plans/plans.ts +1375 -30
- package/src/resources/prices/index.ts +2 -0
- package/src/resources/prices/prices.ts +7345 -135
- package/src/resources/shared.ts +18 -18
- package/src/resources/subscription-changes.ts +771 -102
- package/src/resources/subscriptions.ts +11209 -3432
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -989,10 +989,15 @@ export namespace Invoice {
|
|
|
989
989
|
amount: string;
|
|
990
990
|
|
|
991
991
|
/**
|
|
992
|
-
* The price IDs that this adjustment applies to.
|
|
992
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
993
993
|
*/
|
|
994
994
|
applies_to_price_ids: Array<string>;
|
|
995
995
|
|
|
996
|
+
/**
|
|
997
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
998
|
+
*/
|
|
999
|
+
filters: Array<MonetaryUsageDiscountAdjustment.Filter>;
|
|
1000
|
+
|
|
996
1001
|
/**
|
|
997
1002
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
998
1003
|
* that apply to only one price.
|
|
@@ -1011,6 +1016,25 @@ export namespace Invoice {
|
|
|
1011
1016
|
usage_discount: number;
|
|
1012
1017
|
}
|
|
1013
1018
|
|
|
1019
|
+
export namespace MonetaryUsageDiscountAdjustment {
|
|
1020
|
+
export interface Filter {
|
|
1021
|
+
/**
|
|
1022
|
+
* The property of the price to filter on.
|
|
1023
|
+
*/
|
|
1024
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Should prices that match the filter be included or excluded.
|
|
1028
|
+
*/
|
|
1029
|
+
operator: 'includes' | 'excludes';
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* The IDs or values that match this filter.
|
|
1033
|
+
*/
|
|
1034
|
+
values: Array<string>;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1014
1038
|
export interface MonetaryAmountDiscountAdjustment {
|
|
1015
1039
|
id: string;
|
|
1016
1040
|
|
|
@@ -1028,10 +1052,15 @@ export namespace Invoice {
|
|
|
1028
1052
|
amount_discount: string;
|
|
1029
1053
|
|
|
1030
1054
|
/**
|
|
1031
|
-
* The price IDs that this adjustment applies to.
|
|
1055
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1032
1056
|
*/
|
|
1033
1057
|
applies_to_price_ids: Array<string>;
|
|
1034
1058
|
|
|
1059
|
+
/**
|
|
1060
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1061
|
+
*/
|
|
1062
|
+
filters: Array<MonetaryAmountDiscountAdjustment.Filter>;
|
|
1063
|
+
|
|
1035
1064
|
/**
|
|
1036
1065
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1037
1066
|
* that apply to only one price.
|
|
@@ -1044,6 +1073,25 @@ export namespace Invoice {
|
|
|
1044
1073
|
reason: string | null;
|
|
1045
1074
|
}
|
|
1046
1075
|
|
|
1076
|
+
export namespace MonetaryAmountDiscountAdjustment {
|
|
1077
|
+
export interface Filter {
|
|
1078
|
+
/**
|
|
1079
|
+
* The property of the price to filter on.
|
|
1080
|
+
*/
|
|
1081
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Should prices that match the filter be included or excluded.
|
|
1085
|
+
*/
|
|
1086
|
+
operator: 'includes' | 'excludes';
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* The IDs or values that match this filter.
|
|
1090
|
+
*/
|
|
1091
|
+
values: Array<string>;
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1047
1095
|
export interface MonetaryPercentageDiscountAdjustment {
|
|
1048
1096
|
id: string;
|
|
1049
1097
|
|
|
@@ -1055,10 +1103,15 @@ export namespace Invoice {
|
|
|
1055
1103
|
amount: string;
|
|
1056
1104
|
|
|
1057
1105
|
/**
|
|
1058
|
-
* The price IDs that this adjustment applies to.
|
|
1106
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1059
1107
|
*/
|
|
1060
1108
|
applies_to_price_ids: Array<string>;
|
|
1061
1109
|
|
|
1110
|
+
/**
|
|
1111
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1112
|
+
*/
|
|
1113
|
+
filters: Array<MonetaryPercentageDiscountAdjustment.Filter>;
|
|
1114
|
+
|
|
1062
1115
|
/**
|
|
1063
1116
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1064
1117
|
* that apply to only one price.
|
|
@@ -1077,6 +1130,25 @@ export namespace Invoice {
|
|
|
1077
1130
|
reason: string | null;
|
|
1078
1131
|
}
|
|
1079
1132
|
|
|
1133
|
+
export namespace MonetaryPercentageDiscountAdjustment {
|
|
1134
|
+
export interface Filter {
|
|
1135
|
+
/**
|
|
1136
|
+
* The property of the price to filter on.
|
|
1137
|
+
*/
|
|
1138
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Should prices that match the filter be included or excluded.
|
|
1142
|
+
*/
|
|
1143
|
+
operator: 'includes' | 'excludes';
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* The IDs or values that match this filter.
|
|
1147
|
+
*/
|
|
1148
|
+
values: Array<string>;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1080
1152
|
export interface MonetaryMinimumAdjustment {
|
|
1081
1153
|
id: string;
|
|
1082
1154
|
|
|
@@ -1088,10 +1160,15 @@ export namespace Invoice {
|
|
|
1088
1160
|
amount: string;
|
|
1089
1161
|
|
|
1090
1162
|
/**
|
|
1091
|
-
* The price IDs that this adjustment applies to.
|
|
1163
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1092
1164
|
*/
|
|
1093
1165
|
applies_to_price_ids: Array<string>;
|
|
1094
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1169
|
+
*/
|
|
1170
|
+
filters: Array<MonetaryMinimumAdjustment.Filter>;
|
|
1171
|
+
|
|
1095
1172
|
/**
|
|
1096
1173
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1097
1174
|
* that apply to only one price.
|
|
@@ -1115,6 +1192,25 @@ export namespace Invoice {
|
|
|
1115
1192
|
reason: string | null;
|
|
1116
1193
|
}
|
|
1117
1194
|
|
|
1195
|
+
export namespace MonetaryMinimumAdjustment {
|
|
1196
|
+
export interface Filter {
|
|
1197
|
+
/**
|
|
1198
|
+
* The property of the price to filter on.
|
|
1199
|
+
*/
|
|
1200
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Should prices that match the filter be included or excluded.
|
|
1204
|
+
*/
|
|
1205
|
+
operator: 'includes' | 'excludes';
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* The IDs or values that match this filter.
|
|
1209
|
+
*/
|
|
1210
|
+
values: Array<string>;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1118
1214
|
export interface MonetaryMaximumAdjustment {
|
|
1119
1215
|
id: string;
|
|
1120
1216
|
|
|
@@ -1126,10 +1222,15 @@ export namespace Invoice {
|
|
|
1126
1222
|
amount: string;
|
|
1127
1223
|
|
|
1128
1224
|
/**
|
|
1129
|
-
* The price IDs that this adjustment applies to.
|
|
1225
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1130
1226
|
*/
|
|
1131
1227
|
applies_to_price_ids: Array<string>;
|
|
1132
1228
|
|
|
1229
|
+
/**
|
|
1230
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1231
|
+
*/
|
|
1232
|
+
filters: Array<MonetaryMaximumAdjustment.Filter>;
|
|
1233
|
+
|
|
1133
1234
|
/**
|
|
1134
1235
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1135
1236
|
* that apply to only one price.
|
|
@@ -1148,38 +1249,105 @@ export namespace Invoice {
|
|
|
1148
1249
|
reason: string | null;
|
|
1149
1250
|
}
|
|
1150
1251
|
|
|
1252
|
+
export namespace MonetaryMaximumAdjustment {
|
|
1253
|
+
export interface Filter {
|
|
1254
|
+
/**
|
|
1255
|
+
* The property of the price to filter on.
|
|
1256
|
+
*/
|
|
1257
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Should prices that match the filter be included or excluded.
|
|
1261
|
+
*/
|
|
1262
|
+
operator: 'includes' | 'excludes';
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* The IDs or values that match this filter.
|
|
1266
|
+
*/
|
|
1267
|
+
values: Array<string>;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1151
1271
|
/**
|
|
1152
1272
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1153
1273
|
*/
|
|
1154
1274
|
export interface Maximum {
|
|
1155
1275
|
/**
|
|
1156
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
1157
|
-
* maximums, this can be a subset of prices.
|
|
1276
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
1277
|
+
* phase maximums, this can be a subset of prices.
|
|
1158
1278
|
*/
|
|
1159
1279
|
applies_to_price_ids: Array<string>;
|
|
1160
1280
|
|
|
1281
|
+
/**
|
|
1282
|
+
* The filters that determine which prices to apply this maximum to.
|
|
1283
|
+
*/
|
|
1284
|
+
filters: Array<Maximum.Filter>;
|
|
1285
|
+
|
|
1161
1286
|
/**
|
|
1162
1287
|
* Maximum amount applied
|
|
1163
1288
|
*/
|
|
1164
1289
|
maximum_amount: string;
|
|
1165
1290
|
}
|
|
1166
1291
|
|
|
1292
|
+
export namespace Maximum {
|
|
1293
|
+
export interface Filter {
|
|
1294
|
+
/**
|
|
1295
|
+
* The property of the price to filter on.
|
|
1296
|
+
*/
|
|
1297
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Should prices that match the filter be included or excluded.
|
|
1301
|
+
*/
|
|
1302
|
+
operator: 'includes' | 'excludes';
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* The IDs or values that match this filter.
|
|
1306
|
+
*/
|
|
1307
|
+
values: Array<string>;
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1167
1311
|
/**
|
|
1168
1312
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1169
1313
|
*/
|
|
1170
1314
|
export interface Minimum {
|
|
1171
1315
|
/**
|
|
1172
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
1173
|
-
* minimums, this can be a subset of prices.
|
|
1316
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
1317
|
+
* phase minimums, this can be a subset of prices.
|
|
1174
1318
|
*/
|
|
1175
1319
|
applies_to_price_ids: Array<string>;
|
|
1176
1320
|
|
|
1321
|
+
/**
|
|
1322
|
+
* The filters that determine which prices to apply this minimum to.
|
|
1323
|
+
*/
|
|
1324
|
+
filters: Array<Minimum.Filter>;
|
|
1325
|
+
|
|
1177
1326
|
/**
|
|
1178
1327
|
* Minimum amount applied
|
|
1179
1328
|
*/
|
|
1180
1329
|
minimum_amount: string;
|
|
1181
1330
|
}
|
|
1182
1331
|
|
|
1332
|
+
export namespace Minimum {
|
|
1333
|
+
export interface Filter {
|
|
1334
|
+
/**
|
|
1335
|
+
* The property of the price to filter on.
|
|
1336
|
+
*/
|
|
1337
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Should prices that match the filter be included or excluded.
|
|
1341
|
+
*/
|
|
1342
|
+
operator: 'includes' | 'excludes';
|
|
1343
|
+
|
|
1344
|
+
/**
|
|
1345
|
+
* The IDs or values that match this filter.
|
|
1346
|
+
*/
|
|
1347
|
+
values: Array<string>;
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1183
1351
|
export interface MatrixSubLineItem {
|
|
1184
1352
|
/**
|
|
1185
1353
|
* The total amount for this sub line item.
|
|
@@ -1297,30 +1465,78 @@ export namespace Invoice {
|
|
|
1297
1465
|
|
|
1298
1466
|
export interface Maximum {
|
|
1299
1467
|
/**
|
|
1300
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
1301
|
-
* maximums, this can be a subset of prices.
|
|
1468
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
1469
|
+
* phase maximums, this can be a subset of prices.
|
|
1302
1470
|
*/
|
|
1303
1471
|
applies_to_price_ids: Array<string>;
|
|
1304
1472
|
|
|
1473
|
+
/**
|
|
1474
|
+
* The filters that determine which prices to apply this maximum to.
|
|
1475
|
+
*/
|
|
1476
|
+
filters: Array<Maximum.Filter>;
|
|
1477
|
+
|
|
1305
1478
|
/**
|
|
1306
1479
|
* Maximum amount applied
|
|
1307
1480
|
*/
|
|
1308
1481
|
maximum_amount: string;
|
|
1309
1482
|
}
|
|
1310
1483
|
|
|
1484
|
+
export namespace Maximum {
|
|
1485
|
+
export interface Filter {
|
|
1486
|
+
/**
|
|
1487
|
+
* The property of the price to filter on.
|
|
1488
|
+
*/
|
|
1489
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Should prices that match the filter be included or excluded.
|
|
1493
|
+
*/
|
|
1494
|
+
operator: 'includes' | 'excludes';
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* The IDs or values that match this filter.
|
|
1498
|
+
*/
|
|
1499
|
+
values: Array<string>;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1311
1503
|
export interface Minimum {
|
|
1312
1504
|
/**
|
|
1313
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
1314
|
-
* minimums, this can be a subset of prices.
|
|
1505
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
1506
|
+
* phase minimums, this can be a subset of prices.
|
|
1315
1507
|
*/
|
|
1316
1508
|
applies_to_price_ids: Array<string>;
|
|
1317
1509
|
|
|
1510
|
+
/**
|
|
1511
|
+
* The filters that determine which prices to apply this minimum to.
|
|
1512
|
+
*/
|
|
1513
|
+
filters: Array<Minimum.Filter>;
|
|
1514
|
+
|
|
1318
1515
|
/**
|
|
1319
1516
|
* Minimum amount applied
|
|
1320
1517
|
*/
|
|
1321
1518
|
minimum_amount: string;
|
|
1322
1519
|
}
|
|
1323
1520
|
|
|
1521
|
+
export namespace Minimum {
|
|
1522
|
+
export interface Filter {
|
|
1523
|
+
/**
|
|
1524
|
+
* The property of the price to filter on.
|
|
1525
|
+
*/
|
|
1526
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1527
|
+
|
|
1528
|
+
/**
|
|
1529
|
+
* Should prices that match the filter be included or excluded.
|
|
1530
|
+
*/
|
|
1531
|
+
operator: 'includes' | 'excludes';
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* The IDs or values that match this filter.
|
|
1535
|
+
*/
|
|
1536
|
+
values: Array<string>;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1324
1540
|
export interface PaymentAttempt {
|
|
1325
1541
|
/**
|
|
1326
1542
|
* The ID of the payment attempt.
|
|
@@ -2212,10 +2428,15 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2212
2428
|
amount: string;
|
|
2213
2429
|
|
|
2214
2430
|
/**
|
|
2215
|
-
* The price IDs that this adjustment applies to.
|
|
2431
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
2216
2432
|
*/
|
|
2217
2433
|
applies_to_price_ids: Array<string>;
|
|
2218
2434
|
|
|
2435
|
+
/**
|
|
2436
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
2437
|
+
*/
|
|
2438
|
+
filters: Array<MonetaryUsageDiscountAdjustment.Filter>;
|
|
2439
|
+
|
|
2219
2440
|
/**
|
|
2220
2441
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2221
2442
|
* that apply to only one price.
|
|
@@ -2234,6 +2455,25 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2234
2455
|
usage_discount: number;
|
|
2235
2456
|
}
|
|
2236
2457
|
|
|
2458
|
+
export namespace MonetaryUsageDiscountAdjustment {
|
|
2459
|
+
export interface Filter {
|
|
2460
|
+
/**
|
|
2461
|
+
* The property of the price to filter on.
|
|
2462
|
+
*/
|
|
2463
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Should prices that match the filter be included or excluded.
|
|
2467
|
+
*/
|
|
2468
|
+
operator: 'includes' | 'excludes';
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* The IDs or values that match this filter.
|
|
2472
|
+
*/
|
|
2473
|
+
values: Array<string>;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2237
2477
|
export interface MonetaryAmountDiscountAdjustment {
|
|
2238
2478
|
id: string;
|
|
2239
2479
|
|
|
@@ -2251,10 +2491,15 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2251
2491
|
amount_discount: string;
|
|
2252
2492
|
|
|
2253
2493
|
/**
|
|
2254
|
-
* The price IDs that this adjustment applies to.
|
|
2494
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
2255
2495
|
*/
|
|
2256
2496
|
applies_to_price_ids: Array<string>;
|
|
2257
2497
|
|
|
2498
|
+
/**
|
|
2499
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
2500
|
+
*/
|
|
2501
|
+
filters: Array<MonetaryAmountDiscountAdjustment.Filter>;
|
|
2502
|
+
|
|
2258
2503
|
/**
|
|
2259
2504
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2260
2505
|
* that apply to only one price.
|
|
@@ -2267,6 +2512,25 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2267
2512
|
reason: string | null;
|
|
2268
2513
|
}
|
|
2269
2514
|
|
|
2515
|
+
export namespace MonetaryAmountDiscountAdjustment {
|
|
2516
|
+
export interface Filter {
|
|
2517
|
+
/**
|
|
2518
|
+
* The property of the price to filter on.
|
|
2519
|
+
*/
|
|
2520
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* Should prices that match the filter be included or excluded.
|
|
2524
|
+
*/
|
|
2525
|
+
operator: 'includes' | 'excludes';
|
|
2526
|
+
|
|
2527
|
+
/**
|
|
2528
|
+
* The IDs or values that match this filter.
|
|
2529
|
+
*/
|
|
2530
|
+
values: Array<string>;
|
|
2531
|
+
}
|
|
2532
|
+
}
|
|
2533
|
+
|
|
2270
2534
|
export interface MonetaryPercentageDiscountAdjustment {
|
|
2271
2535
|
id: string;
|
|
2272
2536
|
|
|
@@ -2278,10 +2542,15 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2278
2542
|
amount: string;
|
|
2279
2543
|
|
|
2280
2544
|
/**
|
|
2281
|
-
* The price IDs that this adjustment applies to.
|
|
2545
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
2282
2546
|
*/
|
|
2283
2547
|
applies_to_price_ids: Array<string>;
|
|
2284
2548
|
|
|
2549
|
+
/**
|
|
2550
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
2551
|
+
*/
|
|
2552
|
+
filters: Array<MonetaryPercentageDiscountAdjustment.Filter>;
|
|
2553
|
+
|
|
2285
2554
|
/**
|
|
2286
2555
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2287
2556
|
* that apply to only one price.
|
|
@@ -2300,6 +2569,25 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2300
2569
|
reason: string | null;
|
|
2301
2570
|
}
|
|
2302
2571
|
|
|
2572
|
+
export namespace MonetaryPercentageDiscountAdjustment {
|
|
2573
|
+
export interface Filter {
|
|
2574
|
+
/**
|
|
2575
|
+
* The property of the price to filter on.
|
|
2576
|
+
*/
|
|
2577
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* Should prices that match the filter be included or excluded.
|
|
2581
|
+
*/
|
|
2582
|
+
operator: 'includes' | 'excludes';
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* The IDs or values that match this filter.
|
|
2586
|
+
*/
|
|
2587
|
+
values: Array<string>;
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2303
2591
|
export interface MonetaryMinimumAdjustment {
|
|
2304
2592
|
id: string;
|
|
2305
2593
|
|
|
@@ -2311,10 +2599,15 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2311
2599
|
amount: string;
|
|
2312
2600
|
|
|
2313
2601
|
/**
|
|
2314
|
-
* The price IDs that this adjustment applies to.
|
|
2602
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
2315
2603
|
*/
|
|
2316
2604
|
applies_to_price_ids: Array<string>;
|
|
2317
2605
|
|
|
2606
|
+
/**
|
|
2607
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
2608
|
+
*/
|
|
2609
|
+
filters: Array<MonetaryMinimumAdjustment.Filter>;
|
|
2610
|
+
|
|
2318
2611
|
/**
|
|
2319
2612
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2320
2613
|
* that apply to only one price.
|
|
@@ -2338,6 +2631,25 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2338
2631
|
reason: string | null;
|
|
2339
2632
|
}
|
|
2340
2633
|
|
|
2634
|
+
export namespace MonetaryMinimumAdjustment {
|
|
2635
|
+
export interface Filter {
|
|
2636
|
+
/**
|
|
2637
|
+
* The property of the price to filter on.
|
|
2638
|
+
*/
|
|
2639
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2640
|
+
|
|
2641
|
+
/**
|
|
2642
|
+
* Should prices that match the filter be included or excluded.
|
|
2643
|
+
*/
|
|
2644
|
+
operator: 'includes' | 'excludes';
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* The IDs or values that match this filter.
|
|
2648
|
+
*/
|
|
2649
|
+
values: Array<string>;
|
|
2650
|
+
}
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2341
2653
|
export interface MonetaryMaximumAdjustment {
|
|
2342
2654
|
id: string;
|
|
2343
2655
|
|
|
@@ -2349,10 +2661,15 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2349
2661
|
amount: string;
|
|
2350
2662
|
|
|
2351
2663
|
/**
|
|
2352
|
-
* The price IDs that this adjustment applies to.
|
|
2664
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
2353
2665
|
*/
|
|
2354
2666
|
applies_to_price_ids: Array<string>;
|
|
2355
2667
|
|
|
2668
|
+
/**
|
|
2669
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
2670
|
+
*/
|
|
2671
|
+
filters: Array<MonetaryMaximumAdjustment.Filter>;
|
|
2672
|
+
|
|
2356
2673
|
/**
|
|
2357
2674
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
2358
2675
|
* that apply to only one price.
|
|
@@ -2371,38 +2688,105 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2371
2688
|
reason: string | null;
|
|
2372
2689
|
}
|
|
2373
2690
|
|
|
2691
|
+
export namespace MonetaryMaximumAdjustment {
|
|
2692
|
+
export interface Filter {
|
|
2693
|
+
/**
|
|
2694
|
+
* The property of the price to filter on.
|
|
2695
|
+
*/
|
|
2696
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* Should prices that match the filter be included or excluded.
|
|
2700
|
+
*/
|
|
2701
|
+
operator: 'includes' | 'excludes';
|
|
2702
|
+
|
|
2703
|
+
/**
|
|
2704
|
+
* The IDs or values that match this filter.
|
|
2705
|
+
*/
|
|
2706
|
+
values: Array<string>;
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2374
2710
|
/**
|
|
2375
2711
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2376
2712
|
*/
|
|
2377
2713
|
export interface Maximum {
|
|
2378
2714
|
/**
|
|
2379
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
2380
|
-
* maximums, this can be a subset of prices.
|
|
2715
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
2716
|
+
* phase maximums, this can be a subset of prices.
|
|
2381
2717
|
*/
|
|
2382
2718
|
applies_to_price_ids: Array<string>;
|
|
2383
2719
|
|
|
2720
|
+
/**
|
|
2721
|
+
* The filters that determine which prices to apply this maximum to.
|
|
2722
|
+
*/
|
|
2723
|
+
filters: Array<Maximum.Filter>;
|
|
2724
|
+
|
|
2384
2725
|
/**
|
|
2385
2726
|
* Maximum amount applied
|
|
2386
2727
|
*/
|
|
2387
2728
|
maximum_amount: string;
|
|
2388
2729
|
}
|
|
2389
2730
|
|
|
2731
|
+
export namespace Maximum {
|
|
2732
|
+
export interface Filter {
|
|
2733
|
+
/**
|
|
2734
|
+
* The property of the price to filter on.
|
|
2735
|
+
*/
|
|
2736
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* Should prices that match the filter be included or excluded.
|
|
2740
|
+
*/
|
|
2741
|
+
operator: 'includes' | 'excludes';
|
|
2742
|
+
|
|
2743
|
+
/**
|
|
2744
|
+
* The IDs or values that match this filter.
|
|
2745
|
+
*/
|
|
2746
|
+
values: Array<string>;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2390
2750
|
/**
|
|
2391
2751
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
2392
2752
|
*/
|
|
2393
2753
|
export interface Minimum {
|
|
2394
2754
|
/**
|
|
2395
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
2396
|
-
* minimums, this can be a subset of prices.
|
|
2755
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
2756
|
+
* phase minimums, this can be a subset of prices.
|
|
2397
2757
|
*/
|
|
2398
2758
|
applies_to_price_ids: Array<string>;
|
|
2399
2759
|
|
|
2760
|
+
/**
|
|
2761
|
+
* The filters that determine which prices to apply this minimum to.
|
|
2762
|
+
*/
|
|
2763
|
+
filters: Array<Minimum.Filter>;
|
|
2764
|
+
|
|
2400
2765
|
/**
|
|
2401
2766
|
* Minimum amount applied
|
|
2402
2767
|
*/
|
|
2403
2768
|
minimum_amount: string;
|
|
2404
2769
|
}
|
|
2405
2770
|
|
|
2771
|
+
export namespace Minimum {
|
|
2772
|
+
export interface Filter {
|
|
2773
|
+
/**
|
|
2774
|
+
* The property of the price to filter on.
|
|
2775
|
+
*/
|
|
2776
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2777
|
+
|
|
2778
|
+
/**
|
|
2779
|
+
* Should prices that match the filter be included or excluded.
|
|
2780
|
+
*/
|
|
2781
|
+
operator: 'includes' | 'excludes';
|
|
2782
|
+
|
|
2783
|
+
/**
|
|
2784
|
+
* The IDs or values that match this filter.
|
|
2785
|
+
*/
|
|
2786
|
+
values: Array<string>;
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2406
2790
|
export interface MatrixSubLineItem {
|
|
2407
2791
|
/**
|
|
2408
2792
|
* The total amount for this sub line item.
|
|
@@ -2520,30 +2904,78 @@ export namespace InvoiceFetchUpcomingResponse {
|
|
|
2520
2904
|
|
|
2521
2905
|
export interface Maximum {
|
|
2522
2906
|
/**
|
|
2523
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
2524
|
-
* maximums, this can be a subset of prices.
|
|
2907
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
2908
|
+
* phase maximums, this can be a subset of prices.
|
|
2525
2909
|
*/
|
|
2526
2910
|
applies_to_price_ids: Array<string>;
|
|
2527
2911
|
|
|
2912
|
+
/**
|
|
2913
|
+
* The filters that determine which prices to apply this maximum to.
|
|
2914
|
+
*/
|
|
2915
|
+
filters: Array<Maximum.Filter>;
|
|
2916
|
+
|
|
2528
2917
|
/**
|
|
2529
2918
|
* Maximum amount applied
|
|
2530
2919
|
*/
|
|
2531
2920
|
maximum_amount: string;
|
|
2532
2921
|
}
|
|
2533
2922
|
|
|
2923
|
+
export namespace Maximum {
|
|
2924
|
+
export interface Filter {
|
|
2925
|
+
/**
|
|
2926
|
+
* The property of the price to filter on.
|
|
2927
|
+
*/
|
|
2928
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* Should prices that match the filter be included or excluded.
|
|
2932
|
+
*/
|
|
2933
|
+
operator: 'includes' | 'excludes';
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* The IDs or values that match this filter.
|
|
2937
|
+
*/
|
|
2938
|
+
values: Array<string>;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2534
2942
|
export interface Minimum {
|
|
2535
2943
|
/**
|
|
2536
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
2537
|
-
* minimums, this can be a subset of prices.
|
|
2944
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
2945
|
+
* phase minimums, this can be a subset of prices.
|
|
2538
2946
|
*/
|
|
2539
2947
|
applies_to_price_ids: Array<string>;
|
|
2540
2948
|
|
|
2949
|
+
/**
|
|
2950
|
+
* The filters that determine which prices to apply this minimum to.
|
|
2951
|
+
*/
|
|
2952
|
+
filters: Array<Minimum.Filter>;
|
|
2953
|
+
|
|
2541
2954
|
/**
|
|
2542
2955
|
* Minimum amount applied
|
|
2543
2956
|
*/
|
|
2544
2957
|
minimum_amount: string;
|
|
2545
2958
|
}
|
|
2546
2959
|
|
|
2960
|
+
export namespace Minimum {
|
|
2961
|
+
export interface Filter {
|
|
2962
|
+
/**
|
|
2963
|
+
* The property of the price to filter on.
|
|
2964
|
+
*/
|
|
2965
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2966
|
+
|
|
2967
|
+
/**
|
|
2968
|
+
* Should prices that match the filter be included or excluded.
|
|
2969
|
+
*/
|
|
2970
|
+
operator: 'includes' | 'excludes';
|
|
2971
|
+
|
|
2972
|
+
/**
|
|
2973
|
+
* The IDs or values that match this filter.
|
|
2974
|
+
*/
|
|
2975
|
+
values: Array<string>;
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
|
|
2547
2979
|
export interface PaymentAttempt {
|
|
2548
2980
|
/**
|
|
2549
2981
|
* The ID of the payment attempt.
|