Class APRTier
java.lang.Object
markets.alpaca.client.openapi.broker.model.APRTier
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class APRTier
extends Object
implements Serializable
APRTier
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountRateBps(Integer accountRateBps) correspondentRateBps(Integer correspondentRateBps) createdAt(OffsetDateTime createdAt) details(APRTierDetails details) booleanstatic APRTierCreate an instance of APRTier given an JSON stringThe annualized account interest rate, in basis points.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The annualized correspondent fee rate, in basis points.The timestamp the APR tier was created, in RFC 3339 format.The currency of the APR tierGet detailsgetId()The unique identifier of the APR tierWhether this is the default APR tier for its currency.getName()The unique name of the APR tierThe timestamp of the last update to the APR tier, in RFC 3339 format.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountRateBps(Integer accountRateBps) voidsetCorrespondentRateBps(Integer correspondentRateBps) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetDetails(APRTierDetails details) voidvoidsetIsDefault(Boolean isDefault) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of APRTier to an JSON stringtoString()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_RATE_BPS
- See Also:
-
SERIALIZED_NAME_CORRESPONDENT_RATE_BPS
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DETAILS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_IS_DEFAULT
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
APRTier
public APRTier()
-
-
Method Details
-
accountRateBps
-
getAccountRateBps
The annualized account interest rate, in basis points.- Returns:
- accountRateBps
-
setAccountRateBps
-
correspondentRateBps
-
getCorrespondentRateBps
The annualized correspondent fee rate, in basis points.- Returns:
- correspondentRateBps
-
setCorrespondentRateBps
-
createdAt
-
getCreatedAt
The timestamp the APR tier was created, in RFC 3339 format.- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
The currency of the APR tier- Returns:
- currency
-
setCurrency
-
details
-
getDetails
Get details- Returns:
- details
-
setDetails
-
id
-
getId
The unique identifier of the APR tier- Returns:
- id
-
setId
-
isDefault
-
getIsDefault
Whether this is the default APR tier for its currency. Each currency has at most one default tier. When true, an account that signs the required Alpaca Customer Agreement revision without providing cash_interest may be automatically enrolled in this tier. Do not rely on a default tier for enrollment; always set apr_tier_name explicitly via Create Account or Update Account.- Returns:
- isDefault
-
setIsDefault
-
name
-
getName
The unique name of the APR tier- Returns:
- name
-
setName
-
updatedAt
-
getUpdatedAt
The timestamp of the last update to the APR tier, in RFC 3339 format.- 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 APRTier 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 APRTier
-
fromJson
Create an instance of APRTier given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of APRTier
- Throws:
IOException- if the JSON string is invalid with respect to APRTier
-
toJson
Convert an instance of APRTier to an JSON string- Returns:
- JSON string
-