OrderResult
public struct OrderResult : Decodable
A result model representing the Orders that were fetched for a give OrderQuery
-
The total number of orders matching the given query
Declaration
Swift
public let total: Int -
An
Array<Order>representing the results of the queryDeclaration
Swift
public private(set) var orders: [Int : Order] -
The fromDate part of the
OrderQuerythat matches the resultDeclaration
Swift
public let fromDate: Date? -
The toDate part of the
OrderQuerythat matches the resultDeclaration
Swift
public let toDate: Date -
Determines if the given OrderResult is result-equivalent to self
to: The
OrderResultto compare against
Declaration
Swift
public func isResultEquivalent(to: OrderResult) -> BoolReturn Value
A
Boolindicating result-equivalency -
Merges self with the given
OrderResult.result: The
OrderResultto merge with
Declaration
Swift
public func merge(_ result: OrderResult) -> OrderResult?Return Value
A merged
OrderResultif the two OrderResults are result-equivalent; nil otherwise. -
Declaration
Swift
public init(from decoder: Decoder) throws
OrderResult Structure Reference