Manos Chorianopoulos

update LoyaltyContextualOfferModel

......@@ -463,13 +463,41 @@ public class swiftApi {
private var id: String
private var businessAdditionalId: String
private var treatmentCode: String
private var offerName: String
private var productType: String
private var provDuration: String
private var noOfRecurrance: String
private var price: String
private var discount: String
private var voiceCategory: String
private var dataCategory: String
private var minsValue: String
private var dataValue: String
private var provStepValueMins: String
private var postpayProduct: String
private var notificationMessage: String
private var loyaltyCampaignId: String
public init(sessionId: String?, eligibleAssets: Array<String>?, id: String?, businessAdditionalId: String?, treatmentCode: 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?) {
self.sessionId = sessionId ?? ""
self.eligibleAssets = eligibleAssets ?? []
self.id = id ?? ""
self.businessAdditionalId = businessAdditionalId ?? ""
self.treatmentCode = treatmentCode ?? ""
self.offerName = offerName ?? ""
self.productType = productType ?? ""
self.provDuration = provDuration ?? ""
self.noOfRecurrance = noOfRecurrance ?? ""
self.price = price ?? ""
self.discount = discount ?? ""
self.voiceCategory = voiceCategory ?? ""
self.dataCategory = dataCategory ?? ""
self.minsValue = minsValue ?? ""
self.dataValue = dataValue ?? ""
self.provStepValueMins = provStepValueMins ?? ""
self.postpayProduct = postpayProduct ?? ""
self.notificationMessage = notificationMessage ?? ""
self.loyaltyCampaignId = loyaltyCampaignId ?? ""
}
public init() {
......@@ -478,6 +506,20 @@ public class swiftApi {
self.id = ""
self.businessAdditionalId = ""
self.treatmentCode = ""
self.offerName = ""
self.productType = ""
self.provDuration = ""
self.noOfRecurrance = ""
self.price = ""
self.discount = ""
self.voiceCategory = ""
self.dataCategory = ""
self.minsValue = ""
self.dataValue = ""
self.provStepValueMins = ""
self.postpayProduct = ""
self.notificationMessage = ""
self.loyaltyCampaignId = ""
}
public var _sessionId: String {
......@@ -524,6 +566,133 @@ public class swiftApi {
self.treatmentCode = newValue
}
}
public var _offerName: String {
get { // getter
return self.offerName
}
set(newValue) { //setter
self.offerName = newValue
}
}
public var _productType: String {
get { // getter
return self.productType
}
set(newValue) { //setter
self.productType = newValue
}
}
public var _provDuration: String {
get { // getter
return self.provDuration
}
set(newValue) { //setter
self.provDuration = newValue
}
}
public var _noOfRecurrance: String {
get { // getter
return self.noOfRecurrance
}
set(newValue) { //setter
self.noOfRecurrance = newValue
}
}
public var _price: String {
get { // getter
return self.price
}
set(newValue) { //setter
self.price = newValue
}
}
public var _discount: String {
get { // getter
return self.discount
}
set(newValue) { //setter
self.discount = newValue
}
}
public var _voiceCategory: String {
get { // getter
return self.voiceCategory
}
set(newValue) { //setter
self.voiceCategory = newValue
}
}
public var _dataCategory: String {
get { // getter
return self.dataCategory
}
set(newValue) { //setter
self.dataCategory = newValue
}
}
public var _minsValue: String {
get { // getter
return self.minsValue
}
set(newValue) { //setter
self.minsValue = newValue
}
}
public var _dataValue: String {
get { // getter
return self.dataValue
}
set(newValue) { //setter
self.dataValue = newValue
}
}
public var _provStepValueMins: String {
get { // getter
return self.provStepValueMins
}
set(newValue) { //setter
self.provStepValueMins = newValue
}
}
public var _postpayProduct: String {
get { // getter
return self.postpayProduct
}
set(newValue) { //setter
self.postpayProduct = newValue
}
}
public var _notificationMessage: String {
get { // getter
return self.notificationMessage
}
set(newValue) { //setter
self.notificationMessage = newValue
}
}
public var _loyaltyCampaignId: String {
get { // getter
return self.loyaltyCampaignId
}
set(newValue) { //setter
self.loyaltyCampaignId = newValue
}
}
}
// public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
......