tencentcloud-sdk-nodejs-ocr 4.0.591 → 4.0.593
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/CHANGELOG.md +675 -0
- package/SERVICE_CHANGELOG.md +897 -118
- package/package.json +1 -1
- package/products.md +37 -37
- package/src/services/ocr/v20181119/ocr_client.ts +42 -3
- package/src/services/ocr/v20181119/ocr_models.ts +2653 -242
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +8 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +2168 -200
@@ -15,6 +15,41 @@
|
|
15
15
|
* under the License.
|
16
16
|
*/
|
17
17
|
|
18
|
+
/**
|
19
|
+
* 非税收入条目
|
20
|
+
*/
|
21
|
+
export interface NonTaxItem {
|
22
|
+
/**
|
23
|
+
* 项目编码
|
24
|
+
*/
|
25
|
+
ItemID?: string
|
26
|
+
|
27
|
+
/**
|
28
|
+
* 项目名称
|
29
|
+
*/
|
30
|
+
Name?: string
|
31
|
+
|
32
|
+
/**
|
33
|
+
* 单位
|
34
|
+
*/
|
35
|
+
Unit?: string
|
36
|
+
|
37
|
+
/**
|
38
|
+
* 数量
|
39
|
+
*/
|
40
|
+
Quantity?: string
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 标准
|
44
|
+
*/
|
45
|
+
Standard?: string
|
46
|
+
|
47
|
+
/**
|
48
|
+
* 金额
|
49
|
+
*/
|
50
|
+
Total?: string
|
51
|
+
}
|
52
|
+
|
18
53
|
/**
|
19
54
|
* 运单识别结果
|
20
55
|
*/
|
@@ -70,6 +105,78 @@ export interface RecognizeOnlineTaxiItineraryOCRResponse {
|
|
70
105
|
RequestId?: string
|
71
106
|
}
|
72
107
|
|
108
|
+
/**
|
109
|
+
* 混贴票据单张发票识别信息
|
110
|
+
*/
|
111
|
+
export interface InvoiceItem {
|
112
|
+
/**
|
113
|
+
* 识别结果。
|
114
|
+
OK:表示识别成功;FailedOperation.UnsupportedInvioce:表示不支持识别;
|
115
|
+
FailedOperation.UnKnowError:表示识别失败;
|
116
|
+
其它错误码见各个票据接口的定义。
|
117
|
+
*/
|
118
|
+
Code: string
|
119
|
+
|
120
|
+
/**
|
121
|
+
* 识别出的图片所属的票据类型。
|
122
|
+
-1:未知类型
|
123
|
+
0:出租车发票
|
124
|
+
1:定额发票
|
125
|
+
2:火车票
|
126
|
+
3:增值税发票
|
127
|
+
5:机票行程单
|
128
|
+
8:通用机打发票
|
129
|
+
9:汽车票
|
130
|
+
10:轮船票
|
131
|
+
11:增值税发票(卷票)
|
132
|
+
12:购车发票
|
133
|
+
13:过路过桥费发票
|
134
|
+
15:非税发票
|
135
|
+
16:全电发票
|
136
|
+
*/
|
137
|
+
Type: number
|
138
|
+
|
139
|
+
/**
|
140
|
+
* 旋转后的图片四点坐标。
|
141
|
+
*/
|
142
|
+
Polygon: Polygon
|
143
|
+
|
144
|
+
/**
|
145
|
+
* 识别出的图片在混贴票据图片中的旋转角度。
|
146
|
+
*/
|
147
|
+
Angle: number
|
148
|
+
|
149
|
+
/**
|
150
|
+
* 识别到的内容。
|
151
|
+
*/
|
152
|
+
SingleInvoiceInfos: SingleInvoiceItem
|
153
|
+
|
154
|
+
/**
|
155
|
+
* 发票处于识别图片或PDF文件中的页教,默认从1开始。
|
156
|
+
*/
|
157
|
+
Page?: number
|
158
|
+
|
159
|
+
/**
|
160
|
+
* 发票详细类型,详见下方 SubType 返回值说明
|
161
|
+
*/
|
162
|
+
SubType?: string
|
163
|
+
|
164
|
+
/**
|
165
|
+
* 发票类型描述,详见下方 TypeDescription 返回值说明
|
166
|
+
*/
|
167
|
+
TypeDescription?: string
|
168
|
+
|
169
|
+
/**
|
170
|
+
* 切割单图文件,Base64编码后的切图后的图片文件,开启 EnableCutImage 后进行返回
|
171
|
+
*/
|
172
|
+
CutImage?: string
|
173
|
+
|
174
|
+
/**
|
175
|
+
* 发票详细类型描述,详见下方 SubType 返回值说明
|
176
|
+
*/
|
177
|
+
SubTypeDescription?: string
|
178
|
+
}
|
179
|
+
|
73
180
|
/**
|
74
181
|
* BankSlipOCR请求参数结构体
|
75
182
|
*/
|
@@ -1190,6 +1297,31 @@ export interface SingleInvoiceInfo {
|
|
1190
1297
|
Row: number
|
1191
1298
|
}
|
1192
1299
|
|
1300
|
+
/**
|
1301
|
+
* 增值税普通发票(卷票)条目
|
1302
|
+
*/
|
1303
|
+
export interface VatRollItem {
|
1304
|
+
/**
|
1305
|
+
* 项目名称
|
1306
|
+
*/
|
1307
|
+
Name?: string
|
1308
|
+
|
1309
|
+
/**
|
1310
|
+
* 数量
|
1311
|
+
*/
|
1312
|
+
Quantity?: string
|
1313
|
+
|
1314
|
+
/**
|
1315
|
+
* 单价
|
1316
|
+
*/
|
1317
|
+
Price?: string
|
1318
|
+
|
1319
|
+
/**
|
1320
|
+
* 金额
|
1321
|
+
*/
|
1322
|
+
Total?: string
|
1323
|
+
}
|
1324
|
+
|
1193
1325
|
/**
|
1194
1326
|
* 数学公式识别结果
|
1195
1327
|
*/
|
@@ -1342,6 +1474,66 @@ export interface VehicleRegCertInfo {
|
|
1342
1474
|
Value: string
|
1343
1475
|
}
|
1344
1476
|
|
1477
|
+
/**
|
1478
|
+
* 机票行程卡条目
|
1479
|
+
*/
|
1480
|
+
export interface FlightItem {
|
1481
|
+
/**
|
1482
|
+
* 出发航站楼
|
1483
|
+
*/
|
1484
|
+
TerminalGetOn?: string
|
1485
|
+
|
1486
|
+
/**
|
1487
|
+
* 到达航站楼
|
1488
|
+
*/
|
1489
|
+
TerminalGetOff?: string
|
1490
|
+
|
1491
|
+
/**
|
1492
|
+
* 承运人
|
1493
|
+
*/
|
1494
|
+
Carrier?: string
|
1495
|
+
|
1496
|
+
/**
|
1497
|
+
* 航班号
|
1498
|
+
*/
|
1499
|
+
FlightNumber?: string
|
1500
|
+
|
1501
|
+
/**
|
1502
|
+
* 座位等级
|
1503
|
+
*/
|
1504
|
+
Seat?: string
|
1505
|
+
|
1506
|
+
/**
|
1507
|
+
* 乘机日期
|
1508
|
+
*/
|
1509
|
+
DateGetOn?: string
|
1510
|
+
|
1511
|
+
/**
|
1512
|
+
* 乘机时间
|
1513
|
+
*/
|
1514
|
+
TimeGetOn?: string
|
1515
|
+
|
1516
|
+
/**
|
1517
|
+
* 出发站
|
1518
|
+
*/
|
1519
|
+
StationGetOn?: string
|
1520
|
+
|
1521
|
+
/**
|
1522
|
+
* 到达站
|
1523
|
+
*/
|
1524
|
+
StationGetOff?: string
|
1525
|
+
|
1526
|
+
/**
|
1527
|
+
* 免费行李
|
1528
|
+
*/
|
1529
|
+
Allow?: string
|
1530
|
+
|
1531
|
+
/**
|
1532
|
+
* 客票级别/客票类别
|
1533
|
+
*/
|
1534
|
+
FareBasis?: string
|
1535
|
+
}
|
1536
|
+
|
1345
1537
|
/**
|
1346
1538
|
* value信息组
|
1347
1539
|
*/
|
@@ -1755,6 +1947,71 @@ export interface TextEduPaper {
|
|
1755
1947
|
Itemcoord: ItemCoord
|
1756
1948
|
}
|
1757
1949
|
|
1950
|
+
/**
|
1951
|
+
* 增值税发票项目信息
|
1952
|
+
*/
|
1953
|
+
export interface VatInvoiceItemInfo {
|
1954
|
+
/**
|
1955
|
+
* 项目名称
|
1956
|
+
*/
|
1957
|
+
Name?: string
|
1958
|
+
|
1959
|
+
/**
|
1960
|
+
* 规格型号
|
1961
|
+
*/
|
1962
|
+
Specification?: string
|
1963
|
+
|
1964
|
+
/**
|
1965
|
+
* 单位
|
1966
|
+
*/
|
1967
|
+
Unit?: string
|
1968
|
+
|
1969
|
+
/**
|
1970
|
+
* 数量
|
1971
|
+
*/
|
1972
|
+
Quantity?: string
|
1973
|
+
|
1974
|
+
/**
|
1975
|
+
* 单价
|
1976
|
+
*/
|
1977
|
+
Price?: string
|
1978
|
+
|
1979
|
+
/**
|
1980
|
+
* 金额
|
1981
|
+
*/
|
1982
|
+
Total?: string
|
1983
|
+
|
1984
|
+
/**
|
1985
|
+
* 税率
|
1986
|
+
*/
|
1987
|
+
TaxRate?: string
|
1988
|
+
|
1989
|
+
/**
|
1990
|
+
* 税额
|
1991
|
+
*/
|
1992
|
+
Tax?: string
|
1993
|
+
|
1994
|
+
/**
|
1995
|
+
* 通行日期起
|
1996
|
+
*/
|
1997
|
+
DateStart?: string
|
1998
|
+
|
1999
|
+
/**
|
2000
|
+
* 通行日期止
|
2001
|
+
*/
|
2002
|
+
DateEnd?: string
|
2003
|
+
|
2004
|
+
/**
|
2005
|
+
* 车牌号
|
2006
|
+
*/
|
2007
|
+
LicensePlate?: string
|
2008
|
+
|
2009
|
+
/**
|
2010
|
+
* 车辆类型
|
2011
|
+
*/
|
2012
|
+
VehicleType?: string
|
2013
|
+
}
|
2014
|
+
|
1758
2015
|
/**
|
1759
2016
|
* QrcodeOCR返回参数结构体
|
1760
2017
|
*/
|
@@ -1865,68 +2122,158 @@ export interface MainlandPermitOCRRequest {
|
|
1865
2122
|
}
|
1866
2123
|
|
1867
2124
|
/**
|
1868
|
-
*
|
2125
|
+
* 电子发票详细条目信息
|
1869
2126
|
*/
|
1870
|
-
export interface
|
2127
|
+
export interface VatElectronicItemInfo {
|
1871
2128
|
/**
|
1872
|
-
|
1873
|
-
|
1874
|
-
|
1875
|
-
Angle?: number
|
2129
|
+
* 项目名称
|
2130
|
+
*/
|
2131
|
+
Name?: string
|
1876
2132
|
|
1877
2133
|
/**
|
1878
|
-
*
|
2134
|
+
* 数量
|
1879
2135
|
*/
|
1880
|
-
|
2136
|
+
Quantity?: string
|
1881
2137
|
|
1882
2138
|
/**
|
1883
|
-
*
|
2139
|
+
* 规格型号
|
1884
2140
|
*/
|
1885
|
-
|
2141
|
+
Specification?: string
|
1886
2142
|
|
1887
2143
|
/**
|
1888
|
-
*
|
2144
|
+
* 单价
|
1889
2145
|
*/
|
1890
|
-
|
1891
|
-
}
|
2146
|
+
Price?: string
|
1892
2147
|
|
1893
|
-
/**
|
1894
|
-
* EnterpriseLicenseOCR请求参数结构体
|
1895
|
-
*/
|
1896
|
-
export interface EnterpriseLicenseOCRRequest {
|
1897
2148
|
/**
|
1898
|
-
|
1899
|
-
|
1900
|
-
|
1901
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1902
|
-
*/
|
1903
|
-
ImageBase64?: string
|
2149
|
+
* 金额
|
2150
|
+
*/
|
2151
|
+
Total?: string
|
1904
2152
|
|
1905
2153
|
/**
|
1906
|
-
|
1907
|
-
|
1908
|
-
|
1909
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1910
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1911
|
-
*/
|
1912
|
-
ImageUrl?: string
|
1913
|
-
}
|
2154
|
+
* 税率
|
2155
|
+
*/
|
2156
|
+
TaxRate?: string
|
1914
2157
|
|
1915
|
-
/**
|
1916
|
-
* BankCardOCR请求参数结构体
|
1917
|
-
*/
|
1918
|
-
export interface BankCardOCRRequest {
|
1919
2158
|
/**
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
1923
|
-
ImageBase64?: string
|
2159
|
+
* 税额
|
2160
|
+
*/
|
2161
|
+
Tax?: string
|
1924
2162
|
|
1925
2163
|
/**
|
1926
|
-
|
1927
|
-
|
1928
|
-
|
1929
|
-
|
2164
|
+
* 单位
|
2165
|
+
*/
|
2166
|
+
Unit?: string
|
2167
|
+
|
2168
|
+
/**
|
2169
|
+
* 运输工具类型
|
2170
|
+
*/
|
2171
|
+
VehicleType?: string
|
2172
|
+
|
2173
|
+
/**
|
2174
|
+
* 运输工具牌号
|
2175
|
+
*/
|
2176
|
+
VehicleBrand?: string
|
2177
|
+
|
2178
|
+
/**
|
2179
|
+
* 起始地
|
2180
|
+
*/
|
2181
|
+
DeparturePlace?: string
|
2182
|
+
|
2183
|
+
/**
|
2184
|
+
* 到达地
|
2185
|
+
*/
|
2186
|
+
ArrivalPlace?: string
|
2187
|
+
|
2188
|
+
/**
|
2189
|
+
* 运输货物名称,仅货物运输服务发票返回
|
2190
|
+
*/
|
2191
|
+
TransportItemsName?: string
|
2192
|
+
|
2193
|
+
/**
|
2194
|
+
* 建筑服务发生地,仅建筑发票返回
|
2195
|
+
*/
|
2196
|
+
PlaceOfBuildingService?: string
|
2197
|
+
|
2198
|
+
/**
|
2199
|
+
* 建筑项目名称,仅建筑发票返回
|
2200
|
+
*/
|
2201
|
+
BuildingName?: string
|
2202
|
+
|
2203
|
+
/**
|
2204
|
+
* 产权证书/不动产权证号,仅不动产经营租赁服务发票返回
|
2205
|
+
*/
|
2206
|
+
EstateNumber?: string
|
2207
|
+
|
2208
|
+
/**
|
2209
|
+
* 面积单位,仅不动产经营租赁服务发票返回
|
2210
|
+
*/
|
2211
|
+
AreaUnit?: string
|
2212
|
+
}
|
2213
|
+
|
2214
|
+
/**
|
2215
|
+
* SmartStructuralOCRV2返回参数结构体
|
2216
|
+
*/
|
2217
|
+
export interface SmartStructuralOCRV2Response {
|
2218
|
+
/**
|
2219
|
+
* 图片旋转角度(角度制),文本的水平方向
|
2220
|
+
为 0;顺时针为正,逆时针为负
|
2221
|
+
*/
|
2222
|
+
Angle?: number
|
2223
|
+
|
2224
|
+
/**
|
2225
|
+
* 配置结构化文本信息
|
2226
|
+
*/
|
2227
|
+
StructuralList?: Array<GroupInfo>
|
2228
|
+
|
2229
|
+
/**
|
2230
|
+
* 还原文本信息
|
2231
|
+
*/
|
2232
|
+
WordList?: Array<WordItem>
|
2233
|
+
|
2234
|
+
/**
|
2235
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2236
|
+
*/
|
2237
|
+
RequestId?: string
|
2238
|
+
}
|
2239
|
+
|
2240
|
+
/**
|
2241
|
+
* EnterpriseLicenseOCR请求参数结构体
|
2242
|
+
*/
|
2243
|
+
export interface EnterpriseLicenseOCRRequest {
|
2244
|
+
/**
|
2245
|
+
* 图片的 Base64 值。
|
2246
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
2247
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
2248
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
2249
|
+
*/
|
2250
|
+
ImageBase64?: string
|
2251
|
+
|
2252
|
+
/**
|
2253
|
+
* 图片的 Url 地址。
|
2254
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
2255
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
2256
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
2257
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
2258
|
+
*/
|
2259
|
+
ImageUrl?: string
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
/**
|
2263
|
+
* BankCardOCR请求参数结构体
|
2264
|
+
*/
|
2265
|
+
export interface BankCardOCRRequest {
|
2266
|
+
/**
|
2267
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
2268
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
2269
|
+
*/
|
2270
|
+
ImageBase64?: string
|
2271
|
+
|
2272
|
+
/**
|
2273
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
2274
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
2275
|
+
*/
|
2276
|
+
ImageUrl?: string
|
1930
2277
|
|
1931
2278
|
/**
|
1932
2279
|
* 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
|
@@ -2593,18 +2940,48 @@ export interface VatInvoiceUserInfo {
|
|
2593
2940
|
}
|
2594
2941
|
|
2595
2942
|
/**
|
2596
|
-
*
|
2943
|
+
* 通用机打发票条目
|
2597
2944
|
*/
|
2598
|
-
export interface
|
2945
|
+
export interface GeneralMachineItem {
|
2599
2946
|
/**
|
2600
|
-
*
|
2947
|
+
* 项目名称
|
2601
2948
|
*/
|
2602
|
-
|
2949
|
+
Name?: string
|
2603
2950
|
|
2604
2951
|
/**
|
2605
|
-
*
|
2952
|
+
* 规格型号
|
2606
2953
|
*/
|
2607
|
-
|
2954
|
+
Specification?: string
|
2955
|
+
|
2956
|
+
/**
|
2957
|
+
* 单位
|
2958
|
+
*/
|
2959
|
+
Unit?: string
|
2960
|
+
|
2961
|
+
/**
|
2962
|
+
* 数量
|
2963
|
+
*/
|
2964
|
+
Quantity?: string
|
2965
|
+
|
2966
|
+
/**
|
2967
|
+
* 单价
|
2968
|
+
*/
|
2969
|
+
Price?: string
|
2970
|
+
|
2971
|
+
/**
|
2972
|
+
* 金额
|
2973
|
+
*/
|
2974
|
+
Total?: string
|
2975
|
+
|
2976
|
+
/**
|
2977
|
+
* 税率
|
2978
|
+
*/
|
2979
|
+
TaxRate?: string
|
2980
|
+
|
2981
|
+
/**
|
2982
|
+
* 税额
|
2983
|
+
*/
|
2984
|
+
Tax?: string
|
2608
2985
|
}
|
2609
2986
|
|
2610
2987
|
/**
|
@@ -2656,6 +3033,116 @@ BACK:无照片的一面(国徽面),
|
|
2656
3033
|
CardSide?: string
|
2657
3034
|
}
|
2658
3035
|
|
3036
|
+
/**
|
3037
|
+
* 汽车票
|
3038
|
+
*/
|
3039
|
+
export interface BusInvoice {
|
3040
|
+
/**
|
3041
|
+
* 发票名称
|
3042
|
+
*/
|
3043
|
+
Title?: string
|
3044
|
+
|
3045
|
+
/**
|
3046
|
+
* 是否存在二维码(1:有,0:无)
|
3047
|
+
*/
|
3048
|
+
QRCodeMark?: number
|
3049
|
+
|
3050
|
+
/**
|
3051
|
+
* 发票号码
|
3052
|
+
*/
|
3053
|
+
Number?: string
|
3054
|
+
|
3055
|
+
/**
|
3056
|
+
* 发票代码
|
3057
|
+
*/
|
3058
|
+
Code?: string
|
3059
|
+
|
3060
|
+
/**
|
3061
|
+
* 开票日期
|
3062
|
+
*/
|
3063
|
+
Date?: string
|
3064
|
+
|
3065
|
+
/**
|
3066
|
+
* 乘车时间
|
3067
|
+
*/
|
3068
|
+
TimeGetOn?: string
|
3069
|
+
|
3070
|
+
/**
|
3071
|
+
* 乘车日期
|
3072
|
+
*/
|
3073
|
+
DateGetOn?: string
|
3074
|
+
|
3075
|
+
/**
|
3076
|
+
* 出发车站
|
3077
|
+
*/
|
3078
|
+
StationGetOn?: string
|
3079
|
+
|
3080
|
+
/**
|
3081
|
+
* 到达车站
|
3082
|
+
*/
|
3083
|
+
StationGetOff?: string
|
3084
|
+
|
3085
|
+
/**
|
3086
|
+
* 票价
|
3087
|
+
*/
|
3088
|
+
Total?: string
|
3089
|
+
|
3090
|
+
/**
|
3091
|
+
* 姓名
|
3092
|
+
*/
|
3093
|
+
UserName?: string
|
3094
|
+
|
3095
|
+
/**
|
3096
|
+
* 消费类型
|
3097
|
+
*/
|
3098
|
+
Kind?: string
|
3099
|
+
|
3100
|
+
/**
|
3101
|
+
* 身份证号
|
3102
|
+
*/
|
3103
|
+
UserID?: string
|
3104
|
+
|
3105
|
+
/**
|
3106
|
+
* 省
|
3107
|
+
*/
|
3108
|
+
Province?: string
|
3109
|
+
|
3110
|
+
/**
|
3111
|
+
* 市
|
3112
|
+
*/
|
3113
|
+
City?: string
|
3114
|
+
|
3115
|
+
/**
|
3116
|
+
* 乘车地点
|
3117
|
+
*/
|
3118
|
+
PlaceGetOn?: string
|
3119
|
+
|
3120
|
+
/**
|
3121
|
+
* 检票口
|
3122
|
+
*/
|
3123
|
+
GateNumber?: string
|
3124
|
+
|
3125
|
+
/**
|
3126
|
+
* 客票类型
|
3127
|
+
*/
|
3128
|
+
TicketType?: string
|
3129
|
+
|
3130
|
+
/**
|
3131
|
+
* 车型
|
3132
|
+
*/
|
3133
|
+
VehicleType?: string
|
3134
|
+
|
3135
|
+
/**
|
3136
|
+
* 座位号
|
3137
|
+
*/
|
3138
|
+
SeatNumber?: string
|
3139
|
+
|
3140
|
+
/**
|
3141
|
+
* 车次
|
3142
|
+
*/
|
3143
|
+
TrainNumber?: string
|
3144
|
+
}
|
3145
|
+
|
2659
3146
|
/**
|
2660
3147
|
* QrcodeOCR请求参数结构体
|
2661
3148
|
*/
|
@@ -2746,31 +3233,98 @@ export interface TaxiInvoiceOCRResponse {
|
|
2746
3233
|
}
|
2747
3234
|
|
2748
3235
|
/**
|
2749
|
-
*
|
3236
|
+
* RecognizeGeneralInvoice请求参数结构体
|
2750
3237
|
*/
|
2751
|
-
export interface
|
3238
|
+
export interface RecognizeGeneralInvoiceRequest {
|
2752
3239
|
/**
|
2753
|
-
|
3240
|
+
* 图片的 Base64 值。
|
3241
|
+
支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
3242
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
3243
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3244
|
+
*/
|
3245
|
+
ImageBase64?: string
|
3246
|
+
|
3247
|
+
/**
|
3248
|
+
* 图片的 Url 地址。
|
3249
|
+
支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
3250
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
3251
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3252
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3253
|
+
*/
|
3254
|
+
ImageUrl?: string
|
3255
|
+
|
3256
|
+
/**
|
3257
|
+
* 需要识别的票据类型列表,为空或不填表示识别全部类型。
|
3258
|
+
0:出租车发票
|
3259
|
+
1:定额发票
|
3260
|
+
2:火车票
|
3261
|
+
3:增值税发票
|
3262
|
+
5:机票行程单
|
3263
|
+
8:通用机打发票
|
3264
|
+
9:汽车票
|
3265
|
+
10:轮船票
|
3266
|
+
11:增值税发票(卷票 )
|
3267
|
+
12:购车发票
|
3268
|
+
13:过路过桥费发票
|
3269
|
+
15:非税发票
|
3270
|
+
16:全电发票
|
3271
|
+
----------------------
|
3272
|
+
-1:其他发票,(只传入此类型时,图片均采用其他票类型进行识别)
|
3273
|
+
*/
|
3274
|
+
Types?: Array<number>
|
3275
|
+
|
3276
|
+
/**
|
3277
|
+
* 是否开启其他票识别,默认值为true,开启后可支持其他发票的智能识别。
|
2754
3278
|
*/
|
2755
|
-
|
3279
|
+
EnableOther?: boolean
|
2756
3280
|
|
2757
3281
|
/**
|
2758
|
-
*
|
3282
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
2759
3283
|
*/
|
2760
|
-
|
3284
|
+
EnablePdf?: boolean
|
2761
3285
|
|
2762
3286
|
/**
|
2763
|
-
*
|
3287
|
+
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
2764
3288
|
*/
|
2765
|
-
|
3289
|
+
PdfPageNumber?: number
|
2766
3290
|
|
2767
3291
|
/**
|
2768
|
-
*
|
3292
|
+
* 是否开启PDF多页识别,默认值为false,开启后可同时支持多页PDF的识别返回,仅支持返回文件前30页。开启后EnablePdf和PdfPageNumber入参不进行控制。
|
2769
3293
|
*/
|
2770
|
-
|
3294
|
+
EnableMultiplePage?: boolean
|
2771
3295
|
|
2772
3296
|
/**
|
2773
|
-
*
|
3297
|
+
* 是否返回切割图片base64,默认值为false。
|
3298
|
+
*/
|
3299
|
+
EnableCutImage?: boolean
|
3300
|
+
}
|
3301
|
+
|
3302
|
+
/**
|
3303
|
+
* GeneralBasicOCR返回参数结构体
|
3304
|
+
*/
|
3305
|
+
export interface GeneralBasicOCRResponse {
|
3306
|
+
/**
|
3307
|
+
* 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
|
3308
|
+
*/
|
3309
|
+
TextDetections?: Array<TextDetection>
|
3310
|
+
|
3311
|
+
/**
|
3312
|
+
* 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
|
3313
|
+
*/
|
3314
|
+
Language?: string
|
3315
|
+
|
3316
|
+
/**
|
3317
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
3318
|
+
*/
|
3319
|
+
Angel?: number
|
3320
|
+
|
3321
|
+
/**
|
3322
|
+
* 图片为PDF时,返回PDF的总页数,默认为0
|
3323
|
+
*/
|
3324
|
+
PdfPageSize?: number
|
3325
|
+
|
3326
|
+
/**
|
3327
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2774
3328
|
*/
|
2775
3329
|
RequestId?: string
|
2776
3330
|
}
|
@@ -2830,6 +3384,31 @@ export interface RecognizeThaiIDCardOCRResponse {
|
|
2830
3384
|
RequestId?: string
|
2831
3385
|
}
|
2832
3386
|
|
3387
|
+
/**
|
3388
|
+
* 其他发票
|
3389
|
+
*/
|
3390
|
+
export interface OtherInvoice {
|
3391
|
+
/**
|
3392
|
+
* 发票名称
|
3393
|
+
*/
|
3394
|
+
Title?: string
|
3395
|
+
|
3396
|
+
/**
|
3397
|
+
* 金额
|
3398
|
+
*/
|
3399
|
+
Total?: string
|
3400
|
+
|
3401
|
+
/**
|
3402
|
+
* 列表
|
3403
|
+
*/
|
3404
|
+
OtherInvoiceListItems?: Array<OtherInvoiceItem>
|
3405
|
+
|
3406
|
+
/**
|
3407
|
+
* 表格
|
3408
|
+
*/
|
3409
|
+
OtherInvoiceTableItems?: Array<OtherInvoiceList>
|
3410
|
+
}
|
3411
|
+
|
2833
3412
|
/**
|
2834
3413
|
* 单元格识别结果
|
2835
3414
|
*/
|
@@ -3431,6 +4010,143 @@ export interface PermitOCRRequest {
|
|
3431
4010
|
ImageUrl?: string
|
3432
4011
|
}
|
3433
4012
|
|
4013
|
+
/**
|
4014
|
+
* 混贴票据中单张发票的内容
|
4015
|
+
*/
|
4016
|
+
export interface SingleInvoiceItem {
|
4017
|
+
/**
|
4018
|
+
* 增值税专用发票
|
4019
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4020
|
+
*/
|
4021
|
+
VatSpecialInvoice: VatInvoiceInfo
|
4022
|
+
|
4023
|
+
/**
|
4024
|
+
* 增值税普通发票
|
4025
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4026
|
+
*/
|
4027
|
+
VatCommonInvoice: VatInvoiceInfo
|
4028
|
+
|
4029
|
+
/**
|
4030
|
+
* 增值税电子普通发票
|
4031
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4032
|
+
*/
|
4033
|
+
VatElectronicCommonInvoice: VatInvoiceInfo
|
4034
|
+
|
4035
|
+
/**
|
4036
|
+
* 增值税电子专用发票
|
4037
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4038
|
+
*/
|
4039
|
+
VatElectronicSpecialInvoice?: VatInvoiceInfo
|
4040
|
+
|
4041
|
+
/**
|
4042
|
+
* 区块链电子发票
|
4043
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4044
|
+
*/
|
4045
|
+
VatElectronicInvoiceBlockchain?: VatInvoiceInfo
|
4046
|
+
|
4047
|
+
/**
|
4048
|
+
* 增值税电子普通发票(通行费)
|
4049
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4050
|
+
*/
|
4051
|
+
VatElectronicInvoiceToll?: VatInvoiceInfo
|
4052
|
+
|
4053
|
+
/**
|
4054
|
+
* 电子发票(专用发票)
|
4055
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4056
|
+
*/
|
4057
|
+
VatElectronicSpecialInvoiceFull?: VatElectronicInfo
|
4058
|
+
|
4059
|
+
/**
|
4060
|
+
* 电子发票(普通发票)
|
4061
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4062
|
+
*/
|
4063
|
+
VatElectronicInvoiceFull?: VatElectronicInfo
|
4064
|
+
|
4065
|
+
/**
|
4066
|
+
* 通用机打发票
|
4067
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4068
|
+
*/
|
4069
|
+
MachinePrintedInvoice?: MachinePrintedInvoice
|
4070
|
+
|
4071
|
+
/**
|
4072
|
+
* 汽车票
|
4073
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4074
|
+
*/
|
4075
|
+
BusInvoice?: BusInvoice
|
4076
|
+
|
4077
|
+
/**
|
4078
|
+
* 轮船票
|
4079
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4080
|
+
*/
|
4081
|
+
ShippingInvoice?: ShippingInvoice
|
4082
|
+
|
4083
|
+
/**
|
4084
|
+
* 过路过桥费发票
|
4085
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4086
|
+
*/
|
4087
|
+
TollInvoice?: TollInvoice
|
4088
|
+
|
4089
|
+
/**
|
4090
|
+
* 其他发票
|
4091
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4092
|
+
*/
|
4093
|
+
OtherInvoice?: OtherInvoice
|
4094
|
+
|
4095
|
+
/**
|
4096
|
+
* 机动车销售统一发票
|
4097
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4098
|
+
*/
|
4099
|
+
MotorVehicleSaleInvoice?: MotorVehicleSaleInvoice
|
4100
|
+
|
4101
|
+
/**
|
4102
|
+
* 二手车销售统一发票
|
4103
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4104
|
+
*/
|
4105
|
+
UsedCarPurchaseInvoice?: UsedCarPurchaseInvoice
|
4106
|
+
|
4107
|
+
/**
|
4108
|
+
* 增值税普通发票(卷票)
|
4109
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4110
|
+
*/
|
4111
|
+
VatInvoiceRoll?: VatInvoiceRoll
|
4112
|
+
|
4113
|
+
/**
|
4114
|
+
* 出租车发票
|
4115
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4116
|
+
*/
|
4117
|
+
TaxiTicket?: TaxiTicket
|
4118
|
+
|
4119
|
+
/**
|
4120
|
+
* 定额发票
|
4121
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4122
|
+
*/
|
4123
|
+
QuotaInvoice?: QuotaInvoice
|
4124
|
+
|
4125
|
+
/**
|
4126
|
+
* 机票行程单
|
4127
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4128
|
+
*/
|
4129
|
+
AirTransport?: AirTransport
|
4130
|
+
|
4131
|
+
/**
|
4132
|
+
* 非税收入通用票据
|
4133
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4134
|
+
*/
|
4135
|
+
NonTaxIncomeGeneralBill?: NonTaxIncomeBill
|
4136
|
+
|
4137
|
+
/**
|
4138
|
+
* 非税收入一般缴款书(电子)
|
4139
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4140
|
+
*/
|
4141
|
+
NonTaxIncomeElectronicBill?: NonTaxIncomeBill
|
4142
|
+
|
4143
|
+
/**
|
4144
|
+
* 火车票
|
4145
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4146
|
+
*/
|
4147
|
+
TrainTicket?: TrainTicket
|
4148
|
+
}
|
4149
|
+
|
3434
4150
|
/**
|
3435
4151
|
* InvoiceGeneralOCR返回参数结构体
|
3436
4152
|
*/
|
@@ -3497,152 +4213,662 @@ export interface VatInvoiceVerifyNewResponse {
|
|
3497
4213
|
}
|
3498
4214
|
|
3499
4215
|
/**
|
3500
|
-
*
|
4216
|
+
* 增值税发票返回值
|
3501
4217
|
*/
|
3502
|
-
export interface
|
4218
|
+
export interface VatInvoiceInfo {
|
3503
4219
|
/**
|
3504
|
-
*
|
4220
|
+
* 校验码
|
3505
4221
|
*/
|
3506
|
-
|
4222
|
+
CheckCode?: string
|
3507
4223
|
|
3508
4224
|
/**
|
3509
|
-
*
|
4225
|
+
* 发票联次
|
3510
4226
|
*/
|
3511
|
-
|
4227
|
+
FormType?: string
|
3512
4228
|
|
3513
4229
|
/**
|
3514
|
-
*
|
4230
|
+
* 车船税
|
3515
4231
|
*/
|
3516
|
-
|
4232
|
+
TravelTax?: string
|
3517
4233
|
|
3518
4234
|
/**
|
3519
|
-
*
|
4235
|
+
* 购买方地址电话
|
3520
4236
|
*/
|
3521
|
-
|
4237
|
+
BuyerAddrTel?: string
|
3522
4238
|
|
3523
4239
|
/**
|
3524
|
-
*
|
4240
|
+
* 购买方银行账号
|
3525
4241
|
*/
|
3526
|
-
|
3527
|
-
}
|
4242
|
+
BuyerBankAccount?: string
|
3528
4243
|
|
3529
|
-
/**
|
3530
|
-
* TaxiInvoiceOCR请求参数结构体
|
3531
|
-
*/
|
3532
|
-
export interface TaxiInvoiceOCRRequest {
|
3533
4244
|
/**
|
3534
|
-
|
3535
|
-
|
3536
|
-
|
3537
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3538
|
-
*/
|
3539
|
-
ImageBase64?: string
|
4245
|
+
* 公司印章内容
|
4246
|
+
*/
|
4247
|
+
CompanySealContent?: string
|
3540
4248
|
|
3541
4249
|
/**
|
3542
|
-
|
3543
|
-
|
3544
|
-
|
3545
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3546
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3547
|
-
*/
|
3548
|
-
ImageUrl?: string
|
4250
|
+
* 税务局章内容
|
4251
|
+
*/
|
4252
|
+
TaxSealContent?: string
|
3549
4253
|
|
3550
4254
|
/**
|
3551
|
-
*
|
4255
|
+
* 服务类型
|
3552
4256
|
*/
|
3553
|
-
|
4257
|
+
ServiceName?: string
|
3554
4258
|
|
3555
4259
|
/**
|
3556
|
-
*
|
4260
|
+
* 市
|
3557
4261
|
*/
|
3558
|
-
|
3559
|
-
}
|
4262
|
+
City?: string
|
3560
4263
|
|
3561
|
-
/**
|
3562
|
-
* PropOwnerCertOCR请求参数结构体
|
3563
|
-
*/
|
3564
|
-
export interface PropOwnerCertOCRRequest {
|
3565
4264
|
/**
|
3566
|
-
|
3567
|
-
|
3568
|
-
|
3569
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3570
|
-
*/
|
3571
|
-
ImageBase64?: string
|
4265
|
+
* 是否存在二维码(0:没有,1:有)
|
4266
|
+
*/
|
4267
|
+
QRCodeMark?: number
|
3572
4268
|
|
3573
4269
|
/**
|
3574
|
-
|
3575
|
-
|
3576
|
-
|
3577
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3578
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3579
|
-
*/
|
3580
|
-
ImageUrl?: string
|
3581
|
-
}
|
4270
|
+
* 是否有代开标记(0:没有,1:有)
|
4271
|
+
*/
|
4272
|
+
AgentMark?: number
|
3582
4273
|
|
3583
|
-
/**
|
3584
|
-
* RecognizeContainerOCR请求参数结构体
|
3585
|
-
*/
|
3586
|
-
export interface RecognizeContainerOCRRequest {
|
3587
4274
|
/**
|
3588
|
-
|
3589
|
-
|
3590
|
-
|
3591
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3592
|
-
*/
|
3593
|
-
ImageBase64?: string
|
4275
|
+
* 是否有通行费标记(0:没有,1:有)
|
4276
|
+
*/
|
4277
|
+
TransitMark?: number
|
3594
4278
|
|
3595
4279
|
/**
|
3596
|
-
|
3597
|
-
|
3598
|
-
|
3599
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3600
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3601
|
-
*/
|
3602
|
-
ImageUrl?: string
|
3603
|
-
}
|
4280
|
+
* 是否有成品油标记(0:没有,1:有)
|
4281
|
+
*/
|
4282
|
+
OilMark?: number
|
3604
4283
|
|
3605
|
-
/**
|
3606
|
-
* EduPaperOCR请求参数结构体
|
3607
|
-
*/
|
3608
|
-
export interface EduPaperOCRRequest {
|
3609
4284
|
/**
|
3610
|
-
|
3611
|
-
|
3612
|
-
|
3613
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3614
|
-
*/
|
3615
|
-
ImageBase64?: string
|
4285
|
+
* 发票名称
|
4286
|
+
*/
|
4287
|
+
Title?: string
|
3616
4288
|
|
3617
4289
|
/**
|
3618
|
-
|
3619
|
-
|
3620
|
-
|
3621
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3622
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3623
|
-
*/
|
3624
|
-
ImageUrl?: string
|
4290
|
+
* 发票消费类型
|
4291
|
+
*/
|
4292
|
+
Kind?: string
|
3625
4293
|
|
3626
4294
|
/**
|
3627
|
-
|
3628
|
-
|
3629
|
-
|
3630
|
-
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
3631
|
-
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
3632
|
-
示例:
|
3633
|
-
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
3634
|
-
*/
|
3635
|
-
Config?: string
|
3636
|
-
}
|
4295
|
+
* 发票代码
|
4296
|
+
*/
|
4297
|
+
Code?: string
|
3637
4298
|
|
3638
|
-
/**
|
3639
|
-
* VatRollInvoiceOCR返回参数结构体
|
3640
|
-
*/
|
3641
|
-
export interface VatRollInvoiceOCRResponse {
|
3642
4299
|
/**
|
3643
|
-
*
|
4300
|
+
* 发票号码
|
3644
4301
|
*/
|
3645
|
-
|
4302
|
+
Number?: string
|
4303
|
+
|
4304
|
+
/**
|
4305
|
+
* 机打发票号码
|
4306
|
+
*/
|
4307
|
+
NumberConfirm?: string
|
4308
|
+
|
4309
|
+
/**
|
4310
|
+
* 开票日期
|
4311
|
+
*/
|
4312
|
+
Date?: string
|
4313
|
+
|
4314
|
+
/**
|
4315
|
+
* 价税合计(小写)
|
4316
|
+
*/
|
4317
|
+
Total?: string
|
4318
|
+
|
4319
|
+
/**
|
4320
|
+
* 价税合计(大写)
|
4321
|
+
*/
|
4322
|
+
TotalCn?: string
|
4323
|
+
|
4324
|
+
/**
|
4325
|
+
* 税前金额
|
4326
|
+
*/
|
4327
|
+
PretaxAmount?: string
|
4328
|
+
|
4329
|
+
/**
|
4330
|
+
* 合计税额
|
4331
|
+
*/
|
4332
|
+
Tax?: string
|
4333
|
+
|
4334
|
+
/**
|
4335
|
+
* 机器编号
|
4336
|
+
*/
|
4337
|
+
MachineCode?: string
|
4338
|
+
|
4339
|
+
/**
|
4340
|
+
* 密码区
|
4341
|
+
*/
|
4342
|
+
Ciphertext?: string
|
4343
|
+
|
4344
|
+
/**
|
4345
|
+
* 备注
|
4346
|
+
*/
|
4347
|
+
Remark?: string
|
4348
|
+
|
4349
|
+
/**
|
4350
|
+
* 销售方名称
|
4351
|
+
*/
|
4352
|
+
Seller?: string
|
4353
|
+
|
4354
|
+
/**
|
4355
|
+
* 销售方纳税人识别号
|
4356
|
+
*/
|
4357
|
+
SellerTaxID?: string
|
4358
|
+
|
4359
|
+
/**
|
4360
|
+
* 销售方地址电话
|
4361
|
+
*/
|
4362
|
+
SellerAddrTel?: string
|
4363
|
+
|
4364
|
+
/**
|
4365
|
+
* 销售方银行账号
|
4366
|
+
*/
|
4367
|
+
SellerBankAccount?: string
|
4368
|
+
|
4369
|
+
/**
|
4370
|
+
* 购买方名称
|
4371
|
+
*/
|
4372
|
+
Buyer?: string
|
4373
|
+
|
4374
|
+
/**
|
4375
|
+
* 购买方纳税人识别号
|
4376
|
+
*/
|
4377
|
+
BuyerTaxID?: string
|
4378
|
+
|
4379
|
+
/**
|
4380
|
+
* 是否有公司印章(0:没有,1:有)
|
4381
|
+
*/
|
4382
|
+
CompanySealMark?: number
|
4383
|
+
|
4384
|
+
/**
|
4385
|
+
* 开票人
|
4386
|
+
*/
|
4387
|
+
Issuer?: string
|
4388
|
+
|
4389
|
+
/**
|
4390
|
+
* 复核人
|
4391
|
+
*/
|
4392
|
+
Reviewer?: string
|
4393
|
+
|
4394
|
+
/**
|
4395
|
+
* 省
|
4396
|
+
*/
|
4397
|
+
Province?: string
|
4398
|
+
|
4399
|
+
/**
|
4400
|
+
* 增值税发票项目信息
|
4401
|
+
*/
|
4402
|
+
VatInvoiceItemInfos?: Array<VatInvoiceItemInfo>
|
4403
|
+
|
4404
|
+
/**
|
4405
|
+
* 机打发票代码
|
4406
|
+
*/
|
4407
|
+
CodeConfirm?: string
|
4408
|
+
|
4409
|
+
/**
|
4410
|
+
* 收款人
|
4411
|
+
*/
|
4412
|
+
Receiptor?: string
|
4413
|
+
}
|
4414
|
+
|
4415
|
+
/**
|
4416
|
+
* RecognizePhilippinesSssIDOCR返回参数结构体
|
4417
|
+
*/
|
4418
|
+
export interface RecognizePhilippinesSssIDOCRResponse {
|
4419
|
+
/**
|
4420
|
+
* 人像照片Base64后的结果
|
4421
|
+
*/
|
4422
|
+
HeadPortrait?: TextDetectionResult
|
4423
|
+
|
4424
|
+
/**
|
4425
|
+
* 编号
|
4426
|
+
*/
|
4427
|
+
LicenseNumber?: TextDetectionResult
|
4428
|
+
|
4429
|
+
/**
|
4430
|
+
* 姓名
|
4431
|
+
*/
|
4432
|
+
FullName?: TextDetectionResult
|
4433
|
+
|
4434
|
+
/**
|
4435
|
+
* 生日
|
4436
|
+
*/
|
4437
|
+
Birthday?: TextDetectionResult
|
4438
|
+
|
4439
|
+
/**
|
4440
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4441
|
+
*/
|
4442
|
+
RequestId?: string
|
4443
|
+
}
|
4444
|
+
|
4445
|
+
/**
|
4446
|
+
* TaxiInvoiceOCR请求参数结构体
|
4447
|
+
*/
|
4448
|
+
export interface TaxiInvoiceOCRRequest {
|
4449
|
+
/**
|
4450
|
+
* 图片的 Base64 值。
|
4451
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4452
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4453
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4454
|
+
*/
|
4455
|
+
ImageBase64?: string
|
4456
|
+
|
4457
|
+
/**
|
4458
|
+
* 图片的 Url 地址。
|
4459
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4460
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4461
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4462
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4463
|
+
*/
|
4464
|
+
ImageUrl?: string
|
4465
|
+
|
4466
|
+
/**
|
4467
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
4468
|
+
*/
|
4469
|
+
IsPdf?: boolean
|
4470
|
+
|
4471
|
+
/**
|
4472
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
4473
|
+
*/
|
4474
|
+
PdfPageNumber?: number
|
4475
|
+
}
|
4476
|
+
|
4477
|
+
/**
|
4478
|
+
* 通用机打发票
|
4479
|
+
*/
|
4480
|
+
export interface MachinePrintedInvoice {
|
4481
|
+
/**
|
4482
|
+
* 发票名称
|
4483
|
+
*/
|
4484
|
+
Title?: string
|
4485
|
+
|
4486
|
+
/**
|
4487
|
+
* 是否存在二维码(1:有,0:无)
|
4488
|
+
*/
|
4489
|
+
QRCodeMark?: number
|
4490
|
+
|
4491
|
+
/**
|
4492
|
+
* 发票代码
|
4493
|
+
*/
|
4494
|
+
Code?: string
|
4495
|
+
|
4496
|
+
/**
|
4497
|
+
* 发票号码
|
4498
|
+
*/
|
4499
|
+
Number?: string
|
4500
|
+
|
4501
|
+
/**
|
4502
|
+
* 开票日期
|
4503
|
+
*/
|
4504
|
+
Date?: string
|
4505
|
+
|
4506
|
+
/**
|
4507
|
+
* 时间
|
4508
|
+
*/
|
4509
|
+
Time?: string
|
4510
|
+
|
4511
|
+
/**
|
4512
|
+
* 校验码
|
4513
|
+
*/
|
4514
|
+
CheckCode?: string
|
4515
|
+
|
4516
|
+
/**
|
4517
|
+
* 密码区
|
4518
|
+
*/
|
4519
|
+
Ciphertext?: string
|
4520
|
+
|
4521
|
+
/**
|
4522
|
+
* 种类
|
4523
|
+
*/
|
4524
|
+
Category?: string
|
4525
|
+
|
4526
|
+
/**
|
4527
|
+
* 税前金额
|
4528
|
+
*/
|
4529
|
+
PretaxAmount?: string
|
4530
|
+
|
4531
|
+
/**
|
4532
|
+
* 价税合计(小写)
|
4533
|
+
*/
|
4534
|
+
Total?: string
|
4535
|
+
|
4536
|
+
/**
|
4537
|
+
* 价税合计(大写)
|
4538
|
+
*/
|
4539
|
+
TotalCn?: string
|
4540
|
+
|
4541
|
+
/**
|
4542
|
+
* 合计税额
|
4543
|
+
*/
|
4544
|
+
Tax?: string
|
4545
|
+
|
4546
|
+
/**
|
4547
|
+
* 行业分类
|
4548
|
+
*/
|
4549
|
+
IndustryClass?: string
|
4550
|
+
|
4551
|
+
/**
|
4552
|
+
* 销售方名称
|
4553
|
+
*/
|
4554
|
+
Seller?: string
|
4555
|
+
|
4556
|
+
/**
|
4557
|
+
* 销售方纳税人识别号
|
4558
|
+
*/
|
4559
|
+
SellerTaxID?: string
|
4560
|
+
|
4561
|
+
/**
|
4562
|
+
* 销售方地址电话
|
4563
|
+
*/
|
4564
|
+
SellerAddrTel?: string
|
4565
|
+
|
4566
|
+
/**
|
4567
|
+
* 销售方银行账号
|
4568
|
+
*/
|
4569
|
+
SellerBankAccount?: string
|
4570
|
+
|
4571
|
+
/**
|
4572
|
+
* 购买方名称
|
4573
|
+
*/
|
4574
|
+
Buyer?: string
|
4575
|
+
|
4576
|
+
/**
|
4577
|
+
* 购买方纳税人识别号
|
4578
|
+
*/
|
4579
|
+
BuyerTaxID?: string
|
4580
|
+
|
4581
|
+
/**
|
4582
|
+
* 购买方地址电话
|
4583
|
+
*/
|
4584
|
+
BuyerAddrTel?: string
|
4585
|
+
|
4586
|
+
/**
|
4587
|
+
* 购买方银行账号
|
4588
|
+
*/
|
4589
|
+
BuyerBankAccount?: string
|
4590
|
+
|
4591
|
+
/**
|
4592
|
+
* 发票消费类型
|
4593
|
+
*/
|
4594
|
+
Kind?: string
|
4595
|
+
|
4596
|
+
/**
|
4597
|
+
* 省
|
4598
|
+
*/
|
4599
|
+
Province?: string
|
4600
|
+
|
4601
|
+
/**
|
4602
|
+
* 市
|
4603
|
+
*/
|
4604
|
+
City?: string
|
4605
|
+
|
4606
|
+
/**
|
4607
|
+
* 是否有公司印章(0:没有,1:有)
|
4608
|
+
*/
|
4609
|
+
CompanySealMark?: number
|
4610
|
+
|
4611
|
+
/**
|
4612
|
+
* 是否为浙江/广东通用机打发票(0:没有,1:有)
|
4613
|
+
*/
|
4614
|
+
ElectronicMark?: number
|
4615
|
+
|
4616
|
+
/**
|
4617
|
+
* 开票人
|
4618
|
+
*/
|
4619
|
+
Issuer?: string
|
4620
|
+
|
4621
|
+
/**
|
4622
|
+
* 收款人
|
4623
|
+
*/
|
4624
|
+
Receiptor?: string
|
4625
|
+
|
4626
|
+
/**
|
4627
|
+
* 复核人
|
4628
|
+
*/
|
4629
|
+
Reviewer?: string
|
4630
|
+
|
4631
|
+
/**
|
4632
|
+
* 备注
|
4633
|
+
*/
|
4634
|
+
Remark?: string
|
4635
|
+
|
4636
|
+
/**
|
4637
|
+
* 经办人支付信息
|
4638
|
+
*/
|
4639
|
+
PaymentInfo?: string
|
4640
|
+
|
4641
|
+
/**
|
4642
|
+
* 经办人取票用户
|
4643
|
+
*/
|
4644
|
+
TicketPickupUser?: string
|
4645
|
+
|
4646
|
+
/**
|
4647
|
+
* 经办人商户号
|
4648
|
+
*/
|
4649
|
+
MerchantNumber?: string
|
4650
|
+
|
4651
|
+
/**
|
4652
|
+
* 经办人订单号
|
4653
|
+
*/
|
4654
|
+
OrderNumber?: string
|
4655
|
+
|
4656
|
+
/**
|
4657
|
+
* 条目
|
4658
|
+
*/
|
4659
|
+
GeneralMachineItems?: Array<GeneralMachineItem>
|
4660
|
+
}
|
4661
|
+
|
4662
|
+
/**
|
4663
|
+
* PropOwnerCertOCR请求参数结构体
|
4664
|
+
*/
|
4665
|
+
export interface PropOwnerCertOCRRequest {
|
4666
|
+
/**
|
4667
|
+
* 图片的 Base64 值。
|
4668
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4669
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4670
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4671
|
+
*/
|
4672
|
+
ImageBase64?: string
|
4673
|
+
|
4674
|
+
/**
|
4675
|
+
* 图片的 Url 地址。
|
4676
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4677
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4678
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4679
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4680
|
+
*/
|
4681
|
+
ImageUrl?: string
|
4682
|
+
}
|
4683
|
+
|
4684
|
+
/**
|
4685
|
+
* RecognizeContainerOCR请求参数结构体
|
4686
|
+
*/
|
4687
|
+
export interface RecognizeContainerOCRRequest {
|
4688
|
+
/**
|
4689
|
+
* 图片的 Base64 值。
|
4690
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4691
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4692
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4693
|
+
*/
|
4694
|
+
ImageBase64?: string
|
4695
|
+
|
4696
|
+
/**
|
4697
|
+
* 图片的 Url 地址。
|
4698
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4699
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4700
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4701
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4702
|
+
*/
|
4703
|
+
ImageUrl?: string
|
4704
|
+
}
|
4705
|
+
|
4706
|
+
/**
|
4707
|
+
* 火车票
|
4708
|
+
*/
|
4709
|
+
export interface TrainTicket {
|
4710
|
+
/**
|
4711
|
+
* 发票名称
|
4712
|
+
*/
|
4713
|
+
Title?: string
|
4714
|
+
|
4715
|
+
/**
|
4716
|
+
* 发票号码
|
4717
|
+
*/
|
4718
|
+
Number?: string
|
4719
|
+
|
4720
|
+
/**
|
4721
|
+
* 乘车日期
|
4722
|
+
*/
|
4723
|
+
DateGetOn?: string
|
4724
|
+
|
4725
|
+
/**
|
4726
|
+
* 乘车时间
|
4727
|
+
*/
|
4728
|
+
TimeGetOn?: string
|
4729
|
+
|
4730
|
+
/**
|
4731
|
+
* 乘车人姓名
|
4732
|
+
*/
|
4733
|
+
Name?: string
|
4734
|
+
|
4735
|
+
/**
|
4736
|
+
* 出发车站
|
4737
|
+
*/
|
4738
|
+
StationGetOn?: string
|
4739
|
+
|
4740
|
+
/**
|
4741
|
+
* 到达车站
|
4742
|
+
*/
|
4743
|
+
StationGetOff?: string
|
4744
|
+
|
4745
|
+
/**
|
4746
|
+
* 座位类型
|
4747
|
+
*/
|
4748
|
+
Seat?: string
|
4749
|
+
|
4750
|
+
/**
|
4751
|
+
* 总金额
|
4752
|
+
*/
|
4753
|
+
Total?: string
|
4754
|
+
|
4755
|
+
/**
|
4756
|
+
* 发票消费类型
|
4757
|
+
*/
|
4758
|
+
Kind?: string
|
4759
|
+
|
4760
|
+
/**
|
4761
|
+
* 序列号
|
4762
|
+
*/
|
4763
|
+
SerialNumber?: string
|
4764
|
+
|
4765
|
+
/**
|
4766
|
+
* 身份证号
|
4767
|
+
*/
|
4768
|
+
UserID?: string
|
4769
|
+
|
4770
|
+
/**
|
4771
|
+
* 检票口
|
4772
|
+
*/
|
4773
|
+
GateNumber?: string
|
4774
|
+
|
4775
|
+
/**
|
4776
|
+
* 车次
|
4777
|
+
*/
|
4778
|
+
TrainNumber?: string
|
4779
|
+
|
4780
|
+
/**
|
4781
|
+
* 手续费
|
4782
|
+
*/
|
4783
|
+
HandlingFee?: string
|
4784
|
+
|
4785
|
+
/**
|
4786
|
+
* 原票价
|
4787
|
+
*/
|
4788
|
+
OriginalFare?: string
|
4789
|
+
|
4790
|
+
/**
|
4791
|
+
* 大写金额
|
4792
|
+
*/
|
4793
|
+
TotalCn?: string
|
4794
|
+
|
4795
|
+
/**
|
4796
|
+
* 座位号
|
4797
|
+
*/
|
4798
|
+
SeatNumber?: string
|
4799
|
+
|
4800
|
+
/**
|
4801
|
+
* 取票地址
|
4802
|
+
*/
|
4803
|
+
PickUpAddress?: string
|
4804
|
+
|
4805
|
+
/**
|
4806
|
+
* 是否始发改签
|
4807
|
+
*/
|
4808
|
+
TicketChange?: string
|
4809
|
+
|
4810
|
+
/**
|
4811
|
+
* 加收票价
|
4812
|
+
*/
|
4813
|
+
AdditionalFare?: string
|
4814
|
+
|
4815
|
+
/**
|
4816
|
+
* 收据号码
|
4817
|
+
*/
|
4818
|
+
ReceiptNumber?: string
|
4819
|
+
|
4820
|
+
/**
|
4821
|
+
* 是否存在二维码(1:有,0:无)
|
4822
|
+
*/
|
4823
|
+
QRCodeMark?: number
|
4824
|
+
|
4825
|
+
/**
|
4826
|
+
* 是否仅供报销使用(0:没有,1:有)
|
4827
|
+
*/
|
4828
|
+
ReimburseOnlyMark?: number
|
4829
|
+
}
|
4830
|
+
|
4831
|
+
/**
|
4832
|
+
* EduPaperOCR请求参数结构体
|
4833
|
+
*/
|
4834
|
+
export interface EduPaperOCRRequest {
|
4835
|
+
/**
|
4836
|
+
* 图片的 Base64 值。
|
4837
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4838
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4839
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4840
|
+
*/
|
4841
|
+
ImageBase64?: string
|
4842
|
+
|
4843
|
+
/**
|
4844
|
+
* 图片的 Url 地址。
|
4845
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4846
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4847
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4848
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4849
|
+
*/
|
4850
|
+
ImageUrl?: string
|
4851
|
+
|
4852
|
+
/**
|
4853
|
+
* 扩展配置信息。
|
4854
|
+
配置格式:{"option1":value1,"option2":value2}
|
4855
|
+
1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
|
4856
|
+
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
4857
|
+
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
4858
|
+
示例:
|
4859
|
+
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
4860
|
+
*/
|
4861
|
+
Config?: string
|
4862
|
+
}
|
4863
|
+
|
4864
|
+
/**
|
4865
|
+
* VatRollInvoiceOCR返回参数结构体
|
4866
|
+
*/
|
4867
|
+
export interface VatRollInvoiceOCRResponse {
|
4868
|
+
/**
|
4869
|
+
* 增值税发票(卷票)识别结果,具体内容请点击左侧链接。
|
4870
|
+
*/
|
4871
|
+
VatRollInvoiceInfos?: Array<VatRollInvoiceInfo>
|
3646
4872
|
|
3647
4873
|
/**
|
3648
4874
|
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
|
@@ -3762,36 +4988,218 @@ export interface BusinessCardInfo {
|
|
3762
4988
|
}
|
3763
4989
|
|
3764
4990
|
/**
|
3765
|
-
*
|
4991
|
+
* 机动车销售统一发票
|
3766
4992
|
*/
|
3767
|
-
export interface
|
4993
|
+
export interface MotorVehicleSaleInvoice {
|
3768
4994
|
/**
|
3769
|
-
*
|
4995
|
+
* 发票名称
|
3770
4996
|
*/
|
3771
|
-
|
4997
|
+
Title?: string
|
3772
4998
|
|
3773
4999
|
/**
|
3774
|
-
*
|
5000
|
+
* 发票代码
|
3775
5001
|
*/
|
3776
|
-
|
5002
|
+
Code?: string
|
3777
5003
|
|
3778
5004
|
/**
|
3779
|
-
*
|
5005
|
+
* 发票号码
|
3780
5006
|
*/
|
3781
|
-
|
5007
|
+
Number?: string
|
3782
5008
|
|
3783
5009
|
/**
|
3784
|
-
|
3785
|
-
|
3786
|
-
|
3787
|
-
*/
|
3788
|
-
AdvancedInfo: string
|
5010
|
+
* 开票日期
|
5011
|
+
*/
|
5012
|
+
Date?: string
|
3789
5013
|
|
3790
5014
|
/**
|
3791
|
-
|
3792
|
-
|
3793
|
-
|
3794
|
-
|
5015
|
+
* 税前金额
|
5016
|
+
*/
|
5017
|
+
PretaxAmount?: string
|
5018
|
+
|
5019
|
+
/**
|
5020
|
+
* 价税合计(小写)
|
5021
|
+
*/
|
5022
|
+
Total?: string
|
5023
|
+
|
5024
|
+
/**
|
5025
|
+
* 价税合计(大写)
|
5026
|
+
*/
|
5027
|
+
TotalCn?: string
|
5028
|
+
|
5029
|
+
/**
|
5030
|
+
* 销售方名称
|
5031
|
+
*/
|
5032
|
+
Seller?: string
|
5033
|
+
|
5034
|
+
/**
|
5035
|
+
* 销售方单位代码
|
5036
|
+
*/
|
5037
|
+
SellerTaxID?: string
|
5038
|
+
|
5039
|
+
/**
|
5040
|
+
* 销售方电话
|
5041
|
+
*/
|
5042
|
+
SellerTel?: string
|
5043
|
+
|
5044
|
+
/**
|
5045
|
+
* 销售方地址
|
5046
|
+
*/
|
5047
|
+
SellerAddress?: string
|
5048
|
+
|
5049
|
+
/**
|
5050
|
+
* 销售方开户行
|
5051
|
+
*/
|
5052
|
+
SellerBank?: string
|
5053
|
+
|
5054
|
+
/**
|
5055
|
+
* 销售方银行账号
|
5056
|
+
*/
|
5057
|
+
SellerBankAccount?: string
|
5058
|
+
|
5059
|
+
/**
|
5060
|
+
* 购买方名称
|
5061
|
+
*/
|
5062
|
+
Buyer?: string
|
5063
|
+
|
5064
|
+
/**
|
5065
|
+
* 购买方纳税人识别号
|
5066
|
+
*/
|
5067
|
+
BuyerTaxID?: string
|
5068
|
+
|
5069
|
+
/**
|
5070
|
+
* 购买方身份证号码/组织机构代码
|
5071
|
+
*/
|
5072
|
+
BuyerID?: string
|
5073
|
+
|
5074
|
+
/**
|
5075
|
+
* 主管税务机关
|
5076
|
+
*/
|
5077
|
+
TaxAuthorities?: string
|
5078
|
+
|
5079
|
+
/**
|
5080
|
+
* 主管税务机关代码
|
5081
|
+
*/
|
5082
|
+
TaxAuthoritiesCode?: string
|
5083
|
+
|
5084
|
+
/**
|
5085
|
+
* 车辆识别代码
|
5086
|
+
*/
|
5087
|
+
VIN?: string
|
5088
|
+
|
5089
|
+
/**
|
5090
|
+
* 厂牌型号
|
5091
|
+
*/
|
5092
|
+
VehicleModel?: string
|
5093
|
+
|
5094
|
+
/**
|
5095
|
+
* 发动机号码
|
5096
|
+
*/
|
5097
|
+
VehicleEngineCode?: string
|
5098
|
+
|
5099
|
+
/**
|
5100
|
+
* 合格证号
|
5101
|
+
*/
|
5102
|
+
CertificateNumber?: string
|
5103
|
+
|
5104
|
+
/**
|
5105
|
+
* 商检单号
|
5106
|
+
*/
|
5107
|
+
InspectionNumber?: string
|
5108
|
+
|
5109
|
+
/**
|
5110
|
+
* 机器编号
|
5111
|
+
*/
|
5112
|
+
MachineID?: string
|
5113
|
+
|
5114
|
+
/**
|
5115
|
+
* 车辆类型
|
5116
|
+
*/
|
5117
|
+
VehicleType?: string
|
5118
|
+
|
5119
|
+
/**
|
5120
|
+
* 发票消费类型
|
5121
|
+
*/
|
5122
|
+
Kind?: string
|
5123
|
+
|
5124
|
+
/**
|
5125
|
+
* 省
|
5126
|
+
*/
|
5127
|
+
Province?: string
|
5128
|
+
|
5129
|
+
/**
|
5130
|
+
* 市
|
5131
|
+
*/
|
5132
|
+
City?: string
|
5133
|
+
|
5134
|
+
/**
|
5135
|
+
* 合计税额
|
5136
|
+
*/
|
5137
|
+
Tax?: string
|
5138
|
+
|
5139
|
+
/**
|
5140
|
+
* 税率
|
5141
|
+
*/
|
5142
|
+
TaxRate?: string
|
5143
|
+
|
5144
|
+
/**
|
5145
|
+
* 是否有公司印章(0:没有,1:有)
|
5146
|
+
*/
|
5147
|
+
CompanySealMark?: number
|
5148
|
+
|
5149
|
+
/**
|
5150
|
+
* 吨位
|
5151
|
+
*/
|
5152
|
+
Tonnage?: string
|
5153
|
+
|
5154
|
+
/**
|
5155
|
+
* 备注
|
5156
|
+
*/
|
5157
|
+
Remark?: string
|
5158
|
+
|
5159
|
+
/**
|
5160
|
+
* 发票联次
|
5161
|
+
*/
|
5162
|
+
FormType?: string
|
5163
|
+
|
5164
|
+
/**
|
5165
|
+
* 发票联名
|
5166
|
+
*/
|
5167
|
+
FormName?: string
|
5168
|
+
|
5169
|
+
/**
|
5170
|
+
* 开票人
|
5171
|
+
*/
|
5172
|
+
Issuer?: string
|
5173
|
+
|
5174
|
+
/**
|
5175
|
+
* 完税凭证号码
|
5176
|
+
*/
|
5177
|
+
TaxNum?: string
|
5178
|
+
|
5179
|
+
/**
|
5180
|
+
* 限乘人数
|
5181
|
+
*/
|
5182
|
+
MaxPeopleNum?: string
|
5183
|
+
|
5184
|
+
/**
|
5185
|
+
* 产地
|
5186
|
+
*/
|
5187
|
+
Origin?: string
|
5188
|
+
|
5189
|
+
/**
|
5190
|
+
* 机打发票代码
|
5191
|
+
*/
|
5192
|
+
MachineCode?: string
|
5193
|
+
|
5194
|
+
/**
|
5195
|
+
* 机打发票号码
|
5196
|
+
*/
|
5197
|
+
MachineNumber?: string
|
5198
|
+
|
5199
|
+
/**
|
5200
|
+
* 是否存在二维码(1:有,0:无)
|
5201
|
+
*/
|
5202
|
+
QRCodeMark?: number
|
3795
5203
|
}
|
3796
5204
|
|
3797
5205
|
/**
|
@@ -4685,46 +6093,131 @@ export interface EnglishOCRRequest {
|
|
4685
6093
|
ImageUrl?: string
|
4686
6094
|
|
4687
6095
|
/**
|
4688
|
-
* 单词四点坐标开关,开启可返回图片中单词的四点坐标。
|
4689
|
-
该参数默认值为false。
|
4690
|
-
*/
|
4691
|
-
EnableCoordPoint?: boolean
|
6096
|
+
* 单词四点坐标开关,开启可返回图片中单词的四点坐标。
|
6097
|
+
该参数默认值为false。
|
6098
|
+
*/
|
6099
|
+
EnableCoordPoint?: boolean
|
6100
|
+
|
6101
|
+
/**
|
6102
|
+
* 候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。
|
6103
|
+
该参数默认值为false。
|
6104
|
+
*/
|
6105
|
+
EnableCandWord?: boolean
|
6106
|
+
|
6107
|
+
/**
|
6108
|
+
* 预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。
|
6109
|
+
*/
|
6110
|
+
Preprocess?: boolean
|
6111
|
+
}
|
6112
|
+
|
6113
|
+
/**
|
6114
|
+
* VatInvoiceVerify返回参数结构体
|
6115
|
+
*/
|
6116
|
+
export interface VatInvoiceVerifyResponse {
|
6117
|
+
/**
|
6118
|
+
* 增值税发票信息,详情请点击左侧链接。
|
6119
|
+
*/
|
6120
|
+
Invoice?: VatInvoice
|
6121
|
+
|
6122
|
+
/**
|
6123
|
+
* 机动车销售统一发票信息
|
6124
|
+
*/
|
6125
|
+
VehicleInvoiceInfo?: VehicleInvoiceInfo
|
6126
|
+
|
6127
|
+
/**
|
6128
|
+
* 二手车销售统一发票信息
|
6129
|
+
*/
|
6130
|
+
UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo
|
6131
|
+
|
6132
|
+
/**
|
6133
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6134
|
+
*/
|
6135
|
+
RequestId?: string
|
6136
|
+
}
|
6137
|
+
|
6138
|
+
/**
|
6139
|
+
* 电子发票返回值
|
6140
|
+
*/
|
6141
|
+
export interface VatElectronicInfo {
|
6142
|
+
/**
|
6143
|
+
* 发票名称
|
6144
|
+
*/
|
6145
|
+
Title?: string
|
6146
|
+
|
6147
|
+
/**
|
6148
|
+
* 发票号码
|
6149
|
+
*/
|
6150
|
+
Number?: string
|
6151
|
+
|
6152
|
+
/**
|
6153
|
+
* 开票日期
|
6154
|
+
*/
|
6155
|
+
Date?: string
|
6156
|
+
|
6157
|
+
/**
|
6158
|
+
* 税前金额
|
6159
|
+
*/
|
6160
|
+
PretaxAmount?: string
|
6161
|
+
|
6162
|
+
/**
|
6163
|
+
* 合计税额
|
6164
|
+
*/
|
6165
|
+
Tax?: string
|
6166
|
+
|
6167
|
+
/**
|
6168
|
+
* 价税合计(小写)
|
6169
|
+
*/
|
6170
|
+
Total?: string
|
6171
|
+
|
6172
|
+
/**
|
6173
|
+
* 价税合计(大写)
|
6174
|
+
*/
|
6175
|
+
TotalCn?: string
|
6176
|
+
|
6177
|
+
/**
|
6178
|
+
* 销售方名称
|
6179
|
+
*/
|
6180
|
+
Seller?: string
|
4692
6181
|
|
4693
6182
|
/**
|
4694
|
-
|
4695
|
-
|
4696
|
-
|
4697
|
-
EnableCandWord?: boolean
|
6183
|
+
* 销售方纳税人识别号
|
6184
|
+
*/
|
6185
|
+
SellerTaxID?: string
|
4698
6186
|
|
4699
6187
|
/**
|
4700
|
-
*
|
6188
|
+
* 购买方名称
|
4701
6189
|
*/
|
4702
|
-
|
4703
|
-
}
|
6190
|
+
Buyer?: string
|
4704
6191
|
|
4705
|
-
/**
|
4706
|
-
* VatInvoiceVerify返回参数结构体
|
4707
|
-
*/
|
4708
|
-
export interface VatInvoiceVerifyResponse {
|
4709
6192
|
/**
|
4710
|
-
*
|
6193
|
+
* 购买方纳税人识别号
|
4711
6194
|
*/
|
4712
|
-
|
6195
|
+
BuyerTaxID?: string
|
4713
6196
|
|
4714
6197
|
/**
|
4715
|
-
*
|
6198
|
+
* 开票人
|
4716
6199
|
*/
|
4717
|
-
|
6200
|
+
Issuer?: string
|
4718
6201
|
|
4719
6202
|
/**
|
4720
|
-
*
|
6203
|
+
* 备注
|
4721
6204
|
*/
|
4722
|
-
|
6205
|
+
Remark?: string
|
4723
6206
|
|
4724
6207
|
/**
|
4725
|
-
*
|
6208
|
+
* 小计金额
|
4726
6209
|
*/
|
4727
|
-
|
6210
|
+
SubTotal?: string
|
6211
|
+
|
6212
|
+
/**
|
6213
|
+
* 小计税额
|
6214
|
+
*/
|
6215
|
+
SubTax?: string
|
6216
|
+
|
6217
|
+
/**
|
6218
|
+
* 电子发票详细条目信息
|
6219
|
+
*/
|
6220
|
+
VatElectronicItems?: Array<VatElectronicItemInfo>
|
4728
6221
|
}
|
4729
6222
|
|
4730
6223
|
/**
|
@@ -4764,28 +6257,13 @@ export interface DetectedWords {
|
|
4764
6257
|
}
|
4765
6258
|
|
4766
6259
|
/**
|
4767
|
-
*
|
6260
|
+
* 其他票Table
|
4768
6261
|
*/
|
4769
|
-
export interface
|
4770
|
-
/**
|
4771
|
-
* 姓名
|
4772
|
-
*/
|
4773
|
-
RealName: string
|
4774
|
-
|
4775
|
-
/**
|
4776
|
-
* 证件号码(公司注册证件号)
|
4777
|
-
*/
|
4778
|
-
IdCard: string
|
4779
|
-
|
4780
|
-
/**
|
4781
|
-
* 企业全称
|
4782
|
-
*/
|
4783
|
-
EnterpriseName: string
|
4784
|
-
|
6262
|
+
export interface OtherInvoiceList {
|
4785
6263
|
/**
|
4786
|
-
*
|
6264
|
+
* 列表
|
4787
6265
|
*/
|
4788
|
-
|
6266
|
+
OtherInvoiceItemList?: Array<OtherInvoiceItem>
|
4789
6267
|
}
|
4790
6268
|
|
4791
6269
|
/**
|
@@ -5234,6 +6712,136 @@ export interface ArithmeticOCRRequest {
|
|
5234
6712
|
PdfPageIndex?: number
|
5235
6713
|
}
|
5236
6714
|
|
6715
|
+
/**
|
6716
|
+
* 非税收入
|
6717
|
+
*/
|
6718
|
+
export interface NonTaxIncomeBill {
|
6719
|
+
/**
|
6720
|
+
* 发票名称
|
6721
|
+
*/
|
6722
|
+
Title?: string
|
6723
|
+
|
6724
|
+
/**
|
6725
|
+
* 发票号码
|
6726
|
+
*/
|
6727
|
+
Number?: string
|
6728
|
+
|
6729
|
+
/**
|
6730
|
+
* 发票代码
|
6731
|
+
*/
|
6732
|
+
Code?: string
|
6733
|
+
|
6734
|
+
/**
|
6735
|
+
* 校验码
|
6736
|
+
*/
|
6737
|
+
CheckCode?: string
|
6738
|
+
|
6739
|
+
/**
|
6740
|
+
* 开票日期
|
6741
|
+
*/
|
6742
|
+
Date?: string
|
6743
|
+
|
6744
|
+
/**
|
6745
|
+
* 价税合计(小写)
|
6746
|
+
*/
|
6747
|
+
Total?: string
|
6748
|
+
|
6749
|
+
/**
|
6750
|
+
* 价税合计(大写)
|
6751
|
+
*/
|
6752
|
+
TotalCn?: string
|
6753
|
+
|
6754
|
+
/**
|
6755
|
+
* 交款人名称
|
6756
|
+
*/
|
6757
|
+
Buyer?: string
|
6758
|
+
|
6759
|
+
/**
|
6760
|
+
* 交款人纳税人识别号
|
6761
|
+
*/
|
6762
|
+
BuyerTaxID?: string
|
6763
|
+
|
6764
|
+
/**
|
6765
|
+
* 收款人名称
|
6766
|
+
*/
|
6767
|
+
Seller?: string
|
6768
|
+
|
6769
|
+
/**
|
6770
|
+
* 收款单位名称
|
6771
|
+
*/
|
6772
|
+
SellerCompany?: string
|
6773
|
+
|
6774
|
+
/**
|
6775
|
+
* 备注
|
6776
|
+
*/
|
6777
|
+
Remark?: string
|
6778
|
+
|
6779
|
+
/**
|
6780
|
+
* 币种
|
6781
|
+
*/
|
6782
|
+
CurrencyCode?: string
|
6783
|
+
|
6784
|
+
/**
|
6785
|
+
* 复核人
|
6786
|
+
*/
|
6787
|
+
Reviewer?: string
|
6788
|
+
|
6789
|
+
/**
|
6790
|
+
* 是否存在二维码(1:有,0:无)
|
6791
|
+
*/
|
6792
|
+
QRCodeMark?: number
|
6793
|
+
|
6794
|
+
/**
|
6795
|
+
* 其他信息
|
6796
|
+
*/
|
6797
|
+
OtherInfo?: string
|
6798
|
+
|
6799
|
+
/**
|
6800
|
+
* 缴款码
|
6801
|
+
*/
|
6802
|
+
PaymentCode?: string
|
6803
|
+
|
6804
|
+
/**
|
6805
|
+
* 执收单位编码
|
6806
|
+
*/
|
6807
|
+
ReceiveUnitCode?: string
|
6808
|
+
|
6809
|
+
/**
|
6810
|
+
* 执收单位名称
|
6811
|
+
*/
|
6812
|
+
Receiver?: string
|
6813
|
+
|
6814
|
+
/**
|
6815
|
+
* 经办人
|
6816
|
+
*/
|
6817
|
+
Operator?: string
|
6818
|
+
|
6819
|
+
/**
|
6820
|
+
* 付款人账号
|
6821
|
+
*/
|
6822
|
+
PayerAccount?: string
|
6823
|
+
|
6824
|
+
/**
|
6825
|
+
* 付款人开户银行
|
6826
|
+
*/
|
6827
|
+
PayerBank?: string
|
6828
|
+
|
6829
|
+
/**
|
6830
|
+
* 收款人账号
|
6831
|
+
*/
|
6832
|
+
ReceiverAccount?: string
|
6833
|
+
|
6834
|
+
/**
|
6835
|
+
* 收款人开户银行
|
6836
|
+
*/
|
6837
|
+
ReceiverBank?: string
|
6838
|
+
|
6839
|
+
/**
|
6840
|
+
* 条目
|
6841
|
+
*/
|
6842
|
+
NonTaxItems?: Array<NonTaxItem>
|
6843
|
+
}
|
6844
|
+
|
5237
6845
|
/**
|
5238
6846
|
* VerifyOfdVatInvoiceOCR请求参数结构体
|
5239
6847
|
*/
|
@@ -5366,35 +6974,185 @@ export interface MLIDPassportOCRResponse {
|
|
5366
6974
|
}
|
5367
6975
|
|
5368
6976
|
/**
|
5369
|
-
* VatRollInvoiceOCR请求参数结构体
|
6977
|
+
* VatRollInvoiceOCR请求参数结构体
|
6978
|
+
*/
|
6979
|
+
export interface VatRollInvoiceOCRRequest {
|
6980
|
+
/**
|
6981
|
+
* 图片的 Base64 值。
|
6982
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
6983
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
6984
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
6985
|
+
*/
|
6986
|
+
ImageBase64?: string
|
6987
|
+
|
6988
|
+
/**
|
6989
|
+
* 图片的 Url 地址。
|
6990
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
6991
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
6992
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
6993
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
6994
|
+
*/
|
6995
|
+
ImageUrl?: string
|
6996
|
+
|
6997
|
+
/**
|
6998
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
6999
|
+
*/
|
7000
|
+
IsPdf?: boolean
|
7001
|
+
|
7002
|
+
/**
|
7003
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
7004
|
+
*/
|
7005
|
+
PdfPageNumber?: number
|
7006
|
+
}
|
7007
|
+
|
7008
|
+
/**
|
7009
|
+
* 机票行程单
|
7010
|
+
*/
|
7011
|
+
export interface AirTransport {
|
7012
|
+
/**
|
7013
|
+
* 发票名称
|
7014
|
+
*/
|
7015
|
+
Title?: string
|
7016
|
+
|
7017
|
+
/**
|
7018
|
+
* 电子客票号码
|
7019
|
+
*/
|
7020
|
+
Number?: string
|
7021
|
+
|
7022
|
+
/**
|
7023
|
+
* 校验码
|
7024
|
+
*/
|
7025
|
+
CheckCode?: string
|
7026
|
+
|
7027
|
+
/**
|
7028
|
+
* 印刷序号
|
7029
|
+
*/
|
7030
|
+
SerialNumber?: string
|
7031
|
+
|
7032
|
+
/**
|
7033
|
+
* 开票日期
|
7034
|
+
*/
|
7035
|
+
Date?: string
|
7036
|
+
|
7037
|
+
/**
|
7038
|
+
* 销售单位代号
|
7039
|
+
*/
|
7040
|
+
AgentCode?: string
|
7041
|
+
|
7042
|
+
/**
|
7043
|
+
* 销售单位代号第一行
|
7044
|
+
*/
|
7045
|
+
AgentCodeFirst?: string
|
7046
|
+
|
7047
|
+
/**
|
7048
|
+
* 销售单位代号第二行
|
7049
|
+
*/
|
7050
|
+
AgentCodeSecond?: string
|
7051
|
+
|
7052
|
+
/**
|
7053
|
+
* 姓名
|
7054
|
+
*/
|
7055
|
+
UserName?: string
|
7056
|
+
|
7057
|
+
/**
|
7058
|
+
* 身份证号
|
7059
|
+
*/
|
7060
|
+
UserID?: string
|
7061
|
+
|
7062
|
+
/**
|
7063
|
+
* 填开单位
|
7064
|
+
*/
|
7065
|
+
Issuer?: string
|
7066
|
+
|
7067
|
+
/**
|
7068
|
+
* 票价
|
7069
|
+
*/
|
7070
|
+
Fare?: string
|
7071
|
+
|
7072
|
+
/**
|
7073
|
+
* 合计税额
|
7074
|
+
*/
|
7075
|
+
Tax?: string
|
7076
|
+
|
7077
|
+
/**
|
7078
|
+
* 燃油附加费
|
7079
|
+
*/
|
7080
|
+
FuelSurcharge?: string
|
7081
|
+
|
7082
|
+
/**
|
7083
|
+
* 民航发展基金
|
7084
|
+
*/
|
7085
|
+
AirDevelopmentFund?: string
|
7086
|
+
|
7087
|
+
/**
|
7088
|
+
* 保险费
|
7089
|
+
*/
|
7090
|
+
Insurance?: string
|
7091
|
+
|
7092
|
+
/**
|
7093
|
+
* 合计金额(小写)
|
7094
|
+
*/
|
7095
|
+
Total?: string
|
7096
|
+
|
7097
|
+
/**
|
7098
|
+
* 发票消费类型
|
7099
|
+
*/
|
7100
|
+
Kind?: string
|
7101
|
+
|
7102
|
+
/**
|
7103
|
+
* 国内国际标签
|
7104
|
+
*/
|
7105
|
+
DomesticInternationalTag?: string
|
7106
|
+
|
7107
|
+
/**
|
7108
|
+
* 客票生效日期
|
7109
|
+
*/
|
7110
|
+
DateStart?: string
|
7111
|
+
|
7112
|
+
/**
|
7113
|
+
* 有效截至日期
|
7114
|
+
*/
|
7115
|
+
DateEnd?: string
|
7116
|
+
|
7117
|
+
/**
|
7118
|
+
* 签注
|
7119
|
+
*/
|
7120
|
+
Endorsement?: string
|
7121
|
+
|
7122
|
+
/**
|
7123
|
+
* 是否存在二维码(1:有,0:无)
|
7124
|
+
*/
|
7125
|
+
QRCodeMark?: number
|
7126
|
+
|
7127
|
+
/**
|
7128
|
+
* 条目
|
7129
|
+
*/
|
7130
|
+
FlightItems?: Array<FlightItem>
|
7131
|
+
}
|
7132
|
+
|
7133
|
+
/**
|
7134
|
+
* VerifyEnterpriseFourFactors请求参数结构体
|
5370
7135
|
*/
|
5371
|
-
export interface
|
7136
|
+
export interface VerifyEnterpriseFourFactorsRequest {
|
5372
7137
|
/**
|
5373
|
-
|
5374
|
-
|
5375
|
-
|
5376
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5377
|
-
*/
|
5378
|
-
ImageBase64?: string
|
7138
|
+
* 姓名
|
7139
|
+
*/
|
7140
|
+
RealName: string
|
5379
7141
|
|
5380
7142
|
/**
|
5381
|
-
|
5382
|
-
|
5383
|
-
|
5384
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5385
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5386
|
-
*/
|
5387
|
-
ImageUrl?: string
|
7143
|
+
* 证件号码(公司注册证件号)
|
7144
|
+
*/
|
7145
|
+
IdCard: string
|
5388
7146
|
|
5389
7147
|
/**
|
5390
|
-
*
|
7148
|
+
* 企业全称
|
5391
7149
|
*/
|
5392
|
-
|
7150
|
+
EnterpriseName: string
|
5393
7151
|
|
5394
7152
|
/**
|
5395
|
-
*
|
7153
|
+
* 企业标识(注册号,统一社会信用代码)
|
5396
7154
|
*/
|
5397
|
-
|
7155
|
+
EnterpriseMark: string
|
5398
7156
|
}
|
5399
7157
|
|
5400
7158
|
/**
|
@@ -5721,6 +7479,39 @@ export interface FormulaOCRRequest {
|
|
5721
7479
|
ImageUrl?: string
|
5722
7480
|
}
|
5723
7481
|
|
7482
|
+
/**
|
7483
|
+
* 文字识别结果
|
7484
|
+
*/
|
7485
|
+
export interface TextGeneralHandwriting {
|
7486
|
+
/**
|
7487
|
+
* 识别出的文本行内容
|
7488
|
+
*/
|
7489
|
+
DetectedText: string
|
7490
|
+
|
7491
|
+
/**
|
7492
|
+
* 置信度 0 - 100
|
7493
|
+
*/
|
7494
|
+
Confidence: number
|
7495
|
+
|
7496
|
+
/**
|
7497
|
+
* 文本行坐标,以四个顶点坐标表示
|
7498
|
+
*/
|
7499
|
+
Polygon: Array<Coord>
|
7500
|
+
|
7501
|
+
/**
|
7502
|
+
* 此字段为扩展字段。
|
7503
|
+
能返回文本行的段落信息,例如:{\"Parag\":{\"ParagNo\":2}},
|
7504
|
+
其中ParagNo为段落行,从1开始。
|
7505
|
+
*/
|
7506
|
+
AdvancedInfo: string
|
7507
|
+
|
7508
|
+
/**
|
7509
|
+
* 字的坐标数组,以四个顶点坐标表示
|
7510
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
7511
|
+
*/
|
7512
|
+
WordPolygon: Array<Polygon>
|
7513
|
+
}
|
7514
|
+
|
5724
7515
|
/**
|
5725
7516
|
* PassportOCR请求参数结构体
|
5726
7517
|
*/
|
@@ -5856,6 +7647,66 @@ export interface QueryBarCodeRequest {
|
|
5856
7647
|
BarCode: string
|
5857
7648
|
}
|
5858
7649
|
|
7650
|
+
/**
|
7651
|
+
* 过路过桥费发票
|
7652
|
+
*/
|
7653
|
+
export interface TollInvoice {
|
7654
|
+
/**
|
7655
|
+
* 发票名称
|
7656
|
+
*/
|
7657
|
+
Title?: string
|
7658
|
+
|
7659
|
+
/**
|
7660
|
+
* 发票代码
|
7661
|
+
*/
|
7662
|
+
Code?: string
|
7663
|
+
|
7664
|
+
/**
|
7665
|
+
* 发票号码
|
7666
|
+
*/
|
7667
|
+
Number?: string
|
7668
|
+
|
7669
|
+
/**
|
7670
|
+
* 价税合计(小写)
|
7671
|
+
*/
|
7672
|
+
Total?: string
|
7673
|
+
|
7674
|
+
/**
|
7675
|
+
* 发票消费类型
|
7676
|
+
*/
|
7677
|
+
Kind?: string
|
7678
|
+
|
7679
|
+
/**
|
7680
|
+
* 日期
|
7681
|
+
*/
|
7682
|
+
Date?: string
|
7683
|
+
|
7684
|
+
/**
|
7685
|
+
* 时间
|
7686
|
+
*/
|
7687
|
+
Time?: string
|
7688
|
+
|
7689
|
+
/**
|
7690
|
+
* 入口
|
7691
|
+
*/
|
7692
|
+
Entrance?: string
|
7693
|
+
|
7694
|
+
/**
|
7695
|
+
* 出口
|
7696
|
+
*/
|
7697
|
+
Exit?: string
|
7698
|
+
|
7699
|
+
/**
|
7700
|
+
* 高速标志(0:没有,1:有)
|
7701
|
+
*/
|
7702
|
+
HighwayMark?: number
|
7703
|
+
|
7704
|
+
/**
|
7705
|
+
* 是否存在二维码(1:有,0:无)
|
7706
|
+
*/
|
7707
|
+
QRCodeMark?: number
|
7708
|
+
}
|
7709
|
+
|
5859
7710
|
/**
|
5860
7711
|
* 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
|
5861
7712
|
*/
|
@@ -5967,6 +7818,81 @@ No:不识别其他类型发票
|
|
5967
7818
|
ReturnMultiplePage?: boolean
|
5968
7819
|
}
|
5969
7820
|
|
7821
|
+
/**
|
7822
|
+
* 轮船票
|
7823
|
+
*/
|
7824
|
+
export interface ShippingInvoice {
|
7825
|
+
/**
|
7826
|
+
* 发票名称
|
7827
|
+
*/
|
7828
|
+
Title?: string
|
7829
|
+
|
7830
|
+
/**
|
7831
|
+
* 是否存在二维码(1:有,0:无)
|
7832
|
+
*/
|
7833
|
+
QRCodeMark?: number
|
7834
|
+
|
7835
|
+
/**
|
7836
|
+
* 发票代码
|
7837
|
+
*/
|
7838
|
+
Code?: string
|
7839
|
+
|
7840
|
+
/**
|
7841
|
+
* 发票号码
|
7842
|
+
*/
|
7843
|
+
Number?: string
|
7844
|
+
|
7845
|
+
/**
|
7846
|
+
* 姓名
|
7847
|
+
*/
|
7848
|
+
UserName?: string
|
7849
|
+
|
7850
|
+
/**
|
7851
|
+
* 日期
|
7852
|
+
*/
|
7853
|
+
Date?: string
|
7854
|
+
|
7855
|
+
/**
|
7856
|
+
* 时间
|
7857
|
+
*/
|
7858
|
+
Time?: string
|
7859
|
+
|
7860
|
+
/**
|
7861
|
+
* 出发车站
|
7862
|
+
*/
|
7863
|
+
StationGetOn?: string
|
7864
|
+
|
7865
|
+
/**
|
7866
|
+
* 到达车站
|
7867
|
+
*/
|
7868
|
+
StationGetOff?: string
|
7869
|
+
|
7870
|
+
/**
|
7871
|
+
* 票价
|
7872
|
+
*/
|
7873
|
+
Total?: string
|
7874
|
+
|
7875
|
+
/**
|
7876
|
+
* 发票消费类型
|
7877
|
+
*/
|
7878
|
+
Kind?: string
|
7879
|
+
|
7880
|
+
/**
|
7881
|
+
* 省
|
7882
|
+
*/
|
7883
|
+
Province?: string
|
7884
|
+
|
7885
|
+
/**
|
7886
|
+
* 市
|
7887
|
+
*/
|
7888
|
+
City?: string
|
7889
|
+
|
7890
|
+
/**
|
7891
|
+
* 币种
|
7892
|
+
*/
|
7893
|
+
CurrencyCode?: string
|
7894
|
+
}
|
7895
|
+
|
5970
7896
|
/**
|
5971
7897
|
* 表格内容检测
|
5972
7898
|
*/
|
@@ -6149,6 +8075,121 @@ export interface ResidenceBookletOCRResponse {
|
|
6149
8075
|
RequestId?: string
|
6150
8076
|
}
|
6151
8077
|
|
8078
|
+
/**
|
8079
|
+
* 增值税普通发票(卷票)
|
8080
|
+
*/
|
8081
|
+
export interface VatInvoiceRoll {
|
8082
|
+
/**
|
8083
|
+
* 发票名称
|
8084
|
+
*/
|
8085
|
+
Title?: string
|
8086
|
+
|
8087
|
+
/**
|
8088
|
+
* 发票代码
|
8089
|
+
*/
|
8090
|
+
Code?: string
|
8091
|
+
|
8092
|
+
/**
|
8093
|
+
* 发票号码
|
8094
|
+
*/
|
8095
|
+
Number?: string
|
8096
|
+
|
8097
|
+
/**
|
8098
|
+
* 机打发票号码
|
8099
|
+
*/
|
8100
|
+
NumberConfirm?: string
|
8101
|
+
|
8102
|
+
/**
|
8103
|
+
* 开票日期
|
8104
|
+
*/
|
8105
|
+
Date?: string
|
8106
|
+
|
8107
|
+
/**
|
8108
|
+
* 校验码
|
8109
|
+
*/
|
8110
|
+
CheckCode?: string
|
8111
|
+
|
8112
|
+
/**
|
8113
|
+
* 销售方名称
|
8114
|
+
*/
|
8115
|
+
Seller?: string
|
8116
|
+
|
8117
|
+
/**
|
8118
|
+
* 销售方纳税人识别号
|
8119
|
+
*/
|
8120
|
+
SellerTaxID?: string
|
8121
|
+
|
8122
|
+
/**
|
8123
|
+
* 购买方名称
|
8124
|
+
*/
|
8125
|
+
Buyer?: string
|
8126
|
+
|
8127
|
+
/**
|
8128
|
+
* 购买方纳税人识别号
|
8129
|
+
*/
|
8130
|
+
BuyerTaxID?: string
|
8131
|
+
|
8132
|
+
/**
|
8133
|
+
* 种类
|
8134
|
+
*/
|
8135
|
+
Category?: string
|
8136
|
+
|
8137
|
+
/**
|
8138
|
+
* 价税合计(小写)
|
8139
|
+
*/
|
8140
|
+
Total?: string
|
8141
|
+
|
8142
|
+
/**
|
8143
|
+
* 价税合计(大写)
|
8144
|
+
*/
|
8145
|
+
TotalCn?: string
|
8146
|
+
|
8147
|
+
/**
|
8148
|
+
* 发票消费类型
|
8149
|
+
*/
|
8150
|
+
Kind?: string
|
8151
|
+
|
8152
|
+
/**
|
8153
|
+
* 省
|
8154
|
+
*/
|
8155
|
+
Province?: string
|
8156
|
+
|
8157
|
+
/**
|
8158
|
+
* 市
|
8159
|
+
*/
|
8160
|
+
City?: string
|
8161
|
+
|
8162
|
+
/**
|
8163
|
+
* 是否有公司印章(0:没有,1:有)
|
8164
|
+
*/
|
8165
|
+
CompanySealMark?: number
|
8166
|
+
|
8167
|
+
/**
|
8168
|
+
* 是否存在二维码(1:有,0:无)
|
8169
|
+
*/
|
8170
|
+
QRCodeMark?: number
|
8171
|
+
|
8172
|
+
/**
|
8173
|
+
* 服务类型
|
8174
|
+
*/
|
8175
|
+
ServiceName?: string
|
8176
|
+
|
8177
|
+
/**
|
8178
|
+
* 公司印章内容
|
8179
|
+
*/
|
8180
|
+
CompanySealContent?: string
|
8181
|
+
|
8182
|
+
/**
|
8183
|
+
* 税务局章内容
|
8184
|
+
*/
|
8185
|
+
TaxSealContent?: string
|
8186
|
+
|
8187
|
+
/**
|
8188
|
+
* 条目
|
8189
|
+
*/
|
8190
|
+
VatRollItems?: Array<VatRollItem>
|
8191
|
+
}
|
8192
|
+
|
6152
8193
|
/**
|
6153
8194
|
* CarInvoiceOCR返回参数结构体
|
6154
8195
|
*/
|
@@ -6259,6 +8300,26 @@ export interface ShipInvoiceOCRResponse {
|
|
6259
8300
|
RequestId?: string
|
6260
8301
|
}
|
6261
8302
|
|
8303
|
+
/**
|
8304
|
+
* RecognizeGeneralInvoice返回参数结构体
|
8305
|
+
*/
|
8306
|
+
export interface RecognizeGeneralInvoiceResponse {
|
8307
|
+
/**
|
8308
|
+
* 混贴票据识别结果,具体内容请点击左侧链接。
|
8309
|
+
*/
|
8310
|
+
MixedInvoiceItems?: Array<InvoiceItem>
|
8311
|
+
|
8312
|
+
/**
|
8313
|
+
* PDF文件总页码
|
8314
|
+
*/
|
8315
|
+
TotalPDFCount?: number
|
8316
|
+
|
8317
|
+
/**
|
8318
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8319
|
+
*/
|
8320
|
+
RequestId?: string
|
8321
|
+
}
|
8322
|
+
|
6262
8323
|
/**
|
6263
8324
|
* 保险单据信息
|
6264
8325
|
*/
|
@@ -6334,6 +8395,21 @@ export interface RecognizeMedicalInvoiceOCRRequest {
|
|
6334
8395
|
PdfPageNumber?: number
|
6335
8396
|
}
|
6336
8397
|
|
8398
|
+
/**
|
8399
|
+
* InsuranceBillOCR返回参数结构体
|
8400
|
+
*/
|
8401
|
+
export interface InsuranceBillOCRResponse {
|
8402
|
+
/**
|
8403
|
+
* 保险单据识别结果,具体内容请点击左侧链接。
|
8404
|
+
*/
|
8405
|
+
InsuranceBillInfos: Array<InsuranceBillInfo>
|
8406
|
+
|
8407
|
+
/**
|
8408
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8409
|
+
*/
|
8410
|
+
RequestId?: string
|
8411
|
+
}
|
8412
|
+
|
6337
8413
|
/**
|
6338
8414
|
* 卡证智能分类结果
|
6339
8415
|
*/
|
@@ -6903,6 +8979,116 @@ export interface MLIDCardOCRRequest {
|
|
6903
8979
|
RetImage?: boolean
|
6904
8980
|
}
|
6905
8981
|
|
8982
|
+
/**
|
8983
|
+
* OtherInvoiceItem
|
8984
|
+
*/
|
8985
|
+
export interface OtherInvoiceItem {
|
8986
|
+
/**
|
8987
|
+
* 票面key值
|
8988
|
+
*/
|
8989
|
+
Name?: string
|
8990
|
+
|
8991
|
+
/**
|
8992
|
+
* 票面value值
|
8993
|
+
*/
|
8994
|
+
Value?: string
|
8995
|
+
}
|
8996
|
+
|
8997
|
+
/**
|
8998
|
+
* 出租车发票
|
8999
|
+
*/
|
9000
|
+
export interface TaxiTicket {
|
9001
|
+
/**
|
9002
|
+
* 发票名称
|
9003
|
+
*/
|
9004
|
+
Title?: string
|
9005
|
+
|
9006
|
+
/**
|
9007
|
+
* 是否存在二维码(1:有,0:无)
|
9008
|
+
*/
|
9009
|
+
QRCodeMark?: number
|
9010
|
+
|
9011
|
+
/**
|
9012
|
+
* 发票代码
|
9013
|
+
*/
|
9014
|
+
Code?: string
|
9015
|
+
|
9016
|
+
/**
|
9017
|
+
* 发票号码
|
9018
|
+
*/
|
9019
|
+
Number?: string
|
9020
|
+
|
9021
|
+
/**
|
9022
|
+
* 开票日期
|
9023
|
+
*/
|
9024
|
+
Date?: string
|
9025
|
+
|
9026
|
+
/**
|
9027
|
+
* 上车时间
|
9028
|
+
*/
|
9029
|
+
TimeGetOn?: string
|
9030
|
+
|
9031
|
+
/**
|
9032
|
+
* 下车时间
|
9033
|
+
*/
|
9034
|
+
TimeGetOff?: string
|
9035
|
+
|
9036
|
+
/**
|
9037
|
+
* 单价
|
9038
|
+
*/
|
9039
|
+
Price?: string
|
9040
|
+
|
9041
|
+
/**
|
9042
|
+
* 里程
|
9043
|
+
*/
|
9044
|
+
Mileage?: string
|
9045
|
+
|
9046
|
+
/**
|
9047
|
+
* 总金额
|
9048
|
+
*/
|
9049
|
+
Total?: string
|
9050
|
+
|
9051
|
+
/**
|
9052
|
+
* 发票所在地
|
9053
|
+
*/
|
9054
|
+
Place?: string
|
9055
|
+
|
9056
|
+
/**
|
9057
|
+
* 省
|
9058
|
+
*/
|
9059
|
+
Province?: string
|
9060
|
+
|
9061
|
+
/**
|
9062
|
+
* 市
|
9063
|
+
*/
|
9064
|
+
City?: string
|
9065
|
+
|
9066
|
+
/**
|
9067
|
+
* 发票消费类型
|
9068
|
+
*/
|
9069
|
+
Kind?: string
|
9070
|
+
|
9071
|
+
/**
|
9072
|
+
* 车牌号
|
9073
|
+
*/
|
9074
|
+
LicensePlate?: string
|
9075
|
+
|
9076
|
+
/**
|
9077
|
+
* 燃油附加费
|
9078
|
+
*/
|
9079
|
+
FuelFee?: string
|
9080
|
+
|
9081
|
+
/**
|
9082
|
+
* 预约叫车服务费
|
9083
|
+
*/
|
9084
|
+
BookingCallFee?: string
|
9085
|
+
|
9086
|
+
/**
|
9087
|
+
* 是否有公司印章(0:没有,1:有)
|
9088
|
+
*/
|
9089
|
+
CompanySealMark?: number
|
9090
|
+
}
|
9091
|
+
|
6906
9092
|
/**
|
6907
9093
|
* EnglishOCR返回参数结构体
|
6908
9094
|
*/
|
@@ -7141,6 +9327,61 @@ export interface EnterpriseLicenseInfo {
|
|
7141
9327
|
Value: string
|
7142
9328
|
}
|
7143
9329
|
|
9330
|
+
/**
|
9331
|
+
* 定额发票
|
9332
|
+
*/
|
9333
|
+
export interface QuotaInvoice {
|
9334
|
+
/**
|
9335
|
+
* 发票名称
|
9336
|
+
*/
|
9337
|
+
Title?: string
|
9338
|
+
|
9339
|
+
/**
|
9340
|
+
* 发票代码
|
9341
|
+
*/
|
9342
|
+
Code?: string
|
9343
|
+
|
9344
|
+
/**
|
9345
|
+
* 发票号码
|
9346
|
+
*/
|
9347
|
+
Number?: string
|
9348
|
+
|
9349
|
+
/**
|
9350
|
+
* 价税合计(小写)
|
9351
|
+
*/
|
9352
|
+
Total?: string
|
9353
|
+
|
9354
|
+
/**
|
9355
|
+
* 价税合计(大写)
|
9356
|
+
*/
|
9357
|
+
TotalCn?: string
|
9358
|
+
|
9359
|
+
/**
|
9360
|
+
* 发票消费类型
|
9361
|
+
*/
|
9362
|
+
Kind?: string
|
9363
|
+
|
9364
|
+
/**
|
9365
|
+
* 省
|
9366
|
+
*/
|
9367
|
+
Province?: string
|
9368
|
+
|
9369
|
+
/**
|
9370
|
+
* 市
|
9371
|
+
*/
|
9372
|
+
City?: string
|
9373
|
+
|
9374
|
+
/**
|
9375
|
+
* 是否存在二维码(1:有,0:无)
|
9376
|
+
*/
|
9377
|
+
QRCodeMark?: number
|
9378
|
+
|
9379
|
+
/**
|
9380
|
+
* 是否有公司印章(0:没有,1:有)
|
9381
|
+
*/
|
9382
|
+
CompanySealMark?: number
|
9383
|
+
}
|
9384
|
+
|
7144
9385
|
/**
|
7145
9386
|
* InsuranceBillOCR请求参数结构体
|
7146
9387
|
*/
|
@@ -8154,6 +10395,176 @@ export interface FinanBillOCRRequest {
|
|
8154
10395
|
ImageUrl?: string
|
8155
10396
|
}
|
8156
10397
|
|
10398
|
+
/**
|
10399
|
+
* 二手车销售统一发票
|
10400
|
+
*/
|
10401
|
+
export interface UsedCarPurchaseInvoice {
|
10402
|
+
/**
|
10403
|
+
* 发票名称
|
10404
|
+
*/
|
10405
|
+
Title?: string
|
10406
|
+
|
10407
|
+
/**
|
10408
|
+
* 是否存在二维码(0:没有,1:有)
|
10409
|
+
*/
|
10410
|
+
QRCodeMark?: number
|
10411
|
+
|
10412
|
+
/**
|
10413
|
+
* 发票代码
|
10414
|
+
*/
|
10415
|
+
Code?: string
|
10416
|
+
|
10417
|
+
/**
|
10418
|
+
* 发票号码
|
10419
|
+
*/
|
10420
|
+
Number?: string
|
10421
|
+
|
10422
|
+
/**
|
10423
|
+
* 开票日期
|
10424
|
+
*/
|
10425
|
+
Date?: string
|
10426
|
+
|
10427
|
+
/**
|
10428
|
+
* 价税合计(小写)
|
10429
|
+
*/
|
10430
|
+
Total?: string
|
10431
|
+
|
10432
|
+
/**
|
10433
|
+
* 价税合计(大写)
|
10434
|
+
*/
|
10435
|
+
TotalCn?: string
|
10436
|
+
|
10437
|
+
/**
|
10438
|
+
* 销货单位名称
|
10439
|
+
*/
|
10440
|
+
Seller?: string
|
10441
|
+
|
10442
|
+
/**
|
10443
|
+
* 销售方电话
|
10444
|
+
*/
|
10445
|
+
SellerTel?: string
|
10446
|
+
|
10447
|
+
/**
|
10448
|
+
* 销售方单位代码/个人身份证号
|
10449
|
+
*/
|
10450
|
+
SellerTaxID?: string
|
10451
|
+
|
10452
|
+
/**
|
10453
|
+
* 销售方地址
|
10454
|
+
*/
|
10455
|
+
SellerAddress?: string
|
10456
|
+
|
10457
|
+
/**
|
10458
|
+
* 购买方名称
|
10459
|
+
*/
|
10460
|
+
Buyer?: string
|
10461
|
+
|
10462
|
+
/**
|
10463
|
+
* 购买方单位代码/个人身份证号
|
10464
|
+
*/
|
10465
|
+
BuyerID?: string
|
10466
|
+
|
10467
|
+
/**
|
10468
|
+
* 购买方地址
|
10469
|
+
*/
|
10470
|
+
BuyerAddress?: string
|
10471
|
+
|
10472
|
+
/**
|
10473
|
+
* 购买方电话
|
10474
|
+
*/
|
10475
|
+
BuyerTel?: string
|
10476
|
+
|
10477
|
+
/**
|
10478
|
+
* 二手车市场
|
10479
|
+
*/
|
10480
|
+
CompanyName?: string
|
10481
|
+
|
10482
|
+
/**
|
10483
|
+
* 二手车市场纳税人识别号
|
10484
|
+
*/
|
10485
|
+
CompanyTaxID?: string
|
10486
|
+
|
10487
|
+
/**
|
10488
|
+
* 二手车市场开户银行和账号
|
10489
|
+
*/
|
10490
|
+
CompanyBankAccount?: string
|
10491
|
+
|
10492
|
+
/**
|
10493
|
+
* 二手车市场电话
|
10494
|
+
*/
|
10495
|
+
CompanyTel?: string
|
10496
|
+
|
10497
|
+
/**
|
10498
|
+
* 二手车市场地址
|
10499
|
+
*/
|
10500
|
+
CompanyAddress?: string
|
10501
|
+
|
10502
|
+
/**
|
10503
|
+
* 转入地车辆管理所名称
|
10504
|
+
*/
|
10505
|
+
TransferAdministrationName?: string
|
10506
|
+
|
10507
|
+
/**
|
10508
|
+
* 车牌号
|
10509
|
+
*/
|
10510
|
+
LicensePlate?: string
|
10511
|
+
|
10512
|
+
/**
|
10513
|
+
* 登记证号
|
10514
|
+
*/
|
10515
|
+
RegistrationNumber?: string
|
10516
|
+
|
10517
|
+
/**
|
10518
|
+
* 车辆识别代码
|
10519
|
+
*/
|
10520
|
+
VIN?: string
|
10521
|
+
|
10522
|
+
/**
|
10523
|
+
* 厂牌型号
|
10524
|
+
*/
|
10525
|
+
VehicleModel?: string
|
10526
|
+
|
10527
|
+
/**
|
10528
|
+
* 发票消费类型
|
10529
|
+
*/
|
10530
|
+
Kind?: string
|
10531
|
+
|
10532
|
+
/**
|
10533
|
+
* 省
|
10534
|
+
*/
|
10535
|
+
Province?: string
|
10536
|
+
|
10537
|
+
/**
|
10538
|
+
* 市
|
10539
|
+
*/
|
10540
|
+
City?: string
|
10541
|
+
|
10542
|
+
/**
|
10543
|
+
* 车辆类型
|
10544
|
+
*/
|
10545
|
+
VehicleType?: string
|
10546
|
+
|
10547
|
+
/**
|
10548
|
+
* 备注
|
10549
|
+
*/
|
10550
|
+
Remark?: string
|
10551
|
+
|
10552
|
+
/**
|
10553
|
+
* 发票联次
|
10554
|
+
*/
|
10555
|
+
FormType?: string
|
10556
|
+
|
10557
|
+
/**
|
10558
|
+
* 发票联名
|
10559
|
+
*/
|
10560
|
+
FormName?: string
|
10561
|
+
|
10562
|
+
/**
|
10563
|
+
* 是否有公司印章(0:没有,1:有)
|
10564
|
+
*/
|
10565
|
+
CompanySealMark?: number
|
10566
|
+
}
|
10567
|
+
|
8157
10568
|
/**
|
8158
10569
|
* VerifyEnterpriseFourFactors返回参数结构体
|
8159
10570
|
*/
|