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.



3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
# File 'lib/v20181119/models.rb', line 3798

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:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Name
  @Name
end

#PriceObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Price
  @Price
end

#QuantityObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Quantity
  @Quantity
end

#SpecificationObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Specification
  @Specification
end

#TaxObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Tax
  @Tax
end

#TaxRateObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def TaxRate
  @TaxRate
end

#TotalObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Total
  @Total
end

#UnitObject

Parameters:

  • Name:

    项目名称

  • Specification:

    规格型号

  • Unit:

    单位

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额

  • TaxRate:

    税率

  • Tax:

    税额



3796
3797
3798
# File 'lib/v20181119/models.rb', line 3796

def Unit
  @Unit
end

Instance Method Details

#deserialize(params) ⇒ Object



3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
# File 'lib/v20181119/models.rb', line 3809

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