ob-parking-sdk 0.0.44 → 0.0.46

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
@@ -388,12 +388,6 @@ export interface CmsParkingDetailRedeemBody {
388
388
  * @memberof CmsParkingDetailRedeemBody
389
389
  */
390
390
  'type': RedeemType;
391
- /**
392
- *
393
- * @type {string}
394
- * @memberof CmsParkingDetailRedeemBody
395
- */
396
- 'source'?: CmsParkingDetailRedeemBodySourceEnum;
397
391
  /**
398
392
  *
399
393
  * @type {string}
@@ -402,11 +396,6 @@ export interface CmsParkingDetailRedeemBody {
402
396
  'custom_code'?: string;
403
397
  }
404
398
 
405
- export const CmsParkingDetailRedeemBodySourceEnum = {
406
- Cms: 'cms'
407
- } as const;
408
-
409
- export type CmsParkingDetailRedeemBodySourceEnum = typeof CmsParkingDetailRedeemBodySourceEnum[keyof typeof CmsParkingDetailRedeemBodySourceEnum];
410
399
 
411
400
  /**
412
401
  *
@@ -611,12 +600,6 @@ export interface CreateReceiptBody {
611
600
  * @memberof CreateReceiptBody
612
601
  */
613
602
  'email'?: string;
614
- /**
615
- *
616
- * @type {string}
617
- * @memberof CreateReceiptBody
618
- */
619
- 'counter'?: string;
620
603
  }
621
604
  /**
622
605
  *
@@ -1723,19 +1706,8 @@ export interface ParkingDetailRedeemBody {
1723
1706
  * @memberof ParkingDetailRedeemBody
1724
1707
  */
1725
1708
  'type': RedeemType;
1726
- /**
1727
- *
1728
- * @type {string}
1729
- * @memberof ParkingDetailRedeemBody
1730
- */
1731
- 'source'?: ParkingDetailRedeemBodySourceEnum;
1732
1709
  }
1733
1710
 
1734
- export const ParkingDetailRedeemBodySourceEnum = {
1735
- Cms: 'cms'
1736
- } as const;
1737
-
1738
- export type ParkingDetailRedeemBodySourceEnum = typeof ParkingDetailRedeemBodySourceEnum[keyof typeof ParkingDetailRedeemBodySourceEnum];
1739
1711
 
1740
1712
  /**
1741
1713
  *
@@ -2022,12 +1994,6 @@ export interface Receipt {
2022
1994
  * @memberof Receipt
2023
1995
  */
2024
1996
  'merchant_name'?: string;
2025
- /**
2026
- *
2027
- * @type {string}
2028
- * @memberof Receipt
2029
- */
2030
- 'shop_name'?: string;
2031
1997
  /**
2032
1998
  *
2033
1999
  * @type {string}
@@ -2076,12 +2042,6 @@ export interface Receipt {
2076
2042
  * @memberof Receipt
2077
2043
  */
2078
2044
  'content'?: ReceiptContent;
2079
- /**
2080
- *
2081
- * @type {string}
2082
- * @memberof Receipt
2083
- */
2084
- 'counter'?: string;
2085
2045
  /**
2086
2046
  *
2087
2047
  * @type {string}
@@ -2159,6 +2119,122 @@ export interface ReceiptContentMatchedStore {
2159
2119
  */
2160
2120
  'id': string;
2161
2121
  }
