Allow auto approval of claims for pull payments (#1851)

* Allow auto approval of claims for pull payments

closes #1780

* fix
This commit is contained in:
Andrew Camilleri
2022-04-28 02:51:04 +02:00
committed by GitHub
parent 273bc78db3
commit ed1a7bb887
13 changed files with 76 additions and 22 deletions

View File

@@ -28,6 +28,7 @@ namespace BTCPayServer.Models.WalletViewModels
public ProgressModel Progress { get; set; }
public DateTimeOffset StartDate { get; set; }
public DateTimeOffset? EndDate { get; set; }
public bool AutoApproveClaims { get; set; }
public bool Archived { get; set; } = false;
}
@@ -62,5 +63,7 @@ namespace BTCPayServer.Models.WalletViewModels
[Display(Name = "Minimum acceptable expiration time for BOLT11 for refunds")]
[Range(1, 365 * 10)]
public long BOLT11Expiration { get; set; } = 30;
[Display(Name = "Automatically approve claims")]
public bool AutoApproveClaims { get; set; } = false;
}
}