Class: Pay::Lago::Webhooks::InvoiceDrafted

Inherits:
Object
  • Object
show all
Defined in:
lib/pay/lago/webhooks/invoice_drafted.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



5
6
7
# File 'lib/pay/lago/webhooks/invoice_drafted.rb', line 5

def call(event)
  Pay::Lago::Charge.sync(event.invoice.lago_id, object: event.invoice)
end