Class: TencentCloud::Ocr::V20181119::ElectronicTollSummary

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

Overview

其他发票

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title = nil, total = nil, items = nil, tableitems = nil, date = nil) ⇒ ElectronicTollSummary

Returns a new instance of ElectronicTollSummary.



2424
2425
2426
2427
2428
2429
2430
# File 'lib/v20181119/models.rb', line 2424

def initialize(title=nil, total=nil, items=nil, tableitems=nil, date=nil)
  @Title = title
  @Total = total
  @Items = items
  @TableItems = tableitems
  @Date = date
end

Instance Attribute Details

#DateObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • Items:

    列表

  • TableItems:

    表格

  • Date:

    发票日期



2422
2423
2424
# File 'lib/v20181119/models.rb', line 2422

def Date
  @Date
end

#ItemsObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • Items:

    列表

  • TableItems:

    表格

  • Date:

    发票日期



2422
2423
2424
# File 'lib/v20181119/models.rb', line 2422

def Items
  @Items
end

#TableItemsObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • Items:

    列表

  • TableItems:

    表格

  • Date:

    发票日期



2422
2423
2424
# File 'lib/v20181119/models.rb', line 2422

def TableItems
  @TableItems
end

#TitleObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • Items:

    列表

  • TableItems:

    表格

  • Date:

    发票日期



2422
2423
2424
# File 'lib/v20181119/models.rb', line 2422

def Title
  @Title
end

#TotalObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • Items:

    列表

  • TableItems:

    表格

  • Date:

    发票日期



2422
2423
2424
# File 'lib/v20181119/models.rb', line 2422

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
# File 'lib/v20181119/models.rb', line 2432

def deserialize(params)
  @Title = params['Title']
  @Total = params['Total']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      electronictollsummaryitem_tmp = ElectronicTollSummaryItem.new
      electronictollsummaryitem_tmp.deserialize(i)
      @Items << electronictollsummaryitem_tmp
    end
  end
  unless params['TableItems'].nil?
    @TableItems = []
    params['TableItems'].each do |i|
      electronictollsummarylist_tmp = ElectronicTollSummaryList.new
      electronictollsummarylist_tmp.deserialize(i)
      @TableItems << electronictollsummarylist_tmp
    end
  end
  @Date = params['Date']
end