using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
using System.Text;

namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Integrations;

public class IntegrstionLoginRequest
{
    [Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 3, ErrorMessage = "Login Id must be between 4 and 30 characters.")]
    public string LoginId { get; set; }

    [Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 5, ErrorMessage = "Password must be between 1 and 30 characters.")]
    public string Password { get; set; }
}

public class IntegrationRefreshTokenRequest
{
    public string RefreshToken { get; set; } 
}

public class InsertRefreshTokenRequest : RefreshToken
{
    public string RefreshToken { get; set; }
}

public class RevokedRefreshTokenRequest 
{
    public string RefreshToken { get; set; }
}

public class GenerateRefreshTokenRequest
{
    public int UserId { get; set; }
    public string IpAddress { get; set; }
}