32 lines
727 B
Swift
32 lines
727 B
Swift
//
|
|
// File.swift
|
|
//
|
|
//
|
|
// Created by Juraldinio on 8/28/22.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct WalletOrder: Codable {
|
|
|
|
public enum Status: String, Codable {
|
|
/// Order created.
|
|
case active = "ACTIVE"
|
|
/// Order expired.
|
|
case expired = "EXPIRED"
|
|
/// Sent to blockchain.
|
|
case executed = "EXECUTED"
|
|
/// Accepting EOS transaction. Already sent, but not all blocks created.
|
|
case creating = "TRX_IN_CHAIN"
|
|
/// Failed.
|
|
case failed = "FAILED"
|
|
/// Created and completed.
|
|
case completed = "COMPLETED"
|
|
}
|
|
|
|
public let timeout: Date
|
|
public let modified: Date
|
|
public let status: Status
|
|
public let id: String
|
|
}
|