mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-16 07:57:21 +08:00
36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using System;
|
|
using Microsoft.Extensions.Options;
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Options
|
|
{
|
|
public partial class TenpayOptions : IOptions<TenpayOptions>
|
|
{
|
|
TenpayOptions IOptions<TenpayOptions>.Value => this;
|
|
|
|
public Types.WechatMerchant[] Merchants { get; set; } = Array.Empty<Types.WechatMerchant>();
|
|
|
|
public string NotifyUrl { get; set; } = string.Empty;
|
|
}
|
|
|
|
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;
|
|
|
|
public string CertificateSerialNumber { get; set; } = string.Empty;
|
|
|
|
public string CertificatePrivateKey { get; set; } = string.Empty;
|
|
|
|
public string? PlatformPublicKeyId { get; set; }
|
|
|
|
public string? PlatformPublicKey { get; set; }
|
|
}
|
|
}
|
|
}
|
|
}
|