ob-parking-sdk 0.0.30 → 0.0.32

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 0.0.2
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -727,6 +727,18 @@ export interface GetAllReceiptResponse {
727
727
  * @memberof GetAllReceiptResponse
728
728
  */
729
729
  'parking_id': string;
730
+ /**
731
+ *
732
+ * @type {string}
733
+ * @memberof GetAllReceiptResponse
734
+ */
735
+ 'message': string | null;
736
+ /**
737
+ *
738
+ * @type {string}
739
+ * @memberof GetAllReceiptResponse
740
+ */
741
+ 'image_url': string | null;
730
742
  }
731
743
 
732
744
 
@@ -2059,6 +2071,12 @@ export interface StoreWhitelistResponse {
2059
2071
  * @memberof StoreWhitelistResponse
2060
2072
  */
2061
2073
  'company_name': string;
2074
+ /**
2075
+ *
2076
+ * @type {string}
2077
+ * @memberof StoreWhitelistResponse
2078
+ */
2079
+ 'shop_name': string | null;
2062
2080
  /**
2063
2081
  *
2064
2082
  * @type {string}
@@ -3465,6 +3483,39 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3465
3483
 
3466
3484
 
3467
3485
 
3486
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3488
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3489
+
3490
+ return {
3491
+ url: toPathString(localVarUrlObj),
3492
+ options: localVarRequestOptions,
3493
+ };
3494
+ },
3495
+ /**
3496
+ *
3497
+ * @param {string} id
3498
+ * @param {*} [options] Override http request option.
3499
+ * @throws {RequiredError}
3500
+ */
3501
+ receiptApproveReceipt: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3502
+ // verify required parameter 'id' is not null or undefined
3503
+ assertParamExists('receiptApproveReceipt', 'id', id)
3504
+ const localVarPath = `/receipt/approve-receipt/{id}`
3505
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3506
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3507
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3508
+ let baseOptions;
3509
+ if (configuration) {
3510
+ baseOptions = configuration.baseOptions;
3511
+ }
3512
+
3513
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3514
+ const localVarHeaderParameter = {} as any;
3515
+ const localVarQueryParameter = {} as any;
3516
+
3517
+
3518
+
3468
3519
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3469
3520
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3470
3521
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -3514,6 +3565,39 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3514
3565
  options: localVarRequestOptions,
3515
3566
  };
3516
3567
  },
