Class: Lithic::Resources::AccountActivity
- Inherits:
-
Object
- Object
- Lithic::Resources::AccountActivity
- Defined in:
- lib/lithic/resources/account_activity.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ AccountActivity
constructor
private
A new instance of AccountActivity.
-
#list(account_token: nil, begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>
Some parameter documentations has been truncated, see Models::AccountActivityListParams for more details.
-
#retrieve_transaction(transaction_token, request_options: {}) ⇒ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, ...
Retrieve a single transaction.
Constructor Details
#initialize(client:) ⇒ AccountActivity
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AccountActivity.
75 76 77 |
# File 'lib/lithic/resources/account_activity.rb', line 75 def initialize(client:) @client = client end |
Instance Method Details
#list(account_token: nil, begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>
Some parameter documentations has been truncated, see Models::AccountActivityListParams for more details.
Retrieve a list of transactions across all public accounts.
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/lithic/resources/account_activity.rb', line 40 def list(params = {}) parsed, = Lithic::AccountActivityListParams.dump_request(params) @client.request( method: :get, path: "v1/account_activity", query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::Models::AccountActivityListResponse, options: ) end |
#retrieve_transaction(transaction_token, request_options: {}) ⇒ Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, ...
Retrieve a single transaction
63 64 65 66 67 68 69 70 |
# File 'lib/lithic/resources/account_activity.rb', line 63 def retrieve_transaction(transaction_token, params = {}) @client.request( method: :get, path: ["v1/account_activity/%1$s", transaction_token], model: Lithic::Models::AccountActivityRetrieveTransactionResponse, options: params[:request_options] ) end |