SalesMarketingApi class

Constructors

SalesMarketingApi({@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

activateUserPromotion(String externalId) Future<ApiCallback<void>>
Activate a promotion for the current user give it's id.
deleteProductFavorite(String productId) Future<ApiCallback<void>>
getBanners({BannerType type = BannerType.carousel}) Future<ApiCallback<List<Banner>>>
endregion [...]
getDealer() Future<ApiCallback<void>>
endregion [...]
getDealerRanking({int month, int year, bool isPerStore = false}) Future<ApiCallback<DealerRanking>>
getFavoriteProducts() Future<ApiCallback<List<Product>>>
endregion [...]
getIsProductFavorite(String productId) Future<ApiCallback<FavoriteProduct>>
getTutorial() Future<ApiCallback<Tutorial>>
region Tutorials
getUserPromotions() Future<ApiCallback<List<UserPromotion>>>
endregion [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
postProductFavorite(String productId) Future<ApiCallback<void>>
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

ACTIVATE_USER_PROMOTION → const String
"sales/marketing/buyers/promotions/active"
GET_BANNERS → const String
"sales/marketing/banners"
GET_DEALER_BY_CPF → const String
"sales/marketing/dealer/searchByCpf/document"
GET_DEALER_RANKING_FOR_DEALER → const String
"sales/marketing/dealer/ranking/individual/%"
GET_FAVORITES → const String
"sales/marketing/buyers/favorites"
GET_TUTORIALS → const String
"sales/marketing/tutorials"
GET_USER_PROMOTIONS → const String
"sales/marketing/buyers/promotions"
PRODUCT_FAVORITE → const String
"sales/marketing/buyers/favorites/%"