Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Enhancements

KFS Cooked Meals Plans

Relaxed…and leave your lunch or dinner on us.

a) Create a Registration menu below current Register Menu called Join KFS Meals Plan
b) When user click on this menu create a new page and call
c) https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/usertypes to get userTypes
and then call
d) https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getmealsplan to get meals
plans and their details. Caption the page Choose Your Meals Plan
e) Show UserTypes and filter out Business User and Consumer User and show only usertypeID 20
and 21 in a dropdown where by the user can only select one
f) When user select e.gWeekly Meals Plan,UserName, compare this User Name with
https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getmealsplanMealsPlanNa
me and if they match then show this Mealsplan records under a sub heading that says Optional
Meals Addons and in checkboxes but for the MealsPlanCost which they have no choice… other
features like MealsPlansides, MealsPlanDrinks, MealsPlanAppetizers, MealsPlansauces are
optional and if the user chooses Monthly Meals Plan then show their record the same way as
you did for weekly meals plan
g) When user makes plan choice plus any additional optional and click a button label Join, then add
the amount of each checkbox that was checked and show user total plus tax of 5% and have two
buttons called Modify Plan and Register and Pay ….modify allow the user to make changes to
previous choices from session object and Register and Paytakes user to Registration and
Payment Page …create a registration form to collect stringfirstname, stringlastname,
string email, string password,( intusertype) this is
fromhttps://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/usertypes (20 or 21)
depending on plan they choose
h) Once all these info is created and validated to be correct especially email enable the Pay and
Register Button and when user clicks this button collect names and relevant info and pass to
current credit processing form and call call current credit card processing api and send payment
request to bank for approval and result is Approved then call
i) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/CreateapprovedmealplanUser
?firstname={firstname}&lastname={lastname}&email={email}&password={password}&usert
ype={usertype}&mealplanpaid={mealplanpaid}&mealplanamountpaid={mealplanamountpaid}
&mealsplantype={mealsplantype}&mealsplanstartdate={mealsplanstartdate}&mealsplanid
={mealsplanid}&mealspurchasedate={mealspurchasedate}&usersidesmealsplanincluded={u
sersidesmealsplanincluded}&userappetizerplanincluded={userappetizerplanincluded}&u
serdrinksplanincluded={userdrinksplanincluded}&usersaucesplanincluded={usersaucesp
lanincluded}&numberofmealsbought={numberofmealsbought}&numberofsidesbought={number
ofsidesbought}&numberofdrinksbought={numberofdrinksbought}&numberofappetizersbough
t={numberofappetizersbought}&numberofsaucesbought={numberofsaucesbought}&numberofm
ealsperplan={numberofmealsperplan}&numberofmealspending={numberofmealspending}&num
berofsidespending={numberofsidespending}&numberofdrinkspending={numberofdrinkspend
ing}&numberofappetizerspending={numberofappetizerspending}&numberofsaucespending={
numberofsaucespending}
j)
k) Pass all these details to this api from session or store dataset and if the result was not Approved
(denied) show user result and give them option to modify the credit card info or Cancel
transaction
l) If payment approved and apii) return success then show user message returned by api with
thank you and prompting them to help us serve them better by providing us with more
information about their

QI. What would be the values of NumberOfSidesPending, NumberOfDrinksPending,


NumberOfAppetizerPending, NumberOfSausesPending?

m) Take user to Website KFS Personal Catering Menu

QM. After Submitting plan details which is KFS Personel Catering Menu where user should redirect?

n) If they click on any of the submenus…fetch the info as you do now and check if
1) Menu = IsMenuCatering 1 or 0
2) Menu = IsMenuMealsPlanCatering 1 or 0
3) Menu = IsMenuRegular 1 or 0

QN. Which flag would be used to identify above Menu?

o) A menu can only be Catering, Meals Plan or Regular and NEVER both
p) Checkout for IsMenuCatering and IsMenuRegular are the same and is what we have now but we
need enforced that only items from each category can be added to the cart e.g. if the cart
started was for Catering , don’t allow IsMenuRegular and IsMenuMealsPlans added to the
Catering cart…same with IsMenuRegular cart do not allow catering items or meals plan items
added to that cart.

