ob-parking-sdk 0.0.65 → 0.0.66

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
@@ -190,6 +190,19 @@ export const AddParkingTicketType = {
190
190
  export type AddParkingTicketType = typeof AddParkingTicketType[keyof typeof AddParkingTicketType];
191
191
 
192
192
 
193
+ /**
194
+ *
195
+ * @export
196
+ * @interface ApproveReceiptBody
197
+ */
198
+ export interface ApproveReceiptBody {
199
+ /**
200
+ *
201
+ * @type {string}
202
+ * @memberof ApproveReceiptBody
203
+ */
204
+ 'counter': string;
205
+ }
193
206
  /**
194
207
  *
195
208
  * @export
@@ -412,6 +425,12 @@ export interface CmsParkingDetailRedeemBody {
412
425
  * @memberof CmsParkingDetailRedeemBody
413
426
  */
414
427
  'source'?: CmsParkingDetailRedeemBodySourceEnum;
428
+ /**
429
+ *
430
+ * @type {string}
431
+ * @memberof CmsParkingDetailRedeemBody
432
+ */
433
+ 'counter'?: string;
415
434
  /**
416
435
  *
417
436
  * @type {string}
@@ -1026,12 +1045,6 @@ export interface GetAllReceiptResponse {
1026
1045
  * @memberof GetAllReceiptResponse
1027
1046
  */
1028
1047
  'transaction_time': string | null;
1029
- /**
1030
- *
1031
- * @type {boolean}
1032
- * @memberof GetAllReceiptResponse
1033
- */
1034
- 'check_handwriting'?: boolean;
1035
1048
  }
1036
1049
 
1037
1050
 
@@ -2013,6 +2026,12 @@ export interface ParkingDetailRedeemBody {
2013
2026
  * @memberof ParkingDetailRedeemBody
2014
2027
  */
2015
2028
  'source'?: ParkingDetailRedeemBodySourceEnum;
2029
+ /**
2030
+ *
2031
+ * @type {string}
2032
+ * @memberof ParkingDetailRedeemBody
2033
+ */
2034
+ 'counter'?: string;
2016
2035
  }
2017
2036
 
2018
2037
  export const ParkingDetailRedeemBodySourceEnum = {
@@ -2366,12 +2385,6 @@ export interface Receipt {
2366
2385
  * @memberof Receipt
2367
2386
  */
2368
2387
  'counter'?: string;
2369
- /**
2370
- *
2371
- * @type {boolean}
2372
- * @memberof Receipt
2373
- */
2374
- 'check_handwriting'?: boolean;
2375
2388
  /**
2376
2389
  *
2377
2390
  * @type {string}
@@ -3244,6 +3257,12 @@ export interface UpdateReceiptBody {
3244
3257
  * @memberof UpdateReceiptBody
3245
3258
  */
3246
3259
  'counter'?: string;
3260
+ /**
3261
+ *
3262
+ * @type {string}
3263
+ * @memberof UpdateReceiptBody
3264
+ */
3265
+ 'email'?: string;
3247
3266
  }
3248
3267
 
3249
3268
 
@@ -4743,12 +4762,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4743
4762
  /**
4744
4763
  *
4745
4764
  * @param {string} id
4765
+ * @param {ApproveReceiptBody} approveReceiptBody
4746
4766
  * @param {*} [options] Override http request option.
4747
4767
  * @throws {RequiredError}
4748
4768
  */
4749
- receiptApproveReceipt: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4769
+ receiptApproveReceipt: async (id: string, approveReceiptBody: ApproveReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4750
4770
  // verify required parameter 'id' is not null or undefined
4751
4771
  assertParamExists('receiptApproveReceipt', 'id', id)
4772
+ // verify required parameter 'approveReceiptBody' is not null or undefined
4773
+ assertParamExists('receiptApproveReceipt', 'approveReceiptBody', approveReceiptBody)
4752
4774
  const localVarPath = `/receipt/approve-receipt/{id}`
4753
4775
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4754
4776
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4764,9 +4786,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4764
4786
 
4765
4787
 
4766
4788
 
4789
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4790
+
4767
4791
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4768
4792
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4769
4793
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4794
+ localVarRequestOptions.data = serializeDataIfNeeded(approveReceiptBody, localVarRequestOptions, configuration)
4770
4795
 
4771
4796
  return {
4772
4797
  url: toPathString(localVarUrlObj),
@@ -5710,11 +5735,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5710
5735
  /**
5711
5736
  *
5712
5737
  * @param {string} id
5738
+ * @param {ApproveReceiptBody} approveReceiptBody
5713
5739
  * @param {*} [options] Override http request option.
5714
5740
  * @throws {RequiredError}
5715
5741
  */
5716
- async receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5717
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiptApproveReceipt(id, options);
5742
+ async receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptApproveReceipt(id, approveReceiptBody, options);
5718
5744
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5719
5745
  },
5720
5746
  /**
@@ -6217,11 +6243,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6217
6243
  /**
6218
6244
  *
6219
6245
  * @param {string} id
6246
+ * @param {ApproveReceiptBody} approveReceiptBody
6220
6247
  * @param {*} [options] Override http request option.
6221
6248
  * @throws {RequiredError}
6222
6249
  */
6223
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean> {
6224
- return localVarFp.receiptApproveReceipt(id, options).then((request) => request(axios, basePath));
6250
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: any): AxiosPromise<boolean> {
6251
+ return localVarFp.receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(axios, basePath));
6225
6252
  },
6226
6253
  /**
6227
6254
  *
@@ -6765,12 +6792,13 @@ export class DefaultApi extends BaseAPI {
6765
6792
  /**
6766
6793
  *
6767
6794
  * @param {string} id
6795
+ * @param {ApproveReceiptBody} approveReceiptBody
6768
6796
  * @param {*} [options] Override http request option.
6769
6797
  * @throws {RequiredError}
6770
6798
  * @memberof DefaultApi
6771
6799
  */
6772
- public receiptApproveReceipt(id: string, options?: AxiosRequestConfig) {
6773
- return DefaultApiFp(this.configuration).receiptApproveReceipt(id, options).then((request) => request(this.axios, this.basePath));
6800
+ public receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig) {
6801
+ return DefaultApiFp(this.configuration).receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(this.axios, this.basePath));
6774
6802
  }
