mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
73 lines
1.3 KiB
C#
73 lines
1.3 KiB
C#
using BTCPayServer.Validations;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class CreateTokenViewModel
|
|
{
|
|
[PubKeyValidatorAttribute]
|
|
public string PublicKey
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Required]
|
|
public string Facade
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Required]
|
|
public string StoreId
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public SelectList Stores
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
public class TokenViewModel
|
|
{
|
|
public string Id
|
|
{
|
|
get; set;
|
|
}
|
|
public string Label
|
|
{
|
|
get; set;
|
|
}
|
|
public string SIN
|
|
{
|
|
get; set;
|
|
}
|
|
public string Facade
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
public class TokensViewModel
|
|
{
|
|
public TokenViewModel[] Tokens
|
|
{
|
|
get; set;
|
|
}
|
|
public string StatusMessage
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|