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); }
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; }