Skip to content

Commit

Permalink
Add txId and status for deposit/withdrawal history.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopsilva committed Nov 19, 2017
1 parent 2ca1908 commit 4b265fe
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/main/java/com/binance/api/client/domain/account/Deposit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Withdraw {
private String successTime;

/**
* Ethereum transaction id.
* Transaction id.
*/
private String txId;

Expand All @@ -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;
}
Expand Down Expand Up @@ -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)
Expand All @@ -105,6 +118,7 @@ public String toString() {
.append("successTime", successTime)
.append("txId", txId)
.append("id", id)
.append("status", status)
.toString();
}
}

0 comments on commit 4b265fe

Please sign in to comment.