class GoCardlessPro::Resources::SchemeIdentifier
This represents a scheme identifier (e.g. a SUN in Bacs or a CID in SEPA). Scheme identifiers are used to specify the beneficiary name that appears on customers’ bank statements.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/scheme_identifier.rb, line 23 def initialize(object, response = nil) @object = object @address_line1 = object['address_line1'] @address_line2 = object['address_line2'] @address_line3 = object['address_line3'] @can_specify_mandate_reference = object['can_specify_mandate_reference'] @city = object['city'] @country_code = object['country_code'] @created_at = object['created_at'] @currency = object['currency'] @email = object['email'] @id = object['id'] @minimum_advance_notice = object['minimum_advance_notice'] @name = object['name'] @phone_number = object['phone_number'] @postal_code = object['postal_code'] @reference = object['reference'] @region = object['region'] @scheme = object['scheme'] @status = object['status'] @response = response end
Initialize a scheme_identifier resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/scheme_identifier.rb, line 47 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/scheme_identifier.rb, line 52 def to_h @object end
Provides the scheme_identifier resource as a hash of all its readable attributes