2122
+ /**
2123
+ *
2124
+ * @export
2125
+ * @interface ReceiptData
2126
+ */
2127
+ export interface ReceiptData {
2128
+ /**
2129
+ *
2130
+ * @type {string}
2131
+ * @memberof ReceiptData
2132
+ */
2133
+ 'merchant_name': string | null;
2134
+ /**
2135
+ *
2136
+ * @type {string}
2137
+ * @memberof ReceiptData
2138
+ */
2139
+ 'transaction_date': string | null;
2140
+ /**
2141
+ *
2142
+ * @type {string}
2143
+ * @memberof ReceiptData
2144
+ */
2145
+ 'transaction_time': string | null;
2146
+ /**
2147
+ *
2148
+ * @type {Array<ReceiptItem>}
2149
+ * @memberof ReceiptData
2150
+ */
2151
+ 'items': Array<ReceiptItem>;
2152
+ /**
2153
+ *
2154
+ * @type {string}
2155
+ * @memberof ReceiptData
2156
+ */
2157
+ 'total': string;
2158
+ /**
2159
+ *
2160
+ * @type {string}
2161
+ * @memberof ReceiptData
2162
+ */
2163
+ 'tax_id': string | null;
2164
+ /**
2165
+ *
2166
+ * @type {string}
2167
+ * @memberof ReceiptData
2168
+ */
2169
+ 'receipt_no': string;
2170
+ /**
2171
+ *
2172
+ * @type {string}
2173
+ * @memberof ReceiptData
2174
+ */
2175
+ 'status': string;
2176
+ /**
2177
+ *
2178
+ * @type {string}
2179
+ * @memberof ReceiptData
2180
+ */
2181
+ 'address': string | null;
2182
+ /**
2183
+ *
2184
+ * @type {string}
2185
+ * @memberof ReceiptData
2186
+ */
2187
+ 'unit_no': string | null;
2188
+ /**
2189
+ *
2190
+ * @type {string}
2191
+ * @memberof ReceiptData
2192
+ */
2193
+ 'mall_name': string | null;
2194
+ /**
2195
+ *
2196
+ * @type {Array<string>}
2197
+ * @memberof ReceiptData
2198
+ */
2199
+ 'remarks': Array<string>;
2200
+ /**
2201
+ *
2202
+ * @type {string}
2203
+ * @memberof ReceiptData
2204
+ */
2205
+ 'hashed_receipt': string;
2206
+ /**
2207
+ *
2208
+ * @type {string}
2209
+ * @memberof ReceiptData
2210
+ */
2211
+ 'message': string;
2212
+ }
2213
+ /**
2214
+ *
2215
+ * @export
2216
+ * @interface ReceiptItem
2217
+ */
2218
+ export interface ReceiptItem {
2219
+ /**
2220
+ *
2221
+ * @type {string}
2222
+ * @memberof ReceiptItem
2223
+ */
2224
+ 'description': string;
2225
+ /**
2226
+ *
2227
+ * @type {number}
2228
+ * @memberof ReceiptItem
2229
+ */
2230
+ 'quantity': number | null;
2231
+ /**
2232
+ *
2233
+ * @type {string}
2234
+ * @memberof ReceiptItem
2235
+ */
2236
+ 'total_price': string | null;
2237
+ }
2162
2238
  /**
2163
2239
  *
2164
2240
  * @export
@@ -2548,12 +2624,6 @@ export interface UpdateReceiptBody {
2548
2624
  * @memberof UpdateReceiptBody
2549
2625
  */
2550
2626
  'merchant_name'?: string;
2551
- /**
2552
- *
2553
- * @type {string}
2554
- * @memberof UpdateReceiptBody
2555
- */
2556
- 'shop_name'?: string;
2557
2627
  /**
2558
2628
  *
2559
2629
  * @type {string}
@@ -2679,6 +2749,19 @@ export interface UpsertCampaignBody {
2679
2749
  */
2680
2750
  '4': FinalCampaignBody;
2681
2751
  }
2752
+ /**
2753
+ *
2754
+ * @export
2755
+ * @interface ValidateReceiptImageBody
2756
+ */
2757
+ export interface ValidateReceiptImageBody {
2758
+ /**
2759
+ *
2760
+ * @type {string}
2761
+ * @memberof ValidateReceiptImageBody
2762
+ */
2763
+ 'source': string;
2764
+ }
2682
2765
 
