ob-parking-sdk 0.0.64 → 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}
@@ -2007,6 +2026,12 @@ export interface ParkingDetailRedeemBody {
2007
2026
  * @memberof ParkingDetailRedeemBody
2008
2027
  */
2009
2028
  'source'?: ParkingDetailRedeemBodySourceEnum;
2029
+ /**
2030
+ *
2031
+ * @type {string}
2032
+ * @memberof ParkingDetailRedeemBody
2033
+ */
2034
+ 'counter'?: string;
2010
2035
  }
2011
2036
 
2012
2037
  export const ParkingDetailRedeemBodySourceEnum = {
@@ -3232,6 +3257,12 @@ export interface UpdateReceiptBody {
3232
3257
  * @memberof UpdateReceiptBody
3233
3258
  */
3234
3259
  'counter'?: string;
3260
+ /**
3261
+ *
3262
+ * @type {string}
3263
+ * @memberof UpdateReceiptBody
3264
+ */
3265
+ 'email'?: string;
3235
3266
  }
3236
3267
 
3237
3268
 
@@ -4731,12 +4762,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4731
4762
  /**
4732
4763
  *
4733
4764
  * @param {string} id
4765
+ * @param {ApproveReceiptBody} approveReceiptBody
4734
4766
  * @param {*} [options] Override http request option.
4735
4767
  * @throws {RequiredError}
4736
4768
  */
4737
- receiptApproveReceipt: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4769
+ receiptApproveReceipt: async (id: string, approveReceiptBody: ApproveReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4738
4770
  // verify required parameter 'id' is not null or undefined
4739
4771
  assertParamExists('receiptApproveReceipt', 'id', id)
4772
+ // verify required parameter 'approveReceiptBody' is not null or undefined
4773
+ assertParamExists('receiptApproveReceipt', 'approveReceiptBody', approveReceiptBody)
4740
4774
  const localVarPath = `/receipt/approve-receipt/{id}`
4741
4775
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4742
4776
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4752,9 +4786,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4752
4786
 
4753
4787
 
4754
4788
 
4789
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4790
+
4755
4791
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4756
4792
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4757
4793
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4794
+ localVarRequestOptions.data = serializeDataIfNeeded(approveReceiptBody, localVarRequestOptions, configuration)
4758
4795
 
4759
4796
  return {
4760
4797
  url: toPathString(localVarUrlObj),
@@ -5698,11 +5735,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5698
5735
  /**
5699
5736
  *
5700
5737
  * @param {string} id
5738
+ * @param {ApproveReceiptBody} approveReceiptBody
5701
5739
  * @param {*} [options] Override http request option.
5702
5740
  * @throws {RequiredError}
5703
5741
  */
5704
- async receiptApproveReceipt(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5705
- 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);
5706
5744
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5707
5745
  },
5708
5746
  /**
@@ -6205,11 +6243,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6205
6243
  /**
6206
6244
  *
6207
6245
  * @param {string} id
6246
+ * @param {ApproveReceiptBody} approveReceiptBody
6208
6247
  * @param {*} [options] Override http request option.
6209
6248
  * @throws {RequiredError}
6210
6249
  */
6211
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean> {
6212
- 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));
6213
6252
  },
6214
6253
  /**
6215
6254
  *
@@ -6753,12 +6792,13 @@ export class DefaultApi extends BaseAPI {
6753
6792
  /**
6754
6793
  *
6755
6794
  * @param {string} id
6795
+ * @param {ApproveReceiptBody} approveReceiptBody
6756
6796
  * @param {*} [options] Override http request option.
6757
6797
  * @throws {RequiredError}
6758
6798
  * @memberof DefaultApi
6759
6799
  */
6760
- public receiptApproveReceipt(id: string, options?: AxiosRequestConfig) {
6761
- 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));
6762
6802
  }
6763
6803
 
6764
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}
@@ -1968,6 +1987,12 @@ export interface ParkingDetailRedeemBody {
1968
1987
  * @memberof ParkingDetailRedeemBody
1969
1988
  */
1970
1989
  'source'?: ParkingDetailRedeemBodySourceEnum;
1990
+ /**
1991
+ *
1992
+ * @type {string}
1993
+ * @memberof ParkingDetailRedeemBody
1994
+ */
1995
+ 'counter'?: string;
1971
1996
  }
1972
1997
  export declare const ParkingDetailRedeemBodySourceEnum: {
1973
1998
  readonly Cms: "cms";
@@ -3170,6 +3195,12 @@ export interface UpdateReceiptBody {
3170
3195
  * @memberof UpdateReceiptBody
3171
3196
  */
3172
3197
  'counter'?: string;
3198
+ /**
3199
+ *
3200
+ * @type {string}
3201
+ * @memberof UpdateReceiptBody
3202
+ */
3203
+ 'email'?: string;
3173
3204
  }
3174
3205
  /**
3175
3206
  *
@@ -3622,10 +3653,11 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3622
3653
  /**
3623
3654
  *
3624
3655
  * @param {string} id
3656
+ * @param {ApproveReceiptBody} approveReceiptBody
3625
3657
  * @param {*} [options] Override http request option.
3626
3658
  * @throws {RequiredError}
3627
3659
  */
3628
- receiptApproveReceipt: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3660
+ receiptApproveReceipt: (id: string, approveReceiptBody: ApproveReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3629
3661
  /**
3630
3662
  *
3631
3663
  * @param {CreateReceiptBody} createReceiptBody
@@ -4016,10 +4048,11 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
4016
4048
  /**
4017
4049
  *
4018
4050
  * @param {string} id
4051
+ * @param {ApproveReceiptBody} approveReceiptBody
4019
4052
  * @param {*} [options] Override http request option.
4020
4053
  * @throws {RequiredError}
4021
4054
  */
4022
- 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>>;
4023
4056
  /**
4024
4057
  *
4025
4058
  * @param {CreateReceiptBody} createReceiptBody
@@ -4410,10 +4443,11 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
4410
4443
  /**
4411
4444
  *
4412
4445
  * @param {string} id
4446
+ * @param {ApproveReceiptBody} approveReceiptBody
4413
4447
  * @param {*} [options] Override http request option.
4414
4448
  * @throws {RequiredError}
4415
4449
  */
4416
- receiptApproveReceipt(id: string, options?: any): AxiosPromise<boolean>;
4450
+ receiptApproveReceipt(id: string, approveReceiptBody: ApproveReceiptBody, options?: any): AxiosPromise<boolean>;
4417
4451
  /**
4418
4452
  *
4419
4453
  * @param {CreateReceiptBody} createReceiptBody
@@ -4835,11 +4869,12 @@ export declare class DefaultApi extends BaseAPI {
4835
4869
  /**
4836
4870
  *
4837
4871
  * @param {string} id
4872
+ * @param {ApproveReceiptBody} approveReceiptBody
4838
4873
  * @param {*} [options] Override http request option.
4839
4874
  * @throws {RequiredError}
4840
4875
  * @memberof DefaultApi
4841
4876
  */
4842
- 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>>;
4843
4878
  /**
4844
4879
  *
4845
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.64",
3
+ "version": "0.0.66",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"