ob-bms-sdk 0.0.49 → 0.0.51
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/api.ts +217 -37
- package/dist/api/api.d.ts +171 -37
- package/dist/api/api.js +81 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -421,47 +421,47 @@ export interface FetchParkingResult {
|
|
|
421
421
|
export interface FindMemberResult {
|
|
422
422
|
/**
|
|
423
423
|
*
|
|
424
|
-
* @type {
|
|
424
|
+
* @type {FindMemberResultUpdatedAt}
|
|
425
425
|
* @memberof FindMemberResult
|
|
426
426
|
*/
|
|
427
|
-
'
|
|
427
|
+
'updated_at': FindMemberResultUpdatedAt;
|
|
428
428
|
/**
|
|
429
429
|
*
|
|
430
|
-
* @type {
|
|
430
|
+
* @type {FindMemberResultUpdatedAt}
|
|
431
431
|
* @memberof FindMemberResult
|
|
432
432
|
*/
|
|
433
|
-
'
|
|
433
|
+
'created_at': FindMemberResultUpdatedAt;
|
|
434
434
|
/**
|
|
435
435
|
*
|
|
436
|
-
* @type {
|
|
436
|
+
* @type {JsonValue}
|
|
437
437
|
* @memberof FindMemberResult
|
|
438
438
|
*/
|
|
439
|
-
'
|
|
439
|
+
'metadata'?: JsonValue | null;
|
|
440
440
|
/**
|
|
441
441
|
*
|
|
442
|
-
* @type {
|
|
442
|
+
* @type {string}
|
|
443
443
|
* @memberof FindMemberResult
|
|
444
444
|
*/
|
|
445
|
-
'
|
|
445
|
+
'account_id'?: string | null;
|
|
446
446
|
/**
|
|
447
447
|
*
|
|
448
|
-
* @type {
|
|
448
|
+
* @type {string}
|
|
449
449
|
* @memberof FindMemberResult
|
|
450
450
|
*/
|
|
451
|
-
'
|
|
451
|
+
'uid': string;
|
|
452
452
|
/**
|
|
453
453
|
*
|
|
454
|
-
* @type {
|
|
454
|
+
* @type {string}
|
|
455
455
|
* @memberof FindMemberResult
|
|
456
456
|
*/
|
|
457
|
-
'
|
|
457
|
+
'id': string;
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
*
|
|
461
461
|
* @export
|
|
462
|
-
* @interface
|
|
462
|
+
* @interface FindMemberResultUpdatedAt
|
|
463
463
|
*/
|
|
464
|
-
export interface
|
|
464
|
+
export interface FindMemberResultUpdatedAt {
|
|
465
465
|
}
|
|
466
466
|
/**
|
|
467
467
|
*
|
|
@@ -944,16 +944,16 @@ export interface ParkingLotData {
|
|
|
944
944
|
export interface ParkingRedemptionRateResult {
|
|
945
945
|
/**
|
|
946
946
|
*
|
|
947
|
-
* @type {
|
|
947
|
+
* @type {RateDetail}
|
|
948
948
|
* @memberof ParkingRedemptionRateResult
|
|
949
949
|
*/
|
|
950
|
-
'
|
|
950
|
+
'detail': RateDetail;
|
|
951
951
|
/**
|
|
952
952
|
*
|
|
953
|
-
* @type {
|
|
953
|
+
* @type {number}
|
|
954
954
|
* @memberof ParkingRedemptionRateResult
|
|
955
955
|
*/
|
|
956
|
-
'
|
|
956
|
+
'code': number;
|
|
957
957
|
}
|
|
958
958
|
/**
|
|
959
959
|
*
|
|
@@ -963,28 +963,34 @@ export interface ParkingRedemptionRateResult {
|
|
|
963
963
|
export interface ParkingTicketResult {
|
|
964
964
|
/**
|
|
965
965
|
*
|
|
966
|
-
* @type {
|
|
966
|
+
* @type {number}
|
|
967
967
|
* @memberof ParkingTicketResult
|
|
968
968
|
*/
|
|
969
|
-
'
|
|
969
|
+
'vehicle_type_id': number;
|
|
970
970
|
/**
|
|
971
971
|
*
|
|
972
|
-
* @type {
|
|
972
|
+
* @type {number}
|
|
973
973
|
* @memberof ParkingTicketResult
|
|
974
974
|
*/
|
|
975
|
-
'
|
|
975
|
+
'member_type_id': number;
|
|
976
|
+
/**
|
|
977
|
+
*
|
|
978
|
+
* @type {RateDetail}
|
|
979
|
+
* @memberof ParkingTicketResult
|
|
980
|
+
*/
|
|
981
|
+
'rate_detail': RateDetail;
|
|
976
982
|
/**
|
|
977
983
|
*
|
|
978
984
|
* @type {string}
|
|
979
985
|
* @memberof ParkingTicketResult
|
|
980
986
|
*/
|
|
981
|
-
'
|
|
987
|
+
'parked_at': string;
|
|
982
988
|
/**
|
|
983
989
|
*
|
|
984
990
|
* @type {string}
|
|
985
991
|
* @memberof ParkingTicketResult
|
|
986
992
|
*/
|
|
987
|
-
'
|
|
993
|
+
'member_id': string;
|
|
988
994
|
/**
|
|
989
995
|
*
|
|
990
996
|
* @type {number}
|
|
@@ -996,31 +1002,38 @@ export interface ParkingTicketResult {
|
|
|
996
1002
|
* @type {string}
|
|
997
1003
|
* @memberof ParkingTicketResult
|
|
998
1004
|
*/
|
|
999
|
-
'
|
|
1005
|
+
'vehicle_type': string;
|
|
1000
1006
|
/**
|
|
1001
1007
|
*
|
|
1002
1008
|
* @type {string}
|
|
1003
1009
|
* @memberof ParkingTicketResult
|
|
1004
1010
|
*/
|
|
1005
|
-
'
|
|
1011
|
+
'ticket_number': string;
|
|
1006
1012
|
/**
|
|
1007
1013
|
*
|
|
1008
|
-
* @type {
|
|
1014
|
+
* @type {string}
|
|
1009
1015
|
* @memberof ParkingTicketResult
|
|
1010
1016
|
*/
|
|
1011
|
-
'
|
|
1017
|
+
'plate_number': string;
|
|
1012
1018
|
/**
|
|
1013
1019
|
*
|
|
1014
|
-
* @type {
|
|
1020
|
+
* @type {string}
|
|
1015
1021
|
* @memberof ParkingTicketResult
|
|
1016
1022
|
*/
|
|
1017
|
-
'
|
|
1023
|
+
'id': string;
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @export
|
|
1028
|
+
* @interface ParkingTicketsRedeemBody
|
|
1029
|
+
*/
|
|
1030
|
+
export interface ParkingTicketsRedeemBody {
|
|
1018
1031
|
/**
|
|
1019
1032
|
*
|
|
1020
|
-
* @type {
|
|
1021
|
-
* @memberof
|
|
1033
|
+
* @type {string}
|
|
1034
|
+
* @memberof ParkingTicketsRedeemBody
|
|
1022
1035
|
*/
|
|
1023
|
-
'
|
|
1036
|
+
'rate_code': string;
|
|
1024
1037
|
}
|
|
1025
1038
|
/**
|
|
1026
1039
|
*
|
|
@@ -1866,16 +1879,16 @@ export interface VisitorSchedule {
|
|
|
1866
1879
|
'floor_id': string;
|
|
1867
1880
|
/**
|
|
1868
1881
|
*
|
|
1869
|
-
* @type {
|
|
1882
|
+
* @type {FindMemberResultUpdatedAt}
|
|
1870
1883
|
* @memberof VisitorSchedule
|
|
1871
1884
|
*/
|
|
1872
|
-
'from':
|
|
1885
|
+
'from': FindMemberResultUpdatedAt;
|
|
1873
1886
|
/**
|
|
1874
1887
|
*
|
|
1875
|
-
* @type {
|
|
1888
|
+
* @type {FindMemberResultUpdatedAt}
|
|
1876
1889
|
* @memberof VisitorSchedule
|
|
1877
1890
|
*/
|
|
1878
|
-
'to':
|
|
1891
|
+
'to': FindMemberResultUpdatedAt;
|
|
1879
1892
|
/**
|
|
1880
1893
|
*
|
|
1881
1894
|
* @type {object}
|
|
@@ -2411,6 +2424,19 @@ export interface WrappedResponseParkingRedemptionRateResultArray {
|
|
|
2411
2424
|
*/
|
|
2412
2425
|
export interface WrappedResponseParkingRedemptionRateResultArrayData {
|
|
2413
2426
|
}
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @export
|
|
2430
|
+
* @interface WrappedResponseParkingTicketResult
|
|
2431
|
+
*/
|
|
2432
|
+
export interface WrappedResponseParkingTicketResult {
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @type {WrappedResponseParkingTicketResultData}
|
|
2436
|
+
* @memberof WrappedResponseParkingTicketResult
|
|
2437
|
+
*/
|
|
2438
|
+
'data': WrappedResponseParkingTicketResultData | null;
|
|
2439
|
+
}
|
|
2414
2440
|
/**
|
|
2415
2441
|
*
|
|
2416
2442
|
* @export
|
|
@@ -2431,6 +2457,73 @@ export interface WrappedResponseParkingTicketResultArray {
|
|
|
2431
2457
|
*/
|
|
2432
2458
|
export interface WrappedResponseParkingTicketResultArrayData {
|
|
2433
2459
|
}
|
|
2460
|
+
/**
|
|
2461
|
+
*
|
|
2462
|
+
* @export
|
|
2463
|
+
* @interface WrappedResponseParkingTicketResultData
|
|
2464
|
+
*/
|
|
2465
|
+
export interface WrappedResponseParkingTicketResultData {
|
|
2466
|
+
/**
|
|
2467
|
+
*
|
|
2468
|
+
* @type {number}
|
|
2469
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2470
|
+
*/
|
|
2471
|
+
'vehicle_type_id': number;
|
|
2472
|
+
/**
|
|
2473
|
+
*
|
|
2474
|
+
* @type {number}
|
|
2475
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2476
|
+
*/
|
|
2477
|
+
'member_type_id': number;
|
|
2478
|
+
/**
|
|
2479
|
+
*
|
|
2480
|
+
* @type {RateDetail}
|
|
2481
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2482
|
+
*/
|
|
2483
|
+
'rate_detail': RateDetail;
|
|
2484
|
+
/**
|
|
2485
|
+
*
|
|
2486
|
+
* @type {string}
|
|
2487
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2488
|
+
*/
|
|
2489
|
+
'parked_at': string;
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @type {string}
|
|
2493
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2494
|
+
*/
|
|
2495
|
+
'member_id': string;
|
|
2496
|
+
/**
|
|
2497
|
+
*
|
|
2498
|
+
* @type {number}
|
|
2499
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2500
|
+
*/
|
|
2501
|
+
'total_fee': number;
|
|
2502
|
+
/**
|
|
2503
|
+
*
|
|
2504
|
+
* @type {string}
|
|
2505
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2506
|
+
*/
|
|
2507
|
+
'vehicle_type': string;
|
|
2508
|
+
/**
|
|
2509
|
+
*
|
|
2510
|
+
* @type {string}
|
|
2511
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2512
|
+
*/
|
|
2513
|
+
'ticket_number': string;
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @type {string}
|
|
2517
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2518
|
+
*/
|
|
2519
|
+
'plate_number': string;
|
|
2520
|
+
/**
|
|
2521
|
+
*
|
|
2522
|
+
* @type {string}
|
|
2523
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2524
|
+
*/
|
|
2525
|
+
'id': string;
|
|
2526
|
+
}
|
|
2434
2527
|
/**
|
|
2435
2528
|
*
|
|
2436
2529
|
* @export
|
|
@@ -3135,6 +3228,54 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3135
3228
|
options: localVarRequestOptions,
|
|
3136
3229
|
};
|
|
3137
3230
|
},
|
|
3231
|
+
/**
|
|
3232
|
+
*
|
|
3233
|
+
* @param {string} memberId
|
|
3234
|
+
* @param {string} logId
|
|
3235
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
3236
|
+
* @param {string} [xAccountId]
|
|
3237
|
+
* @param {*} [options] Override http request option.
|
|
3238
|
+
* @throws {RequiredError}
|
|
3239
|
+
*/
|
|
3240
|
+
parkingTicketsRedeem: async (memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3241
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
3242
|
+
assertParamExists('parkingTicketsRedeem', 'memberId', memberId)
|
|
3243
|
+
// verify required parameter 'logId' is not null or undefined
|
|
3244
|
+
assertParamExists('parkingTicketsRedeem', 'logId', logId)
|
|
3245
|
+
// verify required parameter 'parkingTicketsRedeemBody' is not null or undefined
|
|
3246
|
+
assertParamExists('parkingTicketsRedeem', 'parkingTicketsRedeemBody', parkingTicketsRedeemBody)
|
|
3247
|
+
const localVarPath = `/members/{member_id}/parking_tickets/{log_id}/redeem`
|
|
3248
|
+
.replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)))
|
|
3249
|
+
.replace(`{${"log_id"}}`, encodeURIComponent(String(logId)));
|
|
3250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3251
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3252
|
+
let baseOptions;
|
|
3253
|
+
if (configuration) {
|
|
3254
|
+
baseOptions = configuration.baseOptions;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3258
|
+
const localVarHeaderParameter = {} as any;
|
|
3259
|
+
const localVarQueryParameter = {} as any;
|
|
3260
|
+
|
|
3261
|
+
if (xAccountId != null) {
|
|
3262
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3265
|
+
|
|
3266
|
+
|
|
3267
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3268
|
+
|
|
3269
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3271
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3272
|
+
localVarRequestOptions.data = serializeDataIfNeeded(parkingTicketsRedeemBody, localVarRequestOptions, configuration)
|
|
3273
|
+
|
|
3274
|
+
return {
|
|
3275
|
+
url: toPathString(localVarUrlObj),
|
|
3276
|
+
options: localVarRequestOptions,
|
|
3277
|
+
};
|
|
3278
|
+
},
|
|
3138
3279
|
/**
|
|
3139
3280
|
*
|
|
3140
3281
|
* @param {string} visitScheduleId
|
|
@@ -3492,6 +3633,19 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
3492
3633
|
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsIndex(memberId, options);
|
|
3493
3634
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3494
3635
|
},
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @param {string} memberId
|
|
3639
|
+
* @param {string} logId
|
|
3640
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
3641
|
+
* @param {string} [xAccountId]
|
|
3642
|
+
* @param {*} [options] Override http request option.
|
|
3643
|
+
* @throws {RequiredError}
|
|
3644
|
+
*/
|
|
3645
|
+
async parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResult>> {
|
|
3646
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options);
|
|
3647
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3648
|
+
},
|
|
3495
3649
|
/**
|
|
3496
3650
|
*
|
|
3497
3651
|
* @param {string} visitScheduleId
|
|
@@ -3689,6 +3843,18 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
3689
3843
|
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResultArray> {
|
|
3690
3844
|
return localVarFp.parkingTicketsIndex(memberId, options).then((request) => request(axios, basePath));
|
|
3691
3845
|
},
|
|
3846
|
+
/**
|
|
3847
|
+
*
|
|
3848
|
+
* @param {string} memberId
|
|
3849
|
+
* @param {string} logId
|
|
3850
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
3851
|
+
* @param {string} [xAccountId]
|
|
3852
|
+
* @param {*} [options] Override http request option.
|
|
3853
|
+
* @throws {RequiredError}
|
|
3854
|
+
*/
|
|
3855
|
+
parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResult> {
|
|
3856
|
+
return localVarFp.parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
3857
|
+
},
|
|
3692
3858
|
/**
|
|
3693
3859
|
*
|
|
3694
3860
|
* @param {string} visitScheduleId
|
|
@@ -3906,6 +4072,20 @@ export class DefaultApi extends BaseAPI {
|
|
|
3906
4072
|
return DefaultApiFp(this.configuration).parkingTicketsIndex(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
3907
4073
|
}
|
|
3908
4074
|
|
|
4075
|
+
/**
|
|
4076
|
+
*
|
|
4077
|
+
* @param {string} memberId
|
|
4078
|
+
* @param {string} logId
|
|
4079
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
4080
|
+
* @param {string} [xAccountId]
|
|
4081
|
+
* @param {*} [options] Override http request option.
|
|
4082
|
+
* @throws {RequiredError}
|
|
4083
|
+
* @memberof DefaultApi
|
|
4084
|
+
*/
|
|
4085
|
+
public parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: AxiosRequestConfig) {
|
|
4086
|
+
return DefaultApiFp(this.configuration).parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
4087
|
+
}
|
|
4088
|
+
|
|
3909
4089
|
/**
|
|
3910
4090
|
*
|
|
3911
4091
|
* @param {string} visitScheduleId
|
package/dist/api/api.d.ts
CHANGED
|
@@ -419,47 +419,47 @@ export interface FetchParkingResult {
|
|
|
419
419
|
export interface FindMemberResult {
|
|
420
420
|
/**
|
|
421
421
|
*
|
|
422
|
-
* @type {
|
|
422
|
+
* @type {FindMemberResultUpdatedAt}
|
|
423
423
|
* @memberof FindMemberResult
|
|
424
424
|
*/
|
|
425
|
-
'
|
|
425
|
+
'updated_at': FindMemberResultUpdatedAt;
|
|
426
426
|
/**
|
|
427
427
|
*
|
|
428
|
-
* @type {
|
|
428
|
+
* @type {FindMemberResultUpdatedAt}
|
|
429
429
|
* @memberof FindMemberResult
|
|
430
430
|
*/
|
|
431
|
-
'
|
|
431
|
+
'created_at': FindMemberResultUpdatedAt;
|
|
432
432
|
/**
|
|
433
433
|
*
|
|
434
|
-
* @type {
|
|
434
|
+
* @type {JsonValue}
|
|
435
435
|
* @memberof FindMemberResult
|
|
436
436
|
*/
|
|
437
|
-
'
|
|
437
|
+
'metadata'?: JsonValue | null;
|
|
438
438
|
/**
|
|
439
439
|
*
|
|
440
|
-
* @type {
|
|
440
|
+
* @type {string}
|
|
441
441
|
* @memberof FindMemberResult
|
|
442
442
|
*/
|
|
443
|
-
'
|
|
443
|
+
'account_id'?: string | null;
|
|
444
444
|
/**
|
|
445
445
|
*
|
|
446
|
-
* @type {
|
|
446
|
+
* @type {string}
|
|
447
447
|
* @memberof FindMemberResult
|
|
448
448
|
*/
|
|
449
|
-
'
|
|
449
|
+
'uid': string;
|
|
450
450
|
/**
|
|
451
451
|
*
|
|
452
|
-
* @type {
|
|
452
|
+
* @type {string}
|
|
453
453
|
* @memberof FindMemberResult
|
|
454
454
|
*/
|
|
455
|
-
'
|
|
455
|
+
'id': string;
|
|
456
456
|
}
|
|
457
457
|
/**
|
|
458
458
|
*
|
|
459
459
|
* @export
|
|
460
|
-
* @interface
|
|
460
|
+
* @interface FindMemberResultUpdatedAt
|
|
461
461
|
*/
|
|
462
|
-
export interface
|
|
462
|
+
export interface FindMemberResultUpdatedAt {
|
|
463
463
|
}
|
|
464
464
|
/**
|
|
465
465
|
*
|
|
@@ -942,16 +942,16 @@ export interface ParkingLotData {
|
|
|
942
942
|
export interface ParkingRedemptionRateResult {
|
|
943
943
|
/**
|
|
944
944
|
*
|
|
945
|
-
* @type {
|
|
945
|
+
* @type {RateDetail}
|
|
946
946
|
* @memberof ParkingRedemptionRateResult
|
|
947
947
|
*/
|
|
948
|
-
'
|
|
948
|
+
'detail': RateDetail;
|
|
949
949
|
/**
|
|
950
950
|
*
|
|
951
|
-
* @type {
|
|
951
|
+
* @type {number}
|
|
952
952
|
* @memberof ParkingRedemptionRateResult
|
|
953
953
|
*/
|
|
954
|
-
'
|
|
954
|
+
'code': number;
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
957
957
|
*
|
|
@@ -961,28 +961,34 @@ export interface ParkingRedemptionRateResult {
|
|
|
961
961
|
export interface ParkingTicketResult {
|
|
962
962
|
/**
|
|
963
963
|
*
|
|
964
|
-
* @type {
|
|
964
|
+
* @type {number}
|
|
965
965
|
* @memberof ParkingTicketResult
|
|
966
966
|
*/
|
|
967
|
-
'
|
|
967
|
+
'vehicle_type_id': number;
|
|
968
968
|
/**
|
|
969
969
|
*
|
|
970
|
-
* @type {
|
|
970
|
+
* @type {number}
|
|
971
971
|
* @memberof ParkingTicketResult
|
|
972
972
|
*/
|
|
973
|
-
'
|
|
973
|
+
'member_type_id': number;
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @type {RateDetail}
|
|
977
|
+
* @memberof ParkingTicketResult
|
|
978
|
+
*/
|
|
979
|
+
'rate_detail': RateDetail;
|
|
974
980
|
/**
|
|
975
981
|
*
|
|
976
982
|
* @type {string}
|
|
977
983
|
* @memberof ParkingTicketResult
|
|
978
984
|
*/
|
|
979
|
-
'
|
|
985
|
+
'parked_at': string;
|
|
980
986
|
/**
|
|
981
987
|
*
|
|
982
988
|
* @type {string}
|
|
983
989
|
* @memberof ParkingTicketResult
|
|
984
990
|
*/
|
|
985
|
-
'
|
|
991
|
+
'member_id': string;
|
|
986
992
|
/**
|
|
987
993
|
*
|
|
988
994
|
* @type {number}
|
|
@@ -994,31 +1000,38 @@ export interface ParkingTicketResult {
|
|
|
994
1000
|
* @type {string}
|
|
995
1001
|
* @memberof ParkingTicketResult
|
|
996
1002
|
*/
|
|
997
|
-
'
|
|
1003
|
+
'vehicle_type': string;
|
|
998
1004
|
/**
|
|
999
1005
|
*
|
|
1000
1006
|
* @type {string}
|
|
1001
1007
|
* @memberof ParkingTicketResult
|
|
1002
1008
|
*/
|
|
1003
|
-
'
|
|
1009
|
+
'ticket_number': string;
|
|
1004
1010
|
/**
|
|
1005
1011
|
*
|
|
1006
|
-
* @type {
|
|
1012
|
+
* @type {string}
|
|
1007
1013
|
* @memberof ParkingTicketResult
|
|
1008
1014
|
*/
|
|
1009
|
-
'
|
|
1015
|
+
'plate_number': string;
|
|
1010
1016
|
/**
|
|
1011
1017
|
*
|
|
1012
|
-
* @type {
|
|
1018
|
+
* @type {string}
|
|
1013
1019
|
* @memberof ParkingTicketResult
|
|
1014
1020
|
*/
|
|
1015
|
-
'
|
|
1021
|
+
'id': string;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @export
|
|
1026
|
+
* @interface ParkingTicketsRedeemBody
|
|
1027
|
+
*/
|
|
1028
|
+
export interface ParkingTicketsRedeemBody {
|
|
1016
1029
|
/**
|
|
1017
1030
|
*
|
|
1018
|
-
* @type {
|
|
1019
|
-
* @memberof
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof ParkingTicketsRedeemBody
|
|
1020
1033
|
*/
|
|
1021
|
-
'
|
|
1034
|
+
'rate_code': string;
|
|
1022
1035
|
}
|
|
1023
1036
|
/**
|
|
1024
1037
|
*
|
|
@@ -1855,16 +1868,16 @@ export interface VisitorSchedule {
|
|
|
1855
1868
|
'floor_id': string;
|
|
1856
1869
|
/**
|
|
1857
1870
|
*
|
|
1858
|
-
* @type {
|
|
1871
|
+
* @type {FindMemberResultUpdatedAt}
|
|
1859
1872
|
* @memberof VisitorSchedule
|
|
1860
1873
|
*/
|
|
1861
|
-
'from':
|
|
1874
|
+
'from': FindMemberResultUpdatedAt;
|
|
1862
1875
|
/**
|
|
1863
1876
|
*
|
|
1864
|
-
* @type {
|
|
1877
|
+
* @type {FindMemberResultUpdatedAt}
|
|
1865
1878
|
* @memberof VisitorSchedule
|
|
1866
1879
|
*/
|
|
1867
|
-
'to':
|
|
1880
|
+
'to': FindMemberResultUpdatedAt;
|
|
1868
1881
|
/**
|
|
1869
1882
|
*
|
|
1870
1883
|
* @type {object}
|
|
@@ -2397,6 +2410,19 @@ export interface WrappedResponseParkingRedemptionRateResultArray {
|
|
|
2397
2410
|
*/
|
|
2398
2411
|
export interface WrappedResponseParkingRedemptionRateResultArrayData {
|
|
2399
2412
|
}
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
* @export
|
|
2416
|
+
* @interface WrappedResponseParkingTicketResult
|
|
2417
|
+
*/
|
|
2418
|
+
export interface WrappedResponseParkingTicketResult {
|
|
2419
|
+
/**
|
|
2420
|
+
*
|
|
2421
|
+
* @type {WrappedResponseParkingTicketResultData}
|
|
2422
|
+
* @memberof WrappedResponseParkingTicketResult
|
|
2423
|
+
*/
|
|
2424
|
+
'data': WrappedResponseParkingTicketResultData | null;
|
|
2425
|
+
}
|
|
2400
2426
|
/**
|
|
2401
2427
|
*
|
|
2402
2428
|
* @export
|
|
@@ -2417,6 +2443,73 @@ export interface WrappedResponseParkingTicketResultArray {
|
|
|
2417
2443
|
*/
|
|
2418
2444
|
export interface WrappedResponseParkingTicketResultArrayData {
|
|
2419
2445
|
}
|
|
2446
|
+
/**
|
|
2447
|
+
*
|
|
2448
|
+
* @export
|
|
2449
|
+
* @interface WrappedResponseParkingTicketResultData
|
|
2450
|
+
*/
|
|
2451
|
+
export interface WrappedResponseParkingTicketResultData {
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @type {number}
|
|
2455
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2456
|
+
*/
|
|
2457
|
+
'vehicle_type_id': number;
|
|
2458
|
+
/**
|
|
2459
|
+
*
|
|
2460
|
+
* @type {number}
|
|
2461
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2462
|
+
*/
|
|
2463
|
+
'member_type_id': number;
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @type {RateDetail}
|
|
2467
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2468
|
+
*/
|
|
2469
|
+
'rate_detail': RateDetail;
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @type {string}
|
|
2473
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2474
|
+
*/
|
|
2475
|
+
'parked_at': string;
|
|
2476
|
+
/**
|
|
2477
|
+
*
|
|
2478
|
+
* @type {string}
|
|
2479
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2480
|
+
*/
|
|
2481
|
+
'member_id': string;
|
|
2482
|
+
/**
|
|
2483
|
+
*
|
|
2484
|
+
* @type {number}
|
|
2485
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2486
|
+
*/
|
|
2487
|
+
'total_fee': number;
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @type {string}
|
|
2491
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2492
|
+
*/
|
|
2493
|
+
'vehicle_type': string;
|
|
2494
|
+
/**
|
|
2495
|
+
*
|
|
2496
|
+
* @type {string}
|
|
2497
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2498
|
+
*/
|
|
2499
|
+
'ticket_number': string;
|
|
2500
|
+
/**
|
|
2501
|
+
*
|
|
2502
|
+
* @type {string}
|
|
2503
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2504
|
+
*/
|
|
2505
|
+
'plate_number': string;
|
|
2506
|
+
/**
|
|
2507
|
+
*
|
|
2508
|
+
* @type {string}
|
|
2509
|
+
* @memberof WrappedResponseParkingTicketResultData
|
|
2510
|
+
*/
|
|
2511
|
+
'id': string;
|
|
2512
|
+
}
|
|
2420
2513
|
/**
|
|
2421
2514
|
*
|
|
2422
2515
|
* @export
|
|
@@ -2726,6 +2819,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2726
2819
|
* @throws {RequiredError}
|
|
2727
2820
|
*/
|
|
2728
2821
|
parkingTicketsIndex: (memberId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2822
|
+
/**
|
|
2823
|
+
*
|
|
2824
|
+
* @param {string} memberId
|
|
2825
|
+
* @param {string} logId
|
|
2826
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
2827
|
+
* @param {string} [xAccountId]
|
|
2828
|
+
* @param {*} [options] Override http request option.
|
|
2829
|
+
* @throws {RequiredError}
|
|
2830
|
+
*/
|
|
2831
|
+
parkingTicketsRedeem: (memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2729
2832
|
/**
|
|
2730
2833
|
*
|
|
2731
2834
|
* @param {string} visitScheduleId
|
|
@@ -2875,6 +2978,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
2875
2978
|
* @throws {RequiredError}
|
|
2876
2979
|
*/
|
|
2877
2980
|
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResultArray>>;
|
|
2981
|
+
/**
|
|
2982
|
+
*
|
|
2983
|
+
* @param {string} memberId
|
|
2984
|
+
* @param {string} logId
|
|
2985
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
2986
|
+
* @param {string} [xAccountId]
|
|
2987
|
+
* @param {*} [options] Override http request option.
|
|
2988
|
+
* @throws {RequiredError}
|
|
2989
|
+
*/
|
|
2990
|
+
parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseParkingTicketResult>>;
|
|
2878
2991
|
/**
|
|
2879
2992
|
*
|
|
2880
2993
|
* @param {string} visitScheduleId
|
|
@@ -3024,6 +3137,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3024
3137
|
* @throws {RequiredError}
|
|
3025
3138
|
*/
|
|
3026
3139
|
parkingTicketsIndex(memberId: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResultArray>;
|
|
3140
|
+
/**
|
|
3141
|
+
*
|
|
3142
|
+
* @param {string} memberId
|
|
3143
|
+
* @param {string} logId
|
|
3144
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
3145
|
+
* @param {string} [xAccountId]
|
|
3146
|
+
* @param {*} [options] Override http request option.
|
|
3147
|
+
* @throws {RequiredError}
|
|
3148
|
+
*/
|
|
3149
|
+
parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: any): AxiosPromise<WrappedResponseParkingTicketResult>;
|
|
3027
3150
|
/**
|
|
3028
3151
|
*
|
|
3029
3152
|
* @param {string} visitScheduleId
|
|
@@ -3188,6 +3311,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3188
3311
|
* @memberof DefaultApi
|
|
3189
3312
|
*/
|
|
3190
3313
|
parkingTicketsIndex(memberId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketResultArray, any>>;
|
|
3314
|
+
/**
|
|
3315
|
+
*
|
|
3316
|
+
* @param {string} memberId
|
|
3317
|
+
* @param {string} logId
|
|
3318
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
3319
|
+
* @param {string} [xAccountId]
|
|
3320
|
+
* @param {*} [options] Override http request option.
|
|
3321
|
+
* @throws {RequiredError}
|
|
3322
|
+
* @memberof DefaultApi
|
|
3323
|
+
*/
|
|
3324
|
+
parkingTicketsRedeem(memberId: string, logId: string, parkingTicketsRedeemBody: ParkingTicketsRedeemBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseParkingTicketResult, any>>;
|
|
3191
3325
|
/**
|
|
3192
3326
|
*
|
|
3193
3327
|
* @param {string} visitScheduleId
|
package/dist/api/api.js
CHANGED
|
@@ -466,6 +466,47 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
466
466
|
options: localVarRequestOptions,
|
|
467
467
|
};
|
|
468
468
|
}),
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @param {string} memberId
|
|
472
|
+
* @param {string} logId
|
|
473
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
474
|
+
* @param {string} [xAccountId]
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
parkingTicketsRedeem: (memberId, logId, parkingTicketsRedeemBody, xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
480
|
+
(0, common_1.assertParamExists)('parkingTicketsRedeem', 'memberId', memberId);
|
|
481
|
+
// verify required parameter 'logId' is not null or undefined
|
|
482
|
+
(0, common_1.assertParamExists)('parkingTicketsRedeem', 'logId', logId);
|
|
483
|
+
// verify required parameter 'parkingTicketsRedeemBody' is not null or undefined
|
|
484
|
+
(0, common_1.assertParamExists)('parkingTicketsRedeem', 'parkingTicketsRedeemBody', parkingTicketsRedeemBody);
|
|
485
|
+
const localVarPath = `/members/{member_id}/parking_tickets/{log_id}/redeem`
|
|
486
|
+
.replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)))
|
|
487
|
+
.replace(`{${"log_id"}}`, encodeURIComponent(String(logId)));
|
|
488
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
489
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
490
|
+
let baseOptions;
|
|
491
|
+
if (configuration) {
|
|
492
|
+
baseOptions = configuration.baseOptions;
|
|
493
|
+
}
|
|
494
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
495
|
+
const localVarHeaderParameter = {};
|
|
496
|
+
const localVarQueryParameter = {};
|
|
497
|
+
if (xAccountId != null) {
|
|
498
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
499
|
+
}
|
|
500
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
501
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
503
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
504
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(parkingTicketsRedeemBody, localVarRequestOptions, configuration);
|
|
505
|
+
return {
|
|
506
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
507
|
+
options: localVarRequestOptions,
|
|
508
|
+
};
|
|
509
|
+
}),
|
|
469
510
|
/**
|
|
470
511
|
*
|
|
471
512
|
* @param {string} visitScheduleId
|
|
@@ -816,6 +857,21 @@ const DefaultApiFp = function (configuration) {
|
|
|
816
857
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
817
858
|
});
|
|
818
859
|
},
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @param {string} memberId
|
|
863
|
+
* @param {string} logId
|
|
864
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
865
|
+
* @param {string} [xAccountId]
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options) {
|
|
870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options);
|
|
872
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
873
|
+
});
|
|
874
|
+
},
|
|
819
875
|
/**
|
|
820
876
|
*
|
|
821
877
|
* @param {string} visitScheduleId
|
|
@@ -1025,6 +1081,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1025
1081
|
parkingTicketsIndex(memberId, options) {
|
|
1026
1082
|
return localVarFp.parkingTicketsIndex(memberId, options).then((request) => request(axios, basePath));
|
|
1027
1083
|
},
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @param {string} memberId
|
|
1087
|
+
* @param {string} logId
|
|
1088
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
1089
|
+
* @param {string} [xAccountId]
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
*/
|
|
1093
|
+
parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options) {
|
|
1094
|
+
return localVarFp.parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options).then((request) => request(axios, basePath));
|
|
1095
|
+
},
|
|
1028
1096
|
/**
|
|
1029
1097
|
*
|
|
1030
1098
|
* @param {string} visitScheduleId
|
|
@@ -1229,6 +1297,19 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1229
1297
|
parkingTicketsIndex(memberId, options) {
|
|
1230
1298
|
return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsIndex(memberId, options).then((request) => request(this.axios, this.basePath));
|
|
1231
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
*
|
|
1302
|
+
* @param {string} memberId
|
|
1303
|
+
* @param {string} logId
|
|
1304
|
+
* @param {ParkingTicketsRedeemBody} parkingTicketsRedeemBody
|
|
1305
|
+
* @param {string} [xAccountId]
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
* @memberof DefaultApi
|
|
1309
|
+
*/
|
|
1310
|
+
parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options) {
|
|
1311
|
+
return (0, exports.DefaultApiFp)(this.configuration).parkingTicketsRedeem(memberId, logId, parkingTicketsRedeemBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
|
|
1312
|
+
}
|
|
1232
1313
|
/**
|
|
1233
1314
|
*
|
|
1234
1315
|
* @param {string} visitScheduleId
|