@caraer/client 2.0.413 → 2.0.415
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/.openapi-generator/FILES +0 -19
- package/api.ts +6 -1110
- package/dist/api.d.ts +1 -759
- package/dist/api.js +3 -617
- package/dist/esm/api.d.ts +1 -759
- package/dist/esm/api.js +0 -610
- package/docs/AppDTO.md +0 -4
- package/docs/ExistingWidgetSummary.md +2 -2
- package/docs/HasAppDTO.md +0 -14
- package/docs/InstallAppRequest.md +0 -2
- package/package.json +1 -1
- package/docs/AppBillingApi.md +0 -429
- package/docs/AppBillingLineItemStatusDTO.md +0 -41
- package/docs/AppBillingPeriodDTO.md +0 -33
- package/docs/AppBillingStatusResponse.md +0 -29
- package/docs/AppBillingSummaryDTO.md +0 -23
- package/docs/AppInstallationBillingStatusDTO.md +0 -49
- package/docs/AppMeterEventRequest.md +0 -29
- package/docs/AppMeterEventResponse.md +0 -27
- package/docs/AppPricingDTO.md +0 -61
- package/docs/AppPricingLineItemDTO.md +0 -55
- package/docs/AppStaticQueryDTO.md +0 -23
- package/docs/AppSubscriptionChangeRequest.md +0 -23
- package/docs/AppSubscriptionDTO.md +0 -35
- package/docs/AppTierDTO.md +0 -49
- package/docs/ShowResponseAppBillingStatusResponse.md +0 -23
- package/docs/ShowResponseAppInstallationBillingStatusDTO.md +0 -23
- package/docs/ShowResponseAppMeterEventResponse.md +0 -23
- package/docs/ShowResponseAppSubscriptionDTO.md +0 -23
- package/docs/ShowResponseListAppInstallationBillingStatusDTO.md +0 -23
package/docs/HasAppDTO.md
CHANGED
|
@@ -14,13 +14,6 @@ Name | Type | Description | Notes
|
|
|
14
14
|
**appBarVisibility** | [**{ [key: string]: AppBarVisibilityEntry; }**](AppBarVisibilityEntry.md) | Per-app-bar placement config keyed by app bar UUID | [optional] [default to undefined]
|
|
15
15
|
**oauthConnected** | **boolean** | Whether OAuth tokens have been issued for this installation | [optional] [default to undefined]
|
|
16
16
|
**oauthAccessTokenExpiresAt** | **number** | OAuth access token expiry (epoch ms), if connected via OAuth | [optional] [default to undefined]
|
|
17
|
-
**selectedPricingPlanUuid** | **string** | UUID of the pricing plan selected for this installation | [optional] [default to undefined]
|
|
18
|
-
**billingCommitment** | **string** | MONTHLY or ANNUAL billing commitment | [optional] [default to undefined]
|
|
19
|
-
**contractStart** | **number** | Current contract start (epoch ms) | [optional] [default to undefined]
|
|
20
|
-
**contractEnd** | **number** | Current contract end / renewal date (epoch ms) | [optional] [default to undefined]
|
|
21
|
-
**pendingPricingPlanUuid** | **string** | Plan scheduled to become active | [optional] [default to undefined]
|
|
22
|
-
**pendingBillingCommitment** | **string** | Commitment scheduled to become active | [optional] [default to undefined]
|
|
23
|
-
**pendingEffectiveAt** | **number** | When the pending subscription change takes effect (epoch ms) | [optional] [default to undefined]
|
|
24
17
|
|
|
25
18
|
## Example
|
|
26
19
|
|
|
@@ -36,13 +29,6 @@ const instance: HasAppDTO = {
|
|
|
36
29
|
appBarVisibility,
|
|
37
30
|
oauthConnected,
|
|
38
31
|
oauthAccessTokenExpiresAt,
|
|
39
|
-
selectedPricingPlanUuid,
|
|
40
|
-
billingCommitment,
|
|
41
|
-
contractStart,
|
|
42
|
-
contractEnd,
|
|
43
|
-
pendingPricingPlanUuid,
|
|
44
|
-
pendingBillingCommitment,
|
|
45
|
-
pendingEffectiveAt,
|
|
46
32
|
};
|
|
47
33
|
```
|
|
48
34
|
|
|
@@ -10,7 +10,6 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**scopes** | **Array<string>** | Optional scopes to grant to the app. | [optional] [default to undefined]
|
|
11
11
|
**filters** | [**{ [key: string]: Filter; }**](Filter.md) | Optional per-object record filters for this installation (object name → filter). | [optional] [default to undefined]
|
|
12
12
|
**appBarVisibility** | [**{ [key: string]: AppBarVisibilityEntry; }**](AppBarVisibilityEntry.md) | Optional per-app-bar placement config keyed by app bar UUID. | [optional] [default to undefined]
|
|
13
|
-
**selectedPricingPlanUuid** | **string** | UUID of the pricing plan selected for this installation. | [optional] [default to undefined]
|
|
14
13
|
|
|
15
14
|
## Example
|
|
16
15
|
|
|
@@ -22,7 +21,6 @@ const instance: InstallAppRequest = {
|
|
|
22
21
|
scopes,
|
|
23
22
|
filters,
|
|
24
23
|
appBarVisibility,
|
|
25
|
-
selectedPricingPlanUuid,
|
|
26
24
|
};
|
|
27
25
|
```
|
|
28
26
|
|
package/package.json
CHANGED
package/docs/AppBillingApi.md
DELETED
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
# AppBillingApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://v2.api.caraer.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**appBillingStatus**](#appbillingstatus) | **GET** /api/v2/apps/{appUuid}/billing/status | Current-period billing for every installation of an app|
|
|
8
|
-
|[**cancelPendingChange**](#cancelpendingchange) | **DELETE** /api/v2/apps/{appUuid}/installation/subscription/pending | Cancel a scheduled subscription change|
|
|
9
|
-
|[**getSubscription**](#getsubscription) | **GET** /api/v2/apps/{appUuid}/installation/subscription | Current subscription state for the selected company\'s installation|
|
|
10
|
-
|[**installationBillingStatus**](#installationbillingstatus) | **GET** /api/v2/apps/{appUuid}/installation/billing/status | Current-period billing for the selected company\'s installation|
|
|
11
|
-
|[**platformBillingStatus**](#platformbillingstatus) | **GET** /api/v2/apps/billing/status | Platform-wide current-period app usage billing|
|
|
12
|
-
|[**recordMeterEvent**](#recordmeterevent) | **POST** /api/v2/apps/{appUuid}/installation/meter-events | Record a manual meter event for the selected company\'s installation|
|
|
13
|
-
|[**scheduleSubscriptionChange**](#schedulesubscriptionchange) | **POST** /api/v2/apps/{appUuid}/installation/subscription/change | Schedule a plan or commitment change|
|
|
14
|
-
|[**usagePeriods**](#usageperiods) | **GET** /api/v2/apps/{appUuid}/installation/usage/periods | Usage periods for the selected company\'s installation|
|
|
15
|
-
|
|
16
|
-
# **appBillingStatus**
|
|
17
|
-
> ShowResponseAppBillingStatusResponse appBillingStatus()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
### Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import {
|
|
24
|
-
AppBillingApi,
|
|
25
|
-
Configuration
|
|
26
|
-
} from '@caraer/client';
|
|
27
|
-
|
|
28
|
-
const configuration = new Configuration();
|
|
29
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
30
|
-
|
|
31
|
-
let appUuid: string; // (default to undefined)
|
|
32
|
-
|
|
33
|
-
const { status, data } = await apiInstance.appBillingStatus(
|
|
34
|
-
appUuid
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Parameters
|
|
39
|
-
|
|
40
|
-
|Name | Type | Description | Notes|
|
|
41
|
-
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Return type
|
|
46
|
-
|
|
47
|
-
**ShowResponseAppBillingStatusResponse**
|
|
48
|
-
|
|
49
|
-
### Authorization
|
|
50
|
-
|
|
51
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
52
|
-
|
|
53
|
-
### HTTP request headers
|
|
54
|
-
|
|
55
|
-
- **Content-Type**: Not defined
|
|
56
|
-
- **Accept**: application/json
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### HTTP response details
|
|
60
|
-
| Status code | Description | Response headers |
|
|
61
|
-
|-------------|-------------|------------------|
|
|
62
|
-
|**200** | OK | - |
|
|
63
|
-
|
|
64
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
-
|
|
66
|
-
# **cancelPendingChange**
|
|
67
|
-
> ShowResponseAppSubscriptionDTO cancelPendingChange()
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Example
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import {
|
|
74
|
-
AppBillingApi,
|
|
75
|
-
Configuration
|
|
76
|
-
} from '@caraer/client';
|
|
77
|
-
|
|
78
|
-
const configuration = new Configuration();
|
|
79
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
80
|
-
|
|
81
|
-
let appUuid: string; // (default to undefined)
|
|
82
|
-
|
|
83
|
-
const { status, data } = await apiInstance.cancelPendingChange(
|
|
84
|
-
appUuid
|
|
85
|
-
);
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
### Parameters
|
|
89
|
-
|
|
90
|
-
|Name | Type | Description | Notes|
|
|
91
|
-
|------------- | ------------- | ------------- | -------------|
|
|
92
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Return type
|
|
96
|
-
|
|
97
|
-
**ShowResponseAppSubscriptionDTO**
|
|
98
|
-
|
|
99
|
-
### Authorization
|
|
100
|
-
|
|
101
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
-
|
|
103
|
-
### HTTP request headers
|
|
104
|
-
|
|
105
|
-
- **Content-Type**: Not defined
|
|
106
|
-
- **Accept**: application/json
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
### HTTP response details
|
|
110
|
-
| Status code | Description | Response headers |
|
|
111
|
-
|-------------|-------------|------------------|
|
|
112
|
-
|**200** | OK | - |
|
|
113
|
-
|
|
114
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
115
|
-
|
|
116
|
-
# **getSubscription**
|
|
117
|
-
> ShowResponseAppSubscriptionDTO getSubscription()
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
### Example
|
|
121
|
-
|
|
122
|
-
```typescript
|
|
123
|
-
import {
|
|
124
|
-
AppBillingApi,
|
|
125
|
-
Configuration
|
|
126
|
-
} from '@caraer/client';
|
|
127
|
-
|
|
128
|
-
const configuration = new Configuration();
|
|
129
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
130
|
-
|
|
131
|
-
let appUuid: string; // (default to undefined)
|
|
132
|
-
|
|
133
|
-
const { status, data } = await apiInstance.getSubscription(
|
|
134
|
-
appUuid
|
|
135
|
-
);
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
### Parameters
|
|
139
|
-
|
|
140
|
-
|Name | Type | Description | Notes|
|
|
141
|
-
|------------- | ------------- | ------------- | -------------|
|
|
142
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Return type
|
|
146
|
-
|
|
147
|
-
**ShowResponseAppSubscriptionDTO**
|
|
148
|
-
|
|
149
|
-
### Authorization
|
|
150
|
-
|
|
151
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
152
|
-
|
|
153
|
-
### HTTP request headers
|
|
154
|
-
|
|
155
|
-
- **Content-Type**: Not defined
|
|
156
|
-
- **Accept**: application/json
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
### HTTP response details
|
|
160
|
-
| Status code | Description | Response headers |
|
|
161
|
-
|-------------|-------------|------------------|
|
|
162
|
-
|**200** | OK | - |
|
|
163
|
-
|
|
164
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
165
|
-
|
|
166
|
-
# **installationBillingStatus**
|
|
167
|
-
> ShowResponseAppInstallationBillingStatusDTO installationBillingStatus()
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### Example
|
|
171
|
-
|
|
172
|
-
```typescript
|
|
173
|
-
import {
|
|
174
|
-
AppBillingApi,
|
|
175
|
-
Configuration
|
|
176
|
-
} from '@caraer/client';
|
|
177
|
-
|
|
178
|
-
const configuration = new Configuration();
|
|
179
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
180
|
-
|
|
181
|
-
let appUuid: string; // (default to undefined)
|
|
182
|
-
|
|
183
|
-
const { status, data } = await apiInstance.installationBillingStatus(
|
|
184
|
-
appUuid
|
|
185
|
-
);
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### Parameters
|
|
189
|
-
|
|
190
|
-
|Name | Type | Description | Notes|
|
|
191
|
-
|------------- | ------------- | ------------- | -------------|
|
|
192
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### Return type
|
|
196
|
-
|
|
197
|
-
**ShowResponseAppInstallationBillingStatusDTO**
|
|
198
|
-
|
|
199
|
-
### Authorization
|
|
200
|
-
|
|
201
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
202
|
-
|
|
203
|
-
### HTTP request headers
|
|
204
|
-
|
|
205
|
-
- **Content-Type**: Not defined
|
|
206
|
-
- **Accept**: application/json
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
### HTTP response details
|
|
210
|
-
| Status code | Description | Response headers |
|
|
211
|
-
|-------------|-------------|------------------|
|
|
212
|
-
|**200** | OK | - |
|
|
213
|
-
|
|
214
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
215
|
-
|
|
216
|
-
# **platformBillingStatus**
|
|
217
|
-
> ShowResponseAppBillingStatusResponse platformBillingStatus()
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
### Example
|
|
221
|
-
|
|
222
|
-
```typescript
|
|
223
|
-
import {
|
|
224
|
-
AppBillingApi,
|
|
225
|
-
Configuration
|
|
226
|
-
} from '@caraer/client';
|
|
227
|
-
|
|
228
|
-
const configuration = new Configuration();
|
|
229
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
230
|
-
|
|
231
|
-
let appUuid: string; // (optional) (default to undefined)
|
|
232
|
-
let page: number; // (optional) (default to 1)
|
|
233
|
-
let limit: number; // (optional) (default to 50)
|
|
234
|
-
|
|
235
|
-
const { status, data } = await apiInstance.platformBillingStatus(
|
|
236
|
-
appUuid,
|
|
237
|
-
page,
|
|
238
|
-
limit
|
|
239
|
-
);
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
### Parameters
|
|
243
|
-
|
|
244
|
-
|Name | Type | Description | Notes|
|
|
245
|
-
|------------- | ------------- | ------------- | -------------|
|
|
246
|
-
| **appUuid** | [**string**] | | (optional) defaults to undefined|
|
|
247
|
-
| **page** | [**number**] | | (optional) defaults to 1|
|
|
248
|
-
| **limit** | [**number**] | | (optional) defaults to 50|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
### Return type
|
|
252
|
-
|
|
253
|
-
**ShowResponseAppBillingStatusResponse**
|
|
254
|
-
|
|
255
|
-
### Authorization
|
|
256
|
-
|
|
257
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
258
|
-
|
|
259
|
-
### HTTP request headers
|
|
260
|
-
|
|
261
|
-
- **Content-Type**: Not defined
|
|
262
|
-
- **Accept**: application/json
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
### HTTP response details
|
|
266
|
-
| Status code | Description | Response headers |
|
|
267
|
-
|-------------|-------------|------------------|
|
|
268
|
-
|**200** | OK | - |
|
|
269
|
-
|
|
270
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
271
|
-
|
|
272
|
-
# **recordMeterEvent**
|
|
273
|
-
> ShowResponseAppMeterEventResponse recordMeterEvent(appMeterEventRequest)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
### Example
|
|
277
|
-
|
|
278
|
-
```typescript
|
|
279
|
-
import {
|
|
280
|
-
AppBillingApi,
|
|
281
|
-
Configuration,
|
|
282
|
-
AppMeterEventRequest
|
|
283
|
-
} from '@caraer/client';
|
|
284
|
-
|
|
285
|
-
const configuration = new Configuration();
|
|
286
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
287
|
-
|
|
288
|
-
let appUuid: string; // (default to undefined)
|
|
289
|
-
let appMeterEventRequest: AppMeterEventRequest; //
|
|
290
|
-
|
|
291
|
-
const { status, data } = await apiInstance.recordMeterEvent(
|
|
292
|
-
appUuid,
|
|
293
|
-
appMeterEventRequest
|
|
294
|
-
);
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
### Parameters
|
|
298
|
-
|
|
299
|
-
|Name | Type | Description | Notes|
|
|
300
|
-
|------------- | ------------- | ------------- | -------------|
|
|
301
|
-
| **appMeterEventRequest** | **AppMeterEventRequest**| | |
|
|
302
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Return type
|
|
306
|
-
|
|
307
|
-
**ShowResponseAppMeterEventResponse**
|
|
308
|
-
|
|
309
|
-
### Authorization
|
|
310
|
-
|
|
311
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
312
|
-
|
|
313
|
-
### HTTP request headers
|
|
314
|
-
|
|
315
|
-
- **Content-Type**: application/json
|
|
316
|
-
- **Accept**: application/json
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### HTTP response details
|
|
320
|
-
| Status code | Description | Response headers |
|
|
321
|
-
|-------------|-------------|------------------|
|
|
322
|
-
|**200** | OK | - |
|
|
323
|
-
|
|
324
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
325
|
-
|
|
326
|
-
# **scheduleSubscriptionChange**
|
|
327
|
-
> ShowResponseAppSubscriptionDTO scheduleSubscriptionChange(appSubscriptionChangeRequest)
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
### Example
|
|
331
|
-
|
|
332
|
-
```typescript
|
|
333
|
-
import {
|
|
334
|
-
AppBillingApi,
|
|
335
|
-
Configuration,
|
|
336
|
-
AppSubscriptionChangeRequest
|
|
337
|
-
} from '@caraer/client';
|
|
338
|
-
|
|
339
|
-
const configuration = new Configuration();
|
|
340
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
341
|
-
|
|
342
|
-
let appUuid: string; // (default to undefined)
|
|
343
|
-
let appSubscriptionChangeRequest: AppSubscriptionChangeRequest; //
|
|
344
|
-
|
|
345
|
-
const { status, data } = await apiInstance.scheduleSubscriptionChange(
|
|
346
|
-
appUuid,
|
|
347
|
-
appSubscriptionChangeRequest
|
|
348
|
-
);
|
|
349
|
-
```
|
|
350
|
-
|
|
351
|
-
### Parameters
|
|
352
|
-
|
|
353
|
-
|Name | Type | Description | Notes|
|
|
354
|
-
|------------- | ------------- | ------------- | -------------|
|
|
355
|
-
| **appSubscriptionChangeRequest** | **AppSubscriptionChangeRequest**| | |
|
|
356
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
### Return type
|
|
360
|
-
|
|
361
|
-
**ShowResponseAppSubscriptionDTO**
|
|
362
|
-
|
|
363
|
-
### Authorization
|
|
364
|
-
|
|
365
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
366
|
-
|
|
367
|
-
### HTTP request headers
|
|
368
|
-
|
|
369
|
-
- **Content-Type**: application/json
|
|
370
|
-
- **Accept**: application/json
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
### HTTP response details
|
|
374
|
-
| Status code | Description | Response headers |
|
|
375
|
-
|-------------|-------------|------------------|
|
|
376
|
-
|**200** | OK | - |
|
|
377
|
-
|
|
378
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
379
|
-
|
|
380
|
-
# **usagePeriods**
|
|
381
|
-
> ShowResponseListAppInstallationBillingStatusDTO usagePeriods()
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
### Example
|
|
385
|
-
|
|
386
|
-
```typescript
|
|
387
|
-
import {
|
|
388
|
-
AppBillingApi,
|
|
389
|
-
Configuration
|
|
390
|
-
} from '@caraer/client';
|
|
391
|
-
|
|
392
|
-
const configuration = new Configuration();
|
|
393
|
-
const apiInstance = new AppBillingApi(configuration);
|
|
394
|
-
|
|
395
|
-
let appUuid: string; // (default to undefined)
|
|
396
|
-
|
|
397
|
-
const { status, data } = await apiInstance.usagePeriods(
|
|
398
|
-
appUuid
|
|
399
|
-
);
|
|
400
|
-
```
|
|
401
|
-
|
|
402
|
-
### Parameters
|
|
403
|
-
|
|
404
|
-
|Name | Type | Description | Notes|
|
|
405
|
-
|------------- | ------------- | ------------- | -------------|
|
|
406
|
-
| **appUuid** | [**string**] | | defaults to undefined|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
### Return type
|
|
410
|
-
|
|
411
|
-
**ShowResponseListAppInstallationBillingStatusDTO**
|
|
412
|
-
|
|
413
|
-
### Authorization
|
|
414
|
-
|
|
415
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
416
|
-
|
|
417
|
-
### HTTP request headers
|
|
418
|
-
|
|
419
|
-
- **Content-Type**: Not defined
|
|
420
|
-
- **Accept**: application/json
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
### HTTP response details
|
|
424
|
-
| Status code | Description | Response headers |
|
|
425
|
-
|-------------|-------------|------------------|
|
|
426
|
-
|**200** | OK | - |
|
|
427
|
-
|
|
428
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
429
|
-
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# AppBillingLineItemStatusDTO
|
|
2
|
-
|
|
3
|
-
Current-period usage for one pricing line item
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**label** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**countType** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**countingSource** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**usage** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**usageBreakdown** | **{ [key: string]: number; }** | | [optional] [default to undefined]
|
|
15
|
-
**includedUnits** | **number** | | [optional] [default to undefined]
|
|
16
|
-
**overageUnits** | **number** | | [optional] [default to undefined]
|
|
17
|
-
**projectedCharge** | **number** | | [optional] [default to undefined]
|
|
18
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**note** | **string** | | [optional] [default to undefined]
|
|
20
|
-
|
|
21
|
-
## Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { AppBillingLineItemStatusDTO } from '@caraer/client';
|
|
25
|
-
|
|
26
|
-
const instance: AppBillingLineItemStatusDTO = {
|
|
27
|
-
name,
|
|
28
|
-
label,
|
|
29
|
-
countType,
|
|
30
|
-
countingSource,
|
|
31
|
-
usage,
|
|
32
|
-
usageBreakdown,
|
|
33
|
-
includedUnits,
|
|
34
|
-
overageUnits,
|
|
35
|
-
projectedCharge,
|
|
36
|
-
status,
|
|
37
|
-
note,
|
|
38
|
-
};
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# AppBillingPeriodDTO
|
|
2
|
-
|
|
3
|
-
UTC calendar-month billing window, with pro-rata fields when the subscription started mid-month
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**start** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**end** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**status** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**activeStart** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**daysActive** | **number** | | [optional] [default to undefined]
|
|
14
|
-
**daysInPeriod** | **number** | | [optional] [default to undefined]
|
|
15
|
-
**prorationFactor** | **number** | | [optional] [default to undefined]
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { AppBillingPeriodDTO } from '@caraer/client';
|
|
21
|
-
|
|
22
|
-
const instance: AppBillingPeriodDTO = {
|
|
23
|
-
start,
|
|
24
|
-
end,
|
|
25
|
-
status,
|
|
26
|
-
activeStart,
|
|
27
|
-
daysActive,
|
|
28
|
-
daysInPeriod,
|
|
29
|
-
prorationFactor,
|
|
30
|
-
};
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# AppBillingStatusResponse
|
|
2
|
-
|
|
3
|
-
Billing status for one or more app installations
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**appUuid** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**appName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**period** | [**AppBillingPeriodDTO**](AppBillingPeriodDTO.md) | | [optional] [default to undefined]
|
|
12
|
-
**installations** | [**Array<AppInstallationBillingStatusDTO>**](AppInstallationBillingStatusDTO.md) | | [optional] [default to undefined]
|
|
13
|
-
**summary** | [**AppBillingSummaryDTO**](AppBillingSummaryDTO.md) | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { AppBillingStatusResponse } from '@caraer/client';
|
|
19
|
-
|
|
20
|
-
const instance: AppBillingStatusResponse = {
|
|
21
|
-
appUuid,
|
|
22
|
-
appName,
|
|
23
|
-
period,
|
|
24
|
-
installations,
|
|
25
|
-
summary,
|
|
26
|
-
};
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# AppBillingSummaryDTO
|
|
2
|
-
|
|
3
|
-
Rollup of installation billing status
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**installationCount** | **number** | | [optional] [default to undefined]
|
|
10
|
-
**projectedRevenueTotal** | **number** | | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { AppBillingSummaryDTO } from '@caraer/client';
|
|
16
|
-
|
|
17
|
-
const instance: AppBillingSummaryDTO = {
|
|
18
|
-
installationCount,
|
|
19
|
-
projectedRevenueTotal,
|
|
20
|
-
};
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# AppInstallationBillingStatusDTO
|
|
2
|
-
|
|
3
|
-
Current-period billing status for one installation
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**appUuid** | **string** | | [optional] [default to undefined]
|
|
10
|
-
**appName** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**installationUuid** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**companyUuid** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**companyName** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**selectedPricingPlanUuid** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**selectedPricingPlanTitle** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**pricingType** | **string** | | [optional] [default to undefined]
|
|
17
|
-
**billingCommitment** | **string** | | [optional] [default to undefined]
|
|
18
|
-
**pendingPricingPlanUuid** | **string** | | [optional] [default to undefined]
|
|
19
|
-
**pendingEffectiveAt** | **number** | | [optional] [default to undefined]
|
|
20
|
-
**period** | [**AppBillingPeriodDTO**](AppBillingPeriodDTO.md) | | [optional] [default to undefined]
|
|
21
|
-
**lineItems** | [**Array<AppBillingLineItemStatusDTO>**](AppBillingLineItemStatusDTO.md) | | [optional] [default to undefined]
|
|
22
|
-
**projectedTotal** | **number** | | [optional] [default to undefined]
|
|
23
|
-
**subscription** | [**AppSubscriptionDTO**](AppSubscriptionDTO.md) | | [optional] [default to undefined]
|
|
24
|
-
|
|
25
|
-
## Example
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
import { AppInstallationBillingStatusDTO } from '@caraer/client';
|
|
29
|
-
|
|
30
|
-
const instance: AppInstallationBillingStatusDTO = {
|
|
31
|
-
appUuid,
|
|
32
|
-
appName,
|
|
33
|
-
installationUuid,
|
|
34
|
-
companyUuid,
|
|
35
|
-
companyName,
|
|
36
|
-
selectedPricingPlanUuid,
|
|
37
|
-
selectedPricingPlanTitle,
|
|
38
|
-
pricingType,
|
|
39
|
-
billingCommitment,
|
|
40
|
-
pendingPricingPlanUuid,
|
|
41
|
-
pendingEffectiveAt,
|
|
42
|
-
period,
|
|
43
|
-
lineItems,
|
|
44
|
-
projectedTotal,
|
|
45
|
-
subscription,
|
|
46
|
-
};
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# AppMeterEventRequest
|
|
2
|
-
|
|
3
|
-
Manual meter event for a billable line item
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type | Description | Notes
|
|
8
|
-
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**lineItemName** | **string** | | [default to undefined]
|
|
10
|
-
**quantity** | **number** | Positive unit count; defaults to 1 | [optional] [default to undefined]
|
|
11
|
-
**idempotencyKey** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**occurredAt** | **string** | ISO-8601 timestamp; defaults to now | [optional] [default to undefined]
|
|
13
|
-
**metadata** | **{ [key: string]: any | null; }** | | [optional] [default to undefined]
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import { AppMeterEventRequest } from '@caraer/client';
|
|
19
|
-
|
|
20
|
-
const instance: AppMeterEventRequest = {
|
|
21
|
-
lineItemName,
|
|
22
|
-
quantity,
|
|
23
|
-
idempotencyKey,
|
|
24
|
-
occurredAt,
|
|
25
|
-
metadata,
|
|
26
|
-
};
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|