Class: TencentCloud::Ocr::V20181119::OtherInvoice
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::OtherInvoice
- Defined in:
- lib/v20181119/models.rb
Overview
其他发票
Instance Attribute Summary collapse
- #Date ⇒ Object
- #OtherInvoiceListItems ⇒ Object
- #OtherInvoiceTableItems ⇒ Object
- #Title ⇒ Object
- #Total ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, total = nil, otherinvoicelistitems = nil, otherinvoicetableitems = nil, date = nil) ⇒ OtherInvoice
constructor
A new instance of OtherInvoice.
Constructor Details
#initialize(title = nil, total = nil, otherinvoicelistitems = nil, otherinvoicetableitems = nil, date = nil) ⇒ OtherInvoice
Returns a new instance of OtherInvoice.
6511 6512 6513 6514 6515 6516 6517 |
# File 'lib/v20181119/models.rb', line 6511 def initialize(title=nil, total=nil, otherinvoicelistitems=nil, otherinvoicetableitems=nil, date=nil) @Title = title @Total = total @OtherInvoiceListItems = otherinvoicelistitems @OtherInvoiceTableItems = otherinvoicetableitems @Date = date end |
Instance Attribute Details
#Date ⇒ Object
6509 6510 6511 |
# File 'lib/v20181119/models.rb', line 6509 def Date @Date end |
#OtherInvoiceListItems ⇒ Object
6509 6510 6511 |
# File 'lib/v20181119/models.rb', line 6509 def OtherInvoiceListItems @OtherInvoiceListItems end |
#OtherInvoiceTableItems ⇒ Object
6509 6510 6511 |
# File 'lib/v20181119/models.rb', line 6509 def OtherInvoiceTableItems @OtherInvoiceTableItems end |
#Title ⇒ Object
6509 6510 6511 |
# File 'lib/v20181119/models.rb', line 6509 def Title @Title end |
#Total ⇒ Object
6509 6510 6511 |
# File 'lib/v20181119/models.rb', line 6509 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 |
# File 'lib/v20181119/models.rb', line 6519 def deserialize(params) @Title = params['Title'] @Total = params['Total'] unless params['OtherInvoiceListItems'].nil? @OtherInvoiceListItems = [] params['OtherInvoiceListItems'].each do |i| otherinvoiceitem_tmp = OtherInvoiceItem.new otherinvoiceitem_tmp.deserialize(i) @OtherInvoiceListItems << otherinvoiceitem_tmp end end unless params['OtherInvoiceTableItems'].nil? @OtherInvoiceTableItems = [] params['OtherInvoiceTableItems'].each do |i| otherinvoicelist_tmp = OtherInvoiceList.new otherinvoicelist_tmp.deserialize(i) @OtherInvoiceTableItems << otherinvoicelist_tmp end end @Date = params['Date'] end |