atrium-ruby 1.3.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +5 -2
- data/README.md +132 -66
- data/Rakefile +7 -4
- data/atrium-ruby.gemspec +40 -32
- data/docs/Account.md +35 -0
- data/docs/AccountNumber.md +12 -0
- data/docs/AccountNumbersResponseBody.md +8 -0
- data/docs/AccountOwner.md +18 -0
- data/docs/AccountOwnersResponseBody.md +8 -0
- data/docs/AccountResponseBody.md +8 -0
- data/docs/AccountsApi.md +174 -0
- data/docs/AccountsResponseBody.md +9 -0
- data/docs/Challenge.md +13 -0
- data/docs/ChallengeOption.md +10 -0
- data/docs/ChallengesResponseBody.md +8 -0
- data/docs/ConnectWidget.md +9 -0
- data/docs/ConnectWidgetApi.md +44 -0
- data/docs/ConnectWidgetRequestBody.md +11 -0
- data/docs/ConnectWidgetResponseBody.md +8 -0
- data/docs/CredentialOption.md +9 -0
- data/docs/CredentialRequest.md +9 -0
- data/docs/CredentialResponse.md +12 -0
- data/docs/CredentialsResponseBody.md +8 -0
- data/docs/IdentityApi.md +82 -0
- data/docs/Institution.md +14 -0
- data/docs/InstitutionResponseBody.md +8 -0
- data/docs/InstitutionsApi.md +120 -0
- data/docs/InstitutionsResponseBody.md +9 -0
- data/docs/Member.md +18 -0
- data/docs/MemberConnectionStatus.md +16 -0
- data/docs/MemberConnectionStatusResponseBody.md +8 -0
- data/docs/MemberCreateRequest.md +11 -0
- data/docs/MemberCreateRequestBody.md +8 -0
- data/docs/MemberResponseBody.md +8 -0
- data/docs/MemberResumeRequest.md +8 -0
- data/docs/MemberResumeRequestBody.md +8 -0
- data/docs/MemberUpdateRequest.md +10 -0
- data/docs/MemberUpdateRequestBody.md +8 -0
- data/docs/MembersApi.md +487 -0
- data/docs/MembersResponseBody.md +9 -0
- data/docs/Pagination.md +11 -0
- data/docs/Transaction.md +38 -0
- data/docs/TransactionCleanseAndCategorizeRequest.md +11 -0
- data/docs/TransactionCleanseAndCategorizeResponse.md +20 -0
- data/docs/TransactionResponseBody.md +8 -0
- data/docs/TransactionsApi.md +126 -0
- data/docs/TransactionsCleanseAndCategorizeRequestBody.md +8 -0
- data/docs/TransactionsCleanseAndCategorizeResponseBody.md +8 -0
- data/docs/TransactionsResponseBody.md +9 -0
- data/docs/User.md +11 -0
- data/docs/UserCreateRequestBody.md +8 -0
- data/docs/UserResponseBody.md +8 -0
- data/docs/UserUpdateRequestBody.md +8 -0
- data/docs/UsersApi.md +193 -0
- data/docs/UsersResponseBody.md +9 -0
- data/docs/VerificationApi.md +120 -0
- data/git_push.sh +49 -0
- data/lib/atrium-ruby.rb +88 -0
- data/lib/atrium-ruby/api/accounts_api.rb +272 -0
- data/lib/atrium-ruby/api/atrium_client.rb +28 -0
- data/lib/atrium-ruby/api/connect_widget_api.rb +82 -0
- data/lib/atrium-ruby/api/identity_api.rb +140 -0
- data/lib/atrium-ruby/api/institutions_api.rb +181 -0
- data/lib/atrium-ruby/api/members_api.rb +749 -0
- data/lib/atrium-ruby/api/transactions_api.rb +198 -0
- data/lib/atrium-ruby/api/users_api.rb +287 -0
- data/lib/atrium-ruby/api/verification_api.rb +198 -0
- data/lib/atrium-ruby/api_client.rb +384 -0
- data/lib/atrium-ruby/api_error.rb +34 -0
- data/lib/atrium-ruby/configuration.rb +212 -0
- data/lib/atrium-ruby/models/account.rb +422 -0
- data/lib/atrium-ruby/models/account_number.rb +215 -0
- data/lib/atrium-ruby/models/account_numbers_response_body.rb +181 -0
- data/lib/atrium-ruby/models/account_owner.rb +269 -0
- data/lib/atrium-ruby/models/account_owners_response_body.rb +181 -0
- data/lib/atrium-ruby/models/account_response_body.rb +179 -0
- data/lib/atrium-ruby/models/accounts_response_body.rb +190 -0
- data/lib/atrium-ruby/models/challenge.rb +226 -0
- data/lib/atrium-ruby/models/challenge_option.rb +197 -0
- data/lib/atrium-ruby/models/challenges_response_body.rb +181 -0
- data/lib/atrium-ruby/models/connect_widget.rb +188 -0
- data/lib/atrium-ruby/models/connect_widget_request_body.rb +206 -0
- data/lib/atrium-ruby/models/connect_widget_response_body.rb +179 -0
- data/lib/atrium-ruby/models/credential_option.rb +188 -0
- data/lib/atrium-ruby/models/credential_request.rb +188 -0
- data/lib/atrium-ruby/models/credential_response.rb +217 -0
- data/lib/atrium-ruby/models/credentials_response_body.rb +181 -0
- data/lib/atrium-ruby/models/institution.rb +233 -0
- data/lib/atrium-ruby/models/institution_response_body.rb +179 -0
- data/lib/atrium-ruby/models/institutions_response_body.rb +190 -0
- data/lib/atrium-ruby/models/member.rb +269 -0
- data/lib/atrium-ruby/models/member_connection_status.rb +253 -0
- data/lib/atrium-ruby/models/member_connection_status_response_body.rb +179 -0
- data/lib/atrium-ruby/models/member_create_request.rb +218 -0
- data/lib/atrium-ruby/models/member_create_request_body.rb +179 -0
- data/lib/atrium-ruby/models/member_response_body.rb +179 -0
- data/lib/atrium-ruby/models/member_resume_request.rb +181 -0
- data/lib/atrium-ruby/models/member_resume_request_body.rb +179 -0
- data/lib/atrium-ruby/models/member_update_request.rb +199 -0
- data/lib/atrium-ruby/models/member_update_request_body.rb +179 -0
- data/lib/atrium-ruby/models/members_response_body.rb +190 -0
- data/lib/atrium-ruby/models/pagination.rb +206 -0
- data/lib/atrium-ruby/models/transaction.rb +449 -0
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_request.rb +206 -0
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_response.rb +287 -0
- data/lib/atrium-ruby/models/transaction_response_body.rb +179 -0
- data/lib/atrium-ruby/models/transactions_cleanse_and_categorize_request_body.rb +181 -0
- data/lib/atrium-ruby/models/transactions_cleanse_and_categorize_response_body.rb +181 -0
- data/lib/atrium-ruby/models/transactions_response_body.rb +190 -0
- data/lib/atrium-ruby/models/user.rb +206 -0
- data/lib/atrium-ruby/models/user_create_request_body.rb +179 -0
- data/lib/atrium-ruby/models/user_response_body.rb +179 -0
- data/lib/atrium-ruby/models/user_update_request_body.rb +179 -0
- data/lib/atrium-ruby/models/users_response_body.rb +190 -0
- data/lib/atrium-ruby/version.rb +11 -0
- data/spec/api/accounts_api_spec.rb +88 -0
- data/spec/api/connect_widget_api_spec.rb +43 -0
- data/spec/api/identity_api_spec.rb +56 -0
- data/spec/api/institutions_api_spec.rb +68 -0
- data/spec/api/members_api_spec.rb +195 -0
- data/spec/api/transactions_api_spec.rb +71 -0
- data/spec/api/users_api_spec.rb +92 -0
- data/spec/api/verification_api_spec.rb +69 -0
- data/spec/api_client_spec.rb +222 -0
- data/spec/configuration_spec.rb +38 -0
- data/spec/models/account_number_spec.rb +60 -0
- data/spec/models/account_numbers_response_body_spec.rb +36 -0
- data/spec/models/account_owner_spec.rb +96 -0
- data/spec/models/account_owners_response_body_spec.rb +36 -0
- data/spec/models/account_response_body_spec.rb +36 -0
- data/spec/models/account_spec.rb +198 -0
- data/spec/models/accounts_response_body_spec.rb +42 -0
- data/spec/models/challenge_option_spec.rb +48 -0
- data/spec/models/challenge_spec.rb +66 -0
- data/spec/models/challenges_response_body_spec.rb +36 -0
- data/spec/models/connect_widget_request_body_spec.rb +54 -0
- data/spec/models/connect_widget_response_body_spec.rb +36 -0
- data/spec/models/connect_widget_spec.rb +42 -0
- data/spec/models/credential_option_spec.rb +42 -0
- data/spec/models/credential_request_spec.rb +42 -0
- data/spec/models/credential_response_spec.rb +60 -0
- data/spec/models/credentials_response_body_spec.rb +36 -0
- data/spec/models/institution_response_body_spec.rb +36 -0
- data/spec/models/institution_spec.rb +72 -0
- data/spec/models/institutions_response_body_spec.rb +42 -0
- data/spec/models/member_connection_status_response_body_spec.rb +36 -0
- data/spec/models/member_connection_status_spec.rb +84 -0
- data/spec/models/member_create_request_body_spec.rb +36 -0
- data/spec/models/member_create_request_spec.rb +54 -0
- data/spec/models/member_response_body_spec.rb +36 -0
- data/spec/models/member_resume_request_body_spec.rb +36 -0
- data/spec/models/member_resume_request_spec.rb +36 -0
- data/spec/models/member_spec.rb +96 -0
- data/spec/models/member_update_request_body_spec.rb +36 -0
- data/spec/models/member_update_request_spec.rb +48 -0
- data/spec/models/members_response_body_spec.rb +42 -0
- data/spec/models/pagination_spec.rb +54 -0
- data/spec/models/transaction_cleanse_and_categorize_request_spec.rb +54 -0
- data/spec/models/transaction_cleanse_and_categorize_response_spec.rb +108 -0
- data/spec/models/transaction_response_body_spec.rb +36 -0
- data/spec/models/transaction_spec.rb +216 -0
- data/spec/models/transactions_cleanse_and_categorize_request_body_spec.rb +36 -0
- data/spec/models/transactions_cleanse_and_categorize_response_body_spec.rb +36 -0
- data/spec/models/transactions_response_body_spec.rb +42 -0
- data/spec/models/user_create_request_body_spec.rb +36 -0
- data/spec/models/user_response_body_spec.rb +36 -0
- data/spec/models/user_spec.rb +54 -0
- data/spec/models/user_update_request_body_spec.rb +36 -0
- data/spec/models/users_response_body_spec.rb +42 -0
- data/spec/spec_helper.rb +107 -0
- metadata +323 -91
- data/.gitignore +0 -10
- data/.rubocop.yml +0 -12
- data/.travis.yml +0 -12
- data/bin/console +0 -14
- data/bin/demo +0 -49
- data/bin/setup +0 -8
- data/examples/accounts_and_transactions.rb +0 -49
- data/examples/all_endpoints.rb +0 -226
- data/examples/example_workflow.rb +0 -176
- data/examples/multi_factor_authentication.rb +0 -57
- data/examples/update_credentials.rb +0 -58
- data/examples/user_and_member_creation.rb +0 -53
- data/lib/atrium.rb +0 -40
- data/lib/atrium/account.rb +0 -100
- data/lib/atrium/account_number.rb +0 -13
- data/lib/atrium/account_owner.rb +0 -19
- data/lib/atrium/challenge.rb +0 -13
- data/lib/atrium/client.rb +0 -51
- data/lib/atrium/connect.rb +0 -34
- data/lib/atrium/credential.rb +0 -11
- data/lib/atrium/error.rb +0 -4
- data/lib/atrium/institution.rb +0 -38
- data/lib/atrium/member.rb +0 -264
- data/lib/atrium/pageable.rb +0 -74
- data/lib/atrium/paginate.rb +0 -92
- data/lib/atrium/ruby.rb +0 -3
- data/lib/atrium/transaction.rb +0 -74
- data/lib/atrium/user.rb +0 -150
- data/lib/atrium/version.rb +0 -3
@@ -0,0 +1,11 @@
|
|
1
|
+
# Atrium::MemberCreateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**credentials** | [**Array<CredentialRequest>**](CredentialRequest.md) | |
|
7
|
+
**identifier** | **String** | | [optional]
|
8
|
+
**institution_code** | **String** | |
|
9
|
+
**metadata** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Atrium::MemberUpdateRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**credentials** | [**Array<CredentialRequest>**](CredentialRequest.md) | | [optional]
|
7
|
+
**identifier** | **String** | | [optional]
|
8
|
+
**metadata** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/MembersApi.md
ADDED
@@ -0,0 +1,487 @@
|
|
1
|
+
# Atrium::MembersApi
|
2
|
+
|
3
|
+
Method | HTTP request | Description
|
4
|
+
------------- | ------------- | -------------
|
5
|
+
[**aggregate_member**](MembersApi.md#aggregate_member) | **POST** /users/{user_guid}/members/{member_guid}/aggregate | Aggregate member
|
6
|
+
[**create_member**](MembersApi.md#create_member) | **POST** /users/{user_guid}/members | Create member
|
7
|
+
[**delete_member**](MembersApi.md#delete_member) | **DELETE** /users/{user_guid}/members/{member_guid} | Delete member
|
8
|
+
[**list_member_accounts**](MembersApi.md#list_member_accounts) | **GET** /users/{user_guid}/members/{member_guid}/accounts | List member accounts
|
9
|
+
[**list_member_credentials**](MembersApi.md#list_member_credentials) | **GET** /users/{user_guid}/members/{member_guid}/credentials | List member credentials
|
10
|
+
[**list_member_mfa_challenges**](MembersApi.md#list_member_mfa_challenges) | **GET** /users/{user_guid}/members/{member_guid}/challenges | List member MFA challenges
|
11
|
+
[**list_member_transactions**](MembersApi.md#list_member_transactions) | **GET** /users/{user_guid}/members/{member_guid}/transactions | List member transactions
|
12
|
+
[**list_members**](MembersApi.md#list_members) | **GET** /users/{user_guid}/members | List members
|
13
|
+
[**read_member**](MembersApi.md#read_member) | **GET** /users/{user_guid}/members/{member_guid} | Read member
|
14
|
+
[**read_member_status**](MembersApi.md#read_member_status) | **GET** /users/{user_guid}/members/{member_guid}/status | Read member connection status
|
15
|
+
[**resume_member**](MembersApi.md#resume_member) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation from MFA
|
16
|
+
[**update_member**](MembersApi.md#update_member) | **PUT** /users/{user_guid}/members/{member_guid} | Update member
|
17
|
+
|
18
|
+
|
19
|
+
# **aggregate_member**
|
20
|
+
> MemberResponseBody aggregate_member(member_guid, user_guid)
|
21
|
+
|
22
|
+
Aggregate member
|
23
|
+
|
24
|
+
Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'atrium-ruby'
|
30
|
+
|
31
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
32
|
+
|
33
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
34
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Aggregate member
|
38
|
+
response = client.members.aggregate_member(member_guid, user_guid)
|
39
|
+
p response
|
40
|
+
rescue Atrium::ApiError => e
|
41
|
+
puts "Exception when calling MembersApi->aggregate_member: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
50
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
55
|
+
|
56
|
+
# **create_member**
|
57
|
+
> MemberResponseBody create_member(user_guidbody)
|
58
|
+
|
59
|
+
Create member
|
60
|
+
|
61
|
+
This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters identifier and metadata.<br> When creating a member, you'll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the /institutions/{institution_code}/credentials endpoint.<br> If successful, Atrium will respond with the newly-created member object.<br> Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
|
62
|
+
|
63
|
+
### Example
|
64
|
+
```ruby
|
65
|
+
# load the gem
|
66
|
+
require 'atrium-ruby'
|
67
|
+
|
68
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
69
|
+
|
70
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
71
|
+
body = Atrium::MemberCreateRequestBody.new # MemberCreateRequestBody | Member object to be created with optional parameters (identifier and metadata) and required parameters (credentials and institution_code)
|
72
|
+
|
73
|
+
begin
|
74
|
+
#Create member
|
75
|
+
response = client.members.create_member(user_guidbody)
|
76
|
+
p response
|
77
|
+
rescue Atrium::ApiError => e
|
78
|
+
puts "Exception when calling MembersApi->create_member: #{e}"
|
79
|
+
end
|
80
|
+
```
|
81
|
+
|
82
|
+
### Parameters
|
83
|
+
|
84
|
+
Name | Type | Description | Notes
|
85
|
+
------------- | ------------- | ------------- | -------------
|
86
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
87
|
+
**body** | [**MemberCreateRequestBody**](MemberCreateRequestBody.md)| Member object to be created with optional parameters (identifier and metadata) and required parameters (credentials and institution_code) |
|
88
|
+
|
89
|
+
### Return type
|
90
|
+
|
91
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
92
|
+
|
93
|
+
# **delete_member**
|
94
|
+
> delete_member(member_guid, user_guid)
|
95
|
+
|
96
|
+
Delete member
|
97
|
+
|
98
|
+
Accessing this endpoint will permanently delete a member.
|
99
|
+
|
100
|
+
### Example
|
101
|
+
```ruby
|
102
|
+
# load the gem
|
103
|
+
require 'atrium-ruby'
|
104
|
+
|
105
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
106
|
+
|
107
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
108
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
109
|
+
|
110
|
+
begin
|
111
|
+
#Delete member
|
112
|
+
client.members.delete_member(member_guid, user_guid)
|
113
|
+
rescue Atrium::ApiError => e
|
114
|
+
puts "Exception when calling MembersApi->delete_member: #{e}"
|
115
|
+
end
|
116
|
+
```
|
117
|
+
|
118
|
+
### Parameters
|
119
|
+
|
120
|
+
Name | Type | Description | Notes
|
121
|
+
------------- | ------------- | ------------- | -------------
|
122
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
123
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
124
|
+
|
125
|
+
### Return type
|
126
|
+
|
127
|
+
nil (empty response body)
|
128
|
+
|
129
|
+
# **list_member_accounts**
|
130
|
+
> AccountsResponseBody list_member_accounts(member_guid, user_guid, opts)
|
131
|
+
|
132
|
+
List member accounts
|
133
|
+
|
134
|
+
This endpoint returns an array with information about every account associated with a particular member.
|
135
|
+
|
136
|
+
### Example
|
137
|
+
```ruby
|
138
|
+
# load the gem
|
139
|
+
require 'atrium-ruby'
|
140
|
+
|
141
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
142
|
+
|
143
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
144
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
145
|
+
opts = {
|
146
|
+
page: 1, # Integer | Specify current page.
|
147
|
+
records_per_page: 12, # Integer | Specify records per page.
|
148
|
+
}
|
149
|
+
|
150
|
+
begin
|
151
|
+
#List member accounts
|
152
|
+
response = client.members.list_member_accounts(member_guid, user_guid, opts)
|
153
|
+
p response
|
154
|
+
rescue Atrium::ApiError => e
|
155
|
+
puts "Exception when calling MembersApi->list_member_accounts: #{e}"
|
156
|
+
end
|
157
|
+
```
|
158
|
+
|
159
|
+
### Parameters
|
160
|
+
|
161
|
+
Name | Type | Description | Notes
|
162
|
+
------------- | ------------- | ------------- | -------------
|
163
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
164
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
165
|
+
**page** | **Integer**| Specify current page. | [optional]
|
166
|
+
**records_per_page** | **Integer**| Specify records per page. | [optional]
|
167
|
+
|
168
|
+
### Return type
|
169
|
+
|
170
|
+
[**AccountsResponseBody**](AccountsResponseBody.md)
|
171
|
+
|
172
|
+
# **list_member_credentials**
|
173
|
+
> CredentialsResponseBody list_member_credentials(member_guid, user_guid)
|
174
|
+
|
175
|
+
List member credentials
|
176
|
+
|
177
|
+
This endpoint returns an array which contains information on every non-MFA credential associated with a specific member.
|
178
|
+
|
179
|
+
### Example
|
180
|
+
```ruby
|
181
|
+
# load the gem
|
182
|
+
require 'atrium-ruby'
|
183
|
+
|
184
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
185
|
+
|
186
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
187
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
188
|
+
|
189
|
+
begin
|
190
|
+
#List member credentials
|
191
|
+
response = client.members.list_member_credentials(member_guid, user_guid)
|
192
|
+
p response
|
193
|
+
rescue Atrium::ApiError => e
|
194
|
+
puts "Exception when calling MembersApi->list_member_credentials: #{e}"
|
195
|
+
end
|
196
|
+
```
|
197
|
+
|
198
|
+
### Parameters
|
199
|
+
|
200
|
+
Name | Type | Description | Notes
|
201
|
+
------------- | ------------- | ------------- | -------------
|
202
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
203
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
204
|
+
|
205
|
+
### Return type
|
206
|
+
|
207
|
+
[**CredentialsResponseBody**](CredentialsResponseBody.md)
|
208
|
+
|
209
|
+
# **list_member_mfa_challenges**
|
210
|
+
> ChallengesResponseBody list_member_mfa_challenges(member_guid, user_guid)
|
211
|
+
|
212
|
+
List member MFA challenges
|
213
|
+
|
214
|
+
Use this endpoint for information on what multi-factor authentication challenges need to be answered in order to aggregate a member.<br> If the aggregation is not challenged, i.e., the member does not have a connection status of CHALLENGED, then code 204 No Content will be returned.<br> If the aggregation has been challenged, i.e., the member does have a connection status of CHALLENGED, then code 200 OK will be returned — along with the corresponding credentials.
|
215
|
+
|
216
|
+
### Example
|
217
|
+
```ruby
|
218
|
+
# load the gem
|
219
|
+
require 'atrium-ruby'
|
220
|
+
|
221
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
222
|
+
|
223
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
224
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
225
|
+
|
226
|
+
begin
|
227
|
+
#List member MFA challenges
|
228
|
+
response = client.members.list_member_mfa_challenges(member_guid, user_guid)
|
229
|
+
p response
|
230
|
+
rescue Atrium::ApiError => e
|
231
|
+
puts "Exception when calling MembersApi->list_member_mfa_challenges: #{e}"
|
232
|
+
end
|
233
|
+
```
|
234
|
+
|
235
|
+
### Parameters
|
236
|
+
|
237
|
+
Name | Type | Description | Notes
|
238
|
+
------------- | ------------- | ------------- | -------------
|
239
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
240
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
241
|
+
|
242
|
+
### Return type
|
243
|
+
|
244
|
+
[**ChallengesResponseBody**](ChallengesResponseBody.md)
|
245
|
+
|
246
|
+
# **list_member_transactions**
|
247
|
+
> TransactionsResponseBody list_member_transactions(member_guid, user_guid, opts)
|
248
|
+
|
249
|
+
List member transactions
|
250
|
+
|
251
|
+
Use this endpoint to get all transactions from all accounts associated with a specific member.<br> This endpoint accepts optional URL query parameters — from_date and to_date — which are used to filter transactions according to the date they were posted. If no values are given for the query parameters, from_date will default to 90 days prior to the request and to_date will default to 5 days from the time of the request.
|
252
|
+
|
253
|
+
### Example
|
254
|
+
```ruby
|
255
|
+
# load the gem
|
256
|
+
require 'atrium-ruby'
|
257
|
+
|
258
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
259
|
+
|
260
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
261
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
262
|
+
opts = {
|
263
|
+
from_date: "2016-09-20", # String | Filter transactions from this date.
|
264
|
+
to_date: "2016-10-20" # String | Filter transactions to this date.
|
265
|
+
page: 1, # Integer | Specify current page.
|
266
|
+
records_per_page: 12, # Integer | Specify records per page.
|
267
|
+
}
|
268
|
+
|
269
|
+
begin
|
270
|
+
#List member transactions
|
271
|
+
response = client.members.list_member_transactions(member_guid, user_guid, opts)
|
272
|
+
p response
|
273
|
+
rescue Atrium::ApiError => e
|
274
|
+
puts "Exception when calling MembersApi->list_member_transactions: #{e}"
|
275
|
+
end
|
276
|
+
```
|
277
|
+
|
278
|
+
### Parameters
|
279
|
+
|
280
|
+
Name | Type | Description | Notes
|
281
|
+
------------- | ------------- | ------------- | -------------
|
282
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
283
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
284
|
+
**from_date** | **String**| Filter transactions from this date. | [optional]
|
285
|
+
**to_date** | **String**| Filter transactions to this date. | [optional]
|
286
|
+
**page** | **Integer**| Specify current page. | [optional]
|
287
|
+
**records_per_page** | **Integer**| Specify records per page. | [optional]
|
288
|
+
|
289
|
+
### Return type
|
290
|
+
|
291
|
+
[**TransactionsResponseBody**](TransactionsResponseBody.md)
|
292
|
+
|
293
|
+
# **list_members**
|
294
|
+
> MembersResponseBody list_members(user_guid, opts)
|
295
|
+
|
296
|
+
List members
|
297
|
+
|
298
|
+
This endpoint returns an array which contains information on every member associated with a specific user.
|
299
|
+
|
300
|
+
### Example
|
301
|
+
```ruby
|
302
|
+
# load the gem
|
303
|
+
require 'atrium-ruby'
|
304
|
+
|
305
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
306
|
+
|
307
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
308
|
+
opts = {
|
309
|
+
page: 1, # Integer | Specify current page.
|
310
|
+
records_per_page: 12, # Integer | Specify records per page.
|
311
|
+
}
|
312
|
+
|
313
|
+
begin
|
314
|
+
#List members
|
315
|
+
response = client.members.list_members(user_guid, opts)
|
316
|
+
p response
|
317
|
+
rescue Atrium::ApiError => e
|
318
|
+
puts "Exception when calling MembersApi->list_members: #{e}"
|
319
|
+
end
|
320
|
+
```
|
321
|
+
|
322
|
+
### Parameters
|
323
|
+
|
324
|
+
Name | Type | Description | Notes
|
325
|
+
------------- | ------------- | ------------- | -------------
|
326
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
327
|
+
**page** | **Integer**| Specify current page. | [optional]
|
328
|
+
**records_per_page** | **Integer**| Specify records per page. | [optional]
|
329
|
+
|
330
|
+
### Return type
|
331
|
+
|
332
|
+
[**MembersResponseBody**](MembersResponseBody.md)
|
333
|
+
|
334
|
+
# **read_member**
|
335
|
+
> MemberResponseBody read_member(member_guid, user_guid)
|
336
|
+
|
337
|
+
Read member
|
338
|
+
|
339
|
+
Use this endpoint to read the attributes of a specific member.
|
340
|
+
|
341
|
+
### Example
|
342
|
+
```ruby
|
343
|
+
# load the gem
|
344
|
+
require 'atrium-ruby'
|
345
|
+
|
346
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
347
|
+
|
348
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
349
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
350
|
+
|
351
|
+
begin
|
352
|
+
#Read member
|
353
|
+
response = client.members.read_member(member_guid, user_guid)
|
354
|
+
p response
|
355
|
+
rescue Atrium::ApiError => e
|
356
|
+
puts "Exception when calling MembersApi->read_member: #{e}"
|
357
|
+
end
|
358
|
+
```
|
359
|
+
|
360
|
+
### Parameters
|
361
|
+
|
362
|
+
Name | Type | Description | Notes
|
363
|
+
------------- | ------------- | ------------- | -------------
|
364
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
365
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
366
|
+
|
367
|
+
### Return type
|
368
|
+
|
369
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
370
|
+
|
371
|
+
# **read_member_status**
|
372
|
+
> MemberConnectionStatusResponseBody read_member_status(member_guid, user_guid)
|
373
|
+
|
374
|
+
Read member connection status
|
375
|
+
|
376
|
+
This endpoint provides the status of the member's most recent aggregation event. This is an important step in the aggregation process, and the results returned by this endpoint should determine what you do next in order to successfully aggregate a member.<br> MX has introduced new, more detailed information on the current status of a member's connection to a financial institution and the state of its aggregation: the connection_status field. These are intended to replace and expand upon the information provided in the status field, which will soon be deprecated; support for the status field remains for the time being.
|
377
|
+
|
378
|
+
### Example
|
379
|
+
```ruby
|
380
|
+
# load the gem
|
381
|
+
require 'atrium-ruby'
|
382
|
+
|
383
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
384
|
+
|
385
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
386
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
387
|
+
|
388
|
+
begin
|
389
|
+
#Read member connection status
|
390
|
+
response = client.members.read_member_status(member_guid, user_guid)
|
391
|
+
p response
|
392
|
+
rescue Atrium::ApiError => e
|
393
|
+
puts "Exception when calling MembersApi->read_member_status: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
Name | Type | Description | Notes
|
400
|
+
------------- | ------------- | ------------- | -------------
|
401
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
402
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
403
|
+
|
404
|
+
### Return type
|
405
|
+
|
406
|
+
[**MemberConnectionStatusResponseBody**](MemberConnectionStatusResponseBody.md)
|
407
|
+
|
408
|
+
# **resume_member**
|
409
|
+
> MemberResponseBody resume_member(member_guid, user_guidbody)
|
410
|
+
|
411
|
+
Resume aggregation from MFA
|
412
|
+
|
413
|
+
This endpoint answers the challenges needed when a member has been challenged by multi-factor authentication.
|
414
|
+
|
415
|
+
### Example
|
416
|
+
```ruby
|
417
|
+
# load the gem
|
418
|
+
require 'atrium-ruby'
|
419
|
+
|
420
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
421
|
+
|
422
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
423
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
424
|
+
body = Atrium::MemberResumeRequestBody.new # MemberResumeRequestBody | Member object with MFA challenge answers
|
425
|
+
|
426
|
+
begin
|
427
|
+
#Resume aggregation from MFA
|
428
|
+
response = client.members.resume_member(member_guid, user_guidbody)
|
429
|
+
p response
|
430
|
+
rescue Atrium::ApiError => e
|
431
|
+
puts "Exception when calling MembersApi->resume_member: #{e}"
|
432
|
+
end
|
433
|
+
```
|
434
|
+
|
435
|
+
### Parameters
|
436
|
+
|
437
|
+
Name | Type | Description | Notes
|
438
|
+
------------- | ------------- | ------------- | -------------
|
439
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
440
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
441
|
+
**body** | [**MemberResumeRequestBody**](MemberResumeRequestBody.md)| Member object with MFA challenge answers |
|
442
|
+
|
443
|
+
### Return type
|
444
|
+
|
445
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
446
|
+
|
447
|
+
# **update_member**
|
448
|
+
> MemberResponseBody update_member(member_guid, user_guid, opts)
|
449
|
+
|
450
|
+
Update member
|
451
|
+
|
452
|
+
Use this endpoint to update a member's attributes. Only the credentials, identifier, and metadata parameters can be updated. To get a list of the required credentials for the member, use the list member credentials endpoint.
|
453
|
+
|
454
|
+
### Example
|
455
|
+
```ruby
|
456
|
+
# load the gem
|
457
|
+
require 'atrium-ruby'
|
458
|
+
|
459
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
460
|
+
|
461
|
+
member_guid = "MBR-123" # String | The unique identifier for a `member`.
|
462
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
463
|
+
opts = {
|
464
|
+
body: Atrium::MemberUpdateRequestBody.new # MemberUpdateRequestBody | Member object to be updated with optional parameters (credentials, identifier, metadata)
|
465
|
+
}
|
466
|
+
|
467
|
+
begin
|
468
|
+
#Update member
|
469
|
+
response = client.members.update_member(member_guid, user_guid, opts)
|
470
|
+
p response
|
471
|
+
rescue Atrium::ApiError => e
|
472
|
+
puts "Exception when calling MembersApi->update_member: #{e}"
|
473
|
+
end
|
474
|
+
```
|
475
|
+
|
476
|
+
### Parameters
|
477
|
+
|
478
|
+
Name | Type | Description | Notes
|
479
|
+
------------- | ------------- | ------------- | -------------
|
480
|
+
**member_guid** | **String**| The unique identifier for a `member`. |
|
481
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
482
|
+
**body** | [**MemberUpdateRequestBody**](MemberUpdateRequestBody.md)| Member object to be updated with optional parameters (credentials, identifier, metadata) | [optional]
|
483
|
+
|
484
|
+
### Return type
|
485
|
+
|
486
|
+
[**MemberResponseBody**](MemberResponseBody.md)
|
487
|
+
|