Skip to content

Commit 635728a

Browse files
authored
Fix code example in Getting Started section
1 parent 406dd7a commit 635728a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import one.talon.model.*;
8282

8383
public class TalonApiTest {
8484
public static void main(String[] args) {
85-
ApiClient iApiClient = new ApiClient("api_key_v1");
85+
ApiClient iApiClient = new ApiClient("integration_auth");
8686
IntegrationApi iApi = new IntegrationApi(iApiClient );
8787

8888
// Setup: basePath, apiKeyPrefix and apiKey
@@ -94,8 +94,8 @@ public class TalonApiTest {
9494
// Integration API example to send a session update
9595
NewCustomerSession customerSession = new NewCustomerSession();
9696
customerSession.setProfileId("Cool_Dude");
97-
customerSession.setState("open");
98-
customerSession.setTotal(42.0);
97+
customerSession.setState(NewCustomerSession.StateEnum.OPEN);
98+
customerSession.setTotal(new java.math.BigDecimal("42.0"));
9999

100100
// Create/update a customer session using `updateCustomerSession` function
101101
IntegrationState ie = iApi.updateCustomerSession("deetdoot", customerSession);

0 commit comments

Comments
 (0)