2018-11-06 15:38:07 +09:00
|
|
|
|
using BTCPayServer.Validation;
|
2017-10-17 13:52:30 +09:00
|
|
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
2017-09-13 15:47:34 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-09-13 23:50:36 +09:00
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
2017-09-13 15:47:34 +09:00
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public class CreateTokenViewModel
|
|
|
|
|
{
|
|
|
|
|
[PubKeyValidatorAttribute]
|
|
|
|
|
public string PublicKey
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-18 18:43:52 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public string Label
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
[Required]
|
|
|
|
|
public string StoreId
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-17 13:52:30 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09: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 class TokensViewModel
|
2017-09-13 15:47:34 +09:00
|
|
|
|
{
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public TokenViewModel[] Tokens
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2018-04-29 18:28:04 +09:00
|
|
|
|
|
|
|
|
|
[Display(Name = "API Key")]
|
|
|
|
|
public string ApiKey { get; set; }
|
|
|
|
|
public string EncodedApiKey { get; set; }
|
2019-01-18 19:15:31 +09:00
|
|
|
|
public bool StoreNotConfigured { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
|
}
|