Class: TencentCloud::Ocr::V20181119::MixedInvoiceOCRResponse

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

Overview

MixedInvoiceOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mixedinvoiceitems = nil, requestid = nil) ⇒ MixedInvoiceOCRResponse

Returns a new instance of MixedInvoiceOCRResponse.



6051
6052
6053
6054
# File 'lib/v20181119/models.rb', line 6051

def initialize(mixedinvoiceitems=nil, requestid=nil)
  @MixedInvoiceItems = mixedinvoiceitems
  @RequestId = requestid
end

Instance Attribute Details

#MixedInvoiceItemsObject

Parameters:

  • MixedInvoiceItems:

    混贴票据识别结果,具体内容请点击左侧链接。

  • RequestId:

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



6049
6050
6051
# File 'lib/v20181119/models.rb', line 6049

def MixedInvoiceItems
  @MixedInvoiceItems
end

#RequestIdObject

Parameters:

  • MixedInvoiceItems:

    混贴票据识别结果,具体内容请点击左侧链接。

  • RequestId:

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



6049
6050
6051
# File 'lib/v20181119/models.rb', line 6049

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
# File 'lib/v20181119/models.rb', line 6056

def deserialize(params)
  unless params['MixedInvoiceItems'].nil?
    @MixedInvoiceItems = []
    params['MixedInvoiceItems'].each do |i|
      mixedinvoiceitem_tmp = MixedInvoiceItem.new
      mixedinvoiceitem_tmp.deserialize(i)
      @MixedInvoiceItems << mixedinvoiceitem_tmp
    end
  end
  @RequestId = params['RequestId']
end