using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems;
using OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common;
using System.ComponentModel.DataAnnotations;


namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Integrations;

public class IntegrationLoginRequest : AuthLoginRequest
{
   
}

public class IntegrationRefreshTokenRequest
{
    [Required]
    public string RefreshToken { get; set; }
}

public class InsertRefreshTokenRequest : RefreshToken
{
    [Required]
    public string RefreshToken { get; set; }
}

public class RevokedRefreshTokenRequest
{
    [Required]
    public string RefreshToken { get; set; }
    [Required]
    public int UserId { get; set; }
}

public class GenerateRefreshTokenRequest
{
    [Required]
    public int UserId { get; set; }
    [Required]
    public string IpAddress { get; set; }
    [Required]
    public string RawRefreshToken { get; set; }
}