Index: WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder.cls.xml
===================================================================
diff -u -r59434 -r62133
--- WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder.cls.xml (.../Decrypteerder.cls.xml) (revision 59434)
+++ WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder.cls.xml (.../Decrypteerder.cls.xml) (revision 62133)
@@ -43,6 +43,11 @@
1
+
+WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder.HandelsKlantKortingsPercentageBepaler
+1
+
+
APPS.VKP.impl.KlantDataBewaarder
1
@@ -75,6 +80,7 @@
Set ..KlantDataBewaarder = $$$Inject(KlantDataBewaarder, ##class(APPS.VKP.impl.KlantDataBewaarder).%New())
Set ..KlantDataRepository = $$$Inject(KlantDataRepository, ##class(DOM.VKP.impl.KlantDataRepository).%New())
Set ..Logger = $$$Inject(Logger, ##class(vhLib.Logger).%New())
+ Set ..HandelsKlantKortingsPercentageBepaler = ##class(WSimpl.Vhisie4.Auth.HandelAuthenticator.Decrypteerder.HandelsKlantKortingsPercentageBepaler).%New()
Quit $$$OK
]]>
@@ -91,9 +97,9 @@
//Do ..ValideerHostnameMetRef(DecrypteerRequest, LoginParameters)
+ Do ..KortingBewaarder.BewaarMeegegevenKorting(DecrypteerRequest.Ref,DecrypteerRequest.DataOpt)
Do ..VulReponseIn(DecrypteerRequest, LoginParameters)
//If $$$HasLength(DecrypteerRequest.Ref) {
- Do ..KortingBewaarder.BewaarMeegegevenKorting(DecrypteerRequest.Ref,DecrypteerRequest.DataOpt)
//}
} Catch {
@@ -334,7 +340,8 @@
If ..Response.Taal = "IT" {
Set ..Response.Taal = "I"
}
- Set ..Response.ToegelatenLadetypes = ..HandelToegelatenLadetypesBepaler.Bepaal(LoginParameters.PersonalityID)
+ Set ..Response.ToegelatenLadetypes = ..HandelToegelatenLadetypesBepaler.Bepaal(LoginParameters.PersonalityID)
+ Set ..Response.KortingPercentages = ..HandelsKlantKortingsPercentageBepaler.Bepaal(HandelPersonality,..Response.KlantId)
Set ..Response.IsGeldig = $$$True
]]>
Index: vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder/Decrypteer/Test.cls.xml
===================================================================
diff -u -r53690 -r62133
--- vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder/Decrypteer/Test.cls.xml (.../Test.cls.xml) (revision 53690)
+++ vhUnitTest/WSimpl/Vhisie4/Auth/HandelAuthenticator/Decrypteerder/Decrypteer/Test.cls.xml (.../Test.cls.xml) (revision 62133)
@@ -81,6 +81,7 @@
#dim HandelPersonalityMock As vhTest.Mock.DOM.common.HandelPersonality = ##class(vhTest.Mock.DOM.common.HandelPersonality).%New()
Do HandelPersonalityMock.VerwachtMethodCall("GeefPrefix").DanReturn("daro_")
+ Do HandelPersonalityMock.VerwachtMethodCall("GeefID").DanReturn(10)
#dim HandelPersonalityRepositoryMock As vhTest.Mock.TECH.Persistentie.Repository = ##class(vhTest.Mock.TECH.Persistentie.Repository).%New()
Do HandelPersonalityRepositoryMock.VerwachtMethodCall("GeefViaID", ..DecrypteerRequestStub.Header.PersonalityId).DanReturn(HandelPersonalityMock)