Class CreateJITSettlementRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.CreateJITSettlementRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateJITSettlementRequest
extends Object
implements Serializable
Request to create a new settlement. All transfers included must use the same source account, and the total amount received must be in the same currency as the base currency of the source account.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccounts(List<SettlementAccount> accounts) addAccountsItem(SettlementAccount accountsItem) additionalInfo(String additionalInfo) assetClass(JITAssetClass assetClass) booleanstatic CreateJITSettlementRequestCreate an instance of CreateJITSettlementRequest given an JSON stringGet accountsAdditional remittance information.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get assetClassThe currency of the settlement.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccounts(List<SettlementAccount> accounts) voidsetAdditionalInfo(String additionalInfo) voidsetAssetClass(JITAssetClass assetClass) voidsetCurrency(String currency) toJson()Convert an instance of CreateJITSettlementRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNTS
- See Also:
-
SERIALIZED_NAME_ADDITIONAL_INFO
- See Also:
-
SERIALIZED_NAME_ASSET_CLASS
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateJITSettlementRequest
public CreateJITSettlementRequest()
-
-
Method Details
-
accounts
-
addAccountsItem
-
getAccounts
Get accounts- Returns:
- accounts
-
setAccounts
-
additionalInfo
-
getAdditionalInfo
Additional remittance information. Include if the funding source may require additional information to associate to the source account or settlement.- Returns:
- additionalInfo
-
setAdditionalInfo
-
assetClass
-
getAssetClass
Get assetClass- Returns:
- assetClass
-
setAssetClass
-
currency
-
getCurrency
The currency of the settlement. All accounts identified should have this base currency.- Returns:
- currency
-
setCurrency
-
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 CreateJITSettlementRequest 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 CreateJITSettlementRequest
-
fromJson
Create an instance of CreateJITSettlementRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateJITSettlementRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateJITSettlementRequest
-
toJson
Convert an instance of CreateJITSettlementRequest to an JSON string- Returns:
- JSON string
-