Class TradeBankModel
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.model.TradeBankModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-04T13:27:45.890897Z[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 state
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CREATED_ATstatic StringJSON_PROPERTY_CUSTOMER_GUIDstatic StringJSON_PROPERTY_DELIVER_AMOUNTstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_GUIDstatic StringJSON_PROPERTY_QUOTE_GUIDstatic StringJSON_PROPERTY_RECEIVE_AMOUNTstatic StringJSON_PROPERTY_SIDEstatic StringJSON_PROPERTY_STATEstatic StringJSON_PROPERTY_SYMBOL
-
Constructor Summary
Constructors Constructor Description TradeBankModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeBankModelcreatedAt(OffsetDateTime createdAt)TradeBankModelcustomerGuid(String customerGuid)TradeBankModeldeliverAmount(BigInteger deliverAmount)booleanequals(Object o)TradeBankModelfee(BigInteger fee)OffsetDateTimegetCreatedAt()ISO8601 datetime the bank 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.BigIntegergetFee()The fee associated with the trade.StringgetGuid()Auto-generated unique identifier for 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.TradeBankModelguid(String guid)inthashCode()TradeBankModelquoteGuid(String quoteGuid)TradeBankModelreceiveAmount(BigInteger receiveAmount)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCustomerGuid(String customerGuid)voidsetDeliverAmount(BigInteger deliverAmount)voidsetFee(BigInteger fee)voidsetGuid(String guid)voidsetQuoteGuid(String quoteGuid)voidsetReceiveAmount(BigInteger receiveAmount)voidsetSide(TradeBankModel.SideEnum side)voidsetState(TradeBankModel.StateEnum state)voidsetSymbol(String symbol)TradeBankModelside(TradeBankModel.SideEnum side)TradeBankModelstate(TradeBankModel.StateEnum state)TradeBankModelsymbol(String symbol)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_GUID
public static final String JSON_PROPERTY_GUID
- 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_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
-
-
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)
-
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)
-
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 bank was created at.- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
-