Use constants rather than magic strings in transaction attachments

This commit is contained in:
nicolas.dorier
2022-11-17 10:24:49 +09:00
parent 2740dfea87
commit ff572eef7f
4 changed files with 23 additions and 31 deletions

View File

@@ -14,6 +14,13 @@ namespace BTCPayServer.Data
{
public const string Label = "label";
public const string Tx = "tx";
public const string Payjoin = "payjoin";
public const string Invoice = "invoice";
public const string PaymentRequest = "payment-request";
public const string App = "app";
public const string PayjoinExposed = "pj-exposed";
public const string Payout = "payout";
public const string PullPayment = "pull-payment";
}
public string WalletId { get; set; }
public string Type { get; set; }