3568
+ /**
3569
+ *
3570
+ * @param {string} id
3571
+ * @param {*} [options] Override http request option.
3572
+ * @throws {RequiredError}
3573
+ */
3574
+ receiptDeleteReceipt: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3575
+ // verify required parameter 'id' is not null or undefined
3576
+ assertParamExists('receiptDeleteReceipt', 'id', id)
3577
+ const localVarPath = `/receipt/delete-receipt/{id}`
3578
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3581
+ let baseOptions;
3582
+ if (configuration) {
3583
+ baseOptions = configuration.baseOptions;
3584
+ }
3585
+
3586
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3587
+ const localVarHeaderParameter = {} as any;
3588
+ const localVarQueryParameter = {} as any;
3589
+
3590
+
3591
+
3592
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3594
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3595
+
3596
+ return {
3597
+ url: toPathString(localVarUrlObj),
3598
+ options: localVarRequestOptions,
3599
+ };
3600
+ },
3517
3601
  /**
3518
3602
  *
3519
3603
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -3932,6 +4016,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3932
4016
  const localVarAxiosArgs = await localVarAxiosParamCreator.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options);
3933
4017
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3934
4018
  },
4019
+ /**
4020
+ *
4021
+ * @param {string} id
4022
+ * @param {*} [options] Override http request option.
4023
+ * @throws {RequiredError}
4024
+ */
4025
+ async receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
4026
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptApproveReceipt(id, options);
4027
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4028
+ },
3935
4029
  /**
3936
4030
  *
3937
4031
  * @param {CreateReceiptBody} createReceiptBody
@@ -3943,6 +4037,16 @@ export const DefaultApiFp = function(configuration?: Configuration) {
3943
4037
  const localVarAxiosArgs = await localVarAxiosParamCreator.receiptCreateReceipt(createReceiptBody, xAccountId, options);
3944
4038
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3945
4039
  },
4040
+ /**
4041
+ *
4042
+ * @param {string} id
4043
+ * @param {*} [options] Override http request option.
4044
+ * @throws {RequiredError}
4045
+ */
4046
+ async receiptDeleteReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
4047
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptDeleteReceipt(id, options);
4048
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4049
+ },
3946
4050
  /**
3947
4051
  *
3948
4052
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -4261,6 +4365,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4261
4365
  receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: any): AxiosPromise<Array<GetAllReceiptResponse>> {
4262
4366
  return localVarFp.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(axios, basePath));
4263
4367
  },
4368
+ /**
4369
+ *
4370
+ * @param {string} id
4371
+ * @param {*} [options] Override http request option.
4372
+ * @throws {RequiredError}
4373
+ */
4374
+ receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean> {
4375
+ return localVarFp.receiptApproveReceipt(id, options).then((request) => request(axios, basePath));
4376
+ },
4264
4377
  /**
4265
4378
  *
4266
4379
  * @param {CreateReceiptBody} createReceiptBody
@@ -4271,6 +4384,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4271
4384
  receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: any): AxiosPromise<boolean> {
4272
4385
  return localVarFp.receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(axios, basePath));
4273
4386
  },
4387
+ /**
4388
+ *
4389
+ * @param {string} id
4390
+ * @param {*} [options] Override http request option.
4391
+ * @throws {RequiredError}
4392
+ */
4393
+ receiptDeleteReceipt(id: string, options?: any): AxiosPromise<boolean> {
4394
+ return localVarFp.receiptDeleteReceipt(id, options).then((request) => request(axios, basePath));
4395
+ },
4274
4396
  /**
4275
4397
  *
4276
4398
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -4638,6 +4760,17 @@ export class DefaultApi extends BaseAPI {
4638
4760
  return DefaultApiFp(this.configuration).receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(this.axios, this.basePath));
4639
4761
  }
4640
4762
 
4763
+ /**
4764
+ *
4765
+ * @param {string} id
4766
+ * @param {*} [options] Override http request option.
4767
+ * @throws {RequiredError}
4768
+ * @memberof DefaultApi
4769
+ */
4770
+ public receiptApproveReceipt(id: string, options?: AxiosRequestConfig) {
4771
+ return DefaultApiFp(this.configuration).receiptApproveReceipt(id, options).then((request) => request(this.axios, this.basePath));
4772
+ }
4773
+
4641
4774
  /**
4642
4775
  *
4643
4776
  * @param {CreateReceiptBody} createReceiptBody
@@ -4650,6 +4783,17 @@ export class DefaultApi extends BaseAPI {
4650
4783
  return DefaultApiFp(this.configuration).receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
4651
4784
  }
4652
4785
 
4786
+ /**
4787
+ *
4788
+ * @param {string} id
4789
+ * @param {*} [options] Override http request option.
4790
+ * @throws {RequiredError}
4791
+ * @memberof DefaultApi
4792
+ */
4793
+ public receiptDeleteReceipt(id: string, options?: AxiosRequestConfig) {
4794
+ return DefaultApiFp(this.configuration).receiptDeleteReceipt(id, options).then((request) => request(this.axios, this.basePath));
4795
+ }
4796
+
4653
4797
  /**
4654
4798
  *
4655
4799
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
package/api/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 0.0.2
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 0.0.2
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 0.0.2
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 0.0.2
7
+ * The version of the OpenAPI document: 1.19.3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.0.2
5
+ * The version of the OpenAPI document: 1.19.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -705,6 +705,18 @@ export interface GetAllReceiptResponse {
705
705
  * @memberof GetAllReceiptResponse
706
706
  */
707
707
  'parking_id': string;
