Class: Lithic::Resources::FinancialAccounts::FinancialTransactions
- Inherits:
-
Object
- Object
- Lithic::Resources::FinancialAccounts::FinancialTransactions
- Defined in:
- lib/lithic/resources/financial_accounts/financial_transactions.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ FinancialTransactions
constructor
private
A new instance of FinancialTransactions.
-
#list(financial_account_token, begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) ⇒ Lithic::Internal::SinglePage<Lithic::Models::FinancialTransaction>
Some parameter documentations has been truncated, see Models::FinancialAccounts::FinancialTransactionListParams for more details.
-
#retrieve(financial_transaction_token, financial_account_token:, request_options: {}) ⇒ Lithic::Models::FinancialTransaction
Get the financial transaction for the provided token.
Constructor Details
#initialize(client:) ⇒ FinancialTransactions
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 FinancialTransactions.
82 83 84 |
# File 'lib/lithic/resources/financial_accounts/financial_transactions.rb', line 82 def initialize(client:) @client = client end |
Instance Method Details
#list(financial_account_token, begin_: nil, category: nil, end_: nil, ending_before: nil, result: nil, starting_after: nil, status: nil, request_options: {}) ⇒ Lithic::Internal::SinglePage<Lithic::Models::FinancialTransaction>
Some parameter documentations has been truncated, see Models::FinancialAccounts::FinancialTransactionListParams for more details.
List the financial transactions for a given financial account.
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/lithic/resources/financial_accounts/financial_transactions.rb', line 67 def list(financial_account_token, params = {}) parsed, = Lithic::FinancialAccounts::FinancialTransactionListParams.dump_request(params) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/financial_transactions", financial_account_token], query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::SinglePage, model: Lithic::FinancialTransaction, options: ) end |
#retrieve(financial_transaction_token, financial_account_token:, request_options: {}) ⇒ Lithic::Models::FinancialTransaction
Get the financial transaction for the provided token.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/lithic/resources/financial_accounts/financial_transactions.rb', line 20 def retrieve(financial_transaction_token, params) parsed, = Lithic::FinancialAccounts::FinancialTransactionRetrieveParams.dump_request(params) financial_account_token = parsed.delete(:financial_account_token) do raise ArgumentError.new("missing required path argument #{_1}") end @client.request( method: :get, path: [ "v1/financial_accounts/%1$s/financial_transactions/%2$s", financial_account_token, financial_transaction_token ], model: Lithic::FinancialTransaction, options: ) end |