Class: TencentCloud::Ocr::V20181119::RecognizeGeneralInvoiceResponse

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

Overview

RecognizeGeneralInvoice返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mixedinvoiceitems = nil, totalpdfcount = nil, requestid = nil) ⇒ RecognizeGeneralInvoiceResponse

Returns a new instance of RecognizeGeneralInvoiceResponse.



8038
8039
8040
8041
8042
# File 'lib/v20181119/models.rb', line 8038

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

Instance Attribute Details

#MixedInvoiceItemsObject

Parameters:

  • MixedInvoiceItems:

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

  • TotalPDFCount:

    PDF文件总页码

  • RequestId:

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



8036
8037
8038
# File 'lib/v20181119/models.rb', line 8036

def MixedInvoiceItems
  @MixedInvoiceItems
end

#RequestIdObject

Parameters:

  • MixedInvoiceItems:

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

  • TotalPDFCount:

    PDF文件总页码

  • RequestId:

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



8036
8037
8038
# File 'lib/v20181119/models.rb', line 8036

def RequestId
  @RequestId
end

#TotalPDFCountObject

Parameters:

  • MixedInvoiceItems:

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

  • TotalPDFCount:

    PDF文件总页码

  • RequestId:

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



8036
8037
8038
# File 'lib/v20181119/models.rb', line 8036

def TotalPDFCount
  @TotalPDFCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
# File 'lib/v20181119/models.rb', line 8044

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