register_with_sgx.rb

 1# frozen_string_literal: true
 2
 3class AdminAction
 4	class RegisterWithSgx
 5		def self.call(customer, reply:, **)
 6			reply.call(
 7				FormTemplate.render("admin_register_with_sgx")
 8			).then { |response|
 9				tel = response.form.field("tel").value.to_s
10				customer.register!(tel)
11			}
12		end
13	end
14end