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,9 @@
|
|
1
|
+
# Atrium::MembersResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**members** | [**Array<Member>**](Member.md) | | [optional]
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Pagination.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Atrium::Pagination
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**current_page** | **Integer** | | [optional]
|
7
|
+
**per_page** | **Integer** | | [optional]
|
8
|
+
**total_entries** | **Integer** | | [optional]
|
9
|
+
**total_pages** | **Integer** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/Transaction.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Atrium::Transaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**account_guid** | **String** | | [optional]
|
7
|
+
**amount** | **Float** | | [optional]
|
8
|
+
**category** | **String** | | [optional]
|
9
|
+
**check_number** | **Integer** | | [optional]
|
10
|
+
**check_number_string** | **String** | | [optional]
|
11
|
+
**created_at** | **String** | | [optional]
|
12
|
+
**currency_code** | **String** | | [optional]
|
13
|
+
**date** | **String** | | [optional]
|
14
|
+
**description** | **String** | | [optional]
|
15
|
+
**guid** | **String** | | [optional]
|
16
|
+
**is_bill_pay** | **BOOLEAN** | | [optional]
|
17
|
+
**is_direct_deposit** | **BOOLEAN** | | [optional]
|
18
|
+
**is_expense** | **BOOLEAN** | | [optional]
|
19
|
+
**is_fee** | **BOOLEAN** | | [optional]
|
20
|
+
**is_income** | **BOOLEAN** | | [optional]
|
21
|
+
**is_international** | **BOOLEAN** | | [optional]
|
22
|
+
**is_overdraft_fee** | **BOOLEAN** | | [optional]
|
23
|
+
**is_payroll_advance** | **BOOLEAN** | | [optional]
|
24
|
+
**latitude** | **Float** | | [optional]
|
25
|
+
**longitude** | **Float** | | [optional]
|
26
|
+
**member_guid** | **String** | | [optional]
|
27
|
+
**memo** | **String** | | [optional]
|
28
|
+
**merchant_category_code** | **Integer** | | [optional]
|
29
|
+
**original_description** | **String** | | [optional]
|
30
|
+
**posted_at** | **String** | | [optional]
|
31
|
+
**status** | **String** | | [optional]
|
32
|
+
**top_level_category** | **String** | | [optional]
|
33
|
+
**transacted_at** | **String** | | [optional]
|
34
|
+
**type** | **String** | | [optional]
|
35
|
+
**updated_at** | **String** | | [optional]
|
36
|
+
**user_guid** | **String** | | [optional]
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Atrium::TransactionCleanseAndCategorizeRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **Float** | | [optional]
|
7
|
+
**description** | **String** | | [optional]
|
8
|
+
**identifier** | **String** | | [optional]
|
9
|
+
**type** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Atrium::TransactionCleanseAndCategorizeResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | **Float** | | [optional]
|
7
|
+
**category** | **String** | | [optional]
|
8
|
+
**description** | **String** | | [optional]
|
9
|
+
**identifier** | **String** | | [optional]
|
10
|
+
**type** | **String** | | [optional]
|
11
|
+
**is_bill_pay** | **BOOLEAN** | | [optional]
|
12
|
+
**is_direct_deposit** | **BOOLEAN** | | [optional]
|
13
|
+
**is_expense** | **BOOLEAN** | | [optional]
|
14
|
+
**is_fee** | **BOOLEAN** | | [optional]
|
15
|
+
**is_income** | **BOOLEAN** | | [optional]
|
16
|
+
**is_international** | **BOOLEAN** | | [optional]
|
17
|
+
**is_overdraft_fee** | **BOOLEAN** | | [optional]
|
18
|
+
**is_payroll_advance** | **BOOLEAN** | | [optional]
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,126 @@
|
|
1
|
+
# Atrium::TransactionsApi
|
2
|
+
|
3
|
+
Method | HTTP request | Description
|
4
|
+
------------- | ------------- | -------------
|
5
|
+
[**cleanse_and_categorize_transactions**](TransactionsApi.md#cleanse_and_categorize_transactions) | **POST** /cleanse_and_categorize | Categorize transactions
|
6
|
+
[**list_user_transactions**](TransactionsApi.md#list_user_transactions) | **GET** /users/{user_guid}/transactions | List transactions for a user
|
7
|
+
[**read_transaction**](TransactionsApi.md#read_transaction) | **GET** /users/{user_guid}/transactions/{transaction_guid} | Read a transaction
|
8
|
+
|
9
|
+
|
10
|
+
# **cleanse_and_categorize_transactions**
|
11
|
+
> TransactionsCleanseAndCategorizeResponseBody cleanse_and_categorize_transactions(body)
|
12
|
+
|
13
|
+
Categorize transactions
|
14
|
+
|
15
|
+
Use this endpoint to categorize, cleanse, and classify transactions. These transactions are not persisted or stored on the MX platform.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'atrium-ruby'
|
21
|
+
|
22
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
23
|
+
|
24
|
+
body = Atrium::TransactionsCleanseAndCategorizeRequestBody.new # TransactionsCleanseAndCategorizeRequestBody | User object to be created with optional parameters (amount, type) amd required parameters (description, identifier)
|
25
|
+
|
26
|
+
begin
|
27
|
+
#Categorize transactions
|
28
|
+
response = client.transactions.cleanse_and_categorize_transactions(body)
|
29
|
+
p response
|
30
|
+
rescue Atrium::ApiError => e
|
31
|
+
puts "Exception when calling TransactionsApi->cleanse_and_categorize_transactions: #{e}"
|
32
|
+
end
|
33
|
+
```
|
34
|
+
|
35
|
+
### Parameters
|
36
|
+
|
37
|
+
Name | Type | Description | Notes
|
38
|
+
------------- | ------------- | ------------- | -------------
|
39
|
+
**body** | [**TransactionsCleanseAndCategorizeRequestBody**](TransactionsCleanseAndCategorizeRequestBody.md)| User object to be created with optional parameters (amount, type) amd required parameters (description, identifier) |
|
40
|
+
|
41
|
+
### Return type
|
42
|
+
|
43
|
+
[**TransactionsCleanseAndCategorizeResponseBody**](TransactionsCleanseAndCategorizeResponseBody.md)
|
44
|
+
|
45
|
+
# **list_user_transactions**
|
46
|
+
> TransactionsResponseBody list_user_transactions(user_guid, opts)
|
47
|
+
|
48
|
+
List transactions for a user
|
49
|
+
|
50
|
+
Use this endpoint to get all transactions that belong to a specific user, across all the user's members and accounts.<br> This endpoint accepts optional query parameters, from_date and to_date, which filter transactions according to the date they were posted. If no values are given, 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.
|
51
|
+
|
52
|
+
### Example
|
53
|
+
```ruby
|
54
|
+
# load the gem
|
55
|
+
require 'atrium-ruby'
|
56
|
+
|
57
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
58
|
+
|
59
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
60
|
+
opts = {
|
61
|
+
page: 1, # Integer | Specify current page.
|
62
|
+
from_date: "2016-09-20", # String | Filter transactions from this date.
|
63
|
+
records_per_page: 12, # Integer | Specify records per page.
|
64
|
+
to_date: "2016-10-20" # String | Filter transactions to this date.
|
65
|
+
}
|
66
|
+
|
67
|
+
begin
|
68
|
+
#List transactions for a user
|
69
|
+
response = client.transactions.list_user_transactions(user_guid, opts)
|
70
|
+
p response
|
71
|
+
rescue Atrium::ApiError => e
|
72
|
+
puts "Exception when calling TransactionsApi->list_user_transactions: #{e}"
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
76
|
+
### Parameters
|
77
|
+
|
78
|
+
Name | Type | Description | Notes
|
79
|
+
------------- | ------------- | ------------- | -------------
|
80
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
81
|
+
**page** | **Integer**| Specify current page. | [optional]
|
82
|
+
**from_date** | **String**| Filter transactions from this date. | [optional]
|
83
|
+
**records_per_page** | **Integer**| Specify records per page. | [optional]
|
84
|
+
**to_date** | **String**| Filter transactions to this date. | [optional]
|
85
|
+
|
86
|
+
### Return type
|
87
|
+
|
88
|
+
[**TransactionsResponseBody**](TransactionsResponseBody.md)
|
89
|
+
|
90
|
+
# **read_transaction**
|
91
|
+
> TransactionResponseBody read_transaction(transaction_guid, user_guid)
|
92
|
+
|
93
|
+
Read a transaction
|
94
|
+
|
95
|
+
This endpoint allows you to view information about a specific transaction that belongs to a user.<br>
|
96
|
+
|
97
|
+
### Example
|
98
|
+
```ruby
|
99
|
+
# load the gem
|
100
|
+
require 'atrium-ruby'
|
101
|
+
|
102
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
103
|
+
|
104
|
+
transaction_guid = "TRN-123" # String | The unique identifier for a `transaction`.
|
105
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
106
|
+
|
107
|
+
begin
|
108
|
+
#Read a transaction
|
109
|
+
response = client.transactions.read_transaction(transaction_guid, user_guid)
|
110
|
+
p response
|
111
|
+
rescue Atrium::ApiError => e
|
112
|
+
puts "Exception when calling TransactionsApi->read_transaction: #{e}"
|
113
|
+
end
|
114
|
+
```
|
115
|
+
|
116
|
+
### Parameters
|
117
|
+
|
118
|
+
Name | Type | Description | Notes
|
119
|
+
------------- | ------------- | ------------- | -------------
|
120
|
+
**transaction_guid** | **String**| The unique identifier for a `transaction`. |
|
121
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
122
|
+
|
123
|
+
### Return type
|
124
|
+
|
125
|
+
[**TransactionResponseBody**](TransactionResponseBody.md)
|
126
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Atrium::TransactionsCleanseAndCategorizeRequestBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**transactions** | [**Array<TransactionCleanseAndCategorizeRequest>**](TransactionCleanseAndCategorizeRequest.md) | | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Atrium::TransactionsCleanseAndCategorizeResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**transactions** | [**Array<TransactionCleanseAndCategorizeResponse>**](TransactionCleanseAndCategorizeResponse.md) | | [optional]
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Atrium::TransactionsResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**transactions** | [**Array<Transaction>**](Transaction.md) | | [optional]
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Atrium::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**guid** | **String** | | [optional]
|
7
|
+
**identifier** | **String** | | [optional]
|
8
|
+
**is_disabled** | **BOOLEAN** | | [optional]
|
9
|
+
**metadata** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
# Atrium::UsersApi
|
2
|
+
|
3
|
+
Method | HTTP request | Description
|
4
|
+
------------- | ------------- | -------------
|
5
|
+
[**create_user**](UsersApi.md#create_user) | **POST** /users | Create user
|
6
|
+
[**delete_user**](UsersApi.md#delete_user) | **DELETE** /users/{user_guid} | Delete user
|
7
|
+
[**list_users**](UsersApi.md#list_users) | **GET** /users | List users
|
8
|
+
[**read_user**](UsersApi.md#read_user) | **GET** /users/{user_guid} | Read user
|
9
|
+
[**update_user**](UsersApi.md#update_user) | **PUT** /users/{user_guid} | Update user
|
10
|
+
|
11
|
+
|
12
|
+
# **create_user**
|
13
|
+
> UserResponseBody create_user(body)
|
14
|
+
|
15
|
+
Create user
|
16
|
+
|
17
|
+
Call this endpoint to create a new user. Atrium will respond with the newly-created user object if successful. This endpoint accepts several parameters: identifier, metadata, and is_disabled.<br> Disabling a user means that accounts and transactions associated with it will not be updated in the background by MX. It will also restrict access to that user's data until they are no longer disabled. Users who are disabled for the entirety of an Atrium billing period will not be factored into that month's bill.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'atrium-ruby'
|
23
|
+
|
24
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
25
|
+
|
26
|
+
body = Atrium::UserCreateRequestBody.new # UserCreateRequestBody | User object to be created with optional parameters (identifier, is_disabled, metadata)
|
27
|
+
|
28
|
+
begin
|
29
|
+
#Create user
|
30
|
+
response = client.users.create_user(body)
|
31
|
+
p response
|
32
|
+
rescue Atrium::ApiError => e
|
33
|
+
puts "Exception when calling UsersApi->create_user: #{e}"
|
34
|
+
end
|
35
|
+
```
|
36
|
+
|
37
|
+
### Parameters
|
38
|
+
|
39
|
+
Name | Type | Description | Notes
|
40
|
+
------------- | ------------- | ------------- | -------------
|
41
|
+
**body** | [**UserCreateRequestBody**](UserCreateRequestBody.md)| User object to be created with optional parameters (identifier, is_disabled, metadata) |
|
42
|
+
|
43
|
+
### Return type
|
44
|
+
|
45
|
+
[**UserResponseBody**](UserResponseBody.md)
|
46
|
+
|
47
|
+
# **delete_user**
|
48
|
+
> delete_user(user_guid)
|
49
|
+
|
50
|
+
Delete user
|
51
|
+
|
52
|
+
Calling this endpoint will permanently delete a user from Atrium. If successful, the API will respond with Status: 204 No Content.
|
53
|
+
|
54
|
+
### Example
|
55
|
+
```ruby
|
56
|
+
# load the gem
|
57
|
+
require 'atrium-ruby'
|
58
|
+
|
59
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
60
|
+
|
61
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
62
|
+
|
63
|
+
begin
|
64
|
+
#Delete user
|
65
|
+
client.users.delete_user(user_guid)
|
66
|
+
rescue Atrium::ApiError => e
|
67
|
+
puts "Exception when calling UsersApi->delete_user: #{e}"
|
68
|
+
end
|
69
|
+
```
|
70
|
+
|
71
|
+
### Parameters
|
72
|
+
|
73
|
+
Name | Type | Description | Notes
|
74
|
+
------------- | ------------- | ------------- | -------------
|
75
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
76
|
+
|
77
|
+
### Return type
|
78
|
+
|
79
|
+
nil (empty response body)
|
80
|
+
|
81
|
+
# **list_users**
|
82
|
+
> UsersResponseBody list_users(opts)
|
83
|
+
|
84
|
+
List users
|
85
|
+
|
86
|
+
Use this endpoint to list every user you've created in Atrium.
|
87
|
+
|
88
|
+
### Example
|
89
|
+
```ruby
|
90
|
+
# load the gem
|
91
|
+
require 'atrium-ruby'
|
92
|
+
|
93
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
94
|
+
|
95
|
+
opts = {
|
96
|
+
page: 1, # Integer | Specify current page.
|
97
|
+
records_per_page: 12, # Integer | Specify records per page.
|
98
|
+
}
|
99
|
+
|
100
|
+
begin
|
101
|
+
#List users
|
102
|
+
response = client.users.list_users(opts)
|
103
|
+
p response
|
104
|
+
rescue Atrium::ApiError => e
|
105
|
+
puts "Exception when calling UsersApi->list_users: #{e}"
|
106
|
+
end
|
107
|
+
```
|
108
|
+
|
109
|
+
### Parameters
|
110
|
+
|
111
|
+
Name | Type | Description | Notes
|
112
|
+
------------- | ------------- | ------------- | -------------
|
113
|
+
**page** | **Integer**| Specify current page. | [optional]
|
114
|
+
**records_per_page** | **Integer**| Specify records per page. | [optional]
|
115
|
+
|
116
|
+
### Return type
|
117
|
+
|
118
|
+
[**UsersResponseBody**](UsersResponseBody.md)
|
119
|
+
|
120
|
+
# **read_user**
|
121
|
+
> UserResponseBody read_user(user_guid)
|
122
|
+
|
123
|
+
Read user
|
124
|
+
|
125
|
+
Use this endpoint to read the attributes of a specific user.
|
126
|
+
|
127
|
+
### Example
|
128
|
+
```ruby
|
129
|
+
# load the gem
|
130
|
+
require 'atrium-ruby'
|
131
|
+
|
132
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
133
|
+
|
134
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
135
|
+
|
136
|
+
begin
|
137
|
+
#Read user
|
138
|
+
response = client.users.read_user(user_guid)
|
139
|
+
p response
|
140
|
+
rescue Atrium::ApiError => e
|
141
|
+
puts "Exception when calling UsersApi->read_user: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
Name | Type | Description | Notes
|
148
|
+
------------- | ------------- | ------------- | -------------
|
149
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
150
|
+
|
151
|
+
### Return type
|
152
|
+
|
153
|
+
[**UserResponseBody**](UserResponseBody.md)
|
154
|
+
|
155
|
+
# **update_user**
|
156
|
+
> UserResponseBody update_user(user_guid, opts)
|
157
|
+
|
158
|
+
Update user
|
159
|
+
|
160
|
+
Use this endpoint to update the attributes of a specific user. Atrium will respond with the updated user object.<br> Disabling a user means that accounts and transactions associated with it will not be updated in the background by MX. It will also restrict access to that user's data until they are no longer disabled. Users who are disabled for the entirety of an Atrium billing period will not be factored into that month's bill.<br> To disable a user, update it and set the is_disabled parameter to true. Set it to false to re-enable the user.
|
161
|
+
|
162
|
+
### Example
|
163
|
+
```ruby
|
164
|
+
# load the gem
|
165
|
+
require 'atrium-ruby'
|
166
|
+
|
167
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
168
|
+
|
169
|
+
user_guid = "USR-123" # String | The unique identifier for a `user`.
|
170
|
+
opts = {
|
171
|
+
body: Atrium::UserUpdateRequestBody.new # UserUpdateRequestBody | User object to be updated with optional parameters (identifier, is_disabled, metadata)
|
172
|
+
}
|
173
|
+
|
174
|
+
begin
|
175
|
+
#Update user
|
176
|
+
response = client.users.update_user(user_guid, opts)
|
177
|
+
p response
|
178
|
+
rescue Atrium::ApiError => e
|
179
|
+
puts "Exception when calling UsersApi->update_user: #{e}"
|
180
|
+
end
|
181
|
+
```
|
182
|
+
|
183
|
+
### Parameters
|
184
|
+
|
185
|
+
Name | Type | Description | Notes
|
186
|
+
------------- | ------------- | ------------- | -------------
|
187
|
+
**user_guid** | **String**| The unique identifier for a `user`. |
|
188
|
+
**body** | [**UserUpdateRequestBody**](UserUpdateRequestBody.md)| User object to be updated with optional parameters (identifier, is_disabled, metadata) | [optional]
|
189
|
+
|
190
|
+
### Return type
|
191
|
+
|
192
|
+
[**UserResponseBody**](UserResponseBody.md)
|
193
|
+
|