mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-16 23:24:25 +01:00
fix tt and nostr
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user