class

Plaid::UserAddress

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Home address for the user. For more context on this field, see Input Validation by Country.

Constants

MIN_LENGTH_FOR_COUNTRY = 2

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, street : String | Nil = nil, city : String | Nil = nil, country : String | Nil = nil, street2 : String | Nil = nil, region : String | Nil = nil, postal_code : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

city

City from the end user's address

Source
city=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] city Object to be assigned

Source
country

Valid, capitalized, two-letter ISO code representing the country of this object. Must be in ISO 3166-1 alpha-2 form.

Source
country=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] country Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
postal_code

The postal code for the associated address. Between 2 and 10 alphanumeric characters. For US-based addresses this must be 5 numeric digits.

Source
postal_code=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] postal_code Object to be assigned

Source
postal_code_present=(postal_code_present : Bool)
Source
postal_code_present?
Source
region

An ISO 3166-2 subdivision code. Related terms would be "state", "province", "prefecture", "zone", "subdivision", etc.

Source
region=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] region Object to be assigned

Source
region_present=(region_present : Bool)
Source
region_present?
Source
street

The primary street portion of an address. If the user has submitted their address, this field will always be filled.

Source
street2

Extra street information, like an apartment or suite number.

Source
street2=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] street2 Object to be assigned

Source
street2_present=(street2_present : Bool)
Source
street2_present?
Source
street=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] street Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source