using MediatR;

namespace WhatsAppService.API.Application.Commands;

/// <summary>
/// EN: Command to connect a WhatsApp Business Account.
/// VI: Command để kết nối WhatsApp Business Account.
/// </summary>
public record ConnectWhatsAppAccountCommand(
    Guid ShopId,
    string PhoneNumberId,
    string AccessToken,
    string? WebhookUrl
) : IRequest<ConnectWhatsAppAccountResult>;

/// <summary>
/// EN: Result of connecting a WhatsApp account.
/// VI: Kết quả kết nối WhatsApp account.
/// </summary>
public record ConnectWhatsAppAccountResult(
    bool Success,
    Guid? AccountId,
    string? Error);
