Class: TencentCloud::Ocr::V20181119::OtherInvoice

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, otherinvoicelistitems = nil, otherinvoicetableitems = nil, date = nil) ⇒ OtherInvoice

Returns a new instance of OtherInvoice.



7198
7199
7200
7201
7202
7203
7204
# File 'lib/v20181119/models.rb', line 7198

def initialize(title=nil, total=nil, otherinvoicelistitems=nil, otherinvoicetableitems=nil, date=nil)
  @Title = title
  @Total = total
  @OtherInvoiceListItems = otherinvoicelistitems
  @OtherInvoiceTableItems = otherinvoicetableitems
  @Date = date
end

Instance Attribute Details

#DateObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • OtherInvoiceListItems:

    列表

  • OtherInvoiceTableItems:

    表格

  • Date:

    发票日期



7196
7197
7198
# File 'lib/v20181119/models.rb', line 7196

def Date
  @Date
end

#OtherInvoiceListItemsObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • OtherInvoiceListItems:

    列表

  • OtherInvoiceTableItems:

    表格

  • Date:

    发票日期



7196
7197
7198
# File 'lib/v20181119/models.rb', line 7196

def OtherInvoiceListItems
  @OtherInvoiceListItems
end

#OtherInvoiceTableItemsObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • OtherInvoiceListItems:

    列表

  • OtherInvoiceTableItems:

    表格

  • Date:

    发票日期



7196
7197
7198
# File 'lib/v20181119/models.rb', line 7196

def OtherInvoiceTableItems
  @OtherInvoiceTableItems
end

#TitleObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • OtherInvoiceListItems:

    列表

  • OtherInvoiceTableItems:

    表格

  • Date:

    发票日期



7196
7197
7198
# File 'lib/v20181119/models.rb', line 7196

def Title
  @Title
end

#TotalObject

Parameters:

  • Title:

    发票名称

  • Total:

    金额

  • OtherInvoiceListItems:

    列表

  • OtherInvoiceTableItems:

    表格

  • Date:

    发票日期



7196
7197
7198
# File 'lib/v20181119/models.rb', line 7196

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
# File 'lib/v20181119/models.rb', line 7206

def deserialize(params)
  @Title = params['Title']
  @Total = params['Total']
  unless params['OtherInvoiceListItems'].nil?
    @OtherInvoiceListItems = []
    params['OtherInvoiceListItems'].each do |i|
      otherinvoiceitem_tmp = OtherInvoiceItem.new
      otherinvoiceitem_tmp.deserialize(i)
      @OtherInvoiceListItems << otherinvoiceitem_tmp
    end
  end
  unless params['OtherInvoiceTableItems'].nil?
    @OtherInvoiceTableItems = []
    params['OtherInvoiceTableItems'].each do |i|
      otherinvoicelist_tmp = OtherInvoiceList.new
      otherinvoicelist_tmp.deserialize(i)
      @OtherInvoiceTableItems << otherinvoicelist_tmp
    end
  end
  @Date = params['Date']
end