Commit f8ef0de0 by Dima Bart

Move BUYCollectionSort enum into storefront category file.

parent 38df8cfe
......@@ -32,6 +32,44 @@ NS_ASSUME_NONNULL_BEGIN
@class BUYProduct;
/**
* The sort order for products in a collection
*/
typedef NS_ENUM(NSUInteger, BUYCollectionSort) {
/**
* Sort products by best selling using the order set in the shop's admin
*/
BUYCollectionSortCollectionDefault,
/**
* Sort products by best selling
*/
BUYCollectionSortBestSelling,
/**
* Sort products by title, ascending
*/
BUYCollectionSortTitleAscending,
/**
* Sort products by title, descending
*/
BUYCollectionSortTitleDescending,
/**
* Sort products by price (first variant), ascending
*/
BUYCollectionSortPriceAscending,
/**
* Sort products by price (first variant), descending
*/
BUYCollectionSortPriceDescending,
/**
* Sort products by creation date, ascending
*/
BUYCollectionSortCreatedAscending,
/**
* Sort products by creation date, descending
*/
BUYCollectionSortCreatedDescending
};
/**
* Return block containing a BUYShop and/or an NSError
*
* @param shop A BUYShop object
......
......@@ -29,44 +29,6 @@
@class BUYModelManager;
/**
* The sort order for products in a collection
*/
typedef NS_ENUM(NSUInteger, BUYCollectionSort) {
/**
* Sort products by best selling using the order set in the shop's admin
*/
BUYCollectionSortCollectionDefault,
/**
* Sort products by best selling
*/
BUYCollectionSortBestSelling,
/**
* Sort products by title, ascending
*/
BUYCollectionSortTitleAscending,
/**
* Sort products by title, descending
*/
BUYCollectionSortTitleDescending,
/**
* Sort products by price (first variant), ascending
*/
BUYCollectionSortPriceAscending,
/**
* Sort products by price (first variant), descending
*/
BUYCollectionSortPriceDescending,
/**
* Sort products by creation date, ascending
*/
BUYCollectionSortCreatedAscending,
/**
* Sort products by creation date, descending
*/
BUYCollectionSortCreatedDescending
};
/**
* A BUYStatus is associated with the completion of an enqueued job on Shopify.
* BUYStatus is equal is HTTP status codes returned from the server
*/
......
......@@ -25,7 +25,7 @@
//
#import <Buy/_BUYCollection.h>
#import "BUYClient.h"
#import "BUYClient+Storefront.h"
@interface BUYCollection : _BUYCollection {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment