diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2867499a..0de8ad99 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,7 @@
-## v0.2.2-alpha (latest)
+## v0.3.0-alpha
+* Added `CancelTransaction` feature.
+
+## v0.2.2-alpha
* Fixed `getTransaction` missing required properties: [finished_at].
* Added `deleteTransaction`.
diff --git a/README.md b/README.md
index 339c1f25..16ac923c 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ In order to use the `rai-sdk-java`, you need add this dependency to your project
com.relationalai
rai-sdk
- 0.2.2-alpha
+ 0.3.0-alpha
You need also to point maven to the SDK GitHub packages repository in the project's POM:
diff --git a/pom.xml b/pom.xml
index 46d239ff..fee7c684 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,7 +21,7 @@
The RelationalAI Software Development Kit (SDK) for Java
com.relationalai
rai-sdk-pom
- 0.2.2-alpha
+ 0.3.0-alpha
pom
diff --git a/rai-sdk-examples/pom.xml b/rai-sdk-examples/pom.xml
index 345bf50b..65ca3a92 100644
--- a/rai-sdk-examples/pom.xml
+++ b/rai-sdk-examples/pom.xml
@@ -20,7 +20,7 @@
com.relationalai
rai-sdk-pom
- 0.2.2-alpha
+ 0.3.0-alpha
RelationalAI SDK for Java Examples
diff --git a/rai-sdk-examples/src/main/java/com/relationalai/examples/CancelTransaction.java b/rai-sdk-examples/src/main/java/com/relationalai/examples/CancelTransaction.java
new file mode 100644
index 00000000..f9d63ced
--- /dev/null
+++ b/rai-sdk-examples/src/main/java/com/relationalai/examples/CancelTransaction.java
@@ -0,0 +1,30 @@
+package com.relationalai.examples;
+
+import com.relationalai.Client;
+import com.relationalai.Config;
+import com.relationalai.HttpError;
+import com.relationalai.Json;
+
+import java.io.IOException;
+
+public class CancelTransaction implements Runnable {
+ String id, profile;
+
+ public void parseArgs(String[] args) {
+ var c = Command.create("CancelTransaction")
+ .addArgument("id")
+ .addOption("profile", "config profile (default: default)")
+ .parseArgs(args);
+ this.id = c.getValue("id");
+ this.profile = c.getValue("profile");
+ }
+
+ public void run(String[] args) throws HttpError, InterruptedException, IOException {
+ parseArgs(args);
+ var cfg = Config.loadConfig("~/.rai/config", profile);
+ var client = new Client(cfg);
+
+ var rsp = client.cancelTransaction(id);
+ Json.print(rsp);
+ }
+}
diff --git a/rai-sdk-examples/src/main/java/com/relationalai/examples/DeleteTransaction.java b/rai-sdk-examples/src/main/java/com/relationalai/examples/DeleteTransaction.java
deleted file mode 100644
index c549f1d5..00000000
--- a/rai-sdk-examples/src/main/java/com/relationalai/examples/DeleteTransaction.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright 2022 RelationalAI, Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"): you may
- * not use this file except in compliance with the License. You may obtain
- * a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- */
-
-package com.relationalai.examples;
-
-import com.relationalai.Client;
-import com.relationalai.Config;
-import com.relationalai.HttpError;
-import com.relationalai.Json;
-
-import java.io.IOException;
-
-public class DeleteTransaction implements Runnable {
- String id, profile;
-
- public void parseArgs(String[] args) {
- var c = Command.create("DeleteTransaction")
- .addArgument("id")
- .addOption("profile", "config profile (default: default)")
- .parseArgs(args);
- this.id = c.getValue("id");
- this.profile = c.getValue("profile");
- }
-
- public void run(String[] args) throws HttpError, InterruptedException, IOException {
- parseArgs(args);
- var cfg = Config.loadConfig("~/.rai/config", profile);
- var client = new Client(cfg);
-
- var rsp = client.deleteTransaction(id);
- Json.print(rsp);
- }
-}
diff --git a/rai-sdk/pom.xml b/rai-sdk/pom.xml
index 43a6f9eb..6f449e47 100644
--- a/rai-sdk/pom.xml
+++ b/rai-sdk/pom.xml
@@ -20,7 +20,7 @@
com.relationalai
rai-sdk-pom
- 0.2.2-alpha
+ 0.3.0-alpha
RelationalAI SDK for Java Package
diff --git a/rai-sdk/src/main/java/com/relationalai/Client.java b/rai-sdk/src/main/java/com/relationalai/Client.java
index 559b27af..1689fee2 100644
--- a/rai-sdk/src/main/java/com/relationalai/Client.java
+++ b/rai-sdk/src/main/java/com/relationalai/Client.java
@@ -809,9 +809,9 @@ public List