Transaction

public struct Transaction : Codable, Equatable

Struct representing Gift Card Transaction related values.

  • id

    Value representing the entity id.

    Declaration

    Swift

    public var id: Int
  • Type of transaction.

    Declaration

    Swift

    public var type: GiftCard.TransactionType?
  • Date the transaction was created.

    Declaration

    Swift

    public var createdAt: String
  • Description of the transaction.

    Declaration

    Swift

    public var desc: String
  • Amount relevant to the transaction.

    Declaration

    Swift

    public var amount: String
  • Undocumented

    Declaration

    Swift

    public init(id: Int, type: GiftCard.TransactionType?,
                createdAt: String, desc: String, amount: String)
  • Declaration

    Swift

    public init(from decoder: Decoder) throws