class Lithic::Resources::FinancialAccounts::LoanTapes

def initialize(client:)

Parameters:
  • client (Lithic::Client) --

Other tags:
    Api: - private
def initialize(client:)
  @client = client
end

def list(financial_account_token, params = {})

Other tags:
    See: Lithic::Models::FinancialAccounts::LoanTapeListParams -

Returns:
  • (Lithic::Internal::CursorPage) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • starting_after (String) -- A cursor representing an item's token after which a page of results should begin
  • page_size (Integer) -- Page size (for pagination).
  • ending_before (String) -- A cursor representing an item's token before which a page of results should end.
  • end_ (Date) -- Date string in RFC 3339 format. Only entries created before the specified date w
  • begin_ (Date) -- Date string in RFC 3339 format. Only entries created after the specified date wi
  • financial_account_token (String) -- Globally unique identifier for financial account.

Overloads:
  • list(financial_account_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
def list(financial_account_token, params = {})
  parsed, options = 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: options
  )
end

def retrieve(loan_tape_token, params)

Other tags:
    See: Lithic::Models::FinancialAccounts::LoanTapeRetrieveParams -

Returns:
  • (Lithic::FinancialAccounts::LoanTape) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • financial_account_token (String) -- Globally unique identifier for financial account.
  • loan_tape_token (String) -- Globally unique identifier for loan tape.

Overloads:
  • retrieve(loan_tape_token, financial_account_token:, request_options: {})
def retrieve(loan_tape_token, params)
  parsed, options = 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: options
  )
end