Skip to content

Commit

Permalink
Merge pull request #4896 from tross-nydig/tross-nydig/PR/IncludeTxIdI…
Browse files Browse the repository at this point in the history
…nToString

[Bitstamp] include txid in toString()
  • Loading branch information
timmolter committed Jun 6, 2024
2 parents 2444c9e + ad1e0a0 commit b55715a
Showing 1 changed file with 3 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import java.math.BigDecimal;
import java.util.Date;
import lombok.Getter;
import lombok.ToString;
import org.knowm.xchange.bitstamp.BitstampUtils;
import org.knowm.xchange.currency.Currency;

@Getter
@ToString
public class WithdrawalRequest {

private final Date datetime;
Expand All @@ -33,6 +35,7 @@ public WithdrawalRequest(@JsonProperty("datetime") String datetime) {
this.datetime = BitstampUtils.parseDate(datetime);
}

@ToString.Include(name = "status")
public Status getStatus() {
return Status.fromString(statusOriginal);
}
Expand All @@ -42,29 +45,6 @@ public String getStatusOriginal() {
return statusOriginal;
}

@Override
public String toString() {
return "WithdrawalRequest [id="
+ id
+ ", datetime="
+ datetime
+ ", type="
+ type
+ ", amount="
+ amount
+ ", status="
+ getStatus()
+ ", statusOriginal="
+ statusOriginal
+ ", data="
+ data
+ ", address="
+ address
+ ", transactionId="
+ transactionId
+ "]";
}

public enum Type {
SEPA,
bitcoin,
Expand Down

0 comments on commit b55715a

Please sign in to comment.