2021-07-30 14:09:25 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.Extensions.Options;
|
|
|
|
|
|
|
|
|
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net5.Options
|
|
|
|
|
{
|
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
|
|
|
|
|
|
|
|
|
public WechatMerchant[] Merchants { get; set; } = Array.Empty<WechatMerchant>();
|
|
|
|
|
|
2021-12-04 16:11:49 +08:00
|
|
|
|
public string NotifyUrl { get; set; } = string.Empty;
|
2021-07-30 14:09:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-12-04 16:11:49 +08:00
|
|
|
|
partial class TenpayOptions
|
2021-07-30 14:09:25 +08:00
|
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|