Class PostQuoteBankModel
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.model.PostQuoteBankModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-22T17:59:10.574414Z[Etc/UTC]") public class PostQuoteBankModel extends Object
Request body for quote creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostQuoteBankModel.ProductTypeEnumThe type of product the quote is for.static classPostQuoteBankModel.SideEnumThe direction for trade quotes: either 'buy' or 'sell'.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ASSETstatic StringJSON_PROPERTY_BANK_GUIDstatic StringJSON_PROPERTY_CUSTOMER_GUIDstatic StringJSON_PROPERTY_DELIVER_AMOUNTstatic StringJSON_PROPERTY_DESTINATION_ACCOUNT_GUIDstatic StringJSON_PROPERTY_DESTINATION_ACCOUNTSstatic StringJSON_PROPERTY_FEESstatic StringJSON_PROPERTY_NETWORK_ADDRESSstatic StringJSON_PROPERTY_PRODUCT_TYPEstatic StringJSON_PROPERTY_RECEIVE_AMOUNTstatic StringJSON_PROPERTY_REFERENCE_TRADE_GUIDstatic StringJSON_PROPERTY_SIDEstatic StringJSON_PROPERTY_SOURCE_ACCOUNT_GUIDstatic StringJSON_PROPERTY_SYMBOL
-
Constructor Summary
Constructors Constructor Description PostQuoteBankModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PostQuoteBankModeladdDestinationAccountsItem(PostQuoteEntryBankModel destinationAccountsItem)PostQuoteBankModeladdFeesItem(PostFeeBankModel feesItem)PostQuoteBankModelasset(String asset)PostQuoteBankModelbankGuid(String bankGuid)PostQuoteBankModelcustomerGuid(String customerGuid)PostQuoteBankModeldeliverAmount(BigInteger deliverAmount)PostQuoteBankModeldestinationAccountGuid(String destinationAccountGuid)PostQuoteBankModeldestinationAccounts(List<PostQuoteEntryBankModel> destinationAccounts)booleanequals(Object o)PostQuoteBankModelfees(List<PostFeeBankModel> fees)StringgetAsset()The asset code the quote was requested for.org.openapitools.jackson.nullable.JsonNullable<String>getAsset_JsonNullable()StringgetBankGuid()The unique identifier for the bank.org.openapitools.jackson.nullable.JsonNullable<String>getBankGuid_JsonNullable()StringgetCustomerGuid()The unique identifier for the customer.org.openapitools.jackson.nullable.JsonNullable<String>getCustomerGuid_JsonNullable()BigIntegergetDeliverAmount()The amount to be delivered in base units of the currency: currency is \"counter_asset\" for buy and \"asset\" for sell for trade quotes.org.openapitools.jackson.nullable.JsonNullable<BigInteger>getDeliverAmount_JsonNullable()StringgetDestinationAccountGuid()The destination account's identifier.org.openapitools.jackson.nullable.JsonNullable<String>getDestinationAccountGuid_JsonNullable()List<PostQuoteEntryBankModel>getDestinationAccounts()Destination accounts for batch transactions Optional when product_type is crypto_transfer.org.openapitools.jackson.nullable.JsonNullable<List<PostQuoteEntryBankModel>>getDestinationAccounts_JsonNullable()List<PostFeeBankModel>getFees()The custom fees associated with the quote Optional when product_type is lightning_transfer, product_type is funding, product_type is trading, product_type is crypto_transfer, or product_type is trading_exit.org.openapitools.jackson.nullable.JsonNullable<List<PostFeeBankModel>>getFees_JsonNullable()StringgetNetworkAddress()The network address to pay the invoice to.org.openapitools.jackson.nullable.JsonNullable<String>getNetworkAddress_JsonNullable()PostQuoteBankModel.ProductTypeEnumgetProductType()The type of product the quote is for.org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.ProductTypeEnum>getProductType_JsonNullable()BigIntegergetReceiveAmount()The amount to be received in base units of the currency: currency is \"asset\" for buy and \"counter_asset\" for sell for trade quotes.org.openapitools.jackson.nullable.JsonNullable<BigInteger>getReceiveAmount_JsonNullable()StringgetReferenceTradeGuid()The guid of the related trade.org.openapitools.jackson.nullable.JsonNullable<String>getReferenceTradeGuid_JsonNullable()PostQuoteBankModel.SideEnumgetSide()The direction for trade quotes: either 'buy' or 'sell'.org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.SideEnum>getSide_JsonNullable()StringgetSourceAccountGuid()The source account's identifier.org.openapitools.jackson.nullable.JsonNullable<String>getSourceAccountGuid_JsonNullable()StringgetSymbol()Symbol the quote is being requested for.org.openapitools.jackson.nullable.JsonNullable<String>getSymbol_JsonNullable()inthashCode()PostQuoteBankModelnetworkAddress(String networkAddress)PostQuoteBankModelproductType(PostQuoteBankModel.ProductTypeEnum productType)PostQuoteBankModelreceiveAmount(BigInteger receiveAmount)PostQuoteBankModelreferenceTradeGuid(String referenceTradeGuid)voidsetAsset(String asset)voidsetAsset_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> asset)voidsetBankGuid(String bankGuid)voidsetBankGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> bankGuid)voidsetCustomerGuid(String customerGuid)voidsetCustomerGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customerGuid)voidsetDeliverAmount(BigInteger deliverAmount)voidsetDeliverAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<BigInteger> deliverAmount)voidsetDestinationAccountGuid(String destinationAccountGuid)voidsetDestinationAccountGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> destinationAccountGuid)voidsetDestinationAccounts(List<PostQuoteEntryBankModel> destinationAccounts)voidsetDestinationAccounts_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<PostQuoteEntryBankModel>> destinationAccounts)voidsetFees(List<PostFeeBankModel> fees)voidsetFees_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<PostFeeBankModel>> fees)voidsetNetworkAddress(String networkAddress)voidsetNetworkAddress_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> networkAddress)voidsetProductType(PostQuoteBankModel.ProductTypeEnum productType)voidsetProductType_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.ProductTypeEnum> productType)voidsetReceiveAmount(BigInteger receiveAmount)voidsetReceiveAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<BigInteger> receiveAmount)voidsetReferenceTradeGuid(String referenceTradeGuid)voidsetReferenceTradeGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> referenceTradeGuid)voidsetSide(PostQuoteBankModel.SideEnum side)voidsetSide_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.SideEnum> side)voidsetSourceAccountGuid(String sourceAccountGuid)voidsetSourceAccountGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> sourceAccountGuid)voidsetSymbol(String symbol)voidsetSymbol_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> symbol)PostQuoteBankModelside(PostQuoteBankModel.SideEnum side)PostQuoteBankModelsourceAccountGuid(String sourceAccountGuid)PostQuoteBankModelsymbol(String symbol)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_PRODUCT_TYPE
public static final String JSON_PROPERTY_PRODUCT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_GUID
public static final String JSON_PROPERTY_BANK_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_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_ASSET
public static final String JSON_PROPERTY_ASSET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_ADDRESS
public static final String JSON_PROPERTY_NETWORK_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEES
public static final String JSON_PROPERTY_FEES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIDE
public static final String JSON_PROPERTY_SIDE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SYMBOL
public static final String JSON_PROPERTY_SYMBOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESTINATION_ACCOUNTS
public static final String JSON_PROPERTY_DESTINATION_ACCOUNTS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE_TRADE_GUID
public static final String JSON_PROPERTY_REFERENCE_TRADE_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE_ACCOUNT_GUID
public static final String JSON_PROPERTY_SOURCE_ACCOUNT_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESTINATION_ACCOUNT_GUID
public static final String JSON_PROPERTY_DESTINATION_ACCOUNT_GUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
productType
public PostQuoteBankModel productType(PostQuoteBankModel.ProductTypeEnum productType)
-
getProductType
@Nullable public PostQuoteBankModel.ProductTypeEnum getProductType()
The type of product the quote is for.- Returns:
- productType
-
getProductType_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.ProductTypeEnum> getProductType_JsonNullable()
-
setProductType_JsonNullable
public void setProductType_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.ProductTypeEnum> productType)
-
setProductType
public void setProductType(PostQuoteBankModel.ProductTypeEnum productType)
-
bankGuid
public PostQuoteBankModel bankGuid(String bankGuid)
-
getBankGuid
@Nullable public String getBankGuid()
The unique identifier for the bank.- Returns:
- bankGuid
-
getBankGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getBankGuid_JsonNullable()
-
setBankGuid_JsonNullable
public void setBankGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> bankGuid)
-
setBankGuid
public void setBankGuid(String bankGuid)
-
customerGuid
public PostQuoteBankModel customerGuid(String customerGuid)
-
getCustomerGuid
@Nullable public String getCustomerGuid()
The unique identifier for the customer.- Returns:
- customerGuid
-
getCustomerGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getCustomerGuid_JsonNullable()
-
setCustomerGuid_JsonNullable
public void setCustomerGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customerGuid)
-
setCustomerGuid
public void setCustomerGuid(String customerGuid)
-
receiveAmount
public PostQuoteBankModel 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 for trade quotes.- Returns:
- receiveAmount
-
getReceiveAmount_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<BigInteger> getReceiveAmount_JsonNullable()
-
setReceiveAmount_JsonNullable
public void setReceiveAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<BigInteger> receiveAmount)
-
setReceiveAmount
public void setReceiveAmount(BigInteger receiveAmount)
-
deliverAmount
public PostQuoteBankModel 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 for trade quotes.- Returns:
- deliverAmount
-
getDeliverAmount_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<BigInteger> getDeliverAmount_JsonNullable()
-
setDeliverAmount_JsonNullable
public void setDeliverAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<BigInteger> deliverAmount)
-
setDeliverAmount
public void setDeliverAmount(BigInteger deliverAmount)
-
asset
public PostQuoteBankModel asset(String asset)
-
getAsset
@Nullable public String getAsset()
The asset code the quote was requested for. Required when product_type is lightning_transfer, product_type is book_transfer, product_type is funding, product_type is crypto_transfer, or product_type is inter_account.- Returns:
- asset
-
getAsset_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getAsset_JsonNullable()
-
setAsset_JsonNullable
public void setAsset_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> asset)
-
setAsset
public void setAsset(String asset)
-
networkAddress
public PostQuoteBankModel networkAddress(String networkAddress)
-
getNetworkAddress
@Nullable public String getNetworkAddress()
The network address to pay the invoice to. Required when product_type is lightning_transfer.- Returns:
- networkAddress
-
getNetworkAddress_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getNetworkAddress_JsonNullable()
-
setNetworkAddress_JsonNullable
public void setNetworkAddress_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> networkAddress)
-
setNetworkAddress
public void setNetworkAddress(String networkAddress)
-
fees
public PostQuoteBankModel fees(List<PostFeeBankModel> fees)
-
addFeesItem
public PostQuoteBankModel addFeesItem(PostFeeBankModel feesItem)
-
getFees
@Nullable public List<PostFeeBankModel> getFees()
The custom fees associated with the quote Optional when product_type is lightning_transfer, product_type is funding, product_type is trading, product_type is crypto_transfer, or product_type is trading_exit.- Returns:
- fees
-
getFees_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<PostFeeBankModel>> getFees_JsonNullable()
-
setFees_JsonNullable
public void setFees_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<PostFeeBankModel>> fees)
-
setFees
public void setFees(List<PostFeeBankModel> fees)
-
side
public PostQuoteBankModel side(PostQuoteBankModel.SideEnum side)
-
getSide
@Nullable public PostQuoteBankModel.SideEnum getSide()
The direction for trade quotes: either 'buy' or 'sell'. The direction for funding quotes: either 'deposit' or 'withdrawal'. The direction for crypto transfer quotes: 'withdrawal'. Book transfers do not require a side. They are all 'deposit's. Required when product_type is funding, product_type is trading, or product_type is crypto_transfer.- Returns:
- side
-
getSide_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.SideEnum> getSide_JsonNullable()
-
setSide_JsonNullable
public void setSide_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostQuoteBankModel.SideEnum> side)
-
setSide
public void setSide(PostQuoteBankModel.SideEnum side)
-
symbol
public PostQuoteBankModel symbol(String symbol)
-
getSymbol
@Nullable public String getSymbol()
Symbol the quote is being requested for. Format is \"asset-counter_asset\" in uppercase. See the Symbols API for a complete list of cryptocurrencies supported. Required when product_type is trading.- Returns:
- symbol
-
getSymbol_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getSymbol_JsonNullable()
-
setSymbol_JsonNullable
public void setSymbol_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> symbol)
-
setSymbol
public void setSymbol(String symbol)
-
destinationAccounts
public PostQuoteBankModel destinationAccounts(List<PostQuoteEntryBankModel> destinationAccounts)
-
addDestinationAccountsItem
public PostQuoteBankModel addDestinationAccountsItem(PostQuoteEntryBankModel destinationAccountsItem)
-
getDestinationAccounts
@Nullable public List<PostQuoteEntryBankModel> getDestinationAccounts()
Destination accounts for batch transactions Optional when product_type is crypto_transfer.- Returns:
- destinationAccounts
-
getDestinationAccounts_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<PostQuoteEntryBankModel>> getDestinationAccounts_JsonNullable()
-
setDestinationAccounts_JsonNullable
public void setDestinationAccounts_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<PostQuoteEntryBankModel>> destinationAccounts)
-
setDestinationAccounts
public void setDestinationAccounts(List<PostQuoteEntryBankModel> destinationAccounts)
-
referenceTradeGuid
public PostQuoteBankModel referenceTradeGuid(String referenceTradeGuid)
-
getReferenceTradeGuid
@Nullable public String getReferenceTradeGuid()
The guid of the related trade. Only present on `exit` trades. Required when product_type is trading_exit.- Returns:
- referenceTradeGuid
-
getReferenceTradeGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getReferenceTradeGuid_JsonNullable()
-
setReferenceTradeGuid_JsonNullable
public void setReferenceTradeGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> referenceTradeGuid)
-
setReferenceTradeGuid
public void setReferenceTradeGuid(String referenceTradeGuid)
-
sourceAccountGuid
public PostQuoteBankModel sourceAccountGuid(String sourceAccountGuid)
-
getSourceAccountGuid
@Nullable public String getSourceAccountGuid()
The source account's identifier. Required when product_type is inter_account.- Returns:
- sourceAccountGuid
-
getSourceAccountGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getSourceAccountGuid_JsonNullable()
-
setSourceAccountGuid_JsonNullable
public void setSourceAccountGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> sourceAccountGuid)
-
setSourceAccountGuid
public void setSourceAccountGuid(String sourceAccountGuid)
-
destinationAccountGuid
public PostQuoteBankModel destinationAccountGuid(String destinationAccountGuid)
-
getDestinationAccountGuid
@Nullable public String getDestinationAccountGuid()
The destination account's identifier. Required when product_type is inter_account.- Returns:
- destinationAccountGuid
-
getDestinationAccountGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getDestinationAccountGuid_JsonNullable()
-
setDestinationAccountGuid_JsonNullable
public void setDestinationAccountGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> destinationAccountGuid)
-
setDestinationAccountGuid
public void setDestinationAccountGuid(String destinationAccountGuid)
-
-