atrium-ruby 2.10.1 → 2.10.6
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 +1 -1
- data/README.md +2 -2
- data/atrium-ruby.gemspec +1 -0
- data/docs/Account.md +4 -0
- data/docs/ConnectWidgetRequestBody.md +3 -0
- data/docs/Institution.md +1 -0
- data/docs/Member.md +1 -0
- data/docs/Transaction.md +1 -0
- data/lib/atrium-ruby/api_client.rb +2 -2
- data/lib/atrium-ruby/configuration.rb +2 -2
- data/lib/atrium-ruby/models/account.rb +37 -1
- data/lib/atrium-ruby/models/connect_widget_request_body.rb +31 -4
- data/lib/atrium-ruby/models/institution.rb +10 -1
- data/lib/atrium-ruby/models/member.rb +10 -1
- data/lib/atrium-ruby/models/transaction.rb +10 -1
- data/lib/atrium-ruby/version.rb +1 -1
- data/spec/models/account_spec.rb +24 -0
- data/spec/models/connect_widget_request_body_spec.rb +18 -0
- data/spec/models/institution_spec.rb +6 -0
- data/spec/models/member_spec.rb +6 -0
- data/spec/models/transaction_spec.rb +6 -0
- metadata +38 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d2799944a659af868efa5f82876f03733526a9dc57be689638655a7f408e698
|
4
|
+
data.tar.gz: 6e583fa10b5f86aaa7f01fd8e760bf8f16f37bd287d9159cd7b16128d8639a36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a4e6cd906d86a4b66d7555c3057abd8a1b181d5f2f14cd7687659cfafe998b72f149bbec0967361bd6c88a6b4d7d78389ae6e758a0c1be6e2536ec3fc9a1fbf
|
7
|
+
data.tar.gz: e7bd75e785cf176e67f06523eb737469d476c34147f4c203013c2f3dccd3af5a9fe76c80a1733d37ba457d3e2c57009f59f61929d7f7c43c59ffb738e7e80e17
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -17,12 +17,12 @@ gem build atrium-ruby.gemspec
|
|
17
17
|
Then either install the gem locally:
|
18
18
|
|
19
19
|
```shell
|
20
|
-
gem install ./atrium-ruby-2.10.
|
20
|
+
gem install ./atrium-ruby-2.10.6.gem
|
21
21
|
```
|
22
22
|
|
23
23
|
Finally add this to the Gemfile:
|
24
24
|
|
25
|
-
gem 'atrium-ruby', '~> 2.10.
|
25
|
+
gem 'atrium-ruby', '~> 2.10.6'
|
26
26
|
|
27
27
|
### Install from Git
|
28
28
|
|
data/atrium-ruby.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.license = 'MIT'
|
24
24
|
s.required_ruby_version = ">= 1.9"
|
25
25
|
|
26
|
+
s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
|
26
27
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
27
28
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
28
29
|
|
data/docs/Account.md
CHANGED
@@ -18,10 +18,12 @@ Name | Type | Description | Notes
|
|
18
18
|
**death_benefit** | **Float** | | [optional]
|
19
19
|
**guid** | **String** | | [optional]
|
20
20
|
**holdings_value** | **Float** | | [optional]
|
21
|
+
**insured_name** | **String** | | [optional]
|
21
22
|
**institution_code** | **String** | | [optional]
|
22
23
|
**interest_rate** | **Float** | | [optional]
|
23
24
|
**is_closed** | **BOOLEAN** | | [optional]
|
24
25
|
**last_payment** | **Float** | | [optional]
|
26
|
+
**last_payment_at** | **String** | | [optional]
|
25
27
|
**loan_amount** | **Float** | | [optional]
|
26
28
|
**matures_on** | **String** | | [optional]
|
27
29
|
**member_guid** | **String** | | [optional]
|
@@ -31,6 +33,8 @@ Name | Type | Description | Notes
|
|
31
33
|
**original_balance** | **Float** | | [optional]
|
32
34
|
**payment_due_at** | **String** | | [optional]
|
33
35
|
**payoff_balance** | **Float** | | [optional]
|
36
|
+
**pay_out_amount** | **Float** | | [optional]
|
37
|
+
**premium_amount** | **Float** | | [optional]
|
34
38
|
**started_on** | **String** | | [optional]
|
35
39
|
**subtype** | **String** | | [optional]
|
36
40
|
**total_account_value** | **Float** | | [optional]
|
@@ -4,12 +4,15 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**is_mobile_webview** | **BOOLEAN** | | [optional]
|
7
|
+
**color_scheme** | **String** | | [optional]
|
7
8
|
**current_institution_code** | **String** | | [optional]
|
8
9
|
**current_member_guid** | **String** | | [optional]
|
9
10
|
**disable_institution_search** | **BOOLEAN** | | [optional]
|
11
|
+
**include_transactions** | **BOOLEAN** | | [optional]
|
10
12
|
**mode** | **String** | | [optional]
|
11
13
|
**ui_message_version** | **Float** | | [optional]
|
12
14
|
**ui_message_webview_url_scheme** | **String** | | [optional]
|
13
15
|
**update_credentials** | **BOOLEAN** | | [optional]
|
16
|
+
**wait_for_full_aggregation** | **BOOLEAN** | | [optional]
|
14
17
|
|
15
18
|
|
data/docs/Institution.md
CHANGED
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
10
10
|
**supports_account_identification** | **BOOLEAN** | | [optional]
|
11
11
|
**supports_account_statement** | **BOOLEAN** | | [optional]
|
12
12
|
**supports_account_verification** | **BOOLEAN** | | [optional]
|
13
|
+
**supports_oauth** | **BOOLEAN** | | [optional]
|
13
14
|
**supports_transaction_history** | **BOOLEAN** | | [optional]
|
14
15
|
**url** | **String** | | [optional]
|
15
16
|
|
data/docs/Member.md
CHANGED
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**identifier** | **String** | | [optional]
|
10
10
|
**institution_code** | **String** | | [optional]
|
11
11
|
**is_being_aggregated** | **BOOLEAN** | | [optional]
|
12
|
+
**is_oauth** | **BOOLEAN** | | [optional]
|
12
13
|
**metadata** | **String** | | [optional]
|
13
14
|
**name** | **String** | | [optional]
|
14
15
|
**oauth_window_uri** | **String** | | [optional]
|
data/docs/Transaction.md
CHANGED
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
|
|
21
21
|
**is_international** | **BOOLEAN** | | [optional]
|
22
22
|
**is_overdraft_fee** | **BOOLEAN** | | [optional]
|
23
23
|
**is_payroll_advance** | **BOOLEAN** | | [optional]
|
24
|
+
**is_subscription** | **BOOLEAN** | | [optional]
|
24
25
|
**latitude** | **Float** | | [optional]
|
25
26
|
**longitude** | **Float** | | [optional]
|
26
27
|
**member_guid** | **String** | | [optional]
|
@@ -11,7 +11,7 @@ require 'json'
|
|
11
11
|
require 'logger'
|
12
12
|
require 'tempfile'
|
13
13
|
require 'typhoeus'
|
14
|
-
require 'uri'
|
14
|
+
require 'addressable/uri'
|
15
15
|
|
16
16
|
module Atrium
|
17
17
|
class ApiClient
|
@@ -261,7 +261,7 @@ module Atrium
|
|
261
261
|
def build_request_url(path)
|
262
262
|
# Add leading and trailing slashes to path
|
263
263
|
path = "/#{path}".gsub(/\/+/, '/')
|
264
|
-
URI.encode(@config.base_url + path)
|
264
|
+
Addressable::URI.encode(@config.base_url + path)
|
265
265
|
end
|
266
266
|
|
267
267
|
# Builds the HTTP request body
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
=end
|
8
8
|
|
9
|
-
require 'uri'
|
9
|
+
require 'addressable/uri'
|
10
10
|
|
11
11
|
module Atrium
|
12
12
|
class Configuration
|
@@ -174,7 +174,7 @@ module Atrium
|
|
174
174
|
|
175
175
|
def base_url
|
176
176
|
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
177
|
-
URI.encode(url)
|
177
|
+
Addressable::URI.encode(url)
|
178
178
|
end
|
179
179
|
|
180
180
|
# Gets API key (with prefix if set).
|
@@ -40,6 +40,8 @@ module Atrium
|
|
40
40
|
|
41
41
|
attr_accessor :holdings_value
|
42
42
|
|
43
|
+
attr_accessor :insured_name
|
44
|
+
|
43
45
|
attr_accessor :institution_code
|
44
46
|
|
45
47
|
attr_accessor :interest_rate
|
@@ -48,6 +50,8 @@ module Atrium
|
|
48
50
|
|
49
51
|
attr_accessor :last_payment
|
50
52
|
|
53
|
+
attr_accessor :last_payment_at
|
54
|
+
|
51
55
|
attr_accessor :loan_amount
|
52
56
|
|
53
57
|
attr_accessor :matures_on
|
@@ -66,6 +70,10 @@ module Atrium
|
|
66
70
|
|
67
71
|
attr_accessor :payoff_balance
|
68
72
|
|
73
|
+
attr_accessor :pay_out_amount
|
74
|
+
|
75
|
+
attr_accessor :premium_amount
|
76
|
+
|
69
77
|
attr_accessor :started_on
|
70
78
|
|
71
79
|
attr_accessor :subtype
|
@@ -96,10 +104,12 @@ module Atrium
|
|
96
104
|
:'death_benefit' => :'death_benefit',
|
97
105
|
:'guid' => :'guid',
|
98
106
|
:'holdings_value' => :'holdings_value',
|
107
|
+
:'insured_name' => :'insured_name',
|
99
108
|
:'institution_code' => :'institution_code',
|
100
109
|
:'interest_rate' => :'interest_rate',
|
101
110
|
:'is_closed' => :'is_closed',
|
102
111
|
:'last_payment' => :'last_payment',
|
112
|
+
:'last_payment_at' => :'last_payment_at',
|
103
113
|
:'loan_amount' => :'loan_amount',
|
104
114
|
:'matures_on' => :'matures_on',
|
105
115
|
:'member_guid' => :'member_guid',
|
@@ -109,6 +119,8 @@ module Atrium
|
|
109
119
|
:'original_balance' => :'original_balance',
|
110
120
|
:'payment_due_at' => :'payment_due_at',
|
111
121
|
:'payoff_balance' => :'payoff_balance',
|
122
|
+
:'pay_out_amount' => :'pay_out_amount',
|
123
|
+
:'premium_amount' => :'premium_amount',
|
112
124
|
:'started_on' => :'started_on',
|
113
125
|
:'subtype' => :'subtype',
|
114
126
|
:'total_account_value' => :'total_account_value',
|
@@ -136,10 +148,12 @@ module Atrium
|
|
136
148
|
:'death_benefit' => :'Float',
|
137
149
|
:'guid' => :'String',
|
138
150
|
:'holdings_value' => :'Float',
|
151
|
+
:'insured_name' => :'String',
|
139
152
|
:'institution_code' => :'String',
|
140
153
|
:'interest_rate' => :'Float',
|
141
154
|
:'is_closed' => :'BOOLEAN',
|
142
155
|
:'last_payment' => :'Float',
|
156
|
+
:'last_payment_at' => :'String',
|
143
157
|
:'loan_amount' => :'Float',
|
144
158
|
:'matures_on' => :'String',
|
145
159
|
:'member_guid' => :'String',
|
@@ -149,6 +163,8 @@ module Atrium
|
|
149
163
|
:'original_balance' => :'Float',
|
150
164
|
:'payment_due_at' => :'String',
|
151
165
|
:'payoff_balance' => :'Float',
|
166
|
+
:'pay_out_amount' => :'Float',
|
167
|
+
:'premium_amount' => :'Float',
|
152
168
|
:'started_on' => :'String',
|
153
169
|
:'subtype' => :'String',
|
154
170
|
:'total_account_value' => :'Float',
|
@@ -226,6 +242,10 @@ module Atrium
|
|
226
242
|
self.holdings_value = attributes[:'holdings_value']
|
227
243
|
end
|
228
244
|
|
245
|
+
if attributes.has_key?(:'insured_name')
|
246
|
+
self.insured_name = attributes[:'insured_name']
|
247
|
+
end
|
248
|
+
|
229
249
|
if attributes.has_key?(:'institution_code')
|
230
250
|
self.institution_code = attributes[:'institution_code']
|
231
251
|
end
|
@@ -242,6 +262,10 @@ module Atrium
|
|
242
262
|
self.last_payment = attributes[:'last_payment']
|
243
263
|
end
|
244
264
|
|
265
|
+
if attributes.has_key?(:'last_payment_at')
|
266
|
+
self.last_payment_at = attributes[:'last_payment_at']
|
267
|
+
end
|
268
|
+
|
245
269
|
if attributes.has_key?(:'loan_amount')
|
246
270
|
self.loan_amount = attributes[:'loan_amount']
|
247
271
|
end
|
@@ -278,6 +302,14 @@ module Atrium
|
|
278
302
|
self.payoff_balance = attributes[:'payoff_balance']
|
279
303
|
end
|
280
304
|
|
305
|
+
if attributes.has_key?(:'pay_out_amount')
|
306
|
+
self.pay_out_amount = attributes[:'pay_out_amount']
|
307
|
+
end
|
308
|
+
|
309
|
+
if attributes.has_key?(:'premium_amount')
|
310
|
+
self.premium_amount = attributes[:'premium_amount']
|
311
|
+
end
|
312
|
+
|
281
313
|
if attributes.has_key?(:'started_on')
|
282
314
|
self.started_on = attributes[:'started_on']
|
283
315
|
end
|
@@ -336,10 +368,12 @@ module Atrium
|
|
336
368
|
death_benefit == o.death_benefit &&
|
337
369
|
guid == o.guid &&
|
338
370
|
holdings_value == o.holdings_value &&
|
371
|
+
insured_name == o.insured_name &&
|
339
372
|
institution_code == o.institution_code &&
|
340
373
|
interest_rate == o.interest_rate &&
|
341
374
|
is_closed == o.is_closed &&
|
342
375
|
last_payment == o.last_payment &&
|
376
|
+
last_payment_at == o.last_payment_at &&
|
343
377
|
loan_amount == o.loan_amount &&
|
344
378
|
matures_on == o.matures_on &&
|
345
379
|
member_guid == o.member_guid &&
|
@@ -349,6 +383,8 @@ module Atrium
|
|
349
383
|
original_balance == o.original_balance &&
|
350
384
|
payment_due_at == o.payment_due_at &&
|
351
385
|
payoff_balance == o.payoff_balance &&
|
386
|
+
pay_out_amount == o.pay_out_amount &&
|
387
|
+
premium_amount == o.premium_amount &&
|
352
388
|
started_on == o.started_on &&
|
353
389
|
subtype == o.subtype &&
|
354
390
|
total_account_value == o.total_account_value &&
|
@@ -366,7 +402,7 @@ module Atrium
|
|
366
402
|
# Calculates hash code according to all attributes.
|
367
403
|
# @return [Fixnum] Hash code
|
368
404
|
def hash
|
369
|
-
[account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, institution_code, interest_rate, is_closed, last_payment, loan_amount, matures_on, member_guid, minimum_balance, minimum_payment, name, original_balance, payment_due_at, payoff_balance, started_on, subtype, total_account_value, type, updated_at, user_guid].hash
|
405
|
+
[account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, insured_name, institution_code, interest_rate, is_closed, last_payment, last_payment_at, loan_amount, matures_on, member_guid, minimum_balance, minimum_payment, name, original_balance, payment_due_at, payoff_balance, pay_out_amount, premium_amount, started_on, subtype, total_account_value, type, updated_at, user_guid].hash
|
370
406
|
end
|
371
407
|
|
372
408
|
# Builds the object from hash
|
@@ -12,12 +12,16 @@ module Atrium
|
|
12
12
|
class ConnectWidgetRequestBody
|
13
13
|
attr_accessor :is_mobile_webview
|
14
14
|
|
15
|
+
attr_accessor :color_scheme
|
16
|
+
|
15
17
|
attr_accessor :current_institution_code
|
16
18
|
|
17
19
|
attr_accessor :current_member_guid
|
18
20
|
|
19
21
|
attr_accessor :disable_institution_search
|
20
22
|
|
23
|
+
attr_accessor :include_transactions
|
24
|
+
|
21
25
|
attr_accessor :mode
|
22
26
|
|
23
27
|
attr_accessor :ui_message_version
|
@@ -26,17 +30,22 @@ module Atrium
|
|
26
30
|
|
27
31
|
attr_accessor :update_credentials
|
28
32
|
|
33
|
+
attr_accessor :wait_for_full_aggregation
|
34
|
+
|
29
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
36
|
def self.attribute_map
|
31
37
|
{
|
32
38
|
:'is_mobile_webview' => :'is_mobile_webview',
|
39
|
+
:'color_scheme' => :'color_scheme',
|
33
40
|
:'current_institution_code' => :'current_institution_code',
|
34
41
|
:'current_member_guid' => :'current_member_guid',
|
35
42
|
:'disable_institution_search' => :'disable_institution_search',
|
43
|
+
:'include_transactions' => :'include_transactions',
|
36
44
|
:'mode' => :'mode',
|
37
45
|
:'ui_message_version' => :'ui_message_version',
|
38
46
|
:'ui_message_webview_url_scheme' => :'ui_message_webview_url_scheme',
|
39
|
-
:'update_credentials' => :'update_credentials'
|
47
|
+
:'update_credentials' => :'update_credentials',
|
48
|
+
:'wait_for_full_aggregation' => :'wait_for_full_aggregation'
|
40
49
|
}
|
41
50
|
end
|
42
51
|
|
@@ -44,13 +53,16 @@ module Atrium
|
|
44
53
|
def self.mx_types
|
45
54
|
{
|
46
55
|
:'is_mobile_webview' => :'BOOLEAN',
|
56
|
+
:'color_scheme' => :'String',
|
47
57
|
:'current_institution_code' => :'String',
|
48
58
|
:'current_member_guid' => :'String',
|
49
59
|
:'disable_institution_search' => :'BOOLEAN',
|
60
|
+
:'include_transactions' => :'BOOLEAN',
|
50
61
|
:'mode' => :'String',
|
51
62
|
:'ui_message_version' => :'Float',
|
52
63
|
:'ui_message_webview_url_scheme' => :'String',
|
53
|
-
:'update_credentials' => :'BOOLEAN'
|
64
|
+
:'update_credentials' => :'BOOLEAN',
|
65
|
+
:'wait_for_full_aggregation' => :'BOOLEAN'
|
54
66
|
}
|
55
67
|
end
|
56
68
|
|
@@ -66,6 +78,10 @@ module Atrium
|
|
66
78
|
self.is_mobile_webview = attributes[:'is_mobile_webview']
|
67
79
|
end
|
68
80
|
|
81
|
+
if attributes.has_key?(:'color_scheme')
|
82
|
+
self.color_scheme = attributes[:'color_scheme']
|
83
|
+
end
|
84
|
+
|
69
85
|
if attributes.has_key?(:'current_institution_code')
|
70
86
|
self.current_institution_code = attributes[:'current_institution_code']
|
71
87
|
end
|
@@ -78,6 +94,10 @@ module Atrium
|
|
78
94
|
self.disable_institution_search = attributes[:'disable_institution_search']
|
79
95
|
end
|
80
96
|
|
97
|
+
if attributes.has_key?(:'include_transactions')
|
98
|
+
self.include_transactions = attributes[:'include_transactions']
|
99
|
+
end
|
100
|
+
|
81
101
|
if attributes.has_key?(:'mode')
|
82
102
|
self.mode = attributes[:'mode']
|
83
103
|
end
|
@@ -93,6 +113,10 @@ module Atrium
|
|
93
113
|
if attributes.has_key?(:'update_credentials')
|
94
114
|
self.update_credentials = attributes[:'update_credentials']
|
95
115
|
end
|
116
|
+
|
117
|
+
if attributes.has_key?(:'wait_for_full_aggregation')
|
118
|
+
self.wait_for_full_aggregation = attributes[:'wait_for_full_aggregation']
|
119
|
+
end
|
96
120
|
end
|
97
121
|
|
98
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -114,13 +138,16 @@ module Atrium
|
|
114
138
|
return true if self.equal?(o)
|
115
139
|
self.class == o.class &&
|
116
140
|
is_mobile_webview == o.is_mobile_webview &&
|
141
|
+
color_scheme == o.color_scheme &&
|
117
142
|
current_institution_code == o.current_institution_code &&
|
118
143
|
current_member_guid == o.current_member_guid &&
|
119
144
|
disable_institution_search == o.disable_institution_search &&
|
145
|
+
include_transactions == o.include_transactions &&
|
120
146
|
mode == o.mode &&
|
121
147
|
ui_message_version == o.ui_message_version &&
|
122
148
|
ui_message_webview_url_scheme == o.ui_message_webview_url_scheme &&
|
123
|
-
update_credentials == o.update_credentials
|
149
|
+
update_credentials == o.update_credentials &&
|
150
|
+
wait_for_full_aggregation == o.wait_for_full_aggregation
|
124
151
|
end
|
125
152
|
|
126
153
|
# @see the `==` method
|
@@ -132,7 +159,7 @@ module Atrium
|
|
132
159
|
# Calculates hash code according to all attributes.
|
133
160
|
# @return [Fixnum] Hash code
|
134
161
|
def hash
|
135
|
-
[is_mobile_webview, current_institution_code, current_member_guid, disable_institution_search, mode, ui_message_version, ui_message_webview_url_scheme, update_credentials].hash
|
162
|
+
[is_mobile_webview, color_scheme, current_institution_code, current_member_guid, disable_institution_search, include_transactions, mode, ui_message_version, ui_message_webview_url_scheme, update_credentials, wait_for_full_aggregation].hash
|
136
163
|
end
|
137
164
|
|
138
165
|
# Builds the object from hash
|
@@ -24,6 +24,8 @@ module Atrium
|
|
24
24
|
|
25
25
|
attr_accessor :supports_account_verification
|
26
26
|
|
27
|
+
attr_accessor :supports_oauth
|
28
|
+
|
27
29
|
attr_accessor :supports_transaction_history
|
28
30
|
|
29
31
|
attr_accessor :url
|
@@ -38,6 +40,7 @@ module Atrium
|
|
38
40
|
:'supports_account_identification' => :'supports_account_identification',
|
39
41
|
:'supports_account_statement' => :'supports_account_statement',
|
40
42
|
:'supports_account_verification' => :'supports_account_verification',
|
43
|
+
:'supports_oauth' => :'supports_oauth',
|
41
44
|
:'supports_transaction_history' => :'supports_transaction_history',
|
42
45
|
:'url' => :'url'
|
43
46
|
}
|
@@ -53,6 +56,7 @@ module Atrium
|
|
53
56
|
:'supports_account_identification' => :'BOOLEAN',
|
54
57
|
:'supports_account_statement' => :'BOOLEAN',
|
55
58
|
:'supports_account_verification' => :'BOOLEAN',
|
59
|
+
:'supports_oauth' => :'BOOLEAN',
|
56
60
|
:'supports_transaction_history' => :'BOOLEAN',
|
57
61
|
:'url' => :'String'
|
58
62
|
}
|
@@ -94,6 +98,10 @@ module Atrium
|
|
94
98
|
self.supports_account_verification = attributes[:'supports_account_verification']
|
95
99
|
end
|
96
100
|
|
101
|
+
if attributes.has_key?(:'supports_oauth')
|
102
|
+
self.supports_oauth = attributes[:'supports_oauth']
|
103
|
+
end
|
104
|
+
|
97
105
|
if attributes.has_key?(:'supports_transaction_history')
|
98
106
|
self.supports_transaction_history = attributes[:'supports_transaction_history']
|
99
107
|
end
|
@@ -128,6 +136,7 @@ module Atrium
|
|
128
136
|
supports_account_identification == o.supports_account_identification &&
|
129
137
|
supports_account_statement == o.supports_account_statement &&
|
130
138
|
supports_account_verification == o.supports_account_verification &&
|
139
|
+
supports_oauth == o.supports_oauth &&
|
131
140
|
supports_transaction_history == o.supports_transaction_history &&
|
132
141
|
url == o.url
|
133
142
|
end
|
@@ -141,7 +150,7 @@ module Atrium
|
|
141
150
|
# Calculates hash code according to all attributes.
|
142
151
|
# @return [Fixnum] Hash code
|
143
152
|
def hash
|
144
|
-
[code, medium_logo_url, name, small_logo_url, supports_account_identification, supports_account_statement, supports_account_verification, supports_transaction_history, url].hash
|
153
|
+
[code, medium_logo_url, name, small_logo_url, supports_account_identification, supports_account_statement, supports_account_verification, supports_oauth, supports_transaction_history, url].hash
|
145
154
|
end
|
146
155
|
|
147
156
|
# Builds the object from hash
|
@@ -22,6 +22,8 @@ module Atrium
|
|
22
22
|
|
23
23
|
attr_accessor :is_being_aggregated
|
24
24
|
|
25
|
+
attr_accessor :is_oauth
|
26
|
+
|
25
27
|
attr_accessor :metadata
|
26
28
|
|
27
29
|
attr_accessor :name
|
@@ -43,6 +45,7 @@ module Atrium
|
|
43
45
|
:'identifier' => :'identifier',
|
44
46
|
:'institution_code' => :'institution_code',
|
45
47
|
:'is_being_aggregated' => :'is_being_aggregated',
|
48
|
+
:'is_oauth' => :'is_oauth',
|
46
49
|
:'metadata' => :'metadata',
|
47
50
|
:'name' => :'name',
|
48
51
|
:'oauth_window_uri' => :'oauth_window_uri',
|
@@ -61,6 +64,7 @@ module Atrium
|
|
61
64
|
:'identifier' => :'String',
|
62
65
|
:'institution_code' => :'String',
|
63
66
|
:'is_being_aggregated' => :'BOOLEAN',
|
67
|
+
:'is_oauth' => :'BOOLEAN',
|
64
68
|
:'metadata' => :'String',
|
65
69
|
:'name' => :'String',
|
66
70
|
:'oauth_window_uri' => :'String',
|
@@ -102,6 +106,10 @@ module Atrium
|
|
102
106
|
self.is_being_aggregated = attributes[:'is_being_aggregated']
|
103
107
|
end
|
104
108
|
|
109
|
+
if attributes.has_key?(:'is_oauth')
|
110
|
+
self.is_oauth = attributes[:'is_oauth']
|
111
|
+
end
|
112
|
+
|
105
113
|
if attributes.has_key?(:'metadata')
|
106
114
|
self.metadata = attributes[:'metadata']
|
107
115
|
end
|
@@ -151,6 +159,7 @@ module Atrium
|
|
151
159
|
identifier == o.identifier &&
|
152
160
|
institution_code == o.institution_code &&
|
153
161
|
is_being_aggregated == o.is_being_aggregated &&
|
162
|
+
is_oauth == o.is_oauth &&
|
154
163
|
metadata == o.metadata &&
|
155
164
|
name == o.name &&
|
156
165
|
oauth_window_uri == o.oauth_window_uri &&
|
@@ -168,7 +177,7 @@ module Atrium
|
|
168
177
|
# Calculates hash code according to all attributes.
|
169
178
|
# @return [Fixnum] Hash code
|
170
179
|
def hash
|
171
|
-
[aggregated_at, connection_status, guid, identifier, institution_code, is_being_aggregated, metadata, name, oauth_window_uri, status, successfully_aggregated_at, user_guid].hash
|
180
|
+
[aggregated_at, connection_status, guid, identifier, institution_code, is_being_aggregated, is_oauth, metadata, name, oauth_window_uri, status, successfully_aggregated_at, user_guid].hash
|
172
181
|
end
|
173
182
|
|
174
183
|
# Builds the object from hash
|
@@ -46,6 +46,8 @@ module Atrium
|
|
46
46
|
|
47
47
|
attr_accessor :is_payroll_advance
|
48
48
|
|
49
|
+
attr_accessor :is_subscription
|
50
|
+
|
49
51
|
attr_accessor :latitude
|
50
52
|
|
51
53
|
attr_accessor :longitude
|
@@ -95,6 +97,7 @@ module Atrium
|
|
95
97
|
:'is_international' => :'is_international',
|
96
98
|
:'is_overdraft_fee' => :'is_overdraft_fee',
|
97
99
|
:'is_payroll_advance' => :'is_payroll_advance',
|
100
|
+
:'is_subscription' => :'is_subscription',
|
98
101
|
:'latitude' => :'latitude',
|
99
102
|
:'longitude' => :'longitude',
|
100
103
|
:'member_guid' => :'member_guid',
|
@@ -133,6 +136,7 @@ module Atrium
|
|
133
136
|
:'is_international' => :'BOOLEAN',
|
134
137
|
:'is_overdraft_fee' => :'BOOLEAN',
|
135
138
|
:'is_payroll_advance' => :'BOOLEAN',
|
139
|
+
:'is_subscription' => :'BOOLEAN',
|
136
140
|
:'latitude' => :'Float',
|
137
141
|
:'longitude' => :'Float',
|
138
142
|
:'member_guid' => :'String',
|
@@ -230,6 +234,10 @@ module Atrium
|
|
230
234
|
self.is_payroll_advance = attributes[:'is_payroll_advance']
|
231
235
|
end
|
232
236
|
|
237
|
+
if attributes.has_key?(:'is_subscription')
|
238
|
+
self.is_subscription = attributes[:'is_subscription']
|
239
|
+
end
|
240
|
+
|
233
241
|
if attributes.has_key?(:'latitude')
|
234
242
|
self.latitude = attributes[:'latitude']
|
235
243
|
end
|
@@ -323,6 +331,7 @@ module Atrium
|
|
323
331
|
is_international == o.is_international &&
|
324
332
|
is_overdraft_fee == o.is_overdraft_fee &&
|
325
333
|
is_payroll_advance == o.is_payroll_advance &&
|
334
|
+
is_subscription == o.is_subscription &&
|
326
335
|
latitude == o.latitude &&
|
327
336
|
longitude == o.longitude &&
|
328
337
|
member_guid == o.member_guid &&
|
@@ -348,7 +357,7 @@ module Atrium
|
|
348
357
|
# Calculates hash code according to all attributes.
|
349
358
|
# @return [Fixnum] Hash code
|
350
359
|
def hash
|
351
|
-
[account_guid, amount, category, check_number, check_number_string, created_at, currency_code, date, description, guid, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, latitude, longitude, member_guid, memo, merchant_category_code, merchant_guid, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid].hash
|
360
|
+
[account_guid, amount, category, check_number, check_number_string, created_at, currency_code, date, description, guid, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, is_subscription, latitude, longitude, member_guid, memo, merchant_category_code, merchant_guid, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid].hash
|
352
361
|
end
|
353
362
|
|
354
363
|
# Builds the object from hash
|
data/lib/atrium-ruby/version.rb
CHANGED
data/spec/models/account_spec.rb
CHANGED
@@ -117,6 +117,12 @@ describe 'Account' do
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
+
describe 'test attribute "insured_name"' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
120
126
|
describe 'test attribute "institution_code"' do
|
121
127
|
it 'should work' do
|
122
128
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -141,6 +147,12 @@ describe 'Account' do
|
|
141
147
|
end
|
142
148
|
end
|
143
149
|
|
150
|
+
describe 'test attribute "last_payment_at"' do
|
151
|
+
it 'should work' do
|
152
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
144
156
|
describe 'test attribute "loan_amount"' do
|
145
157
|
it 'should work' do
|
146
158
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -195,6 +207,18 @@ describe 'Account' do
|
|
195
207
|
end
|
196
208
|
end
|
197
209
|
|
210
|
+
describe 'test attribute "pay_out_amount"' do
|
211
|
+
it 'should work' do
|
212
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
describe 'test attribute "premium_amount"' do
|
217
|
+
it 'should work' do
|
218
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
198
222
|
describe 'test attribute "started_on"' do
|
199
223
|
it 'should work' do
|
200
224
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -33,6 +33,12 @@ describe 'ConnectWidgetRequestBody' do
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
describe 'test attribute "color_scheme"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
36
42
|
describe 'test attribute "current_institution_code"' do
|
37
43
|
it 'should work' do
|
38
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -51,6 +57,12 @@ describe 'ConnectWidgetRequestBody' do
|
|
51
57
|
end
|
52
58
|
end
|
53
59
|
|
60
|
+
describe 'test attribute "include_transactions"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
54
66
|
describe 'test attribute "mode"' do
|
55
67
|
it 'should work' do
|
56
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -75,4 +87,10 @@ describe 'ConnectWidgetRequestBody' do
|
|
75
87
|
end
|
76
88
|
end
|
77
89
|
|
90
|
+
describe 'test attribute "wait_for_full_aggregation"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
78
96
|
end
|
@@ -69,6 +69,12 @@ describe 'Institution' do
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
+
describe 'test attribute "supports_oauth"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
72
78
|
describe 'test attribute "supports_transaction_history"' do
|
73
79
|
it 'should work' do
|
74
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/models/member_spec.rb
CHANGED
@@ -63,6 +63,12 @@ describe 'Member' do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
describe 'test attribute "is_oauth"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
66
72
|
describe 'test attribute "metadata"' do
|
67
73
|
it 'should work' do
|
68
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -135,6 +135,12 @@ describe 'Transaction' do
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
138
|
+
describe 'test attribute "is_subscription"' do
|
139
|
+
it 'should work' do
|
140
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
138
144
|
describe 'test attribute "latitude"' do
|
139
145
|
it 'should work' do
|
140
146
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atrium-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MX
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: addressable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.3.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.3.0
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: typhoeus
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,42 +54,42 @@ dependencies:
|
|
34
54
|
name: json
|
35
55
|
requirement: !ruby/object:Gem::Requirement
|
36
56
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.0
|
40
57
|
- - "~>"
|
41
58
|
- !ruby/object:Gem::Version
|
42
59
|
version: '2.1'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.1.0
|
43
63
|
type: :runtime
|
44
64
|
prerelease: false
|
45
65
|
version_requirements: !ruby/object:Gem::Requirement
|
46
66
|
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 2.1.0
|
50
67
|
- - "~>"
|
51
68
|
- !ruby/object:Gem::Version
|
52
69
|
version: '2.1'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 2.1.0
|
53
73
|
- !ruby/object:Gem::Dependency
|
54
74
|
name: rspec
|
55
75
|
requirement: !ruby/object:Gem::Requirement
|
56
76
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 3.6.0
|
60
77
|
- - "~>"
|
61
78
|
- !ruby/object:Gem::Version
|
62
79
|
version: '3.6'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.6.0
|
63
83
|
type: :development
|
64
84
|
prerelease: false
|
65
85
|
version_requirements: !ruby/object:Gem::Requirement
|
66
86
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.6.0
|
70
87
|
- - "~>"
|
71
88
|
- !ruby/object:Gem::Version
|
72
89
|
version: '3.6'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.6.0
|
73
93
|
- !ruby/object:Gem::Dependency
|
74
94
|
name: vcr
|
75
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -420,7 +440,7 @@ homepage: https://atrium.mx.com
|
|
420
440
|
licenses:
|
421
441
|
- MIT
|
422
442
|
metadata: {}
|
423
|
-
post_install_message:
|
443
|
+
post_install_message:
|
424
444
|
rdoc_options: []
|
425
445
|
require_paths:
|
426
446
|
- lib
|
@@ -435,8 +455,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
435
455
|
- !ruby/object:Gem::Version
|
436
456
|
version: '0'
|
437
457
|
requirements: []
|
438
|
-
rubygems_version: 3.
|
439
|
-
signing_key:
|
458
|
+
rubygems_version: 3.2.14
|
459
|
+
signing_key:
|
440
460
|
specification_version: 4
|
441
461
|
summary: Ruby wrapper for the Atrium API by MX
|
442
462
|
test_files:
|