class Starling::Resources::OutboundFasterPaymentsTransactionResource

A resource representing a Transaction returned from the Transactions Faster Payments Out API

Public Instance Methods

amount() click to toggle source

@return [Float] the amount of the transaction

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 17
def amount
  present_float(parsed_data['amount'])
end
created() click to toggle source

@return [Time] the date and time when the transaction was recorded

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 27
def created
  present_datetime(parsed_data['created'])
end
Also aliased as: created_at
created_at()
Alias for: created
currency() click to toggle source

@return [String] the currency of the transaction (e.g. “GBP” or “UAH”)

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 12
def currency
  parsed_data['currency']
end
direction() click to toggle source

@return [Symbol] the direction of the transaction (e.g. `:outbound`)

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 22
def direction
  present_enum(parsed_data['direction'])
end
id() click to toggle source

@return [String] the Starling internal ID of the transaction

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 7
def id
  parsed_data['id']
end
narrative() click to toggle source

@return [String] the narrative of the transaction

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 33
def narrative
  parsed_data['narrative']
end
receiving_contact_account_id() click to toggle source

@return [String, nil] the Starling internal ID of the contact account the payment

was sent to, or nil if they are not one of the user's
contacts
# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 51
def receiving_contact_account_id
  parsed_data['receivingContactAccountId']
end
receiving_contact_id() click to toggle source

@return [String, nil] the Starling internal ID of the contact who the payment was

sent to, or nil if they are not one of the user's contacts
# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 44
def receiving_contact_id
  parsed_data['receivingContactId']
end
source() click to toggle source

@return [Symbol] the source of the transaction (e.g. `:master_card`)

# File lib/starling/resources/outbound_faster_payments_transaction_resource.rb, line 38
def source
  present_enum(parsed_data['source'])
end