diff --git a/BTCPayServer.Tests/CrowdfundTests.cs b/BTCPayServer.Tests/CrowdfundTests.cs index 350254293..b99ea2248 100644 --- a/BTCPayServer.Tests/CrowdfundTests.cs +++ b/BTCPayServer.Tests/CrowdfundTests.cs @@ -236,7 +236,7 @@ namespace BTCPayServer.Tests var invoiceEntity = tester.PayTester.InvoiceRepository.GetInvoice(invoice.Id).GetAwaiter().GetResult(); Assert.True(invoiceEntity.Version >= InvoiceEntity.InternalTagSupport_Version); - Assert.Contains(AppsHelper.GetAppInternalTag(appId), invoiceEntity.InternalTags); + Assert.Contains(AppService.GetAppInternalTag(appId), invoiceEntity.InternalTags); crowdfundViewModel.Enabled = true; crowdfundViewModel.EndDate = null; @@ -256,7 +256,7 @@ namespace BTCPayServer.Tests FullNotifications = true }, Facade.Merchant); invoiceEntity = tester.PayTester.InvoiceRepository.GetInvoice(invoice.Id).GetAwaiter().GetResult(); - Assert.DoesNotContain(AppsHelper.GetAppInternalTag(appId), invoiceEntity.InternalTags); + Assert.DoesNotContain(AppService.GetAppInternalTag(appId), invoiceEntity.InternalTags); } diff --git a/BTCPayServer/Controllers/AppsController.Crowdfund.cs b/BTCPayServer/Controllers/AppsController.Crowdfund.cs index 4b50f001a..0c2fd4efe 100644 --- a/BTCPayServer/Controllers/AppsController.Crowdfund.cs +++ b/BTCPayServer/Controllers/AppsController.Crowdfund.cs @@ -83,7 +83,7 @@ namespace BTCPayServer.Controllers ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery), UseAllStoreInvoices = app.TagAllInvoices, AppId = appId, - SearchTerm = app.TagAllInvoices ? $"storeid:{app.StoreDataId}" : $"orderid:{AppsHelper.GetCrowdfundOrderId(appId)}", + SearchTerm = app.TagAllInvoices ? $"storeid:{app.StoreDataId}" : $"orderid:{AppService.GetCrowdfundOrderId(appId)}", DisplayPerksRanking = settings.DisplayPerksRanking, SortPerksByPopularity = settings.SortPerksByPopularity }; @@ -98,7 +98,7 @@ namespace BTCPayServer.Controllers try { - _AppsHelper.Parse(vm.PerksTemplate, vm.TargetCurrency).ToString(); + _AppService.Parse(vm.PerksTemplate, vm.TargetCurrency).ToString(); } catch { diff --git a/BTCPayServer/Controllers/AppsController.PointOfSale.cs b/BTCPayServer/Controllers/AppsController.PointOfSale.cs index 72b83067a..ae2eeefeb 100644 --- a/BTCPayServer/Controllers/AppsController.PointOfSale.cs +++ b/BTCPayServer/Controllers/AppsController.PointOfSale.cs @@ -116,7 +116,7 @@ namespace BTCPayServer.Controllers } try { - var items = _AppsHelper.Parse(settings.Template, settings.Currency); + var items = _AppService.Parse(settings.Template, settings.Currency); var builder = new StringBuilder(); builder.AppendLine($"