Module interviewpuzzle::ledger::transaction[][src]

Expand description
stateDiagram-v2 [*] --> Default : create Default --> Disputed : dispute Disputed --> Chargebacked : chargeback Disputed --> Default : resolve Chargebacked --> [*] : archive

Structs

Transaction state assigned to transactions after disputed transaction has been chargebacked (returned)

Default transaction state assigned to transactions which have been parsed. If trasaction is of type Withdrawal or Dispute, and has never been disputed, it will remain in Defualt state

Transaction state assigned to transactions which has been disputed

A single transaction. This struct is used both for ser/deserializing by sered, and by typestate crate to generate <TxState> for this struct.

Traits

Functions