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.
13788 13789 13790 13791 13792 13793 13794 |
# File 'lib/v20181119/models.rb', line 13788 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
13786 13787 13788 |
# File 'lib/v20181119/models.rb', line 13786 def Angle @Angle end |
#Items ⇒ Object
13786 13787 13788 |
# File 'lib/v20181119/models.rb', line 13786 def Items @Items end |
#PdfPageSize ⇒ Object
13786 13787 13788 |
# File 'lib/v20181119/models.rb', line 13786 def PdfPageSize @PdfPageSize end |
#RequestId ⇒ Object
13786 13787 13788 |
# File 'lib/v20181119/models.rb', line 13786 def RequestId @RequestId end |
#VatInvoiceInfos ⇒ Object
13786 13787 13788 |
# File 'lib/v20181119/models.rb', line 13786 def VatInvoiceInfos @VatInvoiceInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 |
# File 'lib/v20181119/models.rb', line 13796 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 |