NewGaoKaoApi/PaymentSDK/AliPay/Domain/MerchantCard.cs

81 lines
3.5 KiB
C#
Raw Permalink Blame History

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.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// MerchantCard Data Structure.
/// </summary>
[Serializable]
public class MerchantCard : AopObject
{
/// <summary>
/// 资金卡余额,单位:元,精确到小数点后两位。
/// </summary>
[XmlElement("balance")]
public string Balance { get; set; }
/// <summary>
/// 支付宝业务卡号 说明: 1、开卡成功后返回该参数需要保存留用 2、开卡/更新/删卡/查询卡接口请求中不需要传该参数;
/// </summary>
[XmlElement("biz_card_no")]
public string BizCardNo { get; set; }
/// <summary>
/// 商户外部会员卡卡号 说明: 1、会员卡开卡接口如果卡类型为外部会员卡请求中则必须提供该参数 2、更新、查询、删除等接口请求中则不需要提供该参数值
/// </summary>
[XmlElement("external_card_no")]
public string ExternalCardNo { get; set; }
/// <summary>
/// 卡面展示图片的图片ID通过接口alipay.offline.material.image.upload上传图片 这里预期展示的是个人照片; 图片说明1M以内格式bmp、png、jpeg、jpg、gif 图片尺寸为230*295px可等比放大
/// </summary>
[XmlElement("front_image_id")]
public string FrontImageId { get; set; }
/// <summary>
/// 卡面文案列表1项对应1行文案最多只能传入4行文案 单行文案展现分为左右两部分左边对应label字段右边对应value 形如: 学院 新闻学院
/// </summary>
[XmlArray("front_text_list")]
[XmlArrayItem("card_front_text_d_t_o")]
public List<CardFrontTextDTO> FrontTextList { get; set; }
/// <summary>
/// 会员卡等级(由商户自定义,并可以在卡模板创建时,定义等级信息)
/// </summary>
[XmlElement("level")]
public string Level { get; set; }
/// <summary>
/// 商户动态码回传信息: 只用于当write_off_type核销类型为mdbarcode或mdqrcode时商户调用卡更新接口回传动态码。如需使用商户动态码请联系支付宝技术支持获取相关文档。
/// </summary>
[XmlElement("mdcode_info")]
public MdCodeInfoDTO MdcodeInfo { get; set; }
/// <summary>
/// 会员卡开卡时间格式为yyyy-MM-dd HH:mm:ss。会员卡更新时该时间不支持修改请传入调用开卡接口时传入的card_ext_info.open_date时间。
/// </summary>
[XmlElement("open_date")]
public string OpenDate { get; set; }
/// <summary>
/// 会员卡积分积分必须为数字型可为浮点型带2位小数点
/// </summary>
[XmlElement("point")]
public string Point { get; set; }
/// <summary>
/// 会员卡更换不同的卡模板(该参数仅用在会员卡更新接口中)
/// </summary>
[XmlElement("template_id")]
public string TemplateId { get; set; }
/// <summary>
/// 会员卡有效期格式为yyyy-MM-dd HH:mm:ss。会员卡更新时该时间不支持修改请传入调用开卡接口时传入的card_ext_info.valid_date时间。
/// </summary>
[XmlElement("valid_date")]
public string ValidDate { get; set; }
}
}