diff --git a/pom.xml b/pom.xml
index 9d9d6d7..d6d8fd2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
gr4vy
jar
gr4vy
- 0.30.0
+ 0.31.0
https://gr4vy.com
Gr4vy Java SDK
diff --git a/src/main/java/com/gr4vy/sdk/Gr4vyClient.java b/src/main/java/com/gr4vy/sdk/Gr4vyClient.java
index b4407ee..c8c26c9 100644
--- a/src/main/java/com/gr4vy/sdk/Gr4vyClient.java
+++ b/src/main/java/com/gr4vy/sdk/Gr4vyClient.java
@@ -549,6 +549,10 @@ public Transaction getTransaction(String transactionId) {
String response = this.get("/transactions/" + transactionId);
return this.gson.fromJson(response,Transaction.class);
}
+ public Transaction syncTransaction(String transactionId) {
+ String response = this.post("/transactions/" + transactionId + "/sync", null);
+ return this.gson.fromJson(response,Transaction.class);
+ }
public Transaction captureTransaction(String transactionId, TransactionCaptureRequest request) {
String response = this.post("/transactions/" + transactionId + "/capture", this.gson.toJson(request));
return this.gson.fromJson(response,Transaction.class);