ob-parking-sdk 0.0.45 → 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 +202 -30
- package/dist/api/api.d.ts +162 -30
- package/dist/api/api.js +67 -0
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -600,18 +600,6 @@ export interface CreateReceiptBody {
|
|
|
600
600
|
* @memberof CreateReceiptBody
|
|
601
601
|
*/
|
|
602
602
|
'email'?: string;
|
|
603
|
-
/**
|
|
604
|
-
*
|
|
605
|
-
* @type {string}
|
|
606
|
-
* @memberof CreateReceiptBody
|
|
607
|
-
*/
|
|
608
|
-
'counter'?: string;
|
|
609
|
-
/**
|
|
610
|
-
*
|
|
611
|
-
* @type {boolean}
|
|
612
|
-
* @memberof CreateReceiptBody
|
|
613
|
-
*/
|
|
614
|
-
'checkHandwriting'?: boolean;
|
|
615
603
|
}
|
|
616
604
|
/**
|
|
617
605
|
*
|
|
@@ -2006,12 +1994,6 @@ export interface Receipt {
|
|
|
2006
1994
|
* @memberof Receipt
|
|
2007
1995
|
*/
|
|
2008
1996
|
'merchant_name'?: string;
|
|
2009
|
-
/**
|
|
2010
|
-
*
|
|
2011
|
-
* @type {string}
|
|
2012
|
-
* @memberof Receipt
|
|
2013
|
-
*/
|
|
2014
|
-
'shop_name'?: string;
|
|
2015
1997
|
/**
|
|
2016
1998
|
*
|
|
2017
1999
|
* @type {string}
|
|
@@ -2060,12 +2042,6 @@ export interface Receipt {
|
|
|
2060
2042
|
* @memberof Receipt
|
|
2061
2043
|
*/
|
|
2062
2044
|
'content'?: ReceiptContent;
|
|
2063
|
-
/**
|
|
2064
|
-
*
|
|
2065
|
-
* @type {string}
|
|
2066
|
-
* @memberof Receipt
|
|
2067
|
-
*/
|
|
2068
|
-
'counter'?: string;
|
|
2069
2045
|
/**
|
|
2070
2046
|
*
|
|
2071
2047
|
* @type {string}
|
|
@@ -2143,6 +2119,122 @@ export interface ReceiptContentMatchedStore {
|
|
|
2143
2119
|
*/
|
|
2144
2120
|
'id': string;
|
|
2145
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
|
+
}
|
|
2146
2238
|
/**
|
|
2147
2239
|
*
|
|
2148
2240
|
* @export
|
|
@@ -2532,12 +2624,6 @@ export interface UpdateReceiptBody {
|
|
|
2532
2624
|
* @memberof UpdateReceiptBody
|
|
2533
2625
|
*/
|
|
2534
2626
|
'merchant_name'?: string;
|
|
2535
|
-
/**
|
|
2536
|
-
*
|
|
2537
|
-
* @type {string}
|
|
2538
|
-
* @memberof UpdateReceiptBody
|
|
2539
|
-
*/
|
|
2540
|
-
'shop_name'?: string;
|
|
2541
2627
|
/**
|
|
2542
2628
|
*
|
|
2543
2629
|
* @type {string}
|
|
@@ -2663,6 +2749,19 @@ export interface UpsertCampaignBody {
|
|
|
2663
2749
|
*/
|
|
2664
2750
|
'4': FinalCampaignBody;
|
|
2665
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
|
+
}
|
|
2666
2765
|
|
|
2667
2766
|
/**
|
|
2668
2767
|
* DefaultApi - axios parameter creator
|
|
@@ -4064,6 +4163,46 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4064
4163
|
options: localVarRequestOptions,
|
|
4065
4164
|
};
|
|
4066
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
|
+
},
|
|
4067
4206
|
/**
|
|
4068
4207
|
*
|
|
4069
4208
|
* @param {*} [options] Override http request option.
|
|
@@ -4486,6 +4625,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4486
4625
|
const localVarAxiosArgs = await localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
|
|
4487
4626
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4488
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
|
+
},
|
|
4489
4639
|
/**
|
|
4490
4640
|
*
|
|
4491
4641
|
* @param {*} [options] Override http request option.
|
|
@@ -4855,6 +5005,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4855
5005
|
receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean> {
|
|
4856
5006
|
return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
|
|
4857
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
|
+
},
|
|
4858
5018
|
/**
|
|
4859
5019
|
*
|
|
4860
5020
|
* @param {*} [options] Override http request option.
|
|
@@ -5289,6 +5449,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
5289
5449
|
return DefaultApiFp(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
5290
5450
|
}
|
|
5291
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
|
+
|
|
5292
5464
|
/**
|
|
5293
5465
|
*
|
|
5294
5466
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.d.ts
CHANGED
|
@@ -578,18 +578,6 @@ export interface CreateReceiptBody {
|
|
|
578
578
|
* @memberof CreateReceiptBody
|
|
579
579
|
*/
|
|
580
580
|
'email'?: string;
|
|
581
|
-
/**
|
|
582
|
-
*
|
|
583
|
-
* @type {string}
|
|
584
|
-
* @memberof CreateReceiptBody
|
|
585
|
-
*/
|
|
586
|
-
'counter'?: string;
|
|
587
|
-
/**
|
|
588
|
-
*
|
|
589
|
-
* @type {boolean}
|
|
590
|
-
* @memberof CreateReceiptBody
|
|
591
|
-
*/
|
|
592
|
-
'checkHandwriting'?: boolean;
|
|
593
581
|
}
|
|
594
582
|
/**
|
|
595
583
|
*
|
|
@@ -1968,12 +1956,6 @@ export interface Receipt {
|
|
|
1968
1956
|
* @memberof Receipt
|
|
1969
1957
|
*/
|
|
1970
1958
|
'merchant_name'?: string;
|
|
1971
|
-
/**
|
|
1972
|
-
*
|
|
1973
|
-
* @type {string}
|
|
1974
|
-
* @memberof Receipt
|
|
1975
|
-
*/
|
|
1976
|
-
'shop_name'?: string;
|
|
1977
1959
|
/**
|
|
1978
1960
|
*
|
|
1979
1961
|
* @type {string}
|
|
@@ -2022,12 +2004,6 @@ export interface Receipt {
|
|
|
2022
2004
|
* @memberof Receipt
|
|
2023
2005
|
*/
|
|
2024
2006
|
'content'?: ReceiptContent;
|
|
2025
|
-
/**
|
|
2026
|
-
*
|
|
2027
|
-
* @type {string}
|
|
2028
|
-
* @memberof Receipt
|
|
2029
|
-
*/
|
|
2030
|
-
'counter'?: string;
|
|
2031
2007
|
/**
|
|
2032
2008
|
*
|
|
2033
2009
|
* @type {string}
|
|
@@ -2103,6 +2079,122 @@ export interface ReceiptContentMatchedStore {
|
|
|
2103
2079
|
*/
|
|
2104
2080
|
'id': string;
|
|
2105
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
|
+
}
|
|
2106
2198
|
/**
|
|
2107
2199
|
*
|
|
2108
2200
|
* @export
|
|
@@ -2484,12 +2576,6 @@ export interface UpdateReceiptBody {
|
|
|
2484
2576
|
* @memberof UpdateReceiptBody
|
|
2485
2577
|
*/
|
|
2486
2578
|
'merchant_name'?: string;
|
|
2487
|
-
/**
|
|
2488
|
-
*
|
|
2489
|
-
* @type {string}
|
|
2490
|
-
* @memberof UpdateReceiptBody
|
|
2491
|
-
*/
|
|
2492
|
-
'shop_name'?: string;
|
|
2493
2579
|
/**
|
|
2494
2580
|
*
|
|
2495
2581
|
* @type {string}
|
|
@@ -2613,6 +2699,19 @@ export interface UpsertCampaignBody {
|
|
|
2613
2699
|
*/
|
|
2614
2700
|
'4': FinalCampaignBody;
|
|
2615
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
|
+
}
|
|
2616
2715
|
/**
|
|
2617
2716
|
* DefaultApi - axios parameter creator
|
|
2618
2717
|
* @export
|
|
@@ -2902,6 +3001,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
2902
3001
|
* @throws {RequiredError}
|
|
2903
3002
|
*/
|
|
2904
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>;
|
|
2905
3012
|
/**
|
|
2906
3013
|
*
|
|
2907
3014
|
* @param {*} [options] Override http request option.
|
|
@@ -3198,6 +3305,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3198
3305
|
* @throws {RequiredError}
|
|
3199
3306
|
*/
|
|
3200
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>>;
|
|
3201
3316
|
/**
|
|
3202
3317
|
*
|
|
3203
3318
|
* @param {*} [options] Override http request option.
|
|
@@ -3494,6 +3609,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3494
3609
|
* @throws {RequiredError}
|
|
3495
3610
|
*/
|
|
3496
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>;
|
|
3497
3620
|
/**
|
|
3498
3621
|
*
|
|
3499
3622
|
* @param {*} [options] Override http request option.
|
|
@@ -3825,6 +3948,15 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3825
3948
|
* @memberof DefaultApi
|
|
3826
3949
|
*/
|
|
3827
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>>;
|
|
3828
3960
|
/**
|
|
3829
3961
|
*
|
|
3830
3962
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.js
CHANGED
|
@@ -1248,6 +1248,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1248
1248
|
options: localVarRequestOptions,
|
|
1249
1249
|
};
|
|
1250
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
|
+
}),
|
|
1251
1284
|
/**
|
|
1252
1285
|
*
|
|
1253
1286
|
* @param {*} [options] Override http request option.
|
|
@@ -1731,6 +1764,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
1731
1764
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1732
1765
|
});
|
|
1733
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
|
+
},
|
|
1734
1780
|
/**
|
|
1735
1781
|
*
|
|
1736
1782
|
* @param {*} [options] Override http request option.
|
|
@@ -2102,6 +2148,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
2102
2148
|
receiptUpdateReceipt(updateReceiptBody, options) {
|
|
2103
2149
|
return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
|
|
2104
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
|
+
},
|
|
2105
2161
|
/**
|
|
2106
2162
|
*
|
|
2107
2163
|
* @param {*} [options] Override http request option.
|
|
@@ -2503,6 +2559,17 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
2503
2559
|
receiptUpdateReceipt(updateReceiptBody, options) {
|
|
2504
2560
|
return (0, exports.DefaultApiFp)(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
2505
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
|
+
}
|
|
2506
2573
|
/**
|
|
2507
2574
|
*
|
|
2508
2575
|
* @param {*} [options] Override http request option.
|