2017-09-13 08:47:34 +02:00
|
|
|
|
using BTCPayServer.Validations;
|
2017-10-17 06:52:30 +02:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
2017-09-13 08:47:34 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-09-13 16:50:36 +02:00
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
2017-09-13 08:47:34 +02:00
|
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public class CreateTokenViewModel
|
|
|
|
|
{
|
|
|
|
|
[PubKeyValidatorAttribute]
|
|
|
|
|
public string PublicKey
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-18 11:43:52 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public string Label
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[Required]
|
|
|
|
|
public string Facade
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-17 06:52:30 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
[Required]
|
|
|
|
|
public string StoreId
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-17 06:52:30 +02:00
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
|
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
|
2017-09-13 08:47:34 +02:00
|
|
|
|
{
|
2017-10-27 10:53:04 +02:00
|
|
|
|
public TokenViewModel[] Tokens
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public string StatusMessage
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-13 08:47:34 +02:00
|
|
|
|
}
|