atrium-ruby 2.9.0 → 2.10.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.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/docs/ConnectWidgetRequestBody.md +1 -0
- data/docs/Member.md +1 -0
- data/docs/MemberCreateRequest.md +4 -1
- data/docs/MembersApi.md +44 -0
- data/lib/atrium-ruby/api/members_api.rb +64 -0
- data/lib/atrium-ruby/models/connect_widget_request_body.rb +10 -1
- data/lib/atrium-ruby/models/member.rb +10 -1
- data/lib/atrium-ruby/models/member_create_request.rb +31 -9
- data/lib/atrium-ruby/version.rb +1 -1
- data/spec/api/members_api_spec.rb +15 -0
- data/spec/models/connect_widget_request_body_spec.rb +6 -0
- data/spec/models/member_create_request_spec.rb +18 -0
- data/spec/models/member_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f08e2d96c61ae1138e229127724abbac929c570fa28ade6c5237cf8f68b14120
|
4
|
+
data.tar.gz: 61bdce1ea25e298bb8c27777443d577c206608c8cf0beb422aba6656bbe626e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 967452b0816d315fbe62e0a142e86b545c1d22fdf93ba286da38c6f2ebdd97bbe12cfb4ef1be498f042fa6d6e38ac09fe9948431edcfd2fe398324feb16b4056
|
7
|
+
data.tar.gz: 3de4cebc0d0320d76eb7ae08cf758859c7d78df31f125a5bce6be10630de50ce75d2fe5d74d9ea396f44330d1b77b1801f2595a1bc697049fe9f63918f9236b4
|
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.
|
20
|
+
gem install ./atrium-ruby-2.10.0.gem
|
21
21
|
```
|
22
22
|
|
23
23
|
Finally add this to the Gemfile:
|
24
24
|
|
25
|
-
gem 'atrium-ruby', '~> 2.
|
25
|
+
gem 'atrium-ruby', '~> 2.10.0'
|
26
26
|
|
27
27
|
### Install from Git
|
28
28
|
|
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
|
|
96
96
|
*Atrium::MembersApi* | [**list_members**](docs/MembersApi.md#list_members) | **GET** /users/{user_guid}/members | List members
|
97
97
|
*Atrium::MembersApi* | [**read_member**](docs/MembersApi.md#read_member) | **GET** /users/{user_guid}/members/{member_guid} | Read member
|
98
98
|
*Atrium::MembersApi* | [**read_member_status**](docs/MembersApi.md#read_member_status) | **GET** /users/{user_guid}/members/{member_guid}/status | Read member connection status
|
99
|
+
*Atrium::MembersApi* | [**read_o_auth_window_uri**](docs/MembersApi.md#read_o_auth_window_uri) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Read OAuth Window URI
|
99
100
|
*Atrium::MembersApi* | [**resume_member**](docs/MembersApi.md#resume_member) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation from MFA
|
100
101
|
*Atrium::MembersApi* | [**update_member**](docs/MembersApi.md#update_member) | **PUT** /users/{user_guid}/members/{member_guid} | Update member
|
101
102
|
*Atrium::MerchantsApi* | [**list_merchant_locations**](docs/MerchantsApi.md#list_merchant_locations) | **GET** /merchants/{merchant_guid}/merchant_locations | List merchant locations
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
9
9
|
**disable_institution_search** | **BOOLEAN** | | [optional]
|
10
10
|
**mode** | **String** | | [optional]
|
11
11
|
**ui_message_version** | **Float** | | [optional]
|
12
|
+
**ui_message_webview_url_scheme** | **String** | | [optional]
|
12
13
|
**update_credentials** | **BOOLEAN** | | [optional]
|
13
14
|
|
14
15
|
|
data/docs/Member.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**is_being_aggregated** | **BOOLEAN** | | [optional]
|
12
12
|
**metadata** | **String** | | [optional]
|
13
13
|
**name** | **String** | | [optional]
|
14
|
+
**oauth_window_uri** | **String** | | [optional]
|
14
15
|
**status** | **String** | | [optional]
|
15
16
|
**successfully_aggregated_at** | **String** | | [optional]
|
16
17
|
**user_guid** | **String** | | [optional]
|
data/docs/MemberCreateRequest.md
CHANGED
@@ -3,10 +3,13 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**credentials** | [**Array<CredentialRequest>**](CredentialRequest.md) | |
|
6
|
+
**credentials** | [**Array<CredentialRequest>**](CredentialRequest.md) | | [optional]
|
7
7
|
**identifier** | **String** | | [optional]
|
8
|
+
**is_oauth** | **BOOLEAN** | | [optional]
|
8
9
|
**institution_code** | **String** | |
|
9
10
|
**metadata** | **String** | | [optional]
|
11
|
+
**referral_source** | **String** | | [optional]
|
10
12
|
**skip_aggregation** | **BOOLEAN** | | [optional]
|
13
|
+
**ui_message_webview_url_scheme** | **String** | | [optional]
|
11
14
|
|
12
15
|
|
data/docs/MembersApi.md
CHANGED
@@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
[**list_members**](MembersApi.md#list_members) | **GET** /users/{user_guid}/members | List members
|
15
15
|
[**read_member**](MembersApi.md#read_member) | **GET** /users/{user_guid}/members/{member_guid} | Read member
|
16
16
|
[**read_member_status**](MembersApi.md#read_member_status) | **GET** /users/{user_guid}/members/{member_guid}/status | Read member connection status
|
17
|
+
[**read_o_auth_window_uri**](MembersApi.md#read_o_auth_window_uri) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Read OAuth Window URI
|
17
18
|
[**resume_member**](MembersApi.md#resume_member) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation from MFA
|
18
19
|
[**update_member**](MembersApi.md#update_member) | **PUT** /users/{user_guid}/members/{member_guid} | Update member
|
19
20
|
|
@@ -481,6 +482,49 @@ Name | Type | Description | Notes
|
|
481
482
|
|
482
483
|
[**MemberConnectionStatusResponseBody**](MemberConnectionStatusResponseBody.md)
|
483
484
|
|
485
|
+
# **read_o_auth_window_uri**
|
486
|
+
> MemberResponseBody read_o_auth_window_uri(member_guid, user_guid, , opts)
|
487
|
+
|
488
|
+
Read OAuth Window URI
|
489
|
+
|
490
|
+
This endpoint will generate an `oauth_window_uri` for the specified `member`.
|
491
|
+
|
492
|
+
### Example
|
493
|
+
```ruby
|
494
|
+
# load the gem
|
495
|
+
require 'atrium-ruby'
|
496
|
+
|
497
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
498
|
+
|
499
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
500
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
501
|
+
opts = {
|
502
|
+
referral_source: "BROWSER", # String | Should be either BROWSER or APP depending on the implementation.
|
503
|
+
ui_message_webview_url_scheme: "ui_message_webview_url_scheme_example" # String | A scheme for routing the user back to the application state they were previously in.
|
504
|
+
}
|
505
|
+
|
506
|
+
begin
|
507
|
+
#Read OAuth Window URI
|
508
|
+
response = client.members.read_o_auth_window_uri(member_guid, user_guid, , opts)
|
509
|
+
p response
|
510
|
+
rescue Atrium::ApiError => e
|
511
|
+
puts "Exception when calling MembersApi->read_o_auth_window_uri: #{e}"
|
512
|
+
end
|
513
|
+
```
|
514
|
+
|
515
|
+
### Parameters
|
516
|
+
|
517
|
+
Name | Type | Description | Notes
|
518
|
+
------------- | ------------- | ------------- | -------------
|
519
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
520
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
521
|
+
**referral_source** | **String**| Should be either BROWSER or APP depending on the implementation. | [optional]
|
522
|
+
**ui_message_webview_url_scheme** | **String**| A scheme for routing the user back to the application state they were previously in. | [optional]
|
523
|
+
|
524
|
+
### Return type
|
525
|
+
|
526
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
527
|
+
|
484
528
|
# **resume_member**
|
485
529
|
> MemberResponseBody resume_member(member_guid, user_guid, body)
|
486
530
|
|
@@ -154,6 +154,19 @@ module Atrium
|
|
154
154
|
data
|
155
155
|
end
|
156
156
|
|
157
|
+
# Read OAuth Window URI
|
158
|
+
# This endpoint will generate an `oauth_window_uri` for the specified `member`.
|
159
|
+
# @param member_guid The unique identifier for a `member`.
|
160
|
+
# @param user_guid The unique identifier for a `user`.
|
161
|
+
# @param [Hash] opts the optional parameters
|
162
|
+
# @option opts [String] :referral_source Should be either BROWSER or APP depending on the implementation.
|
163
|
+
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
164
|
+
# @return [MemberResponseBody]
|
165
|
+
def read_o_auth_window_uri(member_guid, user_guid, opts = {})
|
166
|
+
data, _status_code, _headers = read_o_auth_window_uri_with_http_info(member_guid, user_guid, opts)
|
167
|
+
data
|
168
|
+
end
|
169
|
+
|
157
170
|
# Resume aggregation from MFA
|
158
171
|
# This endpoint answers the challenges needed when a member has been challenged by multi-factor authentication.
|
159
172
|
# @param member_guid The unique identifier for a `member`.
|
@@ -761,6 +774,57 @@ module Atrium
|
|
761
774
|
end
|
762
775
|
return data, status_code, headers
|
763
776
|
end
|
777
|
+
# Read OAuth Window URI
|
778
|
+
# This endpoint will generate an `oauth_window_uri` for the specified `member`.
|
779
|
+
# @param member_guid The unique identifier for a `member`.
|
780
|
+
# @param user_guid The unique identifier for a `user`.
|
781
|
+
# @param [Hash] opts the optional parameters
|
782
|
+
# @option opts [String] :referral_source Should be either BROWSER or APP depending on the implementation.
|
783
|
+
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
784
|
+
# @return [Array<(MemberResponseBody, Fixnum, Hash)>] MemberResponseBody data, response status code and response headers
|
785
|
+
def read_o_auth_window_uri_with_http_info(member_guid, user_guid, opts = {})
|
786
|
+
if @api_client.config.debugging
|
787
|
+
@api_client.config.logger.debug 'Calling API: MembersApi.read_o_auth_window_uri ...'
|
788
|
+
end
|
789
|
+
# verify the required parameter 'member_guid' is set
|
790
|
+
if @api_client.config.client_side_validation && member_guid.nil?
|
791
|
+
fail ArgumentError, "Missing the required parameter 'member_guid' when calling MembersApi.read_o_auth_window_uri"
|
792
|
+
end
|
793
|
+
# verify the required parameter 'user_guid' is set
|
794
|
+
if @api_client.config.client_side_validation && user_guid.nil?
|
795
|
+
fail ArgumentError, "Missing the required parameter 'user_guid' when calling MembersApi.read_o_auth_window_uri"
|
796
|
+
end
|
797
|
+
# resource path
|
798
|
+
local_var_path = '/users/{user_guid}/members/{member_guid}/oauth_window_uri'.sub('{' + 'member_guid' + '}', member_guid.to_s).sub('{' + 'user_guid' + '}', user_guid.to_s)
|
799
|
+
|
800
|
+
# query parameters
|
801
|
+
query_params = {}
|
802
|
+
query_params[:'referral_source'] = opts[:'referral_source'] if !opts[:'referral_source'].nil?
|
803
|
+
query_params[:'ui_message_webview_url_scheme'] = opts[:'ui_message_webview_url_scheme'] if !opts[:'ui_message_webview_url_scheme'].nil?
|
804
|
+
|
805
|
+
# header parameters
|
806
|
+
header_params = {}
|
807
|
+
# HTTP header 'Accept' (if needed)
|
808
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
|
809
|
+
|
810
|
+
# form parameters
|
811
|
+
form_params = {}
|
812
|
+
|
813
|
+
# http body (model)
|
814
|
+
post_body = nil
|
815
|
+
auth_names = ['apiKey', 'clientID']
|
816
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
817
|
+
:header_params => header_params,
|
818
|
+
:query_params => query_params,
|
819
|
+
:form_params => form_params,
|
820
|
+
:body => post_body,
|
821
|
+
:auth_names => auth_names,
|
822
|
+
:return_type => 'MemberResponseBody')
|
823
|
+
if @api_client.config.debugging
|
824
|
+
@api_client.config.logger.debug "API called: MembersApi#read_o_auth_window_uri\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
825
|
+
end
|
826
|
+
return data, status_code, headers
|
827
|
+
end
|
764
828
|
# Resume aggregation from MFA
|
765
829
|
# This endpoint answers the challenges needed when a member has been challenged by multi-factor authentication.
|
766
830
|
# @param member_guid The unique identifier for a `member`.
|
@@ -22,6 +22,8 @@ module Atrium
|
|
22
22
|
|
23
23
|
attr_accessor :ui_message_version
|
24
24
|
|
25
|
+
attr_accessor :ui_message_webview_url_scheme
|
26
|
+
|
25
27
|
attr_accessor :update_credentials
|
26
28
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -33,6 +35,7 @@ module Atrium
|
|
33
35
|
:'disable_institution_search' => :'disable_institution_search',
|
34
36
|
:'mode' => :'mode',
|
35
37
|
:'ui_message_version' => :'ui_message_version',
|
38
|
+
:'ui_message_webview_url_scheme' => :'ui_message_webview_url_scheme',
|
36
39
|
:'update_credentials' => :'update_credentials'
|
37
40
|
}
|
38
41
|
end
|
@@ -46,6 +49,7 @@ module Atrium
|
|
46
49
|
:'disable_institution_search' => :'BOOLEAN',
|
47
50
|
:'mode' => :'String',
|
48
51
|
:'ui_message_version' => :'Float',
|
52
|
+
:'ui_message_webview_url_scheme' => :'String',
|
49
53
|
:'update_credentials' => :'BOOLEAN'
|
50
54
|
}
|
51
55
|
end
|
@@ -82,6 +86,10 @@ module Atrium
|
|
82
86
|
self.ui_message_version = attributes[:'ui_message_version']
|
83
87
|
end
|
84
88
|
|
89
|
+
if attributes.has_key?(:'ui_message_webview_url_scheme')
|
90
|
+
self.ui_message_webview_url_scheme = attributes[:'ui_message_webview_url_scheme']
|
91
|
+
end
|
92
|
+
|
85
93
|
if attributes.has_key?(:'update_credentials')
|
86
94
|
self.update_credentials = attributes[:'update_credentials']
|
87
95
|
end
|
@@ -111,6 +119,7 @@ module Atrium
|
|
111
119
|
disable_institution_search == o.disable_institution_search &&
|
112
120
|
mode == o.mode &&
|
113
121
|
ui_message_version == o.ui_message_version &&
|
122
|
+
ui_message_webview_url_scheme == o.ui_message_webview_url_scheme &&
|
114
123
|
update_credentials == o.update_credentials
|
115
124
|
end
|
116
125
|
|
@@ -123,7 +132,7 @@ module Atrium
|
|
123
132
|
# Calculates hash code according to all attributes.
|
124
133
|
# @return [Fixnum] Hash code
|
125
134
|
def hash
|
126
|
-
[is_mobile_webview, current_institution_code, current_member_guid, disable_institution_search, mode, ui_message_version, update_credentials].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
|
127
136
|
end
|
128
137
|
|
129
138
|
# Builds the object from hash
|
@@ -26,6 +26,8 @@ module Atrium
|
|
26
26
|
|
27
27
|
attr_accessor :name
|
28
28
|
|
29
|
+
attr_accessor :oauth_window_uri
|
30
|
+
|
29
31
|
attr_accessor :status
|
30
32
|
|
31
33
|
attr_accessor :successfully_aggregated_at
|
@@ -43,6 +45,7 @@ module Atrium
|
|
43
45
|
:'is_being_aggregated' => :'is_being_aggregated',
|
44
46
|
:'metadata' => :'metadata',
|
45
47
|
:'name' => :'name',
|
48
|
+
:'oauth_window_uri' => :'oauth_window_uri',
|
46
49
|
:'status' => :'status',
|
47
50
|
:'successfully_aggregated_at' => :'successfully_aggregated_at',
|
48
51
|
:'user_guid' => :'user_guid'
|
@@ -60,6 +63,7 @@ module Atrium
|
|
60
63
|
:'is_being_aggregated' => :'BOOLEAN',
|
61
64
|
:'metadata' => :'String',
|
62
65
|
:'name' => :'String',
|
66
|
+
:'oauth_window_uri' => :'String',
|
63
67
|
:'status' => :'String',
|
64
68
|
:'successfully_aggregated_at' => :'String',
|
65
69
|
:'user_guid' => :'String'
|
@@ -106,6 +110,10 @@ module Atrium
|
|
106
110
|
self.name = attributes[:'name']
|
107
111
|
end
|
108
112
|
|
113
|
+
if attributes.has_key?(:'oauth_window_uri')
|
114
|
+
self.oauth_window_uri = attributes[:'oauth_window_uri']
|
115
|
+
end
|
116
|
+
|
109
117
|
if attributes.has_key?(:'status')
|
110
118
|
self.status = attributes[:'status']
|
111
119
|
end
|
@@ -145,6 +153,7 @@ module Atrium
|
|
145
153
|
is_being_aggregated == o.is_being_aggregated &&
|
146
154
|
metadata == o.metadata &&
|
147
155
|
name == o.name &&
|
156
|
+
oauth_window_uri == o.oauth_window_uri &&
|
148
157
|
status == o.status &&
|
149
158
|
successfully_aggregated_at == o.successfully_aggregated_at &&
|
150
159
|
user_guid == o.user_guid
|
@@ -159,7 +168,7 @@ module Atrium
|
|
159
168
|
# Calculates hash code according to all attributes.
|
160
169
|
# @return [Fixnum] Hash code
|
161
170
|
def hash
|
162
|
-
[aggregated_at, connection_status, guid, identifier, institution_code, is_being_aggregated, metadata, name, status, successfully_aggregated_at, user_guid].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
|
163
172
|
end
|
164
173
|
|
165
174
|
# Builds the object from hash
|
@@ -14,20 +14,29 @@ module Atrium
|
|
14
14
|
|
15
15
|
attr_accessor :identifier
|
16
16
|
|
17
|
+
attr_accessor :is_oauth
|
18
|
+
|
17
19
|
attr_accessor :institution_code
|
18
20
|
|
19
21
|
attr_accessor :metadata
|
20
22
|
|
23
|
+
attr_accessor :referral_source
|
24
|
+
|
21
25
|
attr_accessor :skip_aggregation
|
22
26
|
|
27
|
+
attr_accessor :ui_message_webview_url_scheme
|
28
|
+
|
23
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
30
|
def self.attribute_map
|
25
31
|
{
|
26
32
|
:'credentials' => :'credentials',
|
27
33
|
:'identifier' => :'identifier',
|
34
|
+
:'is_oauth' => :'is_oauth',
|
28
35
|
:'institution_code' => :'institution_code',
|
29
36
|
:'metadata' => :'metadata',
|
30
|
-
:'
|
37
|
+
:'referral_source' => :'referral_source',
|
38
|
+
:'skip_aggregation' => :'skip_aggregation',
|
39
|
+
:'ui_message_webview_url_scheme' => :'ui_message_webview_url_scheme'
|
31
40
|
}
|
32
41
|
end
|
33
42
|
|
@@ -36,9 +45,12 @@ module Atrium
|
|
36
45
|
{
|
37
46
|
:'credentials' => :'Array<CredentialRequest>',
|
38
47
|
:'identifier' => :'String',
|
48
|
+
:'is_oauth' => :'BOOLEAN',
|
39
49
|
:'institution_code' => :'String',
|
40
50
|
:'metadata' => :'String',
|
41
|
-
:'
|
51
|
+
:'referral_source' => :'String',
|
52
|
+
:'skip_aggregation' => :'BOOLEAN',
|
53
|
+
:'ui_message_webview_url_scheme' => :'String'
|
42
54
|
}
|
43
55
|
end
|
44
56
|
|
@@ -60,6 +72,10 @@ module Atrium
|
|
60
72
|
self.identifier = attributes[:'identifier']
|
61
73
|
end
|
62
74
|
|
75
|
+
if attributes.has_key?(:'is_oauth')
|
76
|
+
self.is_oauth = attributes[:'is_oauth']
|
77
|
+
end
|
78
|
+
|
63
79
|
if attributes.has_key?(:'institution_code')
|
64
80
|
self.institution_code = attributes[:'institution_code']
|
65
81
|
end
|
@@ -68,19 +84,23 @@ module Atrium
|
|
68
84
|
self.metadata = attributes[:'metadata']
|
69
85
|
end
|
70
86
|
|
87
|
+
if attributes.has_key?(:'referral_source')
|
88
|
+
self.referral_source = attributes[:'referral_source']
|
89
|
+
end
|
90
|
+
|
71
91
|
if attributes.has_key?(:'skip_aggregation')
|
72
92
|
self.skip_aggregation = attributes[:'skip_aggregation']
|
73
93
|
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'ui_message_webview_url_scheme')
|
96
|
+
self.ui_message_webview_url_scheme = attributes[:'ui_message_webview_url_scheme']
|
97
|
+
end
|
74
98
|
end
|
75
99
|
|
76
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
77
101
|
# @return Array for valid properties with the reasons
|
78
102
|
def list_invalid_properties
|
79
103
|
invalid_properties = Array.new
|
80
|
-
if @credentials.nil?
|
81
|
-
invalid_properties.push('invalid value for "credentials", credentials cannot be nil.')
|
82
|
-
end
|
83
|
-
|
84
104
|
if @institution_code.nil?
|
85
105
|
invalid_properties.push('invalid value for "institution_code", institution_code cannot be nil.')
|
86
106
|
end
|
@@ -91,7 +111,6 @@ module Atrium
|
|
91
111
|
# Check to see if the all the properties in the model are valid
|
92
112
|
# @return true if the model is valid
|
93
113
|
def valid?
|
94
|
-
return false if @credentials.nil?
|
95
114
|
return false if @institution_code.nil?
|
96
115
|
true
|
97
116
|
end
|
@@ -103,9 +122,12 @@ module Atrium
|
|
103
122
|
self.class == o.class &&
|
104
123
|
credentials == o.credentials &&
|
105
124
|
identifier == o.identifier &&
|
125
|
+
is_oauth == o.is_oauth &&
|
106
126
|
institution_code == o.institution_code &&
|
107
127
|
metadata == o.metadata &&
|
108
|
-
|
128
|
+
referral_source == o.referral_source &&
|
129
|
+
skip_aggregation == o.skip_aggregation &&
|
130
|
+
ui_message_webview_url_scheme == o.ui_message_webview_url_scheme
|
109
131
|
end
|
110
132
|
|
111
133
|
# @see the `==` method
|
@@ -117,7 +139,7 @@ module Atrium
|
|
117
139
|
# Calculates hash code according to all attributes.
|
118
140
|
# @return [Fixnum] Hash code
|
119
141
|
def hash
|
120
|
-
[credentials, identifier, institution_code, metadata, skip_aggregation].hash
|
142
|
+
[credentials, identifier, is_oauth, institution_code, metadata, referral_source, skip_aggregation, ui_message_webview_url_scheme].hash
|
121
143
|
end
|
122
144
|
|
123
145
|
# Builds the object from hash
|
data/lib/atrium-ruby/version.rb
CHANGED
@@ -190,6 +190,21 @@ describe 'MembersApi' do
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
+
# unit tests for read_o_auth_window_uri
|
194
|
+
# Read OAuth Window URI
|
195
|
+
# This endpoint will generate an `oauth_window_uri` for the specified `member`.
|
196
|
+
# @param member_guid The unique identifier for a `member`.
|
197
|
+
# @param user_guid The unique identifier for a `user`.
|
198
|
+
# @param [Hash] opts the optional parameters
|
199
|
+
# @option opts [String] :referral_source Should be either BROWSER or APP depending on the implementation.
|
200
|
+
# @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
|
201
|
+
# @return [MemberResponseBody]
|
202
|
+
describe 'read_o_auth_window_uri test' do
|
203
|
+
it 'should work' do
|
204
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
193
208
|
# unit tests for resume_member
|
194
209
|
# Resume aggregation from MFA
|
195
210
|
# This endpoint answers the challenges needed when a member has been challenged by multi-factor authentication.
|
@@ -63,6 +63,12 @@ describe 'ConnectWidgetRequestBody' do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
describe 'test attribute "ui_message_webview_url_scheme"' 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 "update_credentials"' do
|
67
73
|
it 'should work' do
|
68
74
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -39,6 +39,12 @@ describe 'MemberCreateRequest' do
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
describe 'test attribute "is_oauth"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
42
48
|
describe 'test attribute "institution_code"' do
|
43
49
|
it 'should work' do
|
44
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -51,10 +57,22 @@ describe 'MemberCreateRequest' do
|
|
51
57
|
end
|
52
58
|
end
|
53
59
|
|
60
|
+
describe 'test attribute "referral_source"' 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 "skip_aggregation"' do
|
55
67
|
it 'should work' do
|
56
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
69
|
end
|
58
70
|
end
|
59
71
|
|
72
|
+
describe 'test attribute "ui_message_webview_url_scheme"' 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
|
+
|
60
78
|
end
|
data/spec/models/member_spec.rb
CHANGED
@@ -75,6 +75,12 @@ describe 'Member' do
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
+
describe 'test attribute "oauth_window_uri"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
78
84
|
describe 'test attribute "status"' do
|
79
85
|
it 'should work' do
|
80
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atrium-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MX
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|