Skip to content

Commit 677fabc

Browse files
authored
Update README.md
1 parent 0af71f9 commit 677fabc

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
@@ -8,7 +8,7 @@ If you use Maven, we also host [Maven Artifacts](https://github.com/talon-one/ma
88

99
Building the API client library requires:
1010

11-
1. Java 1.7+
11+
1. Java 21+
1212
2. Maven/Gradle
1313

1414
## Installation
@@ -96,7 +96,7 @@ public class TalonApiTest {
9696
CartItem cartItem = new CartItem();
9797
cartItem.setName("Hawaiian Pizza");
9898
cartItem.setSku("pizza-x");
99-
cartItem.setQuantity(1);
99+
cartItem.setQuantity(1L);
100100
cartItem.setPrice(new java.math.BigDecimal("5.5"));
101101

102102
// Creating a customer session of V2
@@ -176,7 +176,7 @@ public class TalonApiTest {
176176

177177
try {
178178
// Calling `getApplication` function with the desired id (7)
179-
Application application = mApi.getApplication(7);
179+
Application application = mApi.getApplication(7L);
180180
System.out.println(application.toString());
181181
} catch (Exception e) {
182182
System.out.println(e);

0 commit comments

Comments
 (0)