6775
6803
 
6776
6804
  /**
package/dist/api/api.d.ts CHANGED
@@ -170,6 +170,19 @@ export declare const AddParkingTicketType: {
170
170
  readonly App: "APP";
171
171
  };
172
172
  export type AddParkingTicketType = typeof AddParkingTicketType[keyof typeof AddParkingTicketType];
173
+ /**
174
+ *
175
+ * @export
176
+ * @interface ApproveReceiptBody
177
+ */
178
+ export interface ApproveReceiptBody {
179
+ /**
180
+ *
181
+ * @type {string}
182
+ * @memberof ApproveReceiptBody
183
+ */
184
+ 'counter': string;
185
+ }
173
186
  /**
174
187
  *
175
188
  * @export
@@ -392,6 +405,12 @@ export interface CmsParkingDetailRedeemBody {
392
405
  * @memberof CmsParkingDetailRedeemBody
393
406
  */
394
407
  'source'?: CmsParkingDetailRedeemBodySourceEnum;
408
+ /**
409
+ *
410
+ * @type {string}
411
+ * @memberof CmsParkingDetailRedeemBody
412
+ */
413
+ 'counter'?: string;
395
414
  /**
396
415
  *
397
416
  * @type {string}
@@ -993,12 +1012,6 @@ export interface GetAllReceiptResponse {
993
1012
  * @memberof GetAllReceiptResponse
994
1013
  */
995
1014
  'transaction_time': string | null;
996
- /**
997
- *
998
- * @type {boolean}
999
- * @memberof GetAllReceiptResponse
1000
- */
1001
- 'check_handwriting'?: boolean;
1002
1015
  }
1003
1016
  /**
1004
1017
  *
@@ -1974,6 +1987,12 @@ export interface ParkingDetailRedeemBody {
1974
1987
  * @memberof ParkingDetailRedeemBody
1975
1988
  */
1976
1989
  'source'?: ParkingDetailRedeemBodySourceEnum;
1990
+ /**
1991
+ *
1992
+ * @type {string}
1993
+ * @memberof ParkingDetailRedeemBody
1994
+ */
1995
+ 'counter'?: string;
1977
1996
  }
