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.
1605 1606 1607 1608 1609 |
# File 'lib/v20181119/models.rb', line 1605 def initialize(title=nil, content=nil, commoncontent=nil) @Title = title @Content = content @CommonContent = commoncontent end |
Instance Attribute Details
#CommonContent ⇒ Object
1603 1604 1605 |
# File 'lib/v20181119/models.rb', line 1603 def CommonContent @CommonContent end |
#Content ⇒ Object
1603 1604 1605 |
# File 'lib/v20181119/models.rb', line 1603 def Content @Content end |
#Title ⇒ Object
1603 1604 1605 |
# File 'lib/v20181119/models.rb', line 1603 def Title @Title end |
Instance Method Details
#deserialize(params) ⇒ Object
1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 |
# File 'lib/v20181119/models.rb', line 1611 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 |