fix tt and nostr

This commit is contained in:
Andrew Camilleri
2025-03-31 12:44:02 +02:00
parent 8046d11ee4
commit 3c741d29ff
5 changed files with 13 additions and 4 deletions

View File

@@ -11,7 +11,7 @@
<PropertyGroup>
<Product>Nostr</Product>
<Description>NIP5 addresses, Zap support, Nostr Wallet Connect Lightning support</Description>
<Version>1.1.18</Version>
<Version>1.1.19</Version>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<!-- Plugin development properties -->

View File

@@ -13,7 +13,7 @@ namespace BTCPayServer.Plugins.NIP05
{
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)

View File

@@ -191,6 +191,8 @@ public class Nip5Controller : Controller
[AllowAnonymous]
public async Task<IActionResult> GetUser([FromQuery] string name)
{
if(string.IsNullOrEmpty(name))
return BadRequest("name is required");
var result = await Get(name);
return result.storeId is null

View File

@@ -9,7 +9,7 @@
<PropertyGroup>
<Product>TicketTailor</Product>
<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>
</PropertyGroup>
<!-- Plugin development properties -->

View File

@@ -235,7 +235,14 @@ public class TicketTailorClient : IDisposable
[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; }