class GoCardlessPro::Resources::MandateImportEntry
Mandate
Import Entries are added to a [Mandate Import](core-endpoints-mandate-imports). Each entry corresponds to one mandate to be imported into GoCardless.
To import a mandate you will need: <ol>
<li>Identifying information about the customer (name/company and
address)</li>
<li>Bank account details, consisting of an account holder name and either an IBAN or <a href="#appendix-local-bank-details">local bank
details</a></li>
<li>Amendment details (SEPA only)</li>
</ol>
We suggest you provide a `record_identifier` (which is unique within the context of a single mandate import) to help you to identify mandates that have been created once the import has been processed by GoCardless. You can [list the mandate import entries](mandate-import-entries-list-all-mandate-import-entries), match them up in your system using the `record_identifier`, and look at the `links` fields to find the mandate, customer and customer bank account that have been imported.
<p class=“restricted-notice”><strong>Restricted</strong>: This API is currently only available for approved integrators - please <a href=“get”>help@gocardless.com“>get in touch</a> if you would like to use this API.</p>
Attributes
Public Class Methods
Initialize a mandate_import_entry resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/mandate_import_entry.rb, line 51 def initialize(object, response = nil) @object = object @created_at = object['created_at'] @links = object['links'] @record_identifier = object['record_identifier'] @response = response end
Public Instance Methods
# File lib/gocardless_pro/resources/mandate_import_entry.rb, line 60 def api_response ApiResponse.new(@response) end
Return the links that the resource has
# File lib/gocardless_pro/resources/mandate_import_entry.rb, line 65 def links @mandate_import_entry_links ||= Links.new(@links) end
Provides the mandate_import_entry resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/mandate_import_entry.rb, line 70 def to_h @object end