feat: add history sync worker

This commit is contained in:
2026-06-07 17:16:47 +02:00
parent 3f25ee4c41
commit 3b14f2fba9
25 changed files with 807 additions and 120 deletions
@@ -47,6 +47,16 @@ interface LNbitsApi {
@Header("X-Api-Key") apiKey: String
): List<WsPayment>
/** GET /api/v1/payments/paginated — returns bulk payment history */
@GET("api/v1/payments/paginated")
suspend fun getPaymentsPaginated(
@Header("X-Api-Key") apiKey : String,
@Query("offset") offset : Int,
@Query("limit") limit : Int
): PaginatedPaymentsResponse
/** POST /api/v1/payments/decode — returns decoded payment request */
@POST("api/v1/payments/decode")
suspend fun decodeInvoice(