2022-11-24 11:45:00 +08:00
|
|
|
using System;
|
2021-07-30 14:09:25 +08:00
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
2021-12-28 14:05:39 +08:00
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Options
|
2021-07-30 14:09:25 +08:00
|
|
|
{
|
2021-12-04 16:11:49 +08:00
|
|
|
public partial class TenpayOptions : IOptions<TenpayOptions>
|
2021-07-30 14:09:25 +08:00
|
|
|
{
|
2021-12-04 16:11:49 +08:00
|
|
|
TenpayOptions IOptions<TenpayOptions>.Value => this;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
2021-12-28 14:05:39 +08:00
|
|
|
public Types.WechatMerchant[] Merchants { get; set; } = Array.Empty<Types.WechatMerchant>();
|
2021-07-30 14:09:25 +08:00
|
|
|
|
2021-12-04 16:11:49 +08:00
|
|
|
public string NotifyUrl { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
}
|
|
|
|
|
2022-01-21 14:30:17 +08:00
|
|
|
public partial class TenpayOptions
|
2021-07-30 14:09:25 +08:00
|
|
|
{
|
2021-12-28 14:05:39 +08:00
|
|
|
public static class Types
|
|
|
|
{
|
|
|
|
public class WechatMerchant
|
|
|
|
{
|
|
|
|
public string MerchantId { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
2021-12-28 14:05:39 +08:00
|
|
|
public string SecretV3 { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
2022-11-24 11:45:00 +08:00
|
|
|
public string CertificateSerialNumber { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
2022-11-24 11:45:00 +08:00
|
|
|
public string CertificatePrivateKey { get; set; } = string.Empty;
|
2025-06-04 23:53:34 +08:00
|
|
|
|
|
|
|
public string? PlatformPublicKeyId { get; set; }
|
|
|
|
|
|
|
|
public string? PlatformPublicKey { get; set; }
|
2021-12-28 14:05:39 +08:00
|
|
|
}
|
2021-07-30 14:09:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|