using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
///
/// AlipayDataAiservicePriceoptimizerDataSyncModel Data Structure.
///
[Serializable]
public class AlipayDataAiservicePriceoptimizerDataSyncModel : AopObject
{
///
/// 优惠算法类型,如: alipay_algo:支付宝算法 mer_algo:接入方自有算法 random:随机算法 fixed_amount:固定金额 (可不传)
///
[XmlElement("algo_type")]
public string AlgoType { get; set; }
///
/// 内部接口版本号
///
[XmlElement("app_version")]
public string AppVersion { get; set; }
///
/// 原价,单位为分(可不传)
///
[XmlElement("base_price")]
public long BasePrice { get; set; }
///
/// 事件时间(可不传)
///
[XmlElement("biz_time")]
public string BizTime { get; set; }
///
/// 优惠券核销数据回流时填写 交易类型为储值卡或周期卡类型时填写,如储值卡id (可不传)
///
[XmlElement("card_id")]
public string CardId { get; set; }
///
/// 市,可不传
///
[XmlElement("city_code")]
public string CityCode { get; set; }
///
/// 扩展信息,json字符串格式。 如:对于哈啰数据回流场景,这个字段内容为 原opdata字段内容,注意在json字符串中新增priority字段表示该卡是否经过排序, 数字越大,优先级越高,-1表示没有经过排序
///
[XmlElement("ext_info")]
public string ExtInfo { get; set; }
///
/// 优惠券领取数据回流时填写 优惠领取方式 优惠领取方式,如: by_click:手动点击领取、 auto_recive:自动推送、 promotion:优惠活动(无券)(可不传)
///
[XmlElement("get_coupon_method")]
public string GetCouponMethod { get; set; }
///
/// 代理商id(可不传)
///
[XmlElement("merchant_id")]
public string MerchantId { get; set; }
///
/// 操作类型,用于区分不同的数据回流类型 coupon:优惠领取 trade:优惠核销 (可不传)
///
[XmlElement("op_type")]
public string OpType { get; set; }
///
/// 优惠券核销数据回流时填写 单位为分。接入方内部优惠后的支付价格,不考虑其他渠道(如支付渠道)叠加的优惠 (可不传)
///
[XmlElement("payment_price")]
public long PaymentPrice { get; set; }
///
/// 优惠券核销数据回流时填写 支付渠道 alipay_account:支付宝支付 merchant_account:接入方账户余额 weixin_pay:微信支付 (可不传)
///
[XmlElement("payment_type")]
public string PaymentType { get; set; }
///
/// 如 online_car:网约车 card50:50元储值卡(可不传)
///
[XmlElement("product_type")]
public string ProductType { get; set; }
///
/// 优惠额度, 优惠类型为打折时,优惠额度取值是0-1之间的小数;为金额时单位为分。(可不传)
///
[XmlElement("promo_price")]
public long PromoPrice { get; set; }
///
/// 优惠券领取数据回流时填写 优惠领取入口(可不传)
///
[XmlElement("promo_source")]
public string PromoSource { get; set; }
///
/// 优惠类型,如 present:赠送 discount:打折(或折扣券) reduction:立减(或现金券)(可不传)
///
[XmlElement("promo_type")]
public string PromoType { get; set; }
///
/// 标识业务场景 bike_coupon_info:单车 ebike_coupon_info:电单车
///
[XmlElement("scene_code")]
public string SceneCode { get; set; }
///
/// 场景的来源渠道,本场景传入hellobike
///
[XmlElement("service_name")]
public string ServiceName { get; set; }
///
/// 串联定价-领取-核销的唯一ID
///
[XmlElement("trace_id")]
public string TraceId { get; set; }
///
/// 渠道 alipay_tinyapp:支付宝小程序 app:app客户端(可不传)
///
[XmlElement("trade_channel")]
public string TradeChannel { get; set; }
///
/// 最小定价单元id 接入方有细分的定价单元时填写,如站点ID,没有时为空(可不传)
///
[XmlElement("unit_id")]
public string UnitId { get; set; }
///
/// 目标用户ID传入用户的支付宝user_id(如无支付宝user_id本字段可空)
///
[XmlElement("user_id")]
public string UserId { get; set; }
///
/// 优惠券领取数据回流时填写 优惠有效期(可不传)
///
[XmlElement("valid_time")]
public string ValidTime { get; set; }
}
}