Class: TencentCloud::Ocr::V20181119::GeneralMachineItem

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

通用机打发票条目

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#NameObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Name
  @Name
end

#PriceObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Price
  @Price
end

#QuantityObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Quantity
  @Quantity
end

#SpecificationObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Specification
  @Specification
end

#TaxObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Tax
  @Tax
end

#TaxRateObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def TaxRate
  @TaxRate
end

#TotalObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3877
3878
3879
# File 'lib/v20181119/models.rb', line 3877

def Total
  @Total
end

#UnitObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



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