using System; using Newtonsoft.Json; namespace Alipay.AopSdk.Core.Domain { /// /// VoucherDetail Data Structure. /// [Serializable] public class VoucherDetail : AopObject { /// /// 优惠券面额,它应该会等于商家出资加上其他出资方出资 /// [JsonProperty("amount")] public string Amount { get; set; } /// /// 券id /// [JsonProperty("id")] public string Id { get; set; } /// /// 优惠券备注信息 /// [JsonProperty("memo")] public string Memo { get; set; } /// /// 商家出资(特指发起交易的商家出资金额) /// [JsonProperty("merchant_contribute")] public string MerchantContribute { get; set; } /// /// 券名称 /// [JsonProperty("name")] public string Name { get; set; } /// /// 其他出资方出资金额,可能是支付宝,可能是品牌商,或者其他方,也可能是他们的一起出资 /// [JsonProperty("other_contribute")] public string OtherContribute { get; set; } /// /// 如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时平台优惠的金额 /// [JsonProperty("purchase_ant_contribute")] public string PurchaseAntContribute { get; set; } /// /// 如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时用户实际付款的金额 /// [JsonProperty("purchase_buyer_contribute")] public string PurchaseBuyerContribute { get; set; } /// /// 如果使用的这张券是用户购买的,则该字段代表用户在购买这张券时商户优惠的金额 /// [JsonProperty("purchase_merchant_contribute")] public string PurchaseMerchantContribute { get; set; } /// /// 当前有三种类型: ALIPAY_FIX_VOUCHER - 全场代金券 ALIPAY_DISCOUNT_VOUCHER - 折扣券 ALIPAY_ITEM_VOUCHER - 单品优惠 /// 注:不排除将来新增其他类型的可能,商家接入时注意兼容性避免硬编码 /// [JsonProperty("type")] public string Type { get; set; } } }