mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-21 02:58:06 +08:00
224 lines
9.4 KiB
C#
224 lines
9.4 KiB
C#
![]() |
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// <para>表示 [GET] /merchants/{sub_mchid} 接口的响应。</para>
|
|||
|
/// </summary>
|
|||
|
public class GetSubMerchantResponse : WechatTenpayResponse
|
|||
|
{
|
|||
|
public static class Types
|
|||
|
{
|
|||
|
public class Contact
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置联系人姓名(需使用商户私钥解密)。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("name")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
|||
|
[WechatTenpaySensitiveProperty(algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS1)]
|
|||
|
public string Name { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置联系电话号码(需使用商户私钥解密)。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("phone")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("phone")]
|
|||
|
[WechatTenpaySensitiveProperty(algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS1)]
|
|||
|
public string PhoneNumber { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置联系邮箱(需使用商户私钥解密)。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("email")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
|||
|
[WechatTenpaySensitiveProperty(algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS1)]
|
|||
|
public string Email { get; set; } = default!;
|
|||
|
}
|
|||
|
|
|||
|
public class Business
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置业务类型。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("business_type")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("business_type")]
|
|||
|
public string BusinessType { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置商户类别编码。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("mcc")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("mcc")]
|
|||
|
public string? MerchantCategoryCode { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置 App 下载链接。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("app_download")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("app_download")]
|
|||
|
public string? AppDownloadUrl { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置业务网站链接。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("website")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("website")]
|
|||
|
public string? WebsiteUrl { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置公众号 AppId。</para>
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("office_account")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("office_account")]
|
|||
|
public string? OfficeAccountAppId { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置小程序 AppId。</para>
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("mini_program")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("mini_program")]
|
|||
|
public string? MiniProgramAppId { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置门店地址。</para>
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("store_address")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("store_address")]
|
|||
|
public string? StoreAddress { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class Director
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置董事姓名。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("name")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
|||
|
public string Name { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置董事证件号。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("number")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
|||
|
public string? IdNumber { get; set; }
|
|||
|
}
|
|||
|
|
|||
|
public class Principal
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置负责人姓名。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("name")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
|||
|
public string Name { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置负责人证件号。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("number")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("number")]
|
|||
|
public string? IdNumber { get; set; }
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置子商户号。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("sub_mchid")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
|
|||
|
public string SubMerchantId { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置商户类型。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("merchant_type")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("merchant_type")]
|
|||
|
public string MerchantType { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置子商户全称。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("name")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
|||
|
public string MerchantName { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置子商户简称。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("shortname")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("shortname")]
|
|||
|
public string MerchantShortName { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置注册国家或地区代码。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("merchant_country_code")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("merchant_country_code")]
|
|||
|
public string CountryCode { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置公司电话号码。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("office_phone")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("office_phone")]
|
|||
|
public string OfficePhoneNumber { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置联系人信息。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("contact")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("contact")]
|
|||
|
public Types.Contact Contact { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置商业类目编码。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("business_category")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("business_category")]
|
|||
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
|||
|
public int BusinessCategoryCode { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置公司注册文件编号。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("registration_certificate_number")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("registration_certificate_number")]
|
|||
|
public string RegistrationCertificateNumber { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置公司注册文件过期时间字符串(格式:yyyy-MM-dd / PERMANENT)。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("registration_certificate_date")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("registration_certificate_date")]
|
|||
|
public string RegistrationCertificateDateString { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置子商户银行结算账户信息。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("settlement_bank_number")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("settlement_bank_number")]
|
|||
|
public string SettlementBankNumber { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置业务信息。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("business")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("business")]
|
|||
|
public Types.Business Business { get; set; } = default!;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置董事信息。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("director")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("director")]
|
|||
|
public Types.Director? Director { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取或设置负责人信息。
|
|||
|
/// </summary>
|
|||
|
[Newtonsoft.Json.JsonProperty("principal")]
|
|||
|
[System.Text.Json.Serialization.JsonPropertyName("principal")]
|
|||
|
public Types.Principal? Principal { get; set; }
|
|||
|
}
|
|||
|
}
|