Skip to content

Commit

Permalink
[Bitstamp] Add serialization-friendly all-args constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
tross-nydig committed Jun 11, 2024
1 parent 47e4f1e commit 5e8f53e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.knowm.xchange.bitstamp.dto.account;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import lombok.Builder;
import lombok.Value;
Expand All @@ -14,4 +16,14 @@ public class WithdrawalFee {
BigDecimal fee;

Currency currency;

@JsonCreator
public WithdrawalFee(
@JsonProperty("network") String network,
@JsonProperty("fee") BigDecimal fee,
@JsonProperty("currency") Currency currency) {
this.network = network;
this.fee = fee;
this.currency = currency;
}
}

0 comments on commit 5e8f53e

Please sign in to comment.