Class: TencentCloud::Ocr::V20181119::VatInvoiceOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::VatInvoiceOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
VatInvoiceOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(vatinvoiceinfos = nil, items = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ VatInvoiceOCRResponse
constructor
A new instance of VatInvoiceOCRResponse.
Constructor Details
#initialize(vatinvoiceinfos = nil, items = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ VatInvoiceOCRResponse
Returns a new instance of VatInvoiceOCRResponse.
14158 14159 14160 14161 14162 14163 14164 |
# File 'lib/v20181119/models.rb', line 14158 def initialize(vatinvoiceinfos=nil, items=nil, pdfpagesize=nil, angle=nil, requestid=nil) @VatInvoiceInfos = vatinvoiceinfos @Items = items @PdfPageSize = pdfpagesize @Angle = angle @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
14156 14157 14158 |
# File 'lib/v20181119/models.rb', line 14156 def Angle @Angle end |
#Items ⇒ Object
14156 14157 14158 |
# File 'lib/v20181119/models.rb', line 14156 def Items @Items end |
#PdfPageSize ⇒ Object
14156 14157 14158 |
# File 'lib/v20181119/models.rb', line 14156 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
14156 14157 14158 |
# File 'lib/v20181119/models.rb', line 14156 def RequestId @RequestId end |
#VatInvoiceInfos ⇒ Object
14156 14157 14158 |
# File 'lib/v20181119/models.rb', line 14156 def VatInvoiceInfos @VatInvoiceInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 |
# File 'lib/v20181119/models.rb', line 14166 def deserialize(params) unless params['VatInvoiceInfos'].nil? @VatInvoiceInfos = [] params['VatInvoiceInfos'].each do |i| textvatinvoice_tmp = TextVatInvoice.new textvatinvoice_tmp.deserialize(i) @VatInvoiceInfos << textvatinvoice_tmp end end unless params['Items'].nil? @Items = [] params['Items'].each do |i| vatinvoiceitem_tmp = VatInvoiceItem.new vatinvoiceitem_tmp.deserialize(i) @Items << vatinvoiceitem_tmp end end @PdfPageSize = params['PdfPageSize'] @Angle = params['Angle'] @RequestId = params['RequestId'] end |