示例#1
0
        public static WeMembercardUpdateResponse MemberCardUpdate(string code, int addBonus,
                                                                  string recordBonus, int addBalance, string recordBalance, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string             url     = WeUtil.GetUrl(WeCardConst.MEMBERCARD_UPDATE);
            WeMembercardUpdate request = new WeMembercardUpdate(code)
            {
                AddBonus      = addBonus,
                RecordBonus   = recordBonus,
                AddBalance    = addBalance,
                RecordBalance = recordBalance,
                CardId        = cardId
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeMembercardUpdateResponse());

            return(result);
        }
示例#2
0
        public static WeMembercardUpdateResponse MemberCardUpdate(string code, int addBonus,
            string recordBonus, int addBalance, string recordBalance, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string url = WeUtil.GetUrl(WeCardConst.MEMBERCARD_UPDATE);
            WeMembercardUpdate request = new WeMembercardUpdate(code)
            {
                AddBonus = addBonus,
                RecordBonus = recordBonus,
                AddBalance = addBalance,
                RecordBalance = recordBalance,
                CardId = cardId
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeMembercardUpdateResponse());
            return result;
        }