2683
2766
  /**
2684
2767
  * DefaultApi - axios parameter creator
@@ -4080,6 +4163,46 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4080
4163
  options: localVarRequestOptions,
4081
4164
  };
4082
4165
  },
4166
+ /**
4167
+ *
4168
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
4169
+ * @param {string} [xAccountId]
4170
+ * @param {*} [options] Override http request option.
4171
+ * @throws {RequiredError}
4172
+ */
4173
+ receiptValidateOcrReceiptImage: async (validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4174
+ // verify required parameter 'validateReceiptImageBody' is not null or undefined
4175
+ assertParamExists('receiptValidateOcrReceiptImage', 'validateReceiptImageBody', validateReceiptImageBody)
4176
+ const localVarPath = `/receipt/validate-ocr-receipt-image`;
4177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4179
+ let baseOptions;
4180
+ if (configuration) {
4181
+ baseOptions = configuration.baseOptions;
4182
+ }
4183
+
4184
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4185
+ const localVarHeaderParameter = {} as any;
4186
+ const localVarQueryParameter = {} as any;
4187
+
4188
+ if (xAccountId != null) {
4189
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
4190
+ }
4191
+
4192
+
4193
+
4194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4195
+
4196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4199
+ localVarRequestOptions.data = serializeDataIfNeeded(validateReceiptImageBody, localVarRequestOptions, configuration)
4200
+
4201
+ return {
4202
+ url: toPathString(localVarUrlObj),
4203
+ options: localVarRequestOptions,
4204
+ };
4205
+ },
4083
4206
  /**
4084
4207
  *
4085
4208
  * @param {*} [options] Override http request option.
@@ -4502,6 +4625,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4502
4625
  const localVarAxiosArgs = await localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
4503
4626
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4504
4627
  },
4628
+ /**
4629
+ *
4630
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
4631
+ * @param {string} [xAccountId]
4632
+ * @param {*} [options] Override http request option.
4633
+ * @throws {RequiredError}
4634
+ */
4635
+ async receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReceiptData>> {
4636
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options);
4637
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4638
+ },
4505
4639
  /**
4506
4640
  *
4507
4641
  * @param {*} [options] Override http request option.
@@ -4871,6 +5005,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4871
5005
  receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean> {
4872
5006
  return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
4873
5007
  },
5008
+ /**
5009
+ *
5010
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
5011
+ * @param {string} [xAccountId]
5012
+ * @param {*} [options] Override http request option.
5013
+ * @throws {RequiredError}
5014
+ */
5015
+ receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: any): AxiosPromise<ReceiptData> {
5016
+ return localVarFp.receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options).then((request) => request(axios, basePath));
5017
+ },
4874
5018
  /**
4875
5019
  *
4876
5020
  * @param {*} [options] Override http request option.
@@ -5305,6 +5449,18 @@ export class DefaultApi extends BaseAPI {
5305
5449
  return DefaultApiFp(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
5306
5450
  }
5307
5451
 
5452
+ /**
5453
+ *
5454
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
5455
+ * @param {string} [xAccountId]
5456
+ * @param {*} [options] Override http request option.
5457
+ * @throws {RequiredError}
5458
+ * @memberof DefaultApi
5459
+ */
5460
+ public receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig) {
5461
+ return DefaultApiFp(this.configuration).receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
5462
+ }
5463
+
5308
5464
  /**
5309
5465
  *
5310
5466
  * @param {*} [options] Override http request option.
package/dist/api/api.d.ts CHANGED
@@ -368,12 +368,6 @@ export interface CmsParkingDetailRedeemBody {
368
368
  * @memberof CmsParkingDetailRedeemBody
369
369
  */
370
370
  'type': RedeemType;
371
- /**
372
- *
373
- * @type {string}
374
- * @memberof CmsParkingDetailRedeemBody
375
- */
376
- 'source'?: CmsParkingDetailRedeemBodySourceEnum;
377
371
  /**
378
372
  *
379
373
  * @type {string}
@@ -381,10 +375,6 @@ export interface CmsParkingDetailRedeemBody {
381
375
  */
382
376
  'custom_code'?: string;
383
377
  }
384
- export declare const CmsParkingDetailRedeemBodySourceEnum: {
385
- readonly Cms: "cms";
386
- };
387
- export type CmsParkingDetailRedeemBodySourceEnum = typeof CmsParkingDetailRedeemBodySourceEnum[keyof typeof CmsParkingDetailRedeemBodySourceEnum];
388
378
  /**
389
379
  *
390
380
  * @export
@@ -588,12 +578,6 @@ export interface CreateReceiptBody {
588
578
  * @memberof CreateReceiptBody
589
579
  */
590
580
  'email'?: string;
591
- /**
592
- *
593
- * @type {string}
594
- * @memberof CreateReceiptBody
595
- */
596
- 'counter'?: string;
597
581
  }
