proto: add creation date filters in ListInvoiceRequest

This commit is contained in:
yyforyongyu committed 2022-12-05 20:03:55 +08:00
1 parent 372333fd2b
commit cfa2cb01d0
3 files changed
+1063 -1013

No files matched your search

+1038 -1013
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -3633,7 +3633,16 @@ message ListInvoiceRequest {
specified index offset. This can be used to paginate backwards.
*/
bool reversed = 6;
// If set, returns all invoices with a creation date greater than or euqal
// to it. Measured in seconds since the unix epoch.
uint64 creation_date_start = 7;
// If set, returns all invoices with a creation date less than or euqal to
// it. Measured in seconds since the unix epoch.
uint64 creation_date_end = 8;
}
message ListInvoiceResponse {
/*
A list of invoices from the time slice of the time series specified in the
+16
View File
@@ -1719,6 +1719,22 @@
"in": "query",
"required": false,
"type": "boolean"
},
{
"name": "creation_date_start",
"description": "If set, returns all invoices with a creation date greater than or euqal\nto it. Measured in seconds since the unix epoch.",
"in": "query",
"required": false,
"type": "string",
"format": "uint64"
},
{
"name": "creation_date_end",
"description": "If set, returns all invoices with a creation date less than or euqal to\nit. Measured in seconds since the unix epoch.",
"in": "query",
"required": false,
"type": "string",
"format": "uint64"
}
],
"tags": [