public class FlashSwapOrderRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_BUY_AMOUNT |
static String |
SERIALIZED_NAME_BUY_CURRENCY |
static String |
SERIALIZED_NAME_PREVIEW_ID |
static String |
SERIALIZED_NAME_SELL_AMOUNT |
static String |
SERIALIZED_NAME_SELL_CURRENCY |
| Constructor and Description |
|---|
FlashSwapOrderRequest() |
| Modifier and Type | Method and Description |
|---|---|
FlashSwapOrderRequest |
buyAmount(String buyAmount) |
FlashSwapOrderRequest |
buyCurrency(String buyCurrency) |
boolean |
equals(Object o) |
String |
getBuyAmount()
Amount to buy (based on the preview result)
|
String |
getBuyCurrency()
Currency to buy which can be retrieved from supported currency list API `GET /flash_swap/currencies`
|
String |
getPreviewId()
Preview result ID
|
String |
getSellAmount()
Amount to sell (based on the preview result)
|
String |
getSellCurrency()
Currency to sell which can be retrieved from supported currency list API `GET /flash_swap/currencies`
|
int |
hashCode() |
FlashSwapOrderRequest |
previewId(String previewId) |
FlashSwapOrderRequest |
sellAmount(String sellAmount) |
FlashSwapOrderRequest |
sellCurrency(String sellCurrency) |
void |
setBuyAmount(String buyAmount) |
void |
setBuyCurrency(String buyCurrency) |
void |
setPreviewId(String previewId) |
void |
setSellAmount(String sellAmount) |
void |
setSellCurrency(String sellCurrency) |
String |
toString() |
public static final String SERIALIZED_NAME_PREVIEW_ID
public static final String SERIALIZED_NAME_SELL_CURRENCY
public static final String SERIALIZED_NAME_SELL_AMOUNT
public static final String SERIALIZED_NAME_BUY_CURRENCY
public static final String SERIALIZED_NAME_BUY_AMOUNT
public FlashSwapOrderRequest previewId(String previewId)
public String getPreviewId()
public void setPreviewId(String previewId)
public FlashSwapOrderRequest sellCurrency(String sellCurrency)
public String getSellCurrency()
public void setSellCurrency(String sellCurrency)
public FlashSwapOrderRequest sellAmount(String sellAmount)
public String getSellAmount()
public void setSellAmount(String sellAmount)
public FlashSwapOrderRequest buyCurrency(String buyCurrency)
public String getBuyCurrency()
public void setBuyCurrency(String buyCurrency)
public FlashSwapOrderRequest buyAmount(String buyAmount)
public String getBuyAmount()
public void setBuyAmount(String buyAmount)
Copyright © 2023. All rights reserved.