atrium-ruby 2.10.0 → 2.10.5
Sign up to get free protection for your applications and to get access to all the features.
- 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/MerchantsResponseBody.md +1 -1
- 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/merchants_response_body.rb +8 -8
- 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/merchants_response_body_spec.rb +1 -1
- 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: adee43fcf97f10f6790cd6b7fdd4cfa8f65845996e24172e444bcd1767f876e5
|
4
|
+
data.tar.gz: 2a59a5ff5bf0f010174b0f255a8f7cac0dbb4e2b4eb433e73875332bfdb49140
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 394e5077ce9e39fb2f4585524644f76a45df5b951387f9d8d4f8a556f9b8d82f8d7ba93e081ca541a9371cfd85bfcad36fe3a0e7ac3ea4a4f06b97a3835a8141
|
7
|
+
data.tar.gz: 69ad997e724fa14a68bb9c71fa16025605dca152e53681a4e56cea6e1775ec3efda7891985c6783db1e50f53be9a4b79ac522a284efd45a8091226d94e98d516
|
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.5.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.5'
|
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
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**
|
6
|
+
**merchants** | [**Array<Merchant>**](Merchant.md) | | [optional]
|
7
7
|
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
8
|
|
9
9
|
|
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
|
@@ -10,14 +10,14 @@ require 'date'
|
|
10
10
|
|
11
11
|
module Atrium
|
12
12
|
class MerchantsResponseBody
|
13
|
-
attr_accessor :
|
13
|
+
attr_accessor :merchants
|
14
14
|
|
15
15
|
attr_accessor :pagination
|
16
16
|
|
17
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
18
18
|
def self.attribute_map
|
19
19
|
{
|
20
|
-
:'
|
20
|
+
:'merchants' => :'merchants',
|
21
21
|
:'pagination' => :'pagination'
|
22
22
|
}
|
23
23
|
end
|
@@ -25,7 +25,7 @@ module Atrium
|
|
25
25
|
# Attribute type mapping.
|
26
26
|
def self.mx_types
|
27
27
|
{
|
28
|
-
:'
|
28
|
+
:'merchants' => :'Array<Merchant>',
|
29
29
|
:'pagination' => :'Pagination'
|
30
30
|
}
|
31
31
|
end
|
@@ -38,9 +38,9 @@ module Atrium
|
|
38
38
|
# convert string to symbol for hash key
|
39
39
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
40
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
if (value = attributes[:'
|
43
|
-
self.
|
41
|
+
if attributes.has_key?(:'merchants')
|
42
|
+
if (value = attributes[:'merchants']).is_a?(Array)
|
43
|
+
self.merchants = value
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -67,7 +67,7 @@ module Atrium
|
|
67
67
|
def ==(o)
|
68
68
|
return true if self.equal?(o)
|
69
69
|
self.class == o.class &&
|
70
|
-
|
70
|
+
merchants == o.merchants &&
|
71
71
|
pagination == o.pagination
|
72
72
|
end
|
73
73
|
|
@@ -80,7 +80,7 @@ module Atrium
|
|
80
80
|
# Calculates hash code according to all attributes.
|
81
81
|
# @return [Fixnum] Hash code
|
82
82
|
def hash
|
83
|
-
[
|
83
|
+
[merchants, pagination].hash
|
84
84
|
end
|
85
85
|
|
86
86
|
# 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
|
@@ -27,7 +27,7 @@ describe 'MerchantsResponseBody' do
|
|
27
27
|
expect(@instance).to be_instance_of(Atrium::MerchantsResponseBody)
|
28
28
|
end
|
29
29
|
end
|
30
|
-
describe 'test attribute "
|
30
|
+
describe 'test attribute "merchants"' do
|
31
31
|
it 'should work' do
|
32
32
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
33
|
end
|
@@ -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.5
|
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-19 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.1.2
|
459
|
+
signing_key:
|
440
460
|
specification_version: 4
|
441
461
|
summary: Ruby wrapper for the Atrium API by MX
|
442
462
|
test_files:
|