Overview

Summary

ContactDonateImprint


Appendix E-9: PROMOTION (UI prompt)


PromotionRestaurantModuleLieferando

Properties (9)

PropertyTypeEntityReferenceModule
(1) DescriptionSTRINGPromotion
(2) DiscountTypeSTRINGPromotion
(3) DiscountValueSTRINGPromotion
(4) EndDateDATEPromotion
(5) IsActiveBOOLPromotion
(6) MinimumOrderAmountSTRINGPromotion
(7) NameSTRINGPromotion
(8) RestaurantLONGPromotionRestaurantRestaurantModule
(9) StartDateDATEPromotion


Module Interfaces (7)

Remote MethodLocal MethodModuleHTTP-MethodReferences
(1) /promotionmenuitemlink/promotion/{id}findAllPromotionMenuItemLinkOfPromotion(id)MenuItemModuleGETPromotion PromotionMenuItemLink
(2) /promotioninsertPromotion(promotion)RestaurantModulePOSTPromotion
(3) /promotion/{id}deletePromotionById(id)RestaurantModuleDELETEPromotion
(4) /promotion/restaurant/{id}findAllPromotionOfRestaurant(id)RestaurantModuleGETRestaurant Promotion
(5) /promotion/{id}updatePromotionById(promotion)RestaurantModulePUTPromotion
(6) /promotionfindAllPromotion()RestaurantModuleGETPromotion
(7) /promotion/{id}findPromotionById(id)RestaurantModuleGETPromotion





Example:

final Promotion promotion = (Promotion) invokeModule(RESTAURANT_MODULE + "/promotion/" + id, Promotion.class);
if (promotion != null) {
    final Restaurant restaurant1 = (Restaurant) invokeModule(RESTAURANT_MODULE + "/restaurant/" + promotion.getRestaurant().getId(), Restaurant.class);
    if (restaurant1 != null) {
        final City city2 = (City) invokeModule(RESTAURANT_MODULE + "/city/" + restaurant1.getCity().getId(), City.class);
        if (city2 != null) {
        }
    }
}
return promotion;


Overview

Summary

ContactDonateImprint