Ruby client for the Afterbanks PSD2 API
This is a Ruby client for the Afterbanks' PSD2 API
Installation
Install the gem (gem install afterbanks-psd2-api-ruby
) or include it in your Gemfile and bundle
.
Configuration
Just set the service key by doing this:
AfterbanksPSD2.servicekey = 'yourservicekey'
Or, if you use it in a Rails application, create an initializer with this content:
require 'afterbanks_psd2'
AfterbanksPSD2.configure do |config|
config.servicekey = 'yourservicekey'
end
You can set a logger
as well.
Changelog
- 0.1.1 Fix options parameters to ensure not null and check other parameters on Transaction.list
- 0.1.0 First full version, including resource wrapping (banks, user, accounts, transactions), error coverage and support for logging
TODO
- Full usage for each resource
- Proper explanation of the
AfterbanksPSD2:Error
and its subclasses
List of Error
-
1
-> GenericError -
50
-> IncorrectParametersError (When call API) C000
-> GenericConsentErrorC001
-> InvalidConsentErrorC002
-> ConsentWithUnfinalizedProcessErrorC003
-> ProductMismatchConsentErrorC004
-> ExpiredConsentErrorC005
-> MaximumNumberOfCallsReachedConsentErrorT000
-> GenericTransactionErrorT001
-> InvalidConsentForProductError