afterbanks-api-ruby 0.3.0 → 0.3.4
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/Gemfile.lock +6 -6
- data/README.md +4 -0
- data/lib/afterbanks/base.rb +1 -1
- data/lib/afterbanks/resources/account.rb +4 -1
- data/lib/afterbanks/resources/transaction.rb +4 -1
- data/lib/afterbanks/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47ce0303d43a61ed4dbb9995e830c150b9ce17381680d6d60c0ca4fb3c57c18a
|
|
4
|
+
data.tar.gz: 0b3809056462a943e2aef44c2046686a244c282714f12f8f2fbbcfaf98610260
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58b5066534be42b43d178b48f2b601f11cee1f7ebf57d481a68536c904f88db7ecf735200f33bcafea85e280c9b165adbbe5881c7a71030584666dfb2ec073ac
|
|
7
|
+
data.tar.gz: 7a17bfa456463b898ceace9a0fae98b2fd4d885a339b4924116128d2b8a8c57884a11d8a230dd6c7765bef6f52d7b72ea453d68be111ac430ebe506c4ab721bb
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
afterbanks-api-ruby (0.3.
|
|
4
|
+
afterbanks-api-ruby (0.3.4)
|
|
5
5
|
rest-client (~> 2.0.2)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
addressable (2.
|
|
10
|
+
addressable (2.8.0)
|
|
11
11
|
public_suffix (>= 2.0.2, < 5.0)
|
|
12
12
|
crack (0.4.3)
|
|
13
13
|
safe_yaml (~> 1.0.0)
|
|
@@ -15,13 +15,13 @@ GEM
|
|
|
15
15
|
domain_name (0.5.20190701)
|
|
16
16
|
unf (>= 0.0.5, < 1.0.0)
|
|
17
17
|
hashdiff (1.0.0)
|
|
18
|
-
http-cookie (1.0.
|
|
18
|
+
http-cookie (1.0.4)
|
|
19
19
|
domain_name (~> 0.5)
|
|
20
20
|
mime-types (3.3.1)
|
|
21
21
|
mime-types-data (~> 3.2015)
|
|
22
|
-
mime-types-data (3.
|
|
22
|
+
mime-types-data (3.2021.0704)
|
|
23
23
|
netrc (0.11.0)
|
|
24
|
-
public_suffix (4.0.
|
|
24
|
+
public_suffix (4.0.6)
|
|
25
25
|
rake (13.0.1)
|
|
26
26
|
rest-client (2.0.2)
|
|
27
27
|
http-cookie (>= 1.0.2, < 2.0)
|
|
@@ -44,7 +44,7 @@ GEM
|
|
|
44
44
|
timecop (0.9.1)
|
|
45
45
|
unf (0.1.4)
|
|
46
46
|
unf_ext
|
|
47
|
-
unf_ext (0.0.7.
|
|
47
|
+
unf_ext (0.0.7.7)
|
|
48
48
|
webmock (3.7.6)
|
|
49
49
|
addressable (>= 2.3.6)
|
|
50
50
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
|
@@ -33,6 +33,10 @@ You can set a `logger` as well.
|
|
|
33
33
|
Changelog
|
|
34
34
|
---------
|
|
35
35
|
|
|
36
|
+
* v.0.3.4 Security: upgrade addressable from 2.7.0 to 2.8.0
|
|
37
|
+
* v.0.3.3 Transaction and Account are compatible with account ID
|
|
38
|
+
* v.0.3.2 Properly handle account ID needed errors
|
|
39
|
+
* v.0.3.1 Small spec improvements
|
|
36
40
|
* v.0.3.0 Set a higher timeout so it works properly with ING Direct
|
|
37
41
|
* v.0.2.3 Better logging
|
|
38
42
|
* v.0.2.2 Better naming (fix Caixa Guissona, Caixa Burriana and Banco Pichincha)
|
data/lib/afterbanks/base.rb
CHANGED
|
@@ -111,7 +111,7 @@ module Afterbanks
|
|
|
111
111
|
|
|
112
112
|
error_info.merge!(additional_info: additional_info)
|
|
113
113
|
|
|
114
|
-
if additional_info['session_id']
|
|
114
|
+
if additional_info.is_a?(Hash) && additional_info['session_id']
|
|
115
115
|
raise TwoStepAuthenticationError.new(error_info)
|
|
116
116
|
else
|
|
117
117
|
raise AccountIdNeededError.new(error_info)
|
|
@@ -11,7 +11,8 @@ module Afterbanks
|
|
|
11
11
|
holders: :hash
|
|
12
12
|
|
|
13
13
|
def self.list(service:, username:, password:, password2: nil,
|
|
14
|
-
document_type: nil,
|
|
14
|
+
document_type: nil, account_id: nil,
|
|
15
|
+
session_id: nil, otp: nil, counter_id: nil,
|
|
15
16
|
avoid_caching: false)
|
|
16
17
|
|
|
17
18
|
params = {
|
|
@@ -24,6 +25,8 @@ module Afterbanks
|
|
|
24
25
|
|
|
25
26
|
params.merge!(pass2: password2) unless password2.nil?
|
|
26
27
|
params.merge!(documentType: document_type) unless document_type.nil?
|
|
28
|
+
params.merge!(account_id: account_id) unless account_id.nil?
|
|
29
|
+
|
|
27
30
|
params.merge!(session_id: session_id) unless session_id.nil?
|
|
28
31
|
params.merge!(OTP: otp) unless otp.nil?
|
|
29
32
|
params.merge!(counterId: counter_id) unless counter_id.nil?
|
|
@@ -11,7 +11,8 @@ module Afterbanks
|
|
|
11
11
|
categoryId: :integer
|
|
12
12
|
|
|
13
13
|
def self.list(service:, username:, password:, password2: nil,
|
|
14
|
-
document_type: nil,
|
|
14
|
+
document_type: nil, account_id: nil,
|
|
15
|
+
products:, startdate:,
|
|
15
16
|
session_id: nil, otp: nil, counter_id: nil)
|
|
16
17
|
|
|
17
18
|
params = {
|
|
@@ -25,6 +26,8 @@ module Afterbanks
|
|
|
25
26
|
|
|
26
27
|
params.merge!(pass2: password2) unless password2.nil?
|
|
27
28
|
params.merge!(documentType: document_type) unless document_type.nil?
|
|
29
|
+
params.merge!(account_id: account_id) unless account_id.nil?
|
|
30
|
+
|
|
28
31
|
params.merge!(session_id: session_id) unless session_id.nil?
|
|
29
32
|
params.merge!(OTP: otp) unless otp.nil?
|
|
30
33
|
params.merge!(counterId: counter_id) unless counter_id.nil?
|
data/lib/afterbanks/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afterbanks-api-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Albert Bellonch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-07-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
139
|
- !ruby/object:Gem::Version
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
|
-
|
|
143
|
-
rubygems_version: 2.7.6.2
|
|
142
|
+
rubygems_version: 3.0.3
|
|
144
143
|
signing_key:
|
|
145
144
|
specification_version: 4
|
|
146
145
|
summary: Ruby client for the Afterbanks' API
|