plaid 5.0.0 → 6.0.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 +6 -0
- data/Gemfile.lock +7 -7
- data/lib/plaid.rb +5 -1
- data/lib/plaid/middleware.rb +3 -2
- data/lib/plaid/models.rb +59 -2
- data/lib/plaid/products/auth.rb +2 -2
- data/lib/plaid/version.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c5640b58e7e3dd7083d0c591e45e715a9909fe
|
4
|
+
data.tar.gz: b95f33803556ae6f1fbbaaef3c62a782bf479fc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd30997779f028c382a74542c658a59d0103e05f8c510c1436ee2847ae772c665214855bf70f176d549bfa0ef20048bd2318ecd8cd60e7849f4abd60de8dd11
|
7
|
+
data.tar.gz: 129a894b83addada9e7b1193baf3e7681a90603c010927b3d75c1d16ef4fd9d3177eb91bde8c84af3c07254b841e0c02c445874c94fb7da62a1c994597b0ee07
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 6.0.0 22-May-2018
|
2
|
+
|
3
|
+
* Use `Plaid-Version` header to request the certain compatible API version.
|
4
|
+
* Change Auth-related data structures to conform to the API.
|
5
|
+
* Include currency-related fields for transaction and account objects.
|
6
|
+
|
1
7
|
# 5.0.0 23-Mar-2018
|
2
8
|
|
3
9
|
* Introduce true response objects instead of deep nested hashes. Any of the
|
data/Gemfile.lock
CHANGED
@@ -10,8 +10,8 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
ast (2.4.0)
|
13
|
-
dotenv (2.
|
14
|
-
faraday (0.
|
13
|
+
dotenv (2.4.0)
|
14
|
+
faraday (0.15.1)
|
15
15
|
multipart-post (>= 1.2, < 3)
|
16
16
|
faraday_middleware (0.12.2)
|
17
17
|
faraday (>= 0.7.4, < 1.0)
|
@@ -21,12 +21,12 @@ GEM
|
|
21
21
|
minitest (~> 5.0)
|
22
22
|
multipart-post (2.0.0)
|
23
23
|
parallel (1.12.1)
|
24
|
-
parser (2.5.0
|
24
|
+
parser (2.5.1.0)
|
25
25
|
ast (~> 2.4.0)
|
26
26
|
powerpack (0.1.1)
|
27
27
|
rainbow (3.0.0)
|
28
|
-
rake (12.3.
|
29
|
-
rdoc (6.0.
|
28
|
+
rake (12.3.1)
|
29
|
+
rdoc (6.0.4)
|
30
30
|
rubocop (0.53.0)
|
31
31
|
parallel (~> 1.10)
|
32
32
|
parser (>= 2.5)
|
@@ -37,7 +37,7 @@ GEM
|
|
37
37
|
ruby-progressbar (1.9.0)
|
38
38
|
sdoc (1.0.0)
|
39
39
|
rdoc (>= 5.0)
|
40
|
-
unicode-display_width (1.3.
|
40
|
+
unicode-display_width (1.3.2)
|
41
41
|
vcr (4.0.0)
|
42
42
|
|
43
43
|
PLATFORMS
|
@@ -55,4 +55,4 @@ DEPENDENCIES
|
|
55
55
|
vcr (~> 4.0.0)
|
56
56
|
|
57
57
|
BUNDLED WITH
|
58
|
-
1.
|
58
|
+
1.16.0
|
data/lib/plaid.rb
CHANGED
@@ -33,7 +33,11 @@ module Plaid
|
|
33
33
|
#
|
34
34
|
# Returns truey value for relaxed mode and falsey for strict.
|
35
35
|
def relaxed_models?
|
36
|
-
defined?(@relaxed_models)
|
36
|
+
if defined?(@relaxed_models)
|
37
|
+
@relaxed_models
|
38
|
+
else
|
39
|
+
true
|
40
|
+
end
|
37
41
|
end
|
38
42
|
|
39
43
|
# Public: Sets value for relaxed_models.
|
data/lib/plaid/middleware.rb
CHANGED
@@ -8,8 +8,9 @@ module Plaid
|
|
8
8
|
# Internal: The Faraday middleware used to catch errors.
|
9
9
|
class Middleware < ::Faraday::Response::Middleware
|
10
10
|
# Internal: Headers used for correct request and SDK tracking.
|
11
|
-
NETWORK_HEADERS = { 'User-Agent'
|
12
|
-
'Content-Type'
|
11
|
+
NETWORK_HEADERS = { 'User-Agent' => "Plaid Ruby v#{Plaid::VERSION}",
|
12
|
+
'Content-Type' => 'application/json',
|
13
|
+
'Plaid-Version' => Plaid::API_VERSION }.freeze
|
13
14
|
|
14
15
|
# Internal: Default read timeout for HTTP calls in seconds.
|
15
16
|
NETWORK_TIMEOUT = 600
|
data/lib/plaid/models.rb
CHANGED
@@ -100,6 +100,16 @@ module Plaid
|
|
100
100
|
# :attr_reader:
|
101
101
|
# Public: The Numeric limit (or nil).
|
102
102
|
property :limit
|
103
|
+
|
104
|
+
##
|
105
|
+
# :attr_reader:
|
106
|
+
# Public: The String ISO currency code for the amount
|
107
|
+
property :iso_currency_code
|
108
|
+
|
109
|
+
##
|
110
|
+
# :attr_reader:
|
111
|
+
# Public: The String unofficial currency code for the amount
|
112
|
+
property :unofficial_currency_code
|
103
113
|
end
|
104
114
|
|
105
115
|
# Public: A representation of an account.
|
@@ -141,8 +151,8 @@ module Plaid
|
|
141
151
|
property :subtype
|
142
152
|
end
|
143
153
|
|
144
|
-
# Public: A representation of an account number.
|
145
|
-
class
|
154
|
+
# Public: A representation of an ACH account number.
|
155
|
+
class NumberACH < BaseModel
|
146
156
|
##
|
147
157
|
# :attr_reader:
|
148
158
|
# Public: The String account number. E.g. "1111222233330000".
|
@@ -165,6 +175,43 @@ module Plaid
|
|
165
175
|
property :wire_routing
|
166
176
|
end
|
167
177
|
|
178
|
+
# Public: A representation of an EFT (Canadian) account number.
|
179
|
+
class NumberEFT < BaseModel
|
180
|
+
##
|
181
|
+
# :attr_reader:
|
182
|
+
# Public: The String account number. E.g. "1111222233330000".
|
183
|
+
property :account
|
184
|
+
|
185
|
+
##
|
186
|
+
# :attr_reader:
|
187
|
+
# Public: The String account ID. E.g.
|
188
|
+
# "vzeNDwK7KQIm4yEog683uElbp9GRLEFXGK98D".
|
189
|
+
property :account_id
|
190
|
+
|
191
|
+
##
|
192
|
+
# :attr_reader:
|
193
|
+
# Public: The String branch number. E.g. "021".
|
194
|
+
property :branch
|
195
|
+
|
196
|
+
##
|
197
|
+
# :attr_reader:
|
198
|
+
# Public: The String institution number. E.g. "01140".
|
199
|
+
property :institution
|
200
|
+
end
|
201
|
+
|
202
|
+
# Public: A representation of a Auth Numbers response
|
203
|
+
class Numbers < BaseModel
|
204
|
+
##
|
205
|
+
# :attr_reader:
|
206
|
+
# Public: The Array of NumberACH.
|
207
|
+
property :ach, coerce: Array[NumberACH]
|
208
|
+
|
209
|
+
##
|
210
|
+
# :attr_reader:
|
211
|
+
# Public: The Array of NumberEFT.
|
212
|
+
property :eft, coerce: Array[NumberEFT]
|
213
|
+
end
|
214
|
+
|
168
215
|
# Public: A representation of a transaction category.
|
169
216
|
class Category < BaseModel
|
170
217
|
##
|
@@ -678,6 +725,16 @@ module Plaid
|
|
678
725
|
# Public: The String transaction type (or nil). E.g. "special", or
|
679
726
|
# "place".
|
680
727
|
property :transaction_type
|
728
|
+
|
729
|
+
##
|
730
|
+
# :attr_reader:
|
731
|
+
# Public: The String ISO currency code for the amount
|
732
|
+
property :iso_currency_code
|
733
|
+
|
734
|
+
##
|
735
|
+
# :attr_reader:
|
736
|
+
# Public: The String unofficial currency code for the amount
|
737
|
+
property :unofficial_currency_code
|
681
738
|
end
|
682
739
|
end
|
683
740
|
end
|
data/lib/plaid/products/auth.rb
CHANGED
@@ -31,8 +31,8 @@ module Plaid
|
|
31
31
|
|
32
32
|
##
|
33
33
|
# :attr_reader:
|
34
|
-
# Public: The
|
35
|
-
property :numbers, coerce:
|
34
|
+
# Public: The item: Plaid::Models::Numbers.
|
35
|
+
property :numbers, coerce: Models::Numbers
|
36
36
|
|
37
37
|
##
|
38
38
|
# :attr_reader:
|
data/lib/plaid/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plaid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Loo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|