atrium-ruby 2.8.5 → 2.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -2
  3. data/docs/Account.md +3 -0
  4. data/docs/AccountNumber.md +2 -0
  5. data/docs/ConnectWidgetRequestBody.md +4 -0
  6. data/docs/Member.md +1 -0
  7. data/docs/MemberCreateRequest.md +4 -1
  8. data/docs/MembersApi.md +44 -0
  9. data/docs/MerchantLocation.md +17 -0
  10. data/docs/MerchantLocationResponseBody.md +8 -0
  11. data/docs/MerchantLocationsResponseBody.md +9 -0
  12. data/docs/MerchantsApi.md +107 -2
  13. data/docs/MerchantsResponseBody.md +9 -0
  14. data/docs/Transaction.md +1 -0
  15. data/lib/atrium-ruby.rb +4 -0
  16. data/lib/atrium-ruby/api/members_api.rb +64 -0
  17. data/lib/atrium-ruby/api/merchants_api.rb +156 -0
  18. data/lib/atrium-ruby/models/account.rb +28 -1
  19. data/lib/atrium-ruby/models/account_number.rb +19 -1
  20. data/lib/atrium-ruby/models/connect_widget_request_body.rb +40 -4
  21. data/lib/atrium-ruby/models/member.rb +10 -1
  22. data/lib/atrium-ruby/models/member_create_request.rb +31 -9
  23. data/lib/atrium-ruby/models/merchant_location.rb +260 -0
  24. data/lib/atrium-ruby/models/merchant_location_response_body.rb +179 -0
  25. data/lib/atrium-ruby/models/merchant_locations_response_body.rb +190 -0
  26. data/lib/atrium-ruby/models/merchants_response_body.rb +190 -0
  27. data/lib/atrium-ruby/models/transaction.rb +10 -1
  28. data/lib/atrium-ruby/version.rb +1 -1
  29. data/spec/api/members_api_spec.rb +15 -0
  30. data/spec/api/merchants_api_spec.rb +36 -0
  31. data/spec/models/account_number_spec.rb +12 -0
  32. data/spec/models/account_spec.rb +18 -0
  33. data/spec/models/connect_widget_request_body_spec.rb +24 -0
  34. data/spec/models/member_create_request_spec.rb +18 -0
  35. data/spec/models/member_spec.rb +6 -0
  36. data/spec/models/merchant_location_response_body_spec.rb +36 -0
  37. data/spec/models/merchant_location_spec.rb +90 -0
  38. data/spec/models/merchant_locations_response_body_spec.rb +42 -0
  39. data/spec/models/merchants_response_body_spec.rb +42 -0
  40. data/spec/models/transaction_spec.rb +6 -0
  41. metadata +52 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a610289014355dca342894a1e5ea60e9ff67ab778744c33fbe0511200e02a255
4
- data.tar.gz: ea45acd5c98cbcd7c3d8fe9e684233c73a82af45e3284548c8a591debe290543
3
+ metadata.gz: 99a3da5e9ec8879851fc9a6849b3ac571cd832815827dcdae950fc4554c10975
4
+ data.tar.gz: 1f3ed24ea48fbd3e5d0e86d694e05c7c95dbe471270be61d16731ff80b2bfa47
5
5
  SHA512:
