Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
require 'sidekiq'
module KYC
module Local
class OwnerMobileWorker
include Sidekiq::Worker
def perform(mobile_id)
mobile = Phone.find_by(id: mobile_id)
return unless mobile.user.verified_profile.present?
jibit = JibitService.new
response = jibit.mobile_info(mobile.national_number, mobile.user.verified_profile.national_code)
mobile.update(step: 'owner_phone') if JSON.parse(response.body).dig('matched').present?
end
end
end
end