Denormalised credit account reporting data.
Key fields: account_token, user_token, bundle_token, credit_limit,
current_balance, available_credit, status, billing_cycle_day,
payment_due_date, minimum_payment_due.
Summary
Functions
@spec data_dictionary(keyword()) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Returns the data dictionary (field definitions) for this DiVA view.
@spec list( map(), keyword() ) :: {:ok, map()} | {:error, Marqeta.Error.t()}
Lists credit account (DiVA) records.
Parameters
params— Query params:start_date,end_date,count,start_index,sort_by,sort_order,fields.opts— Per-request overrides.
Lists credit account (DiVA) records. Raises on error.
@spec stream( map(), keyword() ) :: Enumerable.t()
Returns a lazy Stream over all credit account (DiVA) records, auto-paginating.
Example
Marqeta.DiVA.Authorizations.stream(%{start_date: "2024-01-01"})
|> Stream.filter(& &1["response_code"] == "00")
|> Enum.count()