You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

292 lines
8.1 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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