namespace Oms.Application.Services.Payment; /// /// 运行时加载的微信支付商户设置。 /// public class WeChatPayMerchantSettings { public bool Enabled { get; init; } public string MchId { get; init; } = string.Empty; public string MchSerialNo { get; init; } = string.Empty; public string ApiV3Key { get; init; } = string.Empty; public string PrivateKeyPem { get; init; } = string.Empty; public string NotifyUrl { get; init; } = string.Empty; public string AppId { get; init; } = string.Empty; public bool IsReady => Enabled && !string.IsNullOrWhiteSpace(MchId) && !string.IsNullOrWhiteSpace(MchSerialNo) && !string.IsNullOrWhiteSpace(ApiV3Key) && !string.IsNullOrWhiteSpace(PrivateKeyPem) && !string.IsNullOrWhiteSpace(NotifyUrl) && !string.IsNullOrWhiteSpace(AppId); }