iab-InsuranceBizLogic 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ declare namespace xupdate="http://www.xmldb.org/xupdate";
2
+ for $result in collection("quotes.dbxml")/Telenexus
3
+ where $result//Profile/PersonalDetails/Person/ContactDetail/Email = "EMAIL"
4
+ return
5
+ $result
@@ -131,6 +131,12 @@ class PEngine
131
131
  xml = persist.get(params[:choosen][:one])
132
132
  prepareModels(session[:product],xml)
133
133
 
134
+ when "Authenticate"
135
+ eval(deriveActiveRecordDefinitionOfProduct(session[:product]))
136
+ open("#{File.dirname(__FILE__)}/../bizLogic/xquery2") {|f| @query = f.read }
137
+ results = persist.find(@query.gsub('EMAIL',"#{params[:User][:User]}"))
138
+ prepareModels(session[:product],results[0]) if results and results[0]
139
+
134
140
  when "SectionRating"
135
141
  "1553.25"
136
142
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iab-InsuranceBizLogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Mawdsley
@@ -46,6 +46,7 @@ files:
46
46
  - lib/bizLogic/continualQNB.rb
47
47
  - lib/bizLogic/VPMSHelper.rb
48
48
  - lib/bizLogic/xquery1
49
+ - lib/bizLogic/xquery2
49
50
  - lib/bizLogic/applymta.rb
50
51
  - lib/bizLogic/payment.rb
51
52
  - lib/bizLogic/diff.rb