Skip to content

Commit

Permalink
[Bitstamp] Simplify with Jacksonized annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tross-nydig committed Jun 11, 2024
1 parent 5e8f53e commit 51a882a
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
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;
import lombok.extern.jackson.Jacksonized;
import org.knowm.xchange.currency.Currency;

@Jacksonized
@Value
@Builder
public class WithdrawalFee {
Expand All @@ -16,14 +16,4 @@ 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 51a882a

Please sign in to comment.