Class: TencentCloud::Ocr::V20181119::InvoiceGeneralOCRResponse

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

Overview

InvoiceGeneralOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invoicegeneralinfos = nil, angle = nil, requestid = nil) ⇒ InvoiceGeneralOCRResponse

Returns a new instance of InvoiceGeneralOCRResponse.



4643
4644
4645
4646
4647
# File 'lib/v20181119/models.rb', line 4643

def initialize(invoicegeneralinfos=nil, angle=nil, requestid=nil)
  @InvoiceGeneralInfos = invoicegeneralinfos
  @Angle = angle
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • InvoiceGeneralInfos:

    通用机打发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

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



4641
4642
4643
# File 'lib/v20181119/models.rb', line 4641

def Angle
  @Angle
end

#InvoiceGeneralInfosObject

Parameters:

  • InvoiceGeneralInfos:

    通用机打发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

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



4641
4642
4643
# File 'lib/v20181119/models.rb', line 4641

def InvoiceGeneralInfos
  @InvoiceGeneralInfos
end

#RequestIdObject

Parameters:

  • InvoiceGeneralInfos:

    通用机打发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

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



4641
4642
4643
# File 'lib/v20181119/models.rb', line 4641

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
# File 'lib/v20181119/models.rb', line 4649

def deserialize(params)
  unless params['InvoiceGeneralInfos'].nil?
    @InvoiceGeneralInfos = []
    params['InvoiceGeneralInfos'].each do |i|
      invoicegeneralinfo_tmp = InvoiceGeneralInfo.new
      invoicegeneralinfo_tmp.deserialize(i)
      @InvoiceGeneralInfos << invoicegeneralinfo_tmp
    end
  end
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end