package org.knowm.xchange.gemini.v1.dto.account; import java.math.BigDecimal; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRawValue; public class GeminiWithdrawalRequest { @JsonProperty("request") protected String request; @JsonProperty("nonce") protected String nonce; @JsonProperty("options") @JsonRawValue protected String options; @JsonProperty("withdraw_type") private final String withdrawType; @JsonProperty("walletselected") private final String walletSelected; @JsonProperty("amount") private final String amount; @JsonProperty("address") private final String address; /** * Constructor * * @param nonce * @param withdrawType * @param walletSelected * @param amount * @param address */ public GeminiWithdrawalRequest(String nonce, String withdrawType, String walletSelected, BigDecimal amount, String address) { this.request = "/v1/withdraw"; this.nonce = String.valueOf(nonce); this.options = "[]"; this.withdrawType = withdrawType; this.walletSelected = walletSelected; this.amount = amount.toString(); this.address = address; } public String getRequest() { return request; } public void setRequest(String request) { this.request = request; } public String getNonce() { return nonce; } public void setNonce(String nonce) { this.nonce = nonce; } public String getOptions() { return options; } public void setOptions(String options) { this.options = options; } public String getWithdrawType() { return withdrawType; } public String getWalletSelected() { return walletSelected; } public String getAmount() { return amount; } public String getAddress() { return address; } }