@iblai/iblai-api 4.194.2-core → 4.195.0-core

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.
Files changed (51) hide show
  1. package/dist/index.cjs.js +1163 -185
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1163 -186
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +1163 -185
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +18 -1
  8. package/dist/types/models/CheckoutSessionCreate.d.ts +6 -0
  9. package/dist/types/models/CheckoutSessionResponse.d.ts +13 -0
  10. package/dist/types/models/GrandfatheringStrategyEnum.d.ts +8 -0
  11. package/dist/types/models/IntervalEnum.d.ts +10 -0
  12. package/dist/types/models/ItemAccessCheckResponse.d.ts +7 -2
  13. package/dist/types/models/ItemPaywallConfig.d.ts +52 -0
  14. package/dist/types/models/ItemPaywallConfigCreate.d.ts +8 -0
  15. package/dist/types/models/ItemPrice.d.ts +46 -0
  16. package/dist/types/models/ItemPriceCreate.d.ts +36 -0
  17. package/dist/types/models/ItemSubscription.d.ts +67 -0
  18. package/dist/types/models/ItemSubscriptionList.d.ts +34 -0
  19. package/dist/types/models/ItemType5d7Enum.d.ts +10 -0
  20. package/dist/types/models/{ItemAccessCheckResponseItemTypeEnum.d.ts → ItemTypeC6bEnum.d.ts} +1 -1
  21. package/dist/types/models/PaginatedItemSubscriptionList.d.ts +7 -0
  22. package/dist/types/models/PaginatedItemSubscriptionListList.d.ts +7 -0
  23. package/dist/types/models/PortalUrlResponse.d.ts +9 -0
  24. package/dist/types/models/PublicItemPricing.d.ts +11 -0
  25. package/dist/types/models/Status0e3Enum.d.ts +18 -0
  26. package/dist/types/services/BillingService.d.ts +271 -0
  27. package/dist/types/services/PlatformsService.d.ts +275 -0
  28. package/package.json +1 -1
  29. package/sdk_schema.yml +7861 -5691
  30. package/src/core/OpenAPI.ts +1 -1
  31. package/src/index.ts +18 -1
  32. package/src/models/CheckoutSessionCreate.ts +11 -0
  33. package/src/models/CheckoutSessionResponse.ts +18 -0
  34. package/src/models/GrandfatheringStrategyEnum.ts +12 -0
  35. package/src/models/IntervalEnum.ts +14 -0
  36. package/src/models/ItemAccessCheckResponse.ts +7 -2
  37. package/src/models/ItemPaywallConfig.ts +57 -0
  38. package/src/models/ItemPaywallConfigCreate.ts +13 -0
  39. package/src/models/ItemPrice.ts +51 -0
  40. package/src/models/ItemPriceCreate.ts +41 -0
  41. package/src/models/ItemSubscription.ts +72 -0
  42. package/src/models/ItemSubscriptionList.ts +39 -0
  43. package/src/models/ItemType5d7Enum.ts +14 -0
  44. package/src/models/{ItemAccessCheckResponseItemTypeEnum.ts → ItemTypeC6bEnum.ts} +1 -1
  45. package/src/models/PaginatedItemSubscriptionList.ts +12 -0
  46. package/src/models/PaginatedItemSubscriptionListList.ts +12 -0
  47. package/src/models/PortalUrlResponse.ts +14 -0
  48. package/src/models/PublicItemPricing.ts +16 -0
  49. package/src/models/Status0e3Enum.ts +22 -0
  50. package/src/services/BillingService.ts +591 -0
  51. package/src/services/PlatformsService.ts +601 -0