598
582
  /**
599
583
  *
@@ -1692,17 +1676,7 @@ export interface ParkingDetailRedeemBody {
1692
1676
  * @memberof ParkingDetailRedeemBody
1693
1677
  */
1694
1678
  'type': RedeemType;
1695
- /**
1696
- *
1697
- * @type {string}
1698
- * @memberof ParkingDetailRedeemBody
1699
- */
1700
- 'source'?: ParkingDetailRedeemBodySourceEnum;
1701
1679
  }
1702
- export declare const ParkingDetailRedeemBodySourceEnum: {
1703
- readonly Cms: "cms";
1704
- };
1705
- export type ParkingDetailRedeemBodySourceEnum = typeof ParkingDetailRedeemBodySourceEnum[keyof typeof ParkingDetailRedeemBodySourceEnum];
1706
1680
  /**
1707
1681
  *
1708
1682
  * @export
@@ -1982,12 +1956,6 @@ export interface Receipt {
1982
1956
  * @memberof Receipt
1983
1957
  */
1984
1958
  'merchant_name'?: string;
1985
- /**
1986
- *
1987
- * @type {string}
1988
- * @memberof Receipt
1989
- */
1990
- 'shop_name'?: string;
1991
1959
  /**
1992
1960
  *
1993
1961
  * @type {string}
@@ -2036,12 +2004,6 @@ export interface Receipt {
2036
2004
  * @memberof Receipt
2037
2005
  */
2038
2006
  'content'?: ReceiptContent;
2039
- /**
2040
- *
2041
- * @type {string}
2042
- * @memberof Receipt
2043
- */
2044
- 'counter'?: string;
2045
2007
  /**
2046
2008
  *
2047
2009
  * @type {string}
@@ -2117,6 +2079,122 @@ export interface ReceiptContentMatchedStore {
2117
2079
  */
2118
2080
  'id': string;
2119
2081
  }
2082
+ /**
2083
+ *
2084
+ * @export
2085
+ * @interface ReceiptData
2086
+ */
2087
+ export interface ReceiptData {
2088
+ /**
2089
+ *
2090
+ * @type {string}
2091
+ * @memberof ReceiptData
2092
+ */
2093
+ 'merchant_name': string | null;
2094
+ /**
2095
+ *
2096
+ * @type {string}
2097
+ * @memberof ReceiptData
2098
+ */
2099
+ 'transaction_date': string | null;
2100
+ /**
2101
+ *
2102
+ * @type {string}
2103
+ * @memberof ReceiptData
2104
+ */
2105
+ 'transaction_time': string | null;
2106
+ /**
2107
+ *
2108
+ * @type {Array<ReceiptItem>}
2109
+ * @memberof ReceiptData
2110
+ */
2111
+ 'items': Array<ReceiptItem>;
2112
+ /**
2113
+ *
2114
+ * @type {string}
2115
+ * @memberof ReceiptData
2116
+ */
2117
+ 'total': string;
2118
+ /**
2119
+ *
2120
+ * @type {string}
2121
+ * @memberof ReceiptData
2122
+ */
2123
+ 'tax_id': string | null;
2124
+ /**
2125
+ *
2126
+ * @type {string}
2127
+ * @memberof ReceiptData
2128
+ */
2129
+ 'receipt_no': string;
2130
+ /**
2131
+ *
2132
+ * @type {string}
2133
+ * @memberof ReceiptData
2134
+ */
2135
+ 'status': string;
2136
+ /**
2137
+ *
2138
+ * @type {string}
2139
+ * @memberof ReceiptData
2140
+ */
2141
+ 'address': string | null;
2142
+ /**
2143
+ *
2144
+ * @type {string}
2145
+ * @memberof ReceiptData
2146
+ */
2147
+ 'unit_no': string | null;
2148
+ /**
2149
+ *
2150
+ * @type {string}
2151
+ * @memberof ReceiptData
2152
+ */
2153
+ 'mall_name': string | null;
2154
+ /**
2155
+ *
2156
+ * @type {Array<string>}
2157
+ * @memberof ReceiptData
2158
+ */
2159
+ 'remarks': Array<string>;
2160
+ /**
2161
+ *
2162
+ * @type {string}
2163
+ * @memberof ReceiptData
2164
+ */
2165
+ 'hashed_receipt': string;
2166
+ /**
2167
+ *
2168
+ * @type {string}
2169
+ * @memberof ReceiptData
2170
+ */
2171
+ 'message': string;
2172
+ }
2173
+ /**
2174
+ *
2175
+ * @export
2176
+ * @interface ReceiptItem
2177
+ */
2178
+ export interface ReceiptItem {
2179
+ /**
2180
+ *
2181
+ * @type {string}
2182
+ * @memberof ReceiptItem
2183
+ */
2184
+ 'description': string;
2185
+ /**
2186
+ *
2187
+ * @type {number}
2188
+ * @memberof ReceiptItem
2189
+ */
2190
+ 'quantity': number | null;
2191
+ /**
2192
+ *
2193
+ * @type {string}
2194
+ * @memberof ReceiptItem
2195
+ */
2196
+ 'total_price': string | null;
2197
+ }
2120
2198
  /**
2121
2199
  *
2122
2200
  * @export
@@ -2498,12 +2576,6 @@ export interface UpdateReceiptBody {
2498
2576
  * @memberof UpdateReceiptBody
2499
2577
  */
