@openmeter/client 1.0.0-beta.236 → 1.0.0-beta.238
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/README.md +31 -22
- package/dist/funcs/charges.d.ts +11 -1
- package/dist/funcs/charges.js +45 -1
- package/dist/funcs/customers.d.ts +29 -1
- package/dist/funcs/customers.js +96 -2
- package/dist/funcs/features.js +1 -1
- package/dist/funcs/notifications.d.ts +15 -15
- package/dist/funcs/notifications.js +73 -73
- package/dist/index.d.ts +1 -1
- package/dist/lib/paginate.d.ts +12 -6
- package/dist/lib/paginate.js +23 -9
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/charges.d.ts +16 -3
- package/dist/models/operations/customers.d.ts +26 -6
- package/dist/models/operations/entitlementAccess.d.ts +3 -2
- package/dist/models/operations/events.d.ts +3 -2
- package/dist/models/operations/features.d.ts +1 -1
- package/dist/models/operations/notifications.d.ts +33 -33
- package/dist/models/schemas.d.ts +93856 -42843
- package/dist/models/schemas.js +5228 -911
- package/dist/models/types.d.ts +2626 -378
- package/dist/sdk/charges.d.ts +11 -1
- package/dist/sdk/charges.js +13 -1
- package/dist/sdk/customers.d.ts +15 -1
- package/dist/sdk/customers.js +17 -1
- package/dist/sdk/internal.d.ts +39 -12
- package/dist/sdk/internal.js +60 -23
- package/dist/sdk/notifications.d.ts +7 -7
- package/dist/sdk/notifications.js +13 -13
- package/package.json +2 -2
|
@@ -11,18 +11,18 @@ import * as schemas from '../models/schemas.js';
|
|
|
11
11
|
*
|
|
12
12
|
* GET /openmeter/notification/channels
|
|
13
13
|
*/
|
|
14
|
-
export function
|
|
14
|
+
export function listBillingNotificationChannels(client, req = {}, options) {
|
|
15
15
|
return request(() => {
|
|
16
16
|
if (client._options.validate && req.sort !== undefined) {
|
|
17
|
-
assertValid(schemas.
|
|
17
|
+
assertValid(schemas.listBillingNotificationChannelsQueryParams.shape.sort, req.sort);
|
|
18
18
|
}
|
|
19
19
|
const query = toWire({
|
|
20
20
|
page: req.page,
|
|
21
21
|
sort: encodeSort(req.sort, toSnakeCase),
|
|
22
22
|
filter: req.filter,
|
|
23
|
-
}, schemas.
|
|
23
|
+
}, schemas.listBillingNotificationChannelsQueryParams);
|
|
24
24
|
if (client._options.validate) {
|
|
25
|
-
assertValid(schemas.
|
|
25
|
+
assertValid(schemas.listBillingNotificationChannelsQueryParamsWire, query);
|
|
26
26
|
}
|
|
27
27
|
const searchParams = toURLSearchParams(query);
|
|
28
28
|
return http(client)
|
|
@@ -30,9 +30,9 @@ export function listNotificationChannels(client, req = {}, options) {
|
|
|
30
30
|
.json()
|
|
31
31
|
.then((data) => {
|
|
32
32
|
if (client._options.validate) {
|
|
33
|
-
assertValid(schemas.
|
|
33
|
+
assertValid(schemas.listBillingNotificationChannelsResponseWire, data);
|
|
34
34
|
}
|
|
35
|
-
return fromWire(data, schemas.
|
|
35
|
+
return fromWire(data, schemas.listBillingNotificationChannelsResponse);
|
|
36
36
|
});
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -43,20 +43,20 @@ export function listNotificationChannels(client, req = {}, options) {
|
|
|
43
43
|
*
|
|
44
44
|
* POST /openmeter/notification/channels
|
|
45
45
|
*/
|
|
46
|
-
export function
|
|
46
|
+
export function createBillingNotificationChannel(client, req, options) {
|
|
47
47
|
return request(() => {
|
|
48
|
-
const body = toWire(req, schemas.
|
|
48
|
+
const body = toWire(req, schemas.createBillingNotificationChannelBody);
|
|
49
49
|
if (client._options.validate) {
|
|
50
|
-
assertValid(schemas.
|
|
50
|
+
assertValid(schemas.createBillingNotificationChannelBodyWire, body);
|
|
51
51
|
}
|
|
52
52
|
return http(client)
|
|
53
53
|
.post('openmeter/notification/channels', { ...options, json: body })
|
|
54
54
|
.json()
|
|
55
55
|
.then((data) => {
|
|
56
56
|
if (client._options.validate) {
|
|
57
|
-
assertValid(schemas.
|
|
57
|
+
assertValid(schemas.createBillingNotificationChannelResponseWire, data);
|
|
58
58
|
}
|
|
59
|
-
return fromWire(data, schemas.
|
|
59
|
+
return fromWire(data, schemas.createBillingNotificationChannelResponse);
|
|
60
60
|
});
|
|
61
61
|
});
|
|
62
62
|
}
|
|
@@ -67,16 +67,16 @@ export function createNotificationChannel(client, req, options) {
|
|
|
67
67
|
*
|
|
68
68
|
* GET /openmeter/notification/channels/{notificationChannelId}
|
|
69
69
|
*/
|
|
70
|
-
export function
|
|
70
|
+
export function getBillingNotificationChannel(client, req, options) {
|
|
71
71
|
return request(() => {
|
|
72
72
|
const pathParamsInput = {
|
|
73
73
|
notificationChannelId: req.notificationChannelId,
|
|
74
74
|
};
|
|
75
75
|
const pathParams = client._options.validate
|
|
76
|
-
? toPathWire(pathParamsInput, schemas.
|
|
76
|
+
? toPathWire(pathParamsInput, schemas.getBillingNotificationChannelPathParams)
|
|
77
77
|
: pathParamsInput;
|
|
78
78
|
if (client._options.validate) {
|
|
79
|
-
assertValid(schemas.
|
|
79
|
+
assertValid(schemas.getBillingNotificationChannelPathParamsWire, pathParams);
|
|
80
80
|
}
|
|
81
81
|
const path = `openmeter/notification/channels/${(() => {
|
|
82
82
|
if (pathParams.notificationChannelId === undefined) {
|
|
@@ -89,9 +89,9 @@ export function getNotificationChannel(client, req, options) {
|
|
|
89
89
|
.json()
|
|
90
90
|
.then((data) => {
|
|
91
91
|
if (client._options.validate) {
|
|
92
|
-
assertValid(schemas.
|
|
92
|
+
assertValid(schemas.getBillingNotificationChannelResponseWire, data);
|
|
93
93
|
}
|
|
94
|
-
return fromWire(data, schemas.
|
|
94
|
+
return fromWire(data, schemas.getBillingNotificationChannelResponse);
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
}
|
|
@@ -102,16 +102,16 @@ export function getNotificationChannel(client, req, options) {
|
|
|
102
102
|
*
|
|
103
103
|
* PUT /openmeter/notification/channels/{notificationChannelId}
|
|
104
104
|
*/
|
|
105
|
-
export function
|
|
105
|
+
export function updateBillingNotificationChannel(client, req, options) {
|
|
106
106
|
return request(() => {
|
|
107
107
|
const pathParamsInput = {
|
|
108
108
|
notificationChannelId: req.notificationChannelId,
|
|
109
109
|
};
|
|
110
110
|
const pathParams = client._options.validate
|
|
111
|
-
? toPathWire(pathParamsInput, schemas.
|
|
111
|
+
? toPathWire(pathParamsInput, schemas.updateBillingNotificationChannelPathParams)
|
|
112
112
|
: pathParamsInput;
|
|
113
113
|
if (client._options.validate) {
|
|
114
|
-
assertValid(schemas.
|
|
114
|
+
assertValid(schemas.updateBillingNotificationChannelPathParamsWire, pathParams);
|
|
115
115
|
}
|
|
116
116
|
const path = `openmeter/notification/channels/${(() => {
|
|
117
117
|
if (pathParams.notificationChannelId === undefined) {
|
|
@@ -119,18 +119,18 @@ export function updateNotificationChannel(client, req, options) {
|
|
|
119
119
|
}
|
|
120
120
|
return encodeURIComponent(String(pathParams.notificationChannelId));
|
|
121
121
|
})()}`;
|
|
122
|
-
const body = toWire(req.body, schemas.
|
|
122
|
+
const body = toWire(req.body, schemas.updateBillingNotificationChannelBody);
|
|
123
123
|
if (client._options.validate) {
|
|
124
|
-
assertValid(schemas.
|
|
124
|
+
assertValid(schemas.updateBillingNotificationChannelBodyWire, body);
|
|
125
125
|
}
|
|
126
126
|
return http(client)
|
|
127
127
|
.put(path, { ...options, json: body })
|
|
128
128
|
.json()
|
|
129
129
|
.then((data) => {
|
|
130
130
|
if (client._options.validate) {
|
|
131
|
-
assertValid(schemas.
|
|
131
|
+
assertValid(schemas.updateBillingNotificationChannelResponseWire, data);
|
|
132
132
|
}
|
|
133
|
-
return fromWire(data, schemas.
|
|
133
|
+
return fromWire(data, schemas.updateBillingNotificationChannelResponse);
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -141,16 +141,16 @@ export function updateNotificationChannel(client, req, options) {
|
|
|
141
141
|
*
|
|
142
142
|
* DELETE /openmeter/notification/channels/{notificationChannelId}
|
|
143
143
|
*/
|
|
144
|
-
export function
|
|
144
|
+
export function deleteBillingNotificationChannel(client, req, options) {
|
|
145
145
|
return request(async () => {
|
|
146
146
|
const pathParamsInput = {
|
|
147
147
|
notificationChannelId: req.notificationChannelId,
|
|
148
148
|
};
|
|
149
149
|
const pathParams = client._options.validate
|
|
150
|
-
? toPathWire(pathParamsInput, schemas.
|
|
150
|
+
? toPathWire(pathParamsInput, schemas.deleteBillingNotificationChannelPathParams)
|
|
151
151
|
: pathParamsInput;
|
|
152
152
|
if (client._options.validate) {
|
|
153
|
-
assertValid(schemas.
|
|
153
|
+
assertValid(schemas.deleteBillingNotificationChannelPathParamsWire, pathParams);
|
|
154
154
|
}
|
|
155
155
|
const path = `openmeter/notification/channels/${(() => {
|
|
156
156
|
if (pathParams.notificationChannelId === undefined) {
|
|
@@ -168,18 +168,18 @@ export function deleteNotificationChannel(client, req, options) {
|
|
|
168
168
|
*
|
|
169
169
|
* GET /openmeter/notification/rules
|
|
170
170
|
*/
|
|
171
|
-
export function
|
|
171
|
+
export function listBillingNotificationRules(client, req = {}, options) {
|
|
172
172
|
return request(() => {
|
|
173
173
|
if (client._options.validate && req.sort !== undefined) {
|
|
174
|
-
assertValid(schemas.
|
|
174
|
+
assertValid(schemas.listBillingNotificationRulesQueryParams.shape.sort, req.sort);
|
|
175
175
|
}
|
|
176
176
|
const query = toWire({
|
|
177
177
|
page: req.page,
|
|
178
178
|
sort: encodeSort(req.sort, toSnakeCase),
|
|
179
179
|
filter: req.filter,
|
|
180
|
-
}, schemas.
|
|
180
|
+
}, schemas.listBillingNotificationRulesQueryParams);
|
|
181
181
|
if (client._options.validate) {
|
|
182
|
-
assertValid(schemas.
|
|
182
|
+
assertValid(schemas.listBillingNotificationRulesQueryParamsWire, query);
|
|
183
183
|
}
|
|
184
184
|
const searchParams = toURLSearchParams(query);
|
|
185
185
|
return http(client)
|
|
@@ -187,9 +187,9 @@ export function listNotificationRules(client, req = {}, options) {
|
|
|
187
187
|
.json()
|
|
188
188
|
.then((data) => {
|
|
189
189
|
if (client._options.validate) {
|
|
190
|
-
assertValid(schemas.
|
|
190
|
+
assertValid(schemas.listBillingNotificationRulesResponseWire, data);
|
|
191
191
|
}
|
|
192
|
-
return fromWire(data, schemas.
|
|
192
|
+
return fromWire(data, schemas.listBillingNotificationRulesResponse);
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
}
|
|
@@ -200,20 +200,20 @@ export function listNotificationRules(client, req = {}, options) {
|
|
|
200
200
|
*
|
|
201
201
|
* POST /openmeter/notification/rules
|
|
202
202
|
*/
|
|
203
|
-
export function
|
|
203
|
+
export function createBillingNotificationRule(client, req, options) {
|
|
204
204
|
return request(() => {
|
|
205
|
-
const body = toWire(req, schemas.
|
|
205
|
+
const body = toWire(req, schemas.createBillingNotificationRuleBody);
|
|
206
206
|
if (client._options.validate) {
|
|
207
|
-
assertValid(schemas.
|
|
207
|
+
assertValid(schemas.createBillingNotificationRuleBodyWire, body);
|
|
208
208
|
}
|
|
209
209
|
return http(client)
|
|
210
210
|
.post('openmeter/notification/rules', { ...options, json: body })
|
|
211
211
|
.json()
|
|
212
212
|
.then((data) => {
|
|
213
213
|
if (client._options.validate) {
|
|
214
|
-
assertValid(schemas.
|
|
214
|
+
assertValid(schemas.createBillingNotificationRuleResponseWire, data);
|
|
215
215
|
}
|
|
216
|
-
return fromWire(data, schemas.
|
|
216
|
+
return fromWire(data, schemas.createBillingNotificationRuleResponse);
|
|
217
217
|
});
|
|
218
218
|
});
|
|
219
219
|
}
|
|
@@ -224,16 +224,16 @@ export function createNotificationRule(client, req, options) {
|
|
|
224
224
|
*
|
|
225
225
|
* GET /openmeter/notification/rules/{notificationRuleId}
|
|
226
226
|
*/
|
|
227
|
-
export function
|
|
227
|
+
export function getBillingNotificationRule(client, req, options) {
|
|
228
228
|
return request(() => {
|
|
229
229
|
const pathParamsInput = {
|
|
230
230
|
notificationRuleId: req.notificationRuleId,
|
|
231
231
|
};
|
|
232
232
|
const pathParams = client._options.validate
|
|
233
|
-
? toPathWire(pathParamsInput, schemas.
|
|
233
|
+
? toPathWire(pathParamsInput, schemas.getBillingNotificationRulePathParams)
|
|
234
234
|
: pathParamsInput;
|
|
235
235
|
if (client._options.validate) {
|
|
236
|
-
assertValid(schemas.
|
|
236
|
+
assertValid(schemas.getBillingNotificationRulePathParamsWire, pathParams);
|
|
237
237
|
}
|
|
238
238
|
const path = `openmeter/notification/rules/${(() => {
|
|
239
239
|
if (pathParams.notificationRuleId === undefined) {
|
|
@@ -246,9 +246,9 @@ export function getNotificationRule(client, req, options) {
|
|
|
246
246
|
.json()
|
|
247
247
|
.then((data) => {
|
|
248
248
|
if (client._options.validate) {
|
|
249
|
-
assertValid(schemas.
|
|
249
|
+
assertValid(schemas.getBillingNotificationRuleResponseWire, data);
|
|
250
250
|
}
|
|
251
|
-
return fromWire(data, schemas.
|
|
251
|
+
return fromWire(data, schemas.getBillingNotificationRuleResponse);
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
}
|
|
@@ -259,16 +259,16 @@ export function getNotificationRule(client, req, options) {
|
|
|
259
259
|
*
|
|
260
260
|
* PUT /openmeter/notification/rules/{notificationRuleId}
|
|
261
261
|
*/
|
|
262
|
-
export function
|
|
262
|
+
export function updateBillingNotificationRule(client, req, options) {
|
|
263
263
|
return request(() => {
|
|
264
264
|
const pathParamsInput = {
|
|
265
265
|
notificationRuleId: req.notificationRuleId,
|
|
266
266
|
};
|
|
267
267
|
const pathParams = client._options.validate
|
|
268
|
-
? toPathWire(pathParamsInput, schemas.
|
|
268
|
+
? toPathWire(pathParamsInput, schemas.updateBillingNotificationRulePathParams)
|
|
269
269
|
: pathParamsInput;
|
|
270
270
|
if (client._options.validate) {
|
|
271
|
-
assertValid(schemas.
|
|
271
|
+
assertValid(schemas.updateBillingNotificationRulePathParamsWire, pathParams);
|
|
272
272
|
}
|
|
273
273
|
const path = `openmeter/notification/rules/${(() => {
|
|
274
274
|
if (pathParams.notificationRuleId === undefined) {
|
|
@@ -276,18 +276,18 @@ export function updateNotificationRule(client, req, options) {
|
|
|
276
276
|
}
|
|
277
277
|
return encodeURIComponent(String(pathParams.notificationRuleId));
|
|
278
278
|
})()}`;
|
|
279
|
-
const body = toWire(req.body, schemas.
|
|
279
|
+
const body = toWire(req.body, schemas.updateBillingNotificationRuleBody);
|
|
280
280
|
if (client._options.validate) {
|
|
281
|
-
assertValid(schemas.
|
|
281
|
+
assertValid(schemas.updateBillingNotificationRuleBodyWire, body);
|
|
282
282
|
}
|
|
283
283
|
return http(client)
|
|
284
284
|
.put(path, { ...options, json: body })
|
|
285
285
|
.json()
|
|
286
286
|
.then((data) => {
|
|
287
287
|
if (client._options.validate) {
|
|
288
|
-
assertValid(schemas.
|
|
288
|
+
assertValid(schemas.updateBillingNotificationRuleResponseWire, data);
|
|
289
289
|
}
|
|
290
|
-
return fromWire(data, schemas.
|
|
290
|
+
return fromWire(data, schemas.updateBillingNotificationRuleResponse);
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
}
|
|
@@ -298,16 +298,16 @@ export function updateNotificationRule(client, req, options) {
|
|
|
298
298
|
*
|
|
299
299
|
* DELETE /openmeter/notification/rules/{notificationRuleId}
|
|
300
300
|
*/
|
|
301
|
-
export function
|
|
301
|
+
export function deleteBillingNotificationRule(client, req, options) {
|
|
302
302
|
return request(async () => {
|
|
303
303
|
const pathParamsInput = {
|
|
304
304
|
notificationRuleId: req.notificationRuleId,
|
|
305
305
|
};
|
|
306
306
|
const pathParams = client._options.validate
|
|
307
|
-
? toPathWire(pathParamsInput, schemas.
|
|
307
|
+
? toPathWire(pathParamsInput, schemas.deleteBillingNotificationRulePathParams)
|
|
308
308
|
: pathParamsInput;
|
|
309
309
|
if (client._options.validate) {
|
|
310
|
-
assertValid(schemas.
|
|
310
|
+
assertValid(schemas.deleteBillingNotificationRulePathParamsWire, pathParams);
|
|
311
311
|
}
|
|
312
312
|
const path = `openmeter/notification/rules/${(() => {
|
|
313
313
|
if (pathParams.notificationRuleId === undefined) {
|
|
@@ -327,16 +327,16 @@ export function deleteNotificationRule(client, req, options) {
|
|
|
327
327
|
*
|
|
328
328
|
* POST /openmeter/notification/rules/{notificationRuleId}/test
|
|
329
329
|
*/
|
|
330
|
-
export function
|
|
330
|
+
export function testBillingNotificationRule(client, req, options) {
|
|
331
331
|
return request(() => {
|
|
332
332
|
const pathParamsInput = {
|
|
333
333
|
notificationRuleId: req.notificationRuleId,
|
|
334
334
|
};
|
|
335
335
|
const pathParams = client._options.validate
|
|
336
|
-
? toPathWire(pathParamsInput, schemas.
|
|
336
|
+
? toPathWire(pathParamsInput, schemas.testBillingNotificationRulePathParams)
|
|
337
337
|
: pathParamsInput;
|
|
338
338
|
if (client._options.validate) {
|
|
339
|
-
assertValid(schemas.
|
|
339
|
+
assertValid(schemas.testBillingNotificationRulePathParamsWire, pathParams);
|
|
340
340
|
}
|
|
341
341
|
const path = `openmeter/notification/rules/${(() => {
|
|
342
342
|
if (pathParams.notificationRuleId === undefined) {
|
|
@@ -349,9 +349,9 @@ export function testNotificationRule(client, req, options) {
|
|
|
349
349
|
.json()
|
|
350
350
|
.then((data) => {
|
|
351
351
|
if (client._options.validate) {
|
|
352
|
-
assertValid(schemas.
|
|
352
|
+
assertValid(schemas.testBillingNotificationRuleResponseWire, data);
|
|
353
353
|
}
|
|
354
|
-
return fromWire(data, schemas.
|
|
354
|
+
return fromWire(data, schemas.testBillingNotificationRuleResponse);
|
|
355
355
|
});
|
|
356
356
|
});
|
|
357
357
|
}
|
|
@@ -362,18 +362,18 @@ export function testNotificationRule(client, req, options) {
|
|
|
362
362
|
*
|
|
363
363
|
* GET /openmeter/notification/events
|
|
364
364
|
*/
|
|
365
|
-
export function
|
|
365
|
+
export function listBillingNotificationEvents(client, req = {}, options) {
|
|
366
366
|
return request(() => {
|
|
367
367
|
if (client._options.validate && req.sort !== undefined) {
|
|
368
|
-
assertValid(schemas.
|
|
368
|
+
assertValid(schemas.listBillingNotificationEventsQueryParams.shape.sort, req.sort);
|
|
369
369
|
}
|
|
370
370
|
const query = toWire({
|
|
371
371
|
page: req.page,
|
|
372
372
|
sort: encodeSort(req.sort, toSnakeCase),
|
|
373
373
|
filter: req.filter,
|
|
374
|
-
}, schemas.
|
|
374
|
+
}, schemas.listBillingNotificationEventsQueryParams);
|
|
375
375
|
if (client._options.validate) {
|
|
376
|
-
assertValid(schemas.
|
|
376
|
+
assertValid(schemas.listBillingNotificationEventsQueryParamsWire, query);
|
|
377
377
|
}
|
|
378
378
|
const searchParams = toURLSearchParams(query);
|
|
379
379
|
return http(client)
|
|
@@ -381,9 +381,9 @@ export function listNotificationEvents(client, req = {}, options) {
|
|
|
381
381
|
.json()
|
|
382
382
|
.then((data) => {
|
|
383
383
|
if (client._options.validate) {
|
|
384
|
-
assertValid(schemas.
|
|
384
|
+
assertValid(schemas.listBillingNotificationEventsResponseWire, data);
|
|
385
385
|
}
|
|
386
|
-
return fromWire(data, schemas.
|
|
386
|
+
return fromWire(data, schemas.listBillingNotificationEventsResponse);
|
|
387
387
|
});
|
|
388
388
|
});
|
|
389
389
|
}
|
|
@@ -394,16 +394,16 @@ export function listNotificationEvents(client, req = {}, options) {
|
|
|
394
394
|
*
|
|
395
395
|
* GET /openmeter/notification/events/{notificationEventId}
|
|
396
396
|
*/
|
|
397
|
-
export function
|
|
397
|
+
export function getBillingNotificationEvent(client, req, options) {
|
|
398
398
|
return request(() => {
|
|
399
399
|
const pathParamsInput = {
|
|
400
400
|
notificationEventId: req.notificationEventId,
|
|
401
401
|
};
|
|
402
402
|
const pathParams = client._options.validate
|
|
403
|
-
? toPathWire(pathParamsInput, schemas.
|
|
403
|
+
? toPathWire(pathParamsInput, schemas.getBillingNotificationEventPathParams)
|
|
404
404
|
: pathParamsInput;
|
|
405
405
|
if (client._options.validate) {
|
|
406
|
-
assertValid(schemas.
|
|
406
|
+
assertValid(schemas.getBillingNotificationEventPathParamsWire, pathParams);
|
|
407
407
|
}
|
|
408
408
|
const path = `openmeter/notification/events/${(() => {
|
|
409
409
|
if (pathParams.notificationEventId === undefined) {
|
|
@@ -416,9 +416,9 @@ export function getNotificationEvent(client, req, options) {
|
|
|
416
416
|
.json()
|
|
417
417
|
.then((data) => {
|
|
418
418
|
if (client._options.validate) {
|
|
419
|
-
assertValid(schemas.
|
|
419
|
+
assertValid(schemas.getBillingNotificationEventResponseWire, data);
|
|
420
420
|
}
|
|
421
|
-
return fromWire(data, schemas.
|
|
421
|
+
return fromWire(data, schemas.getBillingNotificationEventResponse);
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -433,16 +433,16 @@ export function getNotificationEvent(client, req, options) {
|
|
|
433
433
|
*
|
|
434
434
|
* POST /openmeter/notification/events/{notificationEventId}/resend
|
|
435
435
|
*/
|
|
436
|
-
export function
|
|
436
|
+
export function resendBillingNotificationEvent(client, req, options) {
|
|
437
437
|
return request(async () => {
|
|
438
438
|
const pathParamsInput = {
|
|
439
439
|
notificationEventId: req.notificationEventId,
|
|
440
440
|
};
|
|
441
441
|
const pathParams = client._options.validate
|
|
442
|
-
? toPathWire(pathParamsInput, schemas.
|
|
442
|
+
? toPathWire(pathParamsInput, schemas.resendBillingNotificationEventPathParams)
|
|
443
443
|
: pathParamsInput;
|
|
444
444
|
if (client._options.validate) {
|
|
445
|
-
assertValid(schemas.
|
|
445
|
+
assertValid(schemas.resendBillingNotificationEventPathParamsWire, pathParams);
|
|
446
446
|
}
|
|
447
447
|
const path = `openmeter/notification/events/${(() => {
|
|
448
448
|
if (pathParams.notificationEventId === undefined) {
|
|
@@ -450,9 +450,9 @@ export function resendNotificationEvent(client, req, options) {
|
|
|
450
450
|
}
|
|
451
451
|
return encodeURIComponent(String(pathParams.notificationEventId));
|
|
452
452
|
})()}/resend`;
|
|
453
|
-
const body = toWire(req.body, schemas.
|
|
453
|
+
const body = toWire(req.body, schemas.resendBillingNotificationEventBody);
|
|
454
454
|
if (client._options.validate) {
|
|
455
|
-
assertValid(schemas.
|
|
455
|
+
assertValid(schemas.resendBillingNotificationEventBodyWire, body);
|
|
456
456
|
}
|
|
457
457
|
await http(client).post(path, { ...options, json: body });
|
|
458
458
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -50,4 +50,4 @@ export type * from './models/operations/planAddons.js';
|
|
|
50
50
|
export type * from './models/operations/defaults.js';
|
|
51
51
|
export type * from './models/operations/entitlementAccess.js';
|
|
52
52
|
export type * from './models/operations/notifications.js';
|
|
53
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, CurrencyCustomReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, NotificationChannelReference, NotificationEventFeatureReference, NotificationEventInvoiceReference, ResendBillingNotificationEventRequest, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ListCreditGrantsParamsFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, UpdateBillingNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, CreditBalance, CreditTransaction, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, NotificationEventInvoiceData, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, NotificationEventDeliveryStatus, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, NotificationEventBalanceThresholdData, NotificationEventEntitlementData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, CreditBalances, CreditTransactionPaginatedResponse, PlanAddonPagePaginatedResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEvent, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventPagePaginatedResponse, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventPayload, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
53
|
+
export type { Labels, ListEventsPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, CursorPaginationQueryPage, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, InvoiceLineExternalReferences, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryPage, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, NotificationEventV1Metadata, NotificationEventV1Annotations, NotificationEventV1Period, NotificationEventV1FilterString, NotificationEventV1Subject, NotificationEventV1EntitlementValue, NotificationEventV1CustomerUsageAttribution, NotificationEventV1Alignment, NotificationEventV1PlanReference, NotificationEventV1InvoiceAvailableActionDetails, NotificationEventV1InvoiceAvailableActionInvoiceDetails, NotificationEventV1BillingWorkflowCollectionAlignmentSubscription, NotificationEventV1StripeTaxConfig, NotificationEventV1CustomInvoicingTaxConfig, NotificationEventV1BillingWorkflowTaxSettings, NotificationEventV1DiscountReasonMaximumSpend, NotificationEventV1InvoiceLineAppExternalIds, NotificationEventV1IdResource, NotificationEventV1PaymentTermInstant, NotificationEventV1InvoiceAppExternalIds, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, InvoiceCreatedV1RuleConfig, InvoiceUpdatedV1RuleConfig, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, ListEventsPagination, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, ChargeReference, AddonReference, UpdateResourceReference, NotificationChannelReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, InvoiceCustomerChargesInput, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, CursorPaginationQuery, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, ListCurrenciesParamsFilter, EntitlementAccessQueryPagination, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, CreateNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, NotificationEventV1FeatureManualUnitCost, NotificationEventV1FeatureLlmUnitCostPricing, NotificationEventV1InvoiceTotals, NotificationEventV1DiscountReasonRatecardUsage, NotificationEventV1InvoiceLineCreditAllocation, NotificationEventV1UnitPriceWithCommitments, NotificationEventV1FlatPrice, NotificationEventV1UnitPrice, NotificationEventV1DynamicPriceWithCommitments, NotificationEventV1PackagePriceWithCommitments, NotificationEventV1BillingDiscountUsage, NotificationEventV1SubscriptionCostBasisPin, NotificationEventV1Address, NotificationEventV1ProRatingConfig, NotificationEventV1RuleBalanceThresholdValue, NotificationEventV1BillingPartyTaxIdentity, NotificationEventV1InvoiceReference, NotificationEventV1InvoiceDocumentRef, NotificationEventV1InvoiceGenericDocumentRef, NotificationEventV1InvoiceAvailableActions, NotificationEventV1AppCapability, NotificationEventV1TaxConfig, NotificationEventV1BillingWorkflowPaymentSettings, NotificationEventV1DiscountReasonRatecardPercentage, NotificationEventV1BillingDiscountPercentage, NotificationEventV1PaymentDueDate, NotificationEventV1InvoiceLineSubscriptionReference, NotificationEventV1FlatPriceWithPaymentTerm, NotificationEventV1ValidationIssue, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, UpsertCustomerBillingProfileRequest, CustomerProfile, EntitlementFeaturesRuleConfig, EntitlementUsagePeriodResetV1RuleConfig, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, InvoiceLineDiscounts, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, EntitlementBalanceThresholdTriggeredV1RuleConfig, NotificationEventDeliveryStatus, NotificationEventV1RecurringPeriod, NotificationEventV1RecurringPeriodV2, NotificationEventV1FeatureLlmUnitCost, NotificationEventV1PriceTier, NotificationEventV1Subscription, NotificationEventV1BillingParty, NotificationEventV1BillingInvoiceCustomerExtendedDetails, NotificationEventV1InvoiceStatusDetails, NotificationEventV1MarketplaceListing, NotificationEventV1BillingWorkflowInvoicingSettings, NotificationEventV1InvoiceLineTaxItem, NotificationEventV1BillingDiscounts, NotificationEventV1PaymentTermDueDate, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, InvoiceDetailedLine, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventV1EntitlementMetered, NotificationEventV1BillingWorkflowCollectionAlignmentAnchored, NotificationEventV1TieredPriceWithCommitments, NotificationEventV1Customer, NotificationEventV1StripeApp, NotificationEventV1SandboxApp, NotificationEventV1CustomInvoicingApp, NotificationEventV1InvoiceLineAmountDiscount, NotificationEventV1InvoiceLineUsageDiscount, NotificationEventV1InvoiceDetailedLineRateCard, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, NotificationEventV1Feature, NotificationEventV1InvoiceLineDiscounts, NotificationEventV1InvoicePaymentTerms, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEventV1BillingWorkflowCollectionSettings, EntitlementBalanceThresholdTriggeredV1Payload, EntitlementUsagePeriodResetV1Payload, NotificationEventV1BalanceThresholdPayloadData, NotificationEventV1EntitlementValuePayloadBase, NotificationEventV1InvoiceUsageBasedRateCard, NotificationEventV1BillingProfileApps, NotificationEventV1InvoiceDetailedLine, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventV1BillingWorkflow, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, NotificationEventV1InvoiceLine, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, NotificationEventV1InvoiceWorkflowSettings, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, InvoiceCreatedV1Payload, InvoiceUpdatedV1Payload, NotificationEventV1Invoice, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, ChargeFlatFee, ChargeUsageBased, InvoiceCustomerChargesResult, InvoicePagePaginatedResponse, NotificationEvent, ChargePagePaginatedResponse, NotificationEventPagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, NotificationEventV1RecurringPeriodInterval, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, NotificationEventV1BillingDiscountReason, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, NotificationEventV1FeatureUnitCost, NotificationEventV1PaymentTerms, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventV1BillingWorkflowCollectionAlignment, NotificationEventV1RateCardUsageBasedPrice, NotificationEventV1App, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, NotificationEventPayload, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoiceCustomerChargesResultInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
package/dist/lib/paginate.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ interface CursorEnvelope<TItem> {
|
|
|
34
34
|
meta: {
|
|
35
35
|
page: {
|
|
36
36
|
next: string | null;
|
|
37
|
+
previous?: string | null;
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
}
|
|
@@ -45,12 +46,17 @@ interface CursorRequest {
|
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
|
-
* Iterates every item of a cursor-paginated list operation
|
|
49
|
-
* `
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
49
|
+
* Iterates every item of a cursor-paginated list operation. Despite carrying a
|
|
50
|
+
* `format: uri` annotation in the spec, `next` and `previous` are the opaque
|
|
51
|
+
* cursor tokens the API expects back verbatim in `page.after` or
|
|
52
|
+
* `page.before` on the following request — not URIs to fetch directly.
|
|
53
|
+
*
|
|
54
|
+
* The caller's request picks the direction. With `page.before`, the walk goes
|
|
55
|
+
* backward: it follows `meta.page.previous` through `page.before`, so it never
|
|
56
|
+
* returns items past the caller's bound. Otherwise it follows `meta.page.next`
|
|
57
|
+
* through `page.after`. A page request never carries both cursors, which the
|
|
58
|
+
* API rejects; a request that starts with both throws before any fetch. Every
|
|
59
|
+
* other field on `request` is sent unchanged on every page fetch.
|
|
54
60
|
*/
|
|
55
61
|
export declare function paginateCursor<TItem, TReq extends CursorRequest>(fetchPage: (req: TReq, options?: RequestOptions) => Promise<Result<CursorEnvelope<TItem>>>, request: TReq, options?: RequestOptions): AsyncGenerator<TItem, void, undefined>;
|
|
56
62
|
export {};
|
package/dist/lib/paginate.js
CHANGED
|
@@ -38,23 +38,37 @@ export async function* paginatePages(fetchPage, request, options) {
|
|
|
38
38
|
throw new PaginationLimitExceededError(MAX_PAGINATION_PAGES);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Iterates every item of a cursor-paginated list operation
|
|
42
|
-
* `
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
41
|
+
* Iterates every item of a cursor-paginated list operation. Despite carrying a
|
|
42
|
+
* `format: uri` annotation in the spec, `next` and `previous` are the opaque
|
|
43
|
+
* cursor tokens the API expects back verbatim in `page.after` or
|
|
44
|
+
* `page.before` on the following request — not URIs to fetch directly.
|
|
45
|
+
*
|
|
46
|
+
* The caller's request picks the direction. With `page.before`, the walk goes
|
|
47
|
+
* backward: it follows `meta.page.previous` through `page.before`, so it never
|
|
48
|
+
* returns items past the caller's bound. Otherwise it follows `meta.page.next`
|
|
49
|
+
* through `page.after`. A page request never carries both cursors, which the
|
|
50
|
+
* API rejects; a request that starts with both throws before any fetch. Every
|
|
51
|
+
* other field on `request` is sent unchanged on every page fetch.
|
|
47
52
|
*/
|
|
48
53
|
export async function* paginateCursor(fetchPage, request, options) {
|
|
54
|
+
if (request.page?.after !== undefined && request.page?.before !== undefined) {
|
|
55
|
+
throw new Error('cursor pagination cannot use both page.after and page.before');
|
|
56
|
+
}
|
|
57
|
+
const backward = request.page?.before !== undefined;
|
|
49
58
|
let req = request;
|
|
50
59
|
for (let page = 0; page < MAX_PAGINATION_PAGES; page++) {
|
|
51
60
|
const res = unwrap(await fetchPage(req, options));
|
|
52
61
|
yield* res.data;
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
62
|
+
const cursor = backward ? res.meta.page.previous : res.meta.page.next;
|
|
63
|
+
if (!cursor || res.data.length === 0) {
|
|
55
64
|
return;
|
|
56
65
|
}
|
|
57
|
-
req = {
|
|
66
|
+
req = {
|
|
67
|
+
...req,
|
|
68
|
+
page: backward
|
|
69
|
+
? { ...req.page, before: cursor }
|
|
70
|
+
: { ...req.page, after: cursor },
|
|
71
|
+
};
|
|
58
72
|
}
|
|
59
73
|
throw new PaginationLimitExceededError(MAX_PAGINATION_PAGES);
|
|
60
74
|
}
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "v1.0.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "v1.0.0-beta.238";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = 'v1.0.0-beta.
|
|
5
|
+
export const SDK_VERSION = 'v1.0.0-beta.238';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { ChargePagePaginatedResponse, ListChargesParamsFilter, SortQueryInput } from '../types.js';
|
|
2
|
+
import type { Charge, ChargePagePaginatedResponse, ListChargesParamsFilter, SortQueryInput } from '../types.js';
|
|
3
|
+
export interface GetChargeQuery {
|
|
4
|
+
/** Expand related entities, realization details, or real-time usage. */
|
|
5
|
+
expand?: ('real_time_usage' | 'customer' | 'feature' | 'subscription' | 'realization.invoice' | 'realization.totals' | 'realization.detailed_lines')[];
|
|
6
|
+
}
|
|
7
|
+
export type GetChargeRequest = AcceptDateStrings<GetChargeQuery & {
|
|
8
|
+
chargeId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetChargeResponse = Charge;
|
|
3
11
|
export interface ListChargesQuery {
|
|
4
12
|
/** Determines which page of the collection to retrieve. */
|
|
5
13
|
page?: {
|
|
@@ -23,6 +31,9 @@ export interface ListChargesQuery {
|
|
|
23
31
|
* To filter charges by customer add the following query param:
|
|
24
32
|
* `filter[customer_id][eq]=<id>` or `filter[customer_id][oeq]=<id>,<id>`.
|
|
25
33
|
*
|
|
34
|
+
* To filter charges by subscription, use `filter[subscription_id][eq]=<id>` or
|
|
35
|
+
* `filter[subscription_id][oeq]=<id>,<id>`.
|
|
36
|
+
*
|
|
26
37
|
* To filter charges by status add the following query param:
|
|
27
38
|
* `filter[status][oeq]=created,active`
|
|
28
39
|
*
|
|
@@ -38,8 +49,10 @@ export interface ListChargesQuery {
|
|
|
38
49
|
*
|
|
39
50
|
* Supported values are:
|
|
40
51
|
*
|
|
41
|
-
* - `real_time_usage`:
|
|
42
|
-
* and
|
|
52
|
+
* - `real_time_usage`: Set `usage` and `totals.realtime` for active usage-based
|
|
53
|
+
* charges and created usage-based charges whose effective service period
|
|
54
|
+
* contains the current time (inclusive start, exclusive end). Deleted charges
|
|
55
|
+
* are skipped.
|
|
43
56
|
* - `customer`: Expand the charge's customer to the complete entity.
|
|
44
57
|
* - `feature`: Expand the charge's feature to the complete entity.
|
|
45
58
|
* - `subscription`: Expand the charge's subscription to the complete entity.
|