atrium-ruby 2.10.3 → 2.10.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99a3da5e9ec8879851fc9a6849b3ac571cd832815827dcdae950fc4554c10975
4
- data.tar.gz: 1f3ed24ea48fbd3e5d0e86d694e05c7c95dbe471270be61d16731ff80b2bfa47
3
+ metadata.gz: 43fa9a798d4b18231e00af25e3b535e972b2682059f146c419db02b60bf0c743
4
+ data.tar.gz: 1ff3292370bdb3f5a1a7cdfe7ccde534be1979706184a8a79652db3d6e011ef7
5
5
  SHA512:
6
- metadata.gz: 165317a25db6638f06115bd95eea06283aafff39b311043591c6377950623ba4dfcbdede757474064f624914fa9863fbb5e15a426476a01907fffe93b25f3c02
7
- data.tar.gz: 831bd4a7b66b64aa7641bf4429dc0265f6d556c3cee28f09226f74430f89c51137fabb3e6adb040bddaf6a7b1b6017d2366f0a01c53bd56abc14a14b6a3a97ec
6
+ metadata.gz: f57889adcf132d9b9ee2b917119d8010f0f9d852b90fda38b57258f3381e8be122bca4c72de56a2fe1af6ef320f87009926a5904835ec0a51c63ad02e71d030e
7
+ data.tar.gz: 56d691f090f37803a0360245ef09982f58100eb4fa1fee62ea13423540d88bab3da830b6d8a70d6526544f732b5c4fc1fd00ad969d02d0f55d99f15ef82ee409
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '>= 12.3.3'
7
7
  end
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.3.gem
20
+ gem install ./atrium-ruby-2.10.7.gem
21
21
  ```
22
22
 
23
23
  Finally add this to the Gemfile:
24
24
 
25
- gem 'atrium-ruby', '~> 2.10.3'
25
+ gem 'atrium-ruby', '~> 2.10.7'
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
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
23
23
  **interest_rate** | **Float** | | [optional]
24
24
  **is_closed** | **BOOLEAN** | | [optional]
25
25
  **last_payment** | **Float** | | [optional]
26
+ **last_payment_at** | **String** | | [optional]
26
27
  **loan_amount** | **Float** | | [optional]
27
28
  **matures_on** | **String** | | [optional]
28
29
  **member_guid** | **String** | | [optional]
data/docs/HoldingsApi.md CHANGED
@@ -9,7 +9,7 @@ Method | HTTP request | Description
9
9
 
10
10
 
11
11
  # **list_holdings**
12
- > HoldingsResponseBody list_holdings(user_guid, )
12
+ > HoldingsResponseBody list_holdings(user_guid, , opts)
13
13
 
14
14
  List holdings
15
15
 
@@ -23,10 +23,14 @@ require 'atrium-ruby'
23
23
  client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
24
24
 
25
25
  user_guid = "USR-123" # String | The unique identifier for a `user`.
26
+ opts = {
27
+ page: 1, # Integer | Specify current page.
28
+ records_per_page: 12 # Integer | Specify records per page.
29
+ }
26
30
 
27
31
  begin
28
32
  #List holdings
29
- response = client.holdings.list_holdings(user_guid, )
33
+ response = client.holdings.list_holdings(user_guid, , opts)
30
34
  p response
31
35
  rescue Atrium::ApiError => e
32
36
  puts "Exception when calling HoldingsApi->list_holdings: #{e}"
@@ -38,13 +42,15 @@ end
38
42
  Name | Type | Description | Notes
39
43
  ------------- | ------------- | ------------- | -------------
40
44
  **user_guid** | **String**| The unique identifier for a `user`. |
45
+ **page** | **Integer**| Specify current page. | [optional]
46
+ **records_per_page** | **Integer**| Specify records per page. | [optional]
41
47
 
42
48
  ### Return type
43
49
 
44
50
  [**HoldingsResponseBody**](HoldingsResponseBody.md)
45
51
 
46
52
  # **list_holdings_by_account**
47
- > HoldingsResponseBody list_holdings_by_account(account_guid, user_guid, )
53
+ > HoldingsResponseBody list_holdings_by_account(account_guid, user_guid, , opts)
48
54
 
49
55
  List holdings by account
50
56
 
@@ -59,10 +65,14 @@ client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
59
65
 
60
66
  account_guid = "ACT-123" # String | The unique identifier for an `account`.
61
67
  user_guid = "USR-123" # String | The unique identifier for a `user`.
68
+ opts = {
69
+ page: 1, # Integer | Specify current page.
70
+ records_per_page: 12 # Integer | Specify records per page.
71
+ }
62
72
 
63
73
  begin
64
74
  #List holdings by account
65
- response = client.holdings.list_holdings_by_account(account_guid, user_guid, )
75
+ response = client.holdings.list_holdings_by_account(account_guid, user_guid, , opts)
66
76
  p response
67
77
  rescue Atrium::ApiError => e
68
78
  puts "Exception when calling HoldingsApi->list_holdings_by_account: #{e}"
@@ -75,13 +85,15 @@ Name | Type | Description | Notes
75
85
  ------------- | ------------- | ------------- | -------------
76
86
  **account_guid** | **String**| The unique identifier for an `account`. |
77
87
  **user_guid** | **String**| The unique identifier for a `user`. |
88
+ **page** | **Integer**| Specify current page. | [optional]
89
+ **records_per_page** | **Integer**| Specify records per page. | [optional]
78
90
 
79
91
  ### Return type
80
92
 
81
93
  [**HoldingsResponseBody**](HoldingsResponseBody.md)
82
94
 
83
95
  # **list_holdings_by_member**
84
- > HoldingsResponseBody list_holdings_by_member(member_guid, user_guid, )
96
+ > HoldingsResponseBody list_holdings_by_member(member_guid, user_guid, , opts)
85
97
 
86
98
  List holdings by member
87
99
 
@@ -96,10 +108,14 @@ client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
96
108
 
97
109
  member_guid = "MBR-123" # String | The unique identifier for a `member`.
98
110
  user_guid = "USR-123" # String | The unique identifier for a `user`.
111
+ opts = {
112
+ page: 1, # Integer | Specify current page.
113
+ records_per_page: 12 # Integer | Specify records per page.
114
+ }
99
115
 
100
116
  begin
101
117
  #List holdings by member
102
- response = client.holdings.list_holdings_by_member(member_guid, user_guid, )
118
+ response = client.holdings.list_holdings_by_member(member_guid, user_guid, , opts)
103
119
  p response
104
120
  rescue Atrium::ApiError => e
105
121
  puts "Exception when calling HoldingsApi->list_holdings_by_member: #{e}"
@@ -112,6 +128,8 @@ Name | Type | Description | Notes
112
128
  ------------- | ------------- | ------------- | -------------
113
129
  **member_guid** | **String**| The unique identifier for a `member`. |
114
130
  **user_guid** | **String**| The unique identifier for a `user`. |
131
+ **page** | **Integer**| Specify current page. | [optional]
132
+ **records_per_page** | **Integer**| Specify records per page. | [optional]
115
133
 
116
134
  ### Return type
117
135
 
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/MerchantsApi.md CHANGED
@@ -9,7 +9,7 @@ Method | HTTP request | Description
9
9
 
10
10
 
11
11
  # **list_merchant_locations**
12
- > MerchantLocationsResponseBody list_merchant_locations(merchant_guid, )
12
+ > MerchantLocationsResponseBody list_merchant_locations(merchant_guid, , opts)
13
13
 
14
14
  List merchant locations
15
15
 
@@ -23,10 +23,14 @@ require 'atrium-ruby'
23
23
  client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
24
24
 
25
25
  merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
26
+ opts = {
27
+ page: 1, # Integer | Specify current page.
28
+ records_per_page: 12 # Integer | Specify records per page.
29
+ }
26
30
 
27
31
  begin
28
32
  #List merchant locations
29
- response = client.merchants.list_merchant_locations(merchant_guid, )
33
+ response = client.merchants.list_merchant_locations(merchant_guid, , opts)
30
34
  p response
31
35
  rescue Atrium::ApiError => e
32
36
  puts "Exception when calling MerchantsApi->list_merchant_locations: #{e}"
@@ -38,13 +42,15 @@ end
38
42
  Name | Type | Description | Notes
39
43
  ------------- | ------------- | ------------- | -------------
40
44
  **merchant_guid** | **String**| The unique identifier for a `merchant`. |
45
+ **page** | **Integer**| Specify current page. | [optional]
46
+ **records_per_page** | **Integer**| Specify records per page. | [optional]
41
47
 
42
48
  ### Return type
43
49
 
44
50
  [**MerchantLocationsResponseBody**](MerchantLocationsResponseBody.md)
45
51
 
46
52
  # **list_merchants**
47
- > MerchantsResponseBody list_merchants
53
+ > MerchantsResponseBody list_merchants(opts)
48
54
 
49
55
  List merchants
50
56
 
@@ -57,9 +63,14 @@ require 'atrium-ruby'
57
63
 
58
64
  client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
59
65
 
66
+ opts = {
67
+ page: 1, # Integer | Specify current page.
68
+ records_per_page: 12 # Integer | Specify records per page.
69
+ }
70
+
60
71
  begin
61
72
  #List merchants
62
- response = client.merchants.list_merchants
73
+ response = client.merchants.list_merchants(opts)
63
74
  p response
64
75
  rescue Atrium::ApiError => e
65
76
  puts "Exception when calling MerchantsApi->list_merchants: #{e}"
@@ -67,7 +78,11 @@ end
67
78
  ```
