Class: TencentCloud::Ocr::V20181119::FlightInvoiceOCRResponse

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

Overview

FlightInvoiceOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flightinvoiceinfos = nil, requestid = nil) ⇒ FlightInvoiceOCRResponse

Returns a new instance of FlightInvoiceOCRResponse.



3202
3203
3204
3205
# File 'lib/v20181119/models.rb', line 3202

def initialize(flightinvoiceinfos=nil, requestid=nil)
  @FlightInvoiceInfos = flightinvoiceinfos
  @RequestId = requestid
end

Instance Attribute Details

#FlightInvoiceInfosObject

Parameters:

  • FlightInvoiceInfos:

    机票行程单识别结果,具体内容请点击左侧链接。

  • RequestId:

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



3200
3201
3202
# File 'lib/v20181119/models.rb', line 3200

def FlightInvoiceInfos
  @FlightInvoiceInfos
end

#RequestIdObject

Parameters:

  • FlightInvoiceInfos:

    机票行程单识别结果,具体内容请点击左侧链接。

  • RequestId:

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



3200
3201
3202
# File 'lib/v20181119/models.rb', line 3200

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
# File 'lib/v20181119/models.rb', line 3207

def deserialize(params)
  unless params['FlightInvoiceInfos'].nil?
    @FlightInvoiceInfos = []
    params['FlightInvoiceInfos'].each do |i|
      flightinvoiceinfo_tmp = FlightInvoiceInfo.new
      flightinvoiceinfo_tmp.deserialize(i)
      @FlightInvoiceInfos << flightinvoiceinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end