class Starling::Resources::DirectDebitMandateResource

A resource representing a Direct Debit mandate returned from the Direct Debit Mandates API

Public Instance Methods

created() click to toggle source

@return [Time] the date when the mandate was created

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

@return [String] the name of the Direct Debit mandate's originator

# File lib/starling/resources/direct_debit_mandate_resource.rb, line 33
def originator_name
  parsed_data['originatorName']
end
originator_uid() click to toggle source

@return [String] the Starling internal ID of the Direct Debit mandate's originator

# File lib/starling/resources/direct_debit_mandate_resource.rb, line 38
def originator_uid
  parsed_data['originatorUid']
end
reference() click to toggle source

@return [String] the reference of the Direct Debit mandate

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

@return [Symbol] the source of the mandate (e.g. `:electronic` or `paper)

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

@return [Symbol] the status of the mandate (e.g. `:live`)

# File lib/starling/resources/direct_debit_mandate_resource.rb, line 17
def status
  present_enum(parsed_data['status'])
end
uid() click to toggle source

@return [String] the Starling internal ID of the Direct Debit mandate

# File lib/starling/resources/direct_debit_mandate_resource.rb, line 7
def uid
  parsed_data['uid']
end