orb-billing 1.22.0 → 1.24.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 +21 -0
- package/core.d.ts.map +1 -1
- package/core.js +8 -10
- package/core.js.map +1 -1
- package/core.mjs +8 -10
- package/core.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/index.mjs +4 -0
- package/index.mjs.map +1 -1
- package/package.json +3 -1
- package/resources/coupons/coupons.d.ts +60 -2
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/credit-notes.d.ts +57 -5
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +2 -2
- 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/customers.d.ts +696 -8
- 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/usage.d.ts +74 -58
- package/resources/customers/usage.d.ts.map +1 -1
- package/resources/customers/usage.js +14 -14
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +14 -14
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/events.d.ts +40 -40
- package/resources/events/events.js +40 -40
- package/resources/events/events.mjs +40 -40
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +19 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +2 -2
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +358 -71
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +648 -4
- 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/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js +3 -3
- 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 +56 -83
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +62 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/subscriptions.d.ts +1084 -241
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/_shims/index.d.ts +1 -1
- package/src/_shims/index.mjs +1 -1
- package/src/core.ts +8 -12
- package/src/index.ts +8 -3
- package/src/resources/coupons/coupons.ts +82 -8
- package/src/resources/coupons/subscriptions.ts +7 -7
- package/src/resources/credit-notes.ts +86 -10
- package/src/resources/customers/balance-transactions.ts +23 -7
- package/src/resources/customers/costs.ts +5 -5
- package/src/resources/customers/credits/credits.ts +6 -6
- package/src/resources/customers/credits/ledger.ts +5 -5
- package/src/resources/customers/customers.ts +1153 -21
- package/src/resources/customers/usage.ts +83 -65
- package/src/resources/events/backfills.ts +5 -5
- package/src/resources/events/events.ts +45 -45
- package/src/resources/index.ts +3 -3
- package/src/resources/invoice-line-items.ts +6 -6
- package/src/resources/invoices.ts +604 -97
- package/src/resources/items.ts +5 -5
- package/src/resources/metrics.ts +5 -5
- package/src/resources/plans/external-plan-id.ts +5 -5
- package/src/resources/plans/plans.ts +817 -11
- package/src/resources/prices/external-price-id.ts +3 -3
- package/src/resources/prices/index.ts +1 -1
- package/src/resources/prices/prices.ts +73 -106
- package/src/resources/shared.ts +84 -0
- package/src/resources/subscriptions.ts +1299 -287
- package/src/resources/top-level.ts +3 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.d.ts","sourceRoot":"","sources":["../../src/resources/customers/customers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,KAAK,YAAY,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,sBAAsB,MAAM,sDAAsD,CAAC;AAC/F,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAC;AAClE,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAC;AAClE,OAAO,KAAK,UAAU,MAAM,iDAAiD,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,SAAU,SAAQ,WAAW;IACxC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAmC;IACxD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAmC;IACxD,OAAO,EAAE,UAAU,CAAC,OAAO,CAAuC;IAClE,mBAAmB,EAAE,sBAAsB,CAAC,mBAAmB,CACD;IAE9D;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;IAI5F;;;;;;OAMG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,oBAAoB,EAC3B,OAAO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O,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;OAMG;IACH,iBAAiB,CAAC,kBAA0B,EAAE,OAA6B;QACzE,OAAO,IAAI,CAAC,GAAG,CAAC,mCAAmC,kBAAkB,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAcD,kBAAkB,CAChB,EAAU,EACV,OAA+D,EAAE,EACjE,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;SAC9C;QACD,OAAO,IAAI,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAED,MAAM,OAAO,aAAc,SAAQ,IAAc;CAAG;AAqpDpD,WAAiB,SAAS;IAEV,uBAAa,GAAG,YAAY,CAAC,aAAa,CAAC;IAK3C,eAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAKvB,eAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;IAKvB,iBAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IAG7B,iCAAuB,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAC7D,6CAAmC,GAAG,UAAU,CAAC,mCAAmC,CAAC;IAGrF,6BAAmB,GAAG,sBAAsB,CAAC,mBAAmB,CAAC;IAGjE,6CAAmC,GAAG,sBAAsB,CAAC,mCAAmC,CAAC;AAGjH,CAAC,EA9BgB,SAAS,KAAT,SAAS,QA8BzB"}
|
|
@@ -7,7 +7,7 @@ export declare class Usage extends APIResource {
|
|
|
7
7
|
* an active subscription.
|
|
8
8
|
*
|
|
9
9
|
* This endpoint will mark _all_ existing events within
|
|
10
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
10
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
11
11
|
* will only use the _new_ events passed in the body of this request as the source
|
|
12
12
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
13
13
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -19,7 +19,7 @@ export declare class Usage extends APIResource {
|
|
|
19
19
|
* - decrease historical usage consumption because of degraded service availability
|
|
20
20
|
* in your systems
|
|
21
21
|
* - account for gaps from your usage reporting mechanism
|
|
22
|
-
* - make point-in-time fixes for specific event records, while
|
|
22
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
23
23
|
* original time of usage and associated metadata. This amendment API is designed
|
|
24
24
|
* with two explicit goals:
|
|
25
25
|
*
|
|
@@ -27,10 +27,10 @@ export declare class Usage extends APIResource {
|
|
|
27
27
|
* original events in the timeframe, though they will be ignored for billing
|
|
28
28
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
29
29
|
* or permanently deletes ingested usage data.
|
|
30
|
-
* 2. Amendments always
|
|
31
|
-
* amendment is fully processed by the system (and the new events for
|
|
30
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
31
|
+
* amendment is fully processed by the system (and the new events for the
|
|
32
32
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
33
|
-
* fails. To maintain this important
|
|
33
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
34
34
|
* ingestion_ on this endpoint.
|
|
35
35
|
*
|
|
36
36
|
* ## Response semantics
|
|
@@ -42,12 +42,12 @@ export declare class Usage extends APIResource {
|
|
|
42
42
|
* also not deprecate existing events in the time period.
|
|
43
43
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
44
44
|
* response.While a successful response from this endpoint indicates that the new
|
|
45
|
-
* events have been ingested,
|
|
45
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
46
46
|
* may be delayed by a few minutes.
|
|
47
47
|
*
|
|
48
48
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
49
49
|
* previews or dashboards); either it will show the existing state (before the
|
|
50
|
-
*
|
|
50
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
51
51
|
*
|
|
52
52
|
* ## Sample request body
|
|
53
53
|
*
|
|
@@ -106,7 +106,7 @@ export declare class Usage extends APIResource {
|
|
|
106
106
|
* an active subscription.
|
|
107
107
|
*
|
|
108
108
|
* This endpoint will mark _all_ existing events within
|
|
109
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
109
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
110
110
|
* will only use the _new_ events passed in the body of this request as the source
|
|
111
111
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
112
112
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -118,7 +118,7 @@ export declare class Usage extends APIResource {
|
|
|
118
118
|
* - decrease historical usage consumption because of degraded service availability
|
|
119
119
|
* in your systems
|
|
120
120
|
* - account for gaps from your usage reporting mechanism
|
|
121
|
-
* - make point-in-time fixes for specific event records, while
|
|
121
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
122
122
|
* original time of usage and associated metadata. This amendment API is designed
|
|
123
123
|
* with two explicit goals:
|
|
124
124
|
*
|
|
@@ -126,10 +126,10 @@ export declare class Usage extends APIResource {
|
|
|
126
126
|
* original events in the timeframe, though they will be ignored for billing
|
|
127
127
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
128
128
|
* or permanently deletes ingested usage data.
|
|
129
|
-
* 2. Amendments always
|
|
130
|
-
* amendment is fully processed by the system (and the new events for
|
|
129
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
130
|
+
* amendment is fully processed by the system (and the new events for the
|
|
131
131
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
132
|
-
* fails. To maintain this important
|
|
132
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
133
133
|
* ingestion_ on this endpoint.
|
|
134
134
|
*
|
|
135
135
|
* ## Response semantics
|
|
@@ -141,12 +141,12 @@ export declare class Usage extends APIResource {
|
|
|
141
141
|
* also not deprecate existing events in the time period.
|
|
142
142
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
143
143
|
* response.While a successful response from this endpoint indicates that the new
|
|
144
|
-
* events have been ingested,
|
|
144
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
145
145
|
* may be delayed by a few minutes.
|
|
146
146
|
*
|
|
147
147
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
148
148
|
* previews or dashboards); either it will show the existing state (before the
|
|
149
|
-
*
|
|
149
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
150
150
|
*
|
|
151
151
|
* ## Sample request body
|
|
152
152
|
*
|
|
@@ -227,20 +227,9 @@ export interface UsageUpdateByExternalIDResponse {
|
|
|
227
227
|
}
|
|
228
228
|
export interface UsageUpdateParams {
|
|
229
229
|
/**
|
|
230
|
-
* Body param:
|
|
230
|
+
* Body param: Events to update
|
|
231
231
|
*/
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Body param: A dictionary of custom properties. Values in this dictionary must be
|
|
235
|
-
* numeric, boolean, or strings. Nested dictionaries are disallowed.
|
|
236
|
-
*/
|
|
237
|
-
properties: unknown;
|
|
238
|
-
/**
|
|
239
|
-
* Body param: An ISO 8601 format date with no timezone offset (i.e. UTC). This
|
|
240
|
-
* should represent the time that usage was recorded, and is particularly important
|
|
241
|
-
* to attribute usage to a given billing period.
|
|
242
|
-
*/
|
|
243
|
-
timestamp: string;
|
|
232
|
+
events: Array<UsageUpdateParams.Event>;
|
|
244
233
|
/**
|
|
245
234
|
* Query param: This bound is exclusive (i.e. events before this timestamp will be
|
|
246
235
|
* updated)
|
|
@@ -251,32 +240,40 @@ export interface UsageUpdateParams {
|
|
|
251
240
|
* inclusive will be updated)
|
|
252
241
|
*/
|
|
253
242
|
timeframe_start?: string;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
243
|
+
}
|
|
244
|
+
export declare namespace UsageUpdateParams {
|
|
245
|
+
interface Event {
|
|
246
|
+
/**
|
|
247
|
+
* A name to meaningfully identify the action or event type.
|
|
248
|
+
*/
|
|
249
|
+
event_name: string;
|
|
250
|
+
/**
|
|
251
|
+
* A dictionary of custom properties. Values in this dictionary must be numeric,
|
|
252
|
+
* boolean, or strings. Nested dictionaries are disallowed.
|
|
253
|
+
*/
|
|
254
|
+
properties: unknown;
|
|
255
|
+
/**
|
|
256
|
+
* An ISO 8601 format date with no timezone offset (i.e. UTC). This should
|
|
257
|
+
* represent the time that usage was recorded, and is particularly important to
|
|
258
|
+
* attribute usage to a given billing period.
|
|
259
|
+
*/
|
|
260
|
+
timestamp: string;
|
|
261
|
+
/**
|
|
262
|
+
* The Orb Customer identifier
|
|
263
|
+
*/
|
|
264
|
+
customer_id?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* An alias for the Orb customer, whose mapping is specified when creating the
|
|
267
|
+
* customer
|
|
268
|
+
*/
|
|
269
|
+
external_customer_id?: string | null;
|
|
270
|
+
}
|
|
263
271
|
}
|
|
264
272
|
export interface UsageUpdateByExternalIDParams {
|
|
265
273
|
/**
|
|
266
|
-
* Body param:
|
|
274
|
+
* Body param: Events to update
|
|
267
275
|
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Body param: A dictionary of custom properties. Values in this dictionary must be
|
|
271
|
-
* numeric, boolean, or strings. Nested dictionaries are disallowed.
|
|
272
|
-
*/
|
|
273
|
-
properties: unknown;
|
|
274
|
-
/**
|
|
275
|
-
* Body param: An ISO 8601 format date with no timezone offset (i.e. UTC). This
|
|
276
|
-
* should represent the time that usage was recorded, and is particularly important
|
|
277
|
-
* to attribute usage to a given billing period.
|
|
278
|
-
*/
|
|
279
|
-
timestamp: string;
|
|
276
|
+
events: Array<UsageUpdateByExternalIDParams.Event>;
|
|
280
277
|
/**
|
|
281
278
|
* Query param: This bound is exclusive (i.e. events before this timestamp will be
|
|
282
279
|
* updated)
|
|
@@ -287,15 +284,34 @@ export interface UsageUpdateByExternalIDParams {
|
|
|
287
284
|
* inclusive will be updated)
|
|
288
285
|
*/
|
|
289
286
|
timeframe_start?: string;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
287
|
+
}
|
|
288
|
+
export declare namespace UsageUpdateByExternalIDParams {
|
|
289
|
+
interface Event {
|
|
290
|
+
/**
|
|
291
|
+
* A name to meaningfully identify the action or event type.
|
|
292
|
+
*/
|
|
293
|
+
event_name: string;
|
|
294
|
+
/**
|
|
295
|
+
* A dictionary of custom properties. Values in this dictionary must be numeric,
|
|
296
|
+
* boolean, or strings. Nested dictionaries are disallowed.
|
|
297
|
+
*/
|
|
298
|
+
properties: unknown;
|
|
299
|
+
/**
|
|
300
|
+
* An ISO 8601 format date with no timezone offset (i.e. UTC). This should
|
|
301
|
+
* represent the time that usage was recorded, and is particularly important to
|
|
302
|
+
* attribute usage to a given billing period.
|
|
303
|
+
*/
|
|
304
|
+
timestamp: string;
|
|
305
|
+
/**
|
|
306
|
+
* The Orb Customer identifier
|
|
307
|
+
*/
|
|
308
|
+
customer_id?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* An alias for the Orb customer, whose mapping is specified when creating the
|
|
311
|
+
* customer
|
|
312
|
+
*/
|
|
313
|
+
external_customer_id?: string | null;
|
|
314
|
+
}
|
|
299
315
|
}
|
|
300
316
|
export declare namespace Usage {
|
|
301
317
|
export import UsageUpdateResponse = UsageAPI.UsageUpdateResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/customers/usage.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,KAAK,QA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AEnB;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;;WAIG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;WAGG;QACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;IAEnD;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;;WAGG;QACH,UAAU,EAAE,OAAO,CAAC;QAEpB;;;;WAIG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;WAGG;QACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACtC;CACF;AAED,yBAAiB,KAAK,CAAC;IACrB,MAAM,QAAQ,mBAAmB,GAAG,QAAQ,CAAC,mBAAmB,CAAC;IACjE,MAAM,QAAQ,+BAA+B,GAAG,QAAQ,CAAC,+BAA+B,CAAC;IACzF,MAAM,QAAQ,iBAAiB,GAAG,QAAQ,CAAC,iBAAiB,CAAC;IAC7D,MAAM,QAAQ,6BAA6B,GAAG,QAAQ,CAAC,6BAA6B,CAAC;CACtF"}
|
|
@@ -9,7 +9,7 @@ class Usage extends resource_1.APIResource {
|
|
|
9
9
|
* an active subscription.
|
|
10
10
|
*
|
|
11
11
|
* This endpoint will mark _all_ existing events within
|
|
12
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
12
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
13
13
|
* will only use the _new_ events passed in the body of this request as the source
|
|
14
14
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
15
15
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -21,7 +21,7 @@ class Usage extends resource_1.APIResource {
|
|
|
21
21
|
* - decrease historical usage consumption because of degraded service availability
|
|
22
22
|
* in your systems
|
|
23
23
|
* - account for gaps from your usage reporting mechanism
|
|
24
|
-
* - make point-in-time fixes for specific event records, while
|
|
24
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
25
25
|
* original time of usage and associated metadata. This amendment API is designed
|
|
26
26
|
* with two explicit goals:
|
|
27
27
|
*
|
|
@@ -29,10 +29,10 @@ class Usage extends resource_1.APIResource {
|
|
|
29
29
|
* original events in the timeframe, though they will be ignored for billing
|
|
30
30
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
31
31
|
* or permanently deletes ingested usage data.
|
|
32
|
-
* 2. Amendments always
|
|
33
|
-
* amendment is fully processed by the system (and the new events for
|
|
32
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
33
|
+
* amendment is fully processed by the system (and the new events for the
|
|
34
34
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
35
|
-
* fails. To maintain this important
|
|
35
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
36
36
|
* ingestion_ on this endpoint.
|
|
37
37
|
*
|
|
38
38
|
* ## Response semantics
|
|
@@ -44,12 +44,12 @@ class Usage extends resource_1.APIResource {
|
|
|
44
44
|
* also not deprecate existing events in the time period.
|
|
45
45
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
46
46
|
* response.While a successful response from this endpoint indicates that the new
|
|
47
|
-
* events have been ingested,
|
|
47
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
48
48
|
* may be delayed by a few minutes.
|
|
49
49
|
*
|
|
50
50
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
51
51
|
* previews or dashboards); either it will show the existing state (before the
|
|
52
|
-
*
|
|
52
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
53
53
|
*
|
|
54
54
|
* ## Sample request body
|
|
55
55
|
*
|
|
@@ -115,7 +115,7 @@ class Usage extends resource_1.APIResource {
|
|
|
115
115
|
* an active subscription.
|
|
116
116
|
*
|
|
117
117
|
* This endpoint will mark _all_ existing events within
|
|
118
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
118
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
119
119
|
* will only use the _new_ events passed in the body of this request as the source
|
|
120
120
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
121
121
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -127,7 +127,7 @@ class Usage extends resource_1.APIResource {
|
|
|
127
127
|
* - decrease historical usage consumption because of degraded service availability
|
|
128
128
|
* in your systems
|
|
129
129
|
* - account for gaps from your usage reporting mechanism
|
|
130
|
-
* - make point-in-time fixes for specific event records, while
|
|
130
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
131
131
|
* original time of usage and associated metadata. This amendment API is designed
|
|
132
132
|
* with two explicit goals:
|
|
133
133
|
*
|
|
@@ -135,10 +135,10 @@ class Usage extends resource_1.APIResource {
|
|
|
135
135
|
* original events in the timeframe, though they will be ignored for billing
|
|
136
136
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
137
137
|
* or permanently deletes ingested usage data.
|
|
138
|
-
* 2. Amendments always
|
|
139
|
-
* amendment is fully processed by the system (and the new events for
|
|
138
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
139
|
+
* amendment is fully processed by the system (and the new events for the
|
|
140
140
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
141
|
-
* fails. To maintain this important
|
|
141
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
142
142
|
* ingestion_ on this endpoint.
|
|
143
143
|
*
|
|
144
144
|
* ## Response semantics
|
|
@@ -150,12 +150,12 @@ class Usage extends resource_1.APIResource {
|
|
|
150
150
|
* also not deprecate existing events in the time period.
|
|
151
151
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
152
152
|
* response.While a successful response from this endpoint indicates that the new
|
|
153
|
-
* events have been ingested,
|
|
153
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
154
154
|
* may be delayed by a few minutes.
|
|
155
155
|
*
|
|
156
156
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
157
157
|
* previews or dashboards); either it will show the existing state (before the
|
|
158
|
-
*
|
|
158
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
159
159
|
*
|
|
160
160
|
* ## Sample request body
|
|
161
161
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/customers/usage.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,mDAAmD;AAGnD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,MAAM,CACJ,EAAiB,EACjB,MAAyB,EACzB,OAA6B;QAE7B,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,QAAQ,EAAE;YAC1C,KAAK,EAAE,EAAE,aAAa,EAAE,eAAe,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,kBAAkB,CAChB,EAAiB,EACjB,MAAqC,EACr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ACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9ND,sBA8NC;AAsID,WAAiB,KAAK;AAKtB,CAAC,EALgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAKrB"}
|
|
@@ -6,7 +6,7 @@ export class Usage extends APIResource {
|
|
|
6
6
|
* an active subscription.
|
|
7
7
|
*
|
|
8
8
|
* This endpoint will mark _all_ existing events within
|
|
9
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
9
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
10
10
|
* will only use the _new_ events passed in the body of this request as the source
|
|
11
11
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
12
12
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -18,7 +18,7 @@ export class Usage extends APIResource {
|
|
|
18
18
|
* - decrease historical usage consumption because of degraded service availability
|
|
19
19
|
* in your systems
|
|
20
20
|
* - account for gaps from your usage reporting mechanism
|
|
21
|
-
* - make point-in-time fixes for specific event records, while
|
|
21
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
22
22
|
* original time of usage and associated metadata. This amendment API is designed
|
|
23
23
|
* with two explicit goals:
|
|
24
24
|
*
|
|
@@ -26,10 +26,10 @@ export class Usage extends APIResource {
|
|
|
26
26
|
* original events in the timeframe, though they will be ignored for billing
|
|
27
27
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
28
28
|
* or permanently deletes ingested usage data.
|
|
29
|
-
* 2. Amendments always
|
|
30
|
-
* amendment is fully processed by the system (and the new events for
|
|
29
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
30
|
+
* amendment is fully processed by the system (and the new events for the
|
|
31
31
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
32
|
-
* fails. To maintain this important
|
|
32
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
33
33
|
* ingestion_ on this endpoint.
|
|
34
34
|
*
|
|
35
35
|
* ## Response semantics
|
|
@@ -41,12 +41,12 @@ export class Usage extends APIResource {
|
|
|
41
41
|
* also not deprecate existing events in the time period.
|
|
42
42
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
43
43
|
* response.While a successful response from this endpoint indicates that the new
|
|
44
|
-
* events have been ingested,
|
|
44
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
45
45
|
* may be delayed by a few minutes.
|
|
46
46
|
*
|
|
47
47
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
48
48
|
* previews or dashboards); either it will show the existing state (before the
|
|
49
|
-
*
|
|
49
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
50
50
|
*
|
|
51
51
|
* ## Sample request body
|
|
52
52
|
*
|
|
@@ -112,7 +112,7 @@ export class Usage extends APIResource {
|
|
|
112
112
|
* an active subscription.
|
|
113
113
|
*
|
|
114
114
|
* This endpoint will mark _all_ existing events within
|
|
115
|
-
* `[timeframe_start, timeframe_end)` as _ignored_ for billing
|
|
115
|
+
* `[timeframe_start, timeframe_end)` as _ignored_ for billing purposes, and Orb
|
|
116
116
|
* will only use the _new_ events passed in the body of this request as the source
|
|
117
117
|
* of truth for that timeframe moving forwards. Note that a given time period can
|
|
118
118
|
* be amended any number of times, so events can be overwritten in subsequent calls
|
|
@@ -124,7 +124,7 @@ export class Usage extends APIResource {
|
|
|
124
124
|
* - decrease historical usage consumption because of degraded service availability
|
|
125
125
|
* in your systems
|
|
126
126
|
* - account for gaps from your usage reporting mechanism
|
|
127
|
-
* - make point-in-time fixes for specific event records, while
|
|
127
|
+
* - make point-in-time fixes for specific event records, while retaining the
|
|
128
128
|
* original time of usage and associated metadata. This amendment API is designed
|
|
129
129
|
* with two explicit goals:
|
|
130
130
|
*
|
|
@@ -132,10 +132,10 @@ export class Usage extends APIResource {
|
|
|
132
132
|
* original events in the timeframe, though they will be ignored for billing
|
|
133
133
|
* calculations. For auditing a nd data fidelity purposes, Orb never overwrites
|
|
134
134
|
* or permanently deletes ingested usage data.
|
|
135
|
-
* 2. Amendments always
|
|
136
|
-
* amendment is fully processed by the system (and the new events for
|
|
135
|
+
* 2. Amendments always preserve data **consistency**. In other words, either an
|
|
136
|
+
* amendment is fully processed by the system (and the new events for the
|
|
137
137
|
* timeframe are honored rather than the existing ones) or the amendment request
|
|
138
|
-
* fails. To maintain this important
|
|
138
|
+
* fails. To maintain this important property, Orb prevents _partial event
|
|
139
139
|
* ingestion_ on this endpoint.
|
|
140
140
|
*
|
|
141
141
|
* ## Response semantics
|
|
@@ -147,12 +147,12 @@ export class Usage extends APIResource {
|
|
|
147
147
|
* also not deprecate existing events in the time period.
|
|
148
148
|
* - You can assume that the amendment is successful on receipt of a `2xx`
|
|
149
149
|
* response.While a successful response from this endpoint indicates that the new
|
|
150
|
-
* events have been ingested,
|
|
150
|
+
* events have been ingested, updating usage totals happens asynchronously and
|
|
151
151
|
* may be delayed by a few minutes.
|
|
152
152
|
*
|
|
153
153
|
* As emphasized above, Orb will never show an inconsistent state (e.g. in invoice
|
|
154
154
|
* previews or dashboards); either it will show the existing state (before the
|
|
155
|
-
*
|
|
155
|
+
* amendment) or the new state (with new events in the requested timeframe).
|
|
156
156
|
*
|
|
157
157
|
* ## Sample request body
|
|
158
158
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/customers/usage.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,sBAAsB;AAGlD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,MAAM,CACJ,EAAiB,EACjB,MAAyB,EACzB,OAA6B;QAE7B,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiGG;IACH,kBAAkB,CAChB,EAAiB,EACjB,MAAqC,EACrC,OAA6B;QAE7B,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,KAAK,CAAC,mCAAmC,EAAE,QAAQ,EAAE;YAC/D,KAAK,EAAE,EAAE,aAAa,EAAE,eAAe,EAAE;YACzC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAsID,WAAiB,KAAK;AAKtB,CAAC,EALgB,KAAK,KAAL,KAAK,QAKrB"}
|
|
@@ -105,47 +105,47 @@ export declare class Events extends APIResource {
|
|
|
105
105
|
* Events are the starting point for all usage calculations in the system, and are
|
|
106
106
|
* simple at their core:
|
|
107
107
|
*
|
|
108
|
-
* ```
|
|
108
|
+
* ```ts
|
|
109
109
|
* {
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
110
|
+
* // customer_id and external_customer_id are used to
|
|
111
|
+
* // attribute usage to a given Customer. Exactly one of these
|
|
112
|
+
* // should be specified in a given ingestion event.
|
|
113
|
+
*
|
|
114
|
+
* // `customer_id` is the Orb generated identifier for the Customer,
|
|
115
|
+
* // which is returned from the Create customer API call.
|
|
116
|
+
* customer_id: string,
|
|
117
|
+
*
|
|
118
|
+
* // external_customer_id is an alternate identifier which is associated
|
|
119
|
+
* // with a Customer at creation time. This is treated as an alias for
|
|
120
|
+
* // customer_id, and is usually set to an identifier native to your system.
|
|
121
|
+
* external_customer_id: string,
|
|
122
|
+
*
|
|
123
|
+
* // A string name identifying the event, usually a usage
|
|
124
|
+
* // action. By convention, this should not contain any whitespace.
|
|
125
|
+
* event_name: string,
|
|
126
|
+
*
|
|
127
|
+
* // An ISO 8601 format date with no timezone offset.
|
|
128
|
+
* // This should represent the time that usage occurred
|
|
129
|
+
* // and is important to attribute usage to a given
|
|
130
|
+
* // billing period. See the notes below on determining the timestamp.
|
|
131
|
+
* // e.g. 2020-12-09T16:09:53Z
|
|
132
|
+
* timestamp: string,
|
|
133
|
+
*
|
|
134
|
+
* // A unique value, generated by the client, that is
|
|
135
|
+
* // used to de-duplicate events.
|
|
136
|
+
* // Exactly one event with a given
|
|
137
|
+
* // idempotency key will be ingested, which allows for
|
|
138
|
+
* // safe request retries.
|
|
139
|
+
* idempotency_key: string
|
|
140
|
+
*
|
|
141
|
+
* // Optional custom metadata to attach to the event.
|
|
142
|
+
* // This might include a numeric value used for aggregation,
|
|
143
|
+
* // or a string/boolean value used for filtering.
|
|
144
|
+
* // The schema of this dictionary need not be pre-declared, and
|
|
145
|
+
* // properties can be added at any time.
|
|
146
|
+
* properties: {
|
|
147
|
+
* [key: string]?: string | number | boolean,
|
|
148
|
+
* },
|
|
149
149
|
* }
|
|
150
150
|
* ```
|
|
151
151
|
*
|