Class RestrictToLiquidationReasons
java.lang.Object
markets.alpaca.client.openapi.broker.model.RestrictToLiquidationReasons
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class RestrictToLiquidationReasons
extends Object
implements Serializable
Reasons why the liquidation only flag was set
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RestrictToLiquidationReasonsCreate an instance of RestrictToLiquidationReasons given an JSON stringSet when an incoming ACH transfer gets rejectedReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Set when the position to equity ration exceeds the maximum limitDefault value for unknown reasoninthashCode()positionToEquityRatio(Boolean positionToEquityRatio) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAchReturn(Boolean achReturn) voidsetPositionToEquityRatio(Boolean positionToEquityRatio) voidsetUnspecified(Boolean unspecified) toJson()Convert an instance of RestrictToLiquidationReasons to an JSON stringtoString()unspecified(Boolean unspecified) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACH_RETURN
- See Also:
-
SERIALIZED_NAME_POSITION_TO_EQUITY_RATIO
- See Also:
-
SERIALIZED_NAME_UNSPECIFIED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RestrictToLiquidationReasons
public RestrictToLiquidationReasons()
-
-
Method Details
-
achReturn
-
getAchReturn
Set when an incoming ACH transfer gets rejected- Returns:
- achReturn
-
setAchReturn
-
positionToEquityRatio
-
getPositionToEquityRatio
Set when the position to equity ration exceeds the maximum limit- Returns:
- positionToEquityRatio
-
setPositionToEquityRatio
-
unspecified
-
getUnspecified
Default value for unknown reason- Returns:
- unspecified
-
setUnspecified
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the RestrictToLiquidationReasons instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to RestrictToLiquidationReasons
-
fromJson
Create an instance of RestrictToLiquidationReasons given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RestrictToLiquidationReasons
- Throws:
IOException- if the JSON string is invalid with respect to RestrictToLiquidationReasons
-
toJson
Convert an instance of RestrictToLiquidationReasons to an JSON string- Returns:
- JSON string
-