Skip to content

SignInRequest

// RB2 Core Connect
namespace CoreConnect.Commerce.Customer;
public record SignInRequest
{
public SignInRequest(string email, string password, string? cartId = null, bool useNewCart = true, string? anonymousId = null, bool? cartAssociatedBusinessUnit = true, string? businessUnitKey = null)
{
Email = email;
Password = password;
CartId = cartId;
UseNewCart = useNewCart;
AnonymousId = anonymousId;
CartAssociatedBusinessUnit = cartAssociatedBusinessUnit;
BusinessUnitKey = businessUnitKey;
}
public string Email { get; set; }
public string Password { get; set; }
public string? CartId { get; set; }
public bool UseNewCart { get; set; }
/// <summary>
/// Optional anonymous session id if applicable.
/// </summary>
public string? AnonymousId { get; set; }
public bool? CartAssociatedBusinessUnit { get; set; }
/// <summary>
/// Specified BusinessUnit key
/// </summary>
public string? BusinessUnitKey { get; set; }
}
public record RefreshTokenRequest
{
public required string RefreshToken { get; set; }
public Dictionary<string, string>? RefreshValues { get; set; }
}