Class: TencentCloud::Ocr::V20181119::VatInvoiceGoodsInfo

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

Overview

发票商品

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item = nil, specification = nil, measurementdimension = nil, price = nil, quantity = nil, amount = nil, taxscheme = nil, taxamount = nil) ⇒ VatInvoiceGoodsInfo

Returns a new instance of VatInvoiceGoodsInfo.



13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
# File 'lib/v20181119/models.rb', line 13366

def initialize(item=nil, specification=nil, measurementdimension=nil, price=nil, quantity=nil, amount=nil, taxscheme=nil, taxamount=nil)
  @Item = item
  @Specification = specification
  @MeasurementDimension = measurementdimension
  @Price = price
  @Quantity = quantity
  @Amount = amount
  @TaxScheme = taxscheme
  @TaxAmount = taxamount
end

Instance Attribute Details

#AmountObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def Amount
  @Amount
end

#ItemObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def Item
  @Item
end

#MeasurementDimensionObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def MeasurementDimension
  @MeasurementDimension
end

#PriceObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def Price
  @Price
end

#QuantityObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def Quantity
  @Quantity
end

#SpecificationObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def Specification
  @Specification
end

#TaxAmountObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def TaxAmount
  @TaxAmount
end

#TaxSchemeObject

Parameters:

  • Item:

    项目名称

  • Specification:

    规格型号

  • MeasurementDimension:

    单位

  • Price:

    价格

  • Quantity:

    数量

  • Amount:

    金额

  • TaxScheme:

    税率(如6%、免税)

  • TaxAmount:

    税额



13364
13365
13366
# File 'lib/v20181119/models.rb', line 13364

def TaxScheme
  @TaxScheme
end

Instance Method Details

#deserialize(params) ⇒ Object



13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
# File 'lib/v20181119/models.rb', line 13377

def deserialize(params)
  @Item = params['Item']
  @Specification = params['Specification']
  @MeasurementDimension = params['MeasurementDimension']
  @Price = params['Price']
  @Quantity = params['Quantity']
  @Amount = params['Amount']
  @TaxScheme = params['TaxScheme']
  @TaxAmount = params['TaxAmount']
end