mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
bump everything
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Breez / Greenlight</Product>
|
||||
<Description>Lightweight lightning baby!</Description>
|
||||
<Version>1.0.9</Version>
|
||||
<Version>1.0.10</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BTCPayServer.Plugins.Breez
|
||||
{
|
||||
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
||||
{
|
||||
new() { Identifier = nameof(BTCPayServer), Condition = ">=2.0.0" }
|
||||
new() { Identifier = nameof(BTCPayServer), Condition = ">=2.0.6" }
|
||||
};
|
||||
|
||||
public override void Execute(IServiceCollection applicationBuilder)
|
||||
|
||||
@@ -45,13 +45,13 @@ public class BreezService:EventHostedServiceBase
|
||||
|
||||
protected override void SubscribeToEvents()
|
||||
{
|
||||
Subscribe<StoreRemovedEvent>();
|
||||
Subscribe<StoreEvent.Removed>();
|
||||
base.SubscribeToEvents();
|
||||
}
|
||||
|
||||
protected override async Task ProcessEvent(object evt, CancellationToken cancellationToken)
|
||||
{
|
||||
if (evt is StoreRemovedEvent storeRemovedEvent)
|
||||
if (evt is StoreEvent.Removed storeRemovedEvent)
|
||||
{
|
||||
await Handle(storeRemovedEvent.StoreId, null);
|
||||
_settings.Remove(storeRemovedEvent.StoreId);
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Bringin</Product>
|
||||
<Description>Euro Offramp</Description>
|
||||
<Version>1.0.3</Version>
|
||||
<Version>1.0.4</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -13,7 +13,7 @@ public class BringinPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
new()
|
||||
{
|
||||
Identifier = nameof(BTCPayServer), Condition = ">=2.0.0"
|
||||
Identifier = nameof(BTCPayServer), Condition = ">=2.0.6"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ public class BringinService : EventHostedServiceBase
|
||||
protected override void SubscribeToEvents()
|
||||
{
|
||||
base.SubscribeToEvents();
|
||||
Subscribe<StoreRemovedEvent>();
|
||||
Subscribe<StoreEvent.Removed>();
|
||||
Subscribe<InvoiceEvent>();
|
||||
Subscribe<PayoutEvent>();
|
||||
}
|
||||
@@ -117,7 +117,7 @@ public class BringinService : EventHostedServiceBase
|
||||
{
|
||||
var storeId = evt switch
|
||||
{
|
||||
StoreRemovedEvent storeRemovedEvent => storeRemovedEvent.StoreId,
|
||||
StoreEvent.Removed storeRemovedEvent => storeRemovedEvent.StoreId,
|
||||
InvoiceEvent invoiceEvent => invoiceEvent.Invoice.StoreId,
|
||||
PayoutEvent payoutEvent => payoutEvent.Payout.StoreDataId,
|
||||
_ => null
|
||||
@@ -129,7 +129,7 @@ public class BringinService : EventHostedServiceBase
|
||||
{
|
||||
switch (evt)
|
||||
{
|
||||
case StoreRemovedEvent storeRemovedEvent:
|
||||
case StoreEvent.Removed storeRemovedEvent:
|
||||
_settings.TryRemove(storeRemovedEvent.StoreId, out _);
|
||||
break;
|
||||
case InvoiceEvent
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>File Seller</Product>
|
||||
<Description>Allows you to sell files through the point of sale/crowdfund apps.</Description>
|
||||
<Version>1.0.5</Version>
|
||||
<Version>1.0.6</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using BTCPayServer.Client.Models;
|
||||
using BTCPayServer.Events;
|
||||
using BTCPayServer.HostedServices;
|
||||
using BTCPayServer.Plugins.Crowdfund;
|
||||
@@ -46,7 +47,7 @@ namespace BTCPayServer.Plugins.FileSeller
|
||||
protected override async Task ProcessEvent(object evt, CancellationToken cancellationToken)
|
||||
{
|
||||
if (evt is not InvoiceEvent invoiceEvent) return;
|
||||
List<PosCartItem> cartItems = null;
|
||||
List<AppCartItem> cartItems = null;
|
||||
if (invoiceEvent.Name is not (InvoiceEvent.Completed or InvoiceEvent.MarkedCompleted
|
||||
or InvoiceEvent.Confirmed))
|
||||
{
|
||||
@@ -68,11 +69,11 @@ namespace BTCPayServer.Plugins.FileSeller
|
||||
if ((!string.IsNullOrEmpty(invoiceEvent.Invoice.Metadata.ItemCode) ||
|
||||
AppService.TryParsePosCartItems(invoiceEvent.Invoice.Metadata.PosData, out cartItems)))
|
||||
{
|
||||
var items = cartItems ?? new List<PosCartItem>();
|
||||
var items = cartItems ?? new List<AppCartItem>();
|
||||
if (!string.IsNullOrEmpty(invoiceEvent.Invoice.Metadata.ItemCode) &&
|
||||
!items.Exists(cartItem => cartItem.Id == invoiceEvent.Invoice.Metadata.ItemCode))
|
||||
{
|
||||
items.Add(new PosCartItem()
|
||||
items.Add(new AppCartItem()
|
||||
{
|
||||
Id = invoiceEvent.Invoice.Metadata.ItemCode,
|
||||
Count = 1,
|
||||
|
||||
@@ -645,7 +645,7 @@ public class MicroNodeService : EventHostedServiceBase
|
||||
PushEvent(new CreatePayoutEvt());
|
||||
}, cancellationToken);
|
||||
|
||||
}else if (evt is StoreRemovedEvent storeRemovedEvent)
|
||||
}else if (evt is StoreEvent.Removed storeRemovedEvent)
|
||||
{
|
||||
_storeSettings.Remove(storeRemovedEvent.StoreId);
|
||||
_ownerSettings.Remove(storeRemovedEvent.StoreId);
|
||||
@@ -665,7 +665,7 @@ public class MicroNodeService : EventHostedServiceBase
|
||||
{
|
||||
Subscribe<PayoutEvent>();
|
||||
Subscribe<CreatePayoutEvt>();
|
||||
Subscribe<StoreRemovedEvent>();
|
||||
Subscribe<StoreEvent.Removed>();
|
||||
Subscribe<CheckActiveTransactions>();
|
||||
base.SubscribeToEvents();
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Prism</Product>
|
||||
<Description>Automated value splits for Bitcoin.</Description>
|
||||
<Version>1.3.0</Version>
|
||||
<Version>1.3.1</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -11,7 +11,7 @@ public class PrismPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
||||
{
|
||||
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.0"}
|
||||
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.6"}
|
||||
};
|
||||
|
||||
public override void Execute(IServiceCollection applicationBuilder)
|
||||
|
||||
@@ -103,7 +103,7 @@ namespace BTCPayServer.Plugins.Prism
|
||||
base.SubscribeToEvents();
|
||||
Subscribe<InvoiceEvent>();
|
||||
Subscribe<PayoutEvent>();
|
||||
Subscribe<StoreRemovedEvent>();
|
||||
Subscribe<StoreEvent.Removed>();
|
||||
}
|
||||
|
||||
class CheckPayoutsEvt
|
||||
@@ -439,7 +439,7 @@ namespace BTCPayServer.Plugins.Prism
|
||||
|
||||
switch (evt)
|
||||
{
|
||||
case StoreRemovedEvent storeRemovedEvent:
|
||||
case StoreEvent.Removed storeRemovedEvent:
|
||||
_prismSettings.Remove(storeRemovedEvent.StoreId);
|
||||
return;
|
||||
case InvoiceEvent invoiceEvent when
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Coinjoin</Product>
|
||||
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
|
||||
<Version>1.0.103</Version>
|
||||
<Version>1.0.104</Version>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ public class WabisabiPlugin : BaseBTCPayServerPlugin
|
||||
{
|
||||
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
||||
{
|
||||
new() { Identifier = nameof(BTCPayServer), Condition = ">=2.0.0" }
|
||||
new() { Identifier = nameof(BTCPayServer), Condition = ">=2.0.6" }
|
||||
};
|
||||
public override void Execute(IServiceCollection applicationBuilder)
|
||||
{
|
||||
|
||||
@@ -265,7 +265,7 @@ public class WalletProvider : PeriodicRunner, IWalletProvider
|
||||
(await _storeRepository.GetSettingsAsync<WabisabiStoreSettings>(nameof(WabisabiStoreSettings))));
|
||||
_initialLoad.SetResult();
|
||||
}, cancellationToken);
|
||||
_disposables.Add(_eventAggregator.SubscribeAsync<StoreRemovedEvent>(async @event =>
|
||||
_disposables.Add(_eventAggregator.SubscribeAsync<StoreEvent.Removed>(async @event =>
|
||||
{
|
||||
await _initialLoad.Task;
|
||||
await UnloadWallet(@event.StoreId);
|
||||
|
||||
Submodule submodules/btcpayserver updated: 5534ddeb28...ba8feeddd9
Reference in New Issue
Block a user