Class: TencentCloud::Ocr::V20181119::CarInvoiceOCRResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

CarInvoiceOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(carinvoiceinfos = nil, requestid = nil) ⇒ CarInvoiceOCRResponse

Returns a new instance of CarInvoiceOCRResponse.



1167
1168
1169
1170
# File 'lib/v20181119/models.rb', line 1167

def initialize(carinvoiceinfos=nil, requestid=nil)
  @CarInvoiceInfos = carinvoiceinfos
  @RequestId = requestid
end

Instance Attribute Details

#CarInvoiceInfosObject

Parameters:

  • CarInvoiceInfos:

    购车发票识别结果,具体内容请点击左侧链接。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1165
1166
1167
# File 'lib/v20181119/models.rb', line 1165

def CarInvoiceInfos
  @CarInvoiceInfos
end

#RequestIdObject

Parameters:

  • CarInvoiceInfos:

    购车发票识别结果,具体内容请点击左侧链接。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



1165
1166
1167
# File 'lib/v20181119/models.rb', line 1165

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
# File 'lib/v20181119/models.rb', line 1172

def deserialize(params)
  unless params['CarInvoiceInfos'].nil?
    @CarInvoiceInfos = []
    params['CarInvoiceInfos'].each do |i|
      carinvoiceinfo_tmp = CarInvoiceInfo.new
      carinvoiceinfo_tmp.deserialize(i)
      @CarInvoiceInfos << carinvoiceinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end