NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayMerchantOrderCreatean...

72 lines
3.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayMerchantOrderCreateandpayModel Data Structure.
/// </summary>
[Serializable]
public class AlipayMerchantOrderCreateandpayModel : AopObject
{
/// <summary>
/// 不同的业务类型有不同的状态推进逻辑,同时对于支付的驱动有不同的处理方法。如阿里云的现金支付不需要订单驱动,阿里云的纯积分支付需要等待代扣成功消息才算支付成功。
/// </summary>
[XmlElement("biz_scene")]
public string BizScene { get; set; }
/// <summary>
/// 买家身份
/// </summary>
[XmlElement("buyer")]
public UserIdentity Buyer { get; set; }
/// <summary>
/// 业务扩展参数(键值对列表,有重复的键后者覆盖前者,建议唯一,以免出现不可预期的结果),比如在阿里云购买场景下可以传[{"ext_key":"aliyun_order_id","ext_value":"20196478824390"}]
/// </summary>
[XmlArray("ext_info")]
[XmlArrayItem("order_ext_info")]
public List<OrderExtInfo> ExtInfo { get; set; }
/// <summary>
/// 商品信息包括alipay商品skuId、购买数量等信息
/// </summary>
[XmlArray("goods_infos")]
[XmlArrayItem("goods_information")]
public List<GoodsInformation> GoodsInfos { get; set; }
/// <summary>
/// 订单金额,比如[{"type":"MONEY","amount":88.66},{"type":"FAMILY_POINT","amount":2000}]代表订单中所有商品需要支付的总金额是88.66元+2000家庭积分。
/// </summary>
[XmlArray("order_amount")]
[XmlArrayItem("price_information")]
public List<PriceInformation> OrderAmount { get; set; }
/// <summary>
/// 外部业务号用于幂等控制64个字符以内、可包含字母、数字、下划线需保证在商户端不重复
/// </summary>
[XmlElement("out_biz_no")]
public string OutBizNo { get; set; }
/// <summary>
/// 支付请求比如下面的请求代表在这次下单中支付2000家庭积分[{"request_no":"2019678438","action":"PAY","amount":{"type":"FAMILY_POINT","amount":2000}}]如果是现金单位元。之所以是一个list是为了支持多笔支付支付失败重试请不要更换request_no
/// </summary>
[XmlArray("payment_request")]
[XmlArrayItem("payment_information")]
public List<PaymentInformation> PaymentRequest { get; set; }
/// <summary>
/// 卖家身份
/// </summary>
[XmlElement("seller")]
public UserIdentity Seller { get; set; }
/// <summary>
/// service_type是基于biz_scene的biz_scene+service_type唯一标识了一个业务场景
/// </summary>
[XmlElement("service_type")]
public string ServiceType { get; set; }
}
}