@gooday_corp/gooday-api-client 1.1.12-delta → 1.1.12-delta-3
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 +520 -118
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -171,6 +171,12 @@ export interface BusinessEntity {
|
|
|
171
171
|
* @memberof BusinessEntity
|
|
172
172
|
*/
|
|
173
173
|
'policies'?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Business Name
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof BusinessEntity
|
|
178
|
+
*/
|
|
179
|
+
'name'?: string;
|
|
174
180
|
/**
|
|
175
181
|
* Business cancellationFee
|
|
176
182
|
* @type {number}
|
|
@@ -191,10 +197,10 @@ export interface BusinessEntity {
|
|
|
191
197
|
'businessCountry'?: string;
|
|
192
198
|
/**
|
|
193
199
|
* Business Venue
|
|
194
|
-
* @type {Array<
|
|
200
|
+
* @type {Array<string>}
|
|
195
201
|
* @memberof BusinessEntity
|
|
196
202
|
*/
|
|
197
|
-
'venues'?: Array<
|
|
203
|
+
'venues'?: Array<string>;
|
|
198
204
|
/**
|
|
199
205
|
* Business Type
|
|
200
206
|
* @type {string}
|
|
@@ -223,12 +229,45 @@ export interface BusinessEntity {
|
|
|
223
229
|
|
|
224
230
|
export const BusinessEntityStatusEnum = {
|
|
225
231
|
Verified: 'VERIFIED',
|
|
232
|
+
InProgress: 'IN_PROGRESS',
|
|
226
233
|
Pending: 'PENDING',
|
|
227
234
|
QuoteRequested: 'QUOTE_REQUESTED'
|
|
228
235
|
} as const;
|
|
229
236
|
|
|
230
237
|
export type BusinessEntityStatusEnum = typeof BusinessEntityStatusEnum[keyof typeof BusinessEntityStatusEnum];
|
|
231
238
|
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @export
|
|
242
|
+
* @interface BusinessFavoriteDTO
|
|
243
|
+
*/
|
|
244
|
+
export interface BusinessFavoriteDTO {
|
|
245
|
+
/**
|
|
246
|
+
* Business Venue Id
|
|
247
|
+
* @type {string}
|
|
248
|
+
* @memberof BusinessFavoriteDTO
|
|
249
|
+
*/
|
|
250
|
+
'venue': string;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @export
|
|
255
|
+
* @interface BusinessFavoriteResponse
|
|
256
|
+
*/
|
|
257
|
+
export interface BusinessFavoriteResponse {
|
|
258
|
+
/**
|
|
259
|
+
* statusCode
|
|
260
|
+
* @type {number}
|
|
261
|
+
* @memberof BusinessFavoriteResponse
|
|
262
|
+
*/
|
|
263
|
+
'statusCode': number;
|
|
264
|
+
/**
|
|
265
|
+
* Business Favorite
|
|
266
|
+
* @type {BusinessFavoriteDTO}
|
|
267
|
+
* @memberof BusinessFavoriteResponse
|
|
268
|
+
*/
|
|
269
|
+
'data': BusinessFavoriteDTO;
|
|
270
|
+
}
|
|
232
271
|
/**
|
|
233
272
|
*
|
|
234
273
|
* @export
|
|
@@ -253,6 +292,12 @@ export interface BusinessOnBoardingDTO {
|
|
|
253
292
|
* @memberof BusinessOnBoardingDTO
|
|
254
293
|
*/
|
|
255
294
|
'policies'?: string;
|
|
295
|
+
/**
|
|
296
|
+
* Business Name
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof BusinessOnBoardingDTO
|
|
299
|
+
*/
|
|
300
|
+
'name'?: string;
|
|
256
301
|
/**
|
|
257
302
|
* Business cancellationFee
|
|
258
303
|
* @type {number}
|
|
@@ -371,6 +416,31 @@ export interface BusinessTypeEntity {
|
|
|
371
416
|
* @memberof BusinessTypeEntity
|
|
372
417
|
*/
|
|
373
418
|
'name': string;
|
|
419
|
+
/**
|
|
420
|
+
* Business Image
|
|
421
|
+
* @type {BusinessTypeImageDTO}
|
|
422
|
+
* @memberof BusinessTypeEntity
|
|
423
|
+
*/
|
|
424
|
+
'images': BusinessTypeImageDTO;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @export
|
|
429
|
+
* @interface BusinessTypeImageDTO
|
|
430
|
+
*/
|
|
431
|
+
export interface BusinessTypeImageDTO {
|
|
432
|
+
/**
|
|
433
|
+
* Business Type Image Small
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof BusinessTypeImageDTO
|
|
436
|
+
*/
|
|
437
|
+
'small': string;
|
|
438
|
+
/**
|
|
439
|
+
* Business Type Image Large
|
|
440
|
+
* @type {string}
|
|
441
|
+
* @memberof BusinessTypeImageDTO
|
|
442
|
+
*/
|
|
443
|
+
'large': string;
|
|
374
444
|
}
|
|
375
445
|
/**
|
|
376
446
|
*
|
|
@@ -391,6 +461,25 @@ export interface BusinessTypeListResponse {
|
|
|
391
461
|
*/
|
|
392
462
|
'data': Array<BusinessTypeEntity>;
|
|
393
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @export
|
|
467
|
+
* @interface BusinessUnFavoriteResponse
|
|
468
|
+
*/
|
|
469
|
+
export interface BusinessUnFavoriteResponse {
|
|
470
|
+
/**
|
|
471
|
+
* statusCode
|
|
472
|
+
* @type {number}
|
|
473
|
+
* @memberof BusinessUnFavoriteResponse
|
|
474
|
+
*/
|
|
475
|
+
'statusCode': number;
|
|
476
|
+
/**
|
|
477
|
+
* Business Favorite Rule
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof BusinessUnFavoriteResponse
|
|
480
|
+
*/
|
|
481
|
+
'message': string;
|
|
482
|
+
}
|
|
394
483
|
/**
|
|
395
484
|
*
|
|
396
485
|
* @export
|
|
@@ -398,7 +487,7 @@ export interface BusinessTypeListResponse {
|
|
|
398
487
|
*/
|
|
399
488
|
export interface BusinessVenueDTO {
|
|
400
489
|
/**
|
|
401
|
-
*
|
|
490
|
+
* coverPhots
|
|
402
491
|
* @type {string}
|
|
403
492
|
* @memberof BusinessVenueDTO
|
|
404
493
|
*/
|
|
@@ -415,6 +504,74 @@ export interface BusinessVenueDTO {
|
|
|
415
504
|
* @memberof BusinessVenueDTO
|
|
416
505
|
*/
|
|
417
506
|
'location': LocationDTO;
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof BusinessVenueDTO
|
|
511
|
+
*/
|
|
512
|
+
'numberOfEmployee': string;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @export
|
|
517
|
+
* @interface BusinessVenueDetailsDTO
|
|
518
|
+
*/
|
|
519
|
+
export interface BusinessVenueDetailsDTO {
|
|
520
|
+
/**
|
|
521
|
+
* coverPhots
|
|
522
|
+
* @type {string}
|
|
523
|
+
* @memberof BusinessVenueDetailsDTO
|
|
524
|
+
*/
|
|
525
|
+
'coverPhotos': string;
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @type {string}
|
|
529
|
+
* @memberof BusinessVenueDetailsDTO
|
|
530
|
+
*/
|
|
531
|
+
'priceRange': string;
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {LocationDTO}
|
|
535
|
+
* @memberof BusinessVenueDetailsDTO
|
|
536
|
+
*/
|
|
537
|
+
'location': LocationDTO;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof BusinessVenueDetailsDTO
|
|
542
|
+
*/
|
|
543
|
+
'numberOfEmployee': string;
|
|
544
|
+
/**
|
|
545
|
+
*
|
|
546
|
+
* @type {UserMeDTO}
|
|
547
|
+
* @memberof BusinessVenueDetailsDTO
|
|
548
|
+
*/
|
|
549
|
+
'user': UserMeDTO;
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {BusinessEntity}
|
|
553
|
+
* @memberof BusinessVenueDetailsDTO
|
|
554
|
+
*/
|
|
555
|
+
'business': BusinessEntity;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @export
|
|
560
|
+
* @interface BusinessVenueResponseDTO
|
|
561
|
+
*/
|
|
562
|
+
export interface BusinessVenueResponseDTO {
|
|
563
|
+
/**
|
|
564
|
+
* statusCode
|
|
565
|
+
* @type {number}
|
|
566
|
+
* @memberof BusinessVenueResponseDTO
|
|
567
|
+
*/
|
|
568
|
+
'statusCode': number;
|
|
569
|
+
/**
|
|
570
|
+
* Business verification
|
|
571
|
+
* @type {Array<BusinessVenueDetailsDTO>}
|
|
572
|
+
* @memberof BusinessVenueResponseDTO
|
|
573
|
+
*/
|
|
574
|
+
'data': Array<BusinessVenueDetailsDTO>;
|
|
418
575
|
}
|
|
419
576
|
/**
|
|
420
577
|
*
|
|
@@ -479,6 +636,12 @@ export interface CategoryEntity {
|
|
|
479
636
|
* @memberof CategoryEntity
|
|
480
637
|
*/
|
|
481
638
|
'name': string;
|
|
639
|
+
/**
|
|
640
|
+
* Image of category
|
|
641
|
+
* @type {string}
|
|
642
|
+
* @memberof CategoryEntity
|
|
643
|
+
*/
|
|
644
|
+
'image': string;
|
|
482
645
|
/**
|
|
483
646
|
* Unique identifier or reference of the business Type
|
|
484
647
|
* @type {string}
|
|
@@ -1428,6 +1591,12 @@ export interface SignupDto {
|
|
|
1428
1591
|
* @memberof SignupDto
|
|
1429
1592
|
*/
|
|
1430
1593
|
'lastName': string;
|
|
1594
|
+
/**
|
|
1595
|
+
* Contact Number For User
|
|
1596
|
+
* @type {string}
|
|
1597
|
+
* @memberof SignupDto
|
|
1598
|
+
*/
|
|
1599
|
+
'phoneNo': string;
|
|
1431
1600
|
/**
|
|
1432
1601
|
* The email of the user
|
|
1433
1602
|
* @type {string}
|
|
@@ -1560,6 +1729,12 @@ export interface UserEntity {
|
|
|
1560
1729
|
* @memberof UserEntity
|
|
1561
1730
|
*/
|
|
1562
1731
|
'_id': string;
|
|
1732
|
+
/**
|
|
1733
|
+
* Unique identifier for the Gooday user
|
|
1734
|
+
* @type {string}
|
|
1735
|
+
* @memberof UserEntity
|
|
1736
|
+
*/
|
|
1737
|
+
'goodayId': string;
|
|
1563
1738
|
/**
|
|
1564
1739
|
* First name of the user
|
|
1565
1740
|
* @type {string}
|
|
@@ -1596,6 +1771,12 @@ export interface UserEntity {
|
|
|
1596
1771
|
* @memberof UserEntity
|
|
1597
1772
|
*/
|
|
1598
1773
|
'assistant': string;
|
|
1774
|
+
/**
|
|
1775
|
+
* Phone No
|
|
1776
|
+
* @type {string}
|
|
1777
|
+
* @memberof UserEntity
|
|
1778
|
+
*/
|
|
1779
|
+
'phoneNo': string;
|
|
1599
1780
|
/**
|
|
1600
1781
|
* Indicates whether the user\'s email has been verified
|
|
1601
1782
|
* @type {boolean}
|
|
@@ -2613,7 +2794,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2613
2794
|
* @throws {RequiredError}
|
|
2614
2795
|
*/
|
|
2615
2796
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2616
|
-
const localVarPath = `/business`;
|
|
2797
|
+
const localVarPath = `/v1/business`;
|
|
2617
2798
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2618
2799
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2619
2800
|
let baseOptions;
|
|
@@ -2627,6 +2808,74 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2627
2808
|
|
|
2628
2809
|
|
|
2629
2810
|
|
|
2811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2813
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2814
|
+
|
|
2815
|
+
return {
|
|
2816
|
+
url: toPathString(localVarUrlObj),
|
|
2817
|
+
options: localVarRequestOptions,
|
|
2818
|
+
};
|
|
2819
|
+
},
|
|
2820
|
+
/**
|
|
2821
|
+
*
|
|
2822
|
+
* @param {string} [type] Business type ID
|
|
2823
|
+
* @param {string} [search] Business name search
|
|
2824
|
+
* @param {string} [category] Business category ID
|
|
2825
|
+
* @param {number} [longitude] Longitude of the location
|
|
2826
|
+
* @param {number} [latitude] Latitude of the location
|
|
2827
|
+
* @param {number} [page] Page number for pagination
|
|
2828
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
2829
|
+
* @param {*} [options] Override http request option.
|
|
2830
|
+
* @throws {RequiredError}
|
|
2831
|
+
*/
|
|
2832
|
+
businessTypeControllerGetBusinessVenue: async (type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2833
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
2834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2836
|
+
let baseOptions;
|
|
2837
|
+
if (configuration) {
|
|
2838
|
+
baseOptions = configuration.baseOptions;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2842
|
+
const localVarHeaderParameter = {} as any;
|
|
2843
|
+
const localVarQueryParameter = {} as any;
|
|
2844
|
+
|
|
2845
|
+
// authentication bearer required
|
|
2846
|
+
// http bearer authentication required
|
|
2847
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2848
|
+
|
|
2849
|
+
if (type !== undefined) {
|
|
2850
|
+
localVarQueryParameter['type'] = type;
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
if (search !== undefined) {
|
|
2854
|
+
localVarQueryParameter['search'] = search;
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
if (category !== undefined) {
|
|
2858
|
+
localVarQueryParameter['category'] = category;
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
if (longitude !== undefined) {
|
|
2862
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
if (latitude !== undefined) {
|
|
2866
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
if (page !== undefined) {
|
|
2870
|
+
localVarQueryParameter['page'] = page;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
if (limit !== undefined) {
|
|
2874
|
+
localVarQueryParameter['limit'] = limit;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
|
|
2878
|
+
|
|
2630
2879
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2631
2880
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2632
2881
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2671,15 +2920,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2671
2920
|
},
|
|
2672
2921
|
/**
|
|
2673
2922
|
*
|
|
2674
|
-
* @param {string}
|
|
2923
|
+
* @param {string} businessTypeId ID of the business type
|
|
2675
2924
|
* @param {*} [options] Override http request option.
|
|
2676
2925
|
* @throws {RequiredError}
|
|
2677
2926
|
*/
|
|
2678
|
-
businessTypeControllerListCategories: async (
|
|
2679
|
-
// verify required parameter '
|
|
2680
|
-
assertParamExists('businessTypeControllerListCategories', '
|
|
2681
|
-
const localVarPath = `/v1/business/{
|
|
2682
|
-
.replace(`{${"
|
|
2927
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2928
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
2929
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
2930
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
2931
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2683
2932
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2684
2933
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2685
2934
|
let baseOptions;
|
|
@@ -2763,6 +3012,121 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2763
3012
|
|
|
2764
3013
|
|
|
2765
3014
|
|
|
3015
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3016
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3017
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3018
|
+
|
|
3019
|
+
return {
|
|
3020
|
+
url: toPathString(localVarUrlObj),
|
|
3021
|
+
options: localVarRequestOptions,
|
|
3022
|
+
};
|
|
3023
|
+
},
|
|
3024
|
+
/**
|
|
3025
|
+
*
|
|
3026
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3027
|
+
* @param {*} [options] Override http request option.
|
|
3028
|
+
* @throws {RequiredError}
|
|
3029
|
+
*/
|
|
3030
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3031
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3032
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3033
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3034
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3035
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3036
|
+
let baseOptions;
|
|
3037
|
+
if (configuration) {
|
|
3038
|
+
baseOptions = configuration.baseOptions;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3042
|
+
const localVarHeaderParameter = {} as any;
|
|
3043
|
+
const localVarQueryParameter = {} as any;
|
|
3044
|
+
|
|
3045
|
+
// authentication bearer required
|
|
3046
|
+
// http bearer authentication required
|
|
3047
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3048
|
+
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3052
|
+
|
|
3053
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3054
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3055
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3056
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3057
|
+
|
|
3058
|
+
return {
|
|
3059
|
+
url: toPathString(localVarUrlObj),
|
|
3060
|
+
options: localVarRequestOptions,
|
|
3061
|
+
};
|
|
3062
|
+
},
|
|
3063
|
+
/**
|
|
3064
|
+
*
|
|
3065
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3066
|
+
* @param {*} [options] Override http request option.
|
|
3067
|
+
* @throws {RequiredError}
|
|
3068
|
+
*/
|
|
3069
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3070
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3071
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3072
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3074
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3075
|
+
let baseOptions;
|
|
3076
|
+
if (configuration) {
|
|
3077
|
+
baseOptions = configuration.baseOptions;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3081
|
+
const localVarHeaderParameter = {} as any;
|
|
3082
|
+
const localVarQueryParameter = {} as any;
|
|
3083
|
+
|
|
3084
|
+
// authentication bearer required
|
|
3085
|
+
// http bearer authentication required
|
|
3086
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3091
|
+
|
|
3092
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3093
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3094
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3095
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3096
|
+
|
|
3097
|
+
return {
|
|
3098
|
+
url: toPathString(localVarUrlObj),
|
|
3099
|
+
options: localVarRequestOptions,
|
|
3100
|
+
};
|
|
3101
|
+
},
|
|
3102
|
+
/**
|
|
3103
|
+
*
|
|
3104
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3105
|
+
* @param {string} businessNumber
|
|
3106
|
+
* @param {*} [options] Override http request option.
|
|
3107
|
+
* @throws {RequiredError}
|
|
3108
|
+
*/
|
|
3109
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3110
|
+
// verify required parameter 'type' is not null or undefined
|
|
3111
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3112
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3113
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3114
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3115
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3116
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3119
|
+
let baseOptions;
|
|
3120
|
+
if (configuration) {
|
|
3121
|
+
baseOptions = configuration.baseOptions;
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3125
|
+
const localVarHeaderParameter = {} as any;
|
|
3126
|
+
const localVarQueryParameter = {} as any;
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
|
|
2766
3130
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
3131
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
3132
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2810,12 +3174,30 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2810
3174
|
* @param {*} [options] Override http request option.
|
|
2811
3175
|
* @throws {RequiredError}
|
|
2812
3176
|
*/
|
|
2813
|
-
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3177
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
2814
3178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2815
3179
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2816
3180
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2817
3181
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2818
3182
|
},
|
|
3183
|
+
/**
|
|
3184
|
+
*
|
|
3185
|
+
* @param {string} [type] Business type ID
|
|
3186
|
+
* @param {string} [search] Business name search
|
|
3187
|
+
* @param {string} [category] Business category ID
|
|
3188
|
+
* @param {number} [longitude] Longitude of the location
|
|
3189
|
+
* @param {number} [latitude] Latitude of the location
|
|
3190
|
+
* @param {number} [page] Page number for pagination
|
|
3191
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3192
|
+
* @param {*} [options] Override http request option.
|
|
3193
|
+
* @throws {RequiredError}
|
|
3194
|
+
*/
|
|
3195
|
+
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>> {
|
|
3196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options);
|
|
3197
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3198
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerGetBusinessVenue']?.[localVarOperationServerIndex]?.url;
|
|
3199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3200
|
+
},
|
|
2819
3201
|
/**
|
|
2820
3202
|
*
|
|
2821
3203
|
* @param {*} [options] Override http request option.
|
|
@@ -2829,12 +3211,12 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2829
3211
|
},
|
|
2830
3212
|
/**
|
|
2831
3213
|
*
|
|
2832
|
-
* @param {string}
|
|
3214
|
+
* @param {string} businessTypeId ID of the business type
|
|
2833
3215
|
* @param {*} [options] Override http request option.
|
|
2834
3216
|
* @throws {RequiredError}
|
|
2835
3217
|
*/
|
|
2836
|
-
async businessTypeControllerListCategories(
|
|
2837
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(
|
|
3218
|
+
async businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoryListResponse>> {
|
|
3219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerListCategories(businessTypeId, options);
|
|
2838
3220
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2839
3221
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListCategories']?.[localVarOperationServerIndex]?.url;
|
|
2840
3222
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2861,6 +3243,43 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2861
3243
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerListPriceRange']?.[localVarOperationServerIndex]?.url;
|
|
2862
3244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2863
3245
|
},
|
|
3246
|
+
/**
|
|
3247
|
+
*
|
|
3248
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3249
|
+
* @param {*} [options] Override http request option.
|
|
3250
|
+
* @throws {RequiredError}
|
|
3251
|
+
*/
|
|
3252
|
+
async businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessFavoriteResponse>> {
|
|
3253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options);
|
|
3254
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3255
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerMarkBusinessAsFavorite']?.[localVarOperationServerIndex]?.url;
|
|
3256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3257
|
+
},
|
|
3258
|
+
/**
|
|
3259
|
+
*
|
|
3260
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3261
|
+
* @param {*} [options] Override http request option.
|
|
3262
|
+
* @throws {RequiredError}
|
|
3263
|
+
*/
|
|
3264
|
+
async businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessUnFavoriteResponse>> {
|
|
3265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options);
|
|
3266
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3267
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessTypeControllerUnFavoriteBusiness']?.[localVarOperationServerIndex]?.url;
|
|
3268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3269
|
+
},
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3273
|
+
* @param {string} businessNumber
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
*/
|
|
3277
|
+
async businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessVerificationResponse>> {
|
|
3278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.businessVerificationControllerABNVerification(type, businessNumber, options);
|
|
3279
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3280
|
+
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessVerificationControllerABNVerification']?.[localVarOperationServerIndex]?.url;
|
|
3281
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3282
|
+
},
|
|
2864
3283
|
}
|
|
2865
3284
|
};
|
|
2866
3285
|
|
|
@@ -2893,9 +3312,24 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2893
3312
|
* @param {*} [options] Override http request option.
|
|
2894
3313
|
* @throws {RequiredError}
|
|
2895
3314
|
*/
|
|
2896
|
-
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<
|
|
3315
|
+
businessControllerListBusinesses(options?: RawAxiosRequestConfig): AxiosPromise<Array<BusinessOnBoardingResponseDTO>> {
|
|
2897
3316
|
return localVarFp.businessControllerListBusinesses(options).then((request) => request(axios, basePath));
|
|
2898
3317
|
},
|
|
3318
|
+
/**
|
|
3319
|
+
*
|
|
3320
|
+
* @param {string} [type] Business type ID
|
|
3321
|
+
* @param {string} [search] Business name search
|
|
3322
|
+
* @param {string} [category] Business category ID
|
|
3323
|
+
* @param {number} [longitude] Longitude of the location
|
|
3324
|
+
* @param {number} [latitude] Latitude of the location
|
|
3325
|
+
* @param {number} [page] Page number for pagination
|
|
3326
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3327
|
+
* @param {*} [options] Override http request option.
|
|
3328
|
+
* @throws {RequiredError}
|
|
3329
|
+
*/
|
|
3330
|
+
businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3331
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
|
|
3332
|
+
},
|
|
2899
3333
|
/**
|
|
2900
3334
|
*
|
|
2901
3335
|
* @param {*} [options] Override http request option.
|
|
@@ -2906,12 +3340,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2906
3340
|
},
|
|
2907
3341
|
/**
|
|
2908
3342
|
*
|
|
2909
|
-
* @param {string}
|
|
3343
|
+
* @param {string} businessTypeId ID of the business type
|
|
2910
3344
|
* @param {*} [options] Override http request option.
|
|
2911
3345
|
* @throws {RequiredError}
|
|
2912
3346
|
*/
|
|
2913
|
-
businessTypeControllerListCategories(
|
|
2914
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3347
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3348
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
2915
3349
|
},
|
|
2916
3350
|
/**
|
|
2917
3351
|
*
|
|
@@ -2929,6 +3363,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2929
3363
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
2930
3364
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
2931
3365
|
},
|
|
3366
|
+
/**
|
|
3367
|
+
*
|
|
3368
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3369
|
+
* @param {*} [options] Override http request option.
|
|
3370
|
+
* @throws {RequiredError}
|
|
3371
|
+
*/
|
|
3372
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3373
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3374
|
+
},
|
|
3375
|
+
/**
|
|
3376
|
+
*
|
|
3377
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3378
|
+
* @param {*} [options] Override http request option.
|
|
3379
|
+
* @throws {RequiredError}
|
|
3380
|
+
*/
|
|
3381
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3382
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3383
|
+
},
|
|
3384
|
+
/**
|
|
3385
|
+
*
|
|
3386
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3387
|
+
* @param {string} businessNumber
|
|
3388
|
+
* @param {*} [options] Override http request option.
|
|
3389
|
+
* @throws {RequiredError}
|
|
3390
|
+
*/
|
|
3391
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3392
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3393
|
+
},
|
|
2932
3394
|
};
|
|
2933
3395
|
};
|
|
2934
3396
|
|
|
@@ -2970,6 +3432,23 @@ export class BusinessApi extends BaseAPI {
|
|
|
2970
3432
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2971
3433
|
}
|
|
2972
3434
|
|
|
3435
|
+
/**
|
|
3436
|
+
*
|
|
3437
|
+
* @param {string} [type] Business type ID
|
|
3438
|
+
* @param {string} [search] Business name search
|
|
3439
|
+
* @param {string} [category] Business category ID
|
|
3440
|
+
* @param {number} [longitude] Longitude of the location
|
|
3441
|
+
* @param {number} [latitude] Latitude of the location
|
|
3442
|
+
* @param {number} [page] Page number for pagination
|
|
3443
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3444
|
+
* @param {*} [options] Override http request option.
|
|
3445
|
+
* @throws {RequiredError}
|
|
3446
|
+
* @memberof BusinessApi
|
|
3447
|
+
*/
|
|
3448
|
+
public businessTypeControllerGetBusinessVenue(type?: string, search?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3449
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, search, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3450
|
+
}
|
|
3451
|
+
|
|
2973
3452
|
/**
|
|
2974
3453
|
*
|
|
2975
3454
|
* @param {*} [options] Override http request option.
|
|
@@ -2982,13 +3461,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
2982
3461
|
|
|
2983
3462
|
/**
|
|
2984
3463
|
*
|
|
2985
|
-
* @param {string}
|
|
3464
|
+
* @param {string} businessTypeId ID of the business type
|
|
2986
3465
|
* @param {*} [options] Override http request option.
|
|
2987
3466
|
* @throws {RequiredError}
|
|
2988
3467
|
* @memberof BusinessApi
|
|
2989
3468
|
*/
|
|
2990
|
-
public businessTypeControllerListCategories(
|
|
2991
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3469
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3470
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
2992
3471
|
}
|
|
2993
3472
|
|
|
2994
3473
|
/**
|
|
@@ -3010,116 +3489,39 @@ export class BusinessApi extends BaseAPI {
|
|
|
3010
3489
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3011
3490
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3012
3491
|
}
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
3492
|
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
*
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
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
|
-
|
|
3050
|
-
|
|
3051
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3052
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3053
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3054
|
-
|
|
3055
|
-
return {
|
|
3056
|
-
url: toPathString(localVarUrlObj),
|
|
3057
|
-
options: localVarRequestOptions,
|
|
3058
|
-
};
|
|
3059
|
-
},
|
|
3493
|
+
/**
|
|
3494
|
+
*
|
|
3495
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3496
|
+
* @param {*} [options] Override http request option.
|
|
3497
|
+
* @throws {RequiredError}
|
|
3498
|
+
* @memberof BusinessApi
|
|
3499
|
+
*/
|
|
3500
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3501
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3502
|
}
|
|
3061
|
-
};
|
|
3062
3503
|
|
|
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
|
-
},
|
|
3504
|
+
/**
|
|
3505
|
+
*
|
|
3506
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3507
|
+
* @param {*} [options] Override http request option.
|
|
3508
|
+
* @throws {RequiredError}
|
|
3509
|
+
* @memberof BusinessApi
|
|
3510
|
+
*/
|
|
3511
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3512
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3083
3513
|
}
|
|
3084
|
-
};
|
|
3085
3514
|
|
|
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
3515
|
/**
|
|
3114
3516
|
*
|
|
3115
3517
|
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3116
3518
|
* @param {string} businessNumber
|
|
3117
3519
|
* @param {*} [options] Override http request option.
|
|
3118
3520
|
* @throws {RequiredError}
|
|
3119
|
-
* @memberof
|
|
3521
|
+
* @memberof BusinessApi
|
|
3120
3522
|
*/
|
|
3121
3523
|
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3122
|
-
return
|
|
3524
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3123
3525
|
}
|
|
3124
3526
|
}
|
|
3125
3527
|
|