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.

194 lines
4.5 KiB
C#

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Rechargefree
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class RechargeFreeRequest
{
//==================================private==================================
#region field
//卡号
private string cardNo;
//充值方案ID
private string schemeId;
//充值金额(精确到分)
private int amount;
//赠送积分(精确到分)
private int giftPoint;
//赠送金额(精确到分)
private int giftAmount;
//支付方式
private string payType;
//支付凭证号
private string payVoucherNo;
//门店编号
private string shopNo;
//终端编号
private string posNo;
//员工编号
private string workerNo;
//终端标识(web、pos、wechat)
private string sourceSign = "pos";
#endregion
//==================================public==================================
#region cardNo 卡号
[JsonProperty(PropertyName = "cardNo")]
/// <summary>
/// 卡号
/// <summary>
public string CardNo
{
get { return cardNo; }
set { cardNo = value; }
}
#endregion
#region schemeId 充值方案ID
[JsonProperty(PropertyName = "schemeId")]
/// <summary>
/// 充值方案ID
/// <summary>
public string SchemeId
{
get { return schemeId; }
set { schemeId = value; }
}
#endregion
#region amount 充值金额(精确到分)
[JsonProperty(PropertyName = "amount")]
/// <summary>
/// 充值金额(精确到分)
/// <summary>
public int Amount
{
get { return amount; }
set { amount = value; }
}
#endregion
#region giftPoint 赠送积分(精确到分)
[JsonProperty(PropertyName = "giftPoint")]
/// <summary>
/// 赠送积分(精确到分)
/// <summary>
public int GiftPoint
{
get { return giftPoint; }
set { giftPoint = value; }
}
#endregion
#region giftAmount 赠送金额(精确到分)
[JsonProperty(PropertyName = "giftAmount")]
/// <summary>
/// 赠送金额(精确到分)
/// <summary>
public int GiftAmount
{
get { return giftAmount; }
set { giftAmount = value; }
}
#endregion
#region payType 支付方式
[JsonProperty(PropertyName = "payType")]
/// <summary>
/// 支付方式
/// <summary>
public string PayType
{
get { return payType; }
set { payType = value; }
}
#endregion
#region payVoucherNo 支付凭证号
[JsonProperty(PropertyName = "payVoucherNo")]
/// <summary>
/// 支付凭证号
/// <summary>
public string PayVoucherNo
{
get { return payVoucherNo; }
set { payVoucherNo = value; }
}
#endregion
#region shopNo 门店编号
[JsonProperty(PropertyName = "shopNo")]
/// <summary>
/// 门店编号
/// <summary>
public string ShopNo
{
get { return shopNo; }
set { shopNo = value; }
}
#endregion
#region posNo 终端编号
[JsonProperty(PropertyName = "posNo")]
/// <summary>
/// 终端编号
/// <summary>
public string PosNo
{
get { return posNo; }
set { posNo = value; }
}
#endregion
#region workerNo 员工编号
[JsonProperty(PropertyName = "workerNo")]
/// <summary>
/// 员工编号
/// <summary>
public string WorkerNo
{
get { return workerNo; }
set { workerNo = value; }
}
#endregion
#region sourceSign 终端标识(web、pos、wechat)
[JsonProperty(PropertyName = "sourceSign")]
/// <summary>
/// 终端标识(web、pos、wechat)
/// <summary>
public string SourceSign
{
get { return sourceSign; }
set { sourceSign = value; }
}
#endregion
}
}