mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(tenpayv3): 新增小微商户进件相关接口
This commit is contained in:
parent
4ce70039f8
commit
ceb6b1012c
@ -14,6 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [POST] /applyment4sub/applyment/ 接口。</para>
|
/// <para>异步调用 [POST] /applyment4sub/applyment/ 接口。</para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_1.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_1.shtml </para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_6_1.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
@ -34,6 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [GET] /applyment4sub/applyment/business_code/{business_code} 接口。</para>
|
/// <para>异步调用 [GET] /applyment4sub/applyment/business_code/{business_code} 接口。</para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_2.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_2.shtml </para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_6_2.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
@ -53,6 +55,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>异步调用 [GET] /applyment4sub/applyment/applyment_id/{applyment_id} 接口。</para>
|
/// <para>异步调用 [GET] /applyment4sub/applyment/applyment_id/{applyment_id} 接口。</para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_2.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_2.shtml </para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_6_2.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
@ -73,6 +76,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <para>异步调用 [POST] /apply4sub/sub_merchants/{sub_mchid}/modify-settlement 接口。</para>
|
/// <para>异步调用 [POST] /apply4sub/sub_merchants/{sub_mchid}/modify-settlement 接口。</para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_3.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_3.shtml </para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_4.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_4.shtml </para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_6_3.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
@ -93,6 +97,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
/// <para>异步调用 [GET] /apply4sub/sub_merchants/{sub_mchid}/settlement 接口。</para>
|
/// <para>异步调用 [GET] /apply4sub/sub_merchants/{sub_mchid}/settlement 接口。</para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_4.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_4.shtml </para>
|
||||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_5.shtml </para>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_1_5.shtml </para>
|
||||||
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter4_6_5.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
{
|
{
|
||||||
@ -164,6 +163,162 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
public IList<string> FinanceLicensePictureMediaIdList { get; set; } = new List<string>();
|
public IList<string> FinanceLicensePictureMediaIdList { get; set; } = new List<string>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class MicroBusinessProof
|
||||||
|
{
|
||||||
|
public static class Types
|
||||||
|
{
|
||||||
|
public class MicroStoreInfo
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_name")]
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店省市编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_address_code")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_address_code")]
|
||||||
|
public string CityCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店地址。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_address")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_address")]
|
||||||
|
public string Address { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店门头照片媒体文件标识。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_entrance_pic")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_entrance_pic")]
|
||||||
|
public string StoreEntrancePictureMediaId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置店内环境照片媒体文件标识。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_indoor_copy")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_indoor_copy")]
|
||||||
|
public string StoreIndoorPictureMediaId { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店经度。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_longitude")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_longitude")]
|
||||||
|
public string? Longitude { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店纬度。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("store_latitude")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("store_latitude")]
|
||||||
|
public string? Latitude { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店证明文件媒体文件标识。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("address_certification")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("address_certification")]
|
||||||
|
public string? CertificateMediaId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public class MicroMobileInfo
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置经营服务名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_mobile_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_mobile_name")]
|
||||||
|
public string Name { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置经营服务所在地省市编码。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_mobile_city")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_mobile_city")]
|
||||||
|
public string CityCode { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置经营服务地址。
|
||||||
|
/// <para>默认值:无</para>
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_mobile_address")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_mobile_address")]
|
||||||
|
public string Address { get; set; } = "无";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置经营服务现场照片媒体文件标识列表。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_mobile_pics")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_mobile_pics")]
|
||||||
|
public IList<string> PictureMediaIdList { get; set; } = new List<string>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public class MicroOnlineInfo
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置线上店铺名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_online_store")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_online_store")]
|
||||||
|
public string StoreName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置电商平台名称。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_ec_name")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_ec_name")]
|
||||||
|
public string ECName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置店铺二维码媒体文件标识。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_qrcode")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_qrcode")]
|
||||||
|
public string? StoreQrcodeMediaId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置店铺链接。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_link")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_link")]
|
||||||
|
public string? StoreLink { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置小微经营类型。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_biz_type")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_biz_type")]
|
||||||
|
public string MicroBusinessType { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置门店场所信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_store_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_store_info")]
|
||||||
|
public Types.MicroStoreInfo? MicroStoreInfo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置流动经营便民服务信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_mobile_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_mobile_info")]
|
||||||
|
public Types.MicroMobileInfo? MicroMobileInfo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置线上商品服务交易信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_online_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_online_info")]
|
||||||
|
public Types.MicroOnlineInfo? MicroOnlineInfo { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
public class Identity
|
public class Identity
|
||||||
{
|
{
|
||||||
public static class Types
|
public static class Types
|
||||||
@ -403,6 +558,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
[System.Text.Json.Serialization.JsonPropertyName("finance_institution_info")]
|
[System.Text.Json.Serialization.JsonPropertyName("finance_institution_info")]
|
||||||
public Types.FinanceInstitutionLicense? FinanceInstitutionLicense { get; set; }
|
public Types.FinanceInstitutionLicense? FinanceInstitutionLicense { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取或设置小微商户证明材料信息。
|
||||||
|
/// </summary>
|
||||||
|
[Newtonsoft.Json.JsonProperty("micro_biz_info")]
|
||||||
|
[System.Text.Json.Serialization.JsonPropertyName("micro_biz_info")]
|
||||||
|
public Types.MicroBusinessProof? MicroBusinessProof { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置法人身份证件信息。
|
/// 获取或设置法人身份证件信息。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -674,7 +836,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
|||||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerConverter))]
|
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualIntegerConverter))]
|
||||||
[System.Text.Json.Serialization.JsonPropertyName("settlement_id")]
|
[System.Text.Json.Serialization.JsonPropertyName("settlement_id")]
|
||||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||||
public int SettlementId { get; set; }
|
public int SettlementId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置所属行业类型。
|
/// 获取或设置所属行业类型。
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
|
||||||
<PackageTags>Flurl.Http Wechat Weixin MicroMessage Tenpay WechatPay WeixinPay Wxpay 微信 微信支付 微信商户</PackageTags>
|
<PackageTags>Flurl.Http Wechat Weixin MicroMessage Tenpay WechatPay WeixinPay Wxpay 微信 微信支付 微信商户</PackageTags>
|
||||||
<Version>2.6.0</Version>
|
<Version>2.6.0</Version>
|
||||||
<Description>基于 Flurl.Http 的微信支付 API v3 版客户端,支持直连商户、服务商模式,支持基础支付、代金券、商家券、委托营销、消费卡、支付有礼、银行定向促活、微信支付分、微信先享卡、支付即服务、点金计划、智慧商圈、电商收付通、消费者投诉、商户违规通知、批量转账到零钱、银行组件、海关报关、融合钱包等功能。</Description>
|
<Description>基于 Flurl.Http 的微信支付 API v3 版客户端,支持直连商户、服务商模式,支持基础支付、代金券、商家券、委托营销、消费卡、支付有礼、银行定向促活、微信支付分、微信先享卡、支付即服务、点金计划、智慧商圈、电商收付通、二级商户进件、小微商户进件、消费者投诉、商户违规通知、批量转账到零钱、银行组件、海关报关、融合钱包等功能。</Description>
|
||||||
<Authors>Fu Diwei</Authors>
|
<Authors>Fu Diwei</Authors>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<RepositoryUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git</RepositoryUrl>
|
<RepositoryUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git</RepositoryUrl>
|
||||||
|
@ -72,11 +72,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否自动加密请求中的敏感字段数据。
|
/// 获取或设置是否自动加密请求中的敏感字段数据。
|
||||||
|
/// <para>注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool AutoEncryptRequestSensitiveProperty { get; set; }
|
public bool AutoEncryptRequestSensitiveProperty { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取或设置是否自动解密请求中的敏感字段数据。
|
/// 获取或设置是否自动解密响应中的敏感字段数据。
|
||||||
|
/// <para>注意:启用该功能需配合 <see cref="PlatformCertificateManager"/> 使用。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool AutoDecryptResponseSensitiveProperty { get; set; }
|
public bool AutoDecryptResponseSensitiveProperty { get; set; }
|
||||||
|
|
||||||
|
@ -33,6 +33,33 @@
|
|||||||
"0P3ng6KTIW4-Q_l2FjmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo"
|
"0P3ng6KTIW4-Q_l2FjmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"micro_biz_info": {
|
||||||
|
"micro_biz_type": "MICRO_TYPE_STORE",
|
||||||
|
"micro_store_info": {
|
||||||
|
"micro_name": "大郎烧饼",
|
||||||
|
"micro_address_code": "440305",
|
||||||
|
"micro_address": "南山区xx大厦x层xxxx室",
|
||||||
|
"store_entrance_pic": "0P3ng6KTIW4-Q_l2FjKLZuhHFwczhJehHhAZN6BKXQPcs-VvdSo",
|
||||||
|
"micro_indoor_copy": "0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMwczhJehHhAZN6BKXQPcs-VvdSo",
|
||||||
|
"store_longitude": "113.941355",
|
||||||
|
"store_latitude": "22.546245",
|
||||||
|
"address_certification": "0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAzhJehHhAZN6BKXQPcs-VvdSo"
|
||||||
|
},
|
||||||
|
"micro_mobile_info": {
|
||||||
|
"micro_mobile_name": "早餐车",
|
||||||
|
"micro_mobile_city": "440305",
|
||||||
|
"micro_mobile_address": "无",
|
||||||
|
"micro_mobile_pics": [
|
||||||
|
"0P3ng6KTIW4-Q_l2FjKLZuhHjBWoMAO_XXqK5dE5YdOmFJBZR9FwczhJehHhAZN6BKXQPcs-VvdSo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"micro_online_info": {
|
||||||
|
"micro_online_store": "李三服装店",
|
||||||
|
"micro_ec_name": "XX购物平台",
|
||||||
|
"micro_qrcode": "https://www.qq.com",
|
||||||
|
"micro_link": "https://www.qq.com"
|
||||||
|
}
|
||||||
|
},
|
||||||
"identity_info": {
|
"identity_info": {
|
||||||
"id_holder_type": "LEGAL",
|
"id_holder_type": "LEGAL",
|
||||||
"id_doc_type": "IDENTIFICATION_TYPE_IDCARD",
|
"id_doc_type": "IDENTIFICATION_TYPE_IDCARD",
|
||||||
|
Loading…
Reference in New Issue
Block a user