Class: GoCardlessPro::Services::BankAccountDetailsService
- Inherits:
-
BaseService
- Object
- BaseService
- GoCardlessPro::Services::BankAccountDetailsService
- Defined in:
- lib/gocardless_pro/services/bank_account_details_service.rb
Overview
Service for making requests to the BankAccountDetail endpoints
Instance Method Summary collapse
-
#get(identity, options = {}) ⇒ Object
Returns bank account details in the flattened JSON Web Encryption format described in RFC 7516.
Methods inherited from BaseService
#initialize, #make_request, #sub_url
Constructor Details
This class inherits a constructor from GoCardlessPro::Services::BaseService
Instance Method Details
#get(identity, options = {}) ⇒ Object
Returns bank account details in the flattened JSON Web Encryption format described in RFC 7516.
You must specify a Gc-Key-Id header when using this endpoint. See Public Key
Setup
(https://developer.gocardless.com/gc-embed/bank-details-access#public_key_setup)
for more details.
Example URL: /bank_account_details/:identity
24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/gocardless_pro/services/bank_account_details_service.rb', line 24 def get(identity, = {}) path = sub_url('/bank_account_details/:identity', { 'identity' => identity, }) [:retry_failures] = true response = make_request(:get, path, ) return if response.body.nil? Resources::BankAccountDetail.new(unenvelope_body(response.body), response) end |