using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using POSV.Bean; namespace POSV.Card { /// /// 会员信息查询应答结果 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] public class MemberInfoQueryResponse { /// /// 获取方式:手机号、卡号、扫电子会员 /// [JsonProperty(PropertyName = "getWay")] public MemberCardNoType GetWay { get; set; } /// /// 系统主键 /// [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// /// 企业编号 /// [JsonProperty(PropertyName = "tenantId")] public string TenantId { get; set; } /// /// 姓名 /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// 手机号码 /// [JsonProperty(PropertyName = "mobile")] public string Mobile { get; set; } /// /// 联系电话 /// [JsonProperty(PropertyName = "linkphone")] public string LinkPhone { get; set; } /// /// 生日(格式:yyyy-MM-dd) /// [JsonProperty(PropertyName = "birthday")] public string Birthday { get; set; } /// /// 是否公历(0-否;1-是;) /// [JsonProperty(PropertyName = "isSolar")] public int IsSolar { get; set; } /// /// 性别(0-女;1-男;) /// [JsonProperty(PropertyName = "sex")] public int Sex { get; set; } /// /// 家庭住址 /// [JsonProperty(PropertyName = "address")] public string Address { get; set; } /// /// QQ号码 /// [JsonProperty(PropertyName = "qq")] public string QQ { get; set; } /// /// 电子邮箱 /// [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// 备注 /// [JsonProperty(PropertyName = "description")] public string Description { get; set; } /// /// 会员来源标识 /// [JsonProperty(PropertyName = "sourceSign")] public string SourceSign { get; set; } /// /// 会员来源标识名称 /// [JsonProperty(PropertyName = "sourceName")] public string SourceName { get; set; } /// /// 是否享受会员价(0-不享受 1-享受) /// [JsonProperty(PropertyName = "memberPriceFlag")] public int MemberPriceFlag { get; set; } /// /// 会员类型编码 /// [JsonProperty(PropertyName = "memberTypeNo")] public string MemberTypeNo { get; set; } /// /// 会员类型名称 /// [JsonProperty(PropertyName = "memberTypeName")] public string MemberTypeName { get; set; } /// /// 会员等级编号 /// [JsonProperty(PropertyName = "memberLevelNo")] public string MemberLevelNo { get; set; } /// /// 会员等级名称 /// [JsonProperty(PropertyName = "memberLevelName")] public string MemberLevelName { get; set; } /// /// 折扣方式(1-不优惠 2-折扣 3-优惠固定金额) /// [JsonProperty(PropertyName = "dicountWay")] public int DicountWay { get; set; } /// /// 折扣(dicountWay为2时,8-表示打八折;dicountWay为3时,表示减免固定金额) /// [JsonProperty(PropertyName = "discount")] public decimal Discount { get; set; } /// /// 证件类型编号 /// [JsonProperty(PropertyName = "creTypeNo")] public string CreTypeNo { get; set; } /// /// 证件类型名称 /// [JsonProperty(PropertyName = "creTypeName")] public string CreTypeName { get; set; } /// /// 证件类型名称 /// [JsonProperty(PropertyName = "creNo")] public string CreNo { get; set; } /// /// 卡信息列表 /// [JsonProperty(PropertyName = "cardList")] public List CardList { get; set; } /// /// 当前选择使用的会员卡 /// [JsonProperty(PropertyName = "card")] public MemberCard CurrentCard { get; set; } } [Serializable] [JsonObject(MemberSerialization.OptIn)] public class MemberCard { /// /// 卡号 /// [JsonProperty(PropertyName = "cardNo")] public string CardNo { get; set; } /// /// 状态(1-正常;2-预售;3-挂失;4-冻结;5-销户;) /// [JsonProperty(PropertyName = "status")] public int Status { get; set; } public string CardStatus { get; set; } /// /// 卡类型ID /// [JsonProperty(PropertyName = "cardTypeId")] public string CardTypeId { get; set; } /// /// 卡类型编号 /// [JsonProperty(PropertyName = "cardTypeNo")] public string CardTypeNo { get; set; } /// /// 卡类型名称 /// [JsonProperty(PropertyName = "cardTypeName")] public string CardTypeName { get; set; } /// /// 卡等级ID /// [JsonProperty(PropertyName = "cardLevelId")] public string CardLevelId { get; set; } /// /// 卡等级编号 /// [JsonProperty(PropertyName = "cardLevelNo")] public string CardLevelNo { get; set; } /// /// 卡面号 /// [JsonProperty(PropertyName = "faceNo")] public string FaceNo { get; set; } /// /// 卡等级名称 /// [JsonProperty(PropertyName = "cardLevelName")] public string CardLevelName { get; set; } /// /// 会员ID /// [JsonProperty(PropertyName = "memberId")] public string MemberId { get; set; } /// /// 总余额 /// [JsonProperty(PropertyName = "totalAmount")] public decimal TotalAmount { get; set; } /// /// 保底金額 /// [JsonProperty(PropertyName = "baseAmount")] public decimal BaseAmount { get; set; } /// /// 冻结余额 /// [JsonProperty(PropertyName = "stageAmount")] public decimal StageAmount { get; set; } /// /// 可用余额 /// [JsonProperty(PropertyName = "availableAmount")] public decimal AvailableAmount { get; set; } /// /// 总积分 /// [JsonProperty(PropertyName = "totalPoint")] public decimal TotalPoint { get; set; } /// /// 是否启用小额免密支付(0-否;1-是;) /// [JsonProperty(PropertyName = "isNoPwd")] public int IsNoPwd { get; set; } /// /// 单笔免密额度 /// [JsonProperty(PropertyName = "npAmount")] public decimal NpAmount { get; set; } } }