diff --git a/BTCPayServer.Client/BTCPayServerClient.Invoices.cs b/BTCPayServer.Client/BTCPayServerClient.Invoices.cs index 681762f1e..e54d6998b 100644 --- a/BTCPayServer.Client/BTCPayServerClient.Invoices.cs +++ b/BTCPayServer.Client/BTCPayServerClient.Invoices.cs @@ -90,7 +90,7 @@ namespace BTCPayServer.Client { if (request == null) throw new ArgumentNullException(nameof(request)); - if (request.Status!= InvoiceStatus.Settled && request.Status!= InvoiceStatus.Invalid) + if (request.Status != InvoiceStatus.Settled && request.Status != InvoiceStatus.Invalid) throw new ArgumentOutOfRangeException(nameof(request.Status), "Status can only be Invalid or Complete"); var response = await _httpClient.SendAsync( CreateHttpRequest($"api/v1/stores/{storeId}/invoices/{invoiceId}/status", bodyPayload: request, diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json index 7a9b2f0b8..46e37989c 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json @@ -691,11 +691,11 @@ "description": "", "x-enumNames": [ "Invalid", - "Complete" + "Settled" ], "enum": [ "Invalid", - "Complete" + "Settled" ] }, "InvoiceStatus": {