Skip to content

Commit 7340737

Browse files
author
devexperience
committed
Generated version 1.3.0
This commit was automatically created by a GitHub Action to generate version 1.3.0 of this library.
1 parent dce0524 commit 7340737

5 files changed

Lines changed: 128 additions & 31 deletions

File tree

docs/MemberResponse.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,28 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **actionable_error** | **String** | | [optional] |
87
| **aggregated_at** | **String** | | [optional] |
98
| **background_aggregation_is_disabled** | **Boolean** | | [optional] |
109
| **connection_status** | **String** | | [optional] |
10+
| **connection_status_message** | **String** | | [optional] |
11+
| **error** | **String** | | [optional] |
1112
| **guid** | **String** | | [optional] |
1213
| **id** | **String** | | [optional] |
1314
| **institution_code** | **String** | | [optional] |
15+
| **institution_guid** | **String** | | [optional] |
1416
| **is_being_aggregated** | **Boolean** | | [optional] |
1517
| **is_managed_by_user** | **Boolean** | | [optional] |
1618
| **is_manual** | **Boolean** | | [optional] |
1719
| **is_oauth** | **Boolean** | | [optional] |
1820
| **metadata** | **String** | | [optional] |
19-
| **most_recent_job_detail_code** | **String** | | [optional] |
20-
| **most_recent_job_detail_text** | **String** | | [optional] |
21+
| **most_recent_job_detail_code** | **Integer** | | [optional] |
22+
| **most_recent_job_detail_text** | **Boolean** | | [optional] |
23+
| **most_recent_job_guid** | **Boolean** | | [optional] |
2124
| **name** | **String** | | [optional] |
25+
| **needs_updated_credentials** | **Boolean** | | [optional] |
2226
| **oauth_window_uri** | **String** | | [optional] |
2327
| **successfully_aggregated_at** | **String** | | [optional] |
24-
| **use_cases** | **Array<String>** | | [optional] |
28+
| **use_cases** | **Array<String>** | The use case associated with the member. Valid values are `PFM` and/or `MONEY_MOVEMENT`. Only set this if you've met with MX and have opted in to using this field. | [optional] |
2529
| **user_guid** | **String** | | [optional] |
2630
| **user_id** | **String** | | [optional] |
2731

@@ -31,24 +35,28 @@
3135
require 'mx-platform-ruby'
3236