708
+ /**
709
+ *
710
+ * @type {string}
711
+ * @memberof GetAllReceiptResponse
712
+ */
713
+ 'message': string | null;
714
+ /**
715
+ *
716
+ * @type {string}
717
+ * @memberof GetAllReceiptResponse
718
+ */
719
+ 'image_url': string | null;
708
720
  }
709
721
  /**
710
722
  *
@@ -2013,6 +2025,12 @@ export interface StoreWhitelistResponse {
2013
2025
  * @memberof StoreWhitelistResponse
2014
2026
  */
2015
2027
  'company_name': string;
2028
+ /**
2029
+ *
2030
+ * @type {string}
2031
+ * @memberof StoreWhitelistResponse
2032
+ */
2033
+ 'shop_name': string | null;
2016
2034
  /**
2017
2035
  *
2018
2036
  * @type {string}
@@ -2539,6 +2557,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2539
2557
  * @throws {RequiredError}
2540
2558
  */
2541
2559
  receiptAll: (id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2560
+ /**
2561
+ *
2562
+ * @param {string} id
2563
+ * @param {*} [options] Override http request option.
2564
+ * @throws {RequiredError}
2565
+ */
2566
+ receiptApproveReceipt: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2542
2567
  /**
2543
2568
  *
2544
2569
  * @param {CreateReceiptBody} createReceiptBody
@@ -2547,6 +2572,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2547
2572
  * @throws {RequiredError}
2548
2573
  */
2549
2574
  receiptCreateReceipt: (createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2575
+ /**
2576
+ *
2577
+ * @param {string} id
2578
+ * @param {*} [options] Override http request option.
2579
+ * @throws {RequiredError}
2580
+ */
2581
+ receiptDeleteReceipt: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2550
2582
  /**
2551
2583
  *
2552
2584
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -2800,6 +2832,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2800
2832
  * @throws {RequiredError}
2801
2833
  */
2802
2834
  receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetAllReceiptResponse>>>;
2835
+ /**
2836
+ *
2837
+ * @param {string} id
2838
+ * @param {*} [options] Override http request option.
2839
+ * @throws {RequiredError}
2840
+ */
2841
+ receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
2803
2842
  /**
2804
2843
  *
2805
2844
  * @param {CreateReceiptBody} createReceiptBody
@@ -2808,6 +2847,13 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2808
2847
  * @throws {RequiredError}
2809
2848
  */
2810
2849
  receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
2850
+ /**
2851
+ *
2852
+ * @param {string} id
2853
+ * @param {*} [options] Override http request option.
2854
+ * @throws {RequiredError}
2855
+ */
2856
+ receiptDeleteReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
2811
2857
  /**
2812
2858
  *
2813
2859
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -3061,6 +3107,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3061
3107
  * @throws {RequiredError}
3062
3108
  */
3063
3109
  receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: any): AxiosPromise<Array<GetAllReceiptResponse>>;
3110
+ /**
3111
+ *
3112
+ * @param {string} id
3113
+ * @param {*} [options] Override http request option.
3114
+ * @throws {RequiredError}
3115
+ */
3116
+ receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean>;
3064
3117
  /**
3065
3118
  *
3066
3119
  * @param {CreateReceiptBody} createReceiptBody
@@ -3069,6 +3122,13 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3069
3122
  * @throws {RequiredError}
3070
3123
  */
3071
3124
  receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: any): AxiosPromise<boolean>;
3125
+ /**
3126
+ *
3127
+ * @param {string} id
3128
+ * @param {*} [options] Override http request option.
3129
+ * @throws {RequiredError}
3130
+ */
3131
+ receiptDeleteReceipt(id: string, options?: any): AxiosPromise<boolean>;
3072
3132
  /**
3073
3133
  *
3074
3134
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -3350,6 +3410,14 @@ export declare class DefaultApi extends BaseAPI {
3350
3410
  * @memberof DefaultApi
3351
3411
  */
3352
3412
  receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllReceiptResponse[], any>>;