68
79
 
69
80
  ### Parameters
70
- This endpoint does not need any parameter.
81
+
82
+ Name | Type | Description | Notes
83
+ ------------- | ------------- | ------------- | -------------
84
+ **page** | **Integer**| Specify current page. | [optional]
85
+ **records_per_page** | **Integer**| Specify records per page. | [optional]
71
86
 
72
87
  ### Return type
73
88
 
@@ -19,6 +19,8 @@ module Atrium
19
19
  # Use this endpoint to read all holdings associated with a specific user.
20
20
  # @param user_guid The unique identifier for a `user`.
21
21
  # @param [Hash] opts the optional parameters
22
+ # @option opts [Integer] :page Specify current page.
23
+ # @option opts [Integer] :records_per_page Specify records per page.
22
24
  # @return [HoldingsResponseBody]
23
25
  def list_holdings(user_guid, opts = {})
24
26
  data, _status_code, _headers = list_holdings_with_http_info(user_guid, opts)
@@ -30,6 +32,8 @@ module Atrium
30
32
  # @param account_guid The unique identifier for an `account`.
31
33
  # @param user_guid The unique identifier for a `user`.
32
34
  # @param [Hash] opts the optional parameters
35
+ # @option opts [Integer] :page Specify current page.
36
+ # @option opts [Integer] :records_per_page Specify records per page.
33
37
  # @return [HoldingsResponseBody]
