Contact: ontvangstadres uit de site-instellingen (instelling > env), PUT /contact-settings/recipient en Berichten-veld (CMS-U11)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,22 @@ public record UpdateContactMessageStatusRequest(string? Status);
|
||||
public record ContactResendResult(string MailStatus, int MailAttempts, bool Mailed, string? MailError = null);
|
||||
|
||||
[ExcludeFromCodeCoverage]
|
||||
public record ContactSettingsDto(bool Enabled, bool HostEnabled);
|
||||
public record ContactSettingsDto(
|
||||
bool Enabled,
|
||||
bool HostEnabled,
|
||||
string? RecipientEmail = null,
|
||||
string RecipientSource = ContactRecipientSource.None);
|
||||
|
||||
/// <summary>Where the address contact mails go to comes from. The address from the environment is never returned.</summary>
|
||||
public static class ContactRecipientSource
|
||||
{
|
||||
public const string Setting = "setting";
|
||||
public const string Config = "config";
|
||||
public const string None = "none";
|
||||
}
|
||||
|
||||
/// <summary>Body of PUT /contact-settings/recipient. null or empty clears the setting (back to the server configuration).</summary>
|
||||
public record UpdateContactRecipientRequest(string? RecipientEmail);
|
||||
|
||||
/// <summary>Body of PUT /contact-settings. Nullable so a missing or non-boolean value is reported as errors.enabled.</summary>
|
||||
public record UpdateContactSettingsRequest(bool? Enabled);
|
||||
|
||||
Reference in New Issue
Block a user