Class: TencentCloud::Ocr::V20181119::DutyPaidProofOCRResponse

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

Overview

DutyPaidProofOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dutypaidproofinfos = nil, angle = nil, requestid = nil) ⇒ DutyPaidProofOCRResponse

Returns a new instance of DutyPaidProofOCRResponse.



1887
1888
1889
1890
1891
# File 'lib/v20181119/models.rb', line 1887

def initialize(dutypaidproofinfos=nil, angle=nil, requestid=nil)
  @DutyPaidProofInfos = dutypaidproofinfos
  @Angle = angle
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • DutyPaidProofInfos:

    完税证明识别结果,具体内容请点击左侧链接。

  • Angle:

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

  • RequestId:

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



1885
1886
1887
# File 'lib/v20181119/models.rb', line 1885

def Angle
  @Angle
end

#DutyPaidProofInfosObject

Parameters:

  • DutyPaidProofInfos:

    完税证明识别结果,具体内容请点击左侧链接。

  • Angle:

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

  • RequestId:

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



1885
1886
1887
# File 'lib/v20181119/models.rb', line 1885

def DutyPaidProofInfos
  @DutyPaidProofInfos
end

#RequestIdObject

Parameters:

  • DutyPaidProofInfos:

    完税证明识别结果,具体内容请点击左侧链接。

  • Angle:

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

  • RequestId:

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



1885
1886
1887
# File 'lib/v20181119/models.rb', line 1885

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
# File 'lib/v20181119/models.rb', line 1893

def deserialize(params)
  unless params['DutyPaidProofInfos'].nil?
    @DutyPaidProofInfos = []
    params['DutyPaidProofInfos'].each do |i|
      dutypaidproofinfo_tmp = DutyPaidProofInfo.new
      dutypaidproofinfo_tmp.deserialize(i)
      @DutyPaidProofInfos << dutypaidproofinfo_tmp
    end
  end
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end