def GET_B2B_Store(request): EatplusSkillLog('GET_B2B_Store') kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) return kakaoView_MenuListup(kakaoPayload)
def SET_B2B_PickupTime(request): EatplusSkillLog('SET_B2B_PickupTime') try: kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) return kakaoView_PickupTime(kakaoPayload) except (RuntimeError, TypeError, NameError, KeyError) as ex: return errorView('{}'.format(ex))
def POST_OrderCancel(request): EatplusSkillLog('POST_OrderCancel') try: kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) return kakaoView_OrderCancel(kakaoPayload) except (RuntimeError, TypeError, NameError, KeyError) as ex: return errorView('{}'.format(ex))
def GET_DelegateUser(request): EatplusSkillLog('GET_DelegateUser') try: kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) return kakaoView_GetDelegateUser(kakaoPayload) except (RuntimeError, TypeError, NameError, KeyError) as ex: return errorView('{} '.format(ex))
def GET_EatplePass(request): EatplusSkillLog('GET_EatplePass') try: kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) Pixel_eatplePassCheck(user) if(isB2BUser(user)): return GET_B2B_EatplePass(request) else: return kakaoView_EatplePass(kakaoPayload) except (RuntimeError, TypeError, NameError, KeyError) as ex: return errorView('{} '.format(ex))
def SET_B2B_OrderSheet(request): EatplusSkillLog('SET_B2B_OrderSheet') try: kakaoPayload = KakaoPayLoad(request) # User Validation user = userValidation(kakaoPayload) if (user == None): return GET_UserHome(request) # Block Validation prev_block_id = prevBlockValidation(kakaoPayload) if (prev_block_id != KAKAO_BLOCK_USER_SET_PICKUP_TIME and prev_block_id != KAKAO_BLOCK_USER_SET_ORDER_SHEET): return errorView('잘못된 블럭 경로', '정상적이지 않은 경로거나, 오류가 발생했습니다.\n다시 주문해주세요.') return kakaoView_OrderPayment(kakaoPayload) except (RuntimeError, TypeError, NameError, KeyError) as ex: return errorView('{}'.format(ex))