From 4b265fe5a779d25b4ebf4448d52d3e958dccc801 Mon Sep 17 00:00:00 2001 From: joaopsilva Date: Sun, 19 Nov 2017 14:30:31 +0100 Subject: [PATCH] Add txId and status for deposit/withdrawal history. --- .../api/client/domain/account/Deposit.java | 28 +++++++++++++++++++ .../api/client/domain/account/Withdraw.java | 16 ++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/binance/api/client/domain/account/Deposit.java b/src/main/java/com/binance/api/client/domain/account/Deposit.java index 653491876..8b6e654c1 100644 --- a/src/main/java/com/binance/api/client/domain/account/Deposit.java +++ b/src/main/java/com/binance/api/client/domain/account/Deposit.java @@ -25,6 +25,16 @@ public class Deposit { */ private String insertTime; + /** + * Transaction id + */ + private String txId; + + /** + * (0:pending,1:success) + */ + private int status; + public String getAmount() { return amount; } @@ -49,12 +59,30 @@ public void setInsertTime(String insertTime) { this.insertTime = insertTime; } + public String getTxId() { + return txId; + } + + public void setTxId(String txId) { + this.txId = txId; + } + + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) .append("amount", amount) .append("asset", asset) .append("insertTime", insertTime) + .append("txId", txId) + .append("status", status) .toString(); } } diff --git a/src/main/java/com/binance/api/client/domain/account/Withdraw.java b/src/main/java/com/binance/api/client/domain/account/Withdraw.java index a9fb460a2..b6518db34 100644 --- a/src/main/java/com/binance/api/client/domain/account/Withdraw.java +++ b/src/main/java/com/binance/api/client/domain/account/Withdraw.java @@ -30,7 +30,7 @@ public class Withdraw { private String successTime; /** - * Ethereum transaction id. + * Transaction id. */ private String txId; @@ -39,6 +39,11 @@ public class Withdraw { */ private String id; + /** + * (0:Email Sent,1:Cancelled 2:Awaiting Approval 3:Rejected 4:Processing 5:Failure 6:Completed) + */ + private int status; + public String getAmount() { return amount; } @@ -95,6 +100,14 @@ public void setId(String id) { this.id = id; } + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE) @@ -105,6 +118,7 @@ public String toString() { .append("successTime", successTime) .append("txId", txId) .append("id", id) + .append("status", status) .toString(); } }