Class: Lithic::Resources::FinancialAccounts::LoanTapes
- Inherits:
-
Object
- Object
- Lithic::Resources::FinancialAccounts::LoanTapes
- Defined in:
- lib/lithic/resources/financial_accounts/loan_tapes.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ LoanTapes
constructor
private
A new instance of LoanTapes.
-
#list(financial_account_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::FinancialAccounts::LoanTape>
Some parameter documentations has been truncated, see Models::FinancialAccounts::LoanTapeListParams for more details.
-
#retrieve(loan_tape_token, financial_account_token:, request_options: {}) ⇒ Lithic::Models::FinancialAccounts::LoanTape
Get a specific loan tape for a given financial account.
Constructor Details
#initialize(client:) ⇒ LoanTapes
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 LoanTapes.
73 74 75 |
# File 'lib/lithic/resources/financial_accounts/loan_tapes.rb', line 73 def initialize(client:) @client = client end |
Instance Method Details
#list(financial_account_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {}) ⇒ Lithic::Internal::CursorPage<Lithic::Models::FinancialAccounts::LoanTape>
Some parameter documentations has been truncated, see Models::FinancialAccounts::LoanTapeListParams for more details.
List the loan tapes for a given financial account.
58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/lithic/resources/financial_accounts/loan_tapes.rb', line 58 def list(financial_account_token, params = {}) parsed, = Lithic::FinancialAccounts::LoanTapeListParams.dump_request(params) @client.request( method: :get, path: ["v1/financial_accounts/%1$s/loan_tapes", financial_account_token], query: parsed.transform_keys(begin_: "begin", end_: "end"), page: Lithic::Internal::CursorPage, model: Lithic::FinancialAccounts::LoanTape, options: ) end |
#retrieve(loan_tape_token, financial_account_token:, request_options: {}) ⇒ Lithic::Models::FinancialAccounts::LoanTape
Get a specific loan tape for a given financial account.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/lithic/resources/financial_accounts/loan_tapes.rb', line 20 def retrieve(loan_tape_token, params) parsed, = Lithic::FinancialAccounts::LoanTapeRetrieveParams.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/loan_tapes/%2$s", financial_account_token, loan_tape_token], model: Lithic::FinancialAccounts::LoanTape, options: ) end |