Skip to content

Commit 5315341

Browse files
authored
Merge pull request #73 from mxenabled/openapi-generator-0.13.2
Generated version 0.13.2
2 parents b13f99f + b042e84 commit 5315341

17 files changed

Lines changed: 90 additions & 49 deletions

docs/ConnectWidgetRequest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **client_redirect_url** | **String** | | [optional] |
78
| **color_scheme** | **String** | | [optional] |
89
| **current_institution_code** | **String** | | [optional] |
910
| **current_member_guid** | **String** | | [optional] |
@@ -14,14 +15,14 @@
1415
| **ui_message_version** | **Integer** | | [optional] |
1516
| **ui_message_webview_url_scheme** | **String** | | [optional] |
1617
| **update_credentials** | **Boolean** | | [optional] |
17-
| **wait_for_full_aggregation** | **Boolean** | | [optional] |
1818

1919
## Example
2020

2121
```ruby
2222
require 'mx-platform-ruby'
2323

2424
instance = MxPlatformRuby::ConnectWidgetRequest.new(
25+
client_redirect_url: https://mx.com,
2526
color_scheme: light,
2627
current_institution_code: chase,
2728
current_member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
@@ -31,8 +32,7 @@ instance = MxPlatformRuby::ConnectWidgetRequest.new(
3132
mode: aggregation,
3233
ui_message_version: 4,
3334
ui_message_webview_url_scheme: mx,
34-
update_credentials: false,
35-
wait_for_full_aggregation: false
35+
update_credentials: false
3636
)
3737
```
3838