34
38
  def list_holdings_by_account(account_guid, user_guid, opts = {})
35
39
  data, _status_code, _headers = list_holdings_by_account_with_http_info(account_guid, user_guid, opts)
@@ -41,6 +45,8 @@ module Atrium
41
45
  # @param member_guid The unique identifier for a `member`.
42
46
  # @param user_guid The unique identifier for a `user`.
43
47
  # @param [Hash] opts the optional parameters
48
+ # @option opts [Integer] :page Specify current page.
49
+ # @option opts [Integer] :records_per_page Specify records per page.
44
50
  # @return [HoldingsResponseBody]
45
51
  def list_holdings_by_member(member_guid, user_guid, opts = {})
46
52
  data, _status_code, _headers = list_holdings_by_member_with_http_info(member_guid, user_guid, opts)
@@ -65,6 +71,8 @@ module Atrium
65
71
  # Use this endpoint to read all holdings associated with a specific user.
66
72
  # @param user_guid The unique identifier for a `user`.
67
73
  # @param [Hash] opts the optional parameters
74
+ # @option opts [Integer] :page Specify current page.
75
+ # @option opts [Integer] :records_per_page Specify records per page.
68
76
  # @return [Array<(HoldingsResponseBody, Fixnum, Hash)>] HoldingsResponseBody data, response status code and response headers
69
77
  def list_holdings_with_http_info(user_guid, opts = {})
70
78
  if @api_client.config.debugging
@@ -79,6 +87,8 @@ module Atrium
79
87
 
80
88
  # query parameters
81
89
  query_params = {}
90
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
91
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
82
92
 
83
93
  # header parameters
84
94
  header_params = {}
@@ -108,6 +118,8 @@ module Atrium
108
118
  # @param account_guid The unique identifier for an &#x60;account&#x60;.
109
119
  # @param user_guid The unique identifier for a &#x60;user&#x60;.
110
120
  # @param [Hash] opts the optional parameters
121
+ # @option opts [Integer] :page Specify current page.
122
+ # @option opts [Integer] :records_per_page Specify records per page.
111
123
  # @return [Array<(HoldingsResponseBody, Fixnum, Hash)>] HoldingsResponseBody data, response status code and response headers
112
124
  def list_holdings_by_account_with_http_info(account_guid, user_guid, opts = {})
113
125
  if @api_client.config.debugging
@@ -126,6 +138,8 @@ module Atrium
126
138
 
127
139
  # query parameters
128
140
  query_params = {}
141
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
142
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
129
143
 
130
144
  # header parameters
131
145
  header_params = {}
@@ -155,6 +169,8 @@ module Atrium
155
169
  # @param member_guid The unique identifier for a &#x60;member&#x60;.
