refactor: clean up LNbitsApi

This commit is contained in:
2026-06-12 12:14:01 +02:00
parent aaadd0d73f
commit 4694b6d44e
2 changed files with 8 additions and 8 deletions
@@ -15,7 +15,7 @@ interface LNbitsApi {
/** GET /api/v1/wallet — returns balance and wallet info */
@GET("api/v1/wallet")
suspend fun getWallet(
@Header("X-Api-Key") apiKey: String
@Header("X-Api-Key") invoiceKey: String
): WalletResponse
/** POST /api/v1/payments — creates a BOLT-11 invoice */
@@ -44,10 +44,10 @@ interface LNbitsApi {
): PayInvoiceResponse
/** GET /api/v1/payments — returns payment history */
@GET("api/v1/payments")
suspend fun getPayments(
@Header("X-Api-Key") apiKey: String
): List<WsPayment>
// @GET("api/v1/payments")
// suspend fun getPayments(
// @Header("X-Api-Key") apiKey: String
// ): List<WsPayment>
/** GET /api/v1/payments/paginated — returns bulk payment history */
@GET("api/v1/payments/paginated")
@@ -151,7 +151,7 @@ interface LNbitsApi {
@GET("nwcprovider/api/v1/permissions")
suspend fun getNwcPermissions(
@Header("X-Api-Key") apiKey: String
@Header("X-Api-Key") invoiceKey: String
): Map<String, Any>
@GET("nwcprovider/api/v1/nwc")
@@ -183,7 +183,7 @@ interface LNbitsApi {
@GET("nwcprovider/api/v1/pairing/{secret}")
suspend fun getNwcPairingUrl(
@Header("X-Api-Key") apiKey: String,
@Header("X-Api-Key") invoiceKey: String,
@Path("secret") secret: String
): String