class N2y::Nordigen

Included Modules

Defined in:

n2y/nordigen.cr
n2y/nordigen/exceptions.cr
n2y/nordigen/responses.cr

Constant Summary

DENIED_MAPPING = {"/api/v2/token/refresh/" => InvalidRefreshToken, "/api/v2/token/new/" => InvalidCreds}
HABITAT_SETTINGS = [{decl: secret_id : String, example: nil, validation: nil}, {decl: secret : String, example: nil, validation: nil}] of Nil

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(token_pair : N2y::TokenPair = N2y::TokenPair.new) #

[View source]

Class Method Detail

def self.configure(&) #

[View source]
def self.settings #

[View source]

Instance Method Detail

def accounts(requisition_id : String) #

[View source]
def create_requisition(bank_id : String, redirect_uri : URI, reference : String) : Tuple(String, URI) #

[View source]
def get(path : String, *, data = nil, query = nil, class klass : Responses.class) #

Make a GET request at Nordigen.


[View source]
def get_banks(lang : String) #

Returns known banks.


[View source]
def post(path : String, *, data = nil, query = nil, class klass : Responses.class) #

Make a POST request at Nordigen.


[View source]
def request(method : String, path : String, *, query = nil, data = nil, class klass : Responses.class) #

Make request to Nordigen.


[View source]
def settings #

[View source]
def transactions(account_id : String, *, from : Time | Nil = nil, to : Time | Nil = nil) #

[View source]