Rename LightningPrivateRouteHint =>privateRouteHints

This commit is contained in:
nicolas.dorier 2020-05-29 09:03:07 +09:00
parent 1e3f62718d
commit 66206399e1
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
3 changed files with 5 additions and 4 deletions

View File

@ -11,7 +11,7 @@ namespace BTCPayServer.Client.Models
public LightMoney Amount { get; set; }
public string Description { get; set; }
public TimeSpan Expiry { get; set; }
public bool LightningPrivateRouteHints { get; set; }
public bool PrivateRouteHints { get; set; }
}
}

View File

@ -261,7 +261,7 @@ namespace BTCPayServer.Controllers.GreenField
var invoice = await lightningClient.CreateInvoice(
new CreateInvoiceParams(request.Amount, request.Description, request.Expiry)
{
PrivateRouteHints = request.LightningPrivateRouteHints
PrivateRouteHints = request.PrivateRouteHints
},
CancellationToken.None);

View File

@ -59,8 +59,9 @@
"type": "string",
"format": "time-span"
},
"lightningPrivateRouteHints": {
"type": "boolean"
"privateRouteHints": {
"type": "boolean",
"nullable": true
}
}
},