ob-parking-sdk 0.0.65 → 0.0.67

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,25 @@ 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
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof ApproveReceiptBody
209
+ */
210
+ 'email': string;
211
+ }
193
212
  /**
194
213
  *
195
214
  * @export
@@ -412,6 +431,12 @@ export interface CmsParkingDetailRedeemBody {
412
431
  * @memberof CmsParkingDetailRedeemBody
413
432
  */
414
433
  'source'?: CmsParkingDetailRedeemBodySourceEnum;
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof CmsParkingDetailRedeemBody
438
+ */
439
+ 'counter'?: string;
415
440
  /**
416
441
  *
417
442
  * @type {string}
@@ -1026,12 +1051,6 @@ export interface GetAllReceiptResponse {
1026
1051
  * @memberof GetAllReceiptResponse
1027
1052
  */
1028
1053
  'transaction_time': string | null;
1029
- /**
1030
- *
1031
- * @type {boolean}
1032
- * @memberof GetAllReceiptResponse
1033
- */
1034
- 'check_handwriting'?: boolean;
1035
1054
  }
1036
1055
 
1037
1056
 
@@ -2013,6 +2032,12 @@ export interface ParkingDetailRedeemBody {
2013
2032
  * @memberof ParkingDetailRedeemBody
2014
2033
  */
2015
2034
  'source'?: ParkingDetailRedeemBodySourceEnum;
2035
+ /**
2036
+ *
2037
+ * @type {string}
2038
+ * @memberof ParkingDetailRedeemBody
2039
+ */
2040
+ 'counter'?: string;
2016
2041
  }
2017
2042
 
2018
2043
  export const ParkingDetailRedeemBodySourceEnum = {
@@ -2366,12 +2391,6 @@ export interface Receipt {
2366
2391
  * @memberof Receipt
2367
2392
  */
2368
2393
  'counter'?: string;
2369
- /**
2370
- *
2371
- * @type {boolean}
2372
- * @memberof Receipt
2373
- */
2374
- 'check_handwriting'?: boolean;
2375
2394
  /**
2376
2395
  *
2377
2396
  * @type {string}
@@ -3244,6 +3263,12 @@ export interface UpdateReceiptBody {
3244
3263
  * @memberof UpdateReceiptBody
3245
3264
  */
3246
3265
  'counter'?: string;
3266
+ /**
3267
+ *
3268
+ * @type {string}
3269
+ * @memberof UpdateReceiptBody
3270
+ */
3271
+ 'email'?: string;
3247
3272
  }
3248
3273
 
3249
3274
 
@@ -4743,12 +4768,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4743
4768
  /**
4744
4769
  *
4745
4770
  * @param {string} id
4771
+ * @param {ApproveReceiptBody} approveReceiptBody
4746
4772
  * @param {*} [options] Override http request option.
4747
4773
  * @throws {RequiredError}
4748
4774
  */
4749
- receiptApproveReceipt: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4775
+ receiptApproveReceipt: async (id: string, approveReceiptBody: ApproveReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4750
4776
  // verify required parameter 'id' is not null or undefined
4751
4777
  assertParamExists('receiptApproveReceipt', 'id', id)
4778
+ // verify required parameter 'approveReceiptBody' is not null or undefined
4779
+ assertParamExists('receiptApproveReceipt', 'approveReceiptBody', approveReceiptBody)
4752
4780
  const localVarPath = `/receipt/approve-receipt/{id}`
4753
4781
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4754
4782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4764,9 +4792,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4764
4792
 
4765
4793
 
4766
4794
 
4795
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4796
+
4767
4797
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4768
4798
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4769
4799
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4800
+ localVarRequestOptions.data = serializeDataIfNeeded(approveReceiptBody, localVarRequestOptions, configuration)
4770
4801
 
4771
4802
  return {
4772
4803
  url: toPathString(localVarUrlObj),
@@ -5710,11 +5741,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5710
5741
  /**
5711
5742
  *
5712
5743
  * @param {string} id
5744
+ * @param {ApproveReceiptBody} approveReceiptBody
5713
5745
  * @param {*} [options] Override http request option.
5714
5746
  * @throws {RequiredError}
5715
5747
  */
5716
- async receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5717
- const localVarAxiosArgs = await localVarAxiosParamCreator.receiptApproveReceipt(id, options);
5748
+ async receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptApproveReceipt(id, approveReceiptBody, options);
5718
5750
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5719
5751
  },
5720
5752
  /**
@@ -6217,11 +6249,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6217
6249
  /**
6218
6250
  *
6219
6251
  * @param {string} id
6252
+ * @param {ApproveReceiptBody} approveReceiptBody
6220
6253
  * @param {*} [options] Override http request option.
6221
6254
  * @throws {RequiredError}
6222
6255
  */
6223
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean> {
6224
- return localVarFp.receiptApproveReceipt(id, options).then((request) => request(axios, basePath));
6256
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: any): AxiosPromise<boolean> {
6257
+ return localVarFp.receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(axios, basePath));
6225
6258
  },
6226
6259
  /**
6227
6260
  *
@@ -6765,12 +6798,13 @@ export class DefaultApi extends BaseAPI {
6765
6798
  /**
6766
6799
  *
6767
6800
  * @param {string} id
6801
+ * @param {ApproveReceiptBody} approveReceiptBody
6768
6802
  * @param {*} [options] Override http request option.
6769
6803
  * @throws {RequiredError}
6770
6804
  * @memberof DefaultApi
6771
6805
  */
6772
- public receiptApproveReceipt(id: string, options?: AxiosRequestConfig) {
6773
- return DefaultApiFp(this.configuration).receiptApproveReceipt(id, options).then((request) => request(this.axios, this.basePath));
6806
+ public receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig) {
6807
+ return DefaultApiFp(this.configuration).receiptApproveReceipt(id, approveReceiptBody, options).then((request) => request(this.axios, this.basePath));
6774
6808
  }
6775
6809
 
6776
6810
  /**
package/dist/api/api.d.ts CHANGED
@@ -170,6 +170,25 @@ 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
+ /**
186
+ *
187
+ * @type {string}
188
+ * @memberof ApproveReceiptBody
189
+ */
190
+ 'email': string;
191
+ }
173
192
  /**
174
193
  *
175
194
  * @export
@@ -392,6 +411,12 @@ export interface CmsParkingDetailRedeemBody {
392
411
  * @memberof CmsParkingDetailRedeemBody
393
412
  */
