class Lithic::Resources::Transactions

def list(params = {})

Other tags:
    See: Lithic::Models::TransactionListParams -

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

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • status (Symbol, Lithic::TransactionListParams::Status) -- Filters for transactions using transaction status field.
  • starting_after (String) -- A cursor representing an item's token after which a page of results should begin
  • result (Symbol, Lithic::TransactionListParams::Result) -- Filters for transactions using transaction result field. Can filter by `APPROVED
  • 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_ (Time) -- Date string in RFC 3339 format. Only entries created before the specified time w
  • card_token (String) -- Filters for transactions associated with a specific card.
  • begin_ (Time) -- Date string in RFC 3339 format. Only entries created after the specified time wi
  • account_token (String) -- Filters for transactions associated with a specific account.

Overloads:
  • list(account_token: nil, begin_: nil, card_token: nil, end_: nil, ending_before: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {})
def list(params = {})
  parsed, options = Lithic::TransactionListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "v1/transactions",
    query: parsed.transform_keys(begin_: "begin", end_: "end"),
    page: Lithic::Internal::CursorPage,
    model: Lithic::Transaction,
    options: options
  )
end