File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ import one.talon.model.*;
82
82
83
83
public class TalonApiTest {
84
84
public static void main (String [] args ) {
85
- ApiClient iApiClient = new ApiClient (" api_key_v1 " );
85
+ ApiClient iApiClient = new ApiClient (" integration_auth " );
86
86
IntegrationApi iApi = new IntegrationApi (iApiClient );
87
87
88
88
// Setup: basePath, apiKeyPrefix and apiKey
@@ -94,8 +94,8 @@ public class TalonApiTest {
94
94
// Integration API example to send a session update
95
95
NewCustomerSession customerSession = new NewCustomerSession ();
96
96
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" ) );
99
99
100
100
// Create/update a customer session using `updateCustomerSession` function
101
101
IntegrationState ie = iApi. updateCustomerSession(" deetdoot" , customerSession);
You can’t perform that action at this time.
0 commit comments