using System.Text.Json;

namespace MemberCenter.Application.Models.Newsletter;

public sealed record SubscriptionDto(
    Guid Id,
    Guid ListId,
    string Email,
    string Status,
    JsonElement Preferences,
    DateTimeOffset CreatedAt);

public sealed record PendingSubscriptionResult(SubscriptionDto Subscription, string ConfirmToken);

public sealed record OneClickUnsubscribeTokenResult(Guid SubscriberId, string? UnsubscribeToken, string Status);
