Class: TencentCloud::Ocr::V20181119::GeneralMachineItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::GeneralMachineItem
- Defined in:
- lib/v20181119/models.rb
Overview
通用机打发票条目
Instance Attribute Summary collapse
- #Name ⇒ Object
- #Price ⇒ Object
- #Quantity ⇒ Object
- #Specification ⇒ Object
- #Tax ⇒ Object
- #TaxRate ⇒ Object
- #Total ⇒ Object
- #Unit ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, specification = nil, unit = nil, quantity = nil, price = nil, total = nil, taxrate = nil, tax = nil) ⇒ GeneralMachineItem
constructor
A new instance of GeneralMachineItem.
Constructor Details
#initialize(name = nil, specification = nil, unit = nil, quantity = nil, price = nil, total = nil, taxrate = nil, tax = nil) ⇒ GeneralMachineItem
Returns a new instance of GeneralMachineItem.
3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 |
# File 'lib/v20181119/models.rb', line 3879 def initialize(name=nil, specification=nil, unit=nil, quantity=nil, price=nil, total=nil, taxrate=nil, tax=nil) @Name = name @Specification = specification @Unit = unit @Quantity = quantity @Price = price @Total = total @TaxRate = taxrate @Tax = tax end |
Instance Attribute Details
#Name ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Name @Name end |
#Price ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Price @Price end |
#Quantity ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Quantity @Quantity end |
#Specification ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Specification @Specification end |
#Tax ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Tax @Tax end |
#TaxRate ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def TaxRate @TaxRate end |
#Total ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Total @Total end |
#Unit ⇒ Object
3877 3878 3879 |
# File 'lib/v20181119/models.rb', line 3877 def Unit @Unit end |
Instance Method Details
#deserialize(params) ⇒ Object
3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 |
# File 'lib/v20181119/models.rb', line 3890 def deserialize(params) @Name = params['Name'] @Specification = params['Specification'] @Unit = params['Unit'] @Quantity = params['Quantity'] @Price = params['Price'] @Total = params['Total'] @TaxRate = params['TaxRate'] @Tax = params['Tax'] end |