mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
fix tt and nostr
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>Nostr</Product>
|
<Product>Nostr</Product>
|
||||||
<Description>NIP5 addresses, Zap support, Nostr Wallet Connect Lightning support</Description>
|
<Description>NIP5 addresses, Zap support, Nostr Wallet Connect Lightning support</Description>
|
||||||
<Version>1.1.18</Version>
|
<Version>1.1.19</Version>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace BTCPayServer.Plugins.NIP05
|
|||||||
{
|
{
|
||||||
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
||||||
{
|
{
|
||||||
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.4"}
|
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.7"}
|
||||||
};
|
};
|
||||||
|
|
||||||
public override void Execute(IServiceCollection applicationBuilder)
|
public override void Execute(IServiceCollection applicationBuilder)
|
||||||
|
|||||||
@@ -191,6 +191,8 @@ public class Nip5Controller : Controller
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public async Task<IActionResult> GetUser([FromQuery] string name)
|
public async Task<IActionResult> GetUser([FromQuery] string name)
|
||||||
{
|
{
|
||||||
|
if(string.IsNullOrEmpty(name))
|
||||||
|
return BadRequest("name is required");
|
||||||
var result = await Get(name);
|
var result = await Get(name);
|
||||||
|
|
||||||
return result.storeId is null
|
return result.storeId is null
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>TicketTailor</Product>
|
<Product>TicketTailor</Product>
|
||||||
<Description>Allows you to integrate with TicketTailor.com to sell tickets for Bitcoin</Description>
|
<Description>Allows you to integrate with TicketTailor.com to sell tickets for Bitcoin</Description>
|
||||||
<Version>2.0.4</Version>
|
<Version>2.0.5</Version>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
|
|||||||
@@ -235,7 +235,14 @@ public class TicketTailorClient : IDisposable
|
|||||||
|
|
||||||
[JsonPropertyName("name")] public string? Name { get; set; }
|
[JsonPropertyName("name")] public string? Name { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("price")] public decimal Price { get; set; }
|
[JsonPropertyName("price")] public decimal PriceCents { get; set; }
|
||||||
|
|
||||||
|
[JsonIgnore]
|
||||||
|
public decimal Price
|
||||||
|
{
|
||||||
|
get => PriceCents / 100;
|
||||||
|
set => PriceCents = (int)(value * 100);
|
||||||
|
}
|
||||||
|
|
||||||
[JsonPropertyName("status")] public string Status { get; set; }
|
[JsonPropertyName("status")] public string Status { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user