class Lithic::Resources::FinancialAccounts::FinancialTransactions

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::FinancialTransactionListParams -

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

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • status (Symbol, Lithic::FinancialAccounts::FinancialTransactionListParams::Status) -- Financial Transaction status to be returned.
  • starting_after (String) -- A cursor representing an item's token after which a page of results should begin
  • result (Symbol, Lithic::FinancialAccounts::FinancialTransactionListParams::Result) -- Financial Transaction result to be returned.
  • 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
  • category (Symbol, Lithic::FinancialAccounts::FinancialTransactionListParams::Category) -- Financial Transaction category to be returned.
  • begin_ (Time) -- Date string in RFC 3339 format. Only entries created after the specified time wi
  • financial_account_token (String) -- Globally unique identifier for financial account.

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

def retrieve(financial_transaction_token, params)

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

Returns:
  • (Lithic::FinancialTransaction) -

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

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