2500
2578
  'merchant_name'?: string;
2501
- /**
2502
- *
2503
- * @type {string}
2504
- * @memberof UpdateReceiptBody
2505
- */
2506
- 'shop_name'?: string;
2507
2579
  /**
2508
2580
  *
2509
2581
  * @type {string}
@@ -2627,6 +2699,19 @@ export interface UpsertCampaignBody {
2627
2699
  */
2628
2700
  '4': FinalCampaignBody;
2629
2701
  }
2702
+ /**
2703
+ *
2704
+ * @export
2705
+ * @interface ValidateReceiptImageBody
2706
+ */
2707
+ export interface ValidateReceiptImageBody {
2708
+ /**
2709
+ *
2710
+ * @type {string}
2711
+ * @memberof ValidateReceiptImageBody
2712
+ */
2713
+ 'source': string;
2714
+ }
2630
2715
  /**
2631
2716
  * DefaultApi - axios parameter creator
2632
2717
  * @export
@@ -2916,6 +3001,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
2916
3001
  * @throws {RequiredError}
2917
3002
  */
2918
3003
  receiptUpdateReceipt: (updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3004
+ /**
3005
+ *
3006
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
3007
+ * @param {string} [xAccountId]
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ */
3011
+ receiptValidateOcrReceiptImage: (validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
2919
3012
  /**
2920
3013
  *
2921
3014
  * @param {*} [options] Override http request option.
@@ -3212,6 +3305,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3212
3305
  * @throws {RequiredError}
3213
3306
  */
3214
3307
  receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
3308
+ /**
3309
+ *
3310
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
3311
+ * @param {string} [xAccountId]
3312
+ * @param {*} [options] Override http request option.
3313
+ * @throws {RequiredError}
3314
+ */
3315
+ receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReceiptData>>;
3215
3316
  /**
3216
3317
  *
3217
3318
  * @param {*} [options] Override http request option.
@@ -3508,6 +3609,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3508
3609
  * @throws {RequiredError}
3509
3610
  */
3510
3611
  receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean>;
3612
+ /**
3613
+ *
3614
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
3615
+ * @param {string} [xAccountId]
3616
+ * @param {*} [options] Override http request option.
3617
+ * @throws {RequiredError}
3618
+ */
3619
+ receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: any): AxiosPromise<ReceiptData>;
3511
3620
  /**
3512
3621
  *
3513
3622
  * @param {*} [options] Override http request option.
@@ -3839,6 +3948,15 @@ export declare class DefaultApi extends BaseAPI {
3839
3948
  * @memberof DefaultApi
3840
3949
  */
3841
3950
  receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3951
+ /**
3952
+ *
3953
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
3954
+ * @param {string} [xAccountId]
3955
+ * @param {*} [options] Override http request option.
3956
+ * @throws {RequiredError}
3957
+ * @memberof DefaultApi
3958
+ */
3959
+ receiptValidateOcrReceiptImage(validateReceiptImageBody: ValidateReceiptImageBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ReceiptData, any>>;
3842
3960
  /**
3843
3961
  *
3844
3962
  * @param {*} [options] Override http request option.
package/dist/api/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.RedeemType = exports.ReceiptStatus = exports.ParkingDetailStatus = exports.ParkingDetailRedeemBodySourceEnum = exports.CmsParkingDetailRedeemBodySourceEnum = exports.AddParkingTicketType = exports.AddParkingTicketIdType = void 0;
28
+ exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.RedeemType = exports.ReceiptStatus = exports.ParkingDetailStatus = exports.AddParkingTicketType = exports.AddParkingTicketIdType = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -52,12 +52,6 @@ exports.AddParkingTicketType = {
52
52
  Cms: 'CMS',
53
53
  App: 'APP'
54
54
  };
55
- exports.CmsParkingDetailRedeemBodySourceEnum = {
56
- Cms: 'cms'
57
- };
58
- exports.ParkingDetailRedeemBodySourceEnum = {
59
- Cms: 'cms'
60
- };
61
55
  /**
62
56
  *
63
57
  * @export
@@ -1254,6 +1248,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1254
1248
  options: localVarRequestOptions,
1255
1249
  };
1256
1250
  }),
1251
+ /**
1252
+ *
1253
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
1254
+ * @param {string} [xAccountId]
1255
+ * @param {*} [options] Override http request option.
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ receiptValidateOcrReceiptImage: (validateReceiptImageBody, xAccountId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1259
+ // verify required parameter 'validateReceiptImageBody' is not null or undefined
1260
+ (0, common_1.assertParamExists)('receiptValidateOcrReceiptImage', 'validateReceiptImageBody', validateReceiptImageBody);
1261
+ const localVarPath = `/receipt/validate-ocr-receipt-image`;
1262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1263
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1264
+ let baseOptions;
1265
+ if (configuration) {
1266
+ baseOptions = configuration.baseOptions;
1267
+ }
1268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1269
+ const localVarHeaderParameter = {};
1270
+ const localVarQueryParameter = {};
1271
+ if (xAccountId != null) {
1272
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
1273
+ }
1274
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1277
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validateReceiptImageBody, localVarRequestOptions, configuration);
1279
+ return {
1280
+ url: (0, common_1.toPathString)(localVarUrlObj),
1281
+ options: localVarRequestOptions,
1282
+ };
1283
+ }),
1257
1284
  /**
1258
1285
  *
1259
1286
  * @param {*} [options] Override http request option.
@@ -1737,6 +1764,19 @@ const DefaultApiFp = function (configuration) {
1737
1764
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1738
1765
  });
1739
1766
  },
1767
+ /**
1768
+ *
1769
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
1770
+ * @param {string} [xAccountId]
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options) {
1775
+ return __awaiter(this, void 0, void 0, function* () {
1776
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options);
1777
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1778
+ });
1779
+ },
1740
1780
  /**
1741
1781
  *
1742
1782
  * @param {*} [options] Override http request option.
@@ -2108,6 +2148,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
2108
2148
  receiptUpdateReceipt(updateReceiptBody, options) {
2109
2149
  return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
2110
2150
  },
2151
+ /**
2152
+ *
2153
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
2154
+ * @param {string} [xAccountId]
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ */
2158
+ receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options) {
2159
+ return localVarFp.receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options).then((request) => request(axios, basePath));
2160
+ },
2111
2161
  /**
2112
2162
  *
2113
2163
  * @param {*} [options] Override http request option.
@@ -2509,6 +2559,17 @@ class DefaultApi extends base_1.BaseAPI {
2509
2559
  receiptUpdateReceipt(updateReceiptBody, options) {
2510
2560
  return (0, exports.DefaultApiFp)(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
2511
2561
  }
2562
+ /**
2563
+ *
2564
+ * @param {ValidateReceiptImageBody} validateReceiptImageBody
2565
+ * @param {string} [xAccountId]
2566
+ * @param {*} [options] Override http request option.
2567
+ * @throws {RequiredError}
2568
+ * @memberof DefaultApi
2569
+ */
2570
+ receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options) {
2571
+ return (0, exports.DefaultApiFp)(this.configuration).receiptValidateOcrReceiptImage(validateReceiptImageBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
2572
+ }
2512
2573
  /**
2513
2574
  *
2514
2575
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-parking-sdk",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "API interfaces for OB PARKING",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"