mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
Merge branch 'master' of https://github.com/Kukks/BTCPayServerPlugins
This commit is contained in:
@@ -179,9 +179,8 @@ query InvoiceByPaymentHash($paymentHash: PaymentHash!, $walletId: WalletId!) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
var response = await _client.SendQueryAsync<dynamic>(reques, cancellation);
|
var response = await _client.SendQueryAsync<dynamic>(reques, cancellation);
|
||||||
|
var result = response.Data?.SelectToken("me.defaultAccount.walletById.invoiceByPaymentHash") as JObject;
|
||||||
|
return result is null ? null : ToInvoice(result);
|
||||||
return response.Data is null ? null : ToInvoice(response.Data.me.defaultAccount.walletById.invoiceByPaymentHash);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public LightningInvoice? ToInvoice(JObject invoice)
|
public LightningInvoice? ToInvoice(JObject invoice)
|
||||||
@@ -451,11 +450,11 @@ mutation lnInvoiceCreate($input: LnInvoiceCreateOnBehalfOfRecipientInput!) {
|
|||||||
memo = createInvoiceRequest.Description,
|
memo = createInvoiceRequest.Description,
|
||||||
descriptionHash = createInvoiceRequest.DescriptionHash?.ToString(),
|
descriptionHash = createInvoiceRequest.DescriptionHash?.ToString(),
|
||||||
amount = (long)createInvoiceRequest.Amount.ToUnit(LightMoneyUnit.Satoshi),
|
amount = (long)createInvoiceRequest.Amount.ToUnit(LightMoneyUnit.Satoshi),
|
||||||
expiresIn = (int)createInvoiceRequest.Expiry.TotalMinutes
|
expiresIn = (int)createInvoiceRequest.Expiry.TotalMinutes
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var response = await _client.SendQueryAsync<dynamic>(reques, cancellation);
|
var response = await _client.SendQueryAsync<dynamic>(reques, cancellation);
|
||||||
var inv = (isUSD
|
var inv = (isUSD
|
||||||
? response.Data.lnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipient.invoice
|
? response.Data.lnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipient.invoice
|
||||||
|
|||||||
@@ -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.5</Version>
|
<Version>2.0.6</Version>
|
||||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace BTCPayServer.Plugins.TicketTailor
|
|||||||
{
|
{
|
||||||
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } =
|
||||||
{
|
{
|
||||||
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.0.0"}
|
new() {Identifier = nameof(BTCPayServer), Condition = ">=2.1.6"}
|
||||||
};
|
};
|
||||||
|
|
||||||
public override void Execute(IServiceCollection applicationBuilder)
|
public override void Execute(IServiceCollection applicationBuilder)
|
||||||
|
|||||||
@@ -339,6 +339,8 @@ public class TicketTailorService : EventHostedServiceBase, IWebhookProvider
|
|||||||
|
|
||||||
public const string TicketTailorTicketIssued = "TicketTailorTicketIssued";
|
public const string TicketTailorTicketIssued = "TicketTailorTicketIssued";
|
||||||
|
|
||||||
|
public bool SupportsCustomerEmail { get; } = true;
|
||||||
|
|
||||||
public Dictionary<string, string> GetSupportedWebhookTypes()
|
public Dictionary<string, string> GetSupportedWebhookTypes()
|
||||||
{
|
{
|
||||||
return new Dictionary<string, string>
|
return new Dictionary<string, string>
|
||||||
|
|||||||
Submodule submodules/btcpayserver updated: ba8feeddd9...f4df9632e6
Reference in New Issue
Block a user