WishlistQuery

public struct WishlistQuery

This type is used to accurately retrieve a wishlist of catalog items that interest the user.

  • Pagination offset

    Declaration

    Swift

    public let offset: Int
  • Pagination limit

    Declaration

    Swift

    public let limit: Int
  • Start date (Catalog Items that were wishlisted after this date)

    Declaration

    Swift

    public let fromDate: Date?
  • End date (Catalog Items that were wishlisted before this date)

    Declaration

    Swift

    public let toDate: Date
  • Initializes an WishlistQuery

    • offset: Pagination offset, default to 0
    • limit : Pagination limit, defualt to 10
    • from : CatalogItems that were wishlisted after this date, default to nil
    • to : CatalogItems that were wishlisted 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)