@gooday_corp/gooday-api-client 1.1.12-delta → 1.1.12-delta-4
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 +533 -119
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -165,12 +165,24 @@ export interface BusinessEntity {
|
|
|
165
165
|
* @memberof BusinessEntity
|
|
166
166
|
*/
|
|
167
167
|
'timing'?: Array<BusinessTiming>;
|
|
168
|
+
/**
|
|
169
|
+
* Business Current Timing
|
|
170
|
+
* @type {BusinessTiming}
|
|
171
|
+
* @memberof BusinessEntity
|
|
172
|
+
*/
|
|
173
|
+
'currentTime'?: BusinessTiming;
|
|
168
174
|
/**
|
|
169
175
|
* Business policies
|
|
170
176
|
* @type {string}
|
|
171
177
|
* @memberof BusinessEntity
|
|
172
178
|
*/
|
|
173
179
|
'policies'?: string;
|
|
180
|
+
/**
|
|
181
|
+
* Business Name
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof BusinessEntity
|
|
184
|
+
*/
|
|
185
|
+
'name'?: string;
|
|
174
186
|
/**
|
|
175
187
|
* Business cancellationFee
|
|
176
188
|
* @type {number}
|
|
@@ -191,10 +203,10 @@ export interface BusinessEntity {
|
|
|
191
203
|
'businessCountry'?: string;
|
|
192
204
|
/**
|
|
193
205
|
* Business Venue
|
|
194
|
-
* @type {Array<
|
|
206
|
+
* @type {Array<string>}
|
|
195
207
|
* @memberof BusinessEntity
|
|
196
208
|
*/
|
|
197
|
-
'venues'?: Array<
|
|
209
|
+
'venues'?: Array<string>;
|
|
198
210
|
/**
|
|
199
211
|
* Business Type
|
|
200
212
|
* @type {string}
|
|
@@ -223,12 +235,45 @@ export interface BusinessEntity {
|
|
|
223
235
|
|
|
224
236
|
export const BusinessEntityStatusEnum = {
|
|
225
237
|
Verified: 'VERIFIED',
|
|
238
|
+
InProgress: 'IN_PROGRESS',
|
|
226
239
|
Pending: 'PENDING',
|
|
227
240
|
QuoteRequested: 'QUOTE_REQUESTED'
|
|
228
241
|
} as const;
|
|
229
242
|
|
|
230
243
|
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
231
244
|
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @export
|
|
248
|
+
* @interface BusinessFavoriteDTO
|
|
249
|
+
*/
|
|
250
|
+
export interface BusinessFavoriteDTO {
|
|
251
|
+
/**
|
|
252
|
+
* Business Venue Id
|
|
253
|
+
* @type {string}
|
|
254
|
+
* @memberof BusinessFavoriteDTO
|
|
255
|
+
*/
|
|
256
|
+
'venue': string;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @export
|
|
261
|
+
* @interface BusinessFavoriteResponse
|
|
262
|
+
*/
|
|
263
|
+
export interface BusinessFavoriteResponse {
|
|
264
|
+
/**
|
|
265
|
+
* statusCode
|
|
266
|
+
* @type {number}
|
|
267
|
+
* @memberof BusinessFavoriteResponse
|
|
268
|
+
*/
|
|
269
|
+
'statusCode': number;
|
|
270
|
+
/**
|
|
271
|
+
* Business Favorite
|
|
272
|
+
* @type {BusinessFavoriteDTO}
|
|
273
|
+
* @memberof BusinessFavoriteResponse
|
|
274
|
+
*/
|
|
275
|
+
'data': BusinessFavoriteDTO;
|
|
276
|
+
}
|
|
232
277
|
/**
|
|
233
278
|
*
|
|
234
279
|
* @export
|
|
@@ -253,6 +298,12 @@ export interface BusinessOnBoardingDTO {
|
|
|
253
298
|
* @memberof BusinessOnBoardingDTO
|
|
254
299
|
*/
|
|
255
300
|
'policies'?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Business Name
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof BusinessOnBoardingDTO
|
|
305
|
+
*/
|
|
306
|
+
'name'?: string;
|
|
256
307
|
/**
|
|
257
308
|
* Business cancellationFee
|
|
258
309
|
* @type {number}
|
|
@@ -371,6 +422,31 @@ export interface BusinessTypeEntity {
|
|
|
371
422
|
* @memberof BusinessTypeEntity
|
|
372
423
|
*/
|
|
373
424
|
'name': string;
|
|
425
|
+
/**
|
|
426
|
+
* Business Image
|
|
427
|
+
* @type {BusinessTypeImageDTO}
|
|
428
|
+
* @memberof BusinessTypeEntity
|
|
429
|
+
*/
|
|
430
|
+
'images': BusinessTypeImageDTO;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @export
|
|
435
|
+
* @interface BusinessTypeImageDTO
|
|
436
|
+
*/
|
|
437
|
+
export interface BusinessTypeImageDTO {
|
|
438
|
+
/**
|
|
439
|
+
* Business Type Image Small
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof BusinessTypeImageDTO
|
|
442
|
+
*/
|
|
443
|
+
'small': string;
|
|
444
|
+
/**
|
|
445
|
+
* Business Type Image Large
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof BusinessTypeImageDTO
|
|
448
|
+
*/
|
|
449
|
+
'large': string;
|
|
374
450
|
}
|
|
375
451
|
/**
|
|
376
452
|
*
|
|
@@ -391,6 +467,25 @@ export interface BusinessTypeListResponse {
|
|
|
391
467
|
*/
|
|
392
468
|
'data': Array<BusinessTypeEntity>;
|
|
393
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @export
|
|
473
|
+
* @interface BusinessUnFavoriteResponse
|
|
474
|
+
*/
|
|
475
|
+
export interface BusinessUnFavoriteResponse {
|
|
476
|
+
/**
|
|
477
|
+
* statusCode
|
|
478
|
+
* @type {number}
|
|
479
|
+
* @memberof BusinessUnFavoriteResponse
|
|
480
|
+
*/
|
|
481
|
+
'statusCode': number;
|
|
482
|
+
/**
|
|
483
|
+
* Business Favorite Rule
|
|
484
|
+
* @type {string}
|
|
485
|
+
* @memberof BusinessUnFavoriteResponse
|
|
486
|
+
*/
|
|
487
|
+
'message': string;
|
|
488
|
+
}
|
|
394
489
|
/**
|
|
395
490
|
*
|
|
396
491
|
* @export
|
|
@@ -398,11 +493,11 @@ export interface BusinessTypeListResponse {
|
|
|
398
493
|
*/
|
|
399
494
|
export interface BusinessVenueDTO {
|
|
400
495
|
/**
|
|
401
|
-
*
|
|
496
|
+
* coverPhots
|
|
402
497
|
* @type {string}
|
|
403
498
|
* @memberof BusinessVenueDTO
|
|
404
499
|
*/
|
|
405
|
-
'
|
|
500
|
+
'coverPhoto': string;
|
|
406
501
|
/**
|
|
407
502
|
*
|
|
408
503
|
* @type {string}
|
|
@@ -415,6 +510,80 @@ export interface BusinessVenueDTO {
|
|
|
415
510
|
* @memberof BusinessVenueDTO
|
|
416
511
|
*/
|
|
417
512
|
'location': LocationDTO;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof BusinessVenueDTO
|
|
517
|
+
*/
|
|
518
|
+
'numberOfEmployee': string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @export
|
|
523
|
+
* @interface BusinessVenueDetailsDTO
|
|
524
|
+
*/
|
|
525
|
+
export interface BusinessVenueDetailsDTO {
|
|
526
|
+
/**
|
|
527
|
+
* Unique identifier for the business venue
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof BusinessVenueDetailsDTO
|
|
530
|
+
*/
|
|
531
|
+
'_id'?: string;
|
|
532
|
+
/**
|
|
533
|
+
* coverPhots
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof BusinessVenueDetailsDTO
|
|
536
|
+
*/
|
|
537
|
+
'coverPhoto': string;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof BusinessVenueDetailsDTO
|
|
542
|
+
*/
|
|
543
|
+
'priceRange': string;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {LocationDTO}
|
|
547
|
+
* @memberof BusinessVenueDetailsDTO
|
|
548
|
+
*/
|
|
549
|
+
'location': LocationDTO;
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @memberof BusinessVenueDetailsDTO
|
|
554
|
+
*/
|
|
555
|
+
'numberOfEmployee': string;
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @type {UserMeDTO}
|
|
559
|
+
* @memberof BusinessVenueDetailsDTO
|
|
560
|
+
*/
|
|
561
|
+
'user': UserMeDTO;
|
|
562
|
+
/**
|
|
563
|
+
*
|
|
564
|
+
* @type {BusinessEntity}
|
|
565
|
+
* @memberof BusinessVenueDetailsDTO
|
|
566
|
+
*/
|
|
567
|
+
'business': BusinessEntity;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @export
|
|
572
|
+
* @interface BusinessVenueResponseDTO
|
|
573
|
+
*/
|
|
574
|
+
export interface BusinessVenueResponseDTO {
|
|
575
|
+
/**
|
|
576
|
+
* statusCode
|
|
577
|
+
* @type {number}
|
|
578
|
+
* @memberof BusinessVenueResponseDTO
|
|
579
|
+
*/
|
|
580
|
+
'statusCode': number;
|
|
581
|
+
/**
|
|
582
|
+
* Business verification
|
|
583
|
+
* @type {Array<BusinessVenueDetailsDTO>}
|
|
584
|
+
* @memberof BusinessVenueResponseDTO
|
|
585
|
+
*/
|
|
586
|
+
'data': Array<BusinessVenueDetailsDTO>;
|
|
418
587
|
}
|
|
419
588
|
/**
|
|
420
589
|
*
|
|
@@ -479,6 +648,12 @@ export interface CategoryEntity {
|
|
|
479
648
|
* @memberof CategoryEntity
|
|
480
649
|
*/
|
|
481
650
|
'name': string;
|
|
651
|
+
/**
|
|
652
|
+
* Image of category
|
|
653
|
+
* @type {string}
|
|
654
|
+
* @memberof CategoryEntity
|
|
655
|
+
*/
|
|
656
|
+
'image': string;
|
|
482
657
|
/**
|
|
483
658
|
* Unique identifier or reference of the business Type
|
|
484
659
|
* @type {string}
|
|
@@ -1428,6 +1603,12 @@ export interface SignupDto {
|
|
|
1428
1603
|
* @memberof SignupDto
|
|
1429
1604
|
*/
|
|
1430
1605
|
'lastName': string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Contact Number For User
|
|
1608
|
+
* @type {string}
|
|
1609
|
+
* @memberof SignupDto
|
|
1610
|
+
*/
|
|
1611
|
+
'phoneNo': string;
|
|
1431
1612
|
/**
|
|
1432
1613
|
* The email of the user
|
|
1433
1614
|
* @type {string}
|
|
@@ -1560,6 +1741,12 @@ export interface UserEntity {
|
|
|
1560
1741
|
* @memberof UserEntity
|
|
1561
1742
|
*/
|
|
1562
1743
|
'_id': string;
|
|
1744
|
+
/**
|
|
1745
|
+
* Unique identifier for the Gooday user
|
|
1746
|
+
* @type {string}
|
|
1747
|
+
* @memberof UserEntity
|
|
1748
|
+
*/
|
|
1749
|
+
'goodayId': string;
|
|
1563
1750
|
/**
|
|
1564
1751
|
* First name of the user
|
|
1565
1752
|
* @type {string}
|
|
@@ -1596,6 +1783,12 @@ export interface UserEntity {
|
|
|
1596
1783
|
* @memberof UserEntity
|
|
1597
1784
|
*/
|
|
1598
1785
|
'assistant': string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Phone No
|
|
1788
|
+
* @type {string}
|
|
1789
|
+
* @memberof UserEntity
|
|
1790
|
+
*/
|
|
1791
|
+
'phoneNo': string;
|
|
1599
1792
|
/**
|
|
1600
1793
|
* Indicates whether the user\'s email has been verified
|
|
1601
1794
|
* @type {boolean}
|
|
@@ -2613,7 +2806,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2613
2806
|
* @throws {RequiredError}
|
|
2614
2807
|
*/
|
|
2615
2808
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2616
|
-
const localVarPath = `/business`;
|
|
2809
|
+
const localVarPath = `/v1/business`;
|
|
2617
2810
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2618
2811
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2619
2812
|
let baseOptions;
|
|
@@ -2627,6 +2820,74 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2627
2820
|
|
|
2628
2821
|
|
|
2629
2822
|
|
|
2823
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2824
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2825
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2826
|
+
|
|
2827
|
+
return {
|
|
2828
|
+
url: toPathString(localVarUrlObj),
|
|
2829
|
+
options: localVarRequestOptions,
|
|
2830
|
+
};
|
|
2831
|
+
},
|
|
2832
|
+
/**
|
|
2833
|
+
*
|
|
2834
|
+
* @param {string} [type] Business type ID
|
|
2835
|
+
* @param {string} [search] Business name search
|
|
2836
|
+
* @param {string} [category] Business category ID
|
|
2837
|
+
* @param {number} [longitude] Longitude of the location
|
|
2838
|
+
* @param {number} [latitude] Latitude of the location
|
|
2839
|
+
* @param {number} [page] Page number for pagination
|
|
2840
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
2841
|
+
* @param {*} [options] Override http request option.
|
|
2842
|
+
* @throws {RequiredError}
|
|
2843
|
+
*/
|
|
2844
|
+
businessTypeControllerGetBusinessVenue: async (type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2845
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
2846
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2847
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2848
|
+
let baseOptions;
|
|
2849
|
+
if (configuration) {
|
|
2850
|
+
baseOptions = configuration.baseOptions;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2854
|
+
const localVarHeaderParameter = {} as any;
|
|
2855
|
+
const localVarQueryParameter = {} as any;
|
|
2856
|
+
|
|
2857
|
+
// authentication bearer required
|
|
2858
|
+
// http bearer authentication required
|
|
2859
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2860
|
+
|
|
2861
|
+
if (type !== undefined) {
|
|
2862
|
+
localVarQueryParameter['type'] = type;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
if (search !== undefined) {
|
|
2866
|
+
localVarQueryParameter['search'] = search;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
if (category !== undefined) {
|
|
2870
|
+
localVarQueryParameter['category'] = category;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
if (longitude !== undefined) {
|
|
2874
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
if (latitude !== undefined) {
|
|
2878
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
2879
|
+
}
|
|
2880
|
+
|
|
2881
|
+
if (page !== undefined) {
|
|
2882
|
+
localVarQueryParameter['page'] = page;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
if (limit !== undefined) {
|
|
2886
|
+
localVarQueryParameter['limit'] = limit;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
|
|
2890
|
+
|
|
2630
2891
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2631
2892
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2632
2893
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2671,15 +2932,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2671
2932
|
},
|
|
2672
2933
|
/**
|
|
2673
2934
|
*
|
|
2674
|
-
* @param {string}
|
|
2935
|
+
* @param {string} businessTypeId ID of the business type
|
|
2675
2936
|
* @param {*} [options] Override http request option.
|
|
2676
2937
|
* @throws {RequiredError}
|
|
2677
2938
|
*/
|
|
2678
|
-
businessTypeControllerListCategories: async (
|
|
2679
|
-
// verify required parameter '
|
|
2680
|
-
assertParamExists('businessTypeControllerListCategories', '
|
|
2681
|
-
const localVarPath = `/v1/business/{
|
|
2682
|
-
.replace(`{${"
|
|
2939
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2940
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
2941
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
2942
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
2943
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2683
2944
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2684
2945
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2685
2946
|
let baseOptions;
|
|
@@ -2763,6 +3024,121 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2763
3024
|
|
|
2764
3025
|
|
|
2765
3026
|
|
|
3027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3029
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3030
|
+
|
|
3031
|
+
return {
|
|
3032
|
+
url: toPathString(localVarUrlObj),
|
|
3033
|
+
options: localVarRequestOptions,
|
|
3034
|
+
};
|
|
3035
|
+
},
|
|
3036
|
+
/**
|
|
3037
|
+
*
|
|
3038
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3039
|
+
* @param {*} [options] Override http request option.
|
|
3040
|
+
* @throws {RequiredError}
|
|
3041
|
+
*/
|
|
3042
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3043
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3044
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3045
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3046
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3047
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3048
|
+
let baseOptions;
|
|
3049
|
+
if (configuration) {
|
|
3050
|
+
baseOptions = configuration.baseOptions;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3054
|
+
const localVarHeaderParameter = {} as any;
|
|
3055
|
+
const localVarQueryParameter = {} as any;
|
|
3056
|
+
|
|
3057
|
+
// authentication bearer required
|
|
3058
|
+
// http bearer authentication required
|
|
3059
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3060
|
+
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3064
|
+
|
|
3065
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3066
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3067
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3068
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3069
|
+
|
|
3070
|
+
return {
|
|
3071
|
+
url: toPathString(localVarUrlObj),
|
|
3072
|
+
options: localVarRequestOptions,
|
|
3073
|
+
};
|
|
3074
|
+
},
|
|
3075
|
+
/**
|
|
3076
|
+
*
|
|
3077
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3078
|
+
* @param {*} [options] Override http request option.
|
|
3079
|
+
* @throws {RequiredError}
|
|
3080
|
+
*/
|
|
3081
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3082
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3083
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3084
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3085
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3086
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3087
|
+
let baseOptions;
|
|
3088
|
+
if (configuration) {
|
|
3089
|
+
baseOptions = configuration.baseOptions;
|
|
3090
|
+
}
|
|
3091
|
+
|
|
3092
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3093
|
+
const localVarHeaderParameter = {} as any;
|
|
3094
|
+
const localVarQueryParameter = {} as any;
|
|
3095
|
+
|
|
3096
|
+
// authentication bearer required
|
|
3097
|
+
// http bearer authentication required
|
|
3098
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
|
|
3102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3103
|
+
|
|
3104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3106
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3107
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3108
|
+
|
|
3109
|
+
return {
|
|
3110
|
+
url: toPathString(localVarUrlObj),
|
|
3111
|
+
options: localVarRequestOptions,
|
|
3112
|
+
};
|
|
3113
|
+
},
|
|
3114
|
+
/**
|
|
3115
|
+
*
|
|
3116
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3117
|
+
* @param {string} businessNumber
|
|
3118
|
+
* @param {*} [options] Override http request option.
|
|
3119
|
+
* @throws {RequiredError}
|
|
3120
|
+
*/
|
|
3121
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3122
|
+
// verify required parameter 'type' is not null or undefined
|
|
3123
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3124
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3125
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3126
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3127
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3128
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3130
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3131
|
+
let baseOptions;
|
|
3132
|
+
if (configuration) {
|
|
3133
|
+
baseOptions = configuration.baseOptions;
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3137
|
+
const localVarHeaderParameter = {} as any;
|
|
3138
|
+
const localVarQueryParameter = {} as any;
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
|
|
2766
3142
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
3143
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
3144
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2810,12 +3186,30 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2810
3186
|
* @param {*} [options] Override http request option.
|
|
2811
3187
|
* @throws {RequiredError}
|
|
2812
3188
|
*/
|
|
2813
|
-
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3189
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
2814
3190
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2815
3191
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2816
3192
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2817
3193
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2818
3194
|
},
|
|
3195
|
+
/**
|
|
3196
|
+
*
|
|
3197
|
+
* @param {string} [type] Business type ID
|
|
3198
|
+
* @param {string} [search] Business name search
|
|
3199
|
+
* @param {string} [category] Business category ID
|
|
3200
|
+
* @param {number} [longitude] Longitude of the location
|
|
3201
|
+
* @param {number} [latitude] Latitude of the location
|
|
3202
|
+
* @param {number} [page] Page number for pagination
|
|
3203
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3204
|
+
* @param {*} [options] Override http request option.
|
|
3205
|
+
* @throws {RequiredError}
|
|
3206
|
+
*/
|
|
3207
|
+
async businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVenueResponseDTO>> {
|
|
3208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options);
|
|
3209
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3210
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
3211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3212
|
+
},
|
|
2819
3213
|
/**
|
|
2820
3214
|
*
|
|
2821
3215
|
* @param {*} [options] Override http request option.
|
|
@@ -2829,12 +3223,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2829
3223
|
},
|
|
2830
3224
|
/**
|
|
2831
3225
|
*
|
|
2832
|
-
* @param {string}
|
|
3226
|
+
* @param {string} businessTypeId ID of the business type
|
|
2833
3227
|
* @param {*} [options] Override http request option.
|
|
2834
3228
|
* @throws {RequiredError}
|
|
2835
3229
|
*/
|
|
2836
|
-
async businessTypeControllerListCategories(
|
|
2837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(
|
|
3230
|
+
async businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
3231
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessTypeId, options);
|
|
2838
3232
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2839
3233
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
2840
3234
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2861,6 +3255,43 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2861
3255
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
|
|
2862
3256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2863
3257
|
},
|
|
3258
|
+
/**
|
|
3259
|
+
*
|
|
3260
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3261
|
+
* @param {*} [options] Override http request option.
|
|
3262
|
+
* @throws {RequiredError}
|
|
3263
|
+
*/
|
|
3264
|
+
async businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessFavoriteResponse>> {
|
|
3265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options);
|
|
3266
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3267
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerMarkBusinessAsFavorite']?.[localVarOperationServerIndex]?.url;
|
|
3268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3269
|
+
},
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3273
|
+
* @param {*} [options] Override http request option.
|
|
3274
|
+
* @throws {RequiredError}
|
|
3275
|
+
*/
|
|
3276
|
+
async businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessUnFavoriteResponse>> {
|
|
3277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options);
|
|
3278
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3279
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerUnFavoriteBusiness']?.[localVarOperationServerIndex]?.url;
|
|
3280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3281
|
+
},
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3285
|
+
* @param {string} businessNumber
|
|
3286
|
+
* @param {*} [options] Override http request option.
|
|
3287
|
+
* @throws {RequiredError}
|
|
3288
|
+
*/
|
|
3289
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3291
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3292
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3293
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3294
|
+
},
|
|
2864
3295
|
}
|
|
2865
3296
|
};
|
|
2866
3297
|
|
|
@@ -2893,9 +3324,24 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2893
3324
|
* @param {*} [options] Override http request option.
|
|
2894
3325
|
* @throws {RequiredError}
|
|
2895
3326
|
*/
|
|
2896
|
-
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3327
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
|
|
2897
3328
|
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
2898
3329
|
},
|
|
3330
|
+
/**
|
|
3331
|
+
*
|
|
3332
|
+
* @param {string} [type] Business type ID
|
|
3333
|
+
* @param {string} [search] Business name search
|
|
3334
|
+
* @param {string} [category] Business category ID
|
|
3335
|
+
* @param {number} [longitude] Longitude of the location
|
|
3336
|
+
* @param {number} [latitude] Latitude of the location
|
|
3337
|
+
* @param {number} [page] Page number for pagination
|
|
3338
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3339
|
+
* @param {*} [options] Override http request option.
|
|
3340
|
+
* @throws {RequiredError}
|
|
3341
|
+
*/
|
|
3342
|
+
businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3343
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
|
|
3344
|
+
},
|
|
2899
3345
|
/**
|
|
2900
3346
|
*
|
|
2901
3347
|
* @param {*} [options] Override http request option.
|
|
@@ -2906,12 +3352,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2906
3352
|
},
|
|
2907
3353
|
/**
|
|
2908
3354
|
*
|
|
2909
|
-
* @param {string}
|
|
3355
|
+
* @param {string} businessTypeId ID of the business type
|
|
2910
3356
|
* @param {*} [options] Override http request option.
|
|
2911
3357
|
* @throws {RequiredError}
|
|
2912
3358
|
*/
|
|
2913
|
-
businessTypeControllerListCategories(
|
|
2914
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3359
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3360
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
2915
3361
|
},
|
|
2916
3362
|
/**
|
|
2917
3363
|
*
|
|
@@ -2929,6 +3375,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2929
3375
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
2930
3376
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
2931
3377
|
},
|
|
3378
|
+
/**
|
|
3379
|
+
*
|
|
3380
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3381
|
+
* @param {*} [options] Override http request option.
|
|
3382
|
+
* @throws {RequiredError}
|
|
3383
|
+
*/
|
|
3384
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3385
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3386
|
+
},
|
|
3387
|
+
/**
|
|
3388
|
+
*
|
|
3389
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3390
|
+
* @param {*} [options] Override http request option.
|
|
3391
|
+
* @throws {RequiredError}
|
|
3392
|
+
*/
|
|
3393
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3394
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3395
|
+
},
|
|
3396
|
+
/**
|
|
3397
|
+
*
|
|
3398
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3399
|
+
* @param {string} businessNumber
|
|
3400
|
+
* @param {*} [options] Override http request option.
|
|
3401
|
+
* @throws {RequiredError}
|
|
3402
|
+
*/
|
|
3403
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3404
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3405
|
+
},
|
|
2932
3406
|
};
|
|
2933
3407
|
};
|
|
2934
3408
|
|
|
@@ -2970,6 +3444,23 @@ export class BusinessApi extends BaseAPI {
|
|
|
2970
3444
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2971
3445
|
}
|
|
2972
3446
|
|
|
3447
|
+
/**
|
|
3448
|
+
*
|
|
3449
|
+
* @param {string} [type] Business type ID
|
|
3450
|
+
* @param {string} [search] Business name search
|
|
3451
|
+
* @param {string} [category] Business category ID
|
|
3452
|
+
* @param {number} [longitude] Longitude of the location
|
|
3453
|
+
* @param {number} [latitude] Latitude of the location
|
|
3454
|
+
* @param {number} [page] Page number for pagination
|
|
3455
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3456
|
+
* @param {*} [options] Override http request option.
|
|
3457
|
+
* @throws {RequiredError}
|
|
3458
|
+
* @memberof BusinessApi
|
|
3459
|
+
*/
|
|
3460
|
+
public businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3461
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3462
|
+
}
|
|
3463
|
+
|
|
2973
3464
|
/**
|
|
2974
3465
|
*
|
|
2975
3466
|
* @param {*} [options] Override http request option.
|
|
@@ -2982,13 +3473,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
2982
3473
|
|
|
2983
3474
|
/**
|
|
2984
3475
|
*
|
|
2985
|
-
* @param {string}
|
|
3476
|
+
* @param {string} businessTypeId ID of the business type
|
|
2986
3477
|
* @param {*} [options] Override http request option.
|
|
2987
3478
|
* @throws {RequiredError}
|
|
2988
3479
|
* @memberof BusinessApi
|
|
2989
3480
|
*/
|
|
2990
|
-
public businessTypeControllerListCategories(
|
|
2991
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3481
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3482
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
2992
3483
|
}
|
|
2993
3484
|
|
|
2994
3485
|
/**
|
|
@@ -3010,116 +3501,39 @@ export class BusinessApi extends BaseAPI {
|
|
|
3010
3501
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3011
3502
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3012
3503
|
}
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
/**
|
|
3018
|
-
* BusinessVerificationApi - axios parameter creator
|
|
3019
|
-
* @export
|
|
3020
|
-
*/
|
|
3021
|
-
export const BusinessVerificationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3022
|
-
return {
|
|
3023
|
-
/**
|
|
3024
|
-
*
|
|
3025
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3026
|
-
* @param {string} businessNumber
|
|
3027
|
-
* @param {*} [options] Override http request option.
|
|
3028
|
-
* @throws {RequiredError}
|
|
3029
|
-
*/
|
|
3030
|
-
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3031
|
-
// verify required parameter 'type' is not null or undefined
|
|
3032
|
-
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3033
|
-
// verify required parameter 'businessNumber' is not null or undefined
|
|
3034
|
-
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3035
|
-
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3036
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3037
|
-
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3038
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3039
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3040
|
-
let baseOptions;
|
|
3041
|
-
if (configuration) {
|
|
3042
|
-
baseOptions = configuration.baseOptions;
|
|
3043
|
-
}
|
|
3044
|
-
|
|
3045
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3046
|
-
const localVarHeaderParameter = {} as any;
|
|
3047
|
-
const localVarQueryParameter = {} as any;
|
|
3048
|
-
|
|
3049
3504
|
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
},
|
|
3505
|
+
/**
|
|
3506
|
+
*
|
|
3507
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3508
|
+
* @param {*} [options] Override http request option.
|
|
3509
|
+
* @throws {RequiredError}
|
|
3510
|
+
* @memberof BusinessApi
|
|
3511
|
+
*/
|
|
3512
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3513
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3514
|
}
|
|
3061
|
-
};
|
|
3062
3515
|
|
|
3063
|
-
/**
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3073
|
-
* @param {string} businessNumber
|
|
3074
|
-
* @param {*} [options] Override http request option.
|
|
3075
|
-
* @throws {RequiredError}
|
|
3076
|
-
*/
|
|
3077
|
-
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3078
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3079
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3080
|
-
const localVarOperationServerBasePath = operationServerMap['BusinessVerificationApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3081
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3082
|
-
},
|
|
3516
|
+
/**
|
|
3517
|
+
*
|
|
3518
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3519
|
+
* @param {*} [options] Override http request option.
|
|
3520
|
+
* @throws {RequiredError}
|
|
3521
|
+
* @memberof BusinessApi
|
|
3522
|
+
*/
|
|
3523
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3524
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3083
3525
|
}
|
|
3084
|
-
};
|
|
3085
3526
|
|
|
3086
|
-
/**
|
|
3087
|
-
* BusinessVerificationApi - factory interface
|
|
3088
|
-
* @export
|
|
3089
|
-
*/
|
|
3090
|
-
export const BusinessVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3091
|
-
const localVarFp = BusinessVerificationApiFp(configuration)
|
|
3092
|
-
return {
|
|
3093
|
-
/**
|
|
3094
|
-
*
|
|
3095
|
-
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3096
|
-
* @param {string} businessNumber
|
|
3097
|
-
* @param {*} [options] Override http request option.
|
|
3098
|
-
* @throws {RequiredError}
|
|
3099
|
-
*/
|
|
3100
|
-
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3101
|
-
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3102
|
-
},
|
|
3103
|
-
};
|
|
3104
|
-
};
|
|
3105
|
-
|
|
3106
|
-
/**
|
|
3107
|
-
* BusinessVerificationApi - object-oriented interface
|
|
3108
|
-
* @export
|
|
3109
|
-
* @class BusinessVerificationApi
|
|
3110
|
-
* @extends {BaseAPI}
|
|
3111
|
-
*/
|
|
3112
|
-
export class BusinessVerificationApi extends BaseAPI {
|
|
3113
3527
|
/**
|
|
3114
3528
|
*
|
|
3115
3529
|
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3116
3530
|
* @param {string} businessNumber
|
|
3117
3531
|
* @param {*} [options] Override http request option.
|
|
3118
3532
|
* @throws {RequiredError}
|
|
3119
|
-
* @memberof
|
|
3533
|
+
* @memberof BusinessApi
|
|
3120
3534
|
*/
|
|
3121
3535
|
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3122
|
-
return
|
|
3536
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3123
3537
|
}
|
|
3124
3538
|
}
|
|
3125
3539
|
|