Class PartialTransfer
java.lang.Object
markets.alpaca.client.openapi.broker.model.PartialTransfer
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class PartialTransfer
extends Object
implements Serializable
Transfers selected assets. Must carry a non-empty `cash` array, a non-empty `securities.equities` array, or both.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCashItem(AcatsCashBalance cashItem) cash(List<AcatsCashBalance> cash) booleanstatic PartialTransferCreate an instance of PartialTransfer given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCash()Cash amounts to transfer.Get securitiesgetType()Get typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.securities(AcatsSecurities securities) voidsetCash(List<AcatsCashBalance> cash) voidsetSecurities(AcatsSecurities securities) voidtoJson()Convert an instance of PartialTransfer to an JSON stringtoString()type(PartialTransfer.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CASH
- See Also:
-
SERIALIZED_NAME_SECURITIES
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PartialTransfer
public PartialTransfer()
-
-
Method Details
-
cash
-
addCashItem
-
getCash
Cash amounts to transfer.- Returns:
- cash
-
setCash
-
securities
-
getSecurities
Get securities- Returns:
- securities
-
setSecurities
-
type
-
getType
Get type- Returns:
- type
-
setType
-
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 PartialTransfer 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 PartialTransfer
-
fromJson
Create an instance of PartialTransfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PartialTransfer
- Throws:
IOException- if the JSON string is invalid with respect to PartialTransfer
-
toJson
Convert an instance of PartialTransfer to an JSON string- Returns:
- JSON string
-