116209751-option_added

This commit is contained in:
Stas 2016-03-31 17:51:40 +03:00
parent 6ee076c9a4
commit a75d8c8407
4 changed files with 23 additions and 0 deletions

View file

@ -187,6 +187,12 @@ module Depp
}
end
if domain_params[:verified].present?
custom_params[:_anonymus] << {
chg: { registrant_verified: 'yes' }
}
end
if domain_params[:reserved_pw].present?
custom_params[:_anonymus] << { reserved: { pw: { value: domain_params[:reserved_pw] } } }
end
@ -217,6 +223,11 @@ module Depp
chg = [{ registrant: { value: domain_params[:registrant] } }]
end
if domain_params[:verified].present?
chg.push({ registrant_verified: 'yes'}) if chg.present?
chg = [{ registrant_verified: 'yes'}] if chg.nil?
end
add_arr = nil if add_arr.none?
rem_arr = nil if rem_arr.none?