DotNetCore.SKIT.FlurlHttpCl.../samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Options/TenpayOptions.cs

36 lines
1.0 KiB
C#
Raw Normal View History

2022-11-24 11:45:00 +08:00
using System;
using Microsoft.Extensions.Options;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Options
{
2021-12-04 16:11:49 +08:00
public partial class TenpayOptions : IOptions<TenpayOptions>
{
2021-12-04 16:11:49 +08:00
TenpayOptions IOptions<TenpayOptions>.Value => this;
public Types.WechatMerchant[] Merchants { get; set; } = Array.Empty<Types.WechatMerchant>();
2021-12-04 16:11:49 +08:00
public string NotifyUrl { get; set; } = string.Empty;
}
2022-01-21 14:30:17 +08:00
public partial class TenpayOptions
{
public static class Types
{
public class WechatMerchant
{
public string MerchantId { get; set; } = string.Empty;
public string SecretV3 { get; set; } = string.Empty;
2022-11-24 11:45:00 +08:00
public string CertificateSerialNumber { get; set; } = string.Empty;
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; }
}
}
}
}