Class TradeBankModel
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.model.TradeBankModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-11-21T14:50:39.148240Z[Etc/UTC]") public class TradeBankModel extends Object
TradeBankModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTradeBankModel.SideEnumThe direction of the quote: either 'buy' or 'sell'.static classTradeBankModel.StateEnumThe trade's statestatic classTradeBankModel.TradeTypeEnumThe type of trade.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_CUSTOMER_GUIDstatic StringJSON_PROPERTY_DELIVER_AMOUNTstatic StringJSON_PROPERTY_FAILURE_CODEstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_GUIDstatic StringJSON_PROPERTY_LABELSstatic StringJSON_PROPERTY_QUOTE_GUIDstatic StringJSON_PROPERTY_RECEIVE_AMOUNTstatic StringJSON_PROPERTY_SIDEstatic StringJSON_PROPERTY_STATEstatic StringJSON_PROPERTY_SYMBOLstatic StringJSON_PROPERTY_TRADE_TYPEstatic StringJSON_PROPERTY_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description TradeBankModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeBankModeladdLabelsItem(String labelsItem)TradeBankModelcreatedAt(OffsetDateTime createdAt)TradeBankModelcustomerGuid(String customerGuid)TradeBankModeldeliverAmount(BigInteger deliverAmount)booleanequals(Object o)TradeBankModelfailureCode(String failureCode)TradeBankModelfee(BigInteger fee)OffsetDateTimegetCreatedAt()ISO8601 datetime the trade was created at.StringgetCustomerGuid()The associated customer's identifier.BigIntegergetDeliverAmount()The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell.StringgetFailureCode()The failure code for failed trades.BigIntegergetFee()The fee associated with the trade.StringgetGuid()Auto-generated unique identifier for the trade.List<String>getLabels()The labels associated with the trade.StringgetQuoteGuid()The associated quote's identifier.BigIntegergetReceiveAmount()The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell.TradeBankModel.SideEnumgetSide()The direction of the quote: either 'buy' or 'sell'.TradeBankModel.StateEnumgetState()The trade's stateStringgetSymbol()The trade symbol the pricing is related to.TradeBankModel.TradeTypeEnumgetTradeType()The type of trade.OffsetDateTimegetUpdatedAt()ISO8601 datetime the trade was last updated at.TradeBankModelguid(String guid)inthashCode()TradeBankModellabels(List<String> labels)TradeBankModelquoteGuid(String quoteGuid)TradeBankModelreceiveAmount(BigInteger receiveAmount)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCustomerGuid(String customerGuid)voidsetDeliverAmount(BigInteger deliverAmount)voidsetFailureCode(String failureCode)voidsetFee(BigInteger fee)voidsetGuid(String guid)voidsetLabels(List<String> labels)voidsetQuoteGuid(String quoteGuid)voidsetReceiveAmount(BigInteger receiveAmount)voidsetSide(TradeBankModel.SideEnum side)voidsetState(TradeBankModel.StateEnum state)voidsetSymbol(String symbol)voidsetTradeType(TradeBankModel.TradeTypeEnum tradeType)voidsetUpdatedAt(OffsetDateTime updatedAt)TradeBankModelside(TradeBankModel.SideEnum side)TradeBankModelstate(TradeBankModel.StateEnum state)TradeBankModelsymbol(String symbol)StringtoString()TradeBankModeltradeType(TradeBankModel.TradeTypeEnum tradeType)TradeBankModelupdatedAt(OffsetDateTime updatedAt)
-
-
-
Field Detail
-
JSON_PROPERTY_GUID
public static final String JSON_PROPERTY_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRADE_TYPE
public static final String JSON_PROPERTY_TRADE_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CUSTOMER_GUID
public static final String JSON_PROPERTY_CUSTOMER_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QUOTE_GUID
public static final String JSON_PROPERTY_QUOTE_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYMBOL
public static final String JSON_PROPERTY_SYMBOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIDE
public static final String JSON_PROPERTY_SIDE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAILURE_CODE
public static final String JSON_PROPERTY_FAILURE_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECEIVE_AMOUNT
public static final String JSON_PROPERTY_RECEIVE_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVER_AMOUNT
public static final String JSON_PROPERTY_DELIVER_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEE
public static final String JSON_PROPERTY_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UPDATED_AT
public static final String JSON_PROPERTY_UPDATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
guid
public TradeBankModel guid(String guid)
-
getGuid
@Nullable public String getGuid()
Auto-generated unique identifier for the trade.- Returns:
- guid
-
setGuid
public void setGuid(String guid)
-
tradeType
public TradeBankModel tradeType(TradeBankModel.TradeTypeEnum tradeType)
-
getTradeType
@Nullable public TradeBankModel.TradeTypeEnum getTradeType()
The type of trade.- Returns:
- tradeType
-
setTradeType
public void setTradeType(TradeBankModel.TradeTypeEnum tradeType)
-
customerGuid
public TradeBankModel customerGuid(String customerGuid)
-
getCustomerGuid
@Nullable public String getCustomerGuid()
The associated customer's identifier.- Returns:
- customerGuid
-
setCustomerGuid
public void setCustomerGuid(String customerGuid)
-
quoteGuid
public TradeBankModel quoteGuid(String quoteGuid)
-
getQuoteGuid
@Nullable public String getQuoteGuid()
The associated quote's identifier.- Returns:
- quoteGuid
-
setQuoteGuid
public void setQuoteGuid(String quoteGuid)
-
symbol
public TradeBankModel symbol(String symbol)
-
getSymbol
@Nullable public String getSymbol()
The trade symbol the pricing is related to. Format is asset-counter_asset, e.g., BTC-USD.- Returns:
- symbol
-
setSymbol
public void setSymbol(String symbol)
-
side
public TradeBankModel side(TradeBankModel.SideEnum side)
-
getSide
@Nullable public TradeBankModel.SideEnum getSide()
The direction of the quote: either 'buy' or 'sell'.- Returns:
- side
-
setSide
public void setSide(TradeBankModel.SideEnum side)
-
state
public TradeBankModel state(TradeBankModel.StateEnum state)
-
getState
@Nullable public TradeBankModel.StateEnum getState()
The trade's state- Returns:
- state
-
setState
public void setState(TradeBankModel.StateEnum state)
-
failureCode
public TradeBankModel failureCode(String failureCode)
-
getFailureCode
@Nullable public String getFailureCode()
The failure code for failed trades.- Returns:
- failureCode
-
setFailureCode
public void setFailureCode(String failureCode)
-
receiveAmount
public TradeBankModel receiveAmount(BigInteger receiveAmount)
-
getReceiveAmount
@Nullable public BigInteger getReceiveAmount()
The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell.- Returns:
- receiveAmount
-
setReceiveAmount
public void setReceiveAmount(BigInteger receiveAmount)
-
deliverAmount
public TradeBankModel deliverAmount(BigInteger deliverAmount)
-
getDeliverAmount
@Nullable public BigInteger getDeliverAmount()
The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell.- Returns:
- deliverAmount
-
setDeliverAmount
public void setDeliverAmount(BigInteger deliverAmount)
-
fee
public TradeBankModel fee(BigInteger fee)
-
getFee
@Nullable public BigInteger getFee()
The fee associated with the trade. Denominated in \"counter_asset\" base units- Returns:
- fee
-
setFee
public void setFee(BigInteger fee)
-
createdAt
public TradeBankModel createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
ISO8601 datetime the trade was created at.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
updatedAt
public TradeBankModel updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
ISO8601 datetime the trade was last updated at.- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
labels
public TradeBankModel labels(List<String> labels)
-
addLabelsItem
public TradeBankModel addLabelsItem(String labelsItem)
-
getLabels
@Nullable public List<String> getLabels()
The labels associated with the trade.- Returns:
- labels
-
-