mx-platform-ruby 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,8 @@ module MxPlatformRuby
17
17
  class MemberResponse
18
18
  attr_accessor :aggregated_at
19
19
 
20
+ attr_accessor :background_aggregation_is_disabled
21
+
20
22
  attr_accessor :connection_status
21
23
 
22
24
  attr_accessor :guid
@@ -47,6 +49,7 @@ module MxPlatformRuby
47
49
  def self.attribute_map
48
50
  {
49
51
  :'aggregated_at' => :'aggregated_at',
52
+ :'background_aggregation_is_disabled' => :'background_aggregation_is_disabled',
50
53
  :'connection_status' => :'connection_status',
51
54
  :'guid' => :'guid',
52
55
  :'id' => :'id',
@@ -72,6 +75,7 @@ module MxPlatformRuby
72
75
  def self.openapi_types
73
76
  {
74
77
  :'aggregated_at' => :'String',
78
+ :'background_aggregation_is_disabled' => :'Boolean',
75
79
  :'connection_status' => :'String',
76
80
  :'guid' => :'String',
77
81
  :'id' => :'String',
@@ -127,6 +131,10 @@ module MxPlatformRuby
127
131
  self.aggregated_at = attributes[:'aggregated_at']
128
132
  end
129
133
 
134
+ if attributes.key?(:'background_aggregation_is_disabled')
135
+ self.background_aggregation_is_disabled = attributes[:'background_aggregation_is_disabled']
136
+ end
137
+
130
138
  if attributes.key?(:'connection_status')
131
139
  self.connection_status = attributes[:'connection_status']
132
140
  end
@@ -199,6 +207,7 @@ module MxPlatformRuby
199
207
  return true if self.equal?(o)
200
208
  self.class == o.class &&
201
209
  aggregated_at == o.aggregated_at &&
210
+ background_aggregation_is_disabled == o.background_aggregation_is_disabled &&
202
211
  connection_status == o.connection_status &&
203
212
  guid == o.guid &&
204
213
  id == o.id &&
@@ -223,7 +232,7 @@ module MxPlatformRuby
223
232
  # Calculates hash code according to all attributes.
224
233
  # @return [Integer] Hash code
225
234
  def hash
226
- [aggregated_at, connection_status, guid, id, institution_code, is_being_aggregated, is_managed_by_user, is_oauth, metadata, name, oauth_window_uri, successfully_aggregated_at, user_guid, user_id].hash
235
+ [aggregated_at, background_aggregation_is_disabled, connection_status, guid, id, institution_code, is_being_aggregated, is_managed_by_user, is_oauth, metadata, name, oauth_window_uri, successfully_aggregated_at, user_guid, user_id].hash
227
236
  end
228
237
 
229
238
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
17
  class WidgetRequest
18
+ attr_accessor :client_redirect_url
19
+
18
20
  attr_accessor :color_scheme
19
21
 
20
22
  attr_accessor :current_institution_code
@@ -25,37 +27,41 @@ module MxPlatformRuby
25
27
 
26
28
  attr_accessor :disable_institution_search
27
29
 
30
+ attr_accessor :include_identity
31
+
28
32
  attr_accessor :include_transactions
29
33
 
30
34
  attr_accessor :is_mobile_webview
31
35
 
32
36
  attr_accessor :mode
33
37
 
38
+ attr_accessor :oauth_referral_source
39
+
34
40
  attr_accessor :ui_message_version
35
41
 
36
42
  attr_accessor :ui_message_webview_url_scheme
37
43
 
38
44
  attr_accessor :update_credentials
39
45
 
40
- attr_accessor :wait_for_full_aggregation
41
-
42
46
  attr_accessor :widget_type
43
47
 
44
48
  # Attribute mapping from ruby-style variable name to JSON key.
45
49
  def self.attribute_map
46
50
  {
51
+ :'client_redirect_url' => :'client_redirect_url',
47
52
  :'color_scheme' => :'color_scheme',
48
53
  :'current_institution_code' => :'current_institution_code',
49
54
  :'current_institution_guid' => :'current_institution_guid',
50
55
  :'current_member_guid' => :'current_member_guid',
51
56
  :'disable_institution_search' => :'disable_institution_search',
57
+ :'include_identity' => :'include_identity',
52
58
  :'include_transactions' => :'include_transactions',
53
59
  :'is_mobile_webview' => :'is_mobile_webview',
54
60
  :'mode' => :'mode',
61
+ :'oauth_referral_source' => :'oauth_referral_source',
55
62
  :'ui_message_version' => :'ui_message_version',
56
63
  :'ui_message_webview_url_scheme' => :'ui_message_webview_url_scheme',
57
64
  :'update_credentials' => :'update_credentials',
58
- :'wait_for_full_aggregation' => :'wait_for_full_aggregation',
59
65
  :'widget_type' => :'widget_type'
60
66
  }
61
67
  end
@@ -68,18 +74,20 @@ module MxPlatformRuby
68
74
  # Attribute type mapping.
69
75
  def self.openapi_types
70
76
  {
77
+ :'client_redirect_url' => :'String',
71
78
  :'color_scheme' => :'String',
72
79
  :'current_institution_code' => :'String',
73
80
  :'current_institution_guid' => :'String',
74
81
  :'current_member_guid' => :'String',
75
82
  :'disable_institution_search' => :'Boolean',
83
+ :'include_identity' => :'Boolean',
76
84
  :'include_transactions' => :'Boolean',
77
85
  :'is_mobile_webview' => :'Boolean',
78
86
  :'mode' => :'String',
87
+ :'oauth_referral_source' => :'String',
79
88
  :'ui_message_version' => :'Integer',
80
89
  :'ui_message_webview_url_scheme' => :'String',
81
90
  :'update_credentials' => :'Boolean',
82
- :'wait_for_full_aggregation' => :'Boolean',
83
91
  :'widget_type' => :'String'
84
92
  }
85
93
  end
@@ -105,6 +113,10 @@ module MxPlatformRuby
105
113
  h[k.to_sym] = v
106
114
  }
107
115
 
116
+ if attributes.key?(:'client_redirect_url')
117
+ self.client_redirect_url = attributes[:'client_redirect_url']
118
+ end
119
+
108
120
  if attributes.key?(:'color_scheme')
109
121
  self.color_scheme = attributes[:'color_scheme']
110
122
  end
@@ -125,6 +137,10 @@ module MxPlatformRuby
125
137
  self.disable_institution_search = attributes[:'disable_institution_search']
126
138
  end
127
139
 
140
+ if attributes.key?(:'include_identity')
141
+ self.include_identity = attributes[:'include_identity']
142
+ end
143
+
128
144
  if attributes.key?(:'include_transactions')
129
145
  self.include_transactions = attributes[:'include_transactions']
130
146
  end
@@ -137,6 +153,10 @@ module MxPlatformRuby
137
153
  self.mode = attributes[:'mode']
138
154
  end
139
155
 
156
+ if attributes.key?(:'oauth_referral_source')
157
+ self.oauth_referral_source = attributes[:'oauth_referral_source']
158
+ end
159
+
140
160
  if attributes.key?(:'ui_message_version')
141
161
  self.ui_message_version = attributes[:'ui_message_version']
142
162
  end
@@ -149,10 +169,6 @@ module MxPlatformRuby
149
169
  self.update_credentials = attributes[:'update_credentials']
150
170
  end
151
171
 
152
- if attributes.key?(:'wait_for_full_aggregation')
153
- self.wait_for_full_aggregation = attributes[:'wait_for_full_aggregation']
154
- end
155
-
156
172
  if attributes.key?(:'widget_type')
157
173
  self.widget_type = attributes[:'widget_type']
158
174
  end
@@ -181,18 +197,20 @@ module MxPlatformRuby
181
197
  def ==(o)
182
198
  return true if self.equal?(o)
183
199
  self.class == o.class &&
200
+ client_redirect_url == o.client_redirect_url &&
184
201
  color_scheme == o.color_scheme &&
185
202
  current_institution_code == o.current_institution_code &&
186
203
  current_institution_guid == o.current_institution_guid &&
187
204
  current_member_guid == o.current_member_guid &&
188
205
  disable_institution_search == o.disable_institution_search &&
206
+ include_identity == o.include_identity &&
189
207
  include_transactions == o.include_transactions &&
190
208
  is_mobile_webview == o.is_mobile_webview &&
191
209
  mode == o.mode &&
210
+ oauth_referral_source == o.oauth_referral_source &&
192
211
  ui_message_version == o.ui_message_version &&
193
212
  ui_message_webview_url_scheme == o.ui_message_webview_url_scheme &&
194
213
  update_credentials == o.update_credentials &&
195
- wait_for_full_aggregation == o.wait_for_full_aggregation &&
196
214
  widget_type == o.widget_type
197
215
  end
198
216
 
@@ -205,7 +223,7 @@ module MxPlatformRuby
205
223
  # Calculates hash code according to all attributes.
206
224
  # @return [Integer] Hash code
207
225
  def hash
208
- [color_scheme, current_institution_code, current_institution_guid, current_member_guid, disable_institution_search, include_transactions, is_mobile_webview, mode, ui_message_version, ui_message_webview_url_scheme, update_credentials, wait_for_full_aggregation, widget_type].hash
226
+ [client_redirect_url, color_scheme, current_institution_code, current_institution_guid, current_member_guid, disable_institution_search, include_identity, include_transactions, is_mobile_webview, mode, oauth_referral_source, ui_message_version, ui_message_webview_url_scheme, update_credentials, widget_type].hash
209
227
  end
210
228
 
211
229
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.13.1'
14
+ VERSION = '0.14.0'
15
15
  end
data/openapi/config.yml CHANGED
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
6
6
  gemLicense: MIT
7
7
  gemName: mx-platform-ruby
8
8
  gemRequiredRubyVersion: ">= 2.6"
9
- gemVersion: 0.13.1
9
+ gemVersion: 0.14.0
10
10
  library: faraday
11
11
  moduleName: MxPlatformRuby
@@ -600,6 +600,22 @@ describe 'MxPlatformApi' do
600
600
  end
601
601
  end
602
602
 
603
+ # unit tests for list_member_accounts
604
+ # List accounts by member
605
+ # This endpoint returns a list of all the accounts associated with the specified `member`.
606
+ # @param user_guid The unique id for a `user`.
607
+ # @param member_guid The unique id for a `member`.
608
+ # @param [Hash] opts the optional parameters
609
+ # @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
610
+ # @option opts [Integer] :page Specify current page.
611
+ # @option opts [Integer] :records_per_page Specify records per page.
612
+ # @return [AccountsResponseBody]
613
+ describe 'list_member_accounts test' do
614
+ it 'should work' do
615
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
616
+ end
617
+ end
618
+
603
619
  # unit tests for list_member_challenges
604
620
  # List member challenges
605
621
  # Use this endpoint for information on what multi-factor authentication challenges need to be answered in order to aggregate a member. If the aggregation is not challenged, i.e., the member does not have a connection status of `CHALLENGED`, then code `204 No Content` will be returned. If the aggregation has been challenged, i.e., the member does have a connection status of `CHALLENGED`, then code `200 OK` will be returned - along with the corresponding credentials.
@@ -786,6 +802,7 @@ describe 'MxPlatformApi' do
786
802
  # This endpoint returns a list of all the accounts associated with the specified `user`.
787
803
  # @param user_guid The unique id for a `user`.
788
804
  # @param [Hash] opts the optional parameters
805
+ # @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
789
806
  # @option opts [Integer] :page Specify current page.
790
807
  # @option opts [Integer] :records_per_page Specify records per page.
791
808
  # @return [AccountsResponseBody]
@@ -801,6 +818,9 @@ describe 'MxPlatformApi' do
801
818
  # @param [Hash] opts the optional parameters
802
819
  # @option opts [Integer] :page Specify current page.
803
820
  # @option opts [Integer] :records_per_page Specify records per page.
821
+ # @option opts [String] :id The user `id` to search for.
822
+ # @option opts [String] :email The user `email` to search for.
823
+ # @option opts [Boolean] :is_disabled Search for users that are diabled.
804
824
  # @return [UsersResponseBody]
805
825
  describe 'list_users test' do
806
826
  it 'should work' do
@@ -821,6 +841,20 @@ describe 'MxPlatformApi' do
821
841
  end
822
842
  end
823
843
 
844
+ # unit tests for read_account_by_member
845
+ # Read account by member
846
+ # This endpoint allows you to read the attributes of an `account` resource.
847
+ # @param account_guid The unique id for an `account`.
848
+ # @param member_guid The unique id for a `member`.
849
+ # @param user_guid The unique id for a `user`.
850
+ # @param [Hash] opts the optional parameters
851
+ # @return [AccountResponseBody]
852
+ describe 'read_account_by_member test' do
853
+ it 'should work' do
854
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
855
+ end
856
+ end
857
+
824
858
  # unit tests for read_category
825
859
  # Read a custom category
826
860
  # Use this endpoint to read the attributes of either a default category or a custom category.
@@ -1060,9 +1094,10 @@ describe 'MxPlatformApi' do
1060
1094
  # @param member_guid The unique id for a `member`.
1061
1095
  # @param user_guid The unique id for a `user`.
1062
1096
  # @param [Hash] opts the optional parameters
1097
+ # @option opts [String] :client_redirect_url A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with `referral_source=APP`.
1063
1098
  # @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
1064
1099
  # @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
1065
- # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
1100
+ # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in. Only available with `referral_source=APP`.
1066
1101
  # @return [OAuthWindowResponseBody]
1067
1102
  describe 'request_o_auth_window_uri test' do
1068
1103
  it 'should work' do
@@ -55,6 +55,12 @@ describe MxPlatformRuby::AccountNumberResponse do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "passed_validation"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
58
64
  describe 'test attribute "routing_number"' do
59
65
  it 'should work' do
60
66
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -55,12 +55,24 @@ describe MxPlatformRuby::AccountOwnerResponse do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "first_name"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
58
64
  describe 'test attribute "guid"' do
59
65
  it 'should work' do
60
66
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
67
  end
62
68
  end
63
69
 
70
+ describe 'test attribute "last_name"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
64
76
  describe 'test attribute "member_guid"' do
65
77
  it 'should work' do
66
78
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -25,6 +25,12 @@ describe MxPlatformRuby::ConnectWidgetRequest do
25
25
  expect(instance).to be_instance_of(MxPlatformRuby::ConnectWidgetRequest)
26
26
  end
27
27
  end
28
+ describe 'test attribute "client_redirect_url"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
28
34
  describe 'test attribute "color_scheme"' do
29
35
  it 'should work' do
30
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -43,12 +49,24 @@ describe MxPlatformRuby::ConnectWidgetRequest do
43
49
  end
44
50
  end
45
51
 
52
+ describe 'test attribute "disable_background_agg"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
46
58
  describe 'test attribute "disable_institution_search"' do
47
59
  it 'should work' do
48
60
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
61
  end
50
62
  end
51
63
 
64
+ describe 'test attribute "include_identity"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
52
70
  describe 'test attribute "include_transactions"' do
53
71
  it 'should work' do
54
72
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -67,25 +85,25 @@ describe MxPlatformRuby::ConnectWidgetRequest do
67
85
  end
68
86
  end
69
87
 
70
- describe 'test attribute "ui_message_version"' do
88
+ describe 'test attribute "oauth_referral_source"' do
71
89
  it 'should work' do
72
90
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
91
  end
74
92
  end
75
93
 
76
- describe 'test attribute "ui_message_webview_url_scheme"' do
94
+ describe 'test attribute "ui_message_version"' do
77
95
  it 'should work' do
78
96
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
97
  end
80
98
  end
81
99
 
82
- describe 'test attribute "update_credentials"' do
100
+ describe 'test attribute "ui_message_webview_url_scheme"' do
83
101
  it 'should work' do
84
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
103
  end
86
104
  end
87
105
 
88
- describe 'test attribute "wait_for_full_aggregation"' do
106
+ describe 'test attribute "update_credentials"' do
89
107
  it 'should work' do
90
108
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
109
  end
@@ -79,6 +79,12 @@ describe MxPlatformRuby::HoldingResponse do
79
79
  end
80
80
  end
81
81
 
82
+ describe 'test attribute "holding_type_id"' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
82
88
  describe 'test attribute "id"' do
83
89
  it 'should work' do
84
90
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -25,6 +25,12 @@ describe MxPlatformRuby::MemberCreateRequestBody do
25
25
  expect(instance).to be_instance_of(MxPlatformRuby::MemberCreateRequestBody)
26
26
  end
27
27
  end
28
+ describe 'test attribute "client_redirect_url"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
28
34
  describe 'test attribute "member"' do
29
35
  it 'should work' do
30
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -31,6 +31,12 @@ describe MxPlatformRuby::MemberResponse do
31
31
  end
32
32
  end
33
33
 
34
+ describe 'test attribute "background_aggregation_is_disabled"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
34
40
  describe 'test attribute "connection_status"' do
35
41
  it 'should work' do
36
42
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -25,6 +25,12 @@ describe MxPlatformRuby::WidgetRequest do
25
25
  expect(instance).to be_instance_of(MxPlatformRuby::WidgetRequest)
26
26
  end
27
27
  end
28
+ describe 'test attribute "client_redirect_url"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
28
34
  describe 'test attribute "color_scheme"' do
29
35
  it 'should work' do
30
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -55,6 +61,12 @@ describe MxPlatformRuby::WidgetRequest do
55
61
  end
56
62
  end
57
63
 
64
+ describe 'test attribute "include_identity"' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
58
70
  describe 'test attribute "include_transactions"' do
59
71
  it 'should work' do
60
72
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -73,25 +85,25 @@ describe MxPlatformRuby::WidgetRequest do
73
85
  end
74
86
  end
75
87
 
76
- describe 'test attribute "ui_message_version"' do
88
+ describe 'test attribute "oauth_referral_source"' do
77
89
  it 'should work' do
78
90
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
91
  end
80
92
  end
81
93
 
82
- describe 'test attribute "ui_message_webview_url_scheme"' do
94
+ describe 'test attribute "ui_message_version"' do
83
95
  it 'should work' do
84
96
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
97
  end
86
98
  end
87
99
 
88
- describe 'test attribute "update_credentials"' do
100
+ describe 'test attribute "ui_message_webview_url_scheme"' do
89
101
  it 'should work' do
90
102
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
103
  end
92
104
  end
93
105
 
94
- describe 'test attribute "wait_for_full_aggregation"' do
106
+ describe 'test attribute "update_credentials"' do
95
107
  it 'should work' do
96
108
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
109
  end