3413
+ /**
3414
+ *
3415
+ * @param {string} id
3416
+ * @param {*} [options] Override http request option.
3417
+ * @throws {RequiredError}
3418
+ * @memberof DefaultApi
3419
+ */
3420
+ receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3353
3421
  /**
3354
3422
  *
3355
3423
  * @param {CreateReceiptBody} createReceiptBody
@@ -3359,6 +3427,14 @@ export declare class DefaultApi extends BaseAPI {
3359
3427
  * @memberof DefaultApi
3360
3428
  */
3361
3429
  receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3430
+ /**
3431
+ *
3432
+ * @param {string} id
3433
+ * @param {*} [options] Override http request option.
3434
+ * @throws {RequiredError}
3435
+ * @memberof DefaultApi
3436
+ */
3437
+ receiptDeleteReceipt(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3362
3438
  /**
3363
3439
  *
3364
3440
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
package/dist/api/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.0.2
8
+ * The version of the OpenAPI document: 1.19.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1013,6 +1013,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1013
1013
  options: localVarRequestOptions,
1014
1014
  };
1015
1015
  }),
1016
+ /**
1017
+ *
1018
+ * @param {string} id
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ receiptApproveReceipt: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1023
+ // verify required parameter 'id' is not null or undefined
1024
+ (0, common_1.assertParamExists)('receiptApproveReceipt', 'id', id);
1025
+ const localVarPath = `/receipt/approve-receipt/{id}`
1026
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1027
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1028
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1029
+ let baseOptions;
1030
+ if (configuration) {
1031
+ baseOptions = configuration.baseOptions;
1032
+ }
1033
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1034
+ const localVarHeaderParameter = {};
1035
+ const localVarQueryParameter = {};
1036
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1038
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1039
+ return {
1040
+ url: (0, common_1.toPathString)(localVarUrlObj),
1041
+ options: localVarRequestOptions,
1042
+ };
1043
+ }),
1016
1044
  /**
1017
1045
  *
1018
1046
  * @param {CreateReceiptBody} createReceiptBody
@@ -1046,6 +1074,34 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1046
1074
  options: localVarRequestOptions,
1047
1075
  };
1048
1076
  }),
1077
+ /**
1078
+ *
1079
+ * @param {string} id
1080
+ * @param {*} [options] Override http request option.
1081
+ * @throws {RequiredError}
1082
+ */
1083
+ receiptDeleteReceipt: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1084
+ // verify required parameter 'id' is not null or undefined
1085
+ (0, common_1.assertParamExists)('receiptDeleteReceipt', 'id', id);
1086
+ const localVarPath = `/receipt/delete-receipt/{id}`
1087
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1088
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1089
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1090
+ let baseOptions;
1091
+ if (configuration) {
1092
+ baseOptions = configuration.baseOptions;
1093
+ }
1094
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1095
+ const localVarHeaderParameter = {};
1096
+ const localVarQueryParameter = {};
1097
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1099
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1100
+ return {
1101
+ url: (0, common_1.toPathString)(localVarUrlObj),
1102
+ options: localVarRequestOptions,
1103
+ };
1104
+ }),
1049
1105
  /**
1050
1106
  *
1051
1107
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -1498,6 +1554,18 @@ const DefaultApiFp = function (configuration) {
1498
1554
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1499
1555
  });
1500
1556
  },
1557
+ /**
1558
+ *
1559
+ * @param {string} id
1560
+ * @param {*} [options] Override http request option.
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ receiptApproveReceipt(id, options) {
1564
+ return __awaiter(this, void 0, void 0, function* () {
1565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptApproveReceipt(id, options);
1566
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1567
+ });
1568
+ },
1501
1569
  /**
1502
1570
  *
1503
1571
  * @param {CreateReceiptBody} createReceiptBody
@@ -1511,6 +1579,18 @@ const DefaultApiFp = function (configuration) {
1511
1579
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1512
1580
  });
1513
1581
  },
1582
+ /**
1583
+ *
1584
+ * @param {string} id
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ */
1588
+ receiptDeleteReceipt(id, options) {
1589
+ return __awaiter(this, void 0, void 0, function* () {
1590
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptDeleteReceipt(id, options);
1591
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1592
+ });
1593
+ },
1514
1594
  /**
1515
1595
  *
1516
1596
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -1835,6 +1915,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1835
1915
  receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options) {
1836
1916
  return localVarFp.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(axios, basePath));
1837
1917
  },
1918
+ /**
1919
+ *
1920
+ * @param {string} id
1921
+ * @param {*} [options] Override http request option.
1922
+ * @throws {RequiredError}
1923
+ */
1924
+ receiptApproveReceipt(id, options) {
1925
+ return localVarFp.receiptApproveReceipt(id, options).then((request) => request(axios, basePath));
1926
+ },
1838
1927
  /**
1839
1928
  *
1840
1929
  * @param {CreateReceiptBody} createReceiptBody
@@ -1845,6 +1934,15 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1845
1934
  receiptCreateReceipt(createReceiptBody, xAccountId, options) {
1846
1935
  return localVarFp.receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(axios, basePath));
1847
1936
  },
1937
+ /**
1938
+ *
1939
+ * @param {string} id
1940
+ * @param {*} [options] Override http request option.
1941
+ * @throws {RequiredError}
1942
+ */
1943
+ receiptDeleteReceipt(id, options) {
1944
+ return localVarFp.receiptDeleteReceipt(id, options).then((request) => request(axios, basePath));
1945
+ },
1848
1946
  /**
1849
1947
  *
1850
1948
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -2186,6 +2284,16 @@ class DefaultApi extends base_1.BaseAPI {
2186
2284
  receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options) {
2187
2285
  return (0, exports.DefaultApiFp)(this.configuration).receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(this.axios, this.basePath));
2188
2286
  }
2287
+ /**
2288
+ *
2289
+ * @param {string} id
2290
+ * @param {*} [options] Override http request option.
2291
+ * @throws {RequiredError}
2292
+ * @memberof DefaultApi
2293
+ */
2294
+ receiptApproveReceipt(id, options) {
2295
+ return (0, exports.DefaultApiFp)(this.configuration).receiptApproveReceipt(id, options).then((request) => request(this.axios, this.basePath));
2296
+ }
2189
2297
  /**
2190
2298
  *
2191
2299
  * @param {CreateReceiptBody} createReceiptBody
@@ -2197,6 +2305,16 @@ class DefaultApi extends base_1.BaseAPI {
2197
2305
  receiptCreateReceipt(createReceiptBody, xAccountId, options) {
2198
2306
  return (0, exports.DefaultApiFp)(this.configuration).receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
2199
2307
  }
2308
+ /**
2309
+ *
2310
+ * @param {string} id
2311
+ * @param {*} [options] Override http request option.
2312
+ * @throws {RequiredError}
2313
+ * @memberof DefaultApi
2314
+ */
2315
+ receiptDeleteReceipt(id, options) {
2316
+ return (0, exports.DefaultApiFp)(this.configuration).receiptDeleteReceipt(id, options).then((request) => request(this.axios, this.basePath));
2317
+ }
2200
2318
  /**
2201
2319
  *
2202
2320
  * @param {ManualCreateReceiptBody} manualCreateReceiptBody
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.0.2
5
+ * The version of the OpenAPI document: 1.19.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.0.2
8
+ * The version of the OpenAPI document: 1.19.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.0.2
5
+ * The version of the OpenAPI document: 1.19.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.0.2
8
+ * The version of the OpenAPI document: 1.19.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.0.2
5
+ * The version of the OpenAPI document: 1.19.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.0.2
8
+ * The version of the OpenAPI document: 1.19.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * obk-parking
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: 0.0.2
5
+ * The version of the OpenAPI document: 1.19.3
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * obk-parking
6
6
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
7
  *
8
- * The version of the OpenAPI document: 0.0.2
8
+ * The version of the OpenAPI document: 1.19.3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-parking-sdk",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"