QP. How can i identify meal items related to specific main menu?

q) IsMenuMealsPlanCatering checkout can be pre-paid checkout with meals still pending if the user
bought a monthly plan or if they bought a weekly then they have to buy another weeks plans or
change to monthly plan. Call
r) https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getusermealsplan?u
serid={userid} passing userid and get details of either user has pending meals or
they need buy again
s) If NumberOfMealsPending is 0, NumberOfSidesPending is 0, NumberOfdrinkspending is 0,
NumberOfSaucesPending is 0 then let the user new they need buy a new meal plan. Call
https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getmealsplan get
mealsplan and present to user to choose from this list
t) If User mealplan had meals pending, then let shop and add to their cart
u) At checkout, call again
https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getusermealsplan?u
serid={userid}
v) And check how many meals they got and validate with numberofmealspending, check
how many sides they supposed to get from numberofsidespendingand validate number
sides in cart, check how many drinks they have in their plannumberofdrinkspending
and validate how many in shopping cart, check how appetizers they have in their
plannumberofappetizerspending and compare with how many they have in their cart,
check how many sauces they have in their plan numberofsaucespendingand validate
that number with number of sauces in cart and if any number in cart is larger than
what is in the plan, ask them to remove some items before proceeding or purchase
the plan for items they need. Do not allow them checkout with more items than they
have bought with their plan and if they have monthly plan, deduct items purchased
from item in the plan and save the pending back to database by call
w) https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/updateusermealplan?userid
={userid}&mealsplanupdateddate={mealsplansupdateddate}&mealsplanid={mealsplanid}&num
berofmealsperplan={numberofmealsperplan}&numberofmealsbought={numberofmealsbought}
&numberofsidesbought={numberofsidesbought}&numberofdrinksbought={numberofdrinksbou
ght}&numberofappetizersbought={numberofappetizersbought}&numberofsaucesbought={num
berofsaucesbought}&numberofmealspending={numberofmealspending}&numberofsidespendin
g={numberofsidespending}&numberofdrinkspending={numberofdrinkspending}&numberofappe
tizerspending={numberofappetizerspending}&numberofsaucespending={numberofsaucespendi
ng}

x) Allergies by Calling this api …to be provided


y) Meals Diet Preferences by calling this api…to be provided

Pending API’s

1) GetAllergies
2) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getallergies
3) CreateMealsPlanUserAllergies
4) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/CreatemealsplanUserall
ergies?mealsplanuserid={mealsplanuserid}&eggs={eggs}&soy={soy}&seafood={seafood}
&sulphites={sulphites}&treenuts={treenuts}&milk={milk}&wheat={wheat}&peanuts={pe
anuts}&mustard={mustard}&sesame={sesame}&otherallergies={otherallergies}
5) Meals Diet Preferences
6) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getdiets
7) CreateMealsPlanUserDietPreferences
8) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/createmealsplanuserdi
etpreferences?mealsplanuserid={mealsplanuserid}&glutenFree={glutenFree}&vegetaria
n={vegetarian}&highprotein={highprotein}&lowfat={lowfat}&highcarb={highcarb}&highf
iber={highfiber}&diaryfree={diaryfree}&soyfree={soyfree}&lowcarbs={lowcarbs}&keto={
keto}&paleo={paleo}&mediterranean={mediterranean}&other={other}
9) GetMealsPlanUserAccountBalance
10) https://ws.360kmall.com:8000/wstest/GetCloseByServices.svc/json/getusermealsplan?
userid={userid}
11) Get Meals Plan Appetizers
12) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getmealsplanappetizers
13) Get Meals Plan Sides
14) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getmealsplansides
15) Get Meals Plan Sauces
16) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getmealsplansauces
17) Get Meals Plan Drinks
18) https://ws.360kmall.com:8000/ws/GetCloseByServices.svc/json/getmealsplandrinks

You might also like