You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Parsing the returned effects list, please consult https://developers.talon.one/Integration-API/handling-effects-v2 for the full list of effects and their corresponding properties
53
+
for (Effecteff : is.getEffects()) {
54
+
if (eff.getEffectType().equals("addLoyaltyPoints")) {
55
+
// Typecasting according to the specific effect type
56
+
AddLoyaltyPointsEffectPropsprops = gson.fromJson(
57
+
gson.toJson(eff.getProps()),
58
+
AddLoyaltyPointsEffectProps.class
59
+
);
60
+
// Access the specific effect's properties
61
+
System.out.println(props.getName());
62
+
System.out.println(props.getProgramId());
63
+
System.out.println(props.getValue());
64
+
}
65
+
if (eff.getEffectType().equals("acceptCoupon")) {
66
+
// Typecasting according to the specific effect type
0 commit comments