Class: TencentCloud::Ocr::V20181119::VatRollItem

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, quantity = nil, price = nil, total = nil) ⇒ VatRollItem

Returns a new instance of VatRollItem.



14263
14264
14265
14266
14267
14268
# File 'lib/v20181119/models.rb', line 14263

def initialize(name=nil, quantity=nil, price=nil, total=nil)
  @Name = name
  @Quantity = quantity
  @Price = price
  @Total = total
end

Instance Attribute Details

#NameObject

Parameters:

  • Name:

    项目名称

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额



14261
14262
14263
# File 'lib/v20181119/models.rb', line 14261

def Name
  @Name
end

#PriceObject

Parameters:

  • Name:

    项目名称

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额



14261
14262
14263
# File 'lib/v20181119/models.rb', line 14261

def Price
  @Price
end

#QuantityObject

Parameters:

  • Name:

    项目名称

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额



14261
14262
14263
# File 'lib/v20181119/models.rb', line 14261

def Quantity
  @Quantity
end

#TotalObject

Parameters:

  • Name:

    项目名称

  • Quantity:

    数量

  • Price:

    单价

  • Total:

    金额



14261
14262
14263
# File 'lib/v20181119/models.rb', line 14261

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



14270
14271
14272
14273
14274
14275
# File 'lib/v20181119/models.rb', line 14270

def deserialize(params)
  @Name = params['Name']
  @Quantity = params['Quantity']
  @Price = params['Price']
  @Total = params['Total']
end