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
v4.3.1: Introduce triggeredByCoupon property for Effects (#19)
## Summary
### Integration API
Introducing property `triggeredByCoupon` on [`Effect`](https://github.com/talon-one/TalonOneJavaSdk/blob/master/src/main/java/one/talon/model/Effect.java) entities returned from our integration API, which holds the `id` of the related coupon.
This should increase observability and allow to make deductions with regard to whether an effect was triggered directly by a coupon.
In order to match the coupon from the property, pass `coupons` as part of the `responseContent` array passed to the [`/v2/customer_session` endpoint](https://developers.talon.one/Integration-API/API-Reference#updateCustomerSessionV2). Then you would be able to lookup the `id` of the returned coupons and match the corresponding one to the property from the new field `triggeredByCoupon`.
Copy file name to clipboardExpand all lines: api/openapi.yaml
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5212,6 +5212,7 @@ components:
5212
5212
couponPattern:
5213
5213
description: |
5214
5214
The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set.
5215
+
maxLength: 100
5215
5216
minLength: 3
5216
5217
type: string
5217
5218
required:
@@ -6750,6 +6751,7 @@ components:
6750
6751
couponPattern:
6751
6752
description: |
6752
6753
The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set.
6754
+
maxLength: 100
6753
6755
minLength: 3
6754
6756
type: string
6755
6757
required:
@@ -6817,6 +6819,7 @@ components:
6817
6819
couponPattern:
6818
6820
description: |
6819
6821
The pattern that will be used to generate coupon codes. The character `#` acts as a placeholder and will be replaced by a random character from the `validCharacters` set.
6822
+
maxLength: 100
6820
6823
minLength: 3
6821
6824
type: string
6822
6825
required:
@@ -8551,10 +8554,12 @@ components:
8551
8554
type: string
8552
8555
coupon:
8553
8556
description: Any coupon code entered.
8557
+
maxLength: 100
8554
8558
title: Coupon entered in session
8555
8559
type: string
8556
8560
referral:
8557
8561
description: Any referral code entered.
8562
+
maxLength: 100
8558
8563
title: Referral code entered in session
8559
8564
type: string
8560
8565
state:
@@ -8646,11 +8651,13 @@ components:
8646
8651
couponCodes:
8647
8652
description: Any coupon codes entered.
8648
8653
items:
8654
+
maxLength: 100
8649
8655
type: string
8650
8656
title: Coupons entered in session
8651
8657
type: array
8652
8658
referralCode:
8653
8659
description: Any referral code entered.
8660
+
maxLength: 100
8654
8661
title: Referral code entered in session
8655
8662
type: string
8656
8663
state:
@@ -8873,10 +8880,12 @@ components:
8873
8880
type: string
8874
8881
coupon:
8875
8882
description: Any coupon code entered.
8883
+
maxLength: 100
8876
8884
title: Coupon entered in session
8877
8885
type: string
8878
8886
referral:
8879
8887
description: Any referral code entered.
8888
+
maxLength: 100
8880
8889
title: Referral code entered in session
8881
8890
type: string
8882
8891
state:
@@ -9012,11 +9021,13 @@ components:
9012
9021
couponCodes:
9013
9022
description: Any coupon codes entered.
9014
9023
items:
9024
+
maxLength: 100
9015
9025
type: string
9016
9026
title: Coupons entered in session
9017
9027
type: array
9018
9028
referralCode:
9019
9029
description: Any referral code entered.
9030
+
maxLength: 100
9020
9031
title: Referral code entered in session
9021
9032
type: string
9022
9033
state:
@@ -9487,12 +9498,14 @@ components:
9487
9498
ruleIndex: 8
9488
9499
campaignId: 4
9489
9500
ruleName: ruleName
9501
+
triggeredByCoupon: 4
9490
9502
effectType: effectType
9491
9503
props: '{}'
9492
9504
- rulesetId: 6
9493
9505
ruleIndex: 8
9494
9506
campaignId: 4
9495
9507
ruleName: ruleName
9508
+
triggeredByCoupon: 4
9496
9509
effectType: effectType
9497
9510
props: '{}'
9498
9511
referral:
@@ -12172,6 +12185,7 @@ components:
12172
12185
ruleIndex: 8
12173
12186
campaignId: 4
12174
12187
ruleName: ruleName
12188
+
triggeredByCoupon: 4
12175
12189
effectType: effectType
12176
12190
props: '{}'
12177
12191
properties:
@@ -12192,6 +12206,10 @@ components:
12192
12206
effectType:
12193
12207
description: The type of effect that was triggered
12194
12208
type: string
12209
+
triggeredByCoupon:
12210
+
description: The ID of the coupon that was being evaluated when this effect
12211
+
was triggered
12212
+
type: integer
12195
12213
props:
12196
12214
type: object
12197
12215
required:
@@ -12223,6 +12241,10 @@ components:
12223
12241
effectType:
12224
12242
description: The type of effect that was triggered
12225
12243
type: string
12244
+
triggeredByCoupon:
12245
+
description: The ID of the coupon that was being evaluated when this effect
<description>Talon.One unified JAVA SDK. It allows for programmatic access to the integration and management API with their respective authentication strategies</description>
0 commit comments