Skip to content

Commit 2cc8c7c

Browse files
authored
Merge pull request #51 from Safeheron/dev
Added accountKey field to Transaction List V2
2 parents c5fbcdb + f8119ac commit 2cc8c7c

5 files changed

Lines changed: 49 additions & 35 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@
88
- [Official documentation](https://docs.safeheron.com/api/index.html)
99

1010
# Usage
11+
12+
Add this dependency to your project's POM:
13+
14+
```xml
15+
16+
<dependency>
17+
<groupId>com.safeheron</groupId>
18+
<artifactId>api-sdk-java</artifactId>
19+
<version>1.0.4</version>
20+
</dependency>
21+
```
22+
1123
## Download and build
1224
```shell
1325
$ git clone https://github.com/Safeheron/safeheron-api-sdk-java.git

pom.xml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,33 @@
66

77
<groupId>com.safeheron</groupId>
88
<artifactId>api-sdk-java</artifactId>
9-
<version>1.0.3</version>
9+
<version>1.0.4</version>
1010
<name>api-sdk-java</name>
1111
<description>Java SDK for Safeheron API</description>
1212
<url>https://github.com/Safeheron/safeheron-api-sdk-java</url>
1313
<packaging>jar</packaging>
1414

1515
<licenses>
1616
<license>
17-
<name>The Apache Software License, Version 2.0</name>
18-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
17+
<name>MIT License</name>
18+
<url>https://github.com/Safeheron/safeheron-api-sdk-java/blob/main/LICENSE</url>
19+
<distribution>repo</distribution>
1920
</license>
2021
</licenses>
2122

23+
<developers>
24+
<developer>
25+
<name>Safeheron Support</name>
26+
<email>support@safeheron.com</email>
27+
<organization>Safeheron</organization>
28+
<organizationUrl>https://safeheron.com</organizationUrl>
29+
<roles>
30+
<role>Project Manager</role>
31+
<role>Architect</role>
32+
</roles>
33+
</developer>
34+
</developers>
35+
2236
<scm>
2337
<connection>https://github.com/Safeheron/safeheron-api-sdk-java.git</connection>
2438
<developerConnection>scm:git:ssh://git@github.com:Safeheron/safeheron-api-sdk-java.git
@@ -100,7 +114,7 @@
100114
<dependency>
101115
<groupId>org.apache.commons</groupId>
102116
<artifactId>commons-lang3</artifactId>
103-
<version>3.9</version>
117+
<version>3.18.0</version>
104118
<scope>provided</scope>
105119
</dependency>
106120
<dependency>
@@ -130,7 +144,7 @@
130144
<dependency>
131145
<groupId>org.yaml</groupId>
132146
<artifactId>snakeyaml</artifactId>
133-
<version>1.33</version>
147+
<version>2.4</version>
134148
<scope>test</scope>
135149
</dependency>
136150
</dependencies>
@@ -147,6 +161,19 @@
147161
<autoPublish>true</autoPublish>
148162
</configuration>
149163
</plugin>
164+
<plugin>
165+
<groupId>org.apache.maven.plugins</groupId>
166+
<artifactId>maven-source-plugin</artifactId>
167+
<version>2.2.1</version>
168+
<executions>
169+
<execution>
170+
<id>attach-sources</id>
171+
<goals>
172+
<goal>jar-no-fork</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
150177
<plugin>
151178
<groupId>org.apache.maven.plugins</groupId>
152179
<artifactId>maven-compiler-plugin</artifactId>

src/main/java/com/safeheron/client/request/ListTransactionsV2Request.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ public class ListTransactionsV2Request extends LimitSearch {
3030
*/
3131
private String destinationAccountType;
3232

33+
/**
34+
* The unique identifier key of a wallet account, used to query all transactions under that wallet. This is only supported for VAULT_ACCOUNT type wallets. This has a higher priority than sourceAccountKey, sourceAccountType, destinationAccountKey, destinationAccountType, and realDestinationAccountType. If accountKey is passed along with the five parameters mentioned above, only accountKey will be effective
35+
*/
36+
private String accountKey;
37+
3338
/**
3439
* Start time for creating a transaction, UNIX timestamp (ms)
3540
*/

src/main/java/com/safeheron/client/response/OneTransactionsResponse.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ public class OneTransactionsResponse {
196196
*/
197197
private String realDestinationAccountType;
198198

199-
/**
200-
* Transaction substatus description
201-
*/
202-
private String transactionSubStatusDesc;
203-
204199
/**
205200
* Amount in USD when transact
206201
*/
@@ -211,21 +206,11 @@ public class OneTransactionsResponse {
211206
*/
212207
private String sourceAccountName;
213208

214-
/**
215-
* Source account type name
216-
*/
217-
private String sourceAccountTypeName;
218-
219209
/**
220210
* Destination account name
221211
*/
222212
private String destinationAccountName;
223213

224-
/**
225-
* Destination account type name
226-
*/
227-
private String destinationAccountTypeName;
228-
229214
/**
230215
* Final approver username
231216
*/

src/main/java/com/safeheron/client/response/TransactionsResponse.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ public class TransactionsResponse {
196196
*/
197197
private String realDestinationAccountType;
198198

199-
/**
200-
* Transaction substatus description
201-
*/
202-
private String transactionSubStatusDesc;
203-
204199
/**
205200
* Amount in USD when transact
206201
*/
@@ -211,21 +206,11 @@ public class TransactionsResponse {
211206
*/
212207
private String sourceAccountName;
213208

214-
/**
215-
* Source account type name
216-
*/
217-
private String sourceAccountTypeName;
218-
219209
/**
220210
* Destination account name
221211
*/
222212
private String destinationAccountName;
223213

224-
/**
225-
* Destination account type name
226-
*/
227-
private String destinationAccountTypeName;
228-
229214
/**
230215
* Final approver username
231216
*/

0 commit comments

Comments
 (0)