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
## v.4.5.1: Serializing null values correctly & bumping gson@2.8.9
### Serializing `null` values in attribute objects correctly
When sending integration requests, allowing to remove a value for a key by serializing nulls properly.
As explained at the bottom of [this section](https://docs.talon.one/docs/dev/concepts/attributes/#setting-attributes) in our [documentation website](https://docs.talon.one/)
closes#31
### Upgrade gson dependency
Bump the gson dependency a few minor versions up, to 2.8.9 to resolve a potential security issue with the current version (2.8.6)
closes#30
## Commit Summary
* Add custom JsonNullable adapter and attribute class
* Apply the JsonNullable attribute where applicable
* Bump gson to 2.8.9
* Bump version to 4.5.1
@@ -53,7 +53,7 @@ Add this dependency to your project's POM:
53
53
<dependency>
54
54
<groupId>one.talon</groupId>
55
55
<artifactId>talon-one-client</artifactId>
56
-
<version>4.5.0</version>
56
+
<version>4.5.1</version>
57
57
<scope>compile</scope>
58
58
</dependency>
59
59
```
@@ -63,7 +63,7 @@ Add this dependency to your project's POM:
63
63
Add this dependency to your project's build file:
64
64
65
65
```groovy
66
-
compile "one.talon:talon-one-client:4.5.0"
66
+
compile "one.talon:talon-one-client:4.5.1"
67
67
```
68
68
69
69
### Others
@@ -76,49 +76,134 @@ mvn clean package
76
76
77
77
Then manually install the following JARs:
78
78
79
-
*`target/talon-one-client-4.5.0.jar`
79
+
*`target/talon-one-client-4.5.1.jar`
80
80
*`target/lib/*.jar`
81
81
82
82
## Getting Started
83
83
84
84
Please follow the [installation](#installation) instruction and execute the following Java code:
85
85
86
+
### Integration API
87
+
88
+
**Note:** The Integration API's V1 `Update customer session` and `Update customer profile` endpoints are now deprecated. Use their V2 instead. See [Migrating to V2](https://docs.talon.one/docs/dev/tutorials/migrating-to-v2) for more information.
// Flag to communicate whether the request is a "dry run"
135
+
Boolean dryRun =false;
136
+
137
+
// Create/update a customer session using `updateCustomerSessionV2` function
138
+
IntegrationStateV2 is = iApi.updateCustomerSessionV2("deetdoot", request, dryRun);
139
+
System.out.println(is.toString());
140
+
141
+
// 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
142
+
for (Effect eff : is.getEffects()) {
143
+
if (eff.getEffectType().equals("addLoyaltyPoints")) {
144
+
// Typecasting according to the specific effect type
<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