You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: payment_method_updated.rb
    path of file: ./repos/pay/lib/pay/stripe/webhooks
    
    the code of the file until where you have to start completion: module Pay
  module Stripe
    module Webhooks
      class PaymentMethodUpdated
        de
    
        def call(event)
          object = event.data.object
          if object.customer
            Pay::Stripe::PaymentMethod.sync(object.id, stripe_account: event.try(:account))
          else
            # If customer was removed, we should delete the payment method if it exists
            Pay::PaymentMethod.find_by_processor_and_id(:stripe, object.id)&.destroy
          end