@@ -0,0 +1,601 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CheckoutSessionCreate } from '../models/CheckoutSessionCreate';
6
+ import type { CheckoutSessionResponse } from '../models/CheckoutSessionResponse';
7
+ import type { ItemAccessCheckResponse } from '../models/ItemAccessCheckResponse';
8
+ import type { ItemPaywallConfig } from '../models/ItemPaywallConfig';
9
+ import type { ItemPaywallConfigCreate } from '../models/ItemPaywallConfigCreate';
10
+ import type { ItemPrice } from '../models/ItemPrice';
11
+ import type { ItemPriceCreate } from '../models/ItemPriceCreate';
12
+ import type { ItemSubscription } from '../models/ItemSubscription';
13
+ import type { PaginatedItemSubscriptionList } from '../models/PaginatedItemSubscriptionList';
14
+ import type { PaginatedItemSubscriptionListList } from '../models/PaginatedItemSubscriptionListList';
15
+ import type { PortalUrlResponse } from '../models/PortalUrlResponse';
16
+ import type { PublicItemPricing } from '../models/PublicItemPricing';
17
+ import type { CancelablePromise } from '../core/CancelablePromise';
18
+ import { OpenAPI } from '../core/OpenAPI';
19
+ import { request as __request } from '../core/request';
20
+ export class PlatformsService {
21
+ /**
22
+ * Check whether the authenticated user has payment access to an item on a scoped platform.
23
+ * @returns ItemAccessCheckResponse
24
+ * @throws ApiError
25
+ */
26
+ public static platformsItemsAccessCheckRetrieve({
27
+ itemId,
28
+ itemType,
29
+ platformKey,
30
+ }: {
31
+ itemId: string,
32
+ itemType: string,
33
+ platformKey: string,
34
+ }): CancelablePromise<ItemAccessCheckResponse> {
35
+ return __request(OpenAPI, {
36
+ method: 'GET',
37
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/access-check/',
38
+ path: {
39
+ 'item_id': itemId,
40
+ 'item_type': itemType,
41
+ 'platform_key': platformKey,
42
+ },
43
+ });
44
+ }
45
+ /**
46
+ * Create checkout session
47
+ * Create a Stripe checkout session for an authenticated user to purchase or subscribe to an item.
48
+ * @returns CheckoutSessionResponse
49
+ * @throws ApiError
50
+ */
51
+ public static platformsItemsCheckoutCreate({
52
+ itemId,
53
+ itemType,
54
+ platformKey,
55
+ requestBody,
56
+ }: {
57
+ itemId: string,
58
+ itemType: string,
59
+ platformKey: string,
60
+ requestBody: CheckoutSessionCreate,
61
+ }): CancelablePromise<CheckoutSessionResponse> {
62
+ return __request(OpenAPI, {
63
+ method: 'POST',
64
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout/',
65
+ path: {
66
+ 'item_id': itemId,
67
+ 'item_type': itemType,
68
+ 'platform_key': platformKey,
69
+ },
70
+ body: requestBody,
71
+ mediaType: 'application/json',
72
+ });
73
+ }
74
+ /**
75
+ * Handle checkout callback
76
+ * Stripe redirects here after checkout. Processes the completed session and redirects to the return URL.
77
+ * @returns void
78
+ * @throws ApiError
79
+ */
80
+ public static platformsItemsCheckoutCallbackRetrieve({
81
+ itemId,
82
+ itemType,
83
+ platformKey,
84
+ returnUrl,
85
+ }: {
86
+ itemId: string,
87
+ itemType: string,
88
+ platformKey: string,
89
+ returnUrl?: string | null,
90
+ }): CancelablePromise<void> {
91
+ return __request(OpenAPI, {
92
+ method: 'GET',
93
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-callback/',
94
+ path: {
95
+ 'item_id': itemId,
96
+ 'item_type': itemType,
97
+ 'platform_key': platformKey,
98
+ },
99
+ query: {
100
+ 'return_url': returnUrl,
101
+ },
102
+ errors: {
103
+ 302: `No response body`,
104
+ },
105
+ });
106
+ }
107
+ /**
108
+ * Handle checkout callback
109
+ * Stripe redirects here after checkout. Processes the completed session and redirects to the return URL.
110
+ * @returns void
111
+ * @throws ApiError
112
+ */
113
+ public static platformsItemsCheckoutCallbackRetrieve2({
114
+ checkoutSessionId,
115
+ itemId,
116
+ itemType,
117
+ platformKey,
118
+ returnUrl,
119
+ }: {
120
+ checkoutSessionId: string,
121
+ itemId: string,
122
+ itemType: string,
123
+ platformKey: string,
124
+ returnUrl?: string | null,
125
+ }): CancelablePromise<void> {
126
+ return __request(OpenAPI, {
127
+ method: 'GET',
128
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-callback/{checkout_session_id}/',
129
+ path: {
130
+ 'checkout_session_id': checkoutSessionId,
131
+ 'item_id': itemId,
132
+ 'item_type': itemType,
133
+ 'platform_key': platformKey,
134
+ },
135
+ query: {
136
+ 'return_url': returnUrl,
137
+ },
138
+ errors: {
139
+ 302: `No response body`,
140
+ },
141
+ });
142
+ }
143
+ /**
144
+ * Create guest checkout session
145
+ * Create a Stripe checkout session for a guest user (email required).
146
+ * @returns CheckoutSessionResponse
147
+ * @throws ApiError
148
+ */
149
+ public static platformsItemsCheckoutGuestCreate({
150
+ itemId,
151
+ itemType,
152
+ platformKey,
153
+ requestBody,
154
+ }: {
155
+ itemId: string,
156
+ itemType: string,
157
+ platformKey: string,
158
+ requestBody: CheckoutSessionCreate,
159
+ }): CancelablePromise<CheckoutSessionResponse> {
160
+ return __request(OpenAPI, {
161
+ method: 'POST',
162
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/checkout-guest/',
163
+ path: {
164
+ 'item_id': itemId,
165
+ 'item_type': itemType,
166
+ 'platform_key': platformKey,
167
+ },
168
+ body: requestBody,
169
+ mediaType: 'application/json',
170
+ });
171
+ }
172
+ /**
173
+ * Get paywall configuration
174
+ * Retrieve the paywall configuration for an item. Returns default (disabled) config if none exists.
175
+ * @returns ItemPaywallConfig
176
+ * @throws ApiError
177
+ */
178
+ public static platformsItemsPaywallRetrieve({
179
+ itemId,
180
+ itemType,
181
+ platformKey,
182
+ }: {
183
+ itemId: string,
184
+ itemType: string,
185
+ platformKey: string,
186
+ }): CancelablePromise<ItemPaywallConfig> {
187
+ return __request(OpenAPI, {
188
+ method: 'GET',
189
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
190
+ path: {
191
+ 'item_id': itemId,
192
+ 'item_type': itemType,
193
+ 'platform_key': platformKey,
194
+ },
195
+ });
196
+ }
197
+ /**
198
+ * Create or update paywall configuration
199
+ * Enable or configure the paywall for an item. Creates a Stripe product on first enable.
200
+ * @returns ItemPaywallConfig
201
+ * @throws ApiError
202
+ */
203
+ public static platformsItemsPaywallCreate({
204
+ itemId,
205
+ itemType,
206
+ platformKey,
207
+ requestBody,
208
+ }: {
209
+ itemId: string,
210
+ itemType: string,
211
+ platformKey: string,
212
+ requestBody?: ItemPaywallConfigCreate,
213
+ }): CancelablePromise<ItemPaywallConfig> {
214
+ return __request(OpenAPI, {
215
+ method: 'POST',
216
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
217
+ path: {
218
+ 'item_id': itemId,
219
+ 'item_type': itemType,
220
+ 'platform_key': platformKey,
221
+ },
222
+ body: requestBody,
223
+ mediaType: 'application/json',
224
+ });
225
+ }
226
+ /**
227
+ * Update paywall configuration
228
+ * Same as POST. Update the paywall configuration for an item.
229
+ * @returns ItemPaywallConfig
230
+ * @throws ApiError
231
+ */
232
+ public static platformsItemsPaywallUpdate({
233
+ itemId,
234
+ itemType,
235
+ platformKey,
236
+ requestBody,
237
+ }: {
238
+ itemId: string,
239
+ itemType: string,
240
+ platformKey: string,
241
+ requestBody?: ItemPaywallConfigCreate,
242
+ }): CancelablePromise<ItemPaywallConfig> {
243
+ return __request(OpenAPI, {
244
+ method: 'PUT',
245
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
246
+ path: {
247
+ 'item_id': itemId,
248
+ 'item_type': itemType,
249
+ 'platform_key': platformKey,
250
+ },
251
+ body: requestBody,
252
+ mediaType: 'application/json',
253
+ });
254
+ }
255
+ /**
256
+ * Disable paywall configuration
257
+ * Disable the paywall for an item. Does not delete the configuration.
258
+ * @returns void
259
+ * @throws ApiError
260
+ */
261
+ public static platformsItemsPaywallDestroy({
262
+ itemId,
263
+ itemType,
264
+ platformKey,
265
+ }: {
266
+ itemId: string,
267
+ itemType: string,
268
+ platformKey: string,
269
+ }): CancelablePromise<void> {
270
+ return __request(OpenAPI, {
271
+ method: 'DELETE',
272
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/',
273
+ path: {
274
+ 'item_id': itemId,
275
+ 'item_type': itemType,
276
+ 'platform_key': platformKey,
277
+ },
278
+ });
279
+ }
280
+ /**
281
+ * List prices
282
+ * List active prices for an item's paywall configuration.
283
+ * @returns ItemPrice
284
+ * @throws ApiError
285
+ */
286
+ public static platformsItemsPaywallPricesList({
287
+ itemId,
288
+ itemType,
289
+ platformKey,
290
+ }: {
291
+ itemId: string,
292
+ itemType: string,
293
+ platformKey: string,
294
+ }): CancelablePromise<Array<ItemPrice>> {
295
+ return __request(OpenAPI, {
296
+ method: 'GET',
297
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/',
298
+ path: {
299
+ 'item_id': itemId,
300
+ 'item_type': itemType,
301
+ 'platform_key': platformKey,
302
+ },
303
+ });
304
+ }
305
+ /**
306
+ * Create a price
307
+ * Create a new price tier for an item. Requires paywall to be enabled and Stripe Connect account ready.
308
+ * @returns ItemPrice
309
+ * @throws ApiError
310
+ */
311
+ public static platformsItemsPaywallPricesCreate({
312
+ itemId,
313
+ itemType,
314
+ platformKey,
315
+ requestBody,
316
+ }: {
317
+ itemId: string,
318
+ itemType: string,
319
+ platformKey: string,
320
+ requestBody: ItemPriceCreate,
321
+ }): CancelablePromise<ItemPrice> {
322
+ return __request(OpenAPI, {
323
+ method: 'POST',
324
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/',
325
+ path: {
326
+ 'item_id': itemId,
327
+ 'item_type': itemType,
328
+ 'platform_key': platformKey,
329
+ },
330
+ body: requestBody,
331
+ mediaType: 'application/json',
332
+ });
333
+ }
334
+ /**
335
+ * Get price details
336
+ * Retrieve a specific price by ID.
337
+ * @returns ItemPrice
338
+ * @throws ApiError
339
+ */
340
+ public static platformsItemsPaywallPricesRetrieve({
341
+ itemId,
342
+ itemType,
343
+ platformKey,
344
+ priceId,
345
+ }: {
346
+ itemId: string,
347
+ itemType: string,
348
+ platformKey: string,
349
+ priceId: string,
350
+ }): CancelablePromise<ItemPrice> {
351
+ return __request(OpenAPI, {
352
+ method: 'GET',
353
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
354
+ path: {
355
+ 'item_id': itemId,
356
+ 'item_type': itemType,
357
+ 'platform_key': platformKey,
358
+ 'price_id': priceId,
359
+ },
360
+ });
361
+ }
362
+ /**
363
+ * Update a price
364
+ * Update a price tier. If pricing fields change and a Stripe price exists, a new Stripe price is created and the old one deactivated.
365
+ * @returns ItemPrice
366
+ * @throws ApiError
367
+ */
368
+ public static platformsItemsPaywallPricesUpdate({
369
+ itemId,
370
+ itemType,
371
+ platformKey,
372
+ priceId,
373
+ requestBody,
374
+ }: {
375
+ itemId: string,
376
+ itemType: string,
377
+ platformKey: string,
378
+ priceId: string,
379
+ requestBody: ItemPriceCreate,
380
+ }): CancelablePromise<ItemPrice> {
381
+ return __request(OpenAPI, {
382
+ method: 'PUT',
383
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
384
+ path: {
385
+ 'item_id': itemId,
386
+ 'item_type': itemType,
387
+ 'platform_key': platformKey,
388
+ 'price_id': priceId,
389
+ },
390
+ body: requestBody,
391
+ mediaType: 'application/json',
392
+ });
393
+ }
394
+ /**
395
+ * Delete a price
396
+ * Soft-delete a price tier and deactivate the corresponding Stripe price.
397
+ * @returns void
398
+ * @throws ApiError
399
+ */
400
+ public static platformsItemsPaywallPricesDestroy({
401
+ itemId,
402
+ itemType,
403
+ platformKey,
404
+ priceId,
405
+ }: {
406
+ itemId: string,
407
+ itemType: string,
408
+ platformKey: string,
409
+ priceId: string,
410
+ }): CancelablePromise<void> {
411
+ return __request(OpenAPI, {
412
+ method: 'DELETE',
413
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/paywall/prices/{price_id}/',
414
+ path: {
415
+ 'item_id': itemId,
416
+ 'item_type': itemType,
417
+ 'platform_key': platformKey,
418
+ 'price_id': priceId,
419
+ },
420
+ });
421
+ }
422
+ /**
423
+ * Get public pricing
424
+ * Retrieve public pricing information for an item. No authentication required.
425
+ * @returns PublicItemPricing
426
+ * @throws ApiError
427
+ */
428
+ public static platformsItemsPricingRetrieve({
429
+ itemId,
430
+ itemType,
431
+ platformKey,
432
+ }: {
433
+ itemId: string,
434
+ itemType: string,
435
+ platformKey: string,
436
+ }): CancelablePromise<PublicItemPricing> {
437
+ return __request(OpenAPI, {
438
+ method: 'GET',
439
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/pricing/',
440
+ path: {
441
+ 'item_id': itemId,
442
+ 'item_type': itemType,
443
+ 'platform_key': platformKey,
444
+ },
445
+ });
446
+ }
447
+ /**
448
+ * List item subscribers
449
+ * List all subscribers for an item. Optionally filter by subscription status.
450
+ * @returns PaginatedItemSubscriptionList
451
+ * @throws ApiError
452
+ */
453
+ public static platformsItemsSubscribersList({
454
+ itemId,
455
+ itemType,
456
+ platformKey,
457
+ page,
458
+ pageSize,
459
+ status,
460
+ }: {
461
+ itemId: string,
462
+ itemType: string,
463
+ platformKey: string,
464
+ /**
465
+ * A page number within the paginated result set.
466
+ */
467
+ page?: number,
468
+ /**
469
+ * Number of results to return per page.
470
+ */
471
+ pageSize?: number,
472
+ /**
473
+ * * `active` - Active
474
+ * * `free` - Free Tier
475
+ * * `grandfathered` - Grandfathered
476
+ * * `trialing` - Trialing
477
+ * * `past_due` - Past Due
478
+ * * `canceled` - Canceled
479
+ * * `incomplete` - Incomplete
480
+ */
481
+ status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
482
+ }): CancelablePromise<PaginatedItemSubscriptionList> {
483
+ return __request(OpenAPI, {
484
+ method: 'GET',
485
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscribers/',
486
+ path: {
487
+ 'item_id': itemId,
488
+ 'item_type': itemType,
489
+ 'platform_key': platformKey,
490
+ },
491
+ query: {
492
+ 'page': page,
493
+ 'page_size': pageSize,
494
+ 'status': status,
495
+ },
496
+ });
497
+ }
498
+ /**
499
+ * Get user subscription
500
+ * Retrieve the current user's subscription to an item.
501
+ * @returns ItemSubscription
502
+ * @throws ApiError
503
+ */
504
+ public static platformsItemsSubscriptionRetrieve({
505
+ itemId,
506
+ itemType,
507
+ platformKey,
508
+ }: {
509
+ itemId: string,
510
+ itemType: string,
511
+ platformKey: string,
512
+ }): CancelablePromise<ItemSubscription> {
513
+ return __request(OpenAPI, {
514
+ method: 'GET',
515
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscription/',
516
+ path: {
517
+ 'item_id': itemId,
518
+ 'item_type': itemType,
519
+ 'platform_key': platformKey,
520
+ },
521
+ });
522
+ }
523
+ /**
524
+ * Cancel subscription
525
+ * Cancel the current user's subscription. Returns a Stripe customer portal URL for recurring subscriptions, or cancels directly for one-time purchases.
526
+ * @returns PortalUrlResponse
527
+ * @throws ApiError
528
+ */
529
+ public static platformsItemsSubscriptionCancelCreate({
530
+ itemId,
531
+ itemType,
532
+ platformKey,
533
+ }: {
534
+ itemId: string,
535
+ itemType: string,
536
+ platformKey: string,
537
+ }): CancelablePromise<PortalUrlResponse> {
538
+ return __request(OpenAPI, {
539
+ method: 'POST',
540
+ url: '/platforms/{platform_key}/items/{item_type}/{item_id}/subscription/cancel/',
541
+ path: {
542
+ 'item_id': itemId,
543
+ 'item_type': itemType,
544
+ 'platform_key': platformKey,
545
+ },
546
+ });
547
+ }
548
+ /**
549
+ * List user subscriptions
550
+ * Paginated list of the current user's subscriptions on a platform. Optionally filter by status or item_type.
551
+ * @returns PaginatedItemSubscriptionListList
552
+ * @throws ApiError
553
+ */
554
+ public static platformsMySubscriptionsList({
555
+ platformKey,
556
+ itemType,
557
+ page,
558
+ pageSize,
559
+ status,
560
+ }: {
561
+ platformKey: string,
562
+ /**
563
+ * * `mentor` - mentor
564
+ * * `course` - course
565
+ * * `program` - program
566
+ */
567
+ itemType?: 'mentor' | 'course' | 'program',
568
+ /**
569
+ * A page number within the paginated result set.
570
+ */
571
+ page?: number,
572
+ /**
573
+ * Number of results to return per page.
574
+ */
575
+ pageSize?: number,
576
+ /**
577
+ * * `active` - Active
578
+ * * `free` - Free Tier
579
+ * * `grandfathered` - Grandfathered
580
+ * * `trialing` - Trialing
581
+ * * `past_due` - Past Due
582
+ * * `canceled` - Canceled
583
+ * * `incomplete` - Incomplete
584
+ */
585
+ status?: 'active' | 'free' | 'grandfathered' | 'trialing' | 'past_due' | 'canceled' | 'incomplete',
586
+ }): CancelablePromise<PaginatedItemSubscriptionListList> {
587
+ return __request(OpenAPI, {
588
+ method: 'GET',
589
+ url: '/platforms/{platform_key}/my-subscriptions/',
590
+ path: {
591
+ 'platform_key': platformKey,
592
+ },
593
+ query: {
594
+ 'item_type': itemType,
595
+ 'page': page,
596
+ 'page_size': pageSize,
597
+ 'status': status,
598
+ },
599
+ });
600
+ }
601
+ }