Class: Starling::Resources::DirectDebitTransactionResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/starling/resources/direct_debit_transaction_resource.rb

Overview

A resource representing a Transaction returned from the Transaction Direct Debit API

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize

Constructor Details

This class inherits a constructor from Starling::Resources::BaseResource

Instance Method Details

#amountFloat


17
18
19
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 17

def amount
  present_float(parsed_data['amount'])
end

#createdTime Also known as: created_at


27
28
29
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 27

def created
  present_datetime(parsed_data['created'])
end

#currencyString


12
13
14
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 12

def currency
  parsed_data['currency']
end

#directionSymbol


22
23
24
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 22

def direction
  present_enum(parsed_data['direction'])
end

#idString


7
8
9
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 7

def id
  parsed_data['id']
end

#mandate_idString


43
44
45
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 43

def mandate_id
  parsed_data['mandateId']
end

#narrativeString


33
34
35
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 33

def narrative
  parsed_data['narrative']
end

#sourceSymbol


38
39
40
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 38

def source
  present_enum(parsed_data['source'])
end

#typeSymbol


49
50
51
# File 'lib/starling/resources/direct_debit_transaction_resource.rb', line 49

def type
  present_enum(parsed_data['type'])
end