mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
feat(tenpayv3): 随官方更新境外商户入驻相关接口模型
This commit is contained in:
@@ -129,6 +129,23 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
||||||
public string? IdNumber { get; set; }
|
public string? IdNumber { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class H5PaymentApplyment
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置网站 URL。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("website_url")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("website_url")]
|
||||||
|
public string? WebsiteUrl { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置域名列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("domains")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("domains")]
|
||||||
|
public IList<string>? DomainList { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -256,5 +273,19 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("principal")]
|
[Newtonsoft.Json.JsonProperty("principal")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
||||||
public Types.Principal? Principal { get; set; }
|
public Types.Principal? Principal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否申请开通 H5 支付权限。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("apply_h5_payment")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("apply_h5_payment")]
|
||||||
|
public bool? IsApplyH5Payment { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付权限申请信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_payment_apply_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_payment_apply_info")]
|
||||||
|
public Types.H5PaymentApplyment? H5PaymentApplyment { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -25,5 +25,12 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("description")]
|
[Newtonsoft.Json.JsonProperty("description")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||||
public string? VerificationStatusDescription { get; set; }
|
public string? VerificationStatusDescription { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付认证状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_authorization_state")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_authorization_state")]
|
||||||
|
public string? H5AuthorizationState { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,6 +120,74 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
||||||
public string? IdNumber { get; set; }
|
public string? IdNumber { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class H5PaymentState
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置联系人姓名。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||||
|
public string? ContactName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置审核拒绝原因。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("audit_reject_detail")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("audit_reject_detail")]
|
||||||
|
public string? AuditRejectDetail { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付认证状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_authorization_state")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_authorization_state")]
|
||||||
|
public string? H5AuthorizationState { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class SubMerchantState
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class ApplicationRejectDetail
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置字段。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("field")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("field")]
|
||||||
|
public string? Field { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置原因。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("reason")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||||
|
public string? Reason { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子商户状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("sub_merchant_status")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("sub_merchant_status")]
|
||||||
|
public string? SubMerchantStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置申请状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("application_status")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("application_status")]
|
||||||
|
public string? ApplicationStatus { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置申请拒绝原因。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("application_reject_detail")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("application_reject_detail")]
|
||||||
|
public Types.ApplicationRejectDetail? ApplicationRejectDetail { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -220,5 +288,19 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("principal")]
|
[Newtonsoft.Json.JsonProperty("principal")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
||||||
public Types.Principal? Principal { get; set; }
|
public Types.Principal? Principal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付权限状态信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_payment")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_payment")]
|
||||||
|
public Types.H5PaymentState? H5PaymentState { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置子商户状态信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("sub_merchant_state")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("sub_merchant_state")]
|
||||||
|
public Types.SubMerchantState? SubMerchantState { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -22,6 +22,10 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
public class Principal : AddSubMerchantRequest.Types.Principal
|
public class Principal : AddSubMerchantRequest.Types.Principal
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class H5PaymentApplyment : AddSubMerchantRequest.Types.H5PaymentApplyment
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -149,5 +153,19 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("principal")]
|
[Newtonsoft.Json.JsonProperty("principal")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
||||||
public Types.Principal? Principal { get; set; }
|
public Types.Principal? Principal { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置是否申请开通 H5 支付权限。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("apply_h5_payment")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("apply_h5_payment")]
|
||||||
|
public bool? IsApplyH5Payment { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付权限申请信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_payment_apply_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_payment_apply_info")]
|
||||||
|
public Types.H5PaymentApplyment? H5PaymentApplyment { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,5 +11,12 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.ExtendedSDK.Global.Models
|
|||||||
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
||||||
public string SubMerchantId { get; set; } = default!;
|
public string SubMerchantId { get; set; } = default!;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置 H5 支付认证状态。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("h5_authorization_state")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("h5_authorization_state")]
|
||||||
|
public string? H5AuthorizationState { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"sub_mchid": "20000100",
|
"sub_mchid": "20000100",
|
||||||
"name": "test mcherchan_name",
|
"name": "test mcherchan_name",
|
||||||
"shortname": "mcherchan_name",
|
"shortname": "mcherchan_name",
|
||||||
@@ -12,5 +12,11 @@
|
|||||||
"principal": {
|
"principal": {
|
||||||
"name": "Bob",
|
"name": "Bob",
|
||||||
"number": "5555-8888"
|
"number": "5555-8888"
|
||||||
|
},
|
||||||
|
"h5_payment": {
|
||||||
|
"h5_authorization_state": "APPROVED"
|
||||||
|
},
|
||||||
|
"sub_merchant_state": {
|
||||||
|
"sub_merchant_status": "OPERATING"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user