Showing
7 changed files
with
918 additions
and
512 deletions
... | @@ -42,7 +42,7 @@ public class SplashActivity extends BaseActivity { | ... | @@ -42,7 +42,7 @@ public class SplashActivity extends BaseActivity { |
42 | // ); | 42 | // ); |
43 | 43 | ||
44 | WarplyManager.getCosmoteUser(new WarplyCosmoteUserRequest() | 44 | WarplyManager.getCosmoteUser(new WarplyCosmoteUserRequest() |
45 | - .setGuid("6012049321"), //6012049321, 6012049322 | 45 | + .setGuid("6012049323"), //6012049321, 6012049322, 6012049323 |
46 | mLoginReceiver); | 46 | mLoginReceiver); |
47 | 47 | ||
48 | // WarplyManager.verifyTicket(new WarplyVerifyTicketRequest() | 48 | // WarplyManager.verifyTicket(new WarplyVerifyTicketRequest() | ... | ... |
... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' | ... | @@ -2,7 +2,7 @@ apply plugin: 'com.android.library' |
2 | 2 | ||
3 | ext { | 3 | ext { |
4 | PUBLISH_GROUP_ID = 'ly.warp' | 4 | PUBLISH_GROUP_ID = 'ly.warp' |
5 | - PUBLISH_VERSION = '4.5.4-cosbeta37i' | 5 | + PUBLISH_VERSION = '4.5.4-cosbeta37' |
6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' | 6 | PUBLISH_ARTIFACT_ID = 'warply-android-sdk' |
7 | } | 7 | } |
8 | 8 | ... | ... |
... | @@ -995,7 +995,7 @@ public enum Warply { | ... | @@ -995,7 +995,7 @@ public enum Warply { |
995 | try { | 995 | try { |
996 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); | 996 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); |
997 | if (extraFields != null) { | 997 | if (extraFields != null) { |
998 | - if (extraFields.length() == 0 || !extraFields.has("ccms_offer")) { | 998 | + if (extraFields.length() == 0 || !(extraFields.has("ccms_offer") || extraFields.has("type"))) { |
999 | campaignLoyaltyList.add(camp); | 999 | campaignLoyaltyList.add(camp); |
1000 | } | 1000 | } |
1001 | } | 1001 | } | ... | ... |
... | @@ -27,8 +27,10 @@ import ly.warp.sdk.io.callbacks.CallbackReceiver; | ... | @@ -27,8 +27,10 @@ import ly.warp.sdk.io.callbacks.CallbackReceiver; |
27 | import ly.warp.sdk.io.models.Campaign; | 27 | import ly.warp.sdk.io.models.Campaign; |
28 | import ly.warp.sdk.io.models.Consumer; | 28 | import ly.warp.sdk.io.models.Consumer; |
29 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; | 29 | import ly.warp.sdk.io.models.LoyaltyContextualOfferModel; |
30 | +import ly.warp.sdk.io.request.CosmotePostEventRequest; | ||
30 | import ly.warp.sdk.io.request.CosmoteSubmitOrderRequest; | 31 | import ly.warp.sdk.io.request.CosmoteSubmitOrderRequest; |
31 | import ly.warp.sdk.io.request.WarplyConsumerRequest; | 32 | import ly.warp.sdk.io.request.WarplyConsumerRequest; |
33 | +import ly.warp.sdk.utils.WarpUtils; | ||
32 | import ly.warp.sdk.utils.managers.WarplyManager; | 34 | import ly.warp.sdk.utils.managers.WarplyManager; |
33 | 35 | ||
34 | 36 | ||
... | @@ -247,6 +249,26 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -247,6 +249,26 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
247 | else | 249 | else |
248 | errorActivatingDialog(); | 250 | errorActivatingDialog(); |
249 | }); | 251 | }); |
252 | + | ||
253 | + if (status == 1) { | ||
254 | + new Thread(() -> { | ||
255 | + if (!Thread.currentThread().isInterrupted()) { | ||
256 | + WarplyManager.postEvent(new CosmotePostEventRequest() | ||
257 | + .setCommunicationUuid(mLoyalty.getSessionUUID()) | ||
258 | + .setUserMsisdn(mSender) | ||
259 | + .setOfferAudienceLevel(mCCMS.getOfferAudienceLevel()) | ||
260 | + .setUACIOfferTrackingCode(mCCMS.getUACIOfferTrackingCode()) | ||
261 | + .setOfferCode1(mCCMS.getOfferCode1()) | ||
262 | + .setScore(mCCMS.getScore()) | ||
263 | + .setZone(mCCMS.getZone()) | ||
264 | + .setWave(mCCMS.getWave()) | ||
265 | + .setValidity(mCCMS.getValidity()) | ||
266 | + .setTreatmentCode(mCCMS.getTreatmentCode()), | ||
267 | + mPostCallback); | ||
268 | + } | ||
269 | + Thread.currentThread().interrupt(); | ||
270 | + }).start(); | ||
271 | + } | ||
250 | } | 272 | } |
251 | 273 | ||
252 | @Override | 274 | @Override |
... | @@ -254,4 +276,17 @@ public class TelcoActivity extends Activity implements View.OnClickListener { | ... | @@ -254,4 +276,17 @@ public class TelcoActivity extends Activity implements View.OnClickListener { |
254 | runOnUiThread(() -> errorActivatingDialog()); | 276 | runOnUiThread(() -> errorActivatingDialog()); |
255 | } | 277 | } |
256 | }; | 278 | }; |
279 | + | ||
280 | + private CallbackReceiver<JSONObject> mPostCallback = new CallbackReceiver<JSONObject>() { | ||
281 | + @Override | ||
282 | + public void onSuccess(JSONObject result) { | ||
283 | + Thread.currentThread().interrupt(); | ||
284 | + } | ||
285 | + | ||
286 | + @Override | ||
287 | + public void onFailure(int errorCode) { | ||
288 | + WarpUtils.log("POST_EVENT_ERROR " + String.valueOf(errorCode)); | ||
289 | + Thread.currentThread().interrupt(); | ||
290 | + } | ||
291 | + }; | ||
257 | } | 292 | } | ... | ... |
1 | +package ly.warp.sdk.io.request; | ||
2 | + | ||
3 | +import android.util.Base64; | ||
4 | + | ||
5 | +import org.json.JSONArray; | ||
6 | +import org.json.JSONException; | ||
7 | +import org.json.JSONObject; | ||
8 | + | ||
9 | +import java.io.UnsupportedEncodingException; | ||
10 | +import java.security.MessageDigest; | ||
11 | +import java.security.NoSuchAlgorithmException; | ||
12 | +import java.util.HashMap; | ||
13 | + | ||
14 | +import ly.warp.sdk.utils.constants.WarpConstants; | ||
15 | + | ||
16 | +/** | ||
17 | + * Created by Panagiotis Triantafyllou on 19-July-22. | ||
18 | + */ | ||
19 | + | ||
20 | +public class CosmotePostEventRequest { | ||
21 | + | ||
22 | + // =========================================================== | ||
23 | + // Constants | ||
24 | + // =========================================================== | ||
25 | + | ||
26 | + private final String KEY_MAPP = "consumer_data"; | ||
27 | + private final String KEY_ACTION = "action"; | ||
28 | + private final String KEY_ACTION_VALUE = "integration"; | ||
29 | + private final String KEY_METHOD = "method"; | ||
30 | + private final String KEY_METHOD_VALUE = "postEvent"; | ||
31 | + private final String KEY_DATA = "data"; | ||
32 | + private final String KEY_PARAMETERS = "parameters"; | ||
33 | + | ||
34 | + // =========================================================== | ||
35 | + // Fields | ||
36 | + // =========================================================== | ||
37 | + | ||
38 | + private HashMap<String, String> mFilters; | ||
39 | + private long mCacheUpdateInterval = 0; | ||
40 | + private String mUserMsisdn = ""; | ||
41 | + private String mCommunicationUuid = ""; | ||
42 | + private String mOfferAudienceLevel = ""; | ||
43 | + private String mUACIOfferTrackingCode = ""; | ||
44 | + private String mOfferCode1 = ""; | ||
45 | + private String mScore = ""; | ||
46 | + private String mZone = ""; | ||
47 | + private String mWave = ""; | ||
48 | + private String mValidity = ""; | ||
49 | + private String mTreatmentCode = ""; | ||
50 | + | ||
51 | + // =========================================================== | ||
52 | + // Constructor | ||
53 | + // =========================================================== | ||
54 | + | ||
55 | + /** | ||
56 | + * Default constructor of WarplyConsumerRequest, initializes an empty filters HashMap | ||
57 | + */ | ||
58 | + public CosmotePostEventRequest() { | ||
59 | + mFilters = new HashMap<>(); | ||
60 | + } | ||
61 | + | ||
62 | + public CosmotePostEventRequest(CosmotePostEventRequest copy) { | ||
63 | + if (copy != null) { | ||
64 | + this.mFilters = copy.mFilters; | ||
65 | + this.mCacheUpdateInterval = copy.mCacheUpdateInterval; | ||
66 | + } | ||
67 | + } | ||
68 | + | ||
69 | + // =========================================================== | ||
70 | + // Methods for/from SuperClass/Interfaces | ||
71 | + // =========================================================== | ||
72 | + | ||
73 | + @Override | ||
74 | + public boolean equals(Object object) { | ||
75 | + if (object instanceof CosmotePostEventRequest) { | ||
76 | + CosmotePostEventRequest other = (CosmotePostEventRequest) object; | ||
77 | + return other == this || (this.mFilters == other.mFilters || (this.mFilters != null && this.mFilters.equals(other.mFilters))); | ||
78 | + } | ||
79 | + return false; | ||
80 | + } | ||
81 | + | ||
82 | + @Override | ||
83 | + public int hashCode() { | ||
84 | + return mFilters.hashCode(); | ||
85 | + } | ||
86 | + | ||
87 | + // =========================================================== | ||
88 | + // Methods | ||
89 | + // =========================================================== | ||
90 | + | ||
91 | + // =========================================================== | ||
92 | + // Getter & Setter | ||
93 | + // =========================================================== | ||
94 | + | ||
95 | + public CosmotePostEventRequest setCommunicationUuid(String communicationUuid) { | ||
96 | + this.mCommunicationUuid = communicationUuid; | ||
97 | + return this; | ||
98 | + } | ||
99 | + | ||
100 | + public CosmotePostEventRequest setUserMsisdn(String userMsisdn) { | ||
101 | + this.mUserMsisdn = userMsisdn; | ||
102 | + return this; | ||
103 | + } | ||
104 | + | ||
105 | + public CosmotePostEventRequest setOfferAudienceLevel(String offerAudienceLevel) { | ||
106 | + this.mOfferAudienceLevel = offerAudienceLevel; | ||
107 | + return this; | ||
108 | + } | ||
109 | + | ||
110 | + public CosmotePostEventRequest setUACIOfferTrackingCode(String uaciOfferTrackingCode) { | ||
111 | + this.mUACIOfferTrackingCode = uaciOfferTrackingCode; | ||
112 | + return this; | ||
113 | + } | ||
114 | + | ||
115 | + public CosmotePostEventRequest setOfferCode1(String offerCode1) { | ||
116 | + this.mOfferCode1 = offerCode1; | ||
117 | + return this; | ||
118 | + } | ||
119 | + | ||
120 | + public CosmotePostEventRequest setScore(String score) { | ||
121 | + this.mScore = score; | ||
122 | + return this; | ||
123 | + } | ||
124 | + | ||
125 | + public CosmotePostEventRequest setZone(String zone) { | ||
126 | + this.mZone = zone; | ||
127 | + return this; | ||
128 | + } | ||
129 | + | ||
130 | + public CosmotePostEventRequest setWave(String wave) { | ||
131 | + this.mWave = wave; | ||
132 | + return this; | ||
133 | + } | ||
134 | + | ||
135 | + public CosmotePostEventRequest setValidity(String validity) { | ||
136 | + this.mValidity = validity; | ||
137 | + return this; | ||
138 | + } | ||
139 | + | ||
140 | + public CosmotePostEventRequest setTreatmentCode(String treatmentCode) { | ||
141 | + this.mTreatmentCode = treatmentCode; | ||
142 | + return this; | ||
143 | + } | ||
144 | + | ||
145 | + /** | ||
146 | + * Call this to get how often the cached data will be updated. | ||
147 | + * | ||
148 | + * @return mCacheUpdateInterval | ||
149 | + */ | ||
150 | + public long getCacheUpdateInterval() { | ||
151 | + return mCacheUpdateInterval; | ||
152 | + } | ||
153 | + | ||
154 | + /** | ||
155 | + * Call this to set how often the cached data will be updated. | ||
156 | + * | ||
157 | + * @param updateInterval The time that data will be cached | ||
158 | + * @return WarplyConsumerRequest | ||
159 | + */ | ||
160 | + public CosmotePostEventRequest setCacheUpdateInterval(long updateInterval) { | ||
161 | + | ||
162 | + this.mCacheUpdateInterval = updateInterval; | ||
163 | + if (mCacheUpdateInterval < 0) { | ||
164 | + mCacheUpdateInterval = 0; | ||
165 | + } | ||
166 | + return this; | ||
167 | + } | ||
168 | + | ||
169 | + /** | ||
170 | + * Call this to check if the Application uses Cache | ||
171 | + * | ||
172 | + * @return <p>true - the Application is using Cache</p> | ||
173 | + * <p>false - the Application is not using Cache</p> | ||
174 | + */ | ||
175 | + public boolean isUseCache() { | ||
176 | + return mCacheUpdateInterval > 0; | ||
177 | + } | ||
178 | + | ||
179 | + /** | ||
180 | + * Call this to check whether the cached data need to be updated | ||
181 | + * | ||
182 | + * @param useCache <p>true - the Application is using Cache</p> | ||
183 | + * <p>false - the Application is not using Cache</p> | ||
184 | + * @return WarplyConsumerRequest | ||
185 | + */ | ||
186 | + public CosmotePostEventRequest setUseCache(boolean useCache) { | ||
187 | + | ||
188 | + if (useCache) { | ||
189 | + mCacheUpdateInterval = mCacheUpdateInterval > 0 ? mCacheUpdateInterval | ||
190 | + : WarpConstants.INBOX_UPDATE_INTERVAL; | ||
191 | + } else { | ||
192 | + mCacheUpdateInterval = 0; | ||
193 | + } | ||
194 | + return this; | ||
195 | + } | ||
196 | + | ||
197 | + /** | ||
198 | + * Call this to build the offers Json object | ||
199 | + * | ||
200 | + * @return bodyJsonObject | ||
201 | + */ | ||
202 | + public JSONObject toJson() { | ||
203 | + JSONObject bodyJsonObject = new JSONObject(); | ||
204 | + try { | ||
205 | + JSONObject extraJson = new JSONObject(); | ||
206 | + extraJson.putOpt(KEY_ACTION, KEY_ACTION_VALUE); | ||
207 | + extraJson.putOpt(KEY_METHOD, KEY_METHOD_VALUE); | ||
208 | + | ||
209 | + JSONObject data = new JSONObject(); | ||
210 | + data.putOpt("InteractiveChannel", "COSMOTE_OMNI"); | ||
211 | + data.putOpt("InteractionPoint", "COSMOTE_APP_GIFTS4U"); | ||
212 | + data.putOpt("Session_ID", mCommunicationUuid); | ||
213 | + data.putOpt("OfferAudienceLevel", mOfferAudienceLevel); | ||
214 | + data.putOpt("MSISDN", mOfferAudienceLevel.equals("msisdn") ? mUserMsisdn : ""); | ||
215 | + data.putOpt("GUID", ""); | ||
216 | + | ||
217 | + JSONArray parameters = new JSONArray(); | ||
218 | + JSONObject param1 = new JSONObject(); | ||
219 | + param1.putOpt("Name", "UACIOfferTrackingCode"); | ||
220 | + param1.putOpt("Value", mUACIOfferTrackingCode); | ||
221 | + param1.putOpt("Type", "string"); | ||
222 | + parameters.put(param1); | ||
223 | + | ||
224 | + JSONObject param2 = new JSONObject(); | ||
225 | + param2.putOpt("Name", "UACICustomLoggerTableName"); | ||
226 | + param2.putOpt("Value", "VW_WHITELIST"); | ||
227 | + param2.putOpt("Type", "string"); | ||
228 | + parameters.put(param2); | ||
229 | + | ||
230 | + JSONObject param3 = new JSONObject(); | ||
231 | + param3.putOpt("Name", "MSISDN"); | ||
232 | + param3.putOpt("Value", mUserMsisdn); | ||
233 | + param3.putOpt("Type", "string"); | ||
234 | + parameters.put(param3); | ||
235 | + | ||
236 | + JSONObject param4 = new JSONObject(); | ||
237 | + param4.putOpt("Name", "OFFERCODE1"); | ||
238 | + param4.putOpt("Value", mOfferCode1); | ||
239 | + param4.putOpt("Type", "string"); | ||
240 | + parameters.put(param4); | ||
241 | + | ||
242 | + JSONObject param5 = new JSONObject(); | ||
243 | + param5.putOpt("Name", "SCORE"); | ||
244 | + param5.putOpt("Value", mScore); | ||
245 | + param5.putOpt("Type", "numeric"); | ||
246 | + parameters.put(param5); | ||
247 | + | ||
248 | + JSONObject param6 = new JSONObject(); | ||
249 | + param6.putOpt("Name", "PREDICATE"); | ||
250 | + param6.putOpt("Value", "0"); | ||
251 | + param6.putOpt("Type", "string"); | ||
252 | + parameters.put(param6); | ||
253 | + | ||
254 | + JSONObject param7 = new JSONObject(); | ||
255 | + param7.putOpt("Name", "ZONE"); | ||
256 | + param7.putOpt("Value", mZone); | ||
257 | + param7.putOpt("Type", "string"); | ||
258 | + parameters.put(param7); | ||
259 | + | ||
260 | + JSONObject param8 = new JSONObject(); | ||
261 | + param8.putOpt("Name", "APPLICATIONNAME"); | ||
262 | + param8.putOpt("Value", "COSMOTE_APP_GIFTS4U"); | ||
263 | + param8.putOpt("Type", "string"); | ||
264 | + parameters.put(param8); | ||
265 | + | ||
266 | + JSONObject param9 = new JSONObject(); | ||
267 | + param9.putOpt("Name", "Session_ID"); | ||
268 | + param9.putOpt("Value", mCommunicationUuid); | ||
269 | + param9.putOpt("Type", "string"); | ||
270 | + parameters.put(param9); | ||
271 | + | ||
272 | + JSONObject param10 = new JSONObject(); | ||
273 | + param10.putOpt("Name", "CAMPAIGN_CODE"); | ||
274 | + param10.putOpt("Value", "MCC_00006"); | ||
275 | + param10.putOpt("Type", "string"); | ||
276 | + parameters.put(param10); | ||
277 | + | ||
278 | + JSONObject param11 = new JSONObject(); | ||
279 | + param11.putOpt("Name", "CAMPAIGN_TYPE"); | ||
280 | + param11.putOpt("Value", "Inbound"); | ||
281 | + param11.putOpt("Type", "string"); | ||
282 | + parameters.put(param11); | ||
283 | + | ||
284 | + JSONObject param12 = new JSONObject(); | ||
285 | + param12.putOpt("Name", "UACIResponseTypeCode"); | ||
286 | + param12.putOpt("Value", "CON"); | ||
287 | + param12.putOpt("Type", "string"); | ||
288 | + parameters.put(param12); | ||
289 | + | ||
290 | + JSONObject param13 = new JSONObject(); | ||
291 | + param13.putOpt("Name", "CHANNEL"); | ||
292 | + param13.putOpt("Value", "ONE_APP"); | ||
293 | + param13.putOpt("Type", "string"); | ||
294 | + parameters.put(param13); | ||
295 | + | ||
296 | + JSONObject param14 = new JSONObject(); | ||
297 | + param14.putOpt("Name", "WAVE"); | ||
298 | + param14.putOpt("Value", mWave); | ||
299 | + param14.putOpt("Type", "string"); | ||
300 | + parameters.put(param14); | ||
301 | + | ||
302 | + JSONObject param15 = new JSONObject(); | ||
303 | + param15.putOpt("Name", "RESPONSECHANNEL"); | ||
304 | + param15.putOpt("Value", "ONE_APP"); | ||
305 | + param15.putOpt("Type", "string"); | ||
306 | + parameters.put(param15); | ||
307 | + | ||
308 | + JSONObject param16 = new JSONObject(); | ||
309 | + param16.putOpt("Name", "VALIDITY"); | ||
310 | + param16.putOpt("Value", mValidity); | ||
311 | + param16.putOpt("Type", "numeric"); | ||
312 | + parameters.put(param16); | ||
313 | + | ||
314 | + JSONObject param17 = new JSONObject(); | ||
315 | + param17.putOpt("Name", "TREATMENT_CODE"); | ||
316 | + param17.putOpt("Value", mTreatmentCode); | ||
317 | + param17.putOpt("Type", "string"); | ||
318 | + parameters.put(param17); | ||
319 | + | ||
320 | + JSONObject param18 = new JSONObject(); | ||
321 | + param18.putOpt("Name", "EventName"); | ||
322 | + param18.putOpt("Value", "INTEREST_P"); | ||
323 | + param18.putOpt("Type", "string"); | ||
324 | + parameters.put(param18); | ||
325 | + | ||
326 | + data.putOpt(KEY_PARAMETERS, parameters); | ||
327 | + | ||
328 | + extraJson.putOpt(KEY_DATA, data); | ||
329 | + bodyJsonObject.putOpt(KEY_MAPP, extraJson); | ||
330 | + } catch (JSONException e) { | ||
331 | + if (WarpConstants.DEBUG) | ||
332 | + e.printStackTrace(); | ||
333 | + } | ||
334 | + return bodyJsonObject; | ||
335 | + } | ||
336 | + | ||
337 | + public String getSignature() { | ||
338 | + String signature = mFilters != null && mFilters.size() > 0 ? String.valueOf(mFilters.hashCode()) : "default_consumer_request"; | ||
339 | + try { | ||
340 | + byte[] hash = MessageDigest.getInstance("SHA-256").digest(signature.getBytes("UTF-8")); | ||
341 | + signature = Base64.encodeToString(hash, Base64.NO_WRAP); | ||
342 | + } catch (NullPointerException | NoSuchAlgorithmException | ||
343 | + | UnsupportedEncodingException e) { | ||
344 | + e.printStackTrace(); | ||
345 | + } | ||
346 | + return signature; | ||
347 | + } | ||
348 | +} |
... | @@ -632,7 +632,7 @@ public class WarplyManagerHelper { | ... | @@ -632,7 +632,7 @@ public class WarplyManagerHelper { |
632 | try { | 632 | try { |
633 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); | 633 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); |
634 | if (extraFields != null) { | 634 | if (extraFields != null) { |
635 | - if (extraFields.length() == 0 || !extraFields.has("ccms_offer")) { | 635 | + if (extraFields.length() == 0 || !(extraFields.has("ccms_offer") || extraFields.has("type"))) { |
636 | mCampaignList.add(camp); | 636 | mCampaignList.add(camp); |
637 | } | 637 | } |
638 | } | 638 | } | ... | ... |
... | @@ -74,6 +74,7 @@ import ly.warp.sdk.io.models.TagsCategoriesList; | ... | @@ -74,6 +74,7 @@ import ly.warp.sdk.io.models.TagsCategoriesList; |
74 | import ly.warp.sdk.io.models.TagsList; | 74 | import ly.warp.sdk.io.models.TagsList; |
75 | import ly.warp.sdk.io.models.TransactionsList; | 75 | import ly.warp.sdk.io.models.TransactionsList; |
76 | import ly.warp.sdk.io.request.CosmoteCouponSharingRequest; | 76 | import ly.warp.sdk.io.request.CosmoteCouponSharingRequest; |
77 | +import ly.warp.sdk.io.request.CosmotePostEventRequest; | ||
77 | import ly.warp.sdk.io.request.CosmoteRetrieveSharingRequest; | 78 | import ly.warp.sdk.io.request.CosmoteRetrieveSharingRequest; |
78 | import ly.warp.sdk.io.request.CosmoteSharingRequest; | 79 | import ly.warp.sdk.io.request.CosmoteSharingRequest; |
79 | import ly.warp.sdk.io.request.CosmoteSubmitOrderRequest; | 80 | import ly.warp.sdk.io.request.CosmoteSubmitOrderRequest; |
... | @@ -1376,7 +1377,7 @@ public class WarplyManager { | ... | @@ -1376,7 +1377,7 @@ public class WarplyManager { |
1376 | try { | 1377 | try { |
1377 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); | 1378 | JSONObject extraFields = WarpJSONParser.getJSONFromString(camp.getExtraFields()); |
1378 | if (extraFields != null) { | 1379 | if (extraFields != null) { |
1379 | - if (extraFields.length() == 0 || !extraFields.has("ccms_offer")) { | 1380 | + if (extraFields.length() == 0 || !(extraFields.has("ccms_offer") || extraFields.has("type"))) { |
1380 | campaignLoyaltyList.add(camp); | 1381 | campaignLoyaltyList.add(camp); |
1381 | } | 1382 | } |
1382 | } | 1383 | } |
... | @@ -1384,514 +1385,514 @@ public class WarplyManager { | ... | @@ -1384,514 +1385,514 @@ public class WarplyManager { |
1384 | campaignLoyaltyList.add(camp); | 1385 | campaignLoyaltyList.add(camp); |
1385 | } | 1386 | } |
1386 | } | 1387 | } |
1387 | - WarplyManagerHelper.setCampaignList(/*mNewCampaignList*/campaignLoyaltyList); | 1388 | + WarplyManagerHelper.setCampaignList(mNewCampaignList); |
1388 | - | 1389 | + |
1389 | - ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>(); | 1390 | +// ArrayList<LoyaltyContextualOfferModel> list = new ArrayList<>(); |
1390 | - JSONArray jArray = null; | 1391 | +// JSONArray jArray = null; |
1391 | - try { | 1392 | +// try { |
1392 | - jArray = new JSONArray("[\n" + | 1393 | +// jArray = new JSONArray("[\n" + |
1393 | - " {\n" + | 1394 | +// " {\n" + |
1394 | - " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + | 1395 | +// " \"UACIOfferTrackingCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + |
1395 | - " \"businessAdditionalId\": \"\",\n" + | 1396 | +// " \"businessAdditionalId\": \"\",\n" + |
1396 | - " \"dataCategory\": \"Data\",\n" + | 1397 | +// " \"dataCategory\": \"Data\",\n" + |
1397 | - " \"dataValue\": \"None\",\n" + | 1398 | +// " \"dataValue\": \"None\",\n" + |
1398 | - " \"discount\": \"None\",\n" + | 1399 | +// " \"discount\": \"None\",\n" + |
1399 | - " \"eligibleAssets\": [\n" + | 1400 | +// " \"eligibleAssets\": [\n" + |
1400 | - " \"306945218770\",\n" + | 1401 | +// " \"306945218770\",\n" + |
1401 | - " \"306944333488\",\n" + | 1402 | +// " \"306944333488\",\n" + |
1402 | - " \"306932222490\",\n" + | 1403 | +// " \"306932222490\",\n" + |
1403 | - " \"306996824010\",\n" + | 1404 | +// " \"306996824010\",\n" + |
1404 | - " \"306972713201\",\n" + | 1405 | +// " \"306972713201\",\n" + |
1405 | - " \"306942496252\",\n" + | 1406 | +// " \"306942496252\",\n" + |
1406 | - " \"306977316716\",\n" + | 1407 | +// " \"306977316716\",\n" + |
1407 | - " \"306945433100\",\n" + | 1408 | +// " \"306945433100\",\n" + |
1408 | - " \"306977403986\",\n" + | 1409 | +// " \"306977403986\",\n" + |
1409 | - " \"306936581495\",\n" + | 1410 | +// " \"306936581495\",\n" + |
1410 | - " \"306980689662\",\n" + | 1411 | +// " \"306980689662\",\n" + |
1411 | - " \"306970101490\",\n" + | 1412 | +// " \"306970101490\",\n" + |
1412 | - " \"306973396329\",\n" + | 1413 | +// " \"306973396329\",\n" + |
1413 | - " \"306972577064\",\n" + | 1414 | +// " \"306972577064\",\n" + |
1414 | - " \"306974923219\",\n" + | 1415 | +// " \"306974923219\",\n" + |
1415 | - " \"306977513761\",\n" + | 1416 | +// " \"306977513761\",\n" + |
1416 | - " \"306984220987\",\n" + | 1417 | +// " \"306984220987\",\n" + |
1417 | - " \"306979949205\",\n" + | 1418 | +// " \"306979949205\",\n" + |
1418 | - " \"306943134127\",\n" + | 1419 | +// " \"306943134127\",\n" + |
1419 | - " \"306970437794\",\n" + | 1420 | +// " \"306970437794\",\n" + |
1420 | - " \"306932535319\",\n" + | 1421 | +// " \"306932535319\",\n" + |
1421 | - " \"306974063133\",\n" + | 1422 | +// " \"306974063133\",\n" + |
1422 | - " \"306932520323\",\n" + | 1423 | +// " \"306932520323\",\n" + |
1423 | - " \"306978733823\",\n" + | 1424 | +// " \"306978733823\",\n" + |
1424 | - " \"306985995420\",\n" + | 1425 | +// " \"306985995420\",\n" + |
1425 | - " \"306983879555\",\n" + | 1426 | +// " \"306983879555\",\n" + |
1426 | - " ],\n" + | 1427 | +// " ],\n" + |
1427 | - " \"id\": \"000003590\",\n" + | 1428 | +// " \"id\": \"000003590\",\n" + |
1428 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 1429 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
1429 | - " \"minsValue\": \"None\",\n" + | 1430 | +// " \"minsValue\": \"None\",\n" + |
1430 | - " \"noOfRecurrance\": \"None\",\n" + | 1431 | +// " \"noOfRecurrance\": \"None\",\n" + |
1431 | - " \"notificationMessage\": \"None\",\n" + | 1432 | +// " \"notificationMessage\": \"None\",\n" + |
1432 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1433 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1433 | - " \"offerCode1\": \"000003590\",\n" + | 1434 | +// " \"offerCode1\": \"000003590\",\n" + |
1434 | - " \"offerName\": \"CCMS loyalty white label\",\n" + | 1435 | +// " \"offerName\": \"CCMS loyalty white label\",\n" + |
1435 | - " \"price\": \"None\",\n" + | 1436 | +// " \"price\": \"None\",\n" + |
1436 | - " \"productType\": \"White Label\",\n" + | 1437 | +// " \"productType\": \"White Label\",\n" + |
1437 | - " \"provDuration\": \"0.0\",\n" + | 1438 | +// " \"provDuration\": \"0.0\",\n" + |
1438 | - " \"provStepValueMins\": \"None\",\n" + | 1439 | +// " \"provStepValueMins\": \"None\",\n" + |
1439 | - " \"score\": \"50\",\n" + | 1440 | +// " \"score\": \"50\",\n" + |
1440 | - " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + | 1441 | +// " \"treatmentCode\": \"5166.e07.fffffffffa10663a.ffffffffda30c76a\",\n" + |
1441 | - " \"validity\": \"0\",\n" + | 1442 | +// " \"validity\": \"0\",\n" + |
1442 | - " \"voiceCategory\": \"None\",\n" + | 1443 | +// " \"voiceCategory\": \"None\",\n" + |
1443 | - " \"wave\": \"1\",\n" + | 1444 | +// " \"wave\": \"1\",\n" + |
1444 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 1445 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
1445 | - " },\n" + | 1446 | +// " },\n" + |
1446 | - " {\n" + | 1447 | +// " {\n" + |
1447 | - " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + | 1448 | +// " \"UACIOfferTrackingCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + |
1448 | - " \"businessAdditionalId\": \"\",\n" + | 1449 | +// " \"businessAdditionalId\": \"\",\n" + |
1449 | - " \"dataCategory\": \"Data\",\n" + | 1450 | +// " \"dataCategory\": \"Data\",\n" + |
1450 | - " \"dataValue\": \"233\",\n" + | 1451 | +// " \"dataValue\": \"233\",\n" + |
1451 | - " \"discount\": \"None\",\n" + | 1452 | +// " \"discount\": \"None\",\n" + |
1452 | - " \"eligibleAssets\": [\n" + | 1453 | +// " \"eligibleAssets\": [\n" + |
1453 | - " \"306945218770\",\n" + | 1454 | +// " \"306945218770\",\n" + |
1454 | - " \"306944333488\",\n" + | 1455 | +// " \"306944333488\",\n" + |
1455 | - " \"306932222490\",\n" + | 1456 | +// " \"306932222490\",\n" + |
1456 | - " \"306996824010\",\n" + | 1457 | +// " \"306996824010\",\n" + |
1457 | - " \"306972713201\",\n" + | 1458 | +// " \"306972713201\",\n" + |
1458 | - " \"306942496252\",\n" + | 1459 | +// " \"306942496252\",\n" + |
1459 | - " \"306977316716\",\n" + | 1460 | +// " \"306977316716\",\n" + |
1460 | - " \"306945433100\",\n" + | 1461 | +// " \"306945433100\",\n" + |
1461 | - " \"306977403986\",\n" + | 1462 | +// " \"306977403986\",\n" + |
1462 | - " \"306936581495\",\n" + | 1463 | +// " \"306936581495\",\n" + |
1463 | - " \"306980689662\",\n" + | 1464 | +// " \"306980689662\",\n" + |
1464 | - " \"306970101490\",\n" + | 1465 | +// " \"306970101490\",\n" + |
1465 | - " \"306973396329\",\n" + | 1466 | +// " \"306973396329\",\n" + |
1466 | - " \"306972577064\",\n" + | 1467 | +// " \"306972577064\",\n" + |
1467 | - " \"306974923219\",\n" + | 1468 | +// " \"306974923219\",\n" + |
1468 | - " \"306977513761\",\n" + | 1469 | +// " \"306977513761\",\n" + |
1469 | - " \"306984220987\",\n" + | 1470 | +// " \"306984220987\",\n" + |
1470 | - " \"306979949205\",\n" + | 1471 | +// " \"306979949205\",\n" + |
1471 | - " \"306943134127\",\n" + | 1472 | +// " \"306943134127\",\n" + |
1472 | - " \"306970437794\",\n" + | 1473 | +// " \"306970437794\",\n" + |
1473 | - " \"306932535319\",\n" + | 1474 | +// " \"306932535319\",\n" + |
1474 | - " \"306974063133\",\n" + | 1475 | +// " \"306974063133\",\n" + |
1475 | - " \"306932520323\",\n" + | 1476 | +// " \"306932520323\",\n" + |
1476 | - " \"306978733823\",\n" + | 1477 | +// " \"306978733823\",\n" + |
1477 | - " \"306985995420\",\n" + | 1478 | +// " \"306985995420\",\n" + |
1478 | - " \"306983879555\",\n" + | 1479 | +// " \"306983879555\",\n" + |
1479 | - " ],\n" + | 1480 | +// " ],\n" + |
1480 | - " \"id\": \"000003599\",\n" + | 1481 | +// " \"id\": \"000003599\",\n" + |
1481 | - " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d | 1482 | +// " \"loyaltyCampaignId\": \"9a92d445956145f6bbc5cd20cef543b9\",\n" + //c5cc5f4f65624f47a580b720233fa60d |
1482 | - " \"minsValue\": \"None\",\n" + | 1483 | +// " \"minsValue\": \"None\",\n" + |
1483 | - " \"noOfRecurrance\": \"None\",\n" + | 1484 | +// " \"noOfRecurrance\": \"None\",\n" + |
1484 | - " \"notificationMessage\": \"None\",\n" + | 1485 | +// " \"notificationMessage\": \"None\",\n" + |
1485 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1486 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1486 | - " \"offerCode1\": \"000003599\",\n" + | 1487 | +// " \"offerCode1\": \"000003599\",\n" + |
1487 | - " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + | 1488 | +// " \"offerName\": \"CCMS loyalty white label with campaignId\",\n" + |
1488 | - " \"price\": \"None\",\n" + | 1489 | +// " \"price\": \"None\",\n" + |
1489 | - " \"productType\": \"White Label\",\n" + | 1490 | +// " \"productType\": \"White Label\",\n" + |
1490 | - " \"provDuration\": \"0.0\",\n" + | 1491 | +// " \"provDuration\": \"0.0\",\n" + |
1491 | - " \"provStepValueMins\": \"None\",\n" + | 1492 | +// " \"provStepValueMins\": \"None\",\n" + |
1492 | - " \"score\": \"50\",\n" + | 1493 | +// " \"score\": \"50\",\n" + |
1493 | - " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + | 1494 | +// " \"treatmentCode\": \"51ed.e10.2c006f18.71e96d08\",\n" + |
1494 | - " \"validity\": \"0\",\n" + | 1495 | +// " \"validity\": \"0\",\n" + |
1495 | - " \"voiceCategory\": \"None\",\n" + | 1496 | +// " \"voiceCategory\": \"None\",\n" + |
1496 | - " \"wave\": \"1\",\n" + | 1497 | +// " \"wave\": \"1\",\n" + |
1497 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1498 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1498 | - " \"title\": \"Test1\",\n" + | 1499 | +// " \"title\": \"Test1\",\n" + |
1499 | - " \"subtitle\": \"Test1\",\n" + | 1500 | +// " \"subtitle\": \"Test1\",\n" + |
1500 | - " \"description\": \"Test1\",\n" + | 1501 | +// " \"description\": \"Test1\",\n" + |
1501 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 1502 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
1502 | - " },\n" + | 1503 | +// " },\n" + |
1503 | - " {\n" + | 1504 | +// " {\n" + |
1504 | - " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 1505 | +// " \"UACIOfferTrackingCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
1505 | - " \"businessAdditionalId\": \"\",\n" + | 1506 | +// " \"businessAdditionalId\": \"\",\n" + |
1506 | - " \"businessService\": \"0.0\",\n" + | 1507 | +// " \"businessService\": \"0.0\",\n" + |
1507 | - " \"eligibleAssets\": [\n" + | 1508 | +// " \"eligibleAssets\": [\n" + |
1508 | - " \"306945218770\",\n" + | 1509 | +// " \"306945218770\",\n" + |
1509 | - " \"306944333488\",\n" + | 1510 | +// " \"306944333488\",\n" + |
1510 | - " \"306932222490\",\n" + | 1511 | +// " \"306932222490\",\n" + |
1511 | - " \"306996824010\",\n" + | 1512 | +// " \"306996824010\",\n" + |
1512 | - " \"306972713201\",\n" + | 1513 | +// " \"306972713201\",\n" + |
1513 | - " \"306942496252\",\n" + | 1514 | +// " \"306942496252\",\n" + |
1514 | - " \"306977316716\",\n" + | 1515 | +// " \"306977316716\",\n" + |
1515 | - " \"306945433100\",\n" + | 1516 | +// " \"306945433100\",\n" + |
1516 | - " \"306977403986\",\n" + | 1517 | +// " \"306977403986\",\n" + |
1517 | - " \"306936581495\",\n" + | 1518 | +// " \"306936581495\",\n" + |
1518 | - " \"306980689662\",\n" + | 1519 | +// " \"306980689662\",\n" + |
1519 | - " \"306970101490\",\n" + | 1520 | +// " \"306970101490\",\n" + |
1520 | - " \"306973396329\",\n" + | 1521 | +// " \"306973396329\",\n" + |
1521 | - " \"306972577064\",\n" + | 1522 | +// " \"306972577064\",\n" + |
1522 | - " \"306974923219\",\n" + | 1523 | +// " \"306974923219\",\n" + |
1523 | - " \"306977513761\",\n" + | 1524 | +// " \"306977513761\",\n" + |
1524 | - " \"306984220987\",\n" + | 1525 | +// " \"306984220987\",\n" + |
1525 | - " \"306979949205\",\n" + | 1526 | +// " \"306979949205\",\n" + |
1526 | - " \"306943134127\",\n" + | 1527 | +// " \"306943134127\",\n" + |
1527 | - " \"306970437794\",\n" + | 1528 | +// " \"306970437794\",\n" + |
1528 | - " \"306932535319\",\n" + | 1529 | +// " \"306932535319\",\n" + |
1529 | - " \"306974063133\",\n" + | 1530 | +// " \"306974063133\",\n" + |
1530 | - " \"306932520323\",\n" + | 1531 | +// " \"306932520323\",\n" + |
1531 | - " \"306978733823\",\n" + | 1532 | +// " \"306978733823\",\n" + |
1532 | - " \"306985995420\",\n" + | 1533 | +// " \"306985995420\",\n" + |
1533 | - " \"306983879555\",\n" + | 1534 | +// " \"306983879555\",\n" + |
1534 | - " ],\n" + | 1535 | +// " ],\n" + |
1535 | - " \"id\": \"000003588\",\n" + | 1536 | +// " \"id\": \"000003588\",\n" + |
1536 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 1537 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
1537 | - " \"noOfRecurrance\": \"0\",\n" + | 1538 | +// " \"noOfRecurrance\": \"0\",\n" + |
1538 | - " \"notificationMessage\": \"None\",\n" + | 1539 | +// " \"notificationMessage\": \"None\",\n" + |
1539 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1540 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1540 | - " \"offerCode1\": \"000003588\",\n" + | 1541 | +// " \"offerCode1\": \"000003588\",\n" + |
1541 | - " \"offerName\": \"CCMS loyalty postpay addon\",\n" + | 1542 | +// " \"offerName\": \"CCMS loyalty postpay addon\",\n" + |
1542 | - " \"postpayProduct\": \"0.0\",\n" + | 1543 | +// " \"postpayProduct\": \"0.0\",\n" + |
1543 | - " \"price\": \"None\",\n" + | 1544 | +// " \"price\": \"None\",\n" + |
1544 | - " \"productType\": \"MOBILE ADDON\",\n" + | 1545 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
1545 | - " \"provDuration\": \"0.0\",\n" + | 1546 | +// " \"provDuration\": \"0.0\",\n" + |
1546 | - " \"score\": \"50\",\n" + | 1547 | +// " \"score\": \"50\",\n" + |
1547 | - " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + | 1548 | +// " \"treatmentCode\": \"516c.e05.ffffffffa943695b.79ff470b\",\n" + |
1548 | - " \"validity\": \"0\",\n" + | 1549 | +// " \"validity\": \"0\",\n" + |
1549 | - " \"wave\": \"1\",\n" + | 1550 | +// " \"wave\": \"1\",\n" + |
1550 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1551 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1551 | - " \"title\": \"Test2\",\n" + | 1552 | +// " \"title\": \"Test2\",\n" + |
1552 | - " \"subtitle\": \"Test2\",\n" + | 1553 | +// " \"subtitle\": \"Test2\",\n" + |
1553 | - " \"description\": \"Test2\",\n" + | 1554 | +// " \"description\": \"Test2\",\n" + |
1554 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 1555 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
1555 | - " },\n" + | 1556 | +// " },\n" + |
1556 | - " {\n" + | 1557 | +// " {\n" + |
1557 | - " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 1558 | +// " \"UACIOfferTrackingCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
1558 | - " \"businessAdditionalId\": \"\",\n" + | 1559 | +// " \"businessAdditionalId\": \"\",\n" + |
1559 | - " \"dataCategory\": \"Data\",\n" + | 1560 | +// " \"dataCategory\": \"Data\",\n" + |
1560 | - " \"dataValue\": \"None\",\n" + | 1561 | +// " \"dataValue\": \"None\",\n" + |
1561 | - " \"discount\": \"None\",\n" + | 1562 | +// " \"discount\": \"None\",\n" + |
1562 | - " \"eligibleAssets\": [\n" + | 1563 | +// " \"eligibleAssets\": [\n" + |
1563 | - " \"306945218770\",\n" + | 1564 | +// " \"306945218770\",\n" + |
1564 | - " \"306944333488\",\n" + | 1565 | +// " \"306944333488\",\n" + |
1565 | - " \"306932222490\",\n" + | 1566 | +// " \"306932222490\",\n" + |
1566 | - " \"306996824010\",\n" + | 1567 | +// " \"306996824010\",\n" + |
1567 | - " \"306972713201\",\n" + | 1568 | +// " \"306972713201\",\n" + |
1568 | - " \"306942496252\",\n" + | 1569 | +// " \"306942496252\",\n" + |
1569 | - " \"306977316716\",\n" + | 1570 | +// " \"306977316716\",\n" + |
1570 | - " \"306945433100\",\n" + | 1571 | +// " \"306945433100\",\n" + |
1571 | - " \"306977403986\",\n" + | 1572 | +// " \"306977403986\",\n" + |
1572 | - " \"306936581495\",\n" + | 1573 | +// " \"306936581495\",\n" + |
1573 | - " \"306980689662\",\n" + | 1574 | +// " \"306980689662\",\n" + |
1574 | - " \"306970101490\",\n" + | 1575 | +// " \"306970101490\",\n" + |
1575 | - " \"306973396329\",\n" + | 1576 | +// " \"306973396329\",\n" + |
1576 | - " \"306972577064\",\n" + | 1577 | +// " \"306972577064\",\n" + |
1577 | - " \"306974923219\",\n" + | 1578 | +// " \"306974923219\",\n" + |
1578 | - " \"306977513761\",\n" + | 1579 | +// " \"306977513761\",\n" + |
1579 | - " \"306984220987\",\n" + | 1580 | +// " \"306984220987\",\n" + |
1580 | - " \"306979949205\",\n" + | 1581 | +// " \"306979949205\",\n" + |
1581 | - " \"306943134127\",\n" + | 1582 | +// " \"306943134127\",\n" + |
1582 | - " \"306970437794\",\n" + | 1583 | +// " \"306970437794\",\n" + |
1583 | - " \"306932535319\",\n" + | 1584 | +// " \"306932535319\",\n" + |
1584 | - " \"306974063133\",\n" + | 1585 | +// " \"306974063133\",\n" + |
1585 | - " \"306932520323\",\n" + | 1586 | +// " \"306932520323\",\n" + |
1586 | - " \"306978733823\",\n" + | 1587 | +// " \"306978733823\",\n" + |
1587 | - " \"306985995420\",\n" + | 1588 | +// " \"306985995420\",\n" + |
1588 | - " \"306983879555\",\n" + | 1589 | +// " \"306983879555\",\n" + |
1589 | - " ],\n" + | 1590 | +// " ],\n" + |
1590 | - " \"id\": \"000003608\",\n" + | 1591 | +// " \"id\": \"000003608\",\n" + |
1591 | - " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + | 1592 | +// " \"loyaltyCampaignId\": \"c134cdeb8a924f8eac38e261acb9caf5\",\n" + |
1592 | - " \"minsValue\": \"None\",\n" + | 1593 | +// " \"minsValue\": \"None\",\n" + |
1593 | - " \"noOfRecurrance\": \"None\",\n" + | 1594 | +// " \"noOfRecurrance\": \"None\",\n" + |
1594 | - " \"notificationMessage\": \"None\",\n" + | 1595 | +// " \"notificationMessage\": \"None\",\n" + |
1595 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1596 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1596 | - " \"offerCode1\": \"000003608\",\n" + | 1597 | +// " \"offerCode1\": \"000003608\",\n" + |
1597 | - " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + | 1598 | +// " \"offerName\": \"CCMS loyalty gifts4u v1\",\n" + |
1598 | - " \"price\": \"None\",\n" + | 1599 | +// " \"price\": \"None\",\n" + |
1599 | - " \"productType\": \"White Label\",\n" + | 1600 | +// " \"productType\": \"White Label\",\n" + |
1600 | - " \"provDuration\": \"0.0\",\n" + | 1601 | +// " \"provDuration\": \"0.0\",\n" + |
1601 | - " \"provStepValueMins\": \"None\",\n" + | 1602 | +// " \"provStepValueMins\": \"None\",\n" + |
1602 | - " \"score\": \"50\",\n" + | 1603 | +// " \"score\": \"50\",\n" + |
1603 | - " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + | 1604 | +// " \"treatmentCode\": \"5224.e19.30e2f27b.ffffffffeb22b0db\",\n" + |
1604 | - " \"validity\": \"0\",\n" + | 1605 | +// " \"validity\": \"0\",\n" + |
1605 | - " \"voiceCategory\": \"None\",\n" + | 1606 | +// " \"voiceCategory\": \"None\",\n" + |
1606 | - " \"wave\": \"1\",\n" + | 1607 | +// " \"wave\": \"1\",\n" + |
1607 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1608 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1608 | - " \"title\": \"Test3\",\n" + | 1609 | +// " \"title\": \"Test3\",\n" + |
1609 | - " \"subtitle\": \"Test3\",\n" + | 1610 | +// " \"subtitle\": \"Test3\",\n" + |
1610 | - " \"description\": \"Test3\",\n" + | 1611 | +// " \"description\": \"Test3\",\n" + |
1611 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 1612 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
1612 | - " },\n" + | 1613 | +// " },\n" + |
1613 | - " {\n" + | 1614 | +// " {\n" + |
1614 | - " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 1615 | +// " \"UACIOfferTrackingCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
1615 | - " \"businessAdditionalId\": \"\",\n" + | 1616 | +// " \"businessAdditionalId\": \"\",\n" + |
1616 | - " \"businessService\": \"0.0\",\n" + | 1617 | +// " \"businessService\": \"0.0\",\n" + |
1617 | - " \"eligibleAssets\": [\n" + | 1618 | +// " \"eligibleAssets\": [\n" + |
1618 | - " \"306945218770\",\n" + | 1619 | +// " \"306945218770\",\n" + |
1619 | - " \"306944333488\",\n" + | 1620 | +// " \"306944333488\",\n" + |
1620 | - " \"306932222490\",\n" + | 1621 | +// " \"306932222490\",\n" + |
1621 | - " \"306996824010\",\n" + | 1622 | +// " \"306996824010\",\n" + |
1622 | - " \"306972713201\",\n" + | 1623 | +// " \"306972713201\",\n" + |
1623 | - " \"306942496252\",\n" + | 1624 | +// " \"306942496252\",\n" + |
1624 | - " \"306977316716\",\n" + | 1625 | +// " \"306977316716\",\n" + |
1625 | - " \"306945433100\",\n" + | 1626 | +// " \"306945433100\",\n" + |
1626 | - " \"306977403986\",\n" + | 1627 | +// " \"306977403986\",\n" + |
1627 | - " \"306936581495\",\n" + | 1628 | +// " \"306936581495\",\n" + |
1628 | - " \"306980689662\",\n" + | 1629 | +// " \"306980689662\",\n" + |
1629 | - " \"306970101490\",\n" + | 1630 | +// " \"306970101490\",\n" + |
1630 | - " \"306973396329\",\n" + | 1631 | +// " \"306973396329\",\n" + |
1631 | - " \"306972577064\",\n" + | 1632 | +// " \"306972577064\",\n" + |
1632 | - " \"306974923219\",\n" + | 1633 | +// " \"306974923219\",\n" + |
1633 | - " \"306977513761\",\n" + | 1634 | +// " \"306977513761\",\n" + |
1634 | - " \"306984220987\",\n" + | 1635 | +// " \"306984220987\",\n" + |
1635 | - " \"306979949205\",\n" + | 1636 | +// " \"306979949205\",\n" + |
1636 | - " \"306943134127\",\n" + | 1637 | +// " \"306943134127\",\n" + |
1637 | - " \"306970437794\",\n" + | 1638 | +// " \"306970437794\",\n" + |
1638 | - " \"306932535319\",\n" + | 1639 | +// " \"306932535319\",\n" + |
1639 | - " \"306974063133\",\n" + | 1640 | +// " \"306974063133\",\n" + |
1640 | - " \"306932520323\",\n" + | 1641 | +// " \"306932520323\",\n" + |
1641 | - " \"306978733823\",\n" + | 1642 | +// " \"306978733823\",\n" + |
1642 | - " \"306985995420\",\n" + | 1643 | +// " \"306985995420\",\n" + |
1643 | - " \"306983879555\",\n" + | 1644 | +// " \"306983879555\",\n" + |
1644 | - " ],\n" + | 1645 | +// " ],\n" + |
1645 | - " \"id\": \"000003612\",\n" + | 1646 | +// " \"id\": \"000003612\",\n" + |
1646 | - " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + | 1647 | +// " \"loyaltyCampaignId\": \"8eb71c4ceaff409c896e2d1f6f1c20f3\",\n" + |
1647 | - " \"noOfRecurrance\": \"0\",\n" + | 1648 | +// " \"noOfRecurrance\": \"0\",\n" + |
1648 | - " \"notificationMessage\": \"None\",\n" + | 1649 | +// " \"notificationMessage\": \"None\",\n" + |
1649 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1650 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1650 | - " \"offerCode1\": \"000003612\",\n" + | 1651 | +// " \"offerCode1\": \"000003612\",\n" + |
1651 | - " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + | 1652 | +// " \"offerName\": \"CCMS loyalty - postpay addon gifts4u\",\n" + |
1652 | - " \"postpayProduct\": \"0.0\",\n" + | 1653 | +// " \"postpayProduct\": \"0.0\",\n" + |
1653 | - " \"price\": \"None\",\n" + | 1654 | +// " \"price\": \"None\",\n" + |
1654 | - " \"productType\": \"MOBILE ADDON\",\n" + | 1655 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
1655 | - " \"provDuration\": \"0.0\",\n" + | 1656 | +// " \"provDuration\": \"0.0\",\n" + |
1656 | - " \"score\": \"50\",\n" + | 1657 | +// " \"score\": \"50\",\n" + |
1657 | - " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + | 1658 | +// " \"treatmentCode\": \"5228.e1d.38378e61.750186c1\",\n" + |
1658 | - " \"validity\": \"0\",\n" + | 1659 | +// " \"validity\": \"0\",\n" + |
1659 | - " \"wave\": \"1\",\n" + | 1660 | +// " \"wave\": \"1\",\n" + |
1660 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1661 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1661 | - " \"title\": \"Test4\",\n" + | 1662 | +// " \"title\": \"Test4\",\n" + |
1662 | - " \"subtitle\": \"Test4\",\n" + | 1663 | +// " \"subtitle\": \"Test4\",\n" + |
1663 | - " \"description\": \"Test4\",\n" + | 1664 | +// " \"description\": \"Test4\",\n" + |
1664 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 1665 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
1665 | - " },\n" + | 1666 | +// " },\n" + |
1666 | - " {\n" + | 1667 | +// " {\n" + |
1667 | - " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 1668 | +// " \"UACIOfferTrackingCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
1668 | - " \"businessAdditionalId\": \"\",\n" + | 1669 | +// " \"businessAdditionalId\": \"\",\n" + |
1669 | - " \"dataCategory\": \"Data\",\n" + | 1670 | +// " \"dataCategory\": \"Data\",\n" + |
1670 | - " \"dataValue\": \"None\",\n" + | 1671 | +// " \"dataValue\": \"None\",\n" + |
1671 | - " \"discount\": \"None\",\n" + | 1672 | +// " \"discount\": \"None\",\n" + |
1672 | - " \"eligibleAssets\": [\n" + | 1673 | +// " \"eligibleAssets\": [\n" + |
1673 | - " \"306945218770\",\n" + | 1674 | +// " \"306945218770\",\n" + |
1674 | - " \"306944333488\",\n" + | 1675 | +// " \"306944333488\",\n" + |
1675 | - " \"306932222490\",\n" + | 1676 | +// " \"306932222490\",\n" + |
1676 | - " \"306996824010\",\n" + | 1677 | +// " \"306996824010\",\n" + |
1677 | - " \"306972713201\",\n" + | 1678 | +// " \"306972713201\",\n" + |
1678 | - " \"306942496252\",\n" + | 1679 | +// " \"306942496252\",\n" + |
1679 | - " \"306977316716\",\n" + | 1680 | +// " \"306977316716\",\n" + |
1680 | - " \"306945433100\",\n" + | 1681 | +// " \"306945433100\",\n" + |
1681 | - " \"306977403986\",\n" + | 1682 | +// " \"306977403986\",\n" + |
1682 | - " \"306936581495\",\n" + | 1683 | +// " \"306936581495\",\n" + |
1683 | - " \"306980689662\",\n" + | 1684 | +// " \"306980689662\",\n" + |
1684 | - " \"306970101490\",\n" + | 1685 | +// " \"306970101490\",\n" + |
1685 | - " \"306973396329\",\n" + | 1686 | +// " \"306973396329\",\n" + |
1686 | - " \"306972577064\",\n" + | 1687 | +// " \"306972577064\",\n" + |
1687 | - " \"306974923219\",\n" + | 1688 | +// " \"306974923219\",\n" + |
1688 | - " \"306977513761\",\n" + | 1689 | +// " \"306977513761\",\n" + |
1689 | - " \"306984220987\",\n" + | 1690 | +// " \"306984220987\",\n" + |
1690 | - " \"306979949205\",\n" + | 1691 | +// " \"306979949205\",\n" + |
1691 | - " \"306943134127\",\n" + | 1692 | +// " \"306943134127\",\n" + |
1692 | - " \"306970437794\",\n" + | 1693 | +// " \"306970437794\",\n" + |
1693 | - " \"306932535319\",\n" + | 1694 | +// " \"306932535319\",\n" + |
1694 | - " \"306974063133\",\n" + | 1695 | +// " \"306974063133\",\n" + |
1695 | - " \"306932520323\",\n" + | 1696 | +// " \"306932520323\",\n" + |
1696 | - " \"306978733823\",\n" + | 1697 | +// " \"306978733823\",\n" + |
1697 | - " \"306985995420\",\n" + | 1698 | +// " \"306985995420\",\n" + |
1698 | - " \"306983879555\",\n" + | 1699 | +// " \"306983879555\",\n" + |
1699 | - " ],\n" + | 1700 | +// " ],\n" + |
1700 | - " \"id\": \"000003610\",\n" + | 1701 | +// " \"id\": \"000003610\",\n" + |
1701 | - " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + | 1702 | +// " \"loyaltyCampaignId\": \"8e2c88ec94c948d8b51577324ed9a4d5\",\n" + |
1702 | - " \"minsValue\": \"None\",\n" + | 1703 | +// " \"minsValue\": \"None\",\n" + |
1703 | - " \"noOfRecurrance\": \"None\",\n" + | 1704 | +// " \"noOfRecurrance\": \"None\",\n" + |
1704 | - " \"notificationMessage\": \"None\",\n" + | 1705 | +// " \"notificationMessage\": \"None\",\n" + |
1705 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1706 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1706 | - " \"offerCode1\": \"000003610\",\n" + | 1707 | +// " \"offerCode1\": \"000003610\",\n" + |
1707 | - " \"offerName\": \"CCMS loyalty more4u v1\",\n" + | 1708 | +// " \"offerName\": \"CCMS loyalty more4u v1\",\n" + |
1708 | - " \"price\": \"20\",\n" + | 1709 | +// " \"price\": \"20\",\n" + |
1709 | - " \"productType\": \"White Label\",\n" + | 1710 | +// " \"productType\": \"White Label\",\n" + |
1710 | - " \"provDuration\": \"7.0\",\n" + | 1711 | +// " \"provDuration\": \"7.0\",\n" + |
1711 | - " \"provStepValueMins\": \"None\",\n" + | 1712 | +// " \"provStepValueMins\": \"None\",\n" + |
1712 | - " \"score\": \"60\",\n" + | 1713 | +// " \"score\": \"60\",\n" + |
1713 | - " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + | 1714 | +// " \"treatmentCode\": \"5222.e1b.ffffffffe725d1b3.ffffffffed6d8723\",\n" + |
1714 | - " \"validity\": \"0\",\n" + | 1715 | +// " \"validity\": \"0\",\n" + |
1715 | - " \"voiceCategory\": \"None\",\n" + | 1716 | +// " \"voiceCategory\": \"None\",\n" + |
1716 | - " \"wave\": \"1\",\n" + | 1717 | +// " \"wave\": \"1\",\n" + |
1717 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1718 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1718 | - " \"title\": \"Test5\",\n" + | 1719 | +// " \"title\": \"Test5\",\n" + |
1719 | - " \"subtitle\": \"Test5\",\n" + | 1720 | +// " \"subtitle\": \"Test5\",\n" + |
1720 | - " \"description\": \"Test5\",\n" + | 1721 | +// " \"description\": \"Test5\",\n" + |
1721 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 1722 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
1722 | - " },\n" + | 1723 | +// " },\n" + |
1723 | - " {\n" + | 1724 | +// " {\n" + |
1724 | - " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 1725 | +// " \"UACIOfferTrackingCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
1725 | - " \"businessAdditionalId\": \"\",\n" + | 1726 | +// " \"businessAdditionalId\": \"\",\n" + |
1726 | - " \"businessService\": \"0.0\",\n" + | 1727 | +// " \"businessService\": \"0.0\",\n" + |
1727 | - " \"eligibleAssets\": [\n" + | 1728 | +// " \"eligibleAssets\": [\n" + |
1728 | - " \"306945218770\",\n" + | 1729 | +// " \"306945218770\",\n" + |
1729 | - " \"306944333488\",\n" + | 1730 | +// " \"306944333488\",\n" + |
1730 | - " \"306932222490\",\n" + | 1731 | +// " \"306932222490\",\n" + |
1731 | - " \"306996824010\",\n" + | 1732 | +// " \"306996824010\",\n" + |
1732 | - " \"306972713201\",\n" + | 1733 | +// " \"306972713201\",\n" + |
1733 | - " \"306942496252\",\n" + | 1734 | +// " \"306942496252\",\n" + |
1734 | - " \"306977316716\",\n" + | 1735 | +// " \"306977316716\",\n" + |
1735 | - " \"306945433100\",\n" + | 1736 | +// " \"306945433100\",\n" + |
1736 | - " \"306977403986\",\n" + | 1737 | +// " \"306977403986\",\n" + |
1737 | - " \"306936581495\",\n" + | 1738 | +// " \"306936581495\",\n" + |
1738 | - " \"306980689662\",\n" + | 1739 | +// " \"306980689662\",\n" + |
1739 | - " \"306970101490\",\n" + | 1740 | +// " \"306970101490\",\n" + |
1740 | - " \"306973396329\",\n" + | 1741 | +// " \"306973396329\",\n" + |
1741 | - " \"306972577064\",\n" + | 1742 | +// " \"306972577064\",\n" + |
1742 | - " \"306974923219\",\n" + | 1743 | +// " \"306974923219\",\n" + |
1743 | - " \"306977513761\",\n" + | 1744 | +// " \"306977513761\",\n" + |
1744 | - " \"306984220987\",\n" + | 1745 | +// " \"306984220987\",\n" + |
1745 | - " \"306979949205\",\n" + | 1746 | +// " \"306979949205\",\n" + |
1746 | - " \"306943134127\",\n" + | 1747 | +// " \"306943134127\",\n" + |
1747 | - " \"306970437794\",\n" + | 1748 | +// " \"306970437794\",\n" + |
1748 | - " \"306932535319\",\n" + | 1749 | +// " \"306932535319\",\n" + |
1749 | - " \"306974063133\",\n" + | 1750 | +// " \"306974063133\",\n" + |
1750 | - " \"306932520323\",\n" + | 1751 | +// " \"306932520323\",\n" + |
1751 | - " \"306978733823\",\n" + | 1752 | +// " \"306978733823\",\n" + |
1752 | - " \"306985995420\",\n" + | 1753 | +// " \"306985995420\",\n" + |
1753 | - " \"306983879555\",\n" + | 1754 | +// " \"306983879555\",\n" + |
1754 | - " ],\n" + | 1755 | +// " ],\n" + |
1755 | - " \"id\": \"000003614\",\n" + | 1756 | +// " \"id\": \"000003614\",\n" + |
1756 | - " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + | 1757 | +// " \"loyaltyCampaignId\": \"aaf4022194584f02bb84c7b283c7c51e\",\n" + |
1757 | - " \"noOfRecurrance\": \"0\",\n" + | 1758 | +// " \"noOfRecurrance\": \"0\",\n" + |
1758 | - " \"notificationMessage\": \"None\",\n" + | 1759 | +// " \"notificationMessage\": \"None\",\n" + |
1759 | - " \"offerAudienceLevel\": \"msisdn\",\n" + | 1760 | +// " \"offerAudienceLevel\": \"msisdn\",\n" + |
1760 | - " \"offerCode1\": \"000003614\",\n" + | 1761 | +// " \"offerCode1\": \"000003614\",\n" + |
1761 | - " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + | 1762 | +// " \"offerName\": \"CCMS loyalty - postpay addon more4u\",\n" + |
1762 | - " \"postpayProduct\": \"0.0\",\n" + | 1763 | +// " \"postpayProduct\": \"0.0\",\n" + |
1763 | - " \"price\": \"None\",\n" + | 1764 | +// " \"price\": \"None\",\n" + |
1764 | - " \"productType\": \"MOBILE ADDON\",\n" + | 1765 | +// " \"productType\": \"MOBILE ADDON\",\n" + |
1765 | - " \"provDuration\": \"0.0\",\n" + | 1766 | +// " \"provDuration\": \"0.0\",\n" + |
1766 | - " \"score\": \"50\",\n" + | 1767 | +// " \"score\": \"50\",\n" + |
1767 | - " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + | 1768 | +// " \"treatmentCode\": \"5226.e1f.728b68c6.ffffffffa6c7b10e\",\n" + |
1768 | - " \"validity\": \"0\",\n" + | 1769 | +// " \"validity\": \"0\",\n" + |
1769 | - " \"wave\": \"1\",\n" + | 1770 | +// " \"wave\": \"1\",\n" + |
1770 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1771 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1771 | - " \"title\": \"Test6\",\n" + | 1772 | +// " \"title\": \"Test6\",\n" + |
1772 | - " \"subtitle\": \"Test6\",\n" + | 1773 | +// " \"subtitle\": \"Test6\",\n" + |
1773 | - " \"description\": \"Test6\",\n" + | 1774 | +// " \"description\": \"Test6\",\n" + |
1774 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 1775 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
1775 | - " },\n" + | 1776 | +// " },\n" + |
1776 | - " {\n" + | 1777 | +// " {\n" + |
1777 | - " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1778 | +// " \"UACIOfferTrackingCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1778 | - " \"businessAdditionalId\": \"\",\n" + | 1779 | +// " \"businessAdditionalId\": \"\",\n" + |
1779 | - " \"eligibleAssets\": [],\n" + | 1780 | +// " \"eligibleAssets\": [],\n" + |
1780 | - " \"id\": \"000003586\",\n" + | 1781 | +// " \"id\": \"000003586\",\n" + |
1781 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 1782 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
1782 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1783 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1783 | - " \"offerCode1\": \"000003586\",\n" + | 1784 | +// " \"offerCode1\": \"000003586\",\n" + |
1784 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 1785 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
1785 | - " \"productType\": \"GENERIC\",\n" + | 1786 | +// " \"productType\": \"GENERIC\",\n" + |
1786 | - " \"score\": \"50\",\n" + | 1787 | +// " \"score\": \"50\",\n" + |
1787 | - " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1788 | +// " \"treatmentCode\": \"5154.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1788 | - " \"validity\": \"0\",\n" + | 1789 | +// " \"validity\": \"0\",\n" + |
1789 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 1790 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
1790 | - " },\n" + | 1791 | +// " },\n" + |
1791 | - " {\n" + | 1792 | +// " {\n" + |
1792 | - " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 1793 | +// " \"UACIOfferTrackingCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
1793 | - " \"businessAdditionalId\": \"\",\n" + | 1794 | +// " \"businessAdditionalId\": \"\",\n" + |
1794 | - " \"eligibleAssets\": [],\n" + | 1795 | +// " \"eligibleAssets\": [],\n" + |
1795 | - " \"id\": \"000003595\",\n" + | 1796 | +// " \"id\": \"000003595\",\n" + |
1796 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 1797 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
1797 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1798 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1798 | - " \"offerCode1\": \"000003595\",\n" + | 1799 | +// " \"offerCode1\": \"000003595\",\n" + |
1799 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 1800 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
1800 | - " \"productType\": \"GENERIC\",\n" + | 1801 | +// " \"productType\": \"GENERIC\",\n" + |
1801 | - " \"score\": \"50\",\n" + | 1802 | +// " \"score\": \"50\",\n" + |
1802 | - " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + | 1803 | +// " \"treatmentCode\": \"51d2.e0c.291f49d9.40d5a689\",\n" + |
1803 | - " \"validity\": \"0\",\n" + | 1804 | +// " \"validity\": \"0\",\n" + |
1804 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1805 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1805 | - " \"title\": \"Test7\",\n" + | 1806 | +// " \"title\": \"Test7\",\n" + |
1806 | - " \"subtitle\": \"Test7\",\n" + | 1807 | +// " \"subtitle\": \"Test7\",\n" + |
1807 | - " \"description\": \"Test7\",\n" + | 1808 | +// " \"description\": \"Test7\",\n" + |
1808 | - " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + | 1809 | +// " \"zone\": \"COSMOTE_APP_LOYALTY_PROMO\"\n" + |
1809 | - " },\n" + | 1810 | +// " },\n" + |
1810 | - " {\n" + | 1811 | +// " {\n" + |
1811 | - " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 1812 | +// " \"UACIOfferTrackingCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
1812 | - " \"businessAdditionalId\": \"\",\n" + | 1813 | +// " \"businessAdditionalId\": \"\",\n" + |
1813 | - " \"eligibleAssets\": [],\n" + | 1814 | +// " \"eligibleAssets\": [],\n" + |
1814 | - " \"id\": \"000003595\",\n" + | 1815 | +// " \"id\": \"000003595\",\n" + |
1815 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 1816 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
1816 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1817 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1817 | - " \"offerCode1\": \"000003595\",\n" + | 1818 | +// " \"offerCode1\": \"000003595\",\n" + |
1818 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 1819 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
1819 | - " \"productType\": \"GENERIC\",\n" + | 1820 | +// " \"productType\": \"GENERIC\",\n" + |
1820 | - " \"score\": \"50\",\n" + | 1821 | +// " \"score\": \"50\",\n" + |
1821 | - " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + | 1822 | +// " \"treatmentCode\": \"51d6.e0c.291f49d9.40d5a689\",\n" + |
1822 | - " \"validity\": \"0\",\n" + | 1823 | +// " \"validity\": \"0\",\n" + |
1823 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1824 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1824 | - " \"title\": \"Test8\",\n" + | 1825 | +// " \"title\": \"Test8\",\n" + |
1825 | - " \"subtitle\": \"Test8\",\n" + | 1826 | +// " \"subtitle\": \"Test8\",\n" + |
1826 | - " \"description\": \"Test8\",\n" + | 1827 | +// " \"description\": \"Test8\",\n" + |
1827 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 1828 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
1828 | - " },\n" + | 1829 | +// " },\n" + |
1829 | - " {\n" + | 1830 | +// " {\n" + |
1830 | - " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1831 | +// " \"UACIOfferTrackingCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1831 | - " \"businessAdditionalId\": \"\",\n" + | 1832 | +// " \"businessAdditionalId\": \"\",\n" + |
1832 | - " \"eligibleAssets\": [],\n" + | 1833 | +// " \"eligibleAssets\": [],\n" + |
1833 | - " \"id\": \"000003586\",\n" + | 1834 | +// " \"id\": \"000003586\",\n" + |
1834 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 1835 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
1835 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1836 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1836 | - " \"offerCode1\": \"000003586\",\n" + | 1837 | +// " \"offerCode1\": \"000003586\",\n" + |
1837 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 1838 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
1838 | - " \"productType\": \"GENERIC\",\n" + | 1839 | +// " \"productType\": \"GENERIC\",\n" + |
1839 | - " \"score\": \"50\",\n" + | 1840 | +// " \"score\": \"50\",\n" + |
1840 | - " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1841 | +// " \"treatmentCode\": \"5150.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1841 | - " \"validity\": \"0\",\n" + | 1842 | +// " \"validity\": \"0\",\n" + |
1842 | - " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + | 1843 | +// " \"zone\": \"COSMOTE_APP_GIFTS4U\"\n" + |
1843 | - " },\n" + | 1844 | +// " },\n" + |
1844 | - " {\n" + | 1845 | +// " {\n" + |
1845 | - " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1846 | +// " \"UACIOfferTrackingCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1846 | - " \"businessAdditionalId\": \"\",\n" + | 1847 | +// " \"businessAdditionalId\": \"\",\n" + |
1847 | - " \"eligibleAssets\": [],\n" + | 1848 | +// " \"eligibleAssets\": [],\n" + |
1848 | - " \"id\": \"000003586\",\n" + | 1849 | +// " \"id\": \"000003586\",\n" + |
1849 | - " \"loyaltyCampaignId\": \"NA\",\n" + | 1850 | +// " \"loyaltyCampaignId\": \"NA\",\n" + |
1850 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1851 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1851 | - " \"offerCode1\": \"000003586\",\n" + | 1852 | +// " \"offerCode1\": \"000003586\",\n" + |
1852 | - " \"offerName\": \"CCMS loyalty offer 6\",\n" + | 1853 | +// " \"offerName\": \"CCMS loyalty offer 6\",\n" + |
1853 | - " \"productType\": \"GENERIC\",\n" + | 1854 | +// " \"productType\": \"GENERIC\",\n" + |
1854 | - " \"score\": \"50\",\n" + | 1855 | +// " \"score\": \"50\",\n" + |
1855 | - " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + | 1856 | +// " \"treatmentCode\": \"5152.e03.ffffffffeebc476a.ffffffffc5b96f6a\",\n" + |
1856 | - " \"validity\": \"0\",\n" + | 1857 | +// " \"validity\": \"0\",\n" + |
1857 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 1858 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
1858 | - " },\n" + | 1859 | +// " },\n" + |
1859 | - " {\n" + | 1860 | +// " {\n" + |
1860 | - " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 1861 | +// " \"UACIOfferTrackingCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
1861 | - " \"businessAdditionalId\": \"\",\n" + | 1862 | +// " \"businessAdditionalId\": \"\",\n" + |
1862 | - " \"eligibleAssets\": [],\n" + | 1863 | +// " \"eligibleAssets\": [],\n" + |
1863 | - " \"id\": \"000003595\",\n" + | 1864 | +// " \"id\": \"000003595\",\n" + |
1864 | - " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + | 1865 | +// " \"loyaltyCampaignId\": \"c5cc5f4f65624f47a580b720233fa60d\",\n" + |
1865 | - " \"offerAudienceLevel\": \"guid\",\n" + | 1866 | +// " \"offerAudienceLevel\": \"guid\",\n" + |
1866 | - " \"offerCode1\": \"000003595\",\n" + | 1867 | +// " \"offerCode1\": \"000003595\",\n" + |
1867 | - " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + | 1868 | +// " \"offerName\": \"CCMS Loyal offer campaignId\",\n" + |
1868 | - " \"productType\": \"GENERIC\",\n" + | 1869 | +// " \"productType\": \"GENERIC\",\n" + |
1869 | - " \"score\": \"50\",\n" + | 1870 | +// " \"score\": \"50\",\n" + |
1870 | - " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + | 1871 | +// " \"treatmentCode\": \"51d4.e0c.291f49d9.40d5a689\",\n" + |
1871 | - " \"validity\": \"0\",\n" + | 1872 | +// " \"validity\": \"0\",\n" + |
1872 | - " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + | 1873 | +// " \"imageUrl\": \"https://www.cosmotetvott.gr/assets/images/ogImage.jpg\",\n" + |
1873 | - " \"title\": \"Test9\",\n" + | 1874 | +// " \"title\": \"Test9\",\n" + |
1874 | - " \"subtitle\": \"Test9\",\n" + | 1875 | +// " \"subtitle\": \"Test9\",\n" + |
1875 | - " \"description\": \"Test9\",\n" + | 1876 | +// " \"description\": \"Test9\",\n" + |
1876 | - " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + | 1877 | +// " \"zone\": \"COSMOTE_APP_MORE4U\"\n" + |
1877 | - " }\n" + | 1878 | +// " }\n" + |
1878 | - " ]"); | 1879 | +// " ]"); |
1879 | - } catch (JSONException e) { | 1880 | +// } catch (JSONException e) { |
1880 | - e.printStackTrace(); | 1881 | +// e.printStackTrace(); |
1881 | - } | 1882 | +// } |
1882 | - if (jArray != null && jArray.length() > 0) { | 1883 | +// if (jArray != null && jArray.length() > 0) { |
1883 | - for (int i = 0; i < jArray.length(); i++) { | 1884 | +// for (int i = 0; i < jArray.length(); i++) { |
1884 | - JSONObject jobj = new JSONObject(); | 1885 | +// JSONObject jobj = new JSONObject(); |
1885 | - jobj = jArray.optJSONObject(i); | 1886 | +// jobj = jArray.optJSONObject(i); |
1886 | - if (jobj != null) { | 1887 | +// if (jobj != null) { |
1887 | - LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); | 1888 | +// LoyaltyContextualOfferModel model = new LoyaltyContextualOfferModel(jobj); |
1888 | - list.add(model); | 1889 | +// list.add(model); |
1889 | - } | 1890 | +// } |
1890 | - } | 1891 | +// } |
1891 | - } | 1892 | +// } |
1892 | - WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); | 1893 | +// WarplyManagerHelper.setCCMSLoyaltyCampaigns(list); |
1893 | 1894 | ||
1894 | - receiver.onSuccess(result); | 1895 | + receiver.onSuccess(/*result*/campaignLoyaltyList); |
1895 | } | 1896 | } |
1896 | 1897 | ||
1897 | @Override | 1898 | @Override |
... | @@ -2298,4 +2299,26 @@ public class WarplyManager { | ... | @@ -2298,4 +2299,26 @@ public class WarplyManager { |
2298 | }, | 2299 | }, |
2299 | request.getSignature())); | 2300 | request.getSignature())); |
2300 | } | 2301 | } |
2302 | + | ||
2303 | + public static void postEvent(CosmotePostEventRequest request, final CallbackReceiver<JSONObject> receiver) { | ||
2304 | + WarpUtils.log("************* WARPLY Post Event Request ********************"); | ||
2305 | + WarpUtils.log("[WARP Trace] WARPLY Post Event Request is active"); | ||
2306 | + WarpUtils.log("**************************************************"); | ||
2307 | + | ||
2308 | + Warply.postReceiveMicroappData(true, "context", request.toJson(), new CallbackReceiver<JSONObject>() { | ||
2309 | + @Override | ||
2310 | + public void onSuccess(JSONObject result) { | ||
2311 | + int status = result.optInt("status", 2); | ||
2312 | + if (status == 1) { | ||
2313 | + receiver.onSuccess(result); | ||
2314 | + } else | ||
2315 | + receiver.onFailure(status); | ||
2316 | + } | ||
2317 | + | ||
2318 | + @Override | ||
2319 | + public void onFailure(int errorCode) { | ||
2320 | + receiver.onFailure(errorCode); | ||
2321 | + } | ||
2322 | + }); | ||
2323 | + } | ||
2301 | } | 2324 | } | ... | ... |
-
Please register or login to post a comment