mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(tenpayv3): 随官方更新消费者投诉相关接口模型
This commit is contained in:
parent
361d6b1dde
commit
8fc7dacd88
@ -1,10 +1,7 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
|
@ -118,6 +118,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("complaint_media_list")]
|
||||
public Types.ComplaintMedia[] ComplaintMediaList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置问题类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("problem_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("problem_type")]
|
||||
public string? ProblemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置问题描述。
|
||||
/// </summary>
|
||||
@ -125,6 +132,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("problem_description")]
|
||||
public string ProblemDescription { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("apply_refund_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("apply_refund_amount")]
|
||||
public int? ApplyRefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置投诉单是否已全额退款。
|
||||
/// </summary>
|
||||
@ -145,5 +159,12 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[Newtonsoft.Json.JsonProperty("user_complaint_times")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_complaint_times")]
|
||||
public int UserComplaintTimes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户标签列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_tag_list")]
|
||||
public string[]? UserTagList { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -82,6 +82,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("complaint_media_list")]
|
||||
public Types.ComplaintMedia[] ComplaintMediaList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置问题类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("problem_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("problem_type")]
|
||||
public string? ProblemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置问题描述。
|
||||
/// </summary>
|
||||
@ -89,6 +96,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("problem_description")]
|
||||
public string ProblemDescription { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申请退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("apply_refund_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("apply_refund_amount")]
|
||||
public int? ApplyRefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置投诉单是否已全额退款。
|
||||
/// </summary>
|
||||
@ -109,6 +123,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[Newtonsoft.Json.JsonProperty("user_complaint_times")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_complaint_times")]
|
||||
public int UserComplaintTimes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户标签列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_tag_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_tag_list")]
|
||||
public string[]? UserTagList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,52 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /merchant-service/complaints-v2/{complaint_id}/update-refund-progress 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class UpdateMerchantServiceComplaintRefundProgressRequest : WechatTenpayRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置投诉单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ComplaintId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审批动作。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("action")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("action")]
|
||||
public string Action { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预计发起退款天数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("launch_refund_day")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("launch_refund_day")]
|
||||
public int? LaunchRefundDays { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置拒绝退款原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reject_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reject_reason")]
|
||||
public string? RejectReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置拒绝退款的举证图片 MediaId 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reject_media_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reject_media_list")]
|
||||
public IList<string>? RejectMediaIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /merchant-service/complaints-v2/{complaint_id}/update-refund-progress 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class UpdateMerchantServiceComplaintRefundProgressResponse : WechatTenpayResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -21,9 +21,9 @@
|
||||
"amount": 3
|
||||
},
|
||||
{
|
||||
"transaction_id": "4200000404201909069117982536",
|
||||
"out_trade_no": "20190906154617947772231",
|
||||
"amount": 9
|
||||
"transaction_id": "4200000404201909069117582836",
|
||||
"out_trade_no": "20190906154617947762291",
|
||||
"amount": 4
|
||||
}
|
||||
],
|
||||
"complaint_full_refunded": true,
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"action": "REJECT",
|
||||
"launch_refund_day": 3,
|
||||
"reject_media_list": [ "file23578_21798531.jpg" ],
|
||||
"reject_reason": "拒绝退款",
|
||||
"remark": "不同意退款"
|
||||
}
|
Loading…
Reference in New Issue
Block a user