lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.519 vs lib/v20181119/client.rb in tencentcloud-sdk-ocr-3.0.520
- old
+ new
@@ -105,10 +105,11 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持银行回单全字段的识别,包括付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
+ # 默认接口请求频率限制:10次/秒。
# @param request: Request instance for BankSlipOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::BankSlipOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::BankSlipOCRResponse`
def BankSlipOCR(request)
@@ -156,10 +157,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for BusInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::BusInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`
def BusInvoiceOCR(request)
body = send_request('BusInvoiceOCR', request.serialize)
@@ -312,10 +315,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for DutyPaidProofOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::DutyPaidProofOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`
def DutyPaidProofOCR(request)
body = send_request('DutyPaidProofOCR', request.serialize)
@@ -484,10 +489,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for FlightInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::FlightInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`
def FlightInvoiceOCR(request)
body = send_request('FlightInvoiceOCR', request.serialize)
@@ -1059,10 +1066,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for InvoiceGeneralOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::InvoiceGeneralOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`
def InvoiceGeneralOCR(request)
body = send_request('InvoiceGeneralOCR', request.serialize)
@@ -1381,10 +1390,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for QuotaInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::QuotaInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`
def QuotaInvoiceOCR(request)
body = send_request('QuotaInvoiceOCR', request.serialize)
@@ -1479,10 +1490,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for RecognizeMedicalInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`
def RecognizeMedicalInvoiceOCR(request)
body = send_request('RecognizeMedicalInvoiceOCR', request.serialize)
@@ -1773,10 +1786,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for ShipInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::ShipInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`
def ShipInvoiceOCR(request)
body = send_request('ShipInvoiceOCR', request.serialize)
@@ -1850,10 +1865,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for TaxiInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::TaxiInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`
def TaxiInvoiceOCR(request)
body = send_request('TaxiInvoiceOCR', request.serialize)
@@ -1898,10 +1915,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持对过路过桥费发票的发票代码、发票号码、日期、小写金额等关键字段的识别。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for TollInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::TollInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`
def TollInvoiceOCR(request)
body = send_request('TollInvoiceOCR', request.serialize)
@@ -1922,10 +1941,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
+ # 默认接口请求频率限制:5次/秒。
+
# @param request: Request instance for TrainTicketOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::TrainTicketOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`
def TrainTicketOCR(request)
body = send_request('TrainTicketOCR', request.serialize)
@@ -1972,10 +1993,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
+ # 默认接口请求频率限制:20次/秒。
+
# @param request: Request instance for VatInvoiceVerify.
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`
def VatInvoiceVerify(request)
body = send_request('VatInvoiceVerify', request.serialize)
@@ -1996,10 +2019,12 @@
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票、通用机打电子发票(广东和浙江)。
+ # 默认接口请求频率限制:20次/秒。
+
# @param request: Request instance for VatInvoiceVerifyNew.
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`
def VatInvoiceVerifyNew(request)
body = send_request('VatInvoiceVerifyNew', request.serialize)
@@ -2019,9 +2044,11 @@
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
# 本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。
+
+ # 默认接口请求频率限制:5次/秒。
# @param request: Request instance for VatRollInvoiceOCR.
# @type request: :class:`Tencentcloud::ocr::V20181119::VatRollInvoiceOCRRequest`
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`
def VatRollInvoiceOCR(request)
\ No newline at end of file