Class: Atrium::TransactionsApi
- Inherits:
-
Object
- Object
- Atrium::TransactionsApi
- Defined in:
- lib/atrium-ruby/api/transactions_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#cleanse_and_categorize_transactions(body, opts = {}) ⇒ TransactionsCleanseAndCategorizeResponseBody
Categorize transactions Use this endpoint to categorize, cleanse, and classify transactions.
-
#initialize(api_client = ApiClient.default) ⇒ TransactionsApi
constructor
A new instance of TransactionsApi.
-
#list_user_transactions(user_guid, opts = {}) ⇒ TransactionsResponseBody
List transactions for a user Use this endpoint to get all transactions that belong to a specific user, across all the user’s members and accounts.
This endpoint accepts optional query parameters, from_date and to_date, which filter transactions according to the date they were posted. -
#read_transaction(transaction_guid, user_guid, opts = {}) ⇒ TransactionResponseBody
Read a transaction This endpoint allows you to view information about a specific transaction that belongs to a user.
.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ TransactionsApi
Returns a new instance of TransactionsApi.
15 16 17 |
# File 'lib/atrium-ruby/api/transactions_api.rb', line 15 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/atrium-ruby/api/transactions_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#cleanse_and_categorize_transactions(body, opts = {}) ⇒ TransactionsCleanseAndCategorizeResponseBody
Categorize transactions Use this endpoint to categorize, cleanse, and classify transactions. These transactions are not persisted or stored on the MX platform.
23 24 25 26 |
# File 'lib/atrium-ruby/api/transactions_api.rb', line 23 def cleanse_and_categorize_transactions(body, opts = {}) data, _status_code, _headers = cleanse_and_categorize_transactions_with_http_info(body, opts) data end |
#list_user_transactions(user_guid, opts = {}) ⇒ TransactionsResponseBody
List transactions for a user Use this endpoint to get all transactions that belong to a specific user, across all the user’s members and accounts.
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.
37 38 39 40 |
# File 'lib/atrium-ruby/api/transactions_api.rb', line 37 def list_user_transactions(user_guid, opts = {}) data, _status_code, _headers = list_user_transactions_with_http_info(user_guid, opts) data end |
#read_transaction(transaction_guid, user_guid, opts = {}) ⇒ TransactionResponseBody
Read a transaction This endpoint allows you to view information about a specific transaction that belongs to a user.
48 49 50 51 |
# File 'lib/atrium-ruby/api/transactions_api.rb', line 48 def read_transaction(transaction_guid, user_guid, opts = {}) data, _status_code, _headers = read_transaction_with_http_info(transaction_guid, user_guid, opts) data end |