Showing
1 changed file
with
19 additions
and
31 deletions
| ... | @@ -527,10 +527,9 @@ public class swiftApi { | ... | @@ -527,10 +527,9 @@ public class swiftApi { | 
| 527 | private var zone: String | 527 | private var zone: String | 
| 528 | private var wave: String | 528 | private var wave: String | 
| 529 | private var validity: String | 529 | private var validity: String | 
| 530 | - private var treatment_code: String | ||
| 531 | private var offerAudienceLevel: String | 530 | private var offerAudienceLevel: String | 
| 532 | 531 | ||
| 533 | - 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?) { | 532 | + 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?) { | 
| 534 | self.sessionId = sessionId ?? "" | 533 | self.sessionId = sessionId ?? "" | 
| 535 | self.eligibleAssets = eligibleAssets ?? [] | 534 | self.eligibleAssets = eligibleAssets ?? [] | 
| 536 | self.id = id ?? "" | 535 | self.id = id ?? "" | 
| ... | @@ -557,7 +556,6 @@ public class swiftApi { | ... | @@ -557,7 +556,6 @@ public class swiftApi { | 
| 557 | self.zone = zone ?? "" | 556 | self.zone = zone ?? "" | 
| 558 | self.wave = wave ?? "" | 557 | self.wave = wave ?? "" | 
| 559 | self.validity = validity ?? "" | 558 | self.validity = validity ?? "" | 
| 560 | - self.treatment_code = treatment_code ?? "" | ||
| 561 | self.offerAudienceLevel = offerAudienceLevel ?? "" | 559 | self.offerAudienceLevel = offerAudienceLevel ?? "" | 
| 562 | } | 560 | } | 
| 563 | 561 | ||
| ... | @@ -588,7 +586,6 @@ public class swiftApi { | ... | @@ -588,7 +586,6 @@ public class swiftApi { | 
| 588 | self.zone = "" | 586 | self.zone = "" | 
| 589 | self.wave = "" | 587 | self.wave = "" | 
| 590 | self.validity = "" | 588 | self.validity = "" | 
| 591 | - self.treatment_code = "" | ||
| 592 | self.offerAudienceLevel = "" | 589 | self.offerAudienceLevel = "" | 
| 593 | } | 590 | } | 
| 594 | 591 | ||
| ... | @@ -826,15 +823,6 @@ public class swiftApi { | ... | @@ -826,15 +823,6 @@ public class swiftApi { | 
| 826 | } | 823 | } | 
| 827 | } | 824 | } | 
| 828 | 825 | ||
| 829 | - public var _treatment_code: String { | ||
| 830 | - get { // getter | ||
| 831 | - return self.treatment_code | ||
| 832 | - } | ||
| 833 | - set(newValue) { //setter | ||
| 834 | - self.treatment_code = newValue | ||
| 835 | - } | ||
| 836 | - } | ||
| 837 | - | ||
| 838 | public var _offerAudienceLevel: String { | 826 | public var _offerAudienceLevel: String { | 
| 839 | get { // getter | 827 | get { // getter | 
| 840 | return self.offerAudienceLevel | 828 | return self.offerAudienceLevel | 
| ... | @@ -1481,7 +1469,7 @@ public class swiftApi { | ... | @@ -1481,7 +1469,7 @@ public class swiftApi { | 
| 1481 | + "&client_id=" + (campaignInfo?["client_id"] as! String) | 1469 | + "&client_id=" + (campaignInfo?["client_id"] as! String) | 
| 1482 | + "&client_secret=" + (campaignInfo?["client_secret"] as! String) | 1470 | + "&client_secret=" + (campaignInfo?["client_secret"] as! String) | 
| 1483 | + "&Session_ID=" + sessionId // (campaign._sessionId) | 1471 | + "&Session_ID=" + sessionId // (campaign._sessionId) | 
| 1484 | - + "&businessService=" | 1472 | + + "&businessService=" + (campaign._businessService) | 
| 1485 | + "&offerName=" + (campaign._offerName) | 1473 | + "&offerName=" + (campaign._offerName) | 
| 1486 | + "&productType=" + (campaign._productType) | 1474 | + "&productType=" + (campaign._productType) | 
| 1487 | + "&provDuration=" + (campaign._provDuration) | 1475 | + "&provDuration=" + (campaign._provDuration) | 
| ... | @@ -1493,16 +1481,16 @@ public class swiftApi { | ... | @@ -1493,16 +1481,16 @@ public class swiftApi { | 
| 1493 | + "&minsValue=" + (campaign._minsValue) | 1481 | + "&minsValue=" + (campaign._minsValue) | 
| 1494 | + "&dataValue=" + (campaign._dataValue) | 1482 | + "&dataValue=" + (campaign._dataValue) | 
| 1495 | + "&provStepValueMins=" + (campaign._provStepValueMins) | 1483 | + "&provStepValueMins=" + (campaign._provStepValueMins) | 
| 1496 | - + "&UACIOfferTrackingCode=" | 1484 | + + "&UACIOfferTrackingCode=" + (campaign._uaciOfferTrackingCode) | 
| 1497 | + "&MSISDN=" | 1485 | + "&MSISDN=" | 
| 1498 | - + "&OFFERCODE1=" | 1486 | + + "&OFFERCODE1=" + (campaign._offerCode1) | 
| 1499 | - + "&SCORE=" | 1487 | + + "&SCORE=" + (campaign._score) | 
| 1500 | - + "&ZONE=" | 1488 | + + "&ZONE=" + (campaign._zone) | 
| 1501 | - + "&WAVE=" | 1489 | + + "&WAVE=" + (campaign._wave) | 
| 1502 | - + "&VALIDITY=" | 1490 | + + "&VALIDITY=" + (campaign._validity) | 
| 1503 | - + "&TREATMENT_CODE=" | 1491 | + + "&TREATMENT_CODE=" + (campaign._treatmentCode) | 
| 1504 | + "&GUID=" | 1492 | + "&GUID=" | 
| 1505 | - + "&OfferAudienceLevel="; | 1493 | + + "&OfferAudienceLevel=" + (campaign._offerAudienceLevel); | 
| 1506 | 1494 | ||
| 1507 | return finalUrl | 1495 | return finalUrl | 
| 1508 | break; | 1496 | break; | 
| ... | @@ -1526,7 +1514,7 @@ public class swiftApi { | ... | @@ -1526,7 +1514,7 @@ public class swiftApi { | 
| 1526 | + "&client_id=" + (campaignInfo?["client_id"] as! String) | 1514 | + "&client_id=" + (campaignInfo?["client_id"] as! String) | 
| 1527 | + "&client_secret=" + (campaignInfo?["client_secret"] as! String) | 1515 | + "&client_secret=" + (campaignInfo?["client_secret"] as! String) | 
| 1528 | + "&Session_ID=" + (ccmsCampaign._sessionId) | 1516 | + "&Session_ID=" + (ccmsCampaign._sessionId) | 
| 1529 | - + "&businessService=" | 1517 | + + "&businessService=" + (ccmsCampaign._businessService) | 
| 1530 | + "&offerName=" + (ccmsCampaign._offerName) | 1518 | + "&offerName=" + (ccmsCampaign._offerName) | 
| 1531 | + "&productType=" + (ccmsCampaign._productType) | 1519 | + "&productType=" + (ccmsCampaign._productType) | 
| 1532 | + "&provDuration=" + (ccmsCampaign._provDuration) | 1520 | + "&provDuration=" + (ccmsCampaign._provDuration) | 
| ... | @@ -1538,16 +1526,16 @@ public class swiftApi { | ... | @@ -1538,16 +1526,16 @@ public class swiftApi { | 
| 1538 | + "&minsValue=" + (ccmsCampaign._minsValue) | 1526 | + "&minsValue=" + (ccmsCampaign._minsValue) | 
| 1539 | + "&dataValue=" + (ccmsCampaign._dataValue) | 1527 | + "&dataValue=" + (ccmsCampaign._dataValue) | 
| 1540 | + "&provStepValueMins=" + (ccmsCampaign._provStepValueMins) | 1528 | + "&provStepValueMins=" + (ccmsCampaign._provStepValueMins) | 
| 1541 | - + "&UACIOfferTrackingCode=" | 1529 | + + "&UACIOfferTrackingCode=" + (ccmsCampaign._uaciOfferTrackingCode) | 
| 1542 | + "&MSISDN=" | 1530 | + "&MSISDN=" | 
| 1543 | - + "&OFFERCODE1=" | 1531 | + + "&OFFERCODE1=" + (ccmsCampaign._offerCode1) | 
| 1544 | - + "&SCORE=" | 1532 | + + "&SCORE=" + (ccmsCampaign._score) | 
| 1545 | - + "&ZONE=" | 1533 | + + "&ZONE=" + (ccmsCampaign._zone) | 
| 1546 | - + "&WAVE=" | 1534 | + + "&WAVE=" + (ccmsCampaign._wave) | 
| 1547 | - + "&VALIDITY=" | 1535 | + + "&VALIDITY=" + (ccmsCampaign._validity) | 
| 1548 | - + "&TREATMENT_CODE=" | 1536 | + + "&TREATMENT_CODE=" + (ccmsCampaign._treatmentCode) | 
| 1549 | + "&GUID=" | 1537 | + "&GUID=" | 
| 1550 | - + "&OfferAudienceLevel="; | 1538 | + + "&OfferAudienceLevel=" + (ccmsCampaign._offerAudienceLevel); | 
| 1551 | 1539 | ||
| 1552 | return finalUrl | 1540 | return finalUrl | 
| 1553 | } | 1541 | } | ... | ... | 
- 
Please register or login to post a comment
