Class CreateBankRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.CreateBankRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateBankRequest
extends Object
implements Serializable
Represents the possible fields to send when creating a new associated Bank resource for an account
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumABA (Domestic) or BIC (International)static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountNumber(String accountNumber) bankCodeType(CreateBankRequest.BankCodeTypeEnum bankCodeType) booleanextraFields(BankAdditionalFields extraFields) static CreateBankRequestCreate an instance of CreateBankRequest given an JSON stringGet accountNumberReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.9-Digit ABA RTN (Routing Number) or BICABA (Domestic) or BIC (International)getCity()Only for international banks, ie if bank_code_type = BICOnly for international banks, ie if bank_code_type = BICGet extraFieldsgetName()Name of recipient bankOnly for international banks, ie if bank_code_type = BIC.Only for international banks, ie if bank_code_type = BICOnly for international banks, ie if bank_code_type = BICinthashCode()postalCode(String postalCode) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountNumber(String accountNumber) voidsetBankCode(String bankCode) voidsetBankCodeType(CreateBankRequest.BankCodeTypeEnum bankCodeType) voidvoidsetCountry(String country) voidsetExtraFields(BankAdditionalFields extraFields) voidvoidsetPostalCode(String postalCode) voidsetStateProvince(String stateProvince) voidsetStreetAddress(String streetAddress) stateProvince(String stateProvince) streetAddress(String streetAddress) toJson()Convert an instance of CreateBankRequest 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_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_BANK_CODE
- See Also:
-
SERIALIZED_NAME_BANK_CODE_TYPE
- See Also:
-
SERIALIZED_NAME_CITY
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_EXTRA_FIELDS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_POSTAL_CODE
- See Also:
-
SERIALIZED_NAME_STATE_PROVINCE
- See Also:
-
SERIALIZED_NAME_STREET_ADDRESS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateBankRequest
public CreateBankRequest()
-
-
Method Details
-
accountNumber
-
getAccountNumber
Get accountNumber- Returns:
- accountNumber
-
setAccountNumber
-
bankCode
-
getBankCode
9-Digit ABA RTN (Routing Number) or BIC- Returns:
- bankCode
-
setBankCode
-
bankCodeType
-
getBankCodeType
ABA (Domestic) or BIC (International)- Returns:
- bankCodeType
-
setBankCodeType
-
city
-
getCity
Only for international banks, ie if bank_code_type = BIC- Returns:
- city
-
setCity
-
country
-
getCountry
Only for international banks, ie if bank_code_type = BIC- Returns:
- country
-
setCountry
-
extraFields
-
getExtraFields
Get extraFields- Returns:
- extraFields
-
setExtraFields
-
name
-
getName
Name of recipient bank- Returns:
- name
-
setName
-
postalCode
-
getPostalCode
Only for international banks, ie if bank_code_type = BIC. Minimum of 3 characters- Returns:
- postalCode
-
setPostalCode
-
stateProvince
-
getStateProvince
Only for international banks, ie if bank_code_type = BIC- Returns:
- stateProvince
-
setStateProvince
-
streetAddress
-
getStreetAddress
Only for international banks, ie if bank_code_type = BIC- Returns:
- streetAddress
-
setStreetAddress
-
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 CreateBankRequest 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 CreateBankRequest
-
fromJson
Create an instance of CreateBankRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateBankRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateBankRequest
-
toJson
Convert an instance of CreateBankRequest to an JSON string- Returns:
- JSON string
-