Class: TencentCloud::Ocr::V20181119::MixedInvoiceDetectResponse

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

Overview

MixedInvoiceDetect返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invoicedetectinfos = nil, requestid = nil) ⇒ MixedInvoiceDetectResponse

Returns a new instance of MixedInvoiceDetectResponse.



5897
5898
5899
5900
# File 'lib/v20181119/models.rb', line 5897

def initialize(invoicedetectinfos=nil, requestid=nil)
  @InvoiceDetectInfos = invoicedetectinfos
  @RequestId = requestid
end

Instance Attribute Details

#InvoiceDetectInfosObject

Parameters:

  • InvoiceDetectInfos:

    检测出的票据类型列表,具体内容请点击左侧链接。

  • RequestId:

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



5895
5896
5897
# File 'lib/v20181119/models.rb', line 5895

def InvoiceDetectInfos
  @InvoiceDetectInfos
end

#RequestIdObject

Parameters:

  • InvoiceDetectInfos:

    检测出的票据类型列表,具体内容请点击左侧链接。

  • RequestId:

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



5895
5896
5897
# File 'lib/v20181119/models.rb', line 5895

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
# File 'lib/v20181119/models.rb', line 5902

def deserialize(params)
  unless params['InvoiceDetectInfos'].nil?
    @InvoiceDetectInfos = []
    params['InvoiceDetectInfos'].each do |i|
      invoicedetectinfo_tmp = InvoiceDetectInfo.new
      invoicedetectinfo_tmp.deserialize(i)
      @InvoiceDetectInfos << invoicedetectinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end