1978
1997
  export declare const ParkingDetailRedeemBodySourceEnum: {
1979
1998
  readonly Cms: "cms";
@@ -2318,12 +2337,6 @@ export interface Receipt {
2318
2337
  * @memberof Receipt
2319
2338
  */
2320
2339
  'counter'?: string;
2321
- /**
2322
- *
2323
- * @type {boolean}
2324
- * @memberof Receipt
2325
- */
2326
- 'check_handwriting'?: boolean;
2327
2340
  /**
2328
2341
  *
2329
2342
  * @type {string}
@@ -3182,6 +3195,12 @@ export interface UpdateReceiptBody {
3182
3195
  * @memberof UpdateReceiptBody
3183
3196
  */
3184
3197
  'counter'?: string;
3198
+ /**
3199
+ *
3200
+ * @type {string}
3201
+ * @memberof UpdateReceiptBody
3202
+ */
3203
+ 'email'?: string;
3185
3204
  }
3186
3205
  /**
3187
3206
  *
@@ -3634,10 +3653,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3634
3653
  /**
3635
3654
  *
3636
3655
  * @param {string} id
3656
+ * @param {ApproveReceiptBody} approveReceiptBody
3637
3657
  * @param {*} [options] Override http request option.
3638
3658
  * @throws {RequiredError}
3639
3659
  */
3640
- receiptApproveReceipt: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3660
+ receiptApproveReceipt: (id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3641
3661
  /**
3642
3662
  *
3643
3663
  * @param {CreateReceiptBody} createReceiptBody
@@ -4028,10 +4048,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4028
4048
  /**
4029
4049
  *
4030
4050
  * @param {string} id
4051
+ * @param {ApproveReceiptBody} approveReceiptBody
4031
4052
  * @param {*} [options] Override http request option.
4032
4053
  * @throws {RequiredError}
4033
4054
  */
4034
- receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
4055
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
4035
4056
  /**
4036
4057
  *
4037
4058
  * @param {CreateReceiptBody} createReceiptBody
@@ -4422,10 +4443,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4422
4443
  /**
4423
4444
  *
4424
4445
  * @param {string} id
4446
+ * @param {ApproveReceiptBody} approveReceiptBody
4425
4447
  * @param {*} [options] Override http request option.
4426
4448
  * @throws {RequiredError}
4427
4449
  */
4428
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean>;
4450
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: any): AxiosPromise<boolean>;
4429
4451
  /**
4430
4452
  *
4431
4453
  * @param {CreateReceiptBody} createReceiptBody
@@ -4847,11 +4869,12 @@ export declare class DefaultApi extends BaseAPI {
4847
4869
  /**
4848
4870
  *
4849
4871
  * @param {string} id
4872
+ * @param {ApproveReceiptBody} approveReceiptBody
4850
4873
  * @param {*} [options] Override http request option.
4851
4874
  * @throws {RequiredError}
4852
4875
  * @memberof DefaultApi
4853
4876
  */
4854
- receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
4877
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
4855
4878
  /**
4856
4879
  *
4857
4880
  * @param {CreateReceiptBody} createReceiptBody
package/dist/api/api.js CHANGED
@@ -1196,12 +1196,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1196
1196
  /**
1197
1197
  *
1198
1198
  * @param {string} id
1199
+ * @param {ApproveReceiptBody} approveReceiptBody
1199
1200
  * @param {*} [options] Override http request option.
1200
1201
  * @throws {RequiredError}
1201
1202
  */
1202
- receiptApproveReceipt: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1203
+ receiptApproveReceipt: (id, approveReceiptBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
1203
1204
  // verify required parameter 'id' is not null or undefined
1204
1205
  (0, common_1.assertParamExists)('receiptApproveReceipt', 'id', id);
1206
+ // verify required parameter 'approveReceiptBody' is not null or undefined
1207
+ (0, common_1.assertParamExists)('receiptApproveReceipt', 'approveReceiptBody', approveReceiptBody);
1205
1208
  const localVarPath = `/receipt/approve-receipt/{id}`
1206
1209
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1207
1210
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1213,9 +1216,11 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1213
1216
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1214
1217
  const localVarHeaderParameter = {};
1215
1218
  const localVarQueryParameter = {};
1219
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1216
1220
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1217
1221
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1218
1222
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1223
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveReceiptBody, localVarRequestOptions, configuration);
1219
1224
  return {
1220
1225
  url: (0, common_1.toPathString)(localVarUrlObj),
1221
1226
  options: localVarRequestOptions,
@@ -2119,12 +2124,13 @@ const DefaultApiFp = function (configuration) {
2119
2124
  /**
2120
2125
  *
2121
2126
  * @param {string} id
2127
+ * @param {ApproveReceiptBody} approveReceiptBody
2122
2128
  * @param {*} [options] Override http request option.
2123
2129
  * @throws {RequiredError}
2124
2130
  */
2125
- receiptApproveReceipt(id, options) {
2131
+ receiptApproveReceipt(id, approveReceiptBody, options) {
2126
2132
  return __awaiter(this, void 0, void 0, function* () {
2127
- const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptApproveReceipt(id, options);
2133
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptApproveReceipt(id, approveReceiptBody, options);
2128
2134
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2129
2135
  });
2130
2136
  },
@@ -2660,11 +2666,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2660
2666
  /**
2661
2667
  *
2662
2668
  * @param {string} id
2669
+ * @param {ApproveReceiptBody} approveReceiptBody
2663
2670
  * @param {*} [options] Override http request option.
2664
2671
  * @throws {RequiredError}
2665
2672
  */
2666
- receiptApproveReceipt(id, options) {
2667
- return localVarFp.receiptApproveReceipt(id, options).then((request) => request(axios, basePath));
2673
+ receiptApproveReceipt(id, approveReceiptBody, options) {
2674
+ return localVarFp.receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(axios, basePath));
2668
2675
  },
2669
2676
  /**
2670
2677
  *
@@ -3179,12 +3186,13 @@ class DefaultApi extends base_1.BaseAPI {
3179
3186
  /**
3180
3187
  *
3181
3188
  * @param {string} id
3189
+ * @param {ApproveReceiptBody} approveReceiptBody
3182
3190
  * @param {*} [options] Override http request option.
3183
3191
  * @throws {RequiredError}
3184
3192
  * @memberof DefaultApi
3185
3193
  */
3186
- receiptApproveReceipt(id, options) {
3187
- return (0, exports.DefaultApiFp)(this.configuration).receiptApproveReceipt(id, options).then((request) => request(this.axios, this.basePath));
3194
+ receiptApproveReceipt(id, approveReceiptBody, options) {
3195
+ return (0, exports.DefaultApiFp)(this.configuration).receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(this.axios, this.basePath));
3188
3196
  }
3189
3197
  /**
3190
3198
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-parking-sdk",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"