docs/HoldingResponse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
| **description** | **String** | | [optional] |
1414
| **guid** | **String** | | [optional] |
1515
| **holding_type** | **String** | | [optional] |
16+
| **holding_type_id** | **Integer** | | [optional] |
1617
| **id** | **String** | | [optional] |
1718
| **market_value** | **Float** | | [optional] |
1819
| **member_guid** | **String** | | [optional] |
@@ -38,6 +39,7 @@ instance = MxPlatformRuby::HoldingResponse.new(
3839
description: Guggenheim Defensive Equity ETF,
3940
guid: HOL-d65683e8-9eab-26bb-bcfd-ced159c9abe2,
4041
holding_type: MONEY_MARKET,
42+
holding_type_id: 1,
4143
id: ID-123,
4244
market_value: 989.5,
4345
member_guid: MBR-d65683e8-9eab-26bb-bcfd-ced159c9abe,

docs/MemberCreateRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **background_aggregation_is_disabled** | **Boolean** | | [optional] |
8+
| **client_redirect_url** | **String** | | [optional] |
89
| **credentials** | [**Array<CredentialRequest>**](CredentialRequest.md) | | |
910
| **id** | **String** | | [optional] |
1011
| **institution_code** | **String** | | |
@@ -19,6 +20,7 @@ require 'mx-platform-ruby'
1920

2021
instance = MxPlatformRuby::MemberCreateRequest.new(
2122
background_aggregation_is_disabled: false,
23+
client_redirect_url: https://mx.com,
2224
credentials: null,
2325
id: unique_id,
2426
institution_code: chase,

docs/MxPlatformApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5618,9 +5618,10 @@ api_instance = MxPlatformRuby::MxPlatformApi.new
56185618
member_guid = 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b' # String | The unique id for a `member`.
56195619
user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
56205620
opts = {
5621+
client_redirect_url: 'https://mx.com', # String | A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with `referral_source=APP`.
56215622
referral_source: 'APP', # String | Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
56225623
skip_aggregation: false, # Boolean | Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
5623-
ui_message_webview_url_scheme: 'mx' # String | A scheme for routing the user back to the application state they were previously in.
5624+
ui_message_webview_url_scheme: 'mx' # String | A scheme for routing the user back to the application state they were previously in. Only available with `referral_source=APP`.
56245625
}
56255626

56265627
begin
@@ -5656,9 +5657,10 @@ end
56565657
| ---- | ---- | ----------- | ----- |
56575658
| **member_guid** | **String** | The unique id for a `member`. | |
56585659
| **user_guid** | **String** | The unique id for a `user`. | |
5660+
| **client_redirect_url** | **String** | A URL that MX will redirect to at the end of OAuth with additional query parameters. Only available with `referral_source=APP`. | [optional] |
56595661
| **referral_source** | **String** | Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`. | [optional] |
56605662
| **skip_aggregation** | **Boolean** | Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page. | [optional] |
5661-
| **ui_message_webview_url_scheme** | **String** | A scheme for routing the user back to the application state they were previously in. | [optional] |
5663+
| **ui_message_webview_url_scheme** | **String** | A scheme for routing the user back to the application state they were previously in. Only available with `referral_source=APP`. | [optional] |
56625664

56635665
### Return type
56645666

docs/WidgetRequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **client_redirect_url** | **String** | | [optional] |
78
| **color_scheme** | **String** | | [optional] |
89
| **current_institution_code** | **String** | | [optional] |
910
| **current_institution_guid** | **String** | | [optional] |
@@ -15,7 +16,6 @@
1516
| **ui_message_version** | **Integer** | | [optional] |
1617
| **ui_message_webview_url_scheme** | **String** | | [optional] |
1718
| **update_credentials** | **Boolean** | | [optional] |
18-
| **wait_for_full_aggregation** | **Boolean** | | [optional] |
1919
| **widget_type** | **String** | | |
2020

2121
## Example
@@ -24,6 +24,7 @@
2424
require 'mx-platform-ruby'
2525

2626
instance = MxPlatformRuby::WidgetRequest.new(
27+
client_redirect_url: https://mx.com,
2728
color_scheme: light,
2829
current_institution_code: chase,
2930
current_institution_guid: INS-f1a3285d-e855-b61f-6aa7-8ae575c0e0e9,
@@ -35,7 +36,6 @@ instance = MxPlatformRuby::WidgetRequest.new(
3536
ui_message_version: 4,
3637
ui_message_webview_url_scheme: mx,
3738
update_credentials: false,
38-
wait_for_full_aggregation: false,
3939
widget_type: connect_widget
4040
)
4141
```

lib/mx-platform-ruby/api/mx_platform_api.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5290,9 +5290,10 @@ def request_connect_widget_url_with_http_info(user_guid, connect_widget_request_
52905290
# @param member_guid [String] The unique id for a `member`.
52915291
# @param user_guid [String] The unique id for a `user`.
52925292
# @param [Hash] opts the optional parameters
5293+
# @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`.
52935294
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
52945295
# @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
5295-
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
5296+
# @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`.
52965297
# @return [OAuthWindowResponseBody]
52975298
def request_o_auth_window_uri(member_guid, user_guid, opts = {})
52985299
data, _status_code, _headers = request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts)
@@ -5304,9 +5305,10 @@ def request_o_auth_window_uri(member_guid, user_guid, opts = {})
53045305
# @param member_guid [String] The unique id for a `member`.
53055306
# @param user_guid [String] The unique id for a `user`.
53065307
# @param [Hash] opts the optional parameters
5308+
# @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`.
53075309
# @option opts [String] :referral_source Must be either `BROWSER` or `APP` depending on the implementation. Defaults to `BROWSER`.
53085310
# @option opts [Boolean] :skip_aggregation Setting this parameter to `true` will prevent the member from automatically aggregating after being redirected from the authorization page.
5309-
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
5311+
# @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`.
53105312
# @return [Array<(OAuthWindowResponseBody, Integer, Hash)>] OAuthWindowResponseBody data, response status code and response headers
53115313
def request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
53125314
if @api_client.config.debugging
@@ -5325,6 +5327,7 @@ def request_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
53255327

53265328
# query parameters
53275329
query_params = opts[:query_params] || {}
5330+
query_params[:'client_redirect_url'] = opts[:'client_redirect_url'] if !opts[:'client_redirect_url'].nil?
53285331
query_params[:'referral_source'] = opts[:'referral_source'] if !opts[:'referral_source'].nil?
53295332
query_params[:'skip_aggregation'] = opts[:'skip_aggregation'] if !opts[:'skip_aggregation'].nil?
53305333
query_params[:'ui_message_webview_url_scheme'] = opts[:'ui_message_webview_url_scheme'] if !opts[:'ui_message_webview_url_scheme'].nil?

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
module MxPlatformRuby
1717
class ConnectWidgetRequest
18+
attr_accessor :client_redirect_url
19+
1820
attr_accessor :color_scheme
1921

2022
attr_accessor :current_institution_code
@@ -35,11 +37,10 @@ class ConnectWidgetRequest
3537

3638
attr_accessor :update_credentials
3739

38-
attr_accessor :wait_for_full_aggregation
39-
4040
# Attribute mapping from ruby-style variable name to JSON key.
4141
def self.attribute_map
4242
{
43+
:'client_redirect_url' => :'client_redirect_url',
4344
:'color_scheme' => :'color_scheme',
4445
:'current_institution_code' => :'current_institution_code',
4546
:'current_member_guid' => :'current_member_guid',
@@ -49,8 +50,7 @@ def self.attribute_map
4950
:'mode' => :'mode',
5051
:'ui_message_version' => :'ui_message_version',
5152
:'ui_message_webview_url_scheme' => :'ui_message_webview_url_scheme',
52-
:'update_credentials' => :'update_credentials',
53-
:'wait_for_full_aggregation' => :'wait_for_full_aggregation'
53+
:'update_credentials' => :'update_credentials'
5454
}
5555
end
5656

@@ -62,6 +62,7 @@ def self.acceptable_attributes
6262
# Attribute type mapping.
6363
def self.openapi_types
6464
{
65+
:'client_redirect_url' => :'String',
6566
:'color_scheme' => :'String',
6667
:'current_institution_code' => :'String',
6768
:'current_member_guid' => :'String',
@@ -71,8 +72,7 @@ def self.openapi_types
7172
:'mode' => :'String',
7273
:'ui_message_version' => :'Integer',
7374
:'ui_message_webview_url_scheme' => :'String',
74-
:'update_credentials' => :'Boolean',
75-
:'wait_for_full_aggregation' => :'Boolean'
75+
:'update_credentials' => :'Boolean'
7676
}
7777
end
7878

@@ -97,6 +97,10 @@ def initialize(attributes = {})
9797
h[k.to_sym] = v
9898
}
9999

100+
if attributes.key?(:'client_redirect_url')
101+
self.client_redirect_url = attributes[:'client_redirect_url']
102+
end
103+
100104
if attributes.key?(:'color_scheme')
101105
self.color_scheme = attributes[:'color_scheme']
102106
end
@@ -136,10 +140,6 @@ def initialize(attributes = {})
136140
if attributes.key?(:'update_credentials')
137141
self.update_credentials = attributes[:'update_credentials']
138142
end
139-
140-
if attributes.key?(:'wait_for_full_aggregation')
141-
self.wait_for_full_aggregation = attributes[:'wait_for_full_aggregation']
142-
end
143143
end
144144

145145
# Show invalid properties with the reasons. Usually used together with valid?
@@ -160,6 +160,7 @@ def valid?
160160
def ==(o)
161161
return true if self.equal?(o)
162162
self.class == o.class &&
163+
client_redirect_url == o.client_redirect_url &&
163164
color_scheme == o.color_scheme &&
164165
current_institution_code == o.current_institution_code &&
165166
current_member_guid == o.current_member_guid &&
@@ -169,8 +170,7 @@ def ==(o)
169170
mode == o.mode &&
170171
ui_message_version == o.ui_message_version &&
171172
ui_message_webview_url_scheme == o.ui_message_webview_url_scheme &&
172-
update_credentials == o.update_credentials &&
173-
wait_for_full_aggregation == o.wait_for_full_aggregation
173+
update_credentials == o.update_credentials
174174
end
175175

176176
# @see the `==` method
@@ -182,7 +182,7 @@ def eql?(o)
182182
# Calculates hash code according to all attributes.
183183
# @return [Integer] Hash code
184184
def hash
185-
[color_scheme, current_institution_code, 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].hash
185+
[client_redirect_url, color_scheme, current_institution_code, current_member_guid, disable_institution_search, include_transactions, is_mobile_webview, mode, ui_message_version, ui_message_webview_url_scheme, update_credentials].hash
186186
end
187187

188188
# Builds the object from hash

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class HoldingResponse
3333

3434
attr_accessor :holding_type
3535

36+
attr_accessor :holding_type_id
37+
3638
attr_accessor :id
3739

3840
attr_accessor :market_value
@@ -63,6 +65,7 @@ def self.attribute_map
6365
:'description' => :'description',
6466
:'guid' => :'guid',
6567
:'holding_type' => :'holding_type',
68+
:'holding_type_id' => :'holding_type_id',
6669
:'id' => :'id',
6770
:'market_value' => :'market_value',
6871
:'member_guid' => :'member_guid',
@@ -92,6 +95,7 @@ def self.openapi_types
9295
:'description' => :'String',
9396
:'guid' => :'String',
9497
:'holding_type' => :'String',
98+
:'holding_type_id' => :'Integer',
9599
:'id' => :'String',
96100
:'market_value' => :'Float',
97101
:'member_guid' => :'String',
@@ -116,6 +120,7 @@ def self.openapi_nullable
116120
:'description',
117121
:'guid',
118122
:'holding_type',
123+
:'holding_type_id',
119124
:'id',
120125
:'market_value',
121126
:'member_guid',
@@ -179,6 +184,10 @@ def initialize(attributes = {})
179184
self.holding_type = attributes[:'holding_type']
180185
end
181186

187+
if attributes.key?(:'holding_type_id')
188+
self.holding_type_id = attributes[:'holding_type_id']
189+
end
190+
182191
if attributes.key?(:'id')
183192
self.id = attributes[:'id']
184193
end
@@ -243,6 +252,7 @@ def ==(o)
243252
description == o.description &&
244253
guid == o.guid &&
245254
holding_type == o.holding_type &&
255+
holding_type_id == o.holding_type_id &&
246256
id == o.id &&
247257
market_value == o.market_value &&
248258
member_guid == o.member_guid &&
@@ -263,7 +273,7 @@ def eql?(o)
263273
# Calculates hash code according to all attributes.
264274
# @return [Integer] Hash code
265275
def hash
266-
[account_guid, cost_basis, created_at, currency_code, cusip, daily_change, description, guid, holding_type, id, market_value, member_guid, metadata, purchase_price, shares, symbol, updated_at, user_guid].hash
276+
[account_guid, cost_basis, created_at, currency_code, cusip, daily_change, description, guid, holding_type, holding_type_id, id, market_value, member_guid, metadata, purchase_price, shares, symbol, updated_at, user_guid].hash
267277
end
268278

269279
# Builds the object from hash

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ module MxPlatformRuby
1717
class MemberCreateRequest
1818
attr_accessor :background_aggregation_is_disabled
1919

20+
attr_accessor :client_redirect_url
21+
2022
attr_accessor :credentials
2123

2224
attr_accessor :id
@@ -33,6 +35,7 @@ class MemberCreateRequest
3335
def self.attribute_map
3436
{
3537
:'background_aggregation_is_disabled' => :'background_aggregation_is_disabled',
38+
:'client_redirect_url' => :'client_redirect_url',
3639
:'credentials' => :'credentials',
3740
:'id' => :'id',
3841
:'institution_code' => :'institution_code',
@@ -51,6 +54,7 @@ def self.acceptable_attributes
5154
def self.openapi_types
5255
{
5356
:'background_aggregation_is_disabled' => :'Boolean',
57+
:'client_redirect_url' => :'String',
5458
:'credentials' => :'Array<CredentialRequest>',
5559
:'id' => :'String',
5660
:'institution_code' => :'String',
@@ -85,6 +89,10 @@ def initialize(attributes = {})
8589
self.background_aggregation_is_disabled = attributes[:'background_aggregation_is_disabled']
8690
end
8791

92+
if attributes.key?(:'client_redirect_url')
93+
self.client_redirect_url = attributes[:'client_redirect_url']
94+
end
95+
8896
if attributes.key?(:'credentials')
8997
if (value = attributes[:'credentials']).is_a?(Array)
9098
self.credentials = value
@@ -141,6 +149,7 @@ def ==(o)
141149
return true if self.equal?(o)
142150
self.class == o.class &&
143151
background_aggregation_is_disabled == o.background_aggregation_is_disabled &&
152+
client_redirect_url == o.client_redirect_url &&
144153
credentials == o.credentials &&
145154
id == o.id &&
146155
institution_code == o.institution_code &&
@@ -158,7 +167,7 @@ def eql?(o)
158167
# Calculates hash code according to all attributes.
159168
# @return [Integer] Hash code
160169
def hash
161-
[background_aggregation_is_disabled, credentials, id, institution_code, is_oauth, metadata, skip_aggregation].hash
170+
[background_aggregation_is_disabled, client_redirect_url, credentials, id, institution_code, is_oauth, metadata, skip_aggregation].hash
162171
end
163172

164173
# Builds the object from hash

0 commit comments

Comments
 (0)