mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 11:35:51 +01:00
* Greenfield: Improve store users API - Adds an endpoint to update store users (before they had to be removed ad re-added) - Checks for the existance of a user and responds with 404 in that case (fixes #6423) - Allows retrieval of user by user id or email for add and update (consistent with the other endpoints) - Improves the API docs for the store users endpoints * Swagger: Reuse UserIdOrEmail parameter component * Add details to store user data
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class StoreData : StoreBaseData
|
|
{
|
|
/// <summary>
|
|
/// the id of the store
|
|
/// </summary>
|
|
public string Id { get; set; }
|
|
}
|
|
|
|
public class StoreUserData
|
|
{
|
|
/// <summary>
|
|
/// the id of the user
|
|
/// </summary>
|
|
public string UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// the store role of the user
|
|
/// </summary>
|
|
public string Role { get; set; }
|
|
|
|
/// <summary>
|
|
/// the email AND username of the user
|
|
/// </summary>
|
|
public string Email { get; set; }
|
|
|
|
/// <summary>
|
|
/// the name of the user
|
|
/// </summary>
|
|
public string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// the image url of the user
|
|
/// </summary>
|
|
public string ImageUrl { get; set; }
|
|
}
|
|
|
|
public class RoleData
|
|
{
|
|
public string Id { get; set; }
|
|
public List<string> Permissions { get; set; }
|
|
public string Role { get; set; }
|
|
public bool IsServerRole { get; set; }
|
|
}
|
|
}
|