@oppulence/stripe-sync-engine-sdk 0.0.1-alpha

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.
@@ -0,0 +1,2119 @@
1
+ /**
2
+ * Stripe Sync Engine
3
+ * REST API for managing Stripe data synchronization and tenant operations.
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ declare const BASE_PATH: string;
13
+ interface ConfigurationParameters {
14
+ basePath?: string;
15
+ fetchApi?: FetchAPI;
16
+ middleware?: Middleware[];
17
+ queryParamsStringify?: (params: HTTPQuery) => string;
18
+ username?: string;
19
+ password?: string;
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
+ headers?: HTTPHeaders;
23
+ credentials?: RequestCredentials;
24
+ }
25
+ declare class Configuration {
26
+ private configuration;
27
+ constructor(configuration?: ConfigurationParameters);
28
+ set config(configuration: Configuration);
29
+ get basePath(): string;
30
+ get fetchApi(): FetchAPI | undefined;
31
+ get middleware(): Middleware[];
32
+ get queryParamsStringify(): (params: HTTPQuery) => string;
33
+ get username(): string | undefined;
34
+ get password(): string | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
+ get headers(): HTTPHeaders | undefined;
38
+ get credentials(): RequestCredentials | undefined;
39
+ }
40
+ declare const DefaultConfig: Configuration;
41
+ /**
42
+ * This is the base class for all generated API classes.
43
+ */
44
+ declare class BaseAPI {
45
+ protected configuration: Configuration;
46
+ private static readonly jsonRegex;
47
+ private middleware;
48
+ constructor(configuration?: Configuration);
49
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
+ /**
53
+ * Check if the given MIME is a JSON MIME.
54
+ * JSON MIME examples:
55
+ * application/json
56
+ * application/json; charset=UTF8
57
+ * APPLICATION/JSON
58
+ * application/vnd.company+json
59
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
+ * @return True if the given MIME is JSON, false otherwise.
61
+ */
62
+ protected isJsonMime(mime: string | null | undefined): boolean;
63
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
+ private createFetchParams;
65
+ private fetchApi;
66
+ /**
67
+ * Create a shallow clone of `this` by constructing a new instance
68
+ * and then shallow cloning data members.
69
+ */
70
+ private clone;
71
+ }
72
+ declare class ResponseError extends Error {
73
+ response: Response;
74
+ name: 'ResponseError';
75
+ constructor(response: Response, msg?: string);
76
+ }
77
+ declare class FetchError extends Error {
78
+ cause: Error;
79
+ name: 'FetchError';
80
+ constructor(cause: Error, msg?: string);
81
+ }
82
+ declare class RequiredError extends Error {
83
+ field: string;
84
+ name: 'RequiredError';
85
+ constructor(field: string, msg?: string);
86
+ }
87
+ declare const COLLECTION_FORMATS: {
88
+ csv: string;
89
+ ssv: string;
90
+ tsv: string;
91
+ pipes: string;
92
+ };
93
+ type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ type Json = any;
95
+ type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ type HTTPHeaders = {
97
+ [key: string]: string;
98
+ };
99
+ type HTTPQuery = {
100
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
+ };
102
+ type HTTPBody = Json | FormData | URLSearchParams;
103
+ type HTTPRequestInit = {
104
+ headers?: HTTPHeaders;
105
+ method: HTTPMethod;
106
+ credentials?: RequestCredentials;
107
+ body?: HTTPBody;
108
+ };
109
+ type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ type InitOverrideFunction = (requestContext: {
111
+ init: HTTPRequestInit;
112
+ context: RequestOpts;
113
+ }) => Promise<RequestInit>;
114
+ interface FetchParams {
115
+ url: string;
116
+ init: RequestInit;
117
+ }
118
+ interface RequestOpts {
119
+ path: string;
120
+ method: HTTPMethod;
121
+ headers: HTTPHeaders;
122
+ query?: HTTPQuery;
123
+ body?: HTTPBody;
124
+ }
125
+ declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ declare function mapValues(data: any, fn: (item: any) => any): {};
127
+ declare function canConsumeForm(consumes: Consume[]): boolean;
128
+ interface Consume {
129
+ contentType: string;
130
+ }
131
+ interface RequestContext {
132
+ fetch: FetchAPI;
133
+ url: string;
134
+ init: RequestInit;
135
+ }
136
+ interface ResponseContext {
137
+ fetch: FetchAPI;
138
+ url: string;
139
+ init: RequestInit;
140
+ response: Response;
141
+ }
142
+ interface ErrorContext {
143
+ fetch: FetchAPI;
144
+ url: string;
145
+ init: RequestInit;
146
+ error: unknown;
147
+ response?: Response;
148
+ }
149
+ interface Middleware {
150
+ pre?(context: RequestContext): Promise<FetchParams | void>;
151
+ post?(context: ResponseContext): Promise<Response | void>;
152
+ onError?(context: ErrorContext): Promise<Response | void>;
153
+ }
154
+ interface ApiResponse<T> {
155
+ raw: Response;
156
+ value(): Promise<T>;
157
+ }
158
+ interface ResponseTransformer<T> {
159
+ (json: any): T;
160
+ }
161
+ declare class JSONApiResponse<T> {
162
+ raw: Response;
163
+ private transformer;
164
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
165
+ value(): Promise<T>;
166
+ }
167
+ declare class VoidApiResponse {
168
+ raw: Response;
169
+ constructor(raw: Response);
170
+ value(): Promise<void>;
171
+ }
172
+ declare class BlobApiResponse {
173
+ raw: Response;
174
+ constructor(raw: Response);
175
+ value(): Promise<Blob>;
176
+ }
177
+ declare class TextApiResponse {
178
+ raw: Response;
179
+ constructor(raw: Response);
180
+ value(): Promise<string>;
181
+ }
182
+
183
+ /**
184
+ * Stripe Sync Engine
185
+ * REST API for managing Stripe data synchronization and tenant operations.
186
+ *
187
+ * The version of the OpenAPI document: 0.0.1
188
+ *
189
+ *
190
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
191
+ * https://openapi-generator.tech
192
+ * Do not edit the class manually.
193
+ */
194
+ /**
195
+ *
196
+ * @export
197
+ * @interface ListTenants200ResponseDataInner
198
+ */
199
+ interface ListTenants200ResponseDataInner {
200
+ /**
201
+ *
202
+ * @type {string}
203
+ * @memberof ListTenants200ResponseDataInner
204
+ */
205
+ id?: string;
206
+ /**
207
+ *
208
+ * @type {string}
209
+ * @memberof ListTenants200ResponseDataInner
210
+ */
211
+ slug?: string;
212
+ /**
213
+ *
214
+ * @type {string}
215
+ * @memberof ListTenants200ResponseDataInner
216
+ */
217
+ name?: string;
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof ListTenants200ResponseDataInner
222
+ */
223
+ stripeAccountId?: string;
224
+ /**
225
+ *
226
+ * @type {string}
227
+ * @memberof ListTenants200ResponseDataInner
228
+ */
229
+ status?: ListTenants200ResponseDataInnerStatusEnum;
230
+ /**
231
+ *
232
+ * @type {boolean}
233
+ * @memberof ListTenants200ResponseDataInner
234
+ */
235
+ syncEnabled?: boolean;
236
+ /**
237
+ *
238
+ * @type {boolean}
239
+ * @memberof ListTenants200ResponseDataInner
240
+ */
241
+ webhookEnabled?: boolean;
242
+ /**
243
+ *
244
+ * @type {boolean}
245
+ * @memberof ListTenants200ResponseDataInner
246
+ */
247
+ autoExpandLists?: boolean;
248
+ /**
249
+ *
250
+ * @type {boolean}
251
+ * @memberof ListTenants200ResponseDataInner
252
+ */
253
+ backfillRelatedEntities?: boolean;
254
+ /**
255
+ *
256
+ * @type {number}
257
+ * @memberof ListTenants200ResponseDataInner
258
+ */
259
+ maxWebhookEventsPerHour?: number;
260
+ /**
261
+ *
262
+ * @type {number}
263
+ * @memberof ListTenants200ResponseDataInner
264
+ */
265
+ maxApiCallsPerHour?: number;
266
+ /**
267
+ *
268
+ * @type {Date}
269
+ * @memberof ListTenants200ResponseDataInner
270
+ */
271
+ createdAt?: Date;
272
+ /**
273
+ *
274
+ * @type {Date}
275
+ * @memberof ListTenants200ResponseDataInner
276
+ */
277
+ updatedAt?: Date;
278
+ /**
279
+ *
280
+ * @type {Date}
281
+ * @memberof ListTenants200ResponseDataInner
282
+ */
283
+ lastSyncAt?: Date;
284
+ }
285
+ /**
286
+ * @export
287
+ */
288
+ declare const ListTenants200ResponseDataInnerStatusEnum: {
289
+ readonly Active: "active";
290
+ readonly Suspended: "suspended";
291
+ readonly Deprovisioning: "deprovisioning";
292
+ };
293
+ type ListTenants200ResponseDataInnerStatusEnum = (typeof ListTenants200ResponseDataInnerStatusEnum)[keyof typeof ListTenants200ResponseDataInnerStatusEnum];
294
+ /**
295
+ * Check if a given object implements the ListTenants200ResponseDataInner interface.
296
+ */
297
+ declare function instanceOfListTenants200ResponseDataInner(value: object): value is ListTenants200ResponseDataInner;
298
+ declare function ListTenants200ResponseDataInnerFromJSON(json: any): ListTenants200ResponseDataInner;
299
+ declare function ListTenants200ResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTenants200ResponseDataInner;
300
+ declare function ListTenants200ResponseDataInnerToJSON(value?: ListTenants200ResponseDataInner | null): any;
301
+
302
+ /**
303
+ * Stripe Sync Engine
304
+ * REST API for managing Stripe data synchronization and tenant operations.
305
+ *
306
+ * The version of the OpenAPI document: 0.0.1
307
+ *
308
+ *
309
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
310
+ * https://openapi-generator.tech
311
+ * Do not edit the class manually.
312
+ */
313
+
314
+ /**
315
+ * Tenant created successfully
316
+ * @export
317
+ * @interface CreateTenant201Response
318
+ */
319
+ interface CreateTenant201Response {
320
+ /**
321
+ *
322
+ * @type {number}
323
+ * @memberof CreateTenant201Response
324
+ */
325
+ statusCode?: number;
326
+ /**
327
+ *
328
+ * @type {number}
329
+ * @memberof CreateTenant201Response
330
+ */
331
+ ts?: number;
332
+ /**
333
+ *
334
+ * @type {ListTenants200ResponseDataInner}
335
+ * @memberof CreateTenant201Response
336
+ */
337
+ data?: ListTenants200ResponseDataInner;
338
+ }
339
+ /**
340
+ * Check if a given object implements the CreateTenant201Response interface.
341
+ */
342
+ declare function instanceOfCreateTenant201Response(value: object): value is CreateTenant201Response;
343
+ declare function CreateTenant201ResponseFromJSON(json: any): CreateTenant201Response;
344
+ declare function CreateTenant201ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTenant201Response;
345
+ declare function CreateTenant201ResponseToJSON(value?: CreateTenant201Response | null): any;
346
+
347
+ /**
348
+ * Stripe Sync Engine
349
+ * REST API for managing Stripe data synchronization and tenant operations.
350
+ *
351
+ * The version of the OpenAPI document: 0.0.1
352
+ *
353
+ *
354
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
355
+ * https://openapi-generator.tech
356
+ * Do not edit the class manually.
357
+ */
358
+ /**
359
+ *
360
+ * @export
361
+ * @interface CreateTenantRequest
362
+ */
363
+ interface CreateTenantRequest {
364
+ /**
365
+ * Unique slug identifier (lowercase letters, numbers, and hyphens)
366
+ * @type {string}
367
+ * @memberof CreateTenantRequest
368
+ */
369
+ slug: string;
370
+ /**
371
+ *
372
+ * @type {string}
373
+ * @memberof CreateTenantRequest
374
+ */
375
+ name: string;
376
+ /**
377
+ *
378
+ * @type {string}
379
+ * @memberof CreateTenantRequest
380
+ */
381
+ stripeAccountId: string;
382
+ /**
383
+ *
384
+ * @type {string}
385
+ * @memberof CreateTenantRequest
386
+ */
387
+ stripeSecretKey: string;
388
+ /**
389
+ *
390
+ * @type {string}
391
+ * @memberof CreateTenantRequest
392
+ */
393
+ stripeWebhookSecret: string;
394
+ /**
395
+ *
396
+ * @type {string}
397
+ * @memberof CreateTenantRequest
398
+ */
399
+ stripePublishableKey?: string;
400
+ /**
401
+ *
402
+ * @type {boolean}
403
+ * @memberof CreateTenantRequest
404
+ */
405
+ autoExpandLists?: boolean;
406
+ /**
407
+ *
408
+ * @type {boolean}
409
+ * @memberof CreateTenantRequest
410
+ */
411
+ backfillRelatedEntities?: boolean;
412
+ }
413
+ /**
414
+ * Check if a given object implements the CreateTenantRequest interface.
415
+ */
416
+ declare function instanceOfCreateTenantRequest(value: object): value is CreateTenantRequest;
417
+ declare function CreateTenantRequestFromJSON(json: any): CreateTenantRequest;
418
+ declare function CreateTenantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTenantRequest;
419
+ declare function CreateTenantRequestToJSON(value?: CreateTenantRequest | null): any;
420
+
421
+ /**
422
+ * Stripe Sync Engine
423
+ * REST API for managing Stripe data synchronization and tenant operations.
424
+ *
425
+ * The version of the OpenAPI document: 0.0.1
426
+ *
427
+ *
428
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
429
+ * https://openapi-generator.tech
430
+ * Do not edit the class manually.
431
+ */
432
+ /**
433
+ *
434
+ * @export
435
+ * @interface Def0Details
436
+ */
437
+ interface Def0Details {
438
+ }
439
+ /**
440
+ * Check if a given object implements the Def0Details interface.
441
+ */
442
+ declare function instanceOfDef0Details(value: object): value is Def0Details;
443
+ declare function Def0DetailsFromJSON(json: any): Def0Details;
444
+ declare function Def0DetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Def0Details;
445
+ declare function Def0DetailsToJSON(value?: Def0Details | null): any;
446
+
447
+ /**
448
+ * Stripe Sync Engine
449
+ * REST API for managing Stripe data synchronization and tenant operations.
450
+ *
451
+ * The version of the OpenAPI document: 0.0.1
452
+ *
453
+ *
454
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
455
+ * https://openapi-generator.tech
456
+ * Do not edit the class manually.
457
+ */
458
+
459
+ /**
460
+ *
461
+ * @export
462
+ * @interface Def0
463
+ */
464
+ interface Def0 {
465
+ [key: string]: any | any;
466
+ /**
467
+ *
468
+ * @type {number}
469
+ * @memberof Def0
470
+ */
471
+ statusCode: number;
472
+ /**
473
+ *
474
+ * @type {string}
475
+ * @memberof Def0
476
+ */
477
+ error: string;
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof Def0
482
+ */
483
+ message: string;
484
+ /**
485
+ *
486
+ * @type {string}
487
+ * @memberof Def0
488
+ */
489
+ correlationId?: string;
490
+ /**
491
+ *
492
+ * @type {Date}
493
+ * @memberof Def0
494
+ */
495
+ timestamp?: Date;
496
+ /**
497
+ *
498
+ * @type {Def0Details}
499
+ * @memberof Def0
500
+ */
501
+ details?: Def0Details;
502
+ }
503
+ /**
504
+ * Check if a given object implements the Def0 interface.
505
+ */
506
+ declare function instanceOfDef0(value: object): value is Def0;
507
+ declare function Def0FromJSON(json: any): Def0;
508
+ declare function Def0FromJSONTyped(json: any, ignoreDiscriminator: boolean): Def0;
509
+ declare function Def0ToJSON(value?: Def0 | null): any;
510
+
511
+ /**
512
+ * Stripe Sync Engine
513
+ * REST API for managing Stripe data synchronization and tenant operations.
514
+ *
515
+ * The version of the OpenAPI document: 0.0.1
516
+ *
517
+ *
518
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
519
+ * https://openapi-generator.tech
520
+ * Do not edit the class manually.
521
+ */
522
+
523
+ /**
524
+ * Tenant details retrieved successfully
525
+ * @export
526
+ * @interface GetTenant200Response
527
+ */
528
+ interface GetTenant200Response {
529
+ /**
530
+ *
531
+ * @type {number}
532
+ * @memberof GetTenant200Response
533
+ */
534
+ statusCode?: number;
535
+ /**
536
+ *
537
+ * @type {number}
538
+ * @memberof GetTenant200Response
539
+ */
540
+ ts?: number;
541
+ /**
542
+ *
543
+ * @type {ListTenants200ResponseDataInner}
544
+ * @memberof GetTenant200Response
545
+ */
546
+ data?: ListTenants200ResponseDataInner;
547
+ }
548
+ /**
549
+ * Check if a given object implements the GetTenant200Response interface.
550
+ */
551
+ declare function instanceOfGetTenant200Response(value: object): value is GetTenant200Response;
552
+ declare function GetTenant200ResponseFromJSON(json: any): GetTenant200Response;
553
+ declare function GetTenant200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTenant200Response;
554
+ declare function GetTenant200ResponseToJSON(value?: GetTenant200Response | null): any;
555
+
556
+ /**
557
+ * Stripe Sync Engine
558
+ * REST API for managing Stripe data synchronization and tenant operations.
559
+ *
560
+ * The version of the OpenAPI document: 0.0.1
561
+ *
562
+ *
563
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
564
+ * https://openapi-generator.tech
565
+ * Do not edit the class manually.
566
+ */
567
+ /**
568
+ *
569
+ * @export
570
+ * @interface GetTenantHealth200ResponseData
571
+ */
572
+ interface GetTenantHealth200ResponseData {
573
+ /**
574
+ *
575
+ * @type {string}
576
+ * @memberof GetTenantHealth200ResponseData
577
+ */
578
+ tenantId?: string;
579
+ /**
580
+ *
581
+ * @type {string}
582
+ * @memberof GetTenantHealth200ResponseData
583
+ */
584
+ status?: GetTenantHealth200ResponseDataStatusEnum;
585
+ /**
586
+ *
587
+ * @type {Date}
588
+ * @memberof GetTenantHealth200ResponseData
589
+ */
590
+ lastSyncAt?: Date;
591
+ /**
592
+ *
593
+ * @type {number}
594
+ * @memberof GetTenantHealth200ResponseData
595
+ */
596
+ errorCount?: number;
597
+ /**
598
+ *
599
+ * @type {number}
600
+ * @memberof GetTenantHealth200ResponseData
601
+ */
602
+ webhookBacklog?: number;
603
+ /**
604
+ *
605
+ * @type {string}
606
+ * @memberof GetTenantHealth200ResponseData
607
+ */
608
+ lastError?: string;
609
+ }
610
+ /**
611
+ * @export
612
+ */
613
+ declare const GetTenantHealth200ResponseDataStatusEnum: {
614
+ readonly Healthy: "healthy";
615
+ readonly Degraded: "degraded";
616
+ readonly Unhealthy: "unhealthy";
617
+ };
618
+ type GetTenantHealth200ResponseDataStatusEnum = (typeof GetTenantHealth200ResponseDataStatusEnum)[keyof typeof GetTenantHealth200ResponseDataStatusEnum];
619
+ /**
620
+ * Check if a given object implements the GetTenantHealth200ResponseData interface.
621
+ */
622
+ declare function instanceOfGetTenantHealth200ResponseData(value: object): value is GetTenantHealth200ResponseData;
623
+ declare function GetTenantHealth200ResponseDataFromJSON(json: any): GetTenantHealth200ResponseData;
624
+ declare function GetTenantHealth200ResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTenantHealth200ResponseData;
625
+ declare function GetTenantHealth200ResponseDataToJSON(value?: GetTenantHealth200ResponseData | null): any;
626
+
627
+ /**
628
+ * Stripe Sync Engine
629
+ * REST API for managing Stripe data synchronization and tenant operations.
630
+ *
631
+ * The version of the OpenAPI document: 0.0.1
632
+ *
633
+ *
634
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
635
+ * https://openapi-generator.tech
636
+ * Do not edit the class manually.
637
+ */
638
+
639
+ /**
640
+ * Tenant health status retrieved successfully
641
+ * @export
642
+ * @interface GetTenantHealth200Response
643
+ */
644
+ interface GetTenantHealth200Response {
645
+ /**
646
+ *
647
+ * @type {number}
648
+ * @memberof GetTenantHealth200Response
649
+ */
650
+ statusCode?: number;
651
+ /**
652
+ *
653
+ * @type {number}
654
+ * @memberof GetTenantHealth200Response
655
+ */
656
+ ts?: number;
657
+ /**
658
+ *
659
+ * @type {GetTenantHealth200ResponseData}
660
+ * @memberof GetTenantHealth200Response
661
+ */
662
+ data?: GetTenantHealth200ResponseData;
663
+ }
664
+ /**
665
+ * Check if a given object implements the GetTenantHealth200Response interface.
666
+ */
667
+ declare function instanceOfGetTenantHealth200Response(value: object): value is GetTenantHealth200Response;
668
+ declare function GetTenantHealth200ResponseFromJSON(json: any): GetTenantHealth200Response;
669
+ declare function GetTenantHealth200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTenantHealth200Response;
670
+ declare function GetTenantHealth200ResponseToJSON(value?: GetTenantHealth200Response | null): any;
671
+
672
+ /**
673
+ * Stripe Sync Engine
674
+ * REST API for managing Stripe data synchronization and tenant operations.
675
+ *
676
+ * The version of the OpenAPI document: 0.0.1
677
+ *
678
+ *
679
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
680
+ * https://openapi-generator.tech
681
+ * Do not edit the class manually.
682
+ */
683
+ /**
684
+ *
685
+ * @export
686
+ * @interface GetTenantStats200ResponseDataInner
687
+ */
688
+ interface GetTenantStats200ResponseDataInner {
689
+ /**
690
+ *
691
+ * @type {Date}
692
+ * @memberof GetTenantStats200ResponseDataInner
693
+ */
694
+ date?: Date;
695
+ /**
696
+ *
697
+ * @type {number}
698
+ * @memberof GetTenantStats200ResponseDataInner
699
+ */
700
+ webhookEventsProcessed?: number;
701
+ /**
702
+ *
703
+ * @type {number}
704
+ * @memberof GetTenantStats200ResponseDataInner
705
+ */
706
+ apiCallsMade?: number;
707
+ /**
708
+ *
709
+ * @type {number}
710
+ * @memberof GetTenantStats200ResponseDataInner
711
+ */
712
+ recordsSynced?: number;
713
+ /**
714
+ *
715
+ * @type {number}
716
+ * @memberof GetTenantStats200ResponseDataInner
717
+ */
718
+ avgWebhookProcessingMs?: number;
719
+ /**
720
+ *
721
+ * @type {number}
722
+ * @memberof GetTenantStats200ResponseDataInner
723
+ */
724
+ maxWebhookProcessingMs?: number;
725
+ /**
726
+ *
727
+ * @type {number}
728
+ * @memberof GetTenantStats200ResponseDataInner
729
+ */
730
+ syncErrorsCount?: number;
731
+ /**
732
+ *
733
+ * @type {number}
734
+ * @memberof GetTenantStats200ResponseDataInner
735
+ */
736
+ databaseQueriesCount?: number;
737
+ /**
738
+ *
739
+ * @type {number}
740
+ * @memberof GetTenantStats200ResponseDataInner
741
+ */
742
+ avgDatabaseQueryMs?: number;
743
+ }
744
+ /**
745
+ * Check if a given object implements the GetTenantStats200ResponseDataInner interface.
746
+ */
747
+ declare function instanceOfGetTenantStats200ResponseDataInner(value: object): value is GetTenantStats200ResponseDataInner;
748
+ declare function GetTenantStats200ResponseDataInnerFromJSON(json: any): GetTenantStats200ResponseDataInner;
749
+ declare function GetTenantStats200ResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTenantStats200ResponseDataInner;
750
+ declare function GetTenantStats200ResponseDataInnerToJSON(value?: GetTenantStats200ResponseDataInner | null): any;
751
+
752
+ /**
753
+ * Stripe Sync Engine
754
+ * REST API for managing Stripe data synchronization and tenant operations.
755
+ *
756
+ * The version of the OpenAPI document: 0.0.1
757
+ *
758
+ *
759
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
760
+ * https://openapi-generator.tech
761
+ * Do not edit the class manually.
762
+ */
763
+
764
+ /**
765
+ * Tenant statistics retrieved successfully
766
+ * @export
767
+ * @interface GetTenantStats200Response
768
+ */
769
+ interface GetTenantStats200Response {
770
+ /**
771
+ *
772
+ * @type {number}
773
+ * @memberof GetTenantStats200Response
774
+ */
775
+ statusCode?: number;
776
+ /**
777
+ *
778
+ * @type {number}
779
+ * @memberof GetTenantStats200Response
780
+ */
781
+ ts?: number;
782
+ /**
783
+ *
784
+ * @type {Array<GetTenantStats200ResponseDataInner>}
785
+ * @memberof GetTenantStats200Response
786
+ */
787
+ data?: Array<GetTenantStats200ResponseDataInner>;
788
+ }
789
+ /**
790
+ * Check if a given object implements the GetTenantStats200Response interface.
791
+ */
792
+ declare function instanceOfGetTenantStats200Response(value: object): value is GetTenantStats200Response;
793
+ declare function GetTenantStats200ResponseFromJSON(json: any): GetTenantStats200Response;
794
+ declare function GetTenantStats200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetTenantStats200Response;
795
+ declare function GetTenantStats200ResponseToJSON(value?: GetTenantStats200Response | null): any;
796
+
797
+ /**
798
+ * Stripe Sync Engine
799
+ * REST API for managing Stripe data synchronization and tenant operations.
800
+ *
801
+ * The version of the OpenAPI document: 0.0.1
802
+ *
803
+ *
804
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
805
+ * https://openapi-generator.tech
806
+ * Do not edit the class manually.
807
+ */
808
+ /**
809
+ *
810
+ * @export
811
+ * @interface HealthGet200Response
812
+ */
813
+ interface HealthGet200Response {
814
+ /**
815
+ *
816
+ * @type {string}
817
+ * @memberof HealthGet200Response
818
+ */
819
+ status?: string;
820
+ /**
821
+ *
822
+ * @type {string}
823
+ * @memberof HealthGet200Response
824
+ */
825
+ timestamp?: string;
826
+ /**
827
+ *
828
+ * @type {number}
829
+ * @memberof HealthGet200Response
830
+ */
831
+ uptime?: number;
832
+ }
833
+ /**
834
+ * Check if a given object implements the HealthGet200Response interface.
835
+ */
836
+ declare function instanceOfHealthGet200Response(value: object): value is HealthGet200Response;
837
+ declare function HealthGet200ResponseFromJSON(json: any): HealthGet200Response;
838
+ declare function HealthGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthGet200Response;
839
+ declare function HealthGet200ResponseToJSON(value?: HealthGet200Response | null): any;
840
+
841
+ /**
842
+ * Stripe Sync Engine
843
+ * REST API for managing Stripe data synchronization and tenant operations.
844
+ *
845
+ * The version of the OpenAPI document: 0.0.1
846
+ *
847
+ *
848
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
849
+ * https://openapi-generator.tech
850
+ * Do not edit the class manually.
851
+ */
852
+ /**
853
+ *
854
+ * @export
855
+ * @interface HealthReadyGet200Response
856
+ */
857
+ interface HealthReadyGet200Response {
858
+ /**
859
+ *
860
+ * @type {string}
861
+ * @memberof HealthReadyGet200Response
862
+ */
863
+ status?: string;
864
+ /**
865
+ *
866
+ * @type {string}
867
+ * @memberof HealthReadyGet200Response
868
+ */
869
+ timestamp?: string;
870
+ /**
871
+ *
872
+ * @type {number}
873
+ * @memberof HealthReadyGet200Response
874
+ */
875
+ uptime?: number;
876
+ /**
877
+ *
878
+ * @type {string}
879
+ * @memberof HealthReadyGet200Response
880
+ */
881
+ version?: string;
882
+ /**
883
+ *
884
+ * @type {object}
885
+ * @memberof HealthReadyGet200Response
886
+ */
887
+ services?: object;
888
+ /**
889
+ *
890
+ * @type {object}
891
+ * @memberof HealthReadyGet200Response
892
+ */
893
+ metrics?: object;
894
+ /**
895
+ *
896
+ * @type {object}
897
+ * @memberof HealthReadyGet200Response
898
+ */
899
+ circuitBreakers?: object;
900
+ }
901
+ /**
902
+ * Check if a given object implements the HealthReadyGet200Response interface.
903
+ */
904
+ declare function instanceOfHealthReadyGet200Response(value: object): value is HealthReadyGet200Response;
905
+ declare function HealthReadyGet200ResponseFromJSON(json: any): HealthReadyGet200Response;
906
+ declare function HealthReadyGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthReadyGet200Response;
907
+ declare function HealthReadyGet200ResponseToJSON(value?: HealthReadyGet200Response | null): any;
908
+
909
+ /**
910
+ * Stripe Sync Engine
911
+ * REST API for managing Stripe data synchronization and tenant operations.
912
+ *
913
+ * The version of the OpenAPI document: 0.0.1
914
+ *
915
+ *
916
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
917
+ * https://openapi-generator.tech
918
+ * Do not edit the class manually.
919
+ */
920
+
921
+ /**
922
+ * Tenants retrieved successfully
923
+ * @export
924
+ * @interface ListTenants200Response
925
+ */
926
+ interface ListTenants200Response {
927
+ /**
928
+ *
929
+ * @type {number}
930
+ * @memberof ListTenants200Response
931
+ */
932
+ statusCode?: number;
933
+ /**
934
+ *
935
+ * @type {number}
936
+ * @memberof ListTenants200Response
937
+ */
938
+ ts?: number;
939
+ /**
940
+ *
941
+ * @type {Array<ListTenants200ResponseDataInner>}
942
+ * @memberof ListTenants200Response
943
+ */
944
+ data?: Array<ListTenants200ResponseDataInner>;
945
+ }
946
+ /**
947
+ * Check if a given object implements the ListTenants200Response interface.
948
+ */
949
+ declare function instanceOfListTenants200Response(value: object): value is ListTenants200Response;
950
+ declare function ListTenants200ResponseFromJSON(json: any): ListTenants200Response;
951
+ declare function ListTenants200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListTenants200Response;
952
+ declare function ListTenants200ResponseToJSON(value?: ListTenants200Response | null): any;
953
+
954
+ /**
955
+ * Stripe Sync Engine
956
+ * REST API for managing Stripe data synchronization and tenant operations.
957
+ *
958
+ * The version of the OpenAPI document: 0.0.1
959
+ *
960
+ *
961
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
962
+ * https://openapi-generator.tech
963
+ * Do not edit the class manually.
964
+ */
965
+ /**
966
+ * Webhook processed successfully
967
+ * @export
968
+ * @interface ProcessLegacyWebhook200Response
969
+ */
970
+ interface ProcessLegacyWebhook200Response {
971
+ /**
972
+ *
973
+ * @type {boolean}
974
+ * @memberof ProcessLegacyWebhook200Response
975
+ */
976
+ received?: boolean;
977
+ }
978
+ /**
979
+ * Check if a given object implements the ProcessLegacyWebhook200Response interface.
980
+ */
981
+ declare function instanceOfProcessLegacyWebhook200Response(value: object): value is ProcessLegacyWebhook200Response;
982
+ declare function ProcessLegacyWebhook200ResponseFromJSON(json: any): ProcessLegacyWebhook200Response;
983
+ declare function ProcessLegacyWebhook200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessLegacyWebhook200Response;
984
+ declare function ProcessLegacyWebhook200ResponseToJSON(value?: ProcessLegacyWebhook200Response | null): any;
985
+
986
+ /**
987
+ * Stripe Sync Engine
988
+ * REST API for managing Stripe data synchronization and tenant operations.
989
+ *
990
+ * The version of the OpenAPI document: 0.0.1
991
+ *
992
+ *
993
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
994
+ * https://openapi-generator.tech
995
+ * Do not edit the class manually.
996
+ */
997
+ /**
998
+ * Sync completed successfully
999
+ * @export
1000
+ * @interface SyncBackfill200Response
1001
+ */
1002
+ interface SyncBackfill200Response {
1003
+ [key: string]: any | any;
1004
+ /**
1005
+ *
1006
+ * @type {number}
1007
+ * @memberof SyncBackfill200Response
1008
+ */
1009
+ statusCode?: number;
1010
+ /**
1011
+ *
1012
+ * @type {number}
1013
+ * @memberof SyncBackfill200Response
1014
+ */
1015
+ ts?: number;
1016
+ }
1017
+ /**
1018
+ * Check if a given object implements the SyncBackfill200Response interface.
1019
+ */
1020
+ declare function instanceOfSyncBackfill200Response(value: object): value is SyncBackfill200Response;
1021
+ declare function SyncBackfill200ResponseFromJSON(json: any): SyncBackfill200Response;
1022
+ declare function SyncBackfill200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncBackfill200Response;
1023
+ declare function SyncBackfill200ResponseToJSON(value?: SyncBackfill200Response | null): any;
1024
+
1025
+ /**
1026
+ * Stripe Sync Engine
1027
+ * REST API for managing Stripe data synchronization and tenant operations.
1028
+ *
1029
+ * The version of the OpenAPI document: 0.0.1
1030
+ *
1031
+ *
1032
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1033
+ * https://openapi-generator.tech
1034
+ * Do not edit the class manually.
1035
+ */
1036
+ /**
1037
+ *
1038
+ * @export
1039
+ * @interface SyncBackfillRequestCreated
1040
+ */
1041
+ interface SyncBackfillRequestCreated {
1042
+ /**
1043
+ * Greater than timestamp (seconds since epoch)
1044
+ * @type {number}
1045
+ * @memberof SyncBackfillRequestCreated
1046
+ */
1047
+ gt?: number;
1048
+ /**
1049
+ * Greater than or equal timestamp (seconds since epoch)
1050
+ * @type {number}
1051
+ * @memberof SyncBackfillRequestCreated
1052
+ */
1053
+ gte?: number;
1054
+ /**
1055
+ * Less than timestamp (seconds since epoch)
1056
+ * @type {number}
1057
+ * @memberof SyncBackfillRequestCreated
1058
+ */
1059
+ lt?: number;
1060
+ /**
1061
+ * Less than or equal timestamp (seconds since epoch)
1062
+ * @type {number}
1063
+ * @memberof SyncBackfillRequestCreated
1064
+ */
1065
+ lte?: number;
1066
+ }
1067
+ /**
1068
+ * Check if a given object implements the SyncBackfillRequestCreated interface.
1069
+ */
1070
+ declare function instanceOfSyncBackfillRequestCreated(value: object): value is SyncBackfillRequestCreated;
1071
+ declare function SyncBackfillRequestCreatedFromJSON(json: any): SyncBackfillRequestCreated;
1072
+ declare function SyncBackfillRequestCreatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncBackfillRequestCreated;
1073
+ declare function SyncBackfillRequestCreatedToJSON(value?: SyncBackfillRequestCreated | null): any;
1074
+
1075
+ /**
1076
+ * Stripe Sync Engine
1077
+ * REST API for managing Stripe data synchronization and tenant operations.
1078
+ *
1079
+ * The version of the OpenAPI document: 0.0.1
1080
+ *
1081
+ *
1082
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1083
+ * https://openapi-generator.tech
1084
+ * Do not edit the class manually.
1085
+ */
1086
+
1087
+ /**
1088
+ *
1089
+ * @export
1090
+ * @interface SyncBackfillRequest
1091
+ */
1092
+ interface SyncBackfillRequest {
1093
+ /**
1094
+ *
1095
+ * @type {SyncBackfillRequestCreated}
1096
+ * @memberof SyncBackfillRequest
1097
+ */
1098
+ created?: SyncBackfillRequestCreated;
1099
+ /**
1100
+ * Stripe object type to sync
1101
+ * @type {string}
1102
+ * @memberof SyncBackfillRequest
1103
+ */
1104
+ object?: SyncBackfillRequestObjectEnum;
1105
+ /**
1106
+ * Whether to automatically backfill related entities
1107
+ * @type {boolean}
1108
+ * @memberof SyncBackfillRequest
1109
+ */
1110
+ backfillRelatedEntities?: boolean;
1111
+ }
1112
+ /**
1113
+ * @export
1114
+ */
1115
+ declare const SyncBackfillRequestObjectEnum: {
1116
+ readonly All: "all";
1117
+ readonly Customer: "customer";
1118
+ readonly Invoice: "invoice";
1119
+ readonly Price: "price";
1120
+ readonly Product: "product";
1121
+ readonly Subscription: "subscription";
1122
+ readonly SubscriptionSchedules: "subscription_schedules";
1123
+ readonly SetupIntent: "setup_intent";
1124
+ readonly PaymentMethod: "payment_method";
1125
+ readonly Dispute: "dispute";
1126
+ readonly Charge: "charge";
1127
+ readonly PaymentIntent: "payment_intent";
1128
+ readonly Plan: "plan";
1129
+ readonly TaxId: "tax_id";
1130
+ readonly CreditNote: "credit_note";
1131
+ readonly EarlyFraudWarning: "early_fraud_warning";
1132
+ readonly Refund: "refund";
1133
+ };
1134
+ type SyncBackfillRequestObjectEnum = (typeof SyncBackfillRequestObjectEnum)[keyof typeof SyncBackfillRequestObjectEnum];
1135
+ /**
1136
+ * Check if a given object implements the SyncBackfillRequest interface.
1137
+ */
1138
+ declare function instanceOfSyncBackfillRequest(value: object): value is SyncBackfillRequest;
1139
+ declare function SyncBackfillRequestFromJSON(json: any): SyncBackfillRequest;
1140
+ declare function SyncBackfillRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncBackfillRequest;
1141
+ declare function SyncBackfillRequestToJSON(value?: SyncBackfillRequest | null): any;
1142
+
1143
+ /**
1144
+ * Stripe Sync Engine
1145
+ * REST API for managing Stripe data synchronization and tenant operations.
1146
+ *
1147
+ * The version of the OpenAPI document: 0.0.1
1148
+ *
1149
+ *
1150
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1151
+ * https://openapi-generator.tech
1152
+ * Do not edit the class manually.
1153
+ */
1154
+ /**
1155
+ * Single entity sync completed successfully
1156
+ * @export
1157
+ * @interface SyncSingleEntity200Response
1158
+ */
1159
+ interface SyncSingleEntity200Response {
1160
+ /**
1161
+ *
1162
+ * @type {number}
1163
+ * @memberof SyncSingleEntity200Response
1164
+ */
1165
+ statusCode?: number;
1166
+ /**
1167
+ *
1168
+ * @type {number}
1169
+ * @memberof SyncSingleEntity200Response
1170
+ */
1171
+ ts?: number;
1172
+ /**
1173
+ *
1174
+ * @type {object}
1175
+ * @memberof SyncSingleEntity200Response
1176
+ */
1177
+ data?: object;
1178
+ }
1179
+ /**
1180
+ * Check if a given object implements the SyncSingleEntity200Response interface.
1181
+ */
1182
+ declare function instanceOfSyncSingleEntity200Response(value: object): value is SyncSingleEntity200Response;
1183
+ declare function SyncSingleEntity200ResponseFromJSON(json: any): SyncSingleEntity200Response;
1184
+ declare function SyncSingleEntity200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncSingleEntity200Response;
1185
+ declare function SyncSingleEntity200ResponseToJSON(value?: SyncSingleEntity200Response | null): any;
1186
+
1187
+ /**
1188
+ * Stripe Sync Engine
1189
+ * REST API for managing Stripe data synchronization and tenant operations.
1190
+ *
1191
+ * The version of the OpenAPI document: 0.0.1
1192
+ *
1193
+ *
1194
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1195
+ * https://openapi-generator.tech
1196
+ * Do not edit the class manually.
1197
+ */
1198
+ /**
1199
+ *
1200
+ * @export
1201
+ * @interface SyncTenant200ResponseDataValue
1202
+ */
1203
+ interface SyncTenant200ResponseDataValue {
1204
+ /**
1205
+ *
1206
+ * @type {number}
1207
+ * @memberof SyncTenant200ResponseDataValue
1208
+ */
1209
+ synced?: number;
1210
+ }
1211
+ /**
1212
+ * Check if a given object implements the SyncTenant200ResponseDataValue interface.
1213
+ */
1214
+ declare function instanceOfSyncTenant200ResponseDataValue(value: object): value is SyncTenant200ResponseDataValue;
1215
+ declare function SyncTenant200ResponseDataValueFromJSON(json: any): SyncTenant200ResponseDataValue;
1216
+ declare function SyncTenant200ResponseDataValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncTenant200ResponseDataValue;
1217
+ declare function SyncTenant200ResponseDataValueToJSON(value?: SyncTenant200ResponseDataValue | null): any;
1218
+
1219
+ /**
1220
+ * Stripe Sync Engine
1221
+ * REST API for managing Stripe data synchronization and tenant operations.
1222
+ *
1223
+ * The version of the OpenAPI document: 0.0.1
1224
+ *
1225
+ *
1226
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1227
+ * https://openapi-generator.tech
1228
+ * Do not edit the class manually.
1229
+ */
1230
+
1231
+ /**
1232
+ * Sync completed successfully
1233
+ * @export
1234
+ * @interface SyncTenant200Response
1235
+ */
1236
+ interface SyncTenant200Response {
1237
+ /**
1238
+ *
1239
+ * @type {number}
1240
+ * @memberof SyncTenant200Response
1241
+ */
1242
+ statusCode?: number;
1243
+ /**
1244
+ *
1245
+ * @type {number}
1246
+ * @memberof SyncTenant200Response
1247
+ */
1248
+ ts?: number;
1249
+ /**
1250
+ *
1251
+ * @type {{ [key: string]: SyncTenant200ResponseDataValue; }}
1252
+ * @memberof SyncTenant200Response
1253
+ */
1254
+ data?: {
1255
+ [key: string]: SyncTenant200ResponseDataValue;
1256
+ };
1257
+ }
1258
+ /**
1259
+ * Check if a given object implements the SyncTenant200Response interface.
1260
+ */
1261
+ declare function instanceOfSyncTenant200Response(value: object): value is SyncTenant200Response;
1262
+ declare function SyncTenant200ResponseFromJSON(json: any): SyncTenant200Response;
1263
+ declare function SyncTenant200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncTenant200Response;
1264
+ declare function SyncTenant200ResponseToJSON(value?: SyncTenant200Response | null): any;
1265
+
1266
+ /**
1267
+ * Stripe Sync Engine
1268
+ * REST API for managing Stripe data synchronization and tenant operations.
1269
+ *
1270
+ * The version of the OpenAPI document: 0.0.1
1271
+ *
1272
+ *
1273
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1274
+ * https://openapi-generator.tech
1275
+ * Do not edit the class manually.
1276
+ */
1277
+ /**
1278
+ * Daily sync completed successfully
1279
+ * @export
1280
+ * @interface TriggerDailySync200Response
1281
+ */
1282
+ interface TriggerDailySync200Response {
1283
+ [key: string]: any | any;
1284
+ /**
1285
+ *
1286
+ * @type {number}
1287
+ * @memberof TriggerDailySync200Response
1288
+ */
1289
+ statusCode?: number;
1290
+ /**
1291
+ *
1292
+ * @type {number}
1293
+ * @memberof TriggerDailySync200Response
1294
+ */
1295
+ ts?: number;
1296
+ }
1297
+ /**
1298
+ * Check if a given object implements the TriggerDailySync200Response interface.
1299
+ */
1300
+ declare function instanceOfTriggerDailySync200Response(value: object): value is TriggerDailySync200Response;
1301
+ declare function TriggerDailySync200ResponseFromJSON(json: any): TriggerDailySync200Response;
1302
+ declare function TriggerDailySync200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TriggerDailySync200Response;
1303
+ declare function TriggerDailySync200ResponseToJSON(value?: TriggerDailySync200Response | null): any;
1304
+
1305
+ /**
1306
+ * Stripe Sync Engine
1307
+ * REST API for managing Stripe data synchronization and tenant operations.
1308
+ *
1309
+ * The version of the OpenAPI document: 0.0.1
1310
+ *
1311
+ *
1312
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1313
+ * https://openapi-generator.tech
1314
+ * Do not edit the class manually.
1315
+ */
1316
+ /**
1317
+ *
1318
+ * @export
1319
+ * @interface TriggerDailySyncRequest
1320
+ */
1321
+ interface TriggerDailySyncRequest {
1322
+ /**
1323
+ * Stripe object type to sync
1324
+ * @type {string}
1325
+ * @memberof TriggerDailySyncRequest
1326
+ */
1327
+ object?: TriggerDailySyncRequestObjectEnum;
1328
+ /**
1329
+ * Whether to automatically backfill related entities
1330
+ * @type {boolean}
1331
+ * @memberof TriggerDailySyncRequest
1332
+ */
1333
+ backfillRelatedEntities?: boolean;
1334
+ }
1335
+ /**
1336
+ * @export
1337
+ */
1338
+ declare const TriggerDailySyncRequestObjectEnum: {
1339
+ readonly All: "all";
1340
+ readonly Customer: "customer";
1341
+ readonly Invoice: "invoice";
1342
+ readonly Price: "price";
1343
+ readonly Product: "product";
1344
+ readonly Subscription: "subscription";
1345
+ readonly SubscriptionSchedules: "subscription_schedules";
1346
+ readonly SetupIntent: "setup_intent";
1347
+ readonly PaymentMethod: "payment_method";
1348
+ readonly Dispute: "dispute";
1349
+ readonly Charge: "charge";
1350
+ readonly PaymentIntent: "payment_intent";
1351
+ readonly Plan: "plan";
1352
+ readonly TaxId: "tax_id";
1353
+ readonly CreditNote: "credit_note";
1354
+ readonly EarlyFraudWarning: "early_fraud_warning";
1355
+ readonly Refund: "refund";
1356
+ };
1357
+ type TriggerDailySyncRequestObjectEnum = (typeof TriggerDailySyncRequestObjectEnum)[keyof typeof TriggerDailySyncRequestObjectEnum];
1358
+ /**
1359
+ * Check if a given object implements the TriggerDailySyncRequest interface.
1360
+ */
1361
+ declare function instanceOfTriggerDailySyncRequest(value: object): value is TriggerDailySyncRequest;
1362
+ declare function TriggerDailySyncRequestFromJSON(json: any): TriggerDailySyncRequest;
1363
+ declare function TriggerDailySyncRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TriggerDailySyncRequest;
1364
+ declare function TriggerDailySyncRequestToJSON(value?: TriggerDailySyncRequest | null): any;
1365
+
1366
+ /**
1367
+ * Stripe Sync Engine
1368
+ * REST API for managing Stripe data synchronization and tenant operations.
1369
+ *
1370
+ * The version of the OpenAPI document: 0.0.1
1371
+ *
1372
+ *
1373
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1374
+ * https://openapi-generator.tech
1375
+ * Do not edit the class manually.
1376
+ */
1377
+ /**
1378
+ * Monthly sync completed successfully
1379
+ * @export
1380
+ * @interface TriggerMonthlySync200Response
1381
+ */
1382
+ interface TriggerMonthlySync200Response {
1383
+ [key: string]: any | any;
1384
+ /**
1385
+ *
1386
+ * @type {number}
1387
+ * @memberof TriggerMonthlySync200Response
1388
+ */
1389
+ statusCode?: number;
1390
+ /**
1391
+ *
1392
+ * @type {number}
1393
+ * @memberof TriggerMonthlySync200Response
1394
+ */
1395
+ ts?: number;
1396
+ }
1397
+ /**
1398
+ * Check if a given object implements the TriggerMonthlySync200Response interface.
1399
+ */
1400
+ declare function instanceOfTriggerMonthlySync200Response(value: object): value is TriggerMonthlySync200Response;
1401
+ declare function TriggerMonthlySync200ResponseFromJSON(json: any): TriggerMonthlySync200Response;
1402
+ declare function TriggerMonthlySync200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TriggerMonthlySync200Response;
1403
+ declare function TriggerMonthlySync200ResponseToJSON(value?: TriggerMonthlySync200Response | null): any;
1404
+
1405
+ /**
1406
+ * Stripe Sync Engine
1407
+ * REST API for managing Stripe data synchronization and tenant operations.
1408
+ *
1409
+ * The version of the OpenAPI document: 0.0.1
1410
+ *
1411
+ *
1412
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1413
+ * https://openapi-generator.tech
1414
+ * Do not edit the class manually.
1415
+ */
1416
+ /**
1417
+ * Weekly sync completed successfully
1418
+ * @export
1419
+ * @interface TriggerWeeklySync200Response
1420
+ */
1421
+ interface TriggerWeeklySync200Response {
1422
+ [key: string]: any | any;
1423
+ /**
1424
+ *
1425
+ * @type {number}
1426
+ * @memberof TriggerWeeklySync200Response
1427
+ */
1428
+ statusCode?: number;
1429
+ /**
1430
+ *
1431
+ * @type {number}
1432
+ * @memberof TriggerWeeklySync200Response
1433
+ */
1434
+ ts?: number;
1435
+ }
1436
+ /**
1437
+ * Check if a given object implements the TriggerWeeklySync200Response interface.
1438
+ */
1439
+ declare function instanceOfTriggerWeeklySync200Response(value: object): value is TriggerWeeklySync200Response;
1440
+ declare function TriggerWeeklySync200ResponseFromJSON(json: any): TriggerWeeklySync200Response;
1441
+ declare function TriggerWeeklySync200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TriggerWeeklySync200Response;
1442
+ declare function TriggerWeeklySync200ResponseToJSON(value?: TriggerWeeklySync200Response | null): any;
1443
+
1444
+ /**
1445
+ * Stripe Sync Engine
1446
+ * REST API for managing Stripe data synchronization and tenant operations.
1447
+ *
1448
+ * The version of the OpenAPI document: 0.0.1
1449
+ *
1450
+ *
1451
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1452
+ * https://openapi-generator.tech
1453
+ * Do not edit the class manually.
1454
+ */
1455
+
1456
+ /**
1457
+ * Tenant updated successfully
1458
+ * @export
1459
+ * @interface UpdateTenant200Response
1460
+ */
1461
+ interface UpdateTenant200Response {
1462
+ /**
1463
+ *
1464
+ * @type {number}
1465
+ * @memberof UpdateTenant200Response
1466
+ */
1467
+ statusCode?: number;
1468
+ /**
1469
+ *
1470
+ * @type {number}
1471
+ * @memberof UpdateTenant200Response
1472
+ */
1473
+ ts?: number;
1474
+ /**
1475
+ *
1476
+ * @type {ListTenants200ResponseDataInner}
1477
+ * @memberof UpdateTenant200Response
1478
+ */
1479
+ data?: ListTenants200ResponseDataInner;
1480
+ }
1481
+ /**
1482
+ * Check if a given object implements the UpdateTenant200Response interface.
1483
+ */
1484
+ declare function instanceOfUpdateTenant200Response(value: object): value is UpdateTenant200Response;
1485
+ declare function UpdateTenant200ResponseFromJSON(json: any): UpdateTenant200Response;
1486
+ declare function UpdateTenant200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTenant200Response;
1487
+ declare function UpdateTenant200ResponseToJSON(value?: UpdateTenant200Response | null): any;
1488
+
1489
+ /**
1490
+ * Stripe Sync Engine
1491
+ * REST API for managing Stripe data synchronization and tenant operations.
1492
+ *
1493
+ * The version of the OpenAPI document: 0.0.1
1494
+ *
1495
+ *
1496
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1497
+ * https://openapi-generator.tech
1498
+ * Do not edit the class manually.
1499
+ */
1500
+ /**
1501
+ *
1502
+ * @export
1503
+ * @interface UpdateTenantRequest
1504
+ */
1505
+ interface UpdateTenantRequest {
1506
+ /**
1507
+ *
1508
+ * @type {string}
1509
+ * @memberof UpdateTenantRequest
1510
+ */
1511
+ name?: string;
1512
+ /**
1513
+ *
1514
+ * @type {string}
1515
+ * @memberof UpdateTenantRequest
1516
+ */
1517
+ stripeSecretKey?: string;
1518
+ /**
1519
+ *
1520
+ * @type {string}
1521
+ * @memberof UpdateTenantRequest
1522
+ */
1523
+ stripeWebhookSecret?: string;
1524
+ /**
1525
+ *
1526
+ * @type {string}
1527
+ * @memberof UpdateTenantRequest
1528
+ */
1529
+ stripePublishableKey?: string;
1530
+ /**
1531
+ *
1532
+ * @type {string}
1533
+ * @memberof UpdateTenantRequest
1534
+ */
1535
+ status?: UpdateTenantRequestStatusEnum;
1536
+ /**
1537
+ *
1538
+ * @type {boolean}
1539
+ * @memberof UpdateTenantRequest
1540
+ */
1541
+ syncEnabled?: boolean;
1542
+ /**
1543
+ *
1544
+ * @type {boolean}
1545
+ * @memberof UpdateTenantRequest
1546
+ */
1547
+ webhookEnabled?: boolean;
1548
+ /**
1549
+ *
1550
+ * @type {boolean}
1551
+ * @memberof UpdateTenantRequest
1552
+ */
1553
+ autoExpandLists?: boolean;
1554
+ /**
1555
+ *
1556
+ * @type {boolean}
1557
+ * @memberof UpdateTenantRequest
1558
+ */
1559
+ backfillRelatedEntities?: boolean;
1560
+ /**
1561
+ *
1562
+ * @type {number}
1563
+ * @memberof UpdateTenantRequest
1564
+ */
1565
+ maxWebhookEventsPerHour?: number;
1566
+ /**
1567
+ *
1568
+ * @type {number}
1569
+ * @memberof UpdateTenantRequest
1570
+ */
1571
+ maxApiCallsPerHour?: number;
1572
+ }
1573
+ /**
1574
+ * @export
1575
+ */
1576
+ declare const UpdateTenantRequestStatusEnum: {
1577
+ readonly Active: "active";
1578
+ readonly Suspended: "suspended";
1579
+ readonly Deprovisioning: "deprovisioning";
1580
+ };
1581
+ type UpdateTenantRequestStatusEnum = (typeof UpdateTenantRequestStatusEnum)[keyof typeof UpdateTenantRequestStatusEnum];
1582
+ /**
1583
+ * Check if a given object implements the UpdateTenantRequest interface.
1584
+ */
1585
+ declare function instanceOfUpdateTenantRequest(value: object): value is UpdateTenantRequest;
1586
+ declare function UpdateTenantRequestFromJSON(json: any): UpdateTenantRequest;
1587
+ declare function UpdateTenantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTenantRequest;
1588
+ declare function UpdateTenantRequestToJSON(value?: UpdateTenantRequest | null): any;
1589
+
1590
+ /**
1591
+ * Stripe Sync Engine
1592
+ * REST API for managing Stripe data synchronization and tenant operations.
1593
+ *
1594
+ * The version of the OpenAPI document: 0.0.1
1595
+ *
1596
+ *
1597
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1598
+ * https://openapi-generator.tech
1599
+ * Do not edit the class manually.
1600
+ */
1601
+
1602
+ /**
1603
+ * HealthApi - interface
1604
+ *
1605
+ * @export
1606
+ * @interface HealthApiInterface
1607
+ */
1608
+ interface HealthApiInterface {
1609
+ /**
1610
+ * Circuit breaker status
1611
+ * @param {*} [options] Override http request option.
1612
+ * @throws {RequiredError}
1613
+ * @memberof HealthApiInterface
1614
+ */
1615
+ healthCircuitBreakersGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<object>>;
1616
+ /**
1617
+ * Circuit breaker status
1618
+ */
1619
+ healthCircuitBreakersGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<object>;
1620
+ /**
1621
+ * Basic health check
1622
+ * @param {*} [options] Override http request option.
1623
+ * @throws {RequiredError}
1624
+ * @memberof HealthApiInterface
1625
+ */
1626
+ healthGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<HealthGet200Response>>;
1627
+ /**
1628
+ * Basic health check
1629
+ */
1630
+ healthGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<HealthGet200Response>;
1631
+ /**
1632
+ * Application metrics
1633
+ * @param {*} [options] Override http request option.
1634
+ * @throws {RequiredError}
1635
+ * @memberof HealthApiInterface
1636
+ */
1637
+ healthMetricsGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<object>>;
1638
+ /**
1639
+ * Application metrics
1640
+ */
1641
+ healthMetricsGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<object>;
1642
+ /**
1643
+ * Detailed readiness check
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ * @memberof HealthApiInterface
1647
+ */
1648
+ healthReadyGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<HealthReadyGet200Response>>;
1649
+ /**
1650
+ * Detailed readiness check
1651
+ */
1652
+ healthReadyGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<HealthReadyGet200Response>;
1653
+ }
1654
+ /**
1655
+ *
1656
+ */
1657
+ declare class HealthApi extends BaseAPI implements HealthApiInterface {
1658
+ /**
1659
+ * Circuit breaker status
1660
+ */
1661
+ healthCircuitBreakersGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<object>>;
1662
+ /**
1663
+ * Circuit breaker status
1664
+ */
1665
+ healthCircuitBreakersGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<object>;
1666
+ /**
1667
+ * Basic health check
1668
+ */
1669
+ healthGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<HealthGet200Response>>;
1670
+ /**
1671
+ * Basic health check
1672
+ */
1673
+ healthGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<HealthGet200Response>;
1674
+ /**
1675
+ * Application metrics
1676
+ */
1677
+ healthMetricsGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<object>>;
1678
+ /**
1679
+ * Application metrics
1680
+ */
1681
+ healthMetricsGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<object>;
1682
+ /**
1683
+ * Detailed readiness check
1684
+ */
1685
+ healthReadyGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<HealthReadyGet200Response>>;
1686
+ /**
1687
+ * Detailed readiness check
1688
+ */
1689
+ healthReadyGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<HealthReadyGet200Response>;
1690
+ }
1691
+
1692
+ /**
1693
+ * Stripe Sync Engine
1694
+ * REST API for managing Stripe data synchronization and tenant operations.
1695
+ *
1696
+ * The version of the OpenAPI document: 0.0.1
1697
+ *
1698
+ *
1699
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1700
+ * https://openapi-generator.tech
1701
+ * Do not edit the class manually.
1702
+ */
1703
+
1704
+ interface SyncBackfillOperationRequest {
1705
+ syncBackfillRequest?: SyncBackfillRequest;
1706
+ }
1707
+ interface SyncSingleEntityRequest {
1708
+ stripeId: string;
1709
+ }
1710
+ interface TriggerDailySyncOperationRequest {
1711
+ triggerDailySyncRequest?: TriggerDailySyncRequest;
1712
+ }
1713
+ interface TriggerMonthlySyncRequest {
1714
+ triggerDailySyncRequest?: TriggerDailySyncRequest;
1715
+ }
1716
+ interface TriggerWeeklySyncRequest {
1717
+ triggerDailySyncRequest?: TriggerDailySyncRequest;
1718
+ }
1719
+ /**
1720
+ * SyncApi - interface
1721
+ *
1722
+ * @export
1723
+ * @interface SyncApiInterface
1724
+ */
1725
+ interface SyncApiInterface {
1726
+ /**
1727
+ * Sync Stripe data with backfill options
1728
+ * @param {SyncBackfillRequest} [syncBackfillRequest]
1729
+ * @param {*} [options] Override http request option.
1730
+ * @throws {RequiredError}
1731
+ * @memberof SyncApiInterface
1732
+ */
1733
+ syncBackfillRaw(requestParameters: SyncBackfillOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncBackfill200Response>>;
1734
+ /**
1735
+ * Sync Stripe data with backfill options
1736
+ */
1737
+ syncBackfill(requestParameters: SyncBackfillOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncBackfill200Response>;
1738
+ /**
1739
+ * Sync a single Stripe entity by ID
1740
+ * @param {string} stripeId
1741
+ * @param {*} [options] Override http request option.
1742
+ * @throws {RequiredError}
1743
+ * @memberof SyncApiInterface
1744
+ */
1745
+ syncSingleEntityRaw(requestParameters: SyncSingleEntityRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncSingleEntity200Response>>;
1746
+ /**
1747
+ * Sync a single Stripe entity by ID
1748
+ */
1749
+ syncSingleEntity(requestParameters: SyncSingleEntityRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncSingleEntity200Response>;
1750
+ /**
1751
+ * Sync Stripe data for the last 24 hours
1752
+ * @param {TriggerDailySyncRequest} [triggerDailySyncRequest]
1753
+ * @param {*} [options] Override http request option.
1754
+ * @throws {RequiredError}
1755
+ * @memberof SyncApiInterface
1756
+ */
1757
+ triggerDailySyncRaw(requestParameters: TriggerDailySyncOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerDailySync200Response>>;
1758
+ /**
1759
+ * Sync Stripe data for the last 24 hours
1760
+ */
1761
+ triggerDailySync(requestParameters: TriggerDailySyncOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerDailySync200Response>;
1762
+ /**
1763
+ * Sync Stripe data for the last month
1764
+ * @param {TriggerDailySyncRequest} [triggerDailySyncRequest]
1765
+ * @param {*} [options] Override http request option.
1766
+ * @throws {RequiredError}
1767
+ * @memberof SyncApiInterface
1768
+ */
1769
+ triggerMonthlySyncRaw(requestParameters: TriggerMonthlySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerMonthlySync200Response>>;
1770
+ /**
1771
+ * Sync Stripe data for the last month
1772
+ */
1773
+ triggerMonthlySync(requestParameters: TriggerMonthlySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerMonthlySync200Response>;
1774
+ /**
1775
+ * Sync Stripe data for the last 7 days
1776
+ * @param {TriggerDailySyncRequest} [triggerDailySyncRequest]
1777
+ * @param {*} [options] Override http request option.
1778
+ * @throws {RequiredError}
1779
+ * @memberof SyncApiInterface
1780
+ */
1781
+ triggerWeeklySyncRaw(requestParameters: TriggerWeeklySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerWeeklySync200Response>>;
1782
+ /**
1783
+ * Sync Stripe data for the last 7 days
1784
+ */
1785
+ triggerWeeklySync(requestParameters: TriggerWeeklySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerWeeklySync200Response>;
1786
+ }
1787
+ /**
1788
+ *
1789
+ */
1790
+ declare class SyncApi extends BaseAPI implements SyncApiInterface {
1791
+ /**
1792
+ * Sync Stripe data with backfill options
1793
+ */
1794
+ syncBackfillRaw(requestParameters: SyncBackfillOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncBackfill200Response>>;
1795
+ /**
1796
+ * Sync Stripe data with backfill options
1797
+ */
1798
+ syncBackfill(requestParameters?: SyncBackfillOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncBackfill200Response>;
1799
+ /**
1800
+ * Sync a single Stripe entity by ID
1801
+ */
1802
+ syncSingleEntityRaw(requestParameters: SyncSingleEntityRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncSingleEntity200Response>>;
1803
+ /**
1804
+ * Sync a single Stripe entity by ID
1805
+ */
1806
+ syncSingleEntity(requestParameters: SyncSingleEntityRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncSingleEntity200Response>;
1807
+ /**
1808
+ * Sync Stripe data for the last 24 hours
1809
+ */
1810
+ triggerDailySyncRaw(requestParameters: TriggerDailySyncOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerDailySync200Response>>;
1811
+ /**
1812
+ * Sync Stripe data for the last 24 hours
1813
+ */
1814
+ triggerDailySync(requestParameters?: TriggerDailySyncOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerDailySync200Response>;
1815
+ /**
1816
+ * Sync Stripe data for the last month
1817
+ */
1818
+ triggerMonthlySyncRaw(requestParameters: TriggerMonthlySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerMonthlySync200Response>>;
1819
+ /**
1820
+ * Sync Stripe data for the last month
1821
+ */
1822
+ triggerMonthlySync(requestParameters?: TriggerMonthlySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerMonthlySync200Response>;
1823
+ /**
1824
+ * Sync Stripe data for the last 7 days
1825
+ */
1826
+ triggerWeeklySyncRaw(requestParameters: TriggerWeeklySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<TriggerWeeklySync200Response>>;
1827
+ /**
1828
+ * Sync Stripe data for the last 7 days
1829
+ */
1830
+ triggerWeeklySync(requestParameters?: TriggerWeeklySyncRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<TriggerWeeklySync200Response>;
1831
+ }
1832
+
1833
+ /**
1834
+ * Stripe Sync Engine
1835
+ * REST API for managing Stripe data synchronization and tenant operations.
1836
+ *
1837
+ * The version of the OpenAPI document: 0.0.1
1838
+ *
1839
+ *
1840
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1841
+ * https://openapi-generator.tech
1842
+ * Do not edit the class manually.
1843
+ */
1844
+
1845
+ interface CreateTenantOperationRequest {
1846
+ createTenantRequest: CreateTenantRequest;
1847
+ }
1848
+ interface GetTenantRequest {
1849
+ tenantId: string;
1850
+ }
1851
+ interface GetTenantHealthRequest {
1852
+ tenantId: string;
1853
+ }
1854
+ interface GetTenantStatsRequest {
1855
+ tenantId: string;
1856
+ days?: number;
1857
+ }
1858
+ interface ListTenantsRequest {
1859
+ includeInactive?: boolean;
1860
+ }
1861
+ interface SyncTenantRequest {
1862
+ tenantId: string;
1863
+ syncBackfillRequest?: SyncBackfillRequest;
1864
+ }
1865
+ interface UpdateTenantOperationRequest {
1866
+ tenantId: string;
1867
+ updateTenantRequest?: UpdateTenantRequest;
1868
+ }
1869
+ /**
1870
+ * TenantsApi - interface
1871
+ *
1872
+ * @export
1873
+ * @interface TenantsApiInterface
1874
+ */
1875
+ interface TenantsApiInterface {
1876
+ /**
1877
+ * Create a new tenant
1878
+ * @param {CreateTenantRequest} createTenantRequest
1879
+ * @param {*} [options] Override http request option.
1880
+ * @throws {RequiredError}
1881
+ * @memberof TenantsApiInterface
1882
+ */
1883
+ createTenantRaw(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<CreateTenant201Response>>;
1884
+ /**
1885
+ * Create a new tenant
1886
+ */
1887
+ createTenant(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<CreateTenant201Response>;
1888
+ /**
1889
+ * Get tenant details
1890
+ * @param {string} tenantId
1891
+ * @param {*} [options] Override http request option.
1892
+ * @throws {RequiredError}
1893
+ * @memberof TenantsApiInterface
1894
+ */
1895
+ getTenantRaw(requestParameters: GetTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenant200Response>>;
1896
+ /**
1897
+ * Get tenant details
1898
+ */
1899
+ getTenant(requestParameters: GetTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenant200Response>;
1900
+ /**
1901
+ * Get tenant health status
1902
+ * @param {string} tenantId
1903
+ * @param {*} [options] Override http request option.
1904
+ * @throws {RequiredError}
1905
+ * @memberof TenantsApiInterface
1906
+ */
1907
+ getTenantHealthRaw(requestParameters: GetTenantHealthRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenantHealth200Response>>;
1908
+ /**
1909
+ * Get tenant health status
1910
+ */
1911
+ getTenantHealth(requestParameters: GetTenantHealthRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenantHealth200Response>;
1912
+ /**
1913
+ * Get tenant sync statistics
1914
+ * @param {string} tenantId
1915
+ * @param {number} [days]
1916
+ * @param {*} [options] Override http request option.
1917
+ * @throws {RequiredError}
1918
+ * @memberof TenantsApiInterface
1919
+ */
1920
+ getTenantStatsRaw(requestParameters: GetTenantStatsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenantStats200Response>>;
1921
+ /**
1922
+ * Get tenant sync statistics
1923
+ */
1924
+ getTenantStats(requestParameters: GetTenantStatsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenantStats200Response>;
1925
+ /**
1926
+ * Get all tenants
1927
+ * @param {boolean} [includeInactive]
1928
+ * @param {*} [options] Override http request option.
1929
+ * @throws {RequiredError}
1930
+ * @memberof TenantsApiInterface
1931
+ */
1932
+ listTenantsRaw(requestParameters: ListTenantsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ListTenants200Response>>;
1933
+ /**
1934
+ * Get all tenants
1935
+ */
1936
+ listTenants(requestParameters: ListTenantsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ListTenants200Response>;
1937
+ /**
1938
+ * Trigger manual sync for tenant
1939
+ * @param {string} tenantId
1940
+ * @param {SyncBackfillRequest} [syncBackfillRequest]
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ * @memberof TenantsApiInterface
1944
+ */
1945
+ syncTenantRaw(requestParameters: SyncTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncTenant200Response>>;
1946
+ /**
1947
+ * Trigger manual sync for tenant
1948
+ */
1949
+ syncTenant(requestParameters: SyncTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncTenant200Response>;
1950
+ /**
1951
+ * Update tenant configuration
1952
+ * @param {string} tenantId
1953
+ * @param {UpdateTenantRequest} [updateTenantRequest]
1954
+ * @param {*} [options] Override http request option.
1955
+ * @throws {RequiredError}
1956
+ * @memberof TenantsApiInterface
1957
+ */
1958
+ updateTenantRaw(requestParameters: UpdateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<UpdateTenant200Response>>;
1959
+ /**
1960
+ * Update tenant configuration
1961
+ */
1962
+ updateTenant(requestParameters: UpdateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<UpdateTenant200Response>;
1963
+ }
1964
+ /**
1965
+ *
1966
+ */
1967
+ declare class TenantsApi extends BaseAPI implements TenantsApiInterface {
1968
+ /**
1969
+ * Create a new tenant
1970
+ */
1971
+ createTenantRaw(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<CreateTenant201Response>>;
1972
+ /**
1973
+ * Create a new tenant
1974
+ */
1975
+ createTenant(requestParameters: CreateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<CreateTenant201Response>;
1976
+ /**
1977
+ * Get tenant details
1978
+ */
1979
+ getTenantRaw(requestParameters: GetTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenant200Response>>;
1980
+ /**
1981
+ * Get tenant details
1982
+ */
1983
+ getTenant(requestParameters: GetTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenant200Response>;
1984
+ /**
1985
+ * Get tenant health status
1986
+ */
1987
+ getTenantHealthRaw(requestParameters: GetTenantHealthRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenantHealth200Response>>;
1988
+ /**
1989
+ * Get tenant health status
1990
+ */
1991
+ getTenantHealth(requestParameters: GetTenantHealthRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenantHealth200Response>;
1992
+ /**
1993
+ * Get tenant sync statistics
1994
+ */
1995
+ getTenantStatsRaw(requestParameters: GetTenantStatsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<GetTenantStats200Response>>;
1996
+ /**
1997
+ * Get tenant sync statistics
1998
+ */
1999
+ getTenantStats(requestParameters: GetTenantStatsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<GetTenantStats200Response>;
2000
+ /**
2001
+ * Get all tenants
2002
+ */
2003
+ listTenantsRaw(requestParameters: ListTenantsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ListTenants200Response>>;
2004
+ /**
2005
+ * Get all tenants
2006
+ */
2007
+ listTenants(requestParameters?: ListTenantsRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ListTenants200Response>;
2008
+ /**
2009
+ * Trigger manual sync for tenant
2010
+ */
2011
+ syncTenantRaw(requestParameters: SyncTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<SyncTenant200Response>>;
2012
+ /**
2013
+ * Trigger manual sync for tenant
2014
+ */
2015
+ syncTenant(requestParameters: SyncTenantRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SyncTenant200Response>;
2016
+ /**
2017
+ * Update tenant configuration
2018
+ */
2019
+ updateTenantRaw(requestParameters: UpdateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<UpdateTenant200Response>>;
2020
+ /**
2021
+ * Update tenant configuration
2022
+ */
2023
+ updateTenant(requestParameters: UpdateTenantOperationRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<UpdateTenant200Response>;
2024
+ }
2025
+
2026
+ /**
2027
+ * Stripe Sync Engine
2028
+ * REST API for managing Stripe data synchronization and tenant operations.
2029
+ *
2030
+ * The version of the OpenAPI document: 0.0.1
2031
+ *
2032
+ *
2033
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2034
+ * https://openapi-generator.tech
2035
+ * Do not edit the class manually.
2036
+ */
2037
+
2038
+ interface WebhooksStripePostRequest {
2039
+ apiKey?: string;
2040
+ tenantId?: string;
2041
+ }
2042
+ interface WebhooksStripeTenantIdPostRequest {
2043
+ tenantId: string;
2044
+ }
2045
+ /**
2046
+ * WebhooksApi - interface
2047
+ *
2048
+ * @export
2049
+ * @interface WebhooksApiInterface
2050
+ */
2051
+ interface WebhooksApiInterface {
2052
+ /**
2053
+ * Process Stripe webhook (legacy single-tenant)
2054
+ * @param {*} [options] Override http request option.
2055
+ * @throws {RequiredError}
2056
+ * @memberof WebhooksApiInterface
2057
+ */
2058
+ processLegacyWebhookRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2059
+ /**
2060
+ * Process Stripe webhook (legacy single-tenant)
2061
+ */
2062
+ processLegacyWebhook(initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2063
+ /**
2064
+ * Process Stripe webhook with tenant resolution
2065
+ * @param {string} [apiKey]
2066
+ * @param {string} [tenantId]
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ * @memberof WebhooksApiInterface
2070
+ */
2071
+ webhooksStripePostRaw(requestParameters: WebhooksStripePostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2072
+ /**
2073
+ * Process Stripe webhook with tenant resolution
2074
+ */
2075
+ webhooksStripePost(requestParameters: WebhooksStripePostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2076
+ /**
2077
+ * Process Stripe webhook for specific tenant
2078
+ * @param {string} tenantId
2079
+ * @param {*} [options] Override http request option.
2080
+ * @throws {RequiredError}
2081
+ * @memberof WebhooksApiInterface
2082
+ */
2083
+ webhooksStripeTenantIdPostRaw(requestParameters: WebhooksStripeTenantIdPostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2084
+ /**
2085
+ * Process Stripe webhook for specific tenant
2086
+ */
2087
+ webhooksStripeTenantIdPost(requestParameters: WebhooksStripeTenantIdPostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2088
+ }
2089
+ /**
2090
+ *
2091
+ */
2092
+ declare class WebhooksApi extends BaseAPI implements WebhooksApiInterface {
2093
+ /**
2094
+ * Process Stripe webhook (legacy single-tenant)
2095
+ */
2096
+ processLegacyWebhookRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2097
+ /**
2098
+ * Process Stripe webhook (legacy single-tenant)
2099
+ */
2100
+ processLegacyWebhook(initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2101
+ /**
2102
+ * Process Stripe webhook with tenant resolution
2103
+ */
2104
+ webhooksStripePostRaw(requestParameters: WebhooksStripePostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2105
+ /**
2106
+ * Process Stripe webhook with tenant resolution
2107
+ */
2108
+ webhooksStripePost(requestParameters?: WebhooksStripePostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2109
+ /**
2110
+ * Process Stripe webhook for specific tenant
2111
+ */
2112
+ webhooksStripeTenantIdPostRaw(requestParameters: WebhooksStripeTenantIdPostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<ProcessLegacyWebhook200Response>>;
2113
+ /**
2114
+ * Process Stripe webhook for specific tenant
2115
+ */
2116
+ webhooksStripeTenantIdPost(requestParameters: WebhooksStripeTenantIdPostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ProcessLegacyWebhook200Response>;
2117
+ }
2118
+
2119
+ export { type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, type CreateTenant201Response, CreateTenant201ResponseFromJSON, CreateTenant201ResponseFromJSONTyped, CreateTenant201ResponseToJSON, type CreateTenantOperationRequest, type CreateTenantRequest, CreateTenantRequestFromJSON, CreateTenantRequestFromJSONTyped, CreateTenantRequestToJSON, type Def0, type Def0Details, Def0DetailsFromJSON, Def0DetailsFromJSONTyped, Def0DetailsToJSON, Def0FromJSON, Def0FromJSONTyped, Def0ToJSON, DefaultConfig, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type GetTenant200Response, GetTenant200ResponseFromJSON, GetTenant200ResponseFromJSONTyped, GetTenant200ResponseToJSON, type GetTenantHealth200Response, type GetTenantHealth200ResponseData, GetTenantHealth200ResponseDataFromJSON, GetTenantHealth200ResponseDataFromJSONTyped, GetTenantHealth200ResponseDataStatusEnum, GetTenantHealth200ResponseDataToJSON, GetTenantHealth200ResponseFromJSON, GetTenantHealth200ResponseFromJSONTyped, GetTenantHealth200ResponseToJSON, type GetTenantHealthRequest, type GetTenantRequest, type GetTenantStats200Response, type GetTenantStats200ResponseDataInner, GetTenantStats200ResponseDataInnerFromJSON, GetTenantStats200ResponseDataInnerFromJSONTyped, GetTenantStats200ResponseDataInnerToJSON, GetTenantStats200ResponseFromJSON, GetTenantStats200ResponseFromJSONTyped, GetTenantStats200ResponseToJSON, type GetTenantStatsRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, HealthApi, type HealthApiInterface, type HealthGet200Response, HealthGet200ResponseFromJSON, HealthGet200ResponseFromJSONTyped, HealthGet200ResponseToJSON, type HealthReadyGet200Response, HealthReadyGet200ResponseFromJSON, HealthReadyGet200ResponseFromJSONTyped, HealthReadyGet200ResponseToJSON, type InitOverrideFunction, JSONApiResponse, type Json, type ListTenants200Response, type ListTenants200ResponseDataInner, ListTenants200ResponseDataInnerFromJSON, ListTenants200ResponseDataInnerFromJSONTyped, ListTenants200ResponseDataInnerStatusEnum, ListTenants200ResponseDataInnerToJSON, ListTenants200ResponseFromJSON, ListTenants200ResponseFromJSONTyped, ListTenants200ResponseToJSON, type ListTenantsRequest, type Middleware, type ModelPropertyNaming, type ProcessLegacyWebhook200Response, ProcessLegacyWebhook200ResponseFromJSON, ProcessLegacyWebhook200ResponseFromJSONTyped, ProcessLegacyWebhook200ResponseToJSON, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, SyncApi, type SyncApiInterface, type SyncBackfill200Response, SyncBackfill200ResponseFromJSON, SyncBackfill200ResponseFromJSONTyped, SyncBackfill200ResponseToJSON, type SyncBackfillOperationRequest, type SyncBackfillRequest, type SyncBackfillRequestCreated, SyncBackfillRequestCreatedFromJSON, SyncBackfillRequestCreatedFromJSONTyped, SyncBackfillRequestCreatedToJSON, SyncBackfillRequestFromJSON, SyncBackfillRequestFromJSONTyped, SyncBackfillRequestObjectEnum, SyncBackfillRequestToJSON, type SyncSingleEntity200Response, SyncSingleEntity200ResponseFromJSON, SyncSingleEntity200ResponseFromJSONTyped, SyncSingleEntity200ResponseToJSON, type SyncSingleEntityRequest, type SyncTenant200Response, type SyncTenant200ResponseDataValue, SyncTenant200ResponseDataValueFromJSON, SyncTenant200ResponseDataValueFromJSONTyped, SyncTenant200ResponseDataValueToJSON, SyncTenant200ResponseFromJSON, SyncTenant200ResponseFromJSONTyped, SyncTenant200ResponseToJSON, type SyncTenantRequest, TenantsApi, type TenantsApiInterface, TextApiResponse, type TriggerDailySync200Response, TriggerDailySync200ResponseFromJSON, TriggerDailySync200ResponseFromJSONTyped, TriggerDailySync200ResponseToJSON, type TriggerDailySyncOperationRequest, type TriggerDailySyncRequest, TriggerDailySyncRequestFromJSON, TriggerDailySyncRequestFromJSONTyped, TriggerDailySyncRequestObjectEnum, TriggerDailySyncRequestToJSON, type TriggerMonthlySync200Response, TriggerMonthlySync200ResponseFromJSON, TriggerMonthlySync200ResponseFromJSONTyped, TriggerMonthlySync200ResponseToJSON, type TriggerMonthlySyncRequest, type TriggerWeeklySync200Response, TriggerWeeklySync200ResponseFromJSON, TriggerWeeklySync200ResponseFromJSONTyped, TriggerWeeklySync200ResponseToJSON, type TriggerWeeklySyncRequest, type UpdateTenant200Response, UpdateTenant200ResponseFromJSON, UpdateTenant200ResponseFromJSONTyped, UpdateTenant200ResponseToJSON, type UpdateTenantOperationRequest, type UpdateTenantRequest, UpdateTenantRequestFromJSON, UpdateTenantRequestFromJSONTyped, UpdateTenantRequestStatusEnum, UpdateTenantRequestToJSON, VoidApiResponse, WebhooksApi, type WebhooksApiInterface, type WebhooksStripePostRequest, type WebhooksStripeTenantIdPostRequest, canConsumeForm, instanceOfCreateTenant201Response, instanceOfCreateTenantRequest, instanceOfDef0, instanceOfDef0Details, instanceOfGetTenant200Response, instanceOfGetTenantHealth200Response, instanceOfGetTenantHealth200ResponseData, instanceOfGetTenantStats200Response, instanceOfGetTenantStats200ResponseDataInner, instanceOfHealthGet200Response, instanceOfHealthReadyGet200Response, instanceOfListTenants200Response, instanceOfListTenants200ResponseDataInner, instanceOfProcessLegacyWebhook200Response, instanceOfSyncBackfill200Response, instanceOfSyncBackfillRequest, instanceOfSyncBackfillRequestCreated, instanceOfSyncSingleEntity200Response, instanceOfSyncTenant200Response, instanceOfSyncTenant200ResponseDataValue, instanceOfTriggerDailySync200Response, instanceOfTriggerDailySyncRequest, instanceOfTriggerMonthlySync200Response, instanceOfTriggerWeeklySync200Response, instanceOfUpdateTenant200Response, instanceOfUpdateTenantRequest, mapValues, querystring };