@gooday_corp/gooday-api-client 1.1.8 → 1.1.10-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.
- package/api.ts +1347 -133
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -147,6 +147,212 @@ export interface AttributesDto {
|
|
|
147
147
|
*/
|
|
148
148
|
'dislikes': Array<string>;
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @export
|
|
153
|
+
* @interface BusinessEntity
|
|
154
|
+
*/
|
|
155
|
+
export interface BusinessEntity {
|
|
156
|
+
/**
|
|
157
|
+
* Unique identifier for the Business
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof BusinessEntity
|
|
160
|
+
*/
|
|
161
|
+
'_id': string;
|
|
162
|
+
/**
|
|
163
|
+
* Business Timing
|
|
164
|
+
* @type {Array<BusinessTiming>}
|
|
165
|
+
* @memberof BusinessEntity
|
|
166
|
+
*/
|
|
167
|
+
'timing'?: Array<BusinessTiming>;
|
|
168
|
+
/**
|
|
169
|
+
* Business policies
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof BusinessEntity
|
|
172
|
+
*/
|
|
173
|
+
'policies'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Business cancellationFee
|
|
176
|
+
* @type {number}
|
|
177
|
+
* @memberof BusinessEntity
|
|
178
|
+
*/
|
|
179
|
+
'cancellationFee'?: number;
|
|
180
|
+
/**
|
|
181
|
+
* Business ID
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof BusinessEntity
|
|
184
|
+
*/
|
|
185
|
+
'businessID'?: string;
|
|
186
|
+
/**
|
|
187
|
+
* Business Country
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof BusinessEntity
|
|
190
|
+
*/
|
|
191
|
+
'businessCountry'?: string;
|
|
192
|
+
/**
|
|
193
|
+
* Business Venue
|
|
194
|
+
* @type {Array<object>}
|
|
195
|
+
* @memberof BusinessEntity
|
|
196
|
+
*/
|
|
197
|
+
'venues'?: Array<object>;
|
|
198
|
+
/**
|
|
199
|
+
* Business Type
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof BusinessEntity
|
|
202
|
+
*/
|
|
203
|
+
'businessType'?: string;
|
|
204
|
+
/**
|
|
205
|
+
* User Id
|
|
206
|
+
* @type {string}
|
|
207
|
+
* @memberof BusinessEntity
|
|
208
|
+
*/
|
|
209
|
+
'userId'?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Business Category
|
|
212
|
+
* @type {string}
|
|
213
|
+
* @memberof BusinessEntity
|
|
214
|
+
*/
|
|
215
|
+
'businessCategory'?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Business verification status
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof BusinessEntity
|
|
220
|
+
*/
|
|
221
|
+
'status': BusinessEntityStatusEnum;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export const BusinessEntityStatusEnum = {
|
|
225
|
+
Verified: 'VERIFIED',
|
|
226
|
+
Pending: 'PENDING',
|
|
227
|
+
QuoteRequested: 'QUOTE_REQUESTED'
|
|
228
|
+
} as const;
|
|
229
|
+
|
|
230
|
+
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @export
|
|
235
|
+
* @interface BusinessOnBoardingDTO
|
|
236
|
+
*/
|
|
237
|
+
export interface BusinessOnBoardingDTO {
|
|
238
|
+
/**
|
|
239
|
+
* Business Timing
|
|
240
|
+
* @type {Array<BusinessTiming>}
|
|
241
|
+
* @memberof BusinessOnBoardingDTO
|
|
242
|
+
*/
|
|
243
|
+
'timing'?: Array<BusinessTiming>;
|
|
244
|
+
/**
|
|
245
|
+
* Business Venue
|
|
246
|
+
* @type {Array<BusinessVenueDTO>}
|
|
247
|
+
* @memberof BusinessOnBoardingDTO
|
|
248
|
+
*/
|
|
249
|
+
'venues'?: Array<BusinessVenueDTO>;
|
|
250
|
+
/**
|
|
251
|
+
* Business policies
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @memberof BusinessOnBoardingDTO
|
|
254
|
+
*/
|
|
255
|
+
'policies'?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Business cancellationFee
|
|
258
|
+
* @type {number}
|
|
259
|
+
* @memberof BusinessOnBoardingDTO
|
|
260
|
+
*/
|
|
261
|
+
'cancellationFee'?: number;
|
|
262
|
+
/**
|
|
263
|
+
* Business ID
|
|
264
|
+
* @type {string}
|
|
265
|
+
* @memberof BusinessOnBoardingDTO
|
|
266
|
+
*/
|
|
267
|
+
'businessID'?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Business Country
|
|
270
|
+
* @type {string}
|
|
271
|
+
* @memberof BusinessOnBoardingDTO
|
|
272
|
+
*/
|
|
273
|
+
'businessCountry'?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Business Type
|
|
276
|
+
* @type {string}
|
|
277
|
+
* @memberof BusinessOnBoardingDTO
|
|
278
|
+
*/
|
|
279
|
+
'businessType'?: string;
|
|
280
|
+
/**
|
|
281
|
+
* Business Category
|
|
282
|
+
* @type {string}
|
|
283
|
+
* @memberof BusinessOnBoardingDTO
|
|
284
|
+
*/
|
|
285
|
+
'businessCategory'?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Assistant ID
|
|
288
|
+
* @type {string}
|
|
289
|
+
* @memberof BusinessOnBoardingDTO
|
|
290
|
+
*/
|
|
291
|
+
'assistant'?: string;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @export
|
|
296
|
+
* @interface BusinessOnBoardingResponseDTO
|
|
297
|
+
*/
|
|
298
|
+
export interface BusinessOnBoardingResponseDTO {
|
|
299
|
+
/**
|
|
300
|
+
* statusCode
|
|
301
|
+
* @type {number}
|
|
302
|
+
* @memberof BusinessOnBoardingResponseDTO
|
|
303
|
+
*/
|
|
304
|
+
'statusCode': number;
|
|
305
|
+
/**
|
|
306
|
+
* Business entity
|
|
307
|
+
* @type {BusinessEntity}
|
|
308
|
+
* @memberof BusinessOnBoardingResponseDTO
|
|
309
|
+
*/
|
|
310
|
+
'data': BusinessEntity;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
*
|
|
314
|
+
* @export
|
|
315
|
+
* @interface BusinessTime
|
|
316
|
+
*/
|
|
317
|
+
export interface BusinessTime {
|
|
318
|
+
/**
|
|
319
|
+
* Business open time
|
|
320
|
+
* @type {string}
|
|
321
|
+
* @memberof BusinessTime
|
|
322
|
+
*/
|
|
323
|
+
'openAt': string;
|
|
324
|
+
/**
|
|
325
|
+
* Business close time
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @memberof BusinessTime
|
|
328
|
+
*/
|
|
329
|
+
'closeAt': string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @export
|
|
334
|
+
* @interface BusinessTiming
|
|
335
|
+
*/
|
|
336
|
+
export interface BusinessTiming {
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @type {Array<BusinessTime>}
|
|
340
|
+
* @memberof BusinessTiming
|
|
341
|
+
*/
|
|
342
|
+
'time'?: Array<BusinessTime>;
|
|
343
|
+
/**
|
|
344
|
+
* Day name
|
|
345
|
+
* @type {string}
|
|
346
|
+
* @memberof BusinessTiming
|
|
347
|
+
*/
|
|
348
|
+
'day': string;
|
|
349
|
+
/**
|
|
350
|
+
* Business close flag
|
|
351
|
+
* @type {boolean}
|
|
352
|
+
* @memberof BusinessTiming
|
|
353
|
+
*/
|
|
354
|
+
'isClose': boolean;
|
|
355
|
+
}
|
|
150
356
|
/**
|
|
151
357
|
*
|
|
152
358
|
* @export
|
|
@@ -154,13 +360,13 @@ export interface AttributesDto {
|
|
|
154
360
|
*/
|
|
155
361
|
export interface BusinessTypeEntity {
|
|
156
362
|
/**
|
|
157
|
-
* Unique identifier for the
|
|
363
|
+
* Unique identifier for the business type
|
|
158
364
|
* @type {string}
|
|
159
365
|
* @memberof BusinessTypeEntity
|
|
160
366
|
*/
|
|
161
367
|
'_id': string;
|
|
162
368
|
/**
|
|
163
|
-
* name of the
|
|
369
|
+
* name of the business type
|
|
164
370
|
* @type {string}
|
|
165
371
|
* @memberof BusinessTypeEntity
|
|
166
372
|
*/
|
|
@@ -179,12 +385,37 @@ export interface BusinessTypeListResponse {
|
|
|
179
385
|
*/
|
|
180
386
|
'statusCode': number;
|
|
181
387
|
/**
|
|
182
|
-
*
|
|
388
|
+
* businessTypes
|
|
183
389
|
* @type {Array<BusinessTypeEntity>}
|
|
184
390
|
* @memberof BusinessTypeListResponse
|
|
185
391
|
*/
|
|
186
392
|
'data': Array<BusinessTypeEntity>;
|
|
187
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @export
|
|
397
|
+
* @interface BusinessVenueDTO
|
|
398
|
+
*/
|
|
399
|
+
export interface BusinessVenueDTO {
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @memberof BusinessVenueDTO
|
|
404
|
+
*/
|
|
405
|
+
'coverPhotos': string;
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @type {string}
|
|
409
|
+
* @memberof BusinessVenueDTO
|
|
410
|
+
*/
|
|
411
|
+
'priceRange': string;
|
|
412
|
+
/**
|
|
413
|
+
*
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof BusinessVenueDTO
|
|
416
|
+
*/
|
|
417
|
+
'location': string;
|
|
418
|
+
}
|
|
188
419
|
/**
|
|
189
420
|
*
|
|
190
421
|
* @export
|
|
@@ -217,6 +448,19 @@ export interface BusinessVerificationResponse {
|
|
|
217
448
|
*/
|
|
218
449
|
'data': BusinessVerificationEntity;
|
|
219
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
*
|
|
453
|
+
* @export
|
|
454
|
+
* @interface CalendarAccessDTO
|
|
455
|
+
*/
|
|
456
|
+
export interface CalendarAccessDTO {
|
|
457
|
+
/**
|
|
458
|
+
* authorizationCode
|
|
459
|
+
* @type {string}
|
|
460
|
+
* @memberof CalendarAccessDTO
|
|
461
|
+
*/
|
|
462
|
+
'authorizationCode': string;
|
|
463
|
+
}
|
|
220
464
|
/**
|
|
221
465
|
*
|
|
222
466
|
* @export
|
|
@@ -255,12 +499,49 @@ export interface CategoryListResponse {
|
|
|
255
499
|
*/
|
|
256
500
|
'statusCode': number;
|
|
257
501
|
/**
|
|
258
|
-
*
|
|
502
|
+
* Categories
|
|
259
503
|
* @type {Array<CategoryEntity>}
|
|
260
504
|
* @memberof CategoryListResponse
|
|
261
505
|
*/
|
|
262
506
|
'data': Array<CategoryEntity>;
|
|
263
507
|
}
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @export
|
|
511
|
+
* @interface CreatePaymentLinkDTO
|
|
512
|
+
*/
|
|
513
|
+
export interface CreatePaymentLinkDTO {
|
|
514
|
+
/**
|
|
515
|
+
* Currency in which the payment is made
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof CreatePaymentLinkDTO
|
|
518
|
+
*/
|
|
519
|
+
'currency': string;
|
|
520
|
+
/**
|
|
521
|
+
* Recurring interval for the payment
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof CreatePaymentLinkDTO
|
|
524
|
+
*/
|
|
525
|
+
'interval': string;
|
|
526
|
+
/**
|
|
527
|
+
* Amount to be charged in the smallest currency unit (e.g., cents for USD)
|
|
528
|
+
* @type {number}
|
|
529
|
+
* @memberof CreatePaymentLinkDTO
|
|
530
|
+
*/
|
|
531
|
+
'amount': number;
|
|
532
|
+
/**
|
|
533
|
+
* Name of the product or service for which payment is being made
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof CreatePaymentLinkDTO
|
|
536
|
+
*/
|
|
537
|
+
'name': string;
|
|
538
|
+
/**
|
|
539
|
+
* User Id
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof CreatePaymentLinkDTO
|
|
542
|
+
*/
|
|
543
|
+
'user': string;
|
|
544
|
+
}
|
|
264
545
|
/**
|
|
265
546
|
*
|
|
266
547
|
* @export
|
|
@@ -317,6 +598,50 @@ export interface DeviceEntity {
|
|
|
317
598
|
*/
|
|
318
599
|
'status': string;
|
|
319
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @export
|
|
604
|
+
* @interface EmployeesSizeEntity
|
|
605
|
+
*/
|
|
606
|
+
export interface EmployeesSizeEntity {
|
|
607
|
+
/**
|
|
608
|
+
* Unique identifier for the employee size
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof EmployeesSizeEntity
|
|
611
|
+
*/
|
|
612
|
+
'id': string;
|
|
613
|
+
/**
|
|
614
|
+
* Title of the employee size
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof EmployeesSizeEntity
|
|
617
|
+
*/
|
|
618
|
+
'title': string;
|
|
619
|
+
/**
|
|
620
|
+
* Value of the employee size
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof EmployeesSizeEntity
|
|
623
|
+
*/
|
|
624
|
+
'value': string;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @export
|
|
629
|
+
* @interface EmployeesSizeListResponse
|
|
630
|
+
*/
|
|
631
|
+
export interface EmployeesSizeListResponse {
|
|
632
|
+
/**
|
|
633
|
+
* statusCode
|
|
634
|
+
* @type {number}
|
|
635
|
+
* @memberof EmployeesSizeListResponse
|
|
636
|
+
*/
|
|
637
|
+
'statusCode': number;
|
|
638
|
+
/**
|
|
639
|
+
* Employees Size
|
|
640
|
+
* @type {Array<EmployeesSizeEntity>}
|
|
641
|
+
* @memberof EmployeesSizeListResponse
|
|
642
|
+
*/
|
|
643
|
+
'data': Array<EmployeesSizeEntity>;
|
|
644
|
+
}
|
|
320
645
|
/**
|
|
321
646
|
*
|
|
322
647
|
* @export
|
|
@@ -438,6 +763,70 @@ export interface GoogleVerificationPayloadDTO {
|
|
|
438
763
|
*/
|
|
439
764
|
'token': string;
|
|
440
765
|
}
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @export
|
|
769
|
+
* @interface IntegrationEntity
|
|
770
|
+
*/
|
|
771
|
+
export interface IntegrationEntity {
|
|
772
|
+
/**
|
|
773
|
+
* Unique identifier for the user
|
|
774
|
+
* @type {string}
|
|
775
|
+
* @memberof IntegrationEntity
|
|
776
|
+
*/
|
|
777
|
+
'user': string;
|
|
778
|
+
/**
|
|
779
|
+
* Status of the Integration
|
|
780
|
+
* @type {boolean}
|
|
781
|
+
* @memberof IntegrationEntity
|
|
782
|
+
*/
|
|
783
|
+
'isActive': boolean;
|
|
784
|
+
/**
|
|
785
|
+
* refreshToken
|
|
786
|
+
* @type {string}
|
|
787
|
+
* @memberof IntegrationEntity
|
|
788
|
+
*/
|
|
789
|
+
'refreshToken': string;
|
|
790
|
+
/**
|
|
791
|
+
* Token
|
|
792
|
+
* @type {string}
|
|
793
|
+
* @memberof IntegrationEntity
|
|
794
|
+
*/
|
|
795
|
+
'token': string;
|
|
796
|
+
/**
|
|
797
|
+
* Unique identifier for the user
|
|
798
|
+
* @type {string}
|
|
799
|
+
* @memberof IntegrationEntity
|
|
800
|
+
*/
|
|
801
|
+
'integrationType': IntegrationEntityIntegrationTypeEnum;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
export const IntegrationEntityIntegrationTypeEnum = {
|
|
805
|
+
Google: 'google',
|
|
806
|
+
Microsoft: 'microsoft'
|
|
807
|
+
} as const;
|
|
808
|
+
|
|
809
|
+
export type IntegrationEntityIntegrationTypeEnum = typeof IntegrationEntityIntegrationTypeEnum[keyof typeof IntegrationEntityIntegrationTypeEnum];
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
*
|
|
813
|
+
* @export
|
|
814
|
+
* @interface IntegrationResponse
|
|
815
|
+
*/
|
|
816
|
+
export interface IntegrationResponse {
|
|
817
|
+
/**
|
|
818
|
+
* Status code of the response
|
|
819
|
+
* @type {number}
|
|
820
|
+
* @memberof IntegrationResponse
|
|
821
|
+
*/
|
|
822
|
+
'statusCode': number;
|
|
823
|
+
/**
|
|
824
|
+
* Integration response
|
|
825
|
+
* @type {IntegrationEntity}
|
|
826
|
+
* @memberof IntegrationResponse
|
|
827
|
+
*/
|
|
828
|
+
'data': IntegrationEntity;
|
|
829
|
+
}
|
|
441
830
|
/**
|
|
442
831
|
*
|
|
443
832
|
* @export
|
|
@@ -705,6 +1094,50 @@ export const PriceEntityIntervalEnum = {
|
|
|
705
1094
|
|
|
706
1095
|
export type PriceEntityIntervalEnum = typeof PriceEntityIntervalEnum[keyof typeof PriceEntityIntervalEnum];
|
|
707
1096
|
|
|
1097
|
+
/**
|
|
1098
|
+
*
|
|
1099
|
+
* @export
|
|
1100
|
+
* @interface PriceRangeEntity
|
|
1101
|
+
*/
|
|
1102
|
+
export interface PriceRangeEntity {
|
|
1103
|
+
/**
|
|
1104
|
+
* Unique identifier for the price range
|
|
1105
|
+
* @type {string}
|
|
1106
|
+
* @memberof PriceRangeEntity
|
|
1107
|
+
*/
|
|
1108
|
+
'id': string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Title of the price range
|
|
1111
|
+
* @type {string}
|
|
1112
|
+
* @memberof PriceRangeEntity
|
|
1113
|
+
*/
|
|
1114
|
+
'title': string;
|
|
1115
|
+
/**
|
|
1116
|
+
* Value of the price range
|
|
1117
|
+
* @type {string}
|
|
1118
|
+
* @memberof PriceRangeEntity
|
|
1119
|
+
*/
|
|
1120
|
+
'value': string;
|
|
1121
|
+
}
|
|
1122
|
+
/**
|
|
1123
|
+
*
|
|
1124
|
+
* @export
|
|
1125
|
+
* @interface PriceRangeListResponse
|
|
1126
|
+
*/
|
|
1127
|
+
export interface PriceRangeListResponse {
|
|
1128
|
+
/**
|
|
1129
|
+
* statusCode
|
|
1130
|
+
* @type {number}
|
|
1131
|
+
* @memberof PriceRangeListResponse
|
|
1132
|
+
*/
|
|
1133
|
+
'statusCode': number;
|
|
1134
|
+
/**
|
|
1135
|
+
* Price Range
|
|
1136
|
+
* @type {Array<PriceRangeEntity>}
|
|
1137
|
+
* @memberof PriceRangeListResponse
|
|
1138
|
+
*/
|
|
1139
|
+
'data': Array<PriceRangeEntity>;
|
|
1140
|
+
}
|
|
708
1141
|
/**
|
|
709
1142
|
*
|
|
710
1143
|
* @export
|
|
@@ -978,7 +1411,7 @@ export interface UserEntity {
|
|
|
978
1411
|
* @type {string}
|
|
979
1412
|
* @memberof UserEntity
|
|
980
1413
|
*/
|
|
981
|
-
'role':
|
|
1414
|
+
'role': UserEntityRoleEnum;
|
|
982
1415
|
/**
|
|
983
1416
|
* Goals why user is using the product
|
|
984
1417
|
* @type {Array<string>}
|
|
@@ -996,8 +1429,16 @@ export interface UserEntity {
|
|
|
996
1429
|
* @type {Array<string>}
|
|
997
1430
|
* @memberof UserEntity
|
|
998
1431
|
*/
|
|
999
|
-
'pendingAction'
|
|
1432
|
+
'pendingAction'?: Array<string>;
|
|
1000
1433
|
}
|
|
1434
|
+
|
|
1435
|
+
export const UserEntityRoleEnum = {
|
|
1436
|
+
BusinessOwner: 'business_owner',
|
|
1437
|
+
User: 'user'
|
|
1438
|
+
} as const;
|
|
1439
|
+
|
|
1440
|
+
export type UserEntityRoleEnum = typeof UserEntityRoleEnum[keyof typeof UserEntityRoleEnum];
|
|
1441
|
+
|
|
1001
1442
|
/**
|
|
1002
1443
|
*
|
|
1003
1444
|
* @export
|
|
@@ -1248,6 +1689,41 @@ export class AIApi extends BaseAPI {
|
|
|
1248
1689
|
*/
|
|
1249
1690
|
export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1250
1691
|
return {
|
|
1692
|
+
/**
|
|
1693
|
+
*
|
|
1694
|
+
* @param {SignupDto} signupDto
|
|
1695
|
+
* @param {*} [options] Override http request option.
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
*/
|
|
1698
|
+
authControllerBusinessRegister: async (signupDto: SignupDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1699
|
+
// verify required parameter 'signupDto' is not null or undefined
|
|
1700
|
+
assertParamExists('authControllerBusinessRegister', 'signupDto', signupDto)
|
|
1701
|
+
const localVarPath = `/v1/auth/business-register`;
|
|
1702
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1703
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1704
|
+
let baseOptions;
|
|
1705
|
+
if (configuration) {
|
|
1706
|
+
baseOptions = configuration.baseOptions;
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1710
|
+
const localVarHeaderParameter = {} as any;
|
|
1711
|
+
const localVarQueryParameter = {} as any;
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1716
|
+
|
|
1717
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1718
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1719
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1720
|
+
localVarRequestOptions.data = serializeDataIfNeeded(signupDto, localVarRequestOptions, configuration)
|
|
1721
|
+
|
|
1722
|
+
return {
|
|
1723
|
+
url: toPathString(localVarUrlObj),
|
|
1724
|
+
options: localVarRequestOptions,
|
|
1725
|
+
};
|
|
1726
|
+
},
|
|
1251
1727
|
/**
|
|
1252
1728
|
*
|
|
1253
1729
|
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
@@ -1546,6 +2022,18 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
1546
2022
|
export const AuthApiFp = function(configuration?: Configuration) {
|
|
1547
2023
|
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
|
|
1548
2024
|
return {
|
|
2025
|
+
/**
|
|
2026
|
+
*
|
|
2027
|
+
* @param {SignupDto} signupDto
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
*/
|
|
2031
|
+
async authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SignupResponseDto>> {
|
|
2032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerBusinessRegister(signupDto, options);
|
|
2033
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2034
|
+
const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerBusinessRegister']?.[localVarOperationServerIndex]?.url;
|
|
2035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2036
|
+
},
|
|
1549
2037
|
/**
|
|
1550
2038
|
*
|
|
1551
2039
|
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
@@ -1652,6 +2140,15 @@ export const AuthApiFp = function(configuration?: Configuration) {
|
|
|
1652
2140
|
export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1653
2141
|
const localVarFp = AuthApiFp(configuration)
|
|
1654
2142
|
return {
|
|
2143
|
+
/**
|
|
2144
|
+
*
|
|
2145
|
+
* @param {SignupDto} signupDto
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @throws {RequiredError}
|
|
2148
|
+
*/
|
|
2149
|
+
authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig): AxiosPromise<SignupResponseDto> {
|
|
2150
|
+
return localVarFp.authControllerBusinessRegister(signupDto, options).then((request) => request(axios, basePath));
|
|
2151
|
+
},
|
|
1655
2152
|
/**
|
|
1656
2153
|
*
|
|
1657
2154
|
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
@@ -1734,6 +2231,17 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
|
|
|
1734
2231
|
* @extends {BaseAPI}
|
|
1735
2232
|
*/
|
|
1736
2233
|
export class AuthApi extends BaseAPI {
|
|
2234
|
+
/**
|
|
2235
|
+
*
|
|
2236
|
+
* @param {SignupDto} signupDto
|
|
2237
|
+
* @param {*} [options] Override http request option.
|
|
2238
|
+
* @throws {RequiredError}
|
|
2239
|
+
* @memberof AuthApi
|
|
2240
|
+
*/
|
|
2241
|
+
public authControllerBusinessRegister(signupDto: SignupDto, options?: RawAxiosRequestConfig) {
|
|
2242
|
+
return AuthApiFp(this.configuration).authControllerBusinessRegister(signupDto, options).then((request) => request(this.axios, this.basePath));
|
|
2243
|
+
}
|
|
2244
|
+
|
|
1737
2245
|
/**
|
|
1738
2246
|
*
|
|
1739
2247
|
* @param {NewPasswordPayloadDTO} newPasswordPayloadDTO
|
|
@@ -1826,18 +2334,21 @@ export class AuthApi extends BaseAPI {
|
|
|
1826
2334
|
|
|
1827
2335
|
|
|
1828
2336
|
/**
|
|
1829
|
-
*
|
|
2337
|
+
* BusinessApi - axios parameter creator
|
|
1830
2338
|
* @export
|
|
1831
2339
|
*/
|
|
1832
|
-
export const
|
|
2340
|
+
export const BusinessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1833
2341
|
return {
|
|
1834
2342
|
/**
|
|
1835
2343
|
*
|
|
2344
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
1836
2345
|
* @param {*} [options] Override http request option.
|
|
1837
2346
|
* @throws {RequiredError}
|
|
1838
2347
|
*/
|
|
1839
|
-
|
|
1840
|
-
|
|
2348
|
+
businessControllerBusinessOnboarding: async (businessOnBoardingDTO: BusinessOnBoardingDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2349
|
+
// verify required parameter 'businessOnBoardingDTO' is not null or undefined
|
|
2350
|
+
assertParamExists('businessControllerBusinessOnboarding', 'businessOnBoardingDTO', businessOnBoardingDTO)
|
|
2351
|
+
const localVarPath = `/v1/business/onboarding`;
|
|
1841
2352
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1842
2353
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1843
2354
|
let baseOptions;
|
|
@@ -1845,15 +2356,22 @@ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
1845
2356
|
baseOptions = configuration.baseOptions;
|
|
1846
2357
|
}
|
|
1847
2358
|
|
|
1848
|
-
const localVarRequestOptions = { method: '
|
|
2359
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1849
2360
|
const localVarHeaderParameter = {} as any;
|
|
1850
2361
|
const localVarQueryParameter = {} as any;
|
|
1851
2362
|
|
|
2363
|
+
// authentication bearer required
|
|
2364
|
+
// http bearer authentication required
|
|
2365
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2366
|
+
|
|
1852
2367
|
|
|
1853
2368
|
|
|
2369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2370
|
+
|
|
1854
2371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1855
2372
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
2373
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2374
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessOnBoardingDTO, localVarRequestOptions, configuration)
|
|
1857
2375
|
|
|
1858
2376
|
return {
|
|
1859
2377
|
url: toPathString(localVarUrlObj),
|
|
@@ -1862,15 +2380,11 @@ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
1862
2380
|
},
|
|
1863
2381
|
/**
|
|
1864
2382
|
*
|
|
1865
|
-
* @param {string} type
|
|
1866
2383
|
* @param {*} [options] Override http request option.
|
|
1867
2384
|
* @throws {RequiredError}
|
|
1868
2385
|
*/
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
assertParamExists('businessTypeControllerListCategories', 'type', type)
|
|
1872
|
-
const localVarPath = `/v1/business/{type}/categories`
|
|
1873
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
2386
|
+
businessControllerGetMe: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2387
|
+
const localVarPath = `/v1/business/me`;
|
|
1874
2388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1875
2389
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1876
2390
|
let baseOptions;
|
|
@@ -1882,6 +2396,10 @@ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
1882
2396
|
const localVarHeaderParameter = {} as any;
|
|
1883
2397
|
const localVarQueryParameter = {} as any;
|
|
1884
2398
|
|
|
2399
|
+
// authentication bearer required
|
|
2400
|
+
// http bearer authentication required
|
|
2401
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2402
|
+
|
|
1885
2403
|
|
|
1886
2404
|
|
|
1887
2405
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1893,121 +2411,145 @@ export const BusinessCategoriesApiAxiosParamCreator = function (configuration?:
|
|
|
1893
2411
|
options: localVarRequestOptions,
|
|
1894
2412
|
};
|
|
1895
2413
|
},
|
|
1896
|
-
}
|
|
1897
|
-
};
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* BusinessCategoriesApi - functional programming interface
|
|
1901
|
-
* @export
|
|
1902
|
-
*/
|
|
1903
|
-
export const BusinessCategoriesApiFp = function(configuration?: Configuration) {
|
|
1904
|
-
const localVarAxiosParamCreator = BusinessCategoriesApiAxiosParamCreator(configuration)
|
|
1905
|
-
return {
|
|
1906
2414
|
/**
|
|
1907
2415
|
*
|
|
1908
2416
|
* @param {*} [options] Override http request option.
|
|
1909
2417
|
* @throws {RequiredError}
|
|
1910
2418
|
*/
|
|
1911
|
-
async
|
|
1912
|
-
const
|
|
1913
|
-
|
|
1914
|
-
const
|
|
1915
|
-
|
|
2419
|
+
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2420
|
+
const localVarPath = `/business`;
|
|
2421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2423
|
+
let baseOptions;
|
|
2424
|
+
if (configuration) {
|
|
2425
|
+
baseOptions = configuration.baseOptions;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2429
|
+
const localVarHeaderParameter = {} as any;
|
|
2430
|
+
const localVarQueryParameter = {} as any;
|
|
2431
|
+
|
|
2432
|
+
|
|
2433
|
+
|
|
2434
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2436
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2437
|
+
|
|
2438
|
+
return {
|
|
2439
|
+
url: toPathString(localVarUrlObj),
|
|
2440
|
+
options: localVarRequestOptions,
|
|
2441
|
+
};
|
|
1916
2442
|
},
|
|
1917
2443
|
/**
|
|
1918
2444
|
*
|
|
1919
|
-
* @param {string} type
|
|
1920
2445
|
* @param {*} [options] Override http request option.
|
|
1921
2446
|
* @throws {RequiredError}
|
|
1922
2447
|
*/
|
|
1923
|
-
async
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
const
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
}
|
|
2448
|
+
businessTypeControllerListBusinessType: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2449
|
+
const localVarPath = `/v1/business/list`;
|
|
2450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2451
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2452
|
+
let baseOptions;
|
|
2453
|
+
if (configuration) {
|
|
2454
|
+
baseOptions = configuration.baseOptions;
|
|
2455
|
+
}
|
|
1931
2456
|
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2457
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2458
|
+
const localVarHeaderParameter = {} as any;
|
|
2459
|
+
const localVarQueryParameter = {} as any;
|
|
2460
|
+
|
|
2461
|
+
// authentication bearer required
|
|
2462
|
+
// http bearer authentication required
|
|
2463
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2464
|
+
|
|
2465
|
+
|
|
2466
|
+
|
|
2467
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2468
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2469
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2470
|
+
|
|
2471
|
+
return {
|
|
2472
|
+
url: toPathString(localVarUrlObj),
|
|
2473
|
+
options: localVarRequestOptions,
|
|
2474
|
+
};
|
|
2475
|
+
},
|
|
1939
2476
|
/**
|
|
1940
2477
|
*
|
|
2478
|
+
* @param {string} businessType
|
|
1941
2479
|
* @param {*} [options] Override http request option.
|
|
1942
2480
|
* @throws {RequiredError}
|
|
1943
2481
|
*/
|
|
1944
|
-
|
|
1945
|
-
|
|
2482
|
+
businessTypeControllerListCategories: async (businessType: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2483
|
+
// verify required parameter 'businessType' is not null or undefined
|
|
2484
|
+
assertParamExists('businessTypeControllerListCategories', 'businessType', businessType)
|
|
2485
|
+
const localVarPath = `/v1/business/{businessType}/categories`
|
|
2486
|
+
.replace(`{${"businessType"}}`, encodeURIComponent(String(businessType)));
|
|
2487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2488
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2489
|
+
let baseOptions;
|
|
2490
|
+
if (configuration) {
|
|
2491
|
+
baseOptions = configuration.baseOptions;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2495
|
+
const localVarHeaderParameter = {} as any;
|
|
2496
|
+
const localVarQueryParameter = {} as any;
|
|
2497
|
+
|
|
2498
|
+
// authentication bearer required
|
|
2499
|
+
// http bearer authentication required
|
|
2500
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2506
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2507
|
+
|
|
2508
|
+
return {
|
|
2509
|
+
url: toPathString(localVarUrlObj),
|
|
2510
|
+
options: localVarRequestOptions,
|
|
2511
|
+
};
|
|
1946
2512
|
},
|
|
1947
2513
|
/**
|
|
1948
2514
|
*
|
|
1949
|
-
* @param {string} type
|
|
1950
2515
|
* @param {*} [options] Override http request option.
|
|
1951
2516
|
* @throws {RequiredError}
|
|
1952
2517
|
*/
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2518
|
+
businessTypeControllerListEmployeesSize: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2519
|
+
const localVarPath = `/v1/business/employee-size`;
|
|
2520
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2521
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2522
|
+
let baseOptions;
|
|
2523
|
+
if (configuration) {
|
|
2524
|
+
baseOptions = configuration.baseOptions;
|
|
2525
|
+
}
|
|
1958
2526
|
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
* @class BusinessCategoriesApi
|
|
1963
|
-
* @extends {BaseAPI}
|
|
1964
|
-
*/
|
|
1965
|
-
export class BusinessCategoriesApi extends BaseAPI {
|
|
1966
|
-
/**
|
|
1967
|
-
*
|
|
1968
|
-
* @param {*} [options] Override http request option.
|
|
1969
|
-
* @throws {RequiredError}
|
|
1970
|
-
* @memberof BusinessCategoriesApi
|
|
1971
|
-
*/
|
|
1972
|
-
public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
|
|
1973
|
-
return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
|
|
1974
|
-
}
|
|
2527
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2528
|
+
const localVarHeaderParameter = {} as any;
|
|
2529
|
+
const localVarQueryParameter = {} as any;
|
|
1975
2530
|
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
* @param {*} [options] Override http request option.
|
|
1980
|
-
* @throws {RequiredError}
|
|
1981
|
-
* @memberof BusinessCategoriesApi
|
|
1982
|
-
*/
|
|
1983
|
-
public businessTypeControllerListCategories(type: string, options?: RawAxiosRequestConfig) {
|
|
1984
|
-
return BusinessCategoriesApiFp(this.configuration).businessTypeControllerListCategories(type, options).then((request) => request(this.axios, this.basePath));
|
|
1985
|
-
}
|
|
1986
|
-
}
|
|
2531
|
+
// authentication bearer required
|
|
2532
|
+
// http bearer authentication required
|
|
2533
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1987
2534
|
|
|
1988
2535
|
|
|
2536
|
+
|
|
2537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2539
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1989
2540
|
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
return {
|
|
2541
|
+
return {
|
|
2542
|
+
url: toPathString(localVarUrlObj),
|
|
2543
|
+
options: localVarRequestOptions,
|
|
2544
|
+
};
|
|
2545
|
+
},
|
|
1996
2546
|
/**
|
|
1997
2547
|
*
|
|
1998
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
1999
|
-
* @param {string} businessNumber
|
|
2000
2548
|
* @param {*} [options] Override http request option.
|
|
2001
2549
|
* @throws {RequiredError}
|
|
2002
2550
|
*/
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
2006
|
-
// verify required parameter 'businessNumber' is not null or undefined
|
|
2007
|
-
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
2008
|
-
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
2009
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
2010
|
-
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
2551
|
+
businessTypeControllerListPriceRange: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2552
|
+
const localVarPath = `/v1/business/price-range`;
|
|
2011
2553
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2012
2554
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2013
2555
|
let baseOptions;
|
|
@@ -2019,6 +2561,10 @@ export const BusinessVerificationApiAxiosParamCreator = function (configuration?
|
|
|
2019
2561
|
const localVarHeaderParameter = {} as any;
|
|
2020
2562
|
const localVarQueryParameter = {} as any;
|
|
2021
2563
|
|
|
2564
|
+
// authentication bearer required
|
|
2565
|
+
// http bearer authentication required
|
|
2566
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2567
|
+
|
|
2022
2568
|
|
|
2023
2569
|
|
|
2024
2570
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2034,45 +2580,330 @@ export const BusinessVerificationApiAxiosParamCreator = function (configuration?
|
|
|
2034
2580
|
};
|
|
2035
2581
|
|
|
2036
2582
|
/**
|
|
2037
|
-
*
|
|
2583
|
+
* BusinessApi - functional programming interface
|
|
2038
2584
|
* @export
|
|
2039
2585
|
*/
|
|
2040
|
-
export const
|
|
2041
|
-
const localVarAxiosParamCreator =
|
|
2586
|
+
export const BusinessApiFp = function(configuration?: Configuration) {
|
|
2587
|
+
const localVarAxiosParamCreator = BusinessApiAxiosParamCreator(configuration)
|
|
2042
2588
|
return {
|
|
2043
2589
|
/**
|
|
2044
2590
|
*
|
|
2045
|
-
* @param {
|
|
2046
|
-
* @param {string} businessNumber
|
|
2591
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
2047
2592
|
* @param {*} [options] Override http request option.
|
|
2048
2593
|
* @throws {RequiredError}
|
|
2049
2594
|
*/
|
|
2050
|
-
async
|
|
2051
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
2595
|
+
async businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2596
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerBusinessOnboarding(businessOnBoardingDTO, options);
|
|
2052
2597
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2053
|
-
const localVarOperationServerBasePath = operationServerMap['
|
|
2598
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerBusinessOnboarding']?.[localVarOperationServerIndex]?.url;
|
|
2054
2599
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2055
2600
|
},
|
|
2056
|
-
}
|
|
2057
|
-
};
|
|
2058
|
-
|
|
2059
|
-
/**
|
|
2060
|
-
* BusinessVerificationApi - factory interface
|
|
2061
|
-
* @export
|
|
2062
|
-
*/
|
|
2063
|
-
export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2064
|
-
const localVarFp = BusinessVerificationApiFp(configuration)
|
|
2065
|
-
return {
|
|
2066
2601
|
/**
|
|
2067
2602
|
*
|
|
2068
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2069
|
-
* @param {string} businessNumber
|
|
2070
2603
|
* @param {*} [options] Override http request option.
|
|
2071
2604
|
* @throws {RequiredError}
|
|
2072
2605
|
*/
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2606
|
+
async businessControllerGetMe(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessOnBoardingResponseDTO>> {
|
|
2607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerGetMe(options);
|
|
2608
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2609
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerGetMe']?.[localVarOperationServerIndex]?.url;
|
|
2610
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2611
|
+
},
|
|
2612
|
+
/**
|
|
2613
|
+
*
|
|
2614
|
+
* @param {*} [options] Override http request option.
|
|
2615
|
+
* @throws {RequiredError}
|
|
2616
|
+
*/
|
|
2617
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2618
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2619
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2620
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2622
|
+
},
|
|
2623
|
+
/**
|
|
2624
|
+
*
|
|
2625
|
+
* @param {*} [options] Override http request option.
|
|
2626
|
+
* @throws {RequiredError}
|
|
2627
|
+
*/
|
|
2628
|
+
async businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessTypeListResponse>> {
|
|
2629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListBusinessType(options);
|
|
2630
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2631
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListBusinessType']?.[localVarOperationServerIndex]?.url;
|
|
2632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2633
|
+
},
|
|
2634
|
+
/**
|
|
2635
|
+
*
|
|
2636
|
+
* @param {string} businessType
|
|
2637
|
+
* @param {*} [options] Override http request option.
|
|
2638
|
+
* @throws {RequiredError}
|
|
2639
|
+
*/
|
|
2640
|
+
async businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
2641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessType, options);
|
|
2642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2643
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
2644
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2645
|
+
},
|
|
2646
|
+
/**
|
|
2647
|
+
*
|
|
2648
|
+
* @param {*} [options] Override http request option.
|
|
2649
|
+
* @throws {RequiredError}
|
|
2650
|
+
*/
|
|
2651
|
+
async businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmployeesSizeListResponse>> {
|
|
2652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListEmployeesSize(options);
|
|
2653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2654
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListEmployeesSize']?.[localVarOperationServerIndex]?.url;
|
|
2655
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2656
|
+
},
|
|
2657
|
+
/**
|
|
2658
|
+
*
|
|
2659
|
+
* @param {*} [options] Override http request option.
|
|
2660
|
+
* @throws {RequiredError}
|
|
2661
|
+
*/
|
|
2662
|
+
async businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PriceRangeListResponse>> {
|
|
2663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListPriceRange(options);
|
|
2664
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2665
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
|
|
2666
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2667
|
+
},
|
|
2668
|
+
}
|
|
2669
|
+
};
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* BusinessApi - factory interface
|
|
2673
|
+
* @export
|
|
2674
|
+
*/
|
|
2675
|
+
export const BusinessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2676
|
+
const localVarFp = BusinessApiFp(configuration)
|
|
2677
|
+
return {
|
|
2678
|
+
/**
|
|
2679
|
+
*
|
|
2680
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
2681
|
+
* @param {*} [options] Override http request option.
|
|
2682
|
+
* @throws {RequiredError}
|
|
2683
|
+
*/
|
|
2684
|
+
businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2685
|
+
return localVarFp.businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(axios, basePath));
|
|
2686
|
+
},
|
|
2687
|
+
/**
|
|
2688
|
+
*
|
|
2689
|
+
* @param {*} [options] Override http request option.
|
|
2690
|
+
* @throws {RequiredError}
|
|
2691
|
+
*/
|
|
2692
|
+
businessControllerGetMe(options?: RawAxiosRequestConfig): AxiosPromise<BusinessOnBoardingResponseDTO> {
|
|
2693
|
+
return localVarFp.businessControllerGetMe(options).then((request) => request(axios, basePath));
|
|
2694
|
+
},
|
|
2695
|
+
/**
|
|
2696
|
+
*
|
|
2697
|
+
* @param {*} [options] Override http request option.
|
|
2698
|
+
* @throws {RequiredError}
|
|
2699
|
+
*/
|
|
2700
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2701
|
+
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
2702
|
+
},
|
|
2703
|
+
/**
|
|
2704
|
+
*
|
|
2705
|
+
* @param {*} [options] Override http request option.
|
|
2706
|
+
* @throws {RequiredError}
|
|
2707
|
+
*/
|
|
2708
|
+
businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig): AxiosPromise<BusinessTypeListResponse> {
|
|
2709
|
+
return localVarFp.businessTypeControllerListBusinessType(options).then((request) => request(axios, basePath));
|
|
2710
|
+
},
|
|
2711
|
+
/**
|
|
2712
|
+
*
|
|
2713
|
+
* @param {string} businessType
|
|
2714
|
+
* @param {*} [options] Override http request option.
|
|
2715
|
+
* @throws {RequiredError}
|
|
2716
|
+
*/
|
|
2717
|
+
businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
2718
|
+
return localVarFp.businessTypeControllerListCategories(businessType, options).then((request) => request(axios, basePath));
|
|
2719
|
+
},
|
|
2720
|
+
/**
|
|
2721
|
+
*
|
|
2722
|
+
* @param {*} [options] Override http request option.
|
|
2723
|
+
* @throws {RequiredError}
|
|
2724
|
+
*/
|
|
2725
|
+
businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig): AxiosPromise<EmployeesSizeListResponse> {
|
|
2726
|
+
return localVarFp.businessTypeControllerListEmployeesSize(options).then((request) => request(axios, basePath));
|
|
2727
|
+
},
|
|
2728
|
+
/**
|
|
2729
|
+
*
|
|
2730
|
+
* @param {*} [options] Override http request option.
|
|
2731
|
+
* @throws {RequiredError}
|
|
2732
|
+
*/
|
|
2733
|
+
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
2734
|
+
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
2735
|
+
},
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
|
|
2739
|
+
/**
|
|
2740
|
+
* BusinessApi - object-oriented interface
|
|
2741
|
+
* @export
|
|
2742
|
+
* @class BusinessApi
|
|
2743
|
+
* @extends {BaseAPI}
|
|
2744
|
+
*/
|
|
2745
|
+
export class BusinessApi extends BaseAPI {
|
|
2746
|
+
/**
|
|
2747
|
+
*
|
|
2748
|
+
* @param {BusinessOnBoardingDTO} businessOnBoardingDTO
|
|
2749
|
+
* @param {*} [options] Override http request option.
|
|
2750
|
+
* @throws {RequiredError}
|
|
2751
|
+
* @memberof BusinessApi
|
|
2752
|
+
*/
|
|
2753
|
+
public businessControllerBusinessOnboarding(businessOnBoardingDTO: BusinessOnBoardingDTO, options?: RawAxiosRequestConfig) {
|
|
2754
|
+
return BusinessApiFp(this.configuration).businessControllerBusinessOnboarding(businessOnBoardingDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
/**
|
|
2758
|
+
*
|
|
2759
|
+
* @param {*} [options] Override http request option.
|
|
2760
|
+
* @throws {RequiredError}
|
|
2761
|
+
* @memberof BusinessApi
|
|
2762
|
+
*/
|
|
2763
|
+
public businessControllerGetMe(options?: RawAxiosRequestConfig) {
|
|
2764
|
+
return BusinessApiFp(this.configuration).businessControllerGetMe(options).then((request) => request(this.axios, this.basePath));
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
*
|
|
2769
|
+
* @param {*} [options] Override http request option.
|
|
2770
|
+
* @throws {RequiredError}
|
|
2771
|
+
* @memberof BusinessApi
|
|
2772
|
+
*/
|
|
2773
|
+
public businessControllerListBusinesses(options?: RawAxiosRequestConfig) {
|
|
2774
|
+
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2775
|
+
}
|
|
2776
|
+
|
|
2777
|
+
/**
|
|
2778
|
+
*
|
|
2779
|
+
* @param {*} [options] Override http request option.
|
|
2780
|
+
* @throws {RequiredError}
|
|
2781
|
+
* @memberof BusinessApi
|
|
2782
|
+
*/
|
|
2783
|
+
public businessTypeControllerListBusinessType(options?: RawAxiosRequestConfig) {
|
|
2784
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListBusinessType(options).then((request) => request(this.axios, this.basePath));
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
*
|
|
2789
|
+
* @param {string} businessType
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
* @memberof BusinessApi
|
|
2793
|
+
*/
|
|
2794
|
+
public businessTypeControllerListCategories(businessType: string, options?: RawAxiosRequestConfig) {
|
|
2795
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessType, options).then((request) => request(this.axios, this.basePath));
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
*
|
|
2800
|
+
* @param {*} [options] Override http request option.
|
|
2801
|
+
* @throws {RequiredError}
|
|
2802
|
+
* @memberof BusinessApi
|
|
2803
|
+
*/
|
|
2804
|
+
public businessTypeControllerListEmployeesSize(options?: RawAxiosRequestConfig) {
|
|
2805
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListEmployeesSize(options).then((request) => request(this.axios, this.basePath));
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @param {*} [options] Override http request option.
|
|
2811
|
+
* @throws {RequiredError}
|
|
2812
|
+
* @memberof BusinessApi
|
|
2813
|
+
*/
|
|
2814
|
+
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
2815
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* BusinessVerificationApi - axios parameter creator
|
|
2823
|
+
* @export
|
|
2824
|
+
*/
|
|
2825
|
+
export const BusinessVerificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2826
|
+
return {
|
|
2827
|
+
/**
|
|
2828
|
+
*
|
|
2829
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2830
|
+
* @param {string} businessNumber
|
|
2831
|
+
* @param {*} [options] Override http request option.
|
|
2832
|
+
* @throws {RequiredError}
|
|
2833
|
+
*/
|
|
2834
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2835
|
+
// verify required parameter 'type' is not null or undefined
|
|
2836
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
2837
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
2838
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
2839
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
2840
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
2841
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
2842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2844
|
+
let baseOptions;
|
|
2845
|
+
if (configuration) {
|
|
2846
|
+
baseOptions = configuration.baseOptions;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2850
|
+
const localVarHeaderParameter = {} as any;
|
|
2851
|
+
const localVarQueryParameter = {} as any;
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
|
|
2855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2857
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2858
|
+
|
|
2859
|
+
return {
|
|
2860
|
+
url: toPathString(localVarUrlObj),
|
|
2861
|
+
options: localVarRequestOptions,
|
|
2862
|
+
};
|
|
2863
|
+
},
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
/**
|
|
2868
|
+
* BusinessVerificationApi - functional programming interface
|
|
2869
|
+
* @export
|
|
2870
|
+
*/
|
|
2871
|
+
export const BusinessVerificationApiFp = function(configuration?: Configuration) {
|
|
2872
|
+
const localVarAxiosParamCreator = BusinessVerificationApiAxiosParamCreator(configuration)
|
|
2873
|
+
return {
|
|
2874
|
+
/**
|
|
2875
|
+
*
|
|
2876
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2877
|
+
* @param {string} businessNumber
|
|
2878
|
+
* @param {*} [options] Override http request option.
|
|
2879
|
+
* @throws {RequiredError}
|
|
2880
|
+
*/
|
|
2881
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
2882
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
2883
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2884
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessVerificationApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
2885
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2886
|
+
},
|
|
2887
|
+
}
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* BusinessVerificationApi - factory interface
|
|
2892
|
+
* @export
|
|
2893
|
+
*/
|
|
2894
|
+
export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2895
|
+
const localVarFp = BusinessVerificationApiFp(configuration)
|
|
2896
|
+
return {
|
|
2897
|
+
/**
|
|
2898
|
+
*
|
|
2899
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
2900
|
+
* @param {string} businessNumber
|
|
2901
|
+
* @param {*} [options] Override http request option.
|
|
2902
|
+
* @throws {RequiredError}
|
|
2903
|
+
*/
|
|
2904
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
2905
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
2906
|
+
},
|
|
2076
2907
|
};
|
|
2077
2908
|
};
|
|
2078
2909
|
|
|
@@ -2422,21 +3253,21 @@ export class GoalsApi extends BaseAPI {
|
|
|
2422
3253
|
|
|
2423
3254
|
|
|
2424
3255
|
/**
|
|
2425
|
-
*
|
|
3256
|
+
* IntegrationApi - axios parameter creator
|
|
2426
3257
|
* @export
|
|
2427
3258
|
*/
|
|
2428
|
-
export const
|
|
3259
|
+
export const IntegrationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2429
3260
|
return {
|
|
2430
3261
|
/**
|
|
2431
3262
|
*
|
|
2432
|
-
* @param {
|
|
3263
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
2433
3264
|
* @param {*} [options] Override http request option.
|
|
2434
3265
|
* @throws {RequiredError}
|
|
2435
3266
|
*/
|
|
2436
|
-
|
|
2437
|
-
// verify required parameter '
|
|
2438
|
-
assertParamExists('
|
|
2439
|
-
const localVarPath = `/v1/
|
|
3267
|
+
integrationControllerGoogleCalendarAccess: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3268
|
+
// verify required parameter 'calendarAccessDTO' is not null or undefined
|
|
3269
|
+
assertParamExists('integrationControllerGoogleCalendarAccess', 'calendarAccessDTO', calendarAccessDTO)
|
|
3270
|
+
const localVarPath = `/v1/calendar/google`;
|
|
2440
3271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2441
3272
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2442
3273
|
let baseOptions;
|
|
@@ -2448,6 +3279,10 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2448
3279
|
const localVarHeaderParameter = {} as any;
|
|
2449
3280
|
const localVarQueryParameter = {} as any;
|
|
2450
3281
|
|
|
3282
|
+
// authentication bearer required
|
|
3283
|
+
// http bearer authentication required
|
|
3284
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3285
|
+
|
|
2451
3286
|
|
|
2452
3287
|
|
|
2453
3288
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2455,15 +3290,227 @@ export const OAuthApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2455
3290
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2456
3291
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2457
3292
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2458
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
3293
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
|
|
2459
3294
|
|
|
2460
3295
|
return {
|
|
2461
3296
|
url: toPathString(localVarUrlObj),
|
|
2462
3297
|
options: localVarRequestOptions,
|
|
2463
3298
|
};
|
|
2464
3299
|
},
|
|
2465
|
-
|
|
2466
|
-
|
|
3300
|
+
/**
|
|
3301
|
+
*
|
|
3302
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3303
|
+
* @param {*} [options] Override http request option.
|
|
3304
|
+
* @throws {RequiredError}
|
|
3305
|
+
*/
|
|
3306
|
+
integrationControllerMicrosoftCalendar: async (calendarAccessDTO: CalendarAccessDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3307
|
+
// verify required parameter 'calendarAccessDTO' is not null or undefined
|
|
3308
|
+
assertParamExists('integrationControllerMicrosoftCalendar', 'calendarAccessDTO', calendarAccessDTO)
|
|
3309
|
+
const localVarPath = `/v1/calendar/microsoft`;
|
|
3310
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3311
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3312
|
+
let baseOptions;
|
|
3313
|
+
if (configuration) {
|
|
3314
|
+
baseOptions = configuration.baseOptions;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3318
|
+
const localVarHeaderParameter = {} as any;
|
|
3319
|
+
const localVarQueryParameter = {} as any;
|
|
3320
|
+
|
|
3321
|
+
// authentication bearer required
|
|
3322
|
+
// http bearer authentication required
|
|
3323
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3324
|
+
|
|
3325
|
+
|
|
3326
|
+
|
|
3327
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3328
|
+
|
|
3329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3331
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3332
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calendarAccessDTO, localVarRequestOptions, configuration)
|
|
3333
|
+
|
|
3334
|
+
return {
|
|
3335
|
+
url: toPathString(localVarUrlObj),
|
|
3336
|
+
options: localVarRequestOptions,
|
|
3337
|
+
};
|
|
3338
|
+
},
|
|
3339
|
+
}
|
|
3340
|
+
};
|
|
3341
|
+
|
|
3342
|
+
/**
|
|
3343
|
+
* IntegrationApi - functional programming interface
|
|
3344
|
+
* @export
|
|
3345
|
+
*/
|
|
3346
|
+
export const IntegrationApiFp = function(configuration?: Configuration) {
|
|
3347
|
+
const localVarAxiosParamCreator = IntegrationApiAxiosParamCreator(configuration)
|
|
3348
|
+
return {
|
|
3349
|
+
/**
|
|
3350
|
+
*
|
|
3351
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3352
|
+
* @param {*} [options] Override http request option.
|
|
3353
|
+
* @throws {RequiredError}
|
|
3354
|
+
*/
|
|
3355
|
+
async integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3356
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options);
|
|
3357
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3358
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerGoogleCalendarAccess']?.[localVarOperationServerIndex]?.url;
|
|
3359
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3360
|
+
},
|
|
3361
|
+
/**
|
|
3362
|
+
*
|
|
3363
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
*/
|
|
3367
|
+
async integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IntegrationResponse>> {
|
|
3368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.integrationControllerMicrosoftCalendar(calendarAccessDTO, options);
|
|
3369
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3370
|
+
const localVarOperationServerBasePath = operationServerMap['IntegrationApi.integrationControllerMicrosoftCalendar']?.[localVarOperationServerIndex]?.url;
|
|
3371
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3372
|
+
},
|
|
3373
|
+
}
|
|
3374
|
+
};
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* IntegrationApi - factory interface
|
|
3378
|
+
* @export
|
|
3379
|
+
*/
|
|
3380
|
+
export const IntegrationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3381
|
+
const localVarFp = IntegrationApiFp(configuration)
|
|
3382
|
+
return {
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3386
|
+
* @param {*} [options] Override http request option.
|
|
3387
|
+
* @throws {RequiredError}
|
|
3388
|
+
*/
|
|
3389
|
+
integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3390
|
+
return localVarFp.integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3391
|
+
},
|
|
3392
|
+
/**
|
|
3393
|
+
*
|
|
3394
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3395
|
+
* @param {*} [options] Override http request option.
|
|
3396
|
+
* @throws {RequiredError}
|
|
3397
|
+
*/
|
|
3398
|
+
integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig): AxiosPromise<IntegrationResponse> {
|
|
3399
|
+
return localVarFp.integrationControllerMicrosoftCalendar(calendarAccessDTO, options).then((request) => request(axios, basePath));
|
|
3400
|
+
},
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* IntegrationApi - object-oriented interface
|
|
3406
|
+
* @export
|
|
3407
|
+
* @class IntegrationApi
|
|
3408
|
+
* @extends {BaseAPI}
|
|
3409
|
+
*/
|
|
3410
|
+
export class IntegrationApi extends BaseAPI {
|
|
3411
|
+
/**
|
|
3412
|
+
*
|
|
3413
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3414
|
+
* @param {*} [options] Override http request option.
|
|
3415
|
+
* @throws {RequiredError}
|
|
3416
|
+
* @memberof IntegrationApi
|
|
3417
|
+
*/
|
|
3418
|
+
public integrationControllerGoogleCalendarAccess(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3419
|
+
return IntegrationApiFp(this.configuration).integrationControllerGoogleCalendarAccess(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
/**
|
|
3423
|
+
*
|
|
3424
|
+
* @param {CalendarAccessDTO} calendarAccessDTO
|
|
3425
|
+
* @param {*} [options] Override http request option.
|
|
3426
|
+
* @throws {RequiredError}
|
|
3427
|
+
* @memberof IntegrationApi
|
|
3428
|
+
*/
|
|
3429
|
+
public integrationControllerMicrosoftCalendar(calendarAccessDTO: CalendarAccessDTO, options?: RawAxiosRequestConfig) {
|
|
3430
|
+
return IntegrationApiFp(this.configuration).integrationControllerMicrosoftCalendar(calendarAccessDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
* OAuthApi - axios parameter creator
|
|
3438
|
+
* @export
|
|
3439
|
+
*/
|
|
3440
|
+
export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3441
|
+
return {
|
|
3442
|
+
/**
|
|
3443
|
+
*
|
|
3444
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3445
|
+
* @param {*} [options] Override http request option.
|
|
3446
|
+
* @throws {RequiredError}
|
|
3447
|
+
*/
|
|
3448
|
+
oAuthControllerValidateGoogleToken: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3449
|
+
// verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
|
|
3450
|
+
assertParamExists('oAuthControllerValidateGoogleToken', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
3451
|
+
const localVarPath = `/v1/oauth/google`;
|
|
3452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3453
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3454
|
+
let baseOptions;
|
|
3455
|
+
if (configuration) {
|
|
3456
|
+
baseOptions = configuration.baseOptions;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3460
|
+
const localVarHeaderParameter = {} as any;
|
|
3461
|
+
const localVarQueryParameter = {} as any;
|
|
3462
|
+
|
|
3463
|
+
|
|
3464
|
+
|
|
3465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3466
|
+
|
|
3467
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3468
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3469
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3470
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3471
|
+
|
|
3472
|
+
return {
|
|
3473
|
+
url: toPathString(localVarUrlObj),
|
|
3474
|
+
options: localVarRequestOptions,
|
|
3475
|
+
};
|
|
3476
|
+
},
|
|
3477
|
+
/**
|
|
3478
|
+
*
|
|
3479
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3480
|
+
* @param {*} [options] Override http request option.
|
|
3481
|
+
* @throws {RequiredError}
|
|
3482
|
+
*/
|
|
3483
|
+
oAuthControllerValidateGoogleTokenBusiness: async (googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3484
|
+
// verify required parameter 'googleVerificationPayloadDTO' is not null or undefined
|
|
3485
|
+
assertParamExists('oAuthControllerValidateGoogleTokenBusiness', 'googleVerificationPayloadDTO', googleVerificationPayloadDTO)
|
|
3486
|
+
const localVarPath = `/v1/oauth/google/business`;
|
|
3487
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3488
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3489
|
+
let baseOptions;
|
|
3490
|
+
if (configuration) {
|
|
3491
|
+
baseOptions = configuration.baseOptions;
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3495
|
+
const localVarHeaderParameter = {} as any;
|
|
3496
|
+
const localVarQueryParameter = {} as any;
|
|
3497
|
+
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3501
|
+
|
|
3502
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3504
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3505
|
+
localVarRequestOptions.data = serializeDataIfNeeded(googleVerificationPayloadDTO, localVarRequestOptions, configuration)
|
|
3506
|
+
|
|
3507
|
+
return {
|
|
3508
|
+
url: toPathString(localVarUrlObj),
|
|
3509
|
+
options: localVarRequestOptions,
|
|
3510
|
+
};
|
|
3511
|
+
},
|
|
3512
|
+
}
|
|
3513
|
+
};
|
|
2467
3514
|
|
|
2468
3515
|
/**
|
|
2469
3516
|
* OAuthApi - functional programming interface
|
|
@@ -2484,6 +3531,18 @@ export const OAuthApiFp = function(configuration?: Configuration) {
|
|
|
2484
3531
|
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleToken']?.[localVarOperationServerIndex]?.url;
|
|
2485
3532
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2486
3533
|
},
|
|
3534
|
+
/**
|
|
3535
|
+
*
|
|
3536
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3537
|
+
* @param {*} [options] Override http request option.
|
|
3538
|
+
* @throws {RequiredError}
|
|
3539
|
+
*/
|
|
3540
|
+
async oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GoogleOAuthResponseDTO>> {
|
|
3541
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options);
|
|
3542
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3543
|
+
const localVarOperationServerBasePath = operationServerMap['OAuthApi.oAuthControllerValidateGoogleTokenBusiness']?.[localVarOperationServerIndex]?.url;
|
|
3544
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3545
|
+
},
|
|
2487
3546
|
}
|
|
2488
3547
|
};
|
|
2489
3548
|
|
|
@@ -2503,6 +3562,15 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
|
|
|
2503
3562
|
oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
|
|
2504
3563
|
return localVarFp.oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
2505
3564
|
},
|
|
3565
|
+
/**
|
|
3566
|
+
*
|
|
3567
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3568
|
+
* @param {*} [options] Override http request option.
|
|
3569
|
+
* @throws {RequiredError}
|
|
3570
|
+
*/
|
|
3571
|
+
oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<GoogleOAuthResponseDTO> {
|
|
3572
|
+
return localVarFp.oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options).then((request) => request(axios, basePath));
|
|
3573
|
+
},
|
|
2506
3574
|
};
|
|
2507
3575
|
};
|
|
2508
3576
|
|
|
@@ -2523,6 +3591,17 @@ export class OAuthApi extends BaseAPI {
|
|
|
2523
3591
|
public oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
2524
3592
|
return OAuthApiFp(this.configuration).oAuthControllerValidateGoogleToken(googleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
2525
3593
|
}
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
*
|
|
3597
|
+
* @param {GoogleVerificationPayloadDTO} googleVerificationPayloadDTO
|
|
3598
|
+
* @param {*} [options] Override http request option.
|
|
3599
|
+
* @throws {RequiredError}
|
|
3600
|
+
* @memberof OAuthApi
|
|
3601
|
+
*/
|
|
3602
|
+
public oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO: GoogleVerificationPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
3603
|
+
return OAuthApiFp(this.configuration).oAuthControllerValidateGoogleTokenBusiness(googleVerificationPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3604
|
+
}
|
|
2526
3605
|
}
|
|
2527
3606
|
|
|
2528
3607
|
|
|
@@ -2533,13 +3612,48 @@ export class OAuthApi extends BaseAPI {
|
|
|
2533
3612
|
*/
|
|
2534
3613
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2535
3614
|
return {
|
|
3615
|
+
/**
|
|
3616
|
+
*
|
|
3617
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3618
|
+
* @param {*} [options] Override http request option.
|
|
3619
|
+
* @throws {RequiredError}
|
|
3620
|
+
*/
|
|
3621
|
+
paymentControllerCreatePaymentLink: async (createPaymentLinkDTO: CreatePaymentLinkDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3622
|
+
// verify required parameter 'createPaymentLinkDTO' is not null or undefined
|
|
3623
|
+
assertParamExists('paymentControllerCreatePaymentLink', 'createPaymentLinkDTO', createPaymentLinkDTO)
|
|
3624
|
+
const localVarPath = `/v1/payment/payment-link`;
|
|
3625
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3626
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3627
|
+
let baseOptions;
|
|
3628
|
+
if (configuration) {
|
|
3629
|
+
baseOptions = configuration.baseOptions;
|
|
3630
|
+
}
|
|
3631
|
+
|
|
3632
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3633
|
+
const localVarHeaderParameter = {} as any;
|
|
3634
|
+
const localVarQueryParameter = {} as any;
|
|
3635
|
+
|
|
3636
|
+
|
|
3637
|
+
|
|
3638
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3639
|
+
|
|
3640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3642
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3643
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPaymentLinkDTO, localVarRequestOptions, configuration)
|
|
3644
|
+
|
|
3645
|
+
return {
|
|
3646
|
+
url: toPathString(localVarUrlObj),
|
|
3647
|
+
options: localVarRequestOptions,
|
|
3648
|
+
};
|
|
3649
|
+
},
|
|
2536
3650
|
/**
|
|
2537
3651
|
*
|
|
2538
3652
|
* @param {*} [options] Override http request option.
|
|
2539
3653
|
* @throws {RequiredError}
|
|
2540
3654
|
*/
|
|
2541
3655
|
paymentControllerGetPlans: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2542
|
-
const localVarPath = `/v1/plans`;
|
|
3656
|
+
const localVarPath = `/v1/payment/plans`;
|
|
2543
3657
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2544
3658
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2545
3659
|
let baseOptions;
|
|
@@ -2553,6 +3667,42 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2553
3667
|
|
|
2554
3668
|
|
|
2555
3669
|
|
|
3670
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3671
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3672
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3673
|
+
|
|
3674
|
+
return {
|
|
3675
|
+
url: toPathString(localVarUrlObj),
|
|
3676
|
+
options: localVarRequestOptions,
|
|
3677
|
+
};
|
|
3678
|
+
},
|
|
3679
|
+
/**
|
|
3680
|
+
*
|
|
3681
|
+
* @param {string} stripeSignature
|
|
3682
|
+
* @param {*} [options] Override http request option.
|
|
3683
|
+
* @throws {RequiredError}
|
|
3684
|
+
*/
|
|
3685
|
+
paymentControllerStripeWebhook: async (stripeSignature: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3686
|
+
// verify required parameter 'stripeSignature' is not null or undefined
|
|
3687
|
+
assertParamExists('paymentControllerStripeWebhook', 'stripeSignature', stripeSignature)
|
|
3688
|
+
const localVarPath = `/v1/payment/stripe-webhook`;
|
|
3689
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3690
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3691
|
+
let baseOptions;
|
|
3692
|
+
if (configuration) {
|
|
3693
|
+
baseOptions = configuration.baseOptions;
|
|
3694
|
+
}
|
|
3695
|
+
|
|
3696
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3697
|
+
const localVarHeaderParameter = {} as any;
|
|
3698
|
+
const localVarQueryParameter = {} as any;
|
|
3699
|
+
|
|
3700
|
+
if (stripeSignature != null) {
|
|
3701
|
+
localVarHeaderParameter['stripe-signature'] = String(stripeSignature);
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
|
|
2556
3706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2557
3707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2558
3708
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2572,6 +3722,18 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2572
3722
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
2573
3723
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
2574
3724
|
return {
|
|
3725
|
+
/**
|
|
3726
|
+
*
|
|
3727
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3728
|
+
* @param {*} [options] Override http request option.
|
|
3729
|
+
* @throws {RequiredError}
|
|
3730
|
+
*/
|
|
3731
|
+
async paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options);
|
|
3733
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3734
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
|
|
3735
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3736
|
+
},
|
|
2575
3737
|
/**
|
|
2576
3738
|
*
|
|
2577
3739
|
* @param {*} [options] Override http request option.
|
|
@@ -2583,6 +3745,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
2583
3745
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPlans']?.[localVarOperationServerIndex]?.url;
|
|
2584
3746
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2585
3747
|
},
|
|
3748
|
+
/**
|
|
3749
|
+
*
|
|
3750
|
+
* @param {string} stripeSignature
|
|
3751
|
+
* @param {*} [options] Override http request option.
|
|
3752
|
+
* @throws {RequiredError}
|
|
3753
|
+
*/
|
|
3754
|
+
async paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerStripeWebhook(stripeSignature, options);
|
|
3756
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3757
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerStripeWebhook']?.[localVarOperationServerIndex]?.url;
|
|
3758
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3759
|
+
},
|
|
2586
3760
|
}
|
|
2587
3761
|
};
|
|
2588
3762
|
|
|
@@ -2593,6 +3767,15 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
2593
3767
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2594
3768
|
const localVarFp = PlansApiFp(configuration)
|
|
2595
3769
|
return {
|
|
3770
|
+
/**
|
|
3771
|
+
*
|
|
3772
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3773
|
+
* @param {*} [options] Override http request option.
|
|
3774
|
+
* @throws {RequiredError}
|
|
3775
|
+
*/
|
|
3776
|
+
paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3777
|
+
return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
|
|
3778
|
+
},
|
|
2596
3779
|
/**
|
|
2597
3780
|
*
|
|
2598
3781
|
* @param {*} [options] Override http request option.
|
|
@@ -2601,6 +3784,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
2601
3784
|
paymentControllerGetPlans(options?: RawAxiosRequestConfig): AxiosPromise<PlanResponseDTO> {
|
|
2602
3785
|
return localVarFp.paymentControllerGetPlans(options).then((request) => request(axios, basePath));
|
|
2603
3786
|
},
|
|
3787
|
+
/**
|
|
3788
|
+
*
|
|
3789
|
+
* @param {string} stripeSignature
|
|
3790
|
+
* @param {*} [options] Override http request option.
|
|
3791
|
+
* @throws {RequiredError}
|
|
3792
|
+
*/
|
|
3793
|
+
paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3794
|
+
return localVarFp.paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(axios, basePath));
|
|
3795
|
+
},
|
|
2604
3796
|
};
|
|
2605
3797
|
};
|
|
2606
3798
|
|
|
@@ -2611,6 +3803,17 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
2611
3803
|
* @extends {BaseAPI}
|
|
2612
3804
|
*/
|
|
2613
3805
|
export class PlansApi extends BaseAPI {
|
|
3806
|
+
/**
|
|
3807
|
+
*
|
|
3808
|
+
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
3809
|
+
* @param {*} [options] Override http request option.
|
|
3810
|
+
* @throws {RequiredError}
|
|
3811
|
+
* @memberof PlansApi
|
|
3812
|
+
*/
|
|
3813
|
+
public paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig) {
|
|
3814
|
+
return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3815
|
+
}
|
|
3816
|
+
|
|
2614
3817
|
/**
|
|
2615
3818
|
*
|
|
2616
3819
|
* @param {*} [options] Override http request option.
|
|
@@ -2620,6 +3823,17 @@ export class PlansApi extends BaseAPI {
|
|
|
2620
3823
|
public paymentControllerGetPlans(options?: RawAxiosRequestConfig) {
|
|
2621
3824
|
return PlansApiFp(this.configuration).paymentControllerGetPlans(options).then((request) => request(this.axios, this.basePath));
|
|
2622
3825
|
}
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
*
|
|
3829
|
+
* @param {string} stripeSignature
|
|
3830
|
+
* @param {*} [options] Override http request option.
|
|
3831
|
+
* @throws {RequiredError}
|
|
3832
|
+
* @memberof PlansApi
|
|
3833
|
+
*/
|
|
3834
|
+
public paymentControllerStripeWebhook(stripeSignature: string, options?: RawAxiosRequestConfig) {
|
|
3835
|
+
return PlansApiFp(this.configuration).paymentControllerStripeWebhook(stripeSignature, options).then((request) => request(this.axios, this.basePath));
|
|
3836
|
+
}
|
|
2623
3837
|
}
|
|
2624
3838
|
|
|
2625
3839
|
|