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: delete.rb
    path of file: ./repos/demanda/backend/app/graphql/mutations/coupon
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Mutations
  module Coupon
    class Delete < Mutations::ManagerMutation
      graphql_name 'DeleteCoupon'

      argument :id, String, required: true

      field :errors, [String], null: true
      fiel
    
      def resolve(id:)
        coupon = current_account.coupons.find_by(uuid: id)

        if coupon
          coupon.destroy
          {
            errors: coupon.errors.full_messages,
            message: 'Coupon was deleted'
          }
        else
          {
            errors: ["id: #{id}", 'Coupon not found'],
            message: ''
          }
        end