@gooday_corp/gooday-api-client 1.1.12-delta → 1.1.12-zeta
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 +518 -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,37 @@ export interface BusinessVenueDTO {
|
|
|
415
504
|
* @memberof BusinessVenueDTO
|
|
416
505
|
*/
|
|
417
506
|
'location': LocationDTO;
|
|
507
|
+
/**
|
|
508
|
+
* Description of venue
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof BusinessVenueDTO
|
|
511
|
+
*/
|
|
512
|
+
'description': string;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {number}
|
|
516
|
+
* @memberof BusinessVenueDTO
|
|
517
|
+
*/
|
|
518
|
+
'numberOfEmployee': number;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
*
|
|
522
|
+
* @export
|
|
523
|
+
* @interface BusinessVenueResponseDTO
|
|
524
|
+
*/
|
|
525
|
+
export interface BusinessVenueResponseDTO {
|
|
526
|
+
/**
|
|
527
|
+
* statusCode
|
|
528
|
+
* @type {number}
|
|
529
|
+
* @memberof BusinessVenueResponseDTO
|
|
530
|
+
*/
|
|
531
|
+
'statusCode': number;
|
|
532
|
+
/**
|
|
533
|
+
* Business verification
|
|
534
|
+
* @type {Array<GetBusinessVenueDto>}
|
|
535
|
+
* @memberof BusinessVenueResponseDTO
|
|
536
|
+
*/
|
|
537
|
+
'data': Array<GetBusinessVenueDto>;
|
|
418
538
|
}
|
|
419
539
|
/**
|
|
420
540
|
*
|
|
@@ -479,6 +599,12 @@ export interface CategoryEntity {
|
|
|
479
599
|
* @memberof CategoryEntity
|
|
480
600
|
*/
|
|
481
601
|
'name': string;
|
|
602
|
+
/**
|
|
603
|
+
* Image of category
|
|
604
|
+
* @type {string}
|
|
605
|
+
* @memberof CategoryEntity
|
|
606
|
+
*/
|
|
607
|
+
'image': string;
|
|
482
608
|
/**
|
|
483
609
|
* Unique identifier or reference of the business Type
|
|
484
610
|
* @type {string}
|
|
@@ -693,6 +819,49 @@ export interface ForgotPasswordResponseDTO {
|
|
|
693
819
|
*/
|
|
694
820
|
'message': string;
|
|
695
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
*
|
|
824
|
+
* @export
|
|
825
|
+
* @interface GetBusinessVenueDto
|
|
826
|
+
*/
|
|
827
|
+
export interface GetBusinessVenueDto {
|
|
828
|
+
/**
|
|
829
|
+
* Business type ID
|
|
830
|
+
* @type {string}
|
|
831
|
+
* @memberof GetBusinessVenueDto
|
|
832
|
+
*/
|
|
833
|
+
'type'?: string;
|
|
834
|
+
/**
|
|
835
|
+
* Business category ID
|
|
836
|
+
* @type {string}
|
|
837
|
+
* @memberof GetBusinessVenueDto
|
|
838
|
+
*/
|
|
839
|
+
'category'?: string;
|
|
840
|
+
/**
|
|
841
|
+
* Longitude of the location
|
|
842
|
+
* @type {number}
|
|
843
|
+
* @memberof GetBusinessVenueDto
|
|
844
|
+
*/
|
|
845
|
+
'longitude'?: number;
|
|
846
|
+
/**
|
|
847
|
+
* Latitude of the location
|
|
848
|
+
* @type {number}
|
|
849
|
+
* @memberof GetBusinessVenueDto
|
|
850
|
+
*/
|
|
851
|
+
'latitude'?: number;
|
|
852
|
+
/**
|
|
853
|
+
* Page number for pagination
|
|
854
|
+
* @type {number}
|
|
855
|
+
* @memberof GetBusinessVenueDto
|
|
856
|
+
*/
|
|
857
|
+
'page'?: number;
|
|
858
|
+
/**
|
|
859
|
+
* Number of items per page for pagination
|
|
860
|
+
* @type {number}
|
|
861
|
+
* @memberof GetBusinessVenueDto
|
|
862
|
+
*/
|
|
863
|
+
'limit'?: number;
|
|
864
|
+
}
|
|
696
865
|
/**
|
|
697
866
|
*
|
|
698
867
|
* @export
|
|
@@ -1428,6 +1597,12 @@ export interface SignupDto {
|
|
|
1428
1597
|
* @memberof SignupDto
|
|
1429
1598
|
*/
|
|
1430
1599
|
'lastName': string;
|
|
1600
|
+
/**
|
|
1601
|
+
* Contact Number For User
|
|
1602
|
+
* @type {string}
|
|
1603
|
+
* @memberof SignupDto
|
|
1604
|
+
*/
|
|
1605
|
+
'phoneNo': string;
|
|
1431
1606
|
/**
|
|
1432
1607
|
* The email of the user
|
|
1433
1608
|
* @type {string}
|
|
@@ -1560,6 +1735,12 @@ export interface UserEntity {
|
|
|
1560
1735
|
* @memberof UserEntity
|
|
1561
1736
|
*/
|
|
1562
1737
|
'_id': string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Unique identifier for the Gooday user
|
|
1740
|
+
* @type {string}
|
|
1741
|
+
* @memberof UserEntity
|
|
1742
|
+
*/
|
|
1743
|
+
'goodayId': string;
|
|
1563
1744
|
/**
|
|
1564
1745
|
* First name of the user
|
|
1565
1746
|
* @type {string}
|
|
@@ -1596,6 +1777,12 @@ export interface UserEntity {
|
|
|
1596
1777
|
* @memberof UserEntity
|
|
1597
1778
|
*/
|
|
1598
1779
|
'assistant': string;
|
|
1780
|
+
/**
|
|
1781
|
+
* Phone No
|
|
1782
|
+
* @type {string}
|
|
1783
|
+
* @memberof UserEntity
|
|
1784
|
+
*/
|
|
1785
|
+
'phoneNo': string;
|
|
1599
1786
|
/**
|
|
1600
1787
|
* Indicates whether the user\'s email has been verified
|
|
1601
1788
|
* @type {boolean}
|
|
@@ -2613,7 +2800,7 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2613
2800
|
* @throws {RequiredError}
|
|
2614
2801
|
*/
|
|
2615
2802
|
businessControllerListBusinesses: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2616
|
-
const localVarPath = `/business`;
|
|
2803
|
+
const localVarPath = `/v1/business`;
|
|
2617
2804
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2618
2805
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2619
2806
|
let baseOptions;
|
|
@@ -2627,6 +2814,69 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2627
2814
|
|
|
2628
2815
|
|
|
2629
2816
|
|
|
2817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2819
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2820
|
+
|
|
2821
|
+
return {
|
|
2822
|
+
url: toPathString(localVarUrlObj),
|
|
2823
|
+
options: localVarRequestOptions,
|
|
2824
|
+
};
|
|
2825
|
+
},
|
|
2826
|
+
/**
|
|
2827
|
+
*
|
|
2828
|
+
* @param {string} [type] Business type ID
|
|
2829
|
+
* @param {string} [category] Business category ID
|
|
2830
|
+
* @param {number} [longitude] Longitude of the location
|
|
2831
|
+
* @param {number} [latitude] Latitude of the location
|
|
2832
|
+
* @param {number} [page] Page number for pagination
|
|
2833
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
2834
|
+
* @param {*} [options] Override http request option.
|
|
2835
|
+
* @throws {RequiredError}
|
|
2836
|
+
*/
|
|
2837
|
+
businessTypeControllerGetBusinessVenue: async (type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2838
|
+
const localVarPath = `/v1/business/business-venue`;
|
|
2839
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2840
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2841
|
+
let baseOptions;
|
|
2842
|
+
if (configuration) {
|
|
2843
|
+
baseOptions = configuration.baseOptions;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2847
|
+
const localVarHeaderParameter = {} as any;
|
|
2848
|
+
const localVarQueryParameter = {} as any;
|
|
2849
|
+
|
|
2850
|
+
// authentication bearer required
|
|
2851
|
+
// http bearer authentication required
|
|
2852
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2853
|
+
|
|
2854
|
+
if (type !== undefined) {
|
|
2855
|
+
localVarQueryParameter['type'] = type;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
if (category !== undefined) {
|
|
2859
|
+
localVarQueryParameter['category'] = category;
|
|
2860
|
+
}
|
|
2861
|
+
|
|
2862
|
+
if (longitude !== undefined) {
|
|
2863
|
+
localVarQueryParameter['longitude'] = longitude;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
if (latitude !== undefined) {
|
|
2867
|
+
localVarQueryParameter['latitude'] = latitude;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
if (page !== undefined) {
|
|
2871
|
+
localVarQueryParameter['page'] = page;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
if (limit !== undefined) {
|
|
2875
|
+
localVarQueryParameter['limit'] = limit;
|
|
2876
|
+
}
|
|
2877
|
+
|
|
2878
|
+
|
|
2879
|
+
|
|
2630
2880
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2631
2881
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2632
2882
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2671,15 +2921,15 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2671
2921
|
},
|
|
2672
2922
|
/**
|
|
2673
2923
|
*
|
|
2674
|
-
* @param {string}
|
|
2924
|
+
* @param {string} businessTypeId ID of the business type
|
|
2675
2925
|
* @param {*} [options] Override http request option.
|
|
2676
2926
|
* @throws {RequiredError}
|
|
2677
2927
|
*/
|
|
2678
|
-
businessTypeControllerListCategories: async (
|
|
2679
|
-
// verify required parameter '
|
|
2680
|
-
assertParamExists('businessTypeControllerListCategories', '
|
|
2681
|
-
const localVarPath = `/v1/business/{
|
|
2682
|
-
.replace(`{${"
|
|
2928
|
+
businessTypeControllerListCategories: async (businessTypeId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2929
|
+
// verify required parameter 'businessTypeId' is not null or undefined
|
|
2930
|
+
assertParamExists('businessTypeControllerListCategories', 'businessTypeId', businessTypeId)
|
|
2931
|
+
const localVarPath = `/v1/business/{businessTypeId}/categories`
|
|
2932
|
+
.replace(`{${"businessTypeId"}}`, encodeURIComponent(String(businessTypeId)));
|
|
2683
2933
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2684
2934
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2685
2935
|
let baseOptions;
|
|
@@ -2763,6 +3013,121 @@ export const BusinessApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2763
3013
|
|
|
2764
3014
|
|
|
2765
3015
|
|
|
3016
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3017
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3018
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3019
|
+
|
|
3020
|
+
return {
|
|
3021
|
+
url: toPathString(localVarUrlObj),
|
|
3022
|
+
options: localVarRequestOptions,
|
|
3023
|
+
};
|
|
3024
|
+
},
|
|
3025
|
+
/**
|
|
3026
|
+
*
|
|
3027
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3028
|
+
* @param {*} [options] Override http request option.
|
|
3029
|
+
* @throws {RequiredError}
|
|
3030
|
+
*/
|
|
3031
|
+
businessTypeControllerMarkBusinessAsFavorite: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3032
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3033
|
+
assertParamExists('businessTypeControllerMarkBusinessAsFavorite', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3034
|
+
const localVarPath = `/v1/business/favorite`;
|
|
3035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3036
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3037
|
+
let baseOptions;
|
|
3038
|
+
if (configuration) {
|
|
3039
|
+
baseOptions = configuration.baseOptions;
|
|
3040
|
+
}
|
|
3041
|
+
|
|
3042
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3043
|
+
const localVarHeaderParameter = {} as any;
|
|
3044
|
+
const localVarQueryParameter = {} as any;
|
|
3045
|
+
|
|
3046
|
+
// authentication bearer required
|
|
3047
|
+
// http bearer authentication required
|
|
3048
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3049
|
+
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3053
|
+
|
|
3054
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3055
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3056
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3057
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3058
|
+
|
|
3059
|
+
return {
|
|
3060
|
+
url: toPathString(localVarUrlObj),
|
|
3061
|
+
options: localVarRequestOptions,
|
|
3062
|
+
};
|
|
3063
|
+
},
|
|
3064
|
+
/**
|
|
3065
|
+
*
|
|
3066
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3067
|
+
* @param {*} [options] Override http request option.
|
|
3068
|
+
* @throws {RequiredError}
|
|
3069
|
+
*/
|
|
3070
|
+
businessTypeControllerUnFavoriteBusiness: async (businessFavoriteDTO: BusinessFavoriteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3071
|
+
// verify required parameter 'businessFavoriteDTO' is not null or undefined
|
|
3072
|
+
assertParamExists('businessTypeControllerUnFavoriteBusiness', 'businessFavoriteDTO', businessFavoriteDTO)
|
|
3073
|
+
const localVarPath = `/v1/business/unfavorite`;
|
|
3074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3075
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3076
|
+
let baseOptions;
|
|
3077
|
+
if (configuration) {
|
|
3078
|
+
baseOptions = configuration.baseOptions;
|
|
3079
|
+
}
|
|
3080
|
+
|
|
3081
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3082
|
+
const localVarHeaderParameter = {} as any;
|
|
3083
|
+
const localVarQueryParameter = {} as any;
|
|
3084
|
+
|
|
3085
|
+
// authentication bearer required
|
|
3086
|
+
// http bearer authentication required
|
|
3087
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3092
|
+
|
|
3093
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3095
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3096
|
+
localVarRequestOptions.data = serializeDataIfNeeded(businessFavoriteDTO, localVarRequestOptions, configuration)
|
|
3097
|
+
|
|
3098
|
+
return {
|
|
3099
|
+
url: toPathString(localVarUrlObj),
|
|
3100
|
+
options: localVarRequestOptions,
|
|
3101
|
+
};
|
|
3102
|
+
},
|
|
3103
|
+
/**
|
|
3104
|
+
*
|
|
3105
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3106
|
+
* @param {string} businessNumber
|
|
3107
|
+
* @param {*} [options] Override http request option.
|
|
3108
|
+
* @throws {RequiredError}
|
|
3109
|
+
*/
|
|
3110
|
+
businessVerificationControllerABNVerification: async (type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3111
|
+
// verify required parameter 'type' is not null or undefined
|
|
3112
|
+
assertParamExists('businessVerificationControllerABNVerification', 'type', type)
|
|
3113
|
+
// verify required parameter 'businessNumber' is not null or undefined
|
|
3114
|
+
assertParamExists('businessVerificationControllerABNVerification', 'businessNumber', businessNumber)
|
|
3115
|
+
const localVarPath = `/v1/business/verify/{type}/{businessNumber}`
|
|
3116
|
+
.replace(`{${"type"}}`, encodeURIComponent(String(type)))
|
|
3117
|
+
.replace(`{${"businessNumber"}}`, encodeURIComponent(String(businessNumber)));
|
|
3118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3120
|
+
let baseOptions;
|
|
3121
|
+
if (configuration) {
|
|
3122
|
+
baseOptions = configuration.baseOptions;
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3126
|
+
const localVarHeaderParameter = {} as any;
|
|
3127
|
+
const localVarQueryParameter = {} as any;
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
2766
3131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2767
3132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2768
3133
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2810,12 +3175,29 @@ export const BusinessApiFp = function(configuration?: Configuration) {
|
|
|
2810
3175
|
* @param {*} [options] Override http request option.
|
|
2811
3176
|
* @throws {RequiredError}
|
|
2812
3177
|
*/
|
|
2813
|
-
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
3178
|
+
async businessControllerListBusinesses(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessOnBoardingResponseDTO>>> {
|
|
2814
3179
|
const localVarAxiosArgs = await localVarAxiosParamCreator.businessControllerListBusinesses(options);
|
|
2815
3180
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2816
3181
|
const localVarOperationServerBasePath = operationServerMap['BusinessApi.businessControllerListBusinesses']?.[localVarOperationServerIndex]?.url;
|
|
2817
3182
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2818
3183
|
},
|
|
3184
|
+
/**
|
|
3185
|
+
*
|
|
3186
|
+
* @param {string} [type] Business type ID
|
|
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, 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, 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,23 @@ 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} [category] Business category ID
|
|
3322
|
+
* @param {number} [longitude] Longitude of the location
|
|
3323
|
+
* @param {number} [latitude] Latitude of the location
|
|
3324
|
+
* @param {number} [page] Page number for pagination
|
|
3325
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3326
|
+
* @param {*} [options] Override http request option.
|
|
3327
|
+
* @throws {RequiredError}
|
|
3328
|
+
*/
|
|
3329
|
+
businessTypeControllerGetBusinessVenue(type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVenueResponseDTO> {
|
|
3330
|
+
return localVarFp.businessTypeControllerGetBusinessVenue(type, category, longitude, latitude, page, limit, options).then((request) => request(axios, basePath));
|
|
3331
|
+
},
|
|
2899
3332
|
/**
|
|
2900
3333
|
*
|
|
2901
3334
|
* @param {*} [options] Override http request option.
|
|
@@ -2906,12 +3339,12 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2906
3339
|
},
|
|
2907
3340
|
/**
|
|
2908
3341
|
*
|
|
2909
|
-
* @param {string}
|
|
3342
|
+
* @param {string} businessTypeId ID of the business type
|
|
2910
3343
|
* @param {*} [options] Override http request option.
|
|
2911
3344
|
* @throws {RequiredError}
|
|
2912
3345
|
*/
|
|
2913
|
-
businessTypeControllerListCategories(
|
|
2914
|
-
return localVarFp.businessTypeControllerListCategories(
|
|
3346
|
+
businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CategoryListResponse> {
|
|
3347
|
+
return localVarFp.businessTypeControllerListCategories(businessTypeId, options).then((request) => request(axios, basePath));
|
|
2915
3348
|
},
|
|
2916
3349
|
/**
|
|
2917
3350
|
*
|
|
@@ -2929,6 +3362,34 @@ export const BusinessApiFactory = function (configuration?: Configuration, baseP
|
|
|
2929
3362
|
businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig): AxiosPromise<PriceRangeListResponse> {
|
|
2930
3363
|
return localVarFp.businessTypeControllerListPriceRange(options).then((request) => request(axios, basePath));
|
|
2931
3364
|
},
|
|
3365
|
+
/**
|
|
3366
|
+
*
|
|
3367
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessFavoriteResponse> {
|
|
3372
|
+
return localVarFp.businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3373
|
+
},
|
|
3374
|
+
/**
|
|
3375
|
+
*
|
|
3376
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3377
|
+
* @param {*} [options] Override http request option.
|
|
3378
|
+
* @throws {RequiredError}
|
|
3379
|
+
*/
|
|
3380
|
+
businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig): AxiosPromise<BusinessUnFavoriteResponse> {
|
|
3381
|
+
return localVarFp.businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(axios, basePath));
|
|
3382
|
+
},
|
|
3383
|
+
/**
|
|
3384
|
+
*
|
|
3385
|
+
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3386
|
+
* @param {string} businessNumber
|
|
3387
|
+
* @param {*} [options] Override http request option.
|
|
3388
|
+
* @throws {RequiredError}
|
|
3389
|
+
*/
|
|
3390
|
+
businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<BusinessVerificationResponse> {
|
|
3391
|
+
return localVarFp.businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(axios, basePath));
|
|
3392
|
+
},
|
|
2932
3393
|
};
|
|
2933
3394
|
};
|
|
2934
3395
|
|
|
@@ -2970,6 +3431,22 @@ export class BusinessApi extends BaseAPI {
|
|
|
2970
3431
|
return BusinessApiFp(this.configuration).businessControllerListBusinesses(options).then((request) => request(this.axios, this.basePath));
|
|
2971
3432
|
}
|
|
2972
3433
|
|
|
3434
|
+
/**
|
|
3435
|
+
*
|
|
3436
|
+
* @param {string} [type] Business type ID
|
|
3437
|
+
* @param {string} [category] Business category ID
|
|
3438
|
+
* @param {number} [longitude] Longitude of the location
|
|
3439
|
+
* @param {number} [latitude] Latitude of the location
|
|
3440
|
+
* @param {number} [page] Page number for pagination
|
|
3441
|
+
* @param {number} [limit] Number of items per page for pagination
|
|
3442
|
+
* @param {*} [options] Override http request option.
|
|
3443
|
+
* @throws {RequiredError}
|
|
3444
|
+
* @memberof BusinessApi
|
|
3445
|
+
*/
|
|
3446
|
+
public businessTypeControllerGetBusinessVenue(type?: string, category?: string, longitude?: number, latitude?: number, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
3447
|
+
return BusinessApiFp(this.configuration).businessTypeControllerGetBusinessVenue(type, category, longitude, latitude, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3448
|
+
}
|
|
3449
|
+
|
|
2973
3450
|
/**
|
|
2974
3451
|
*
|
|
2975
3452
|
* @param {*} [options] Override http request option.
|
|
@@ -2982,13 +3459,13 @@ export class BusinessApi extends BaseAPI {
|
|
|
2982
3459
|
|
|
2983
3460
|
/**
|
|
2984
3461
|
*
|
|
2985
|
-
* @param {string}
|
|
3462
|
+
* @param {string} businessTypeId ID of the business type
|
|
2986
3463
|
* @param {*} [options] Override http request option.
|
|
2987
3464
|
* @throws {RequiredError}
|
|
2988
3465
|
* @memberof BusinessApi
|
|
2989
3466
|
*/
|
|
2990
|
-
public businessTypeControllerListCategories(
|
|
2991
|
-
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(
|
|
3467
|
+
public businessTypeControllerListCategories(businessTypeId: string, options?: RawAxiosRequestConfig) {
|
|
3468
|
+
return BusinessApiFp(this.configuration).businessTypeControllerListCategories(businessTypeId, options).then((request) => request(this.axios, this.basePath));
|
|
2992
3469
|
}
|
|
2993
3470
|
|
|
2994
3471
|
/**
|
|
@@ -3010,116 +3487,39 @@ export class BusinessApi extends BaseAPI {
|
|
|
3010
3487
|
public businessTypeControllerListPriceRange(options?: RawAxiosRequestConfig) {
|
|
3011
3488
|
return BusinessApiFp(this.configuration).businessTypeControllerListPriceRange(options).then((request) => request(this.axios, this.basePath));
|
|
3012
3489
|
}
|
|
3013
|
-
}
|
|
3014
3490
|
|
|
3015
|
-
|
|
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
|
-
},
|
|
3491
|
+
/**
|
|
3492
|
+
*
|
|
3493
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3494
|
+
* @param {*} [options] Override http request option.
|
|
3495
|
+
* @throws {RequiredError}
|
|
3496
|
+
* @memberof BusinessApi
|
|
3497
|
+
*/
|
|
3498
|
+
public businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3499
|
+
return BusinessApiFp(this.configuration).businessTypeControllerMarkBusinessAsFavorite(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3060
3500
|
}
|
|
3061
|
-
};
|
|
3062
3501
|
|
|
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
|
-
},
|
|
3502
|
+
/**
|
|
3503
|
+
*
|
|
3504
|
+
* @param {BusinessFavoriteDTO} businessFavoriteDTO
|
|
3505
|
+
* @param {*} [options] Override http request option.
|
|
3506
|
+
* @throws {RequiredError}
|
|
3507
|
+
* @memberof BusinessApi
|
|
3508
|
+
*/
|
|
3509
|
+
public businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO: BusinessFavoriteDTO, options?: RawAxiosRequestConfig) {
|
|
3510
|
+
return BusinessApiFp(this.configuration).businessTypeControllerUnFavoriteBusiness(businessFavoriteDTO, options).then((request) => request(this.axios, this.basePath));
|
|
3083
3511
|
}
|
|
3084
|
-
};
|
|
3085
3512
|
|
|
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
3513
|
/**
|
|
3114
3514
|
*
|
|
3115
3515
|
* @param {BusinessVerificationControllerABNVerificationTypeEnum} type The type of business verification number (e.g., ABN, NZBN)
|
|
3116
3516
|
* @param {string} businessNumber
|
|
3117
3517
|
* @param {*} [options] Override http request option.
|
|
3118
3518
|
* @throws {RequiredError}
|
|
3119
|
-
* @memberof
|
|
3519
|
+
* @memberof BusinessApi
|
|
3120
3520
|
*/
|
|
3121
3521
|
public businessVerificationControllerABNVerification(type: BusinessVerificationControllerABNVerificationTypeEnum, businessNumber: string, options?: RawAxiosRequestConfig) {
|
|
3122
|
-
return
|
|
3522
|
+
return BusinessApiFp(this.configuration).businessVerificationControllerABNVerification(type, businessNumber, options).then((request) => request(this.axios, this.basePath));
|
|
3123
3523
|
}
|
|
3124
3524
|
}
|
|
3125
3525
|
|