3337
instance = MxPlatformRuby::MemberResponse.new(
34-
actionable_error: {\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"},
3538
aggregated_at: 2016-10-13T18:07:57.000Z,
3639
background_aggregation_is_disabled: false,
3740
connection_status: CONNECTED,
41+
connection_status_message: Connected to MX Bank,
42+
error: {\"error_type\": \"MEMBER\", \"error_code\": 1000, \"error_message\": \"This Member has no eligible checking, savings, or money market accounts.\", \"user_message\": \"We could not find any accounts eligible for transfers. Please link a checking or savings account.\", \"locale\": \"en\"},
3843
guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
3944
id: unique_id,
40-
institution_code: chase,
45+
institution_code: mxbank,
46+
institution_guid: INS-12345678-90ab-cdef-1234-567890abcdef,
4147
is_being_aggregated: false,
4248
is_managed_by_user: false,
4349
is_manual: false,
4450
is_oauth: false,
45-
metadata: \"credentials_last_refreshed_at\": \"2015-10-15\",
46-
most_recent_job_detail_code: (deprecated),
47-
most_recent_job_detail_text: (deprecated),
48-
name: Chase Bank,
51+
metadata: \"credentials_last_refreshed_at\": \"2015-10-15\,
52+
most_recent_job_detail_code: null,
53+
most_recent_job_detail_text: null,
54+
most_recent_job_guid: false,
55+
name: MX Bank,
56+
needs_updated_credentials: false,
4957
oauth_window_uri: https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2,
5058
successfully_aggregated_at: 2016-10-13T17:57:38.000Z,
51-
use_cases: ["PFM","IAV"],
59+
use_cases: ["PFM"],
5260
user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54,
5361
user_id: user123
5462
)

lib/mx-platform-ruby/models/member_response.rb

Lines changed: 75 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,24 @@
1515

1616
module MxPlatformRuby
1717
class MemberResponse
18-
attr_accessor :actionable_error
19-
2018
attr_accessor :aggregated_at
2119

2220
attr_accessor :background_aggregation_is_disabled
2321

2422
attr_accessor :connection_status
2523

24+
attr_accessor :connection_status_message
25+
26+
attr_accessor :error
27+
2628
attr_accessor :guid
2729

2830
attr_accessor :id
2931

3032
attr_accessor :institution_code
3133

34+
attr_accessor :institution_guid
35+
3236
attr_accessor :is_being_aggregated
3337

3438
attr_accessor :is_managed_by_user
@@ -43,36 +47,67 @@ class MemberResponse
4347

4448
attr_accessor :most_recent_job_detail_text
4549

50+
attr_accessor :most_recent_job_guid
51+
4652
attr_accessor :name
4753

54+
attr_accessor :needs_updated_credentials
55+
4856
attr_accessor :oauth_window_uri
4957

5058
attr_accessor :successfully_aggregated_at
5159

60+
# The use case associated with the member. Valid values are `PFM` and/or `MONEY_MOVEMENT`. Only set this if you've met with MX and have opted in to using this field.
5261
attr_accessor :use_cases
5362

5463
attr_accessor :user_guid
5564

5665
attr_accessor :user_id
5766

67+
class EnumAttributeValidator
68+
attr_reader :datatype
69+
attr_reader :allowable_values
70+
71+
def initialize(datatype, allowable_values)
72+
@allowable_values = allowable_values.map do |value|
73+
case datatype.to_s
74+
when /Integer/i
75+
value.to_i
76+
when /Float/i
77+
value.to_f
78+
else
79+
value
80+
end
81+
end
82+
end
83+
84+
def valid?(value)
85+
!value || allowable_values.include?(value)
86+
end
87+
end
88+
5889
# Attribute mapping from ruby-style variable name to JSON key.
5990
def self.attribute_map
6091
{
61-
:'actionable_error' => :'actionable_error',
6292
:'aggregated_at' => :'aggregated_at',
6393
:'background_aggregation_is_disabled' => :'background_aggregation_is_disabled',
6494
:'connection_status' => :'connection_status',
95+
:'connection_status_message' => :'connection_status_message',
96+
:'error' => :'error',
6597
:'guid' => :'guid',
6698
:'id' => :'id',
6799
:'institution_code' => :'institution_code',
100+
:'institution_guid' => :'institution_guid',
68101
:'is_being_aggregated' => :'is_being_aggregated',
69102
:'is_managed_by_user' => :'is_managed_by_user',
70103
:'is_manual' => :'is_manual',
71104
:'is_oauth' => :'is_oauth',
72105
:'metadata' => :'metadata',
73106
:'most_recent_job_detail_code' => :'most_recent_job_detail_code',
74107
:'most_recent_job_detail_text' => :'most_recent_job_detail_text',
108+
:'most_recent_job_guid' => :'most_recent_job_guid',
75109
:'name' => :'name',
110+
:'needs_updated_credentials' => :'needs_updated_credentials',
76111
:'oauth_window_uri' => :'oauth_window_uri',
77112
:'successfully_aggregated_at' => :'successfully_aggregated_at',
78113
:'use_cases' => :'use_cases',
@@ -89,21 +124,25 @@ def self.acceptable_attributes
89124
# Attribute type mapping.
90125
def self.openapi_types
91126
{
92-
:'actionable_error' => :'String',
93127
:'aggregated_at' => :'String',
94128
:'background_aggregation_is_disabled' => :'Boolean',
95129
:'connection_status' => :'String',
130+
:'connection_status_message' => :'String',
131+
:'error' => :'String',
96132
:'guid' => :'String',
97133
:'id' => :'String',
98134
:'institution_code' => :'String',
135+
:'institution_guid' => :'String',
99136
:'is_being_aggregated' => :'Boolean',
100137
:'is_managed_by_user' => :'Boolean',
101138
:'is_manual' => :'Boolean',
102139
:'is_oauth' => :'Boolean',
103140
:'metadata' => :'String',
104-
:'most_recent_job_detail_code' => :'String',
105-
:'most_recent_job_detail_text' => :'String',
141+
:'most_recent_job_detail_code' => :'Integer',
142+
:'most_recent_job_detail_text' => :'Boolean',
143+
:'most_recent_job_guid' => :'Boolean',
106144
:'name' => :'String',
145+
:'needs_updated_credentials' => :'Boolean',
107146
:'oauth_window_uri' => :'String',
108147
:'successfully_aggregated_at' => :'String',
109148
:'use_cases' => :'Array<String>',
@@ -115,9 +154,10 @@ def self.openapi_types
115154
# List of attributes with nullable: true
116155
def self.openapi_nullable
117156
Set.new([
118-
:'actionable_error',
119157
:'aggregated_at',
120158
:'connection_status',
159+
:'connection_status_message',
160+
:'error',
121161
:'guid',
122162
:'id',
123163
:'institution_code',
@@ -128,10 +168,11 @@ def self.openapi_nullable
128168
:'metadata',
129169
:'most_recent_job_detail_code',
130170
:'most_recent_job_detail_text',
171+
:'most_recent_job_guid',
131172
:'name',
173+
:'needs_updated_credentials',
132174
:'oauth_window_uri',
133175
:'successfully_aggregated_at',
134-
:'use_cases',
135176
:'user_guid',
136177
:'user_id'
137178
])
@@ -152,10 +193,6 @@ def initialize(attributes = {})
152193
h[k.to_sym] = v
153194
}
154195

155-
if attributes.key?(:'actionable_error')
156-
self.actionable_error = attributes[:'actionable_error']
157-
end
158-
159196
if attributes.key?(:'aggregated_at')
160197
self.aggregated_at = attributes[:'aggregated_at']
161198
end
@@ -168,6 +205,14 @@ def initialize(attributes = {})
168205
self.connection_status = attributes[:'connection_status']
169206
end
170207

208+
if attributes.key?(:'connection_status_message')
209+
self.connection_status_message = attributes[:'connection_status_message']
210+
end
211+
212+
if attributes.key?(:'error')
213+
self.error = attributes[:'error']
214+
end
215+
171216
if attributes.key?(:'guid')
172217
self.guid = attributes[:'guid']
173218
end
@@ -180,6 +225,10 @@ def initialize(attributes = {})
180225
self.institution_code = attributes[:'institution_code']
181226
end
182227

228+
if attributes.key?(:'institution_guid')
229+
self.institution_guid = attributes[:'institution_guid']
230+
end
231+
183232
if attributes.key?(:'is_being_aggregated')
184233
self.is_being_aggregated = attributes[:'is_being_aggregated']
185234
end
@@ -208,10 +257,18 @@ def initialize(attributes = {})
208257
self.most_recent_job_detail_text = attributes[:'most_recent_job_detail_text']
209258
end
210259

260+
if attributes.key?(:'most_recent_job_guid')
261+
self.most_recent_job_guid = attributes[:'most_recent_job_guid']
262+
end
263+
211264
if attributes.key?(:'name')
212265
self.name = attributes[:'name']
213266
end
214267

268+
if attributes.key?(:'needs_updated_credentials')
269+
self.needs_updated_credentials = attributes[:'needs_updated_credentials']
270+
end
271+
215272
if attributes.key?(:'oauth_window_uri')
216273
self.oauth_window_uri = attributes[:'oauth_window_uri']
217274
end
@@ -255,21 +312,25 @@ def valid?
255312
def ==(o)
256313
return true if self.equal?(o)
257314
self.class == o.class &&
258-
actionable_error == o.actionable_error &&
259315
aggregated_at == o.aggregated_at &&
260316
background_aggregation_is_disabled == o.background_aggregation_is_disabled &&
261317
connection_status == o.connection_status &&
318+
connection_status_message == o.connection_status_message &&
319+
error == o.error &&
262320
guid == o.guid &&
263321
id == o.id &&
264322
institution_code == o.institution_code &&
323+
institution_guid == o.institution_guid &&
265324
is_being_aggregated == o.is_being_aggregated &&
266325
is_managed_by_user == o.is_managed_by_user &&
267326
is_manual == o.is_manual &&
268327
is_oauth == o.is_oauth &&
269328
metadata == o.metadata &&
270329
most_recent_job_detail_code == o.most_recent_job_detail_code &&
271330
most_recent_job_detail_text == o.most_recent_job_detail_text &&
331+
most_recent_job_guid == o.most_recent_job_guid &&
272332
name == o.name &&
333+
needs_updated_credentials == o.needs_updated_credentials &&
273334
oauth_window_uri == o.oauth_window_uri &&
274335
successfully_aggregated_at == o.successfully_aggregated_at &&
275336
use_cases == o.use_cases &&
@@ -286,7 +347,7 @@ def eql?(o)
286347
# Calculates hash code according to all attributes.
287348
# @return [Integer] Hash code
288349
def hash
289-
[actionable_error, aggregated_at, background_aggregation_is_disabled, connection_status, guid, id, institution_code, is_being_aggregated, is_managed_by_user, is_manual, is_oauth, metadata, most_recent_job_detail_code, most_recent_job_detail_text, name, oauth_window_uri, successfully_aggregated_at, use_cases, user_guid, user_id].hash
350+
[aggregated_at, background_aggregation_is_disabled, connection_status, connection_status_message, error, guid, id, institution_code, institution_guid, is_being_aggregated, is_managed_by_user, is_manual, is_oauth, metadata, most_recent_job_detail_code, most_recent_job_detail_text, most_recent_job_guid, name, needs_updated_credentials, oauth_window_uri, successfully_aggregated_at, use_cases, user_guid, user_id].hash
290351
end
291352

292353
# Builds the object from hash

lib/mx-platform-ruby/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module MxPlatformRuby
14-
VERSION = '1.2.0'
14+
VERSION = '1.3.0'
1515
end

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
66
gemLicense: MIT
77
gemName: mx-platform-ruby
88
gemRequiredRubyVersion: ">= 2.6"
9-
gemVersion: 1.2.0
9+
gemVersion: 1.3.0
1010
library: faraday
1111
moduleName: MxPlatformRuby

0 commit comments

Comments
 (0)