6
- metadata.gz: 3c61a95bfd9372b8a7e5a78b27de9db845186cd9c6c76f4257c1f33ef888e1c77a74fc178c26a42e45e6602c887c0ba2cf0d1bce4413b52f5ef9e086ec337a8c
7
- data.tar.gz: 51b0036bc1c27679532440e917b456c23d60b769aef2c84af47e78bc70277e56b5bfb9b86a7f80d56e16736a21585ec3fe060c6d281a57012539e04bcaf909e5
6
+ metadata.gz: 165317a25db6638f06115bd95eea06283aafff39b311043591c6377950623ba4dfcbdede757474064f624914fa9863fbb5e15a426476a01907fffe93b25f3c02
7
+ data.tar.gz: 831bd4a7b66b64aa7641bf4429dc0265f6d556c3cee28f09226f74430f89c51137fabb3e6adb040bddaf6a7b1b6017d2366f0a01c53bd56abc14a14b6a3a97ec
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.8.5.gem
20
+ gem install ./atrium-ruby-2.10.3.gem
21
21
  ```
22
22
 
23
23
  Finally add this to the Gemfile:
24
24
 
25
- gem 'atrium-ruby', '~> 2.8.5'
25
+ gem 'atrium-ruby', '~> 2.10.3'
26
26
 
27
27
  ### Install from Git
28
28
 
@@ -96,9 +96,13 @@ 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
102
+ *Atrium::MerchantsApi* | [**list_merchant_locations**](docs/MerchantsApi.md#list_merchant_locations) | **GET** /merchants/{merchant_guid}/merchant_locations | List merchant locations
103
+ *Atrium::MerchantsApi* | [**list_merchants**](docs/MerchantsApi.md#list_merchants) | **GET** /merchants | List merchants
101
104
  *Atrium::MerchantsApi* | [**read_merchant**](docs/MerchantsApi.md#read_merchant) | **GET** /merchants/{merchant_guid} | Read merchant
105
+ *Atrium::MerchantsApi* | [**read_merchant_location**](docs/MerchantsApi.md#read_merchant_location) | **GET** /merchants/{merchant_guid}/merchant_locations/{merchant_location_guid} | Read merchant location
102
106
  *Atrium::StatementsApi* | [**download_statement_pdf**](docs/StatementsApi.md#download_statement_pdf) | **GET** /users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf | Download statement PDF
103
107
  *Atrium::StatementsApi* | [**fetch_statements**](docs/StatementsApi.md#fetch_statements) | **POST** /users/{user_guid}/members/{member_guid}/fetch_statements | Fetch statements
104
108
  *Atrium::StatementsApi* | [**list_member_statements**](docs/StatementsApi.md#list_member_statements) | **GET** /users/{user_guid}/members/{member_guid}/statements | List member statements
@@ -154,7 +158,11 @@ Class | Method | HTTP request | Description
154
158
  - [Atrium::MemberUpdateRequestBody](docs/MemberUpdateRequestBody.md)
155
159
  - [Atrium::MembersResponseBody](docs/MembersResponseBody.md)
156
160
  - [Atrium::Merchant](docs/Merchant.md)
161
+ - [Atrium::MerchantLocation](docs/MerchantLocation.md)
162
+ - [Atrium::MerchantLocationResponseBody](docs/MerchantLocationResponseBody.md)
163
+ - [Atrium::MerchantLocationsResponseBody](docs/MerchantLocationsResponseBody.md)
157
164
  - [Atrium::MerchantResponseBody](docs/MerchantResponseBody.md)
165
+ - [Atrium::MerchantsResponseBody](docs/MerchantsResponseBody.md)
158
166
  - [Atrium::Pagination](docs/Pagination.md)
159
167
  - [Atrium::Statement](docs/Statement.md)
160
168
  - [Atrium::StatementResponseBody](docs/StatementResponseBody.md)
data/docs/Account.md CHANGED
@@ -18,6 +18,7 @@ Name | Type | Description | Notes
18
18
  **death_benefit** | **Float** | | [optional]
19
19
  **guid** | **String** | | [optional]
20
20
  **holdings_value** | **Float** | | [optional]
21
+ **insured_name** | **String** | | [optional]
21
22
  **institution_code** | **String** | | [optional]
22
23
  **interest_rate** | **Float** | | [optional]
23
24
  **is_closed** | **BOOLEAN** | | [optional]
@@ -31,6 +32,8 @@ Name | Type | Description | Notes
31
32
  **original_balance** | **Float** | | [optional]
32
33
  **payment_due_at** | **String** | | [optional]
33
34
  **payoff_balance** | **Float** | | [optional]
35
+ **pay_out_amount** | **Float** | | [optional]
36
+ **premium_amount** | **Float** | | [optional]
34
37
  **started_on** | **String** | | [optional]
35
38
  **subtype** | **String** | | [optional]
36
39
  **total_account_value** | **Float** | | [optional]
@@ -5,8 +5,10 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **account_guid** | **String** | | [optional]
7
7
  **account_number** | **String** | | [optional]
8
+ **institution_number** | **String** | | [optional]
8
9
  **member_guid** | **String** | | [optional]
9
10
  **routing_number** | **String** | | [optional]
11
+ **transit_number** | **String** | | [optional]
10
12
  **user_guid** | **String** | | [optional]
11
13
 
12
14
 
@@ -4,11 +4,15 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **is_mobile_webview** | **BOOLEAN** | | [optional]
7
+ **color_scheme** | **String** | | [optional]
7
8
  **current_institution_code** | **String** | | [optional]
8
9
  **current_member_guid** | **String** | | [optional]
9
10
  **disable_institution_search** | **BOOLEAN** | | [optional]
11
+ **include_transactions** | **BOOLEAN** | | [optional]
10
12
  **mode** | **String** | | [optional]
11
13
  **ui_message_version** | **Float** | | [optional]
14
+ **ui_message_webview_url_scheme** | **String** | | [optional]
12
15
  **update_credentials** | **BOOLEAN** | | [optional]
16
+ **wait_for_full_aggregation** | **BOOLEAN** | | [optional]
13
17
 
14
18
 
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]
@@ -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
 
@@ -0,0 +1,17 @@
1
+ # Atrium::MerchantLocation
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **city** | **String** | | [optional]
7
+ **guid** | **String** | | [optional]
8
+ **latitude** | **Float** | | [optional]
9
+ **longitude** | **Float** | | [optional]
10
+ **merchant_guid** | **String** | | [optional]
11
+ **phone_number** | **String** | | [optional]
12
+ **postal_code** | **String** | | [optional]
13
+ **state** | **String** | | [optional]
14
+ **store_number** | **String** | | [optional]
15
+ **street_address** | **String** | | [optional]
16
+
17
+
@@ -0,0 +1,8 @@
1
+ # Atrium::MerchantLocationResponseBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchant_location** | [**MerchantLocation**](MerchantLocation.md) | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Atrium::MerchantLocationsResponseBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchant_locations** | [**Array<MerchantLocation>**](MerchantLocation.md) | | [optional]
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+
9
+
data/docs/MerchantsApi.md CHANGED
@@ -2,11 +2,79 @@
2
2
 
3
3
  Method | HTTP request | Description
4
4
  ------------- | ------------- | -------------
5
+ [**list_merchant_locations**](MerchantsApi.md#list_merchant_locations) | **GET** /merchants/{merchant_guid}/merchant_locations | List merchant locations
6
+ [**list_merchants**](MerchantsApi.md#list_merchants) | **GET** /merchants | List merchants
5
7
  [**read_merchant**](MerchantsApi.md#read_merchant) | **GET** /merchants/{merchant_guid} | Read merchant
8
+ [**read_merchant_location**](MerchantsApi.md#read_merchant_location) | **GET** /merchants/{merchant_guid}/merchant_locations/{merchant_location_guid} | Read merchant location
6
9
 
7
10
 
11
+ # **list_merchant_locations**
12
+ > MerchantLocationsResponseBody list_merchant_locations(merchant_guid, )
13
+
14
+ List merchant locations
15
+
16
+ Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'atrium-ruby'
22
+
23
+ client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
24
+
25
+ merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
26
+
27
+ begin
28
+ #List merchant locations
29
+ response = client.merchants.list_merchant_locations(merchant_guid, )
30
+ p response
31
+ rescue Atrium::ApiError => e
32
+ puts "Exception when calling MerchantsApi->list_merchant_locations: #{e}"
33
+ end
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ Name | Type | Description | Notes
39
+ ------------- | ------------- | ------------- | -------------
40
+ **merchant_guid** | **String**| The unique identifier for a `merchant`. |
41
+
42
+ ### Return type
43
+
44
+ [**MerchantLocationsResponseBody**](MerchantLocationsResponseBody.md)
45
+
46
+ # **list_merchants**
47
+ > MerchantsResponseBody list_merchants
48
+
49
+ List merchants
50
+
51
+ Returns a list of merchnants.
52
+
53
+ ### Example
54
+ ```ruby
55
+ # load the gem
56
+ require 'atrium-ruby'
57
+
58
+ client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
59
+
60
+ begin
61
+ #List merchants
62
+ response = client.merchants.list_merchants
63
+ p response
64
+ rescue Atrium::ApiError => e
65
+ puts "Exception when calling MerchantsApi->list_merchants: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+ This endpoint does not need any parameter.
71
+
72
+ ### Return type
73
+
74
+ [**MerchantsResponseBody**](MerchantsResponseBody.md)
75
+
8
76
  # **read_merchant**
