接口文件

This commit is contained in:
“wanyongkang”
2024-04-10 13:55:27 +08:00
parent fff6bee06a
commit ed3b2c653e
3190 changed files with 268248 additions and 1 deletions

View File

@@ -0,0 +1,106 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// AlipayItemVoucherTemplete Data Structure.
/// </summary>
[Serializable]
public class AlipayItemVoucherTemplete : AopObject
{
/// <summary>
/// 延迟生效时间手动领取条件下可跟valid_period组合使用
/// </summary>
[JsonProperty("delay_minute")]
public long DelayMinute { get; set; }
/// <summary>
/// 券使用规则描述包括描述标题及描述内容列表。子参数只支持title、details其余参数暂不支持请不要填写。
/// </summary>
[JsonProperty("desc_details")]
public List<AlipayItemDescription> DescDetails { get; set; }
/// <summary>
/// 折扣率填写0-1间的小数且不包括0和1如八折则传入0.8。(折扣券类型必选字段,代金券不需要)
/// </summary>
[JsonProperty("discount_rate")]
public long DiscountRate { get; set; }
/// <summary>
/// 外部单品列表
/// </summary>
[JsonProperty("external_goods_list")]
public AlipayItemGoodsList ExternalGoodsList { get; set; }
/// <summary>
/// 使用时间规则,控制商品的生效时间。 时间单位MINUTE、HOUR、WEEK_DAY、DAY、WEEK、MONTH 限制规则INCLUDE、INCLUDE_INTERVAL 例如:每周日、周二的 0点-23点59分
/// "limit_period_info_list":[{"rule":"INCLUDE","unit":"WEEK_DAY","value":"7,2"},{"rule":"INCLUDE_INTERVAL","unit":"MINUTE","value":"0,1439"}]
/// </summary>
[JsonProperty("limit_period_info_list")]
public List<AlipayItemLimitPeriodInfo> LimitPeriodInfoList { get; set; }
/// <summary>
/// 商品原金额,单位(元),(代金券类型可选字段,折扣券不需要)
/// </summary>
[JsonProperty("original_amount")]
public long OriginalAmount { get; set; }
/// <summary>
/// 券原折扣,0-1之间做展示使用折扣券类型可选字段代金券不需要
/// </summary>
[JsonProperty("original_rate")]
public long OriginalRate { get; set; }
/// <summary>
/// 减至金额,单位(元),代表券可抵扣至多少(代金券类型可选字段,折扣券不需要)
/// </summary>
[JsonProperty("reduce_to_amount")]
public long ReduceToAmount { get; set; }
/// <summary>
/// 折扣金额取整规则 AUTO_ROUNDING_YUAN自动抹零到元 AUTO_ROUNDING_JIAO自动抹零到角 ROUNDING_UP_YUAN四舍五入到元 ROUNDING_UP_JIAO四舍五入到角
/// </summary>
[JsonProperty("rounding_rule")]
public string RoundingRule { get; set; }
/// <summary>
/// 起步金额,单位(元)
/// </summary>
[JsonProperty("threshold_amount")]
public long ThresholdAmount { get; set; }
/// <summary>
/// 起步数量,用于指定可享受优惠的起步单品购买数量
/// </summary>
[JsonProperty("threshold_quantity")]
public long ThresholdQuantity { get; set; }
/// <summary>
/// 领券之后多长时间内可以核销单位分钟传入数值需大于1440一天
/// </summary>
[JsonProperty("valid_period")]
public long ValidPeriod { get; set; }
/// <summary>
/// 价值金额,单位(元) CASH类型为代金券金额 DISCOUNT类型为优惠封顶金额 在代金券类型时value_amout与reduce_to_amount不能同时为空不能同时不为空。
/// </summary>
[JsonProperty("value_amount")]
public long ValueAmount { get; set; }
/// <summary>
/// 券的描述信息,目前客户端将统一展示“折扣须知”
/// </summary>
[JsonProperty("voucher_desc")]
public string VoucherDesc { get; set; }
/// <summary>
/// 券类型DISCOUNT折扣券、CASH代金券
/// </summary>
[JsonProperty("voucher_type")]
public string VoucherType { get; set; }
}
}