Manos Chorianopoulos

update constructCcmsUrl function

......@@ -527,10 +527,9 @@ public class swiftApi {
private var zone: String
private var wave: String
private var validity: String
private var treatment_code: String
private var offerAudienceLevel: String
public init(sessionId: String?, eligibleAssets: Array<String>?, id: String?, businessAdditionalId: String?, treatmentCode: String?, offerName: String?, productType: String?, provDuration: String?, noOfRecurrance: String?, price: String?, discount: String?, voiceCategory: String?, dataCategory: String?, minsValue: String?, dataValue: String?, provStepValueMins: String?, postpayProduct: String?, notificationMessage: String?, loyaltyCampaignId: String?, businessService: String?, uaciOfferTrackingCode: String?, offerCode1: String?, score: String?, zone: String?, wave: String?, validity: String?, treatment_code: String?, offerAudienceLevel: String?) {
public init(sessionId: String?, eligibleAssets: Array<String>?, id: String?, businessAdditionalId: String?, treatmentCode: String?, offerName: String?, productType: String?, provDuration: String?, noOfRecurrance: String?, price: String?, discount: String?, voiceCategory: String?, dataCategory: String?, minsValue: String?, dataValue: String?, provStepValueMins: String?, postpayProduct: String?, notificationMessage: String?, loyaltyCampaignId: String?, businessService: String?, uaciOfferTrackingCode: String?, offerCode1: String?, score: String?, zone: String?, wave: String?, validity: String?, offerAudienceLevel: String?) {
self.sessionId = sessionId ?? ""
self.eligibleAssets = eligibleAssets ?? []
self.id = id ?? ""
......@@ -557,7 +556,6 @@ public class swiftApi {
self.zone = zone ?? ""
self.wave = wave ?? ""
self.validity = validity ?? ""
self.treatment_code = treatment_code ?? ""
self.offerAudienceLevel = offerAudienceLevel ?? ""
}
......@@ -588,7 +586,6 @@ public class swiftApi {
self.zone = ""
self.wave = ""
self.validity = ""
self.treatment_code = ""
self.offerAudienceLevel = ""
}
......@@ -826,15 +823,6 @@ public class swiftApi {
}
}
public var _treatment_code: String {
get { // getter
return self.treatment_code
}
set(newValue) { //setter
self.treatment_code = newValue
}
}
public var _offerAudienceLevel: String {
get { // getter
return self.offerAudienceLevel
......@@ -1481,7 +1469,7 @@ public class swiftApi {
+ "&client_id=" + (campaignInfo?["client_id"] as! String)
+ "&client_secret=" + (campaignInfo?["client_secret"] as! String)
+ "&Session_ID=" + sessionId // (campaign._sessionId)
+ "&businessService="
+ "&businessService=" + (campaign._businessService)
+ "&offerName=" + (campaign._offerName)
+ "&productType=" + (campaign._productType)
+ "&provDuration=" + (campaign._provDuration)
......@@ -1493,16 +1481,16 @@ public class swiftApi {
+ "&minsValue=" + (campaign._minsValue)
+ "&dataValue=" + (campaign._dataValue)
+ "&provStepValueMins=" + (campaign._provStepValueMins)
+ "&UACIOfferTrackingCode="
+ "&UACIOfferTrackingCode=" + (campaign._uaciOfferTrackingCode)
+ "&MSISDN="
+ "&OFFERCODE1="
+ "&SCORE="
+ "&ZONE="
+ "&WAVE="
+ "&VALIDITY="
+ "&TREATMENT_CODE="
+ "&OFFERCODE1=" + (campaign._offerCode1)
+ "&SCORE=" + (campaign._score)
+ "&ZONE=" + (campaign._zone)
+ "&WAVE=" + (campaign._wave)
+ "&VALIDITY=" + (campaign._validity)
+ "&TREATMENT_CODE=" + (campaign._treatmentCode)
+ "&GUID="
+ "&OfferAudienceLevel=";
+ "&OfferAudienceLevel=" + (campaign._offerAudienceLevel);
return finalUrl
break;
......@@ -1526,7 +1514,7 @@ public class swiftApi {
+ "&client_id=" + (campaignInfo?["client_id"] as! String)
+ "&client_secret=" + (campaignInfo?["client_secret"] as! String)
+ "&Session_ID=" + (ccmsCampaign._sessionId)
+ "&businessService="
+ "&businessService=" + (ccmsCampaign._businessService)
+ "&offerName=" + (ccmsCampaign._offerName)
+ "&productType=" + (ccmsCampaign._productType)
+ "&provDuration=" + (ccmsCampaign._provDuration)
......@@ -1538,16 +1526,16 @@ public class swiftApi {
+ "&minsValue=" + (ccmsCampaign._minsValue)
+ "&dataValue=" + (ccmsCampaign._dataValue)
+ "&provStepValueMins=" + (ccmsCampaign._provStepValueMins)
+ "&UACIOfferTrackingCode="
+ "&UACIOfferTrackingCode=" + (ccmsCampaign._uaciOfferTrackingCode)
+ "&MSISDN="
+ "&OFFERCODE1="
+ "&SCORE="
+ "&ZONE="
+ "&WAVE="
+ "&VALIDITY="
+ "&TREATMENT_CODE="
+ "&OFFERCODE1=" + (ccmsCampaign._offerCode1)
+ "&SCORE=" + (ccmsCampaign._score)
+ "&ZONE=" + (ccmsCampaign._zone)
+ "&WAVE=" + (ccmsCampaign._wave)
+ "&VALIDITY=" + (ccmsCampaign._validity)
+ "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode)
+ "&GUID="
+ "&OfferAudienceLevel=";
+ "&OfferAudienceLevel=" + (ccmsCampaign._offerAudienceLevel);
return finalUrl
}
......