9
- > MerchantResponseBody read_merchant(merchant_guid)
77
+ > MerchantResponseBody read_merchant(merchant_guid, )
10
78
 
11
79
  Read merchant
12
80
 
@@ -23,7 +91,7 @@ merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
23
91
 
24
92
  begin
25
93
  #Read merchant
26
- response = client.merchants.read_merchant(merchant_guid)
94
+ response = client.merchants.read_merchant(merchant_guid, )
27
95
  p response
28
96
  rescue Atrium::ApiError => e
29
97
  puts "Exception when calling MerchantsApi->read_merchant: #{e}"
@@ -40,3 +108,40 @@ Name | Type | Description | Notes
40
108
 
41
109
  [**MerchantResponseBody**](MerchantResponseBody.md)
42
110
 
111
+ # **read_merchant_location**
112
+ > MerchantLocationResponseBody read_merchant_location(merchant_guid, merchant_location_guid)
113
+
114
+ Read merchant location
115
+
116
+ Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
117
+
118
+ ### Example
119
+ ```ruby
120
+ # load the gem
121
+ require 'atrium-ruby'
122
+
123
+ client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
124
+
125
+ merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
126
+ merchant_location_guid = "MCL-123" # String | The unique identifier for a `merchant_location`.
127
+
128
+ begin
129
+ #Read merchant location
130
+ response = client.merchants.read_merchant_location(merchant_guid, merchant_location_guid)
131
+ p response
132
+ rescue Atrium::ApiError => e
133
+ puts "Exception when calling MerchantsApi->read_merchant_location: #{e}"
134
+ end
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ Name | Type | Description | Notes
140
+ ------------- | ------------- | ------------- | -------------
141
+ **merchant_guid** | **String**| The unique identifier for a `merchant`. |
142
+ **merchant_location_guid** | **String**| The unique identifier for a `merchant_location`. |
143
+
144
+ ### Return type
145
+
146
+ [**MerchantLocationResponseBody**](MerchantLocationResponseBody.md)
147
+
@@ -0,0 +1,9 @@
1
+ # Atrium::MerchantsResponseBody
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchants** | [**Array<Merchant>**](Merchant.md) | | [optional]
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+
9
+
data/docs/Transaction.md CHANGED
@@ -21,6 +21,7 @@ Name | Type | Description | Notes
21
21
  **is_international** | **BOOLEAN** | | [optional]
22
22
  **is_overdraft_fee** | **BOOLEAN** | | [optional]
23
23
  **is_payroll_advance** | **BOOLEAN** | | [optional]
24
+ **is_subscription** | **BOOLEAN** | | [optional]
24
25
  **latitude** | **Float** | | [optional]
25
26
  **longitude** | **Float** | | [optional]
26
27
  **member_guid** | **String** | | [optional]
data/lib/atrium-ruby.rb CHANGED
@@ -49,7 +49,11 @@ require 'atrium-ruby/models/member_update_request'
49
49
  require 'atrium-ruby/models/member_update_request_body'
50
50
  require 'atrium-ruby/models/members_response_body'
51
51
  require 'atrium-ruby/models/merchant'
52
+ require 'atrium-ruby/models/merchant_location'
53
+ require 'atrium-ruby/models/merchant_location_response_body'
54
+ require 'atrium-ruby/models/merchant_locations_response_body'
52
55
  require 'atrium-ruby/models/merchant_response_body'
56
+ require 'atrium-ruby/models/merchants_response_body'
53
57
  require 'atrium-ruby/models/pagination'
54
58
  require 'atrium-ruby/models/statement'
55
59
  require 'atrium-ruby/models/statement_response_body'
@@ -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 &#x60;member&#x60;.