Sha256: b1564167ee4fb3813b7fe3060d38e3ee86391fbab4cca9b26ade8fdf90c99dca

Contents?: true

Size: 1.55 KB

Versions: 1

Compression:

Stored size: 1.55 KB

Contents

# Ruby client for the Afterbanks PSD2 API

[![CircleCI](https://circleci.com/gh/quipuapp/afterbanks-psd2-api-ruby.svg?style=shield)](https://circleci.com/gh/quipuapp/afterbanks-psd2-api-ruby)

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:

```ruby
AfterbanksPSD2.servicekey = 'yourservicekey'
```

Or, if you use it in a Rails application, create an initializer with this content:

```ruby
require 'afterbanks_psd2'

AfterbanksPSD2.configure do |config|
  config.servicekey = 'yourservicekey'
end
```

You can set a `logger` as well.

Changelog
---------

* 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` -> GenericConsentError
 * `C001` -> InvalidConsentError
 * `C002` -> ConsentWithUnfinalizedProcessError
 * `C003` -> ProductMismatchConsentError
 * `C004` -> ExpiredConsentError
 * `C005` -> MaximumNumberOfCallsReachedConsentError
 * `T000` -> GenericTransactionError
 * `T001` -> InvalidConsentForProductError



About Afterbanks
------------

* [Public site](https://www.afterbanks.com)
* [Documentation](https://app.swaggerhub.com/apis/Afterbanks/Afterbanks-PSD2-ES)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
afterbanks-psd2-api-ruby-0.1.0 README.md