using MediatR;
using AdsTrackingService.Domain.AggregatesModel.AttributionAggregate;

namespace AdsTrackingService.API.Application.Queries;

/// <summary>
/// EN: Query to get attribution details for a conversion.
/// VI: Query để lấy chi tiết attribution cho conversion.
/// </summary>
public record GetAttributionDetailsQuery(Guid ConversionId) : IRequest<AttributionDto?>;

/// <summary>
/// EN: DTO for attribution response.
/// VI: DTO cho response attribution.
/// </summary>
public record AttributionDto(
    Guid Id,
    Guid ConversionId,
    Guid AdId,
    Guid CampaignId,
    string Model,
    decimal AttributedValue,
    DateTime AttributedAt
);
