Class PostTradeBankModel
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.model.PostTradeBankModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-06-03T13:35:44.564421Z[Etc/UTC]") public class PostTradeBankModel extends Object
Request body for trade creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPostTradeBankModel.ExpectedErrorEnumThe optional expected error to simulate trade failure.static classPostTradeBankModel.TradeTypeEnumThe type of trade.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EXPECTED_ERRORstatic StringJSON_PROPERTY_FIAT_ACCOUNT_GUIDstatic StringJSON_PROPERTY_LABELSstatic StringJSON_PROPERTY_QUOTE_GUIDstatic StringJSON_PROPERTY_TRADE_TYPE
-
Constructor Summary
Constructors Constructor Description PostTradeBankModel()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_TRADE_TYPE
public static final String JSON_PROPERTY_TRADE_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_QUOTE_GUID
public static final String JSON_PROPERTY_QUOTE_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FIAT_ACCOUNT_GUID
public static final String JSON_PROPERTY_FIAT_ACCOUNT_GUID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPECTED_ERROR
public static final String JSON_PROPERTY_EXPECTED_ERROR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
tradeType
public PostTradeBankModel tradeType(PostTradeBankModel.TradeTypeEnum tradeType)
-
getTradeType
@Nullable public PostTradeBankModel.TradeTypeEnum getTradeType()
The type of trade.- Returns:
- tradeType
-
getTradeType_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<PostTradeBankModel.TradeTypeEnum> getTradeType_JsonNullable()
-
setTradeType_JsonNullable
public void setTradeType_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostTradeBankModel.TradeTypeEnum> tradeType)
-
setTradeType
public void setTradeType(PostTradeBankModel.TradeTypeEnum tradeType)
-
quoteGuid
public PostTradeBankModel quoteGuid(String quoteGuid)
-
getQuoteGuid
@Nonnull public String getQuoteGuid()
The associated quote's identifier.- Returns:
- quoteGuid
-
setQuoteGuid
public void setQuoteGuid(String quoteGuid)
-
fiatAccountGuid
public PostTradeBankModel fiatAccountGuid(String fiatAccountGuid)
-
getFiatAccountGuid
@Nullable public String getFiatAccountGuid()
The identifier for the fiat account to use for the trade. Required if the customer or bank has multiple fiat accounts.- Returns:
- fiatAccountGuid
-
getFiatAccountGuid_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<String> getFiatAccountGuid_JsonNullable()
-
setFiatAccountGuid_JsonNullable
public void setFiatAccountGuid_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> fiatAccountGuid)
-
setFiatAccountGuid
public void setFiatAccountGuid(String fiatAccountGuid)
-
expectedError
public PostTradeBankModel expectedError(PostTradeBankModel.ExpectedErrorEnum expectedError)
-
getExpectedError
@Nullable public PostTradeBankModel.ExpectedErrorEnum getExpectedError()
The optional expected error to simulate trade failure.- Returns:
- expectedError
-
getExpectedError_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<PostTradeBankModel.ExpectedErrorEnum> getExpectedError_JsonNullable()
-
setExpectedError_JsonNullable
public void setExpectedError_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PostTradeBankModel.ExpectedErrorEnum> expectedError)
-
setExpectedError
public void setExpectedError(PostTradeBankModel.ExpectedErrorEnum expectedError)
-
labels
public PostTradeBankModel labels(List<String> labels)
-
addLabelsItem
public PostTradeBankModel addLabelsItem(String labelsItem)
-
getLabels
@Nullable public List<String> getLabels()
The labels associated with the trade.- Returns:
- labels
-
getLabels_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<String>> getLabels_JsonNullable()
-
setLabels_JsonNullable
public void setLabels_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> labels)
-
-