Sha256: c838954fc3bebc47f9a2171cb3089b794d0f9cf5dd56089eecc8d49b83c2c5e9

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module Pay
  module Lago
    module Webhooks
      class SubscriptionTerminated
        def call(event)
          subscription = event.subscription
          Pay::Lago::Subscription.sync(subscription.external_customer_id, subscription.external_id, object: subscription)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pay-lago-0.1.1 lib/pay/lago/webhooks/subscription_terminated.rb
pay-lago-0.1.0 lib/pay/lago/webhooks/subscription_terminated.rb