SalesCatalogApi class

Constructors

SalesCatalogApi({@required Dio requester})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getCategories({bool perSeller = false}) Future<ApiCallback<List<Category>>>
region Category API endpoints
getChildrenCategories({String parentCategoryId, bool perSeller = false}) Future<ApiCallback<List<Category>>>
getFilters({String categoryId, bool perSeller = false, String term, String tag}) Future<ApiCallback<FiltersResponse>>
getProduct(String productId, {Seller seller, bool perSeller = false}) Future<ApiCallback<Product>>
endregion region Product API endpoints
getProductsByCategory({String categoryId, int page = 1, int perPage = 20, String continuationToken, ProductOrder sort, bool perSeller = false}) Future<ApiCallback<ProductPaginationResult>>
getProductsByFilters({int page = 1, int perPage = 20, String continuationToken, ProductOrder sort, bool perSeller = false, Map<String, dynamic> filterParams}) Future<ApiCallback<ProductPaginationResult>>
getProductsBySearch({String term, int page = 1, int perPage = 20, String continuationToken, ProductOrder sort, bool perSeller = false}) Future<ApiCallback<ProductPaginationResult>>
getProductsByTag({String tag, int page = 1, int perPage = 20, String continuationToken, ProductOrder sort, bool perSeller = false}) Future<ApiCallback<ProductPaginationResult>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

API_CATEGORIES → const String
'sales/#catalog_api#/categories'
API_CATEGORIES_CHILDREN → const String
'sales/#catalog_api#/categories/%/children'
API_PRODUCT_BY_ID → const String
'sales/#catalog_api#/products/%'
API_PRODUCTS_BY_CATEGORY → const String
'sales/#catalog_api#/categories/%/products'
API_PRODUCTS_BY_FILTERS → const String
'sales/#catalog_api#/search/products/'
API_PRODUCTS_BY_SEARCH_TERM → const String
'sales/#catalog_api#/products/search/%'
API_PRODUCTS_BY_TAG → const String
'sales/#catalog_api#/tags/%/products'
API_PRODUCTS_FILTERS → const String
'sales/#catalog_api#/filters/'