Class: TesoteSdk::Models::BatchCreateResult

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

#batch_idObject

Returns the value of attribute batch_id

Returns:

  • (Object)

    the current value of batch_id



343
344
345
# File 'lib/tesote_sdk/models.rb', line 343

def batch_id
  @batch_id
end

#errorsObject

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



343
344
345
# File 'lib/tesote_sdk/models.rb', line 343

def errors
  @errors
end

#ordersObject

Returns the value of attribute orders

Returns:

  • (Object)

    the current value of orders



343
344
345
# File 'lib/tesote_sdk/models.rb', line 343

def orders
  @orders
end

Class Method Details

.build_field(key, value) ⇒ Object



346
347
348
349
350
351
# File 'lib/tesote_sdk/models.rb', line 346

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