using System; using System.Collections.Generic; using Newtonsoft.Json; namespace Alipay.AopSdk.Core.Domain { /// /// AlipayTradePrecreateModel Data Structure. /// [Serializable] public class AlipayTradePrecreateModel : AopObject { /// /// 支付宝店铺的门店ID /// [JsonProperty("alipay_store_id")] public string AlipayStoreId { get; set; } /// /// 对交易或商品的描述 /// [JsonProperty("body")] public string Body { get; set; } /// /// 买家支付宝账号 /// [JsonProperty("buyer_logon_id")] public string BuyerLogonId { get; set; } /// /// 禁用渠道,用户不可用指定渠道支付 当有多个渠道时用“,”分隔 注,与enable_pay_channels互斥 /// [JsonProperty("disable_pay_channels")] public string DisablePayChannels { get; set; } /// /// 可打折金额. 参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果该值未传入,但传入了【订单总金额】,【不可打折金额】则该值默认为【订单总金额】-【不可打折金额】 /// [JsonProperty("discountable_amount")] public string DiscountableAmount { get; set; } /// /// 可用渠道,用户只能在指定渠道范围内支付 当有多个渠道时用“,”分隔 注,与disable_pay_channels互斥 /// [JsonProperty("enable_pay_channels")] public string EnablePayChannels { get; set; } /// /// 外部指定买家 /// [JsonProperty("ext_user_info")] public ExtUserInfo ExtUserInfo { get; set; } /// /// 业务扩展参数 /// [JsonProperty("extend_params")] public ExtendParams ExtendParams { get; set; } /// /// 订单包含的商品列表信息.Json格式. 其它说明详见:“商品明细说明” /// [JsonProperty("goods_detail")] public List GoodsDetail { get; set; } /// /// 商户操作员编号 /// [JsonProperty("operator_id")] public string OperatorId { get; set; } /// /// 商户订单号,64个字符以内、只能包含字母、数字、下划线;需保证在商户端不重复 /// [JsonProperty("out_trade_no")] public string OutTradeNo { get; set; } /// /// 描述分账信息,json格式。 /// [JsonProperty("royalty_info")] public RoyaltyInfo RoyaltyInfo { get; set; } /// /// 卖家支付宝用户ID。 如果该值为空,则默认为商户签约账号对应的支付宝用户ID /// [JsonProperty("seller_id")] public string SellerId { get; set; } /// /// 商户门店编号 /// [JsonProperty("store_id")] public string StoreId { get; set; } /// /// 二级商户信息,当前只对特殊银行机构特定场景下使用此字段 /// [JsonProperty("sub_merchant")] public SubMerchant SubMerchant { get; set; } /// /// 订单标题 /// [JsonProperty("subject")] public string Subject { get; set; } /// /// 商户机具终端编号 /// [JsonProperty("terminal_id")] public string TerminalId { get; set; } /// /// 该笔订单允许的最晚付款时间,逾期将关闭交易。取值范围:1m~15d。m-分钟,h-小时,d-天,1c-当天(1c-当天的情况下,无论交易何时创建,都在0点关闭)。 该参数数值不接受小数点, 如 1.5h,可转换为 90m。 /// [JsonProperty("timeout_express")] public string TimeoutExpress { get; set; } /// /// 订单总金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果同时传入了【打折金额】,【不可打折金额】,【订单总金额】三者,则必须满足如下条件:【订单总金额】=【打折金额】+【不可打折金额】 /// [JsonProperty("total_amount")] public string TotalAmount { get; set; } /// /// 不可打折金额. 不参与优惠计算的金额,单位为元,精确到小数点后两位,取值范围[0.01,100000000] 如果该值未传入,但传入了【订单总金额】,【打折金额】,则该值默认为【订单总金额】-【打折金额】 /// [JsonProperty("undiscountable_amount")] public string UndiscountableAmount { get; set; } } }