feat(tenpayv3): 随官方更新平台收付通申请资金出境的接口模型

This commit is contained in:
Fu Diwei
2023-08-11 09:35:35 +08:00
parent 632980c857
commit 104013649f
2 changed files with 70 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
{ {
@@ -40,6 +40,54 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
public int UnitPrice { get; set; } public int UnitPrice { get; set; }
} }
public class Express
{
/// <summary>
/// 获取或设置物流单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("courier_number")]
[System.Text.Json.Serialization.JsonPropertyName("courier_number")]
public string CourierNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置物流商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("express_company_name")]
[System.Text.Json.Serialization.JsonPropertyName("express_company_name")]
public string ExpressCompanyName { get; set; } = string.Empty;
}
public class Presale
{
/// <summary>
/// 获取或设置订单类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public string Type { get; set; } = string.Empty;
/// <summary>
/// 获取或设置关联定金订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("deposit_transaction_id")]
[System.Text.Json.Serialization.JsonPropertyName("deposit_transaction_id")]
public string? DepositTransactionId { get; set; }
/// <summary>
/// 获取或设置关联尾款订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("balance_transaction_id")]
[System.Text.Json.Serialization.JsonPropertyName("balance_transaction_id")]
public string? BalanceTransactionId { get; set; }
/// <summary>
/// 获取或设置预售订单总金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_amount")]
[System.Text.Json.Serialization.JsonPropertyName("total_amount")]
public int TotalAmount { get; set; }
}
public class Seller public class Seller
{ {
/// <summary> /// <summary>
@@ -64,23 +112,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
public string SellerId { get; set; } = string.Empty; public string SellerId { get; set; } = string.Empty;
} }
public class Express
{
/// <summary>
/// 获取或设置物流单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("courier_number")]
[System.Text.Json.Serialization.JsonPropertyName("courier_number")]
public string CourierNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置物流商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("express_company_name")]
[System.Text.Json.Serialization.JsonPropertyName("express_company_name")]
public string ExpressCompanyName { get; set; } = string.Empty;
}
public class Payee public class Payee
{ {
/// <summary> /// <summary>
@@ -134,6 +165,20 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
[System.Text.Json.Serialization.JsonPropertyName("goods_info")] [System.Text.Json.Serialization.JsonPropertyName("goods_info")]
public IList<Types.Goods>? GoodsList { get; set; } public IList<Types.Goods>? GoodsList { get; set; }
/// <summary>
/// 获取或设置物流信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("express_info")]
[System.Text.Json.Serialization.JsonPropertyName("express_info")]
public Types.Express? Express { get; set; }
/// <summary>
/// 获取或设置预售信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("presale_info")]
[System.Text.Json.Serialization.JsonPropertyName("presale_info")]
public Types.Presale? Presale { get; set; }
/// <summary> /// <summary>
/// 获取或设置卖家信息。 /// 获取或设置卖家信息。
/// </summary> /// </summary>
@@ -141,13 +186,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
[System.Text.Json.Serialization.JsonPropertyName("seller_info")] [System.Text.Json.Serialization.JsonPropertyName("seller_info")]
public Types.Seller Seller { get; set; } = new Types.Seller(); public Types.Seller Seller { get; set; } = new Types.Seller();
/// <summary>
/// 获取或设置物流信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("express_info")]
[System.Text.Json.Serialization.JsonPropertyName("express_info")]
public Types.Express Express { get; set; } = new Types.Express();
/// <summary> /// <summary>
/// 获取或设置付款人信息。 /// 获取或设置付款人信息。
/// </summary> /// </summary>

View File

@@ -1,4 +1,4 @@
{ {
"amount": 10, "amount": 10,
"express_info": { "express_info": {
"courier_number": "curier_number_1231", "courier_number": "curier_number_1231",
@@ -13,6 +13,12 @@
"goods_unit_price": 1 "goods_unit_price": 1
} }
], ],
"presale_info": {
"type": "DEPOSIT",
"deposit_transaction_id": "4208450740201411110007820472",
"balance_transaction_id": "4208450740201411110007820472",
"total_amount": 10
},
"out_order_id": "merchant_1123123", "out_order_id": "merchant_1123123",
"payee_info": { "payee_info": {
"payee_id": "ID123112312" "payee_id": "ID123112312"