feat: add history sync worker
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user