Greenfield: add text search terms to an invoice (#2648)

This commit is contained in:
Nicolas Dorier
2021-07-14 23:32:20 +09:00
committed by GitHub
parent 15be593bbd
commit 73b461f8d0
8 changed files with 275 additions and 215 deletions

View File

@@ -54,7 +54,9 @@ namespace BTCPayServer.Controllers.GreenField
DateTimeOffset? startDate = null,
[FromQuery]
[ModelBinder(typeof(ModelBinders.DateTimeOffsetModelBinder))]
DateTimeOffset? endDate = null, [FromQuery] bool includeArchived = false)
DateTimeOffset? endDate = null,
string textSearch = null,
[FromQuery] bool includeArchived = false)
{
var store = HttpContext.GetStoreData();
if (store == null)
@@ -79,7 +81,8 @@ namespace BTCPayServer.Controllers.GreenField
StartDate = startDate,
EndDate = endDate,
OrderId = orderId,
Status = status
Status = status,
TextSearch = textSearch
});
return Ok(invoices.Select(ToModel));