You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
863 B
31 lines
863 B
2 years ago
|
using Microsoft.Extensions.Options;
|
||
|
|
||
|
namespace Zncy.CloudCar.WeChat.Service.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 CertSerialNumber { get; set; } = string.Empty;
|
||
|
|
||
|
public string CertPrivateKey { get; set; } = string.Empty;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|