Class: TesoteSdk::Models::PaymentMethod

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

#counterpartyObject

Returns the value of attribute counterparty

Returns:

  • (Object)

    the current value of counterparty



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def counterparty
  @counterparty
end

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def created_at
  @created_at
end

#currencyObject

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def currency
  @currency
end

#detailsObject

Returns the value of attribute details

Returns:

  • (Object)

    the current value of details



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def details
  @details
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def id
  @id
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def label
  @label
end

#last_used_atObject

Returns the value of attribute last_used_at

Returns:

  • (Object)

    the current value of last_used_at



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def last_used_at
  @last_used_at
end

#method_typeObject

Returns the value of attribute method_type

Returns:

  • (Object)

    the current value of method_type



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def method_type
  @method_type
end

#tesote_accountObject

Returns the value of attribute tesote_account

Returns:

  • (Object)

    the current value of tesote_account



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def 
  @tesote_account
end

#updated_atObject

Returns the value of attribute updated_at

Returns:

  • (Object)

    the current value of updated_at



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def updated_at
  @updated_at
end

#verifiedObject

Returns the value of attribute verified

Returns:

  • (Object)

    the current value of verified



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def verified
  @verified
end

#verified_atObject

Returns the value of attribute verified_at

Returns:

  • (Object)

    the current value of verified_at



296
297
298
# File 'lib/tesote_sdk/models.rb', line 296

def verified_at
  @verified_at
end

Class Method Details

.build_field(key, value) ⇒ Object



313
314
315
316
317
318
319
# File 'lib/tesote_sdk/models.rb', line 313

def self.build_field(key, value)
  case key
  when 'counterparty' then Counterparty.from_hash(value)
  when 'tesote_account' then TesoteAccountRef.from_hash(value)
  else value
  end
end