Class Transfer
java.lang.Object
markets.alpaca.client.openapi.broker.model.Transfer
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Transfer
extends Object
implements Serializable
Transfers allow you to transfer money/balance into your end customers' account (deposits) or out (withdrawal). [Main docs here](https://alpaca.markets/docs/api-references/broker-api/funding/transfers/#the-transfer-object)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInformation(String additionalInformation) amount(BigDecimal amount) createdAt(OffsetDateTime createdAt) direction(TransferDirection direction) booleanexpiresAt(OffsetDateTime expiresAt) fee(BigDecimal fee) feePaymentMethod(String feePaymentMethod) static TransferCreate an instance of Transfer given an JSON stringThe account IDAdditional information.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Must be > 0.00The ID of the Bank, only present if type = \"wire\"Timestamp when transfer was createdGet directionTimestamp when transfer expiresgetFee()Fee amount to be collected.Either \"user\" or \"invoice\".Get holdUntilgetId()The transfer IDGet instantAmountgetIra()Get iraCause of the statusThe ACH relationship ID only present if type = \"ach\"Must be > 0.00.Get statusgetType()Get typeTimestamp when transfer was updatedinthashCode()holdUntil(OffsetDateTime holdUntil) instantAmount(String instantAmount) ira(TransferIRADetails ira) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.relationshipId(UUID relationshipId) requestedAmount(BigDecimal requestedAmount) voidsetAccountId(UUID accountId) voidsetAdditionalInformation(String additionalInformation) voidsetAmount(BigDecimal amount) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetDirection(TransferDirection direction) voidsetExpiresAt(OffsetDateTime expiresAt) voidsetFee(BigDecimal fee) voidsetFeePaymentMethod(String feePaymentMethod) voidsetHoldUntil(OffsetDateTime holdUntil) voidvoidsetInstantAmount(String instantAmount) voidsetIra(TransferIRADetails ira) voidvoidsetRelationshipId(UUID relationshipId) voidsetRequestedAmount(BigDecimal requestedAmount) voidsetStatus(TransferStatus status) voidsetType(TransferType type) voidsetUpdatedAt(OffsetDateTime updatedAt) status(TransferStatus status) toJson()Convert an instance of Transfer to an JSON stringtoString()type(TransferType type) updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_ADDITIONAL_INFORMATION
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_BANK_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_DIRECTION
- See Also:
-
SERIALIZED_NAME_EXPIRES_AT
- See Also:
-
SERIALIZED_NAME_FEE
- See Also:
-
SERIALIZED_NAME_FEE_PAYMENT_METHOD
- See Also:
-
SERIALIZED_NAME_HOLD_UNTIL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INSTANT_AMOUNT
- See Also:
-
SERIALIZED_NAME_IRA
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_RELATIONSHIP_ID
- See Also:
-
SERIALIZED_NAME_REQUESTED_AMOUNT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Transfer
public Transfer()
-
-
Method Details
-
accountId
-
getAccountId
The account ID- Returns:
- accountId
-
setAccountId
-
additionalInformation
-
getAdditionalInformation
Additional information. Only applies when type = \"wire\".- Returns:
- additionalInformation
-
setAdditionalInformation
-
amount
-
getAmount
Must be > 0.00- Returns:
- amount
-
setAmount
-
bankId
-
getBankId
The ID of the Bank, only present if type = \"wire\"- Returns:
- bankId
-
setBankId
-
createdAt
-
getCreatedAt
Timestamp when transfer was created- Returns:
- createdAt
-
setCreatedAt
-
direction
-
getDirection
Get direction- Returns:
- direction
-
setDirection
-
expiresAt
-
getExpiresAt
Timestamp when transfer expires- Returns:
- expiresAt
-
setExpiresAt
-
fee
-
getFee
Fee amount to be collected. Only applies when type = \"wire\".- Returns:
- fee
-
setFee
-
feePaymentMethod
-
getFeePaymentMethod
Either \"user\" or \"invoice\". Only applies when type = \"wire\".- Returns:
- feePaymentMethod
-
setFeePaymentMethod
-
holdUntil
-
getHoldUntil
Get holdUntil- Returns:
- holdUntil
-
setHoldUntil
-
id
-
getId
The transfer ID- Returns:
- id
-
setId
-
instantAmount
-
getInstantAmount
Get instantAmount- Returns:
- instantAmount
-
setInstantAmount
-
ira
-
getIra
Get ira- Returns:
- ira
-
setIra
-
reason
-
getReason
Cause of the status- Returns:
- reason
-
setReason
-
relationshipId
-
getRelationshipId
The ACH relationship ID only present if type = \"ach\"- Returns:
- relationshipId
-
setRelationshipId
-
requestedAmount
-
getRequestedAmount
Must be > 0.00. Only applies when type = \"wire\".- Returns:
- requestedAmount
-
setRequestedAmount
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
type
-
getType
Get type- Returns:
- type
-
setType
-
updatedAt
-
getUpdatedAt
Timestamp when transfer was updated- Returns:
- updatedAt
-
setUpdatedAt
-
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 Transfer 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 Transfer
-
fromJson
Create an instance of Transfer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Transfer
- Throws:
IOException- if the JSON string is invalid with respect to Transfer
-
toJson
Convert an instance of Transfer to an JSON string- Returns:
- JSON string
-