156
170
  # @param user_guid The unique identifier for a &#x60;user&#x60;.
157
171
  # @param [Hash] opts the optional parameters
172
+ # @option opts [Integer] :page Specify current page.
173
+ # @option opts [Integer] :records_per_page Specify records per page.
158
174
  # @return [Array<(HoldingsResponseBody, Fixnum, Hash)>] HoldingsResponseBody data, response status code and response headers
159
175
  def list_holdings_by_member_with_http_info(member_guid, user_guid, opts = {})
160
176
  if @api_client.config.debugging
@@ -173,6 +189,8 @@ module Atrium
173
189
 
174
190
  # query parameters
175
191
  query_params = {}
192
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
193
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
176
194
 
177
195
  # header parameters
178
196
  header_params = {}
@@ -19,6 +19,8 @@ module Atrium
19
19
  # Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
20
20
  # @param merchant_guid The unique identifier for a &#x60;merchant&#x60;.
21
21
  # @param [Hash] opts the optional parameters
22
+ # @option opts [Integer] :page Specify current page.
23
+ # @option opts [Integer] :records_per_page Specify records per page.
22
24
  # @return [MerchantLocationsResponseBody]
23
25
  def list_merchant_locations(merchant_guid, opts = {})
24
26
  data, _status_code, _headers = list_merchant_locations_with_http_info(merchant_guid, opts)
@@ -28,6 +30,8 @@ module Atrium
28
30
  # List merchants
29
31
  # Returns a list of merchnants.
30
32
  # @param [Hash] opts the optional parameters
33
+ # @option opts [Integer] :page Specify current page.
34
+ # @option opts [Integer] :records_per_page Specify records per page.
31
35
  # @return [MerchantsResponseBody]
32
36
  def list_merchants(opts = {})
33
37
  data, _status_code, _headers = list_merchants_with_http_info(opts)
@@ -62,6 +66,8 @@ module Atrium
62
66
  # Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
63
67
  # @param merchant_guid The unique identifier for a &#x60;merchant&#x60;.
64
68
  # @param [Hash] opts the optional parameters
69
+ # @option opts [Integer] :page Specify current page.
70
+ # @option opts [Integer] :records_per_page Specify records per page.
65
71
  # @return [Array<(MerchantLocationsResponseBody, Fixnum, Hash)>] MerchantLocationsResponseBody data, response status code and response headers
66
72
  def list_merchant_locations_with_http_info(merchant_guid, opts = {})
67
73
  if @api_client.config.debugging
@@ -76,6 +82,8 @@ module Atrium
76
82
 
77
83
  # query parameters
78
84
  query_params = {}
85
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
86
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
79
87
 
80
88
  # header parameters
81
89
  header_params = {}
@@ -103,6 +111,8 @@ module Atrium
103
111
  # List merchants
104
112
  # Returns a list of merchnants.
105
113
  # @param [Hash] opts the optional parameters
114
+ # @option opts [Integer] :page Specify current page.
115
+ # @option opts [Integer] :records_per_page Specify records per page.
106
116
  # @return [Array<(MerchantsResponseBody, Fixnum, Hash)>] MerchantsResponseBody data, response status code and response headers
107
117
  def list_merchants_with_http_info(opts = {})
108
118
  if @api_client.config.debugging
@@ -113,6 +123,8 @@ module Atrium
113
123
 
114
124
  # query parameters
115
125
  query_params = {}
126
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
127
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
116
128
 
117
129
  # header parameters
118
130
  header_params = {}
@@ -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).
@@ -50,6 +50,8 @@ module Atrium
50
50
 
51
51
  attr_accessor :last_payment
52
52
 
53
+ attr_accessor :last_payment_at
54
+
53
55
  attr_accessor :loan_amount
54
56
 
55
57
  attr_accessor :matures_on
@@ -107,6 +109,7 @@ module Atrium
107
109
  :'interest_rate' => :'interest_rate',
108
110
  :'is_closed' => :'is_closed',
109
111
  :'last_payment' => :'last_payment',
112
+ :'last_payment_at' => :'last_payment_at',
110
113
  :'loan_amount' => :'loan_amount',
111
114
  :'matures_on' => :'matures_on',
112
115
  :'member_guid' => :'member_guid',
@@ -150,6 +153,7 @@ module Atrium
150
153
  :'interest_rate' => :'Float',
151
154
  :'is_closed' => :'BOOLEAN',
152
155
  :'last_payment' => :'Float',
156
+ :'last_payment_at' => :'String',
153
157
  :'loan_amount' => :'Float',
154
158
  :'matures_on' => :'String',
