NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayMerchantOrderRefundMo...

58 lines
2.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>
/// AlipayMerchantOrderRefundModel Data Structure.
/// </summary>
[Serializable]
public class AlipayMerchantOrderRefundModel : AopObject
{
/// <summary>
/// 业务场景,某些场景下操作的不是用户本身的订单,而是用户所在群体的订单的情况下,必传
/// </summary>
[XmlElement("biz_scene")]
public string BizScene { get; set; }
/// <summary>
/// 下单时候的买家id
/// </summary>
[XmlElement("buyer")]
public UserIdentity Buyer { get; set; }
/// <summary>
/// 退款扩展信息
/// </summary>
[XmlArray("ext_info")]
[XmlArrayItem("order_ext_info")]
public List<OrderExtInfo> ExtInfo { get; set; }
/// <summary>
/// 下单并支付的时候返回的订单号,与外部请求号两者之间必须传一个
/// </summary>
[XmlElement("order_id")]
public string OrderId { get; set; }
/// <summary>
/// 创建订单时传入的外部请求号
/// </summary>
[XmlElement("out_biz_no")]
public string OutBizNo { get; set; }
/// <summary>
/// 退款原因描述,可能是用户发起退款、或者是系统异常发起的回补退款
/// </summary>
[XmlElement("refund_reason")]
public string RefundReason { get; set; }
/// <summary>
/// 退款请求比如下面的请求代表在这次退款中退2000家庭积分[{"request_no":"2019678438","amount":{"type":"FAMILY_POINT","amount":2000}}]。之所以是一个list是为了支持多笔退款退款失败重试请不要更换request_no。单次全额退的request_no可以用out_biz_no
/// </summary>
[XmlArray("refund_request")]
[XmlArrayItem("payment_information")]
public List<PaymentInformation> RefundRequest { get; set; }
}
}