Class: TencentCloud::Ocr::V20181119::CustomsPaymentReceipt
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::CustomsPaymentReceipt
- Defined in:
- lib/v20181119/models.rb
Overview
海关缴款书
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, content = nil, commoncontent = nil) ⇒ CustomsPaymentReceipt
constructor
A new instance of CustomsPaymentReceipt.
Constructor Details
#initialize(title = nil, content = nil, commoncontent = nil) ⇒ CustomsPaymentReceipt
Returns a new instance of CustomsPaymentReceipt.
1615 1616 1617 1618 1619 |
# File 'lib/v20181119/models.rb', line 1615 def initialize(title=nil, content=nil, commoncontent=nil) @Title = title @Content = content @CommonContent = commoncontent end |
Instance Attribute Details
#CommonContent ⇒ Object
1613 1614 1615 |
# File 'lib/v20181119/models.rb', line 1613 def CommonContent @CommonContent end |
#Content ⇒ Object
1613 1614 1615 |
# File 'lib/v20181119/models.rb', line 1613 def Content @Content end |
#Title ⇒ Object
1613 1614 1615 |
# File 'lib/v20181119/models.rb', line 1613 def Title @Title end |
Instance Method Details
#deserialize(params) ⇒ Object
1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 |
# File 'lib/v20181119/models.rb', line 1621 def deserialize(params) @Title = params['Title'] unless params['Content'].nil? @Content = [] params['Content'].each do |i| otherinvoiceitem_tmp = OtherInvoiceItem.new otherinvoiceitem_tmp.deserialize(i) @Content << otherinvoiceitem_tmp end end unless params['CommonContent'].nil? @CommonContent = [] params['CommonContent'].each do |i| otherinvoiceitem_tmp = OtherInvoiceItem.new otherinvoiceitem_tmp.deserialize(i) @CommonContent << otherinvoiceitem_tmp end end end |