Files
juipnet/Infrastructure/ServiceClient/Alipay.AopSdk.Core/Domain/TemplateFieldRuleDTO.cs
wanyongkang d318014316 初始提交
2020-10-07 20:25:03 +08:00

33 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// TemplateFieldRuleDTO Data Structure.
/// </summary>
[Serializable]
public class TemplateFieldRuleDTO : AopObject
{
/// <summary>
/// 字段名称现在支持如下几个Key暂不支持自定义 Balance金额 Point整数 Level任意字符串 OpenDate开卡日期 ValidDate过期日期
/// </summary>
[JsonProperty("field_name")]
public string FieldName { get; set; }
/// <summary>
/// 规则名 1、ASSIGN_FROM_REQUEST: 以rule_value为key值表示该栏位的值从会员卡开卡接口中获取会员卡开卡接口的card_info中获取对应参数值 2、DATE_IN_FUTURE:
/// 生成一个未来的日期格式YYYY-MM-DD)当选择DATE_IN_FUTURE的时候field_name 必须是OpenDate或ValidDate 值为(10m或10d 分别表示10个月或10天) 3、CONST:
/// 常量会员卡开卡接口进行开卡的时候使用模板创建时候设置的值即取rule_value的值
/// </summary>
[JsonProperty("rule_name")]
public string RuleName { get; set; }
/// <summary>
/// 根据rule_name采取相应取值策略 CONST直接取rule_value作为卡属性值 DATE_IN_FUTURE10m或10d 分别表示10个月或10天
/// ASSIGN_FROM_REQUEST在开卡Reuqest请求中按rule_value取值现在和field_name对应的为OpenDate、ValidDate、Level、Point、Balance
/// </summary>
[JsonProperty("rule_value")]
public string RuleValue { get; set; }
}
}