Move lndhub invoice creation to service

This commit is contained in:
2024-04-16 20:19:15 +02:00
parent c3b82fc2a9
commit 5685e1b7bc
4 changed files with 33 additions and 24 deletions

View File

@@ -0,0 +1,13 @@
module LndhubManager
class CreateUserInvoice < Lndhub
def initialize(user:, payload:)
@user = user
@payload = payload
end
def call
authenticate @user
addinvoice @payload
end
end
end