Packages
DEPRECATED: go to https://hex.pm/packages/starkbank.
Retired package: Deprecated - v1 SDK is deprecated. Go to https://hex.pm/packages/starkbank.
Current section
Files
Jump to
Current section
Files
lib/charge/structs/charge_log.ex
defmodule StarkBank.Charge.Structs.ChargeLogData do
@doc """
Holds data from a single charge log
Is usually nested in StarkBank.Charge.Structs.Charge
Parameters:
- id [string]: charge log id, e.g.: 312387192837;
- event [string]: log event, namely: "register", "registered", "overdue", "updated", "canceled", "failed", "paid" or "bank";
- created [timestamp as string]: log creation timestamp, e.g.: "2019-05-21T23:15:50.567533+00:00";
- errors [list of strings]: list of errors logs;
- charge [StarkBank.Charge.Structs.Charge]: charge data;
"""
defstruct [:id, :event, :created, :errors, :charge]
end