155
159
  :'member_guid' => :'String',
@@ -258,6 +262,10 @@ module Atrium
258
262
  self.last_payment = attributes[:'last_payment']
259
263
  end
260
264
 
265
+ if attributes.has_key?(:'last_payment_at')
266
+ self.last_payment_at = attributes[:'last_payment_at']
267
+ end
268
+
261
269
  if attributes.has_key?(:'loan_amount')
262
270
  self.loan_amount = attributes[:'loan_amount']
263
271
  end
@@ -365,6 +373,7 @@ module Atrium
365
373
  interest_rate == o.interest_rate &&
366
374
  is_closed == o.is_closed &&
367
375
  last_payment == o.last_payment &&
376
+ last_payment_at == o.last_payment_at &&
368
377
  loan_amount == o.loan_amount &&
369
378
  matures_on == o.matures_on &&
370
379
  member_guid == o.member_guid &&
@@ -393,7 +402,7 @@ module Atrium
393
402
  # Calculates hash code according to all attributes.
394
403
  # @return [Fixnum] Hash code
395
404
  def hash
396
- [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, 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
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
397
406
  end
398
407
 
399
408
  # 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
@@ -7,5 +7,5 @@
7
7
  =end
8
8
 
9
9
  module Atrium
10
- VERSION = '2.10.3'
10
+ VERSION = '2.10.7'
11
11
  end
@@ -32,6 +32,8 @@ describe 'HoldingsApi' do
32
32
  # Use this endpoint to read all holdings associated with a specific user.
33
33
  # @param user_guid The unique identifier for a &#x60;user&#x60;.
34
34
  # @param [Hash] opts the optional parameters
35
+ # @option opts [Integer] :page Specify current page.
36
+ # @option opts [Integer] :records_per_page Specify records per page.
35
37
  # @return [HoldingsResponseBody]
36
38
  describe 'list_holdings test' do
37
39
  it 'should work' do
@@ -45,6 +47,8 @@ describe 'HoldingsApi' do
45
47
  # @param account_guid The unique identifier for an &#x60;account&#x60;.
46
48
  # @param user_guid The unique identifier for a &#x60;user&#x60;.
47
49
  # @param [Hash] opts the optional parameters
50
+ # @option opts [Integer] :page Specify current page.
51
+ # @option opts [Integer] :records_per_page Specify records per page.
48
52
  # @return [HoldingsResponseBody]
49
53
  describe 'list_holdings_by_account test' do
50
54
  it 'should work' do
@@ -58,6 +62,8 @@ describe 'HoldingsApi' do
58
62
  # @param member_guid The unique identifier for a &#x60;member&#x60;.
59
63
  # @param user_guid The unique identifier for a &#x60;user&#x60;.
60
64
  # @param [Hash] opts the optional parameters
65
+ # @option opts [Integer] :page Specify current page.
66
+ # @option opts [Integer] :records_per_page Specify records per page.
61
67
  # @return [HoldingsResponseBody]
62
68
  describe 'list_holdings_by_member test' do
63
69
  it 'should work' do
@@ -32,6 +32,8 @@ describe 'MerchantsApi' do
32
32
  # Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
33
33
  # @param merchant_guid The unique identifier for a &#x60;merchant&#x60;.
34
34
  # @param [Hash] opts the optional parameters
35
+ # @option opts [Integer] :page Specify current page.
36
+ # @option opts [Integer] :records_per_page Specify records per page.
35
37
  # @return [MerchantLocationsResponseBody]
36
38
  describe 'list_merchant_locations test' do
37
39
  it 'should work' do
@@ -43,6 +45,8 @@ describe 'MerchantsApi' do
43
45
  # List merchants
44
46
  # Returns a list of merchnants.
45
47
  # @param [Hash] opts the optional parameters
48
+ # @option opts [Integer] :page Specify current page.
49
+ # @option opts [Integer] :records_per_page Specify records per page.
46
50
  # @return [MerchantsResponseBody]
47
51
  describe 'list_merchants test' do
48
52
  it 'should work' do
@@ -147,6 +147,12 @@ describe 'Account' do
147
147
  end
148
148
  end
149
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
+
150
156
  describe 'test attribute "loan_amount"' do
151
157
  it 'should work' do
152
158
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -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
@@ -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
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.3
4
+ version: 2.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MX
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-05 00:00:00.000000000 Z
11
+ date: 2021-11-01 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.0.4
439
- signing_key:
458
+ rubygems_version: 3.2.22
459
+ signing_key:
440
460
  specification_version: 4
441
461
  summary: Ruby wrapper for the Atrium API by MX
442
462
  test_files: