mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-11-24 08:33:17 +08:00
feat(tenpayv3): 随官方更新平台收付通分账相关接口模型
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /ecommerce/profitsharing/returnorders 接口的请求。</para>
|
||||
@@ -33,6 +33,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_return_no")]
|
||||
public string OutReturnNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回退商户号。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@@ -11,13 +11,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
public class Receiver
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分账接收商户号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_mchid")]
|
||||
public string MerchantId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账接收方类型。
|
||||
/// </summary>
|
||||
@@ -25,6 +18,14 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账接收商户号。
|
||||
/// </summary>
|
||||
[Obsolete("相关接口或字段于 2025-09-29 下线。")]
|
||||
[Newtonsoft.Json.JsonProperty("receiver_mchid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_mchid")]
|
||||
public string? MerchantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账接收方账户。
|
||||
/// </summary>
|
||||
@@ -46,6 +47,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账明细单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_id")]
|
||||
public string DetailId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分账结果。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@@ -42,6 +42,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_no")]
|
||||
public string ReturnId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
public string? TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回退商户号。
|
||||
/// </summary>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"appid": "wx8888888888888888",
|
||||
"sub_mchid": "1900000109",
|
||||
"transaction_id": "4208450740201411110007820472",
|
||||
@@ -6,9 +6,10 @@
|
||||
"receivers": [
|
||||
{
|
||||
"type": "MERCHANT_ID",
|
||||
"receiver_account": "1900000110",
|
||||
"receiver_account": "1900000109",
|
||||
"amount": 100,
|
||||
"description": "分给商户1900000110"
|
||||
"description": "分给商户1900000110",
|
||||
"receiver_name": "hu89ohu89ohu89o"
|
||||
}
|
||||
],
|
||||
"finish": true
|
||||
|
||||
@@ -1,6 +1,19 @@
|
||||
{
|
||||
{
|
||||
"sub_mchid": "1900000109",
|
||||
"transaction_id": "4208450740201411110007820472",
|
||||
"out_order_no": "P20150806125346",
|
||||
"order_id": "3008450740201411110007820472"
|
||||
"order_id": "3008450740201411110007820472",
|
||||
"receivers": [
|
||||
{
|
||||
"amount": 100,
|
||||
"description": "分给商户1900000110",
|
||||
"result": "SUCCESS",
|
||||
"finish_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"fail_reason": "ACCOUNT_ABNORMAL",
|
||||
"type": "MERCHANT_ID",
|
||||
"receiver_account": "1900000109",
|
||||
"detail_id": "36011111111111111111111"
|
||||
}
|
||||
],
|
||||
"status": "PROCESSING"
|
||||
}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
{
|
||||
{
|
||||
"sub_mchid": "1900000109",
|
||||
"order_id": "3008450740201411110007820472",
|
||||
"out_order_no": "P20150806125346",
|
||||
"out_return_no": "R20190516001",
|
||||
"return_mchid": "86693852",
|
||||
"amount": 10,
|
||||
"description": "分账回退"
|
||||
"description": "分账回退",
|
||||
"transaction_id": "4208450740201411110007820472"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"sub_mchid": "1900000109",
|
||||
"transaction_id": "4208450740201411110007820472",
|
||||
"out_order_no": "P20150806125346",
|
||||
@@ -11,7 +11,10 @@
|
||||
"description": "分给商户1900000110",
|
||||
"result": "SUCCESS",
|
||||
"finish_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"fail_reason": "ACCOUNT_ABNORMAL"
|
||||
"fail_reason": "ACCOUNT_ABNORMAL",
|
||||
"type": "MERCHANT_ID",
|
||||
"receiver_account": "1900000109",
|
||||
"detail_id": "36011111111111111111111"
|
||||
}
|
||||
],
|
||||
"finish_amount": 100,
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
{
|
||||
"sub_mchid": "1900000109",
|
||||
"order_id": "3008450740201411110007820472",
|
||||
"out_order_no": "P20150806125346",
|
||||
"out_return_no": "R20190516001",
|
||||
"return_no": "3008450740201411110007820472",
|
||||
"return_mchid": "86693852",
|
||||
"amount": 10,
|
||||
"return_no": "3008450740201411110007820472",
|
||||
"result": "SUCCESS",
|
||||
"fail_reason": "TIME_OUT_CLOSED",
|
||||
"finish_time": "2015-05-20T13:29:35.120+08:00"
|
||||
"finish_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"transaction_id": "4208450740201411110007820472"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user