Class: TesoteSdk::Models::TransactionOrder

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

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def amount
  @amount
end

#approved_atObject

Returns the value of attribute approved_at

Returns:

  • (Object)

    the current value of approved_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def approved_at
  @approved_at
end

#batch_idObject

Returns the value of attribute batch_id

Returns:

  • (Object)

    the current value of batch_id



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def batch_id
  @batch_id
end

#cancelled_atObject

Returns the value of attribute cancelled_at

Returns:

  • (Object)

    the current value of cancelled_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def cancelled_at
  @cancelled_at
end

#completed_atObject

Returns the value of attribute completed_at

Returns:

  • (Object)

    the current value of completed_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def completed_at
  @completed_at
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def created_at
  @created_at
end

#currencyObject

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def currency
  @currency
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def description
  @description
end

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def destination
  @destination
end

#execution_strategyObject

Returns the value of attribute execution_strategy

Returns:

  • (Object)

    the current value of execution_strategy



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def execution_strategy
  @execution_strategy
end

#external_referenceObject

Returns the value of attribute external_reference

Returns:

  • (Object)

    the current value of external_reference



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def external_reference
  @external_reference
end

#failed_atObject

Returns the value of attribute failed_at

Returns:

  • (Object)

    the current value of failed_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def failed_at
  @failed_at
end

#feeObject

Returns the value of attribute fee

Returns:

  • (Object)

    the current value of fee



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def fee
  @fee
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def id
  @id
end

#idempotency_keyObject

Returns the value of attribute idempotency_key

Returns:

  • (Object)

    the current value of idempotency_key



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def idempotency_key
  @idempotency_key
end

#latest_attemptObject

Returns the value of attribute latest_attempt

Returns:

  • (Object)

    the current value of latest_attempt



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def latest_attempt
  @latest_attempt
end

#referenceObject

Returns the value of attribute reference

Returns:

  • (Object)

    the current value of reference



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def reference
  @reference
end

#scheduled_forObject

Returns the value of attribute scheduled_for

Returns:

  • (Object)

    the current value of scheduled_for



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def scheduled_for
  @scheduled_for
end

#source_accountObject

Returns the value of attribute source_account

Returns:

  • (Object)

    the current value of source_account



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def 
  @source_account
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def status
  @status
end

#submitted_atObject

Returns the value of attribute submitted_at

Returns:

  • (Object)

    the current value of submitted_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def 
  @submitted_at
end

#tesote_transactionObject

Returns the value of attribute tesote_transaction

Returns:

  • (Object)

    the current value of tesote_transaction



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def tesote_transaction
  @tesote_transaction
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



252
253
254
# File 'lib/tesote_sdk/models.rb', line 252

def updated_at
  @updated_at
end

Class Method Details

.build_field(key, value) ⇒ Object



280
281
282
283
284
285
286
287
288
289
# File 'lib/tesote_sdk/models.rb', line 280

def self.build_field(key, value)
  case key
  when 'source_account' then SourceAccount.from_hash(value)
  when 'destination' then Destination.from_hash(value)
  when 'fee' then Fee.from_hash(value)
  when 'tesote_transaction' then TesoteTransactionRef.from_hash(value)
  when 'latest_attempt' then LatestAttempt.from_hash(value)
  else value
  end
end