atrium-ruby 2.8.3 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/docs/AccountNumber.md +2 -0
- data/docs/ConnectWidgetRequestBody.md +3 -0
- data/docs/Member.md +1 -0
- data/docs/MemberCreateRequest.md +4 -1
- data/docs/MembersApi.md +44 -0
- data/docs/MerchantLocation.md +17 -0
- data/docs/MerchantLocationResponseBody.md +8 -0
- data/docs/MerchantLocationsResponseBody.md +9 -0
- data/docs/MerchantsApi.md +107 -2
- data/docs/MerchantsResponseBody.md +9 -0
- data/docs/TransactionCleanseAndCategorizeRequest.md +1 -0
- data/docs/TransactionCleanseAndCategorizeResponse.md +3 -0
- data/lib/atrium-ruby.rb +4 -0
- data/lib/atrium-ruby/api/members_api.rb +64 -0
- data/lib/atrium-ruby/api/merchants_api.rb +156 -0
- data/lib/atrium-ruby/models/account_number.rb +19 -1
- data/lib/atrium-ruby/models/connect_widget_request_body.rb +28 -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/models/merchant_location.rb +260 -0
- data/lib/atrium-ruby/models/merchant_location_response_body.rb +179 -0
- data/lib/atrium-ruby/models/merchant_locations_response_body.rb +190 -0
- data/lib/atrium-ruby/models/merchants_response_body.rb +190 -0
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_request.rb +10 -1
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_response.rb +31 -4
- data/lib/atrium-ruby/version.rb +1 -1
- data/spec/api/members_api_spec.rb +15 -0
- data/spec/api/merchants_api_spec.rb +36 -0
- data/spec/models/account_number_spec.rb +12 -0
- data/spec/models/connect_widget_request_body_spec.rb +18 -0
- data/spec/models/member_create_request_spec.rb +18 -0
- data/spec/models/member_spec.rb +6 -0
- data/spec/models/merchant_location_response_body_spec.rb +36 -0
- data/spec/models/merchant_location_spec.rb +90 -0
- data/spec/models/merchant_locations_response_body_spec.rb +42 -0
- data/spec/models/merchants_response_body_spec.rb +42 -0
- data/spec/models/transaction_cleanse_and_categorize_request_spec.rb +6 -0
- data/spec/models/transaction_cleanse_and_categorize_response_spec.rb +18 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba5d15a1cdcb5b07b2dd759b8c1c028fa205720762f9b3e6b96ecbc445ed25c
|
4
|
+
data.tar.gz: 2859ebc8949a5046d9522fcf6f0da9d1a8816947c3c5733d0546aa2af48e209f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 617fddab8bd2aeea1bd3719b7086b1f237af58eda0cc0fca621ef6bee3bfdece64dd460850570072d19a998d90e5bb31579be0431051668d5647e6ac945f189b
|
7
|
+
data.tar.gz: b5724c2bb83248cb6d9c00a8a991911eee4e82ea44da65071c1a1b30b380eef1f947458da1f063fdd9823750fb80bb2824a38a9ac6c41070c7cd5dc71de46418
|
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.1.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.1'
|
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/AccountNumber.md
CHANGED
@@ -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
|
|
@@ -6,7 +6,10 @@ Name | Type | Description | Notes
|
|
6
6
|
**is_mobile_webview** | **BOOLEAN** | | [optional]
|
7
7
|
**current_institution_code** | **String** | | [optional]
|
8
8
|
**current_member_guid** | **String** | | [optional]
|
9
|
+
**disable_institution_search** | **BOOLEAN** | | [optional]
|
10
|
+
**mode** | **String** | | [optional]
|
9
11
|
**ui_message_version** | **Float** | | [optional]
|
12
|
+
**ui_message_webview_url_scheme** | **String** | | [optional]
|
10
13
|
**update_credentials** | **BOOLEAN** | | [optional]
|
11
14
|
|
12
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
|
|
@@ -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,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
|
+
|
@@ -16,5 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
**is_international** | **BOOLEAN** | | [optional]
|
17
17
|
**is_overdraft_fee** | **BOOLEAN** | | [optional]
|
18
18
|
**is_payroll_advance** | **BOOLEAN** | | [optional]
|
19
|
+
**merchant_category_code** | **Float** | | [optional]
|
20
|
+
**merchant_guid** | **String** | | [optional]
|
21
|
+
**original_description** | **String** | | [optional]
|
19
22
|
|
20
23
|
|
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 `member`.
|