OrderQuery
public struct OrderQuery : Equatable
This type is used to accurately retrieve a list of past orders that interest the user.
-
Pagination offset
Declaration
Swift
public let offset: Int -
Pagination limit
Declaration
Swift
public let limit: Int -
Start date (Orders that were made after this date)
Declaration
Swift
public let fromDate: Date? -
End date (Orders that were made before this date)
Declaration
Swift
public let toDate: Date -
Initializes an
OrderQuery- offset: Pagination offset, default to 0
- limit: Pagination limit, defualt to 10
- from: Orders that were made after this date, default to nil
- to: Orders that were made before this date, passing nil will default to NOW
Declaration
Swift
public init(offset: Int = 0, limit: Int = 10, from: Date? = nil, to: Date? = nil)
OrderQuery Structure Reference