using System; namespace SKIT.FlurlHttpClient.Wechat.TenpayV2.Settings { public class Credentials { /// /// 初始化客户端时 的副本。 /// public string MerchantId { get; } /// /// 初始化客户端时 的副本。 /// public string MerchantSecret { get; } /// /// 初始化客户端时 的副本。 /// public byte[]? MerchantCertificateBytes { get; set; } /// /// 初始化客户端时 的副本。 /// public string? MerchantCertificatePassword { get; set; } /// /// 初始化客户端时 的副本。 /// public string? AppId { get; } internal Credentials(WechatTenpayClientOptions options) { if (options == null) throw new ArgumentNullException(nameof(options)); MerchantId = options.MerchantId; MerchantSecret = options.MerchantSecret; MerchantCertificateBytes = options.MerchantCertificateBytes; MerchantCertificatePassword = options.MerchantCertificatePassword; AppId = options.AppId; } } }