商户登录:
Post: device_api/auth/servant
'username': Validation(validators.String(), '用户名'),
'password': Validation(validators.String(), '密码'),
'current_version': Validation(validators.String(), '版本号'),
IAuth
Business Login(AppVersion version, Device device)
拉feed 返回 activities
GET /device_api/businesses/activities/
'start': int, // optional, n毫秒
IAcitivityService
IEnumerable<FeedActivity> GetActivities(TimeStamp timeStamp)
会员签到 / 销券
-
-
会员操作
充储值
-
HuipayTransaction TopUpTransaction(Account account, Prepay prepay);
-
兑成就奖
-
bool MilestoneRedeem(Account account, Milestone milestone)
兑积分奖
-
bool PointRewardRedeem(Account account, PointReward pr)
改积分
post url:/device_api/accounts/<account_uid>/points/
schema: points:int;auth_code,auth_password
bool ChangePoints(Account account, PointChange change,waiter);
查询会员历史
GET /device_api/accounts/{account_pk or phone}/history/
schema: {offset, limit, categories (promotions, prepay,. points, giftcards, huipay )}
一个api查询5种会员操作历史
-
-
-
-
-
-
-
全部功能
-
历史记录
礼品卡
get: /device/history/gift_card/
schema: {start_time:"",end_time:"", offset:"", limit:""}
IEnumerable<GiftCard> GetGiftCards(TimeRange tr, OffsetLimit ol);
销券
get: /device/history/promotion_trackers/
schema: {start_time:"",end_time:"", offset:"", limit:""}
IEnumerable<PromotionTracker> GetPromotionTrackers(TimeRange tr, OffsetLimit ol);
储值
get: /device/history/prepay/
schema: {start_time:"",end_time:"", offset:"", limit:""}
IEnumerable<PrepayTransaction> GetPrepays(TimeRange tr, OffsetLimit ol);
积分
get: /device/history/points/
schema: {start_time:"",end_time:"", offset:"", limit:""}
IEnumerable<PointTransaction> GetPointsTransactions(TimeRange tr,OffsetLimit ol)
收款
get: /device/huipay/
schema: {start_time:"",end_time:"", offset:"", limit:"",支付场景, 支付用途等}
IEnumerable<HuipayTransaction> GetTransaction(TimeRange tr, OffsetLimit ol, HuipayFilter hf);
数据汇总
get:/device/history/summary/
{start_time:"",end_time:""}
-