Class SettlementResponse
java.lang.Object
markets.alpaca.client.openapi.broker.model.SettlementResponse
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SettlementResponse
extends Object
implements Serializable
A settlement response, either from creation or retrieval
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalInfo(String additionalInfo) assetClass(JITAssetClass assetClass) completedAt(OffsetDateTime completedAt) createdAt(OffsetDateTime createdAt) booleanstatic SettlementResponseCreate an instance of SettlementResponse given an JSON stringGet additionalInfoReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get assetClassGet completedAtGet createdAtThe currency of the settlement.getId()Get idThe total interest amount accrued on the transfers included in this settlement.The reason for failure, if applicableGet sourceAccountNumberGet statusGet totalAmountGet updatedAtinthashCode()interestAmount(BigDecimal interestAmount) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAdditionalInfo(String additionalInfo) voidsetAssetClass(JITAssetClass assetClass) voidsetCompletedAt(OffsetDateTime completedAt) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidvoidsetInterestAmount(BigDecimal interestAmount) voidvoidsetSourceAccountNumber(String sourceAccountNumber) voidsetStatus(SettlementStatus status) voidsetTotalAmount(BigDecimal totalAmount) voidsetUpdatedAt(OffsetDateTime updatedAt) sourceAccountNumber(String sourceAccountNumber) status(SettlementStatus status) toJson()Convert an instance of SettlementResponse to an JSON stringtoString()totalAmount(BigDecimal totalAmount) 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_ADDITIONAL_INFO
- See Also:
-
SERIALIZED_NAME_ASSET_CLASS
- See Also:
-
SERIALIZED_NAME_COMPLETED_AT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INTEREST_AMOUNT
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_SOURCE_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TOTAL_AMOUNT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SettlementResponse
public SettlementResponse()
-
-
Method Details
-
additionalInfo
-
getAdditionalInfo
Get additionalInfo- Returns:
- additionalInfo
-
setAdditionalInfo
-
assetClass
-
getAssetClass
Get assetClass- Returns:
- assetClass
-
setAssetClass
-
completedAt
-
getCompletedAt
Get completedAt- Returns:
- completedAt
-
setCompletedAt
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
The currency of the settlement. Only applicable to JIT settlements.- Returns:
- currency
-
setCurrency
-
id
-
getId
Get id- Returns:
- id
-
setId
-
interestAmount
-
getInterestAmount
The total interest amount accrued on the transfers included in this settlement. Only applicable for instant funding settlements.- Returns:
- interestAmount
-
setInterestAmount
-
reason
-
getReason
The reason for failure, if applicable- Returns:
- reason
-
setReason
-
sourceAccountNumber
-
getSourceAccountNumber
Get sourceAccountNumber- Returns:
- sourceAccountNumber
-
setSourceAccountNumber
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
totalAmount
-
getTotalAmount
Get totalAmount- Returns:
- totalAmount
-
setTotalAmount
-
updatedAt
-
getUpdatedAt
Get updatedAt- 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 SettlementResponse 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 SettlementResponse
-
fromJson
Create an instance of SettlementResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SettlementResponse
- Throws:
IOException- if the JSON string is invalid with respect to SettlementResponse
-
toJson
Convert an instance of SettlementResponse to an JSON string- Returns:
- JSON string
-