mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(tenpayv3): 随官方更新平台收付通申请资金出境的接口模型
This commit is contained in:
+63
-25
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
@@ -40,6 +40,54 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
@@ -64,23 +112,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
@@ -134,6 +165,20 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_info")]
|
||||
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>
|
||||
@@ -141,13 +186,6 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("seller_info")]
|
||||
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>
|
||||
|
||||
+7
-1
@@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"amount": 10,
|
||||
"express_info": {
|
||||
"courier_number": "curier_number_1231",
|
||||
@@ -13,6 +13,12 @@
|
||||
"goods_unit_price": 1
|
||||
}
|
||||
],
|
||||
"presale_info": {
|
||||
"type": "DEPOSIT",
|
||||
"deposit_transaction_id": "4208450740201411110007820472",
|
||||
"balance_transaction_id": "4208450740201411110007820472",
|
||||
"total_amount": 10
|
||||
},
|
||||
"out_order_id": "merchant_1123123",
|
||||
"payee_info": {
|
||||
"payee_id": "ID123112312"
|
||||
|
||||
Reference in New Issue
Block a user