orb-billing 4.74.0 → 5.0.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 +23 -0
- package/index.d.mts +148 -14
- package/index.d.ts +148 -14
- package/index.d.ts.map +1 -1
- package/index.js +0 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -6
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +20 -88
- 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 +9 -7313
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +7 -7074
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/credit-notes.d.ts +9 -163
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +3 -6
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +2 -4
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +5 -32
- 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/costs.d.ts +3 -81
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/credits/credits.d.ts +4 -4
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/index.d.ts +2 -2
- package/resources/customers/credits/index.d.ts.map +1 -1
- package/resources/customers/credits/index.js.map +1 -1
- package/resources/customers/credits/index.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +171 -962
- 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 +29 -121
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +72 -678
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/index.d.ts +1 -1
- package/resources/customers/index.d.ts.map +1 -1
- package/resources/customers/index.js.map +1 -1
- package/resources/customers/index.mjs.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -3
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +6 -395
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +30 -1700
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +3 -6
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +2 -4
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +7 -3801
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +3 -3
- package/resources/prices/external-price-id.d.ts.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 +1 -2
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +346 -9372
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +39 -20
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +38 -18
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +7269 -9
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +11 -0
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +7 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +138 -2158
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscription-changes.js.map +1 -1
- package/resources/subscription-changes.mjs.map +1 -1
- package/resources/subscriptions.d.ts +2639 -27234
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +219 -42
- package/src/resources/alerts.ts +20 -94
- package/src/resources/beta/beta.ts +124 -8892
- package/src/resources/beta/external-plan-id.ts +118 -8593
- package/src/resources/credit-notes.ts +10 -217
- package/src/resources/customers/balance-transactions.ts +5 -36
- package/src/resources/customers/costs.ts +3 -101
- package/src/resources/customers/credits/credits.ts +18 -0
- package/src/resources/customers/credits/index.ts +9 -0
- package/src/resources/customers/credits/ledger.ts +212 -1435
- package/src/resources/customers/credits/top-ups.ts +33 -136
- package/src/resources/customers/customers.ts +162 -1454
- package/src/resources/customers/index.ts +8 -0
- package/src/resources/index.ts +42 -22
- package/src/resources/invoice-line-items.ts +10 -501
- package/src/resources/invoices.ts +60 -2394
- package/src/resources/plans/plans.ts +38 -4588
- package/src/resources/prices/external-price-id.ts +3 -3
- package/src/resources/prices/index.ts +2 -2
- package/src/resources/prices/prices.ts +500 -11810
- package/src/resources/shared.ts +9582 -22
- package/src/resources/subscription-changes.ts +171 -2670
- package/src/resources/subscriptions.ts +3162 -32900
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
3
|
import * as Shared from "./shared.js";
|
|
4
|
-
import * as PricesAPI from "./prices/prices.js";
|
|
5
4
|
export declare class InvoiceLineItems extends APIResource {
|
|
6
5
|
/**
|
|
7
6
|
* This creates a one-off fixed fee invoice line item on an Invoice. This can only
|
|
@@ -24,7 +23,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
24
23
|
* invoice calculations (ie. usage discounts -> amount discounts -> percentage
|
|
25
24
|
* discounts -> minimums -> maximums).
|
|
26
25
|
*/
|
|
27
|
-
adjustments: Array<
|
|
26
|
+
adjustments: Array<Shared.MonetaryUsageDiscountAdjustment | Shared.MonetaryAmountDiscountAdjustment | Shared.MonetaryPercentageDiscountAdjustment | Shared.MonetaryMinimumAdjustment | Shared.MonetaryMaximumAdjustment>;
|
|
28
27
|
/**
|
|
29
28
|
* The final amount for a line item after all adjustments and pre paid credits have
|
|
30
29
|
* been applied.
|
|
@@ -52,7 +51,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
52
51
|
/**
|
|
53
52
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
54
53
|
*/
|
|
55
|
-
maximum:
|
|
54
|
+
maximum: Shared.Maximum | null;
|
|
56
55
|
/**
|
|
57
56
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
58
57
|
*/
|
|
@@ -60,7 +59,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
60
59
|
/**
|
|
61
60
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
62
61
|
*/
|
|
63
|
-
minimum:
|
|
62
|
+
minimum: Shared.Minimum | null;
|
|
64
63
|
/**
|
|
65
64
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
66
65
|
*/
|
|
@@ -85,7 +84,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
85
84
|
* For more on the types of prices, see
|
|
86
85
|
* [the core concepts documentation](/core-concepts#plan-and-price)
|
|
87
86
|
*/
|
|
88
|
-
price:
|
|
87
|
+
price: Shared.Price;
|
|
89
88
|
/**
|
|
90
89
|
* Either the fixed fee quantity or the usage during the service period.
|
|
91
90
|
*/
|
|
@@ -98,7 +97,7 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
98
97
|
* For complex pricing structures, the line item can be broken down further in
|
|
99
98
|
* `sub_line_items`.
|
|
100
99
|
*/
|
|
101
|
-
sub_line_items: Array<
|
|
100
|
+
sub_line_items: Array<Shared.MatrixSubLineItem | Shared.TierSubLineItem | Shared.OtherSubLineItem>;
|
|
102
101
|
/**
|
|
103
102
|
* The line amount before before any adjustments.
|
|
104
103
|
*/
|
|
@@ -107,400 +106,12 @@ export interface InvoiceLineItemCreateResponse {
|
|
|
107
106
|
* An array of tax rates and their incurred tax amounts. Empty if no tax
|
|
108
107
|
* integration is configured.
|
|
109
108
|
*/
|
|
110
|
-
tax_amounts: Array<
|
|
109
|
+
tax_amounts: Array<Shared.TaxAmount>;
|
|
111
110
|
/**
|
|
112
111
|
* A list of customer ids that were used to calculate the usage for this line item.
|
|
113
112
|
*/
|
|
114
113
|
usage_customer_ids: Array<string> | null;
|
|
115
114
|
}
|
|
116
|
-
export declare namespace InvoiceLineItemCreateResponse {
|
|
117
|
-
interface MonetaryUsageDiscountAdjustment {
|
|
118
|
-
id: string;
|
|
119
|
-
adjustment_type: 'usage_discount';
|
|
120
|
-
/**
|
|
121
|
-
* The value applied by an adjustment.
|
|
122
|
-
*/
|
|
123
|
-
amount: string;
|
|
124
|
-
/**
|
|
125
|
-
* @deprecated The price IDs that this adjustment applies to.
|
|
126
|
-
*/
|
|
127
|
-
applies_to_price_ids: Array<string>;
|
|
128
|
-
/**
|
|
129
|
-
* The filters that determine which prices to apply this adjustment to.
|
|
130
|
-
*/
|
|
131
|
-
filters: Array<MonetaryUsageDiscountAdjustment.Filter>;
|
|
132
|
-
/**
|
|
133
|
-
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
134
|
-
* that apply to only one price.
|
|
135
|
-
*/
|
|
136
|
-
is_invoice_level: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* The reason for the adjustment.
|
|
139
|
-
*/
|
|
140
|
-
reason: string | null;
|
|
141
|
-
/**
|
|
142
|
-
* The number of usage units by which to discount the price this adjustment applies
|
|
143
|
-
* to in a given billing period.
|
|
144
|
-
*/
|
|
145
|
-
usage_discount: number;
|
|
146
|
-
}
|
|
147
|
-
namespace MonetaryUsageDiscountAdjustment {
|
|
148
|
-
interface Filter {
|
|
149
|
-
/**
|
|
150
|
-
* The property of the price to filter on.
|
|
151
|
-
*/
|
|
152
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
153
|
-
/**
|
|
154
|
-
* Should prices that match the filter be included or excluded.
|
|
155
|
-
*/
|
|
156
|
-
operator: 'includes' | 'excludes';
|
|
157
|
-
/**
|
|
158
|
-
* The IDs or values that match this filter.
|
|
159
|
-
*/
|
|
160
|
-
values: Array<string>;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
interface MonetaryAmountDiscountAdjustment {
|
|
164
|
-
id: string;
|
|
165
|
-
adjustment_type: 'amount_discount';
|
|
166
|
-
/**
|
|
167
|
-
* The value applied by an adjustment.
|
|
168
|
-
*/
|
|
169
|
-
amount: string;
|
|
170
|
-
/**
|
|
171
|
-
* The amount by which to discount the prices this adjustment applies to in a given
|
|
172
|
-
* billing period.
|
|
173
|
-
*/
|
|
174
|
-
amount_discount: string;
|
|
175
|
-
/**
|
|
176
|
-
* @deprecated The price IDs that this adjustment applies to.
|
|
177
|
-
*/
|
|
178
|
-
applies_to_price_ids: Array<string>;
|
|
179
|
-
/**
|
|
180
|
-
* The filters that determine which prices to apply this adjustment to.
|
|
181
|
-
*/
|
|
182
|
-
filters: Array<MonetaryAmountDiscountAdjustment.Filter>;
|
|
183
|
-
/**
|
|
184
|
-
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
185
|
-
* that apply to only one price.
|
|
186
|
-
*/
|
|
187
|
-
is_invoice_level: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* The reason for the adjustment.
|
|
190
|
-
*/
|
|
191
|
-
reason: string | null;
|
|
192
|
-
}
|
|
193
|
-
namespace MonetaryAmountDiscountAdjustment {
|
|
194
|
-
interface Filter {
|
|
195
|
-
/**
|
|
196
|
-
* The property of the price to filter on.
|
|
197
|
-
*/
|
|
198
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
199
|
-
/**
|
|
200
|
-
* Should prices that match the filter be included or excluded.
|
|
201
|
-
*/
|
|
202
|
-
operator: 'includes' | 'excludes';
|
|
203
|
-
/**
|
|
204
|
-
* The IDs or values that match this filter.
|
|
205
|
-
*/
|
|
206
|
-
values: Array<string>;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
interface MonetaryPercentageDiscountAdjustment {
|
|
210
|
-
id: string;
|
|
211
|
-
adjustment_type: 'percentage_discount';
|
|
212
|
-
/**
|
|
213
|
-
* The value applied by an adjustment.
|
|
214
|
-
*/
|
|
215
|
-
amount: string;
|
|
216
|
-
/**
|
|
217
|
-
* @deprecated The price IDs that this adjustment applies to.
|
|
218
|
-
*/
|
|
219
|
-
applies_to_price_ids: Array<string>;
|
|
220
|
-
/**
|
|
221
|
-
* The filters that determine which prices to apply this adjustment to.
|
|
222
|
-
*/
|
|
223
|
-
filters: Array<MonetaryPercentageDiscountAdjustment.Filter>;
|
|
224
|
-
/**
|
|
225
|
-
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
226
|
-
* that apply to only one price.
|
|
227
|
-
*/
|
|
228
|
-
is_invoice_level: boolean;
|
|
229
|
-
/**
|
|
230
|
-
* The percentage (as a value between 0 and 1) by which to discount the price
|
|
231
|
-
* intervals this adjustment applies to in a given billing period.
|
|
232
|
-
*/
|
|
233
|
-
percentage_discount: number;
|
|
234
|
-
/**
|
|
235
|
-
* The reason for the adjustment.
|
|
236
|
-
*/
|
|
237
|
-
reason: string | null;
|
|
238
|
-
}
|
|
239
|
-
namespace MonetaryPercentageDiscountAdjustment {
|
|
240
|
-
interface Filter {
|
|
241
|
-
/**
|
|
242
|
-
* The property of the price to filter on.
|
|
243
|
-
*/
|
|
244
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
245
|
-
/**
|
|
246
|
-
* Should prices that match the filter be included or excluded.
|
|
247
|
-
*/
|
|
248
|
-
operator: 'includes' | 'excludes';
|
|
249
|
-
/**
|
|
250
|
-
* The IDs or values that match this filter.
|
|
251
|
-
*/
|
|
252
|
-
values: Array<string>;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
interface MonetaryMinimumAdjustment {
|
|
256
|
-
id: string;
|
|
257
|
-
adjustment_type: 'minimum';
|
|
258
|
-
/**
|
|
259
|
-
* The value applied by an adjustment.
|
|
260
|
-
*/
|
|
261
|
-
amount: string;
|
|
262
|
-
/**
|
|
263
|
-
* @deprecated The price IDs that this adjustment applies to.
|
|
264
|
-
*/
|
|
265
|
-
applies_to_price_ids: Array<string>;
|
|
266
|
-
/**
|
|
267
|
-
* The filters that determine which prices to apply this adjustment to.
|
|
268
|
-
*/
|
|
269
|
-
filters: Array<MonetaryMinimumAdjustment.Filter>;
|
|
270
|
-
/**
|
|
271
|
-
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
272
|
-
* that apply to only one price.
|
|
273
|
-
*/
|
|
274
|
-
is_invoice_level: boolean;
|
|
275
|
-
/**
|
|
276
|
-
* The item ID that revenue from this minimum will be attributed to.
|
|
277
|
-
*/
|
|
278
|
-
item_id: string;
|
|
279
|
-
/**
|
|
280
|
-
* The minimum amount to charge in a given billing period for the prices this
|
|
281
|
-
* adjustment applies to.
|
|
282
|
-
*/
|
|
283
|
-
minimum_amount: string;
|
|
284
|
-
/**
|
|
285
|
-
* The reason for the adjustment.
|
|
286
|
-
*/
|
|
287
|
-
reason: string | null;
|
|
288
|
-
}
|
|
289
|
-
namespace MonetaryMinimumAdjustment {
|
|
290
|
-
interface Filter {
|
|
291
|
-
/**
|
|
292
|
-
* The property of the price to filter on.
|
|
293
|
-
*/
|
|
294
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
295
|
-
/**
|
|
296
|
-
* Should prices that match the filter be included or excluded.
|
|
297
|
-
*/
|
|
298
|
-
operator: 'includes' | 'excludes';
|
|
299
|
-
/**
|
|
300
|
-
* The IDs or values that match this filter.
|
|
301
|
-
*/
|
|
302
|
-
values: Array<string>;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
interface MonetaryMaximumAdjustment {
|
|
306
|
-
id: string;
|
|
307
|
-
adjustment_type: 'maximum';
|
|
308
|
-
/**
|
|
309
|
-
* The value applied by an adjustment.
|
|
310
|
-
*/
|
|
311
|
-
amount: string;
|
|
312
|
-
/**
|
|
313
|
-
* @deprecated The price IDs that this adjustment applies to.
|
|
314
|
-
*/
|
|
315
|
-
applies_to_price_ids: Array<string>;
|
|
316
|
-
/**
|
|
317
|
-
* The filters that determine which prices to apply this adjustment to.
|
|
318
|
-
*/
|
|
319
|
-
filters: Array<MonetaryMaximumAdjustment.Filter>;
|
|
320
|
-
/**
|
|
321
|
-
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
322
|
-
* that apply to only one price.
|
|
323
|
-
*/
|
|
324
|
-
is_invoice_level: boolean;
|
|
325
|
-
/**
|
|
326
|
-
* The maximum amount to charge in a given billing period for the prices this
|
|
327
|
-
* adjustment applies to.
|
|
328
|
-
*/
|
|
329
|
-
maximum_amount: string;
|
|
330
|
-
/**
|
|
331
|
-
* The reason for the adjustment.
|
|
332
|
-
*/
|
|
333
|
-
reason: string | null;
|
|
334
|
-
}
|
|
335
|
-
namespace MonetaryMaximumAdjustment {
|
|
336
|
-
interface Filter {
|
|
337
|
-
/**
|
|
338
|
-
* The property of the price to filter on.
|
|
339
|
-
*/
|
|
340
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
341
|
-
/**
|
|
342
|
-
* Should prices that match the filter be included or excluded.
|
|
343
|
-
*/
|
|
344
|
-
operator: 'includes' | 'excludes';
|
|
345
|
-
/**
|
|
346
|
-
* The IDs or values that match this filter.
|
|
347
|
-
*/
|
|
348
|
-
values: Array<string>;
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
353
|
-
*/
|
|
354
|
-
interface Maximum {
|
|
355
|
-
/**
|
|
356
|
-
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
357
|
-
* phase maximums, this can be a subset of prices.
|
|
358
|
-
*/
|
|
359
|
-
applies_to_price_ids: Array<string>;
|
|
360
|
-
/**
|
|
361
|
-
* The filters that determine which prices to apply this maximum to.
|
|
362
|
-
*/
|
|
363
|
-
filters: Array<Maximum.Filter>;
|
|
364
|
-
/**
|
|
365
|
-
* Maximum amount applied
|
|
366
|
-
*/
|
|
367
|
-
maximum_amount: string;
|
|
368
|
-
}
|
|
369
|
-
namespace Maximum {
|
|
370
|
-
interface Filter {
|
|
371
|
-
/**
|
|
372
|
-
* The property of the price to filter on.
|
|
373
|
-
*/
|
|
374
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
375
|
-
/**
|
|
376
|
-
* Should prices that match the filter be included or excluded.
|
|
377
|
-
*/
|
|
378
|
-
operator: 'includes' | 'excludes';
|
|
379
|
-
/**
|
|
380
|
-
* The IDs or values that match this filter.
|
|
381
|
-
*/
|
|
382
|
-
values: Array<string>;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
387
|
-
*/
|
|
388
|
-
interface Minimum {
|
|
389
|
-
/**
|
|
390
|
-
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
391
|
-
* phase minimums, this can be a subset of prices.
|
|
392
|
-
*/
|
|
393
|
-
applies_to_price_ids: Array<string>;
|
|
394
|
-
/**
|
|
395
|
-
* The filters that determine which prices to apply this minimum to.
|
|
396
|
-
*/
|
|
397
|
-
filters: Array<Minimum.Filter>;
|
|
398
|
-
/**
|
|
399
|
-
* Minimum amount applied
|
|
400
|
-
*/
|
|
401
|
-
minimum_amount: string;
|
|
402
|
-
}
|
|
403
|
-
namespace Minimum {
|
|
404
|
-
interface Filter {
|
|
405
|
-
/**
|
|
406
|
-
* The property of the price to filter on.
|
|
407
|
-
*/
|
|
408
|
-
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
409
|
-
/**
|
|
410
|
-
* Should prices that match the filter be included or excluded.
|
|
411
|
-
*/
|
|
412
|
-
operator: 'includes' | 'excludes';
|
|
413
|
-
/**
|
|
414
|
-
* The IDs or values that match this filter.
|
|
415
|
-
*/
|
|
416
|
-
values: Array<string>;
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
interface MatrixSubLineItem {
|
|
420
|
-
/**
|
|
421
|
-
* The total amount for this sub line item.
|
|
422
|
-
*/
|
|
423
|
-
amount: string;
|
|
424
|
-
grouping: MatrixSubLineItem.Grouping | null;
|
|
425
|
-
matrix_config: MatrixSubLineItem.MatrixConfig;
|
|
426
|
-
name: string;
|
|
427
|
-
quantity: number;
|
|
428
|
-
type: 'matrix';
|
|
429
|
-
}
|
|
430
|
-
namespace MatrixSubLineItem {
|
|
431
|
-
interface Grouping {
|
|
432
|
-
key: string;
|
|
433
|
-
/**
|
|
434
|
-
* No value indicates the default group
|
|
435
|
-
*/
|
|
436
|
-
value: string | null;
|
|
437
|
-
}
|
|
438
|
-
interface MatrixConfig {
|
|
439
|
-
/**
|
|
440
|
-
* The ordered dimension values for this line item.
|
|
441
|
-
*/
|
|
442
|
-
dimension_values: Array<string | null>;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
interface TierSubLineItem {
|
|
446
|
-
/**
|
|
447
|
-
* The total amount for this sub line item.
|
|
448
|
-
*/
|
|
449
|
-
amount: string;
|
|
450
|
-
grouping: TierSubLineItem.Grouping | null;
|
|
451
|
-
name: string;
|
|
452
|
-
quantity: number;
|
|
453
|
-
tier_config: TierSubLineItem.TierConfig;
|
|
454
|
-
type: 'tier';
|
|
455
|
-
}
|
|
456
|
-
namespace TierSubLineItem {
|
|
457
|
-
interface Grouping {
|
|
458
|
-
key: string;
|
|
459
|
-
/**
|
|
460
|
-
* No value indicates the default group
|
|
461
|
-
*/
|
|
462
|
-
value: string | null;
|
|
463
|
-
}
|
|
464
|
-
interface TierConfig {
|
|
465
|
-
first_unit: number;
|
|
466
|
-
last_unit: number | null;
|
|
467
|
-
unit_amount: string;
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
interface OtherSubLineItem {
|
|
471
|
-
/**
|
|
472
|
-
* The total amount for this sub line item.
|
|
473
|
-
*/
|
|
474
|
-
amount: string;
|
|
475
|
-
grouping: OtherSubLineItem.Grouping | null;
|
|
476
|
-
name: string;
|
|
477
|
-
quantity: number;
|
|
478
|
-
type: "'null'";
|
|
479
|
-
}
|
|
480
|
-
namespace OtherSubLineItem {
|
|
481
|
-
interface Grouping {
|
|
482
|
-
key: string;
|
|
483
|
-
/**
|
|
484
|
-
* No value indicates the default group
|
|
485
|
-
*/
|
|
486
|
-
value: string | null;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
interface TaxAmount {
|
|
490
|
-
/**
|
|
491
|
-
* The amount of additional tax incurred by this tax rate.
|
|
492
|
-
*/
|
|
493
|
-
amount: string;
|
|
494
|
-
/**
|
|
495
|
-
* The human-readable description of the applied tax rate.
|
|
496
|
-
*/
|
|
497
|
-
tax_rate_description: string;
|
|
498
|
-
/**
|
|
499
|
-
* The tax rate percentage, out of 100.
|
|
500
|
-
*/
|
|
501
|
-
tax_rate_percentage: string | null;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
115
|
export interface InvoiceLineItemCreateParams {
|
|
505
116
|
/**
|
|
506
117
|
* The total amount in the invoice's currency to add to the line item.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-line-items.d.ts","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"invoice-line-items.d.ts","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,WAAW,EAAE,KAAK,CACd,MAAM,CAAC,+BAA+B,GACtC,MAAM,CAAC,gCAAgC,GACvC,MAAM,CAAC,oCAAoC,GAC3C,MAAM,CAAC,yBAAyB,GAChC,MAAM,CAAC,yBAAyB,CACnC,CAAC;IAEF;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAElC;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,eAAe,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAEnG;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAErC;;OAEG;IACH,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;
|
|
1
|
+
{"version":3,"file":"invoice-line-items.js","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AAXD,4CAWC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoice-line-items.mjs","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"invoice-line-items.mjs","sourceRoot":"","sources":["../src/resources/invoice-line-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|