| 15081 |
amit.gupta |
1 |
from dtr.api.Order import StoreOrder, Track, Refunds, PendingRefunds, \
|
|
|
2 |
PendingCashBacks, Orders, Transactions, RawHtml, SnapShot
|
| 13582 |
amit.gupta |
3 |
from dtr.api.Service import CategoryDiscountInfo, ExceptionalNlc, \
|
| 13927 |
amit.gupta |
4 |
SkuDiscountInfo, SkuSchemeDetails, Deals, MasterData, LiveData, CashBack, \
|
| 15081 |
amit.gupta |
5 |
DealSheet, DealerPrice, ResetCache, UserDeals, CommonUpdate, ImgSrc, \
|
|
|
6 |
NegativeDeals, ManualDeals, CommonDelete, SearchProduct, FeaturedDeals, \
|
| 15677 |
amit.gupta |
7 |
CommonSearch, CricScore, Notification, DealBrands, RetailerDetail, DealRank, \
|
|
|
8 |
Login, AddContactToRetailer, RetailerActivation, SearchUser, StaticDeals, \
|
| 16560 |
amit.gupta |
9 |
AddAddressToRetailer, DealNotification, DealPoints, AppAffiliates, \
|
|
|
10 |
AffiliatePayout, OrderedOffers
|
| 15677 |
amit.gupta |
11 |
import falcon
|
| 15160 |
kshitij.so |
12 |
|
| 13572 |
kshitij.so |
13 |
|
|
|
14 |
wsgi_app = api = falcon.API()
|
|
|
15 |
|
| 15340 |
amit.gupta |
16 |
retailerActivation = RetailerActivation()
|
| 13572 |
kshitij.so |
17 |
categoryDiscountInfo = CategoryDiscountInfo()
|
|
|
18 |
skuSchemeDetails = SkuSchemeDetails()
|
|
|
19 |
skuDiscountInfo = SkuDiscountInfo()
|
|
|
20 |
exceptionalNlc = ExceptionalNlc()
|
| 13582 |
amit.gupta |
21 |
storeorder = StoreOrder()
|
| 16560 |
amit.gupta |
22 |
orderedOffers = OrderedOffers()
|
| 15081 |
amit.gupta |
23 |
reatiler = RetailerDetail()
|
| 13773 |
kshitij.so |
24 |
deals = Deals()
|
| 13786 |
kshitij.so |
25 |
masterData = MasterData()
|
| 13826 |
kshitij.so |
26 |
liveData = LiveData()
|
| 13835 |
kshitij.so |
27 |
cashBack = CashBack()
|
| 14398 |
amit.gupta |
28 |
imgSrc = ImgSrc()
|
| 13891 |
kshitij.so |
29 |
dealSheet = DealSheet()
|
| 13870 |
amit.gupta |
30 |
track = Track()
|
| 13927 |
amit.gupta |
31 |
refunds = Refunds()
|
| 14427 |
amit.gupta |
32 |
transactions = Transactions()
|
| 15081 |
amit.gupta |
33 |
snapShot = SnapShot()
|
| 14427 |
amit.gupta |
34 |
rawHtml = RawHtml()
|
| 13927 |
amit.gupta |
35 |
pendingRefunds = PendingRefunds()
|
| 14671 |
amit.gupta |
36 |
pendingCashbacks = PendingCashBacks()
|
| 13970 |
kshitij.so |
37 |
dealerPrice = DealerPrice()
|
| 14041 |
kshitij.so |
38 |
resetCache = ResetCache()
|
| 14045 |
kshitij.so |
39 |
userDeals = UserDeals()
|
| 14077 |
kshitij.so |
40 |
commonUpdate = CommonUpdate()
|
| 14353 |
amit.gupta |
41 |
orders = Orders()
|
| 14481 |
kshitij.so |
42 |
negativeDeals = NegativeDeals()
|
|
|
43 |
manualDeals = ManualDeals()
|
|
|
44 |
commonDelete = CommonDelete()
|
| 14482 |
kshitij.so |
45 |
searchProduct = SearchProduct()
|
| 14497 |
kshitij.so |
46 |
featuredDeals = FeaturedDeals()
|
|
|
47 |
commonSearch = CommonSearch()
|
| 14619 |
kshitij.so |
48 |
cricScore = CricScore()
|
| 14853 |
kshitij.so |
49 |
notification = Notification()
|
| 15000 |
kshitij.so |
50 |
dealBrands = DealBrands()
|
| 15160 |
kshitij.so |
51 |
dealRank = DealRank()
|
| 15189 |
manas |
52 |
login = Login()
|
| 15254 |
amit.gupta |
53 |
addContactToRetailer= AddContactToRetailer()
|
| 15676 |
amit.gupta |
54 |
addAddressToRetailer= AddAddressToRetailer()
|
| 15284 |
manas |
55 |
searchUser = SearchUser()
|
| 15373 |
kshitij.so |
56 |
staticDeals = StaticDeals()
|
| 16365 |
kshitij.so |
57 |
dealNotification = DealNotification()
|
| 16486 |
kshitij.so |
58 |
dealPoints = DealPoints()
|
| 16544 |
kshitij.so |
59 |
appAffiliates = AppAffiliates()
|
| 16558 |
kshitij.so |
60 |
affiliatePayout = AffiliatePayout()
|
| 13572 |
kshitij.so |
61 |
|
| 13628 |
kshitij.so |
62 |
api.add_route('/discountInfo/getAllCategoryDiscount', categoryDiscountInfo)
|
|
|
63 |
api.add_route('/discountInfo/addCategoryDiscount', categoryDiscountInfo)
|
|
|
64 |
api.add_route('/discountInfo/addSkuSchemeDetails',skuSchemeDetails)
|
|
|
65 |
api.add_route('/discountInfo/getAllSkuSchemeDetails',skuSchemeDetails)
|
|
|
66 |
api.add_route('/discountInfo/addExceptionalSkuDiscount',skuDiscountInfo)
|
|
|
67 |
api.add_route('/discountInfo/getAllExceptionalSkuDiscount',skuDiscountInfo)
|
|
|
68 |
api.add_route('/exceptionalNlc/addExceptionalNlc',exceptionalNlc)
|
|
|
69 |
api.add_route('/exceptionalNlc/getExceptionalNlc',exceptionalNlc)
|
| 13582 |
amit.gupta |
70 |
api.add_route('/storeorder', storeorder)
|
| 14353 |
amit.gupta |
71 |
api.add_route('/orders', orders)
|
| 16560 |
amit.gupta |
72 |
api.add_route('/ordered-offers/{storeId}/{storeSku}', orderedOffers)
|
| 13603 |
amit.gupta |
73 |
api.add_route('/storeorder/{id}', storeorder)
|
|
|
74 |
api.add_route('/storeorder/user/{userId}', storeorder)
|
| 13780 |
kshitij.so |
75 |
api.add_route('/deals/{userId}',deals)
|
| 13788 |
kshitij.so |
76 |
api.add_route('/masterData/getSkuById/{skuId}', masterData)
|
| 14586 |
kshitij.so |
77 |
api.add_route('/masterData/addOrUpdateMaster/', masterData)
|
| 13835 |
kshitij.so |
78 |
api.add_route('/Catalog/fetchLivePrices/', liveData)
|
|
|
79 |
api.add_route('/Catalog/cashBack/', cashBack)
|
| 14398 |
amit.gupta |
80 |
api.add_route('/Catalog/imgSrc/', imgSrc)
|
| 13939 |
amit.gupta |
81 |
api.add_route('/track/user/{userId}', track)
|
| 13927 |
amit.gupta |
82 |
api.add_route('/refund/user/{userId}', refunds)
|
| 13967 |
kshitij.so |
83 |
api.add_route('/pending-refunds/user/{userId}', pendingRefunds)
|
| 14671 |
amit.gupta |
84 |
api.add_route('/pending-cashbacks/user/{userId}', pendingCashbacks)
|
| 13968 |
kshitij.so |
85 |
api.add_route('/Catalog/generateDealSheet/', dealSheet)
|
| 13970 |
kshitij.so |
86 |
api.add_route('/discountInfo/updateCategoryDiscount/{_id}', categoryDiscountInfo)
|
|
|
87 |
api.add_route('/discountInfo/updateSkuDiscount/{_id}', skuDiscountInfo)
|
|
|
88 |
api.add_route('/dealerPrices/addDealerPrice', dealerPrice)
|
|
|
89 |
api.add_route('/dealerPrices/getAllDealerPrice', dealerPrice)
|
| 14041 |
kshitij.so |
90 |
api.add_route('/dealerPrices/updateDealerPrice/{_id}', dealerPrice)
|
| 14045 |
kshitij.so |
91 |
api.add_route('/resetCache/{userId}',resetCache)
|
| 14077 |
kshitij.so |
92 |
api.add_route('/Catalog/generateDealSheetForUser/{userId}',userDeals)
|
| 14427 |
amit.gupta |
93 |
api.add_route('/Catalog/updateCollection', commonUpdate)
|
|
|
94 |
api.add_route('/transactions/', transactions)
|
| 14481 |
kshitij.so |
95 |
api.add_route('/rawhtml/{orderId}', rawHtml)
|
|
|
96 |
api.add_route('/negativeDeals/addNegativeDeals', negativeDeals)
|
|
|
97 |
api.add_route('/negativeDeals/getNegativeDeals', negativeDeals)
|
|
|
98 |
api.add_route('/manualDeals/addManualDeals', manualDeals)
|
|
|
99 |
api.add_route('/manualDeals/getManualDeals', manualDeals)
|
| 14482 |
kshitij.so |
100 |
api.add_route('/Catalog/deleteDocument', commonDelete)
|
|
|
101 |
api.add_route('/Catalog/searchMaster',searchProduct)
|
| 14495 |
kshitij.so |
102 |
api.add_route('/featuredDeals/addFeaturedDeals', featuredDeals)
|
|
|
103 |
api.add_route('/featuredDeals/getFeaturedDeals', featuredDeals)
|
| 14497 |
kshitij.so |
104 |
api.add_route('/Catalog/searchProducts/',commonSearch)
|
| 14619 |
kshitij.so |
105 |
api.add_route('/liveCricketScore/',cricScore)
|
| 14853 |
kshitij.so |
106 |
api.add_route('/Catalog/notification/', notification)
|
| 15000 |
kshitij.so |
107 |
api.add_route('/deals/brands/', dealBrands)
|
| 15081 |
amit.gupta |
108 |
api.add_route('/getRetailerToCall/{agentId}/{callType}', reatiler)
|
| 15137 |
amit.gupta |
109 |
api.add_route('/updateDisposition/{agentId}/{callType}', reatiler)
|
| 15160 |
kshitij.so |
110 |
api.add_route('/getDtrLink/{agentId}/{callType}/{retailerId}', reatiler)
|
|
|
111 |
api.add_route('/deals/getRank/', dealRank)
|
| 15189 |
manas |
112 |
api.add_route('/agent/logout/{agentId}/{role}',login)
|
| 15254 |
amit.gupta |
113 |
api.add_route('/agent/login',login)
|
| 15275 |
amit.gupta |
114 |
api.add_route('/addContactToRetailer/{agentId}',addContactToRetailer)
|
| 15676 |
amit.gupta |
115 |
api.add_route('/addAddressToRetailer/{agentId}',addAddressToRetailer)
|
| 15339 |
amit.gupta |
116 |
api.add_route('/retailerActivated/{userId}', retailerActivation)
|
| 15373 |
kshitij.so |
117 |
api.add_route('/searchRetailer/{agentId}/{searchType}', searchUser)
|
| 16365 |
kshitij.so |
118 |
api.add_route('/getStaticDeals/',staticDeals)
|
| 16486 |
kshitij.so |
119 |
api.add_route('/getDealsForNotification/{skuBundleIds}',dealNotification)
|
|
|
120 |
api.add_route('/dealPoints/addDealPoints', dealPoints)
|
|
|
121 |
api.add_route('/dealPoints/getDealPoints', dealPoints)
|
| 16558 |
kshitij.so |
122 |
api.add_route('/appAffiliates/generateRedirectUrl/{retailerId}/{appId}',appAffiliates)
|
|
|
123 |
api.add_route('/affiliatePayout/',affiliatePayout)
|