Class: TesoteSdk::Models::BatchSummary

Inherits:
Struct
  • Object
show all
Extended by:
FromHash
Defined in:
lib/tesote_sdk/models.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from FromHash

build_field, from_array, from_hash

Instance Attribute Details

#amount_currencyObject

Returns the value of attribute amount_currency

Returns:

  • (Object)

    the current value of amount_currency



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def amount_currency
  @amount_currency
end

#batch_idObject

Returns the value of attribute batch_id

Returns:

  • (Object)

    the current value of batch_id



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def batch_id
  @batch_id
end

#batch_statusObject

Returns the value of attribute batch_status

Returns:

  • (Object)

    the current value of batch_status



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def batch_status
  @batch_status
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def created_at
  @created_at
end

#ordersObject

Returns the value of attribute orders

Returns:

  • (Object)

    the current value of orders



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def orders
  @orders
end

#statusesObject

Returns the value of attribute statuses

Returns:

  • (Object)

    the current value of statuses



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def statuses
  @statuses
end

#total_amount_centsObject

Returns the value of attribute total_amount_cents

Returns:

  • (Object)

    the current value of total_amount_cents



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def total_amount_cents
  @total_amount_cents
end

#total_ordersObject

Returns the value of attribute total_orders

Returns:

  • (Object)

    the current value of total_orders



322
323
324
# File 'lib/tesote_sdk/models.rb', line 322

def total_orders
  @total_orders
end

Class Method Details

.build_field(key, value) ⇒ Object



335
336
337
338
339
340
# File 'lib/tesote_sdk/models.rb', line 335

def self.build_field(key, value)
  case key
  when 'orders' then TransactionOrder.from_array(value)
  else value
  end
end