394
413
  'source'?: CmsParkingDetailRedeemBodySourceEnum;
414
+ /**
415
+ *
416
+ * @type {string}
417
+ * @memberof CmsParkingDetailRedeemBody
418
+ */
419
+ 'counter'?: string;
395
420
  /**
396
421
  *
397
422
  * @type {string}
@@ -993,12 +1018,6 @@ export interface GetAllReceiptResponse {
993
1018
  * @memberof GetAllReceiptResponse
994
1019
  */
995
1020
  'transaction_time': string | null;
996
- /**
997
- *
998
- * @type {boolean}
999
- * @memberof GetAllReceiptResponse
1000
- */
1001
- 'check_handwriting'?: boolean;
1002
1021
  }
1003
1022
  /**
1004
1023
  *
@@ -1974,6 +1993,12 @@ export interface ParkingDetailRedeemBody {
1974
1993
  * @memberof ParkingDetailRedeemBody
1975
1994
  */
1976
1995
  'source'?: ParkingDetailRedeemBodySourceEnum;
1996
+ /**
1997
+ *
1998
+ * @type {string}
1999
+ * @memberof ParkingDetailRedeemBody
2000
+ */
2001
+ 'counter'?: string;
1977
2002
  }
1978
2003
  export declare const ParkingDetailRedeemBodySourceEnum: {
1979
2004
  readonly Cms: "cms";
@@ -2318,12 +2343,6 @@ export interface Receipt {
2318
2343
  * @memberof Receipt
2319
2344
  */
2320
2345
  'counter'?: string;
2321
- /**
2322
- *
2323
- * @type {boolean}
2324
- * @memberof Receipt
2325
- */
2326
- 'check_handwriting'?: boolean;
2327
2346
  /**
2328
2347
  *
2329
2348
  * @type {string}
@@ -3182,6 +3201,12 @@ export interface UpdateReceiptBody {
3182
3201
  * @memberof UpdateReceiptBody
3183
3202
  */
3184
3203
  'counter'?: string;
3204
+ /**
3205
+ *
3206
+ * @type {string}
3207
+ * @memberof UpdateReceiptBody
3208
+ */
3209
+ 'email'?: string;
3185
3210
  }
3186
3211
  /**
3187
3212
  *
@@ -3634,10 +3659,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3634
3659
  /**
3635
3660
  *
3636
3661
  * @param {string} id
3662
+ * @param {ApproveReceiptBody} approveReceiptBody
3637
3663
  * @param {*} [options] Override http request option.
3638
3664
  * @throws {RequiredError}
3639
3665
  */
3640
- receiptApproveReceipt: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3666
+ receiptApproveReceipt: (id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3641
3667
  /**
3642
3668
  *
3643
3669
  * @param {CreateReceiptBody} createReceiptBody
@@ -4028,10 +4054,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4028
4054
  /**
4029
4055
  *
4030
4056
  * @param {string} id
4057
+ * @param {ApproveReceiptBody} approveReceiptBody
4031
4058
  * @param {*} [options] Override http request option.
4032
4059
  * @throws {RequiredError}
4033
4060
  */
4034
- receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
4061
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
4035
4062
  /**
4036
4063
  *
4037
4064
  * @param {CreateReceiptBody} createReceiptBody
@@ -4422,10 +4449,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4422
4449
  /**
4423
4450
  *
4424
4451
  * @param {string} id
4452
+ * @param {ApproveReceiptBody} approveReceiptBody
4425
4453
  * @param {*} [options] Override http request option.
4426
4454
  * @throws {RequiredError}
4427
4455
  */
4428
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean>;
4456
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: any): AxiosPromise<boolean>;
4429
4457
  /**
4430
4458
  *
4431
4459
  * @param {CreateReceiptBody} createReceiptBody
@@ -4847,11 +4875,12 @@ export declare class DefaultApi extends BaseAPI {
4847
4875
  /**
4848
4876
  *
4849
4877
  * @param {string} id
4878
+ * @param {ApproveReceiptBody} approveReceiptBody
4850
4879
  * @param {*} [options] Override http request option.
4851
4880
  * @throws {RequiredError}
4852
4881
  * @memberof DefaultApi
4853
4882
  */
4854
- receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
4883
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
4855
4884
  /**
4856
4885
  *
4857
4886
  * @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.67",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"