nordigen-ruby 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/README.md +8 -8
- data/lib/nordigen-ruby.rb +1 -1
- data/lib/nordigen_ruby/version.rb +1 -1
- data/nordigen.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99c4db96c04600efad1c716cf2c29072f73989f545b2d8c89b6660cfe1259549
|
4
|
+
data.tar.gz: 180fcb4a2344e00eccff000106ba0cc930beb3027e37bb4413522800dc3eb1ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 978ebf107b53c3063aef6c6acc9b7753169b9afff17a33fffbe18abb0366ec216052ce94900a10e2d9da1bc4067770a9e588a098e13569886988b7af5c94415b
|
7
|
+
data.tar.gz: 8233935bbe20648822803d37040fe634fe68005b977e009eb0719865ee24d72db7348ef545ec356e9b0b5424b76d5a2cf4dda58c664cf6e1ca5816a8bba46b86
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
|
4
|
+
## [2.2.0] - 2024-02-09
|
5
|
+
|
6
|
+
- Change base URL to bankaccountdata.gocardless.com
|
7
|
+
|
8
|
+
## [2.1.3] - 2023-13-07
|
9
|
+
|
10
|
+
- Update URLs to GoCardless
|
11
|
+
|
12
|
+
## [2.1.2] - 2022-12-19
|
4
13
|
|
5
14
|
- Fix redirect_immediate parameter
|
6
15
|
- Add SSN parameter
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Nordigen Ruby Library
|
2
2
|
|
3
|
-
This is official Ruby client library for [
|
3
|
+
This is official Ruby client library for [GoCardless Bank Account Data](https://gocardless.com/bank-account-data/).
|
4
4
|
|
5
|
-
For a full list of endpoints and arguments, see the [docs](https://
|
5
|
+
For a full list of endpoints and arguments, see the [docs](https://developer.gocardless.com/bank-account-data/quick-start-guide).
|
6
6
|
|
7
|
-
Before starting to use API you will need to create a new secret and get your `SECRET_ID` and `SECRET_KEY` from the [
|
7
|
+
Before starting to use API you will need to create a new secret and get your `SECRET_ID` and `SECRET_KEY` from the [GoCardless Bank Account Data Portal](https://bankaccountdata.gocardless.com/user-secrets/).
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
@@ -31,7 +31,7 @@ Example code can be found in `main.rb` file and Ruby on Rails example applicatio
|
|
31
31
|
require 'securerandom'
|
32
32
|
require 'nordigen-ruby'
|
33
33
|
|
34
|
-
# Get secret_id and secret_key from
|
34
|
+
# Get secret_id and secret_key from bankaccountdata.gocardless.com/user-secrets/ portal and pass to NordigenClient or load from .env file
|
35
35
|
client = Nordigen::NordigenClient.new(
|
36
36
|
secret_id: "SECRET_ID",
|
37
37
|
secret_key: "SECRET_KEY"
|
@@ -62,7 +62,7 @@ id = "REVOLUT_REVOGB21"
|
|
62
62
|
# Returns requisition_id and link to initiate authorization with a bank
|
63
63
|
init = client.init_session(
|
64
64
|
# redirect url after successful authentication
|
65
|
-
redirect_url: "https://
|
65
|
+
redirect_url: "https://gocardless.com",
|
66
66
|
# institution id
|
67
67
|
institution_id: id,
|
68
68
|
# a unique user ID of someone who's using your services, usually it's a UUID
|
@@ -88,10 +88,10 @@ After successful authorization with a bank you can fetch your data (details, bal
|
|
88
88
|
# Get account id after you have completed authorization with a bank.
|
89
89
|
requisition_data = client.requisition.get_requisition_by_id(requisition_id)
|
90
90
|
# Get account id from list
|
91
|
-
account_id =
|
91
|
+
account_id = requisition_data["accounts"][0]
|
92
92
|
|
93
93
|
# Instantiate account object
|
94
|
-
account = client.
|
94
|
+
account = client.account(account_id)
|
95
95
|
|
96
96
|
# Fetch account metadata
|
97
97
|
meta_data = account.get_metadata()
|
@@ -116,4 +116,4 @@ bundle exec rake test
|
|
116
116
|
|
117
117
|
## Support
|
118
118
|
|
119
|
-
For any inquiries please contact support at [support@
|
119
|
+
For any inquiries please contact support at [bank-account-data-support@gocardless.com](bank-account-data-support@gocardless.com) or create an issue in repository.
|
data/lib/nordigen-ruby.rb
CHANGED
data/nordigen.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.name = "nordigen-ruby"
|
9
9
|
spec.version = Nordigen::VERSION
|
10
10
|
spec.authors = ["Nordigen Solutions"]
|
11
|
-
spec.email = ["support@
|
11
|
+
spec.email = ["bank-account-data-support@gocardless.com"]
|
12
12
|
spec.summary = "Nordigen client for Ruby"
|
13
13
|
spec.homepage = "https://github.com/nordigen/nordigen-ruby"
|
14
14
|
spec.description = "Nordigen official API client for Ruby"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nordigen-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nordigen Solutions
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: '2.5'
|
27
27
|
description: Nordigen official API client for Ruby
|
28
28
|
email:
|
29
|
-
- support@
|
29
|
+
- bank-account-data-support@gocardless.com
|
30
30
|
executables:
|
31
31
|
- console
|
32
32
|
- setup
|
@@ -57,7 +57,7 @@ metadata:
|
|
57
57
|
documentation_uri: https://github.com/nordigen/nordigen-ruby
|
58
58
|
github_repo: https://github.com/nordigen/nordigen-ruby
|
59
59
|
source_code_uri: https://github.com/nordigen/nordigen-ruby
|
60
|
-
post_install_message:
|
60
|
+
post_install_message:
|
61
61
|
rdoc_options: []
|
62
62
|
require_paths:
|
63
63
|
- lib
|
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
|
-
rubygems_version: 3.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.4.6
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: Nordigen client for Ruby
|
79
79
|
test_files: []
|