class Lithic::Resources::FinancialAccounts::Statements::LineItems

def initialize(client:)

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

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

def list(statement_token, params)

Other tags:
    See: Lithic::Models::FinancialAccounts::Statements::LineItemListParams -

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

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • starting_after (String) -- Query param: A cursor representing an item's token after which a page of results
  • page_size (Integer) -- Query param: Page size (for pagination).
  • ending_before (String) -- Query param: A cursor representing an item's token before which a page of result
  • financial_account_token (String) -- Path param: Globally unique identifier for financial account.
  • statement_token (String) -- Path param: Globally unique identifier for statements.

Overloads:
  • list(statement_token, financial_account_token:, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
def list(statement_token, params)
  parsed, options = Lithic::FinancialAccounts::Statements::LineItemListParams.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/statements/%2$s/line_items",
      financial_account_token,
      statement_token
    ],
    query: parsed,
    page: Lithic::Internal::CursorPage,
    model: Lithic::FinancialAccounts::Statements::StatementLineItems::Data,
    options: options
  )
end