Class: Stripe::Account::UpdateParams::Individual::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) ⇒ Address

Returns a new instance of Address.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
# File 'lib/stripe/resources/account.rb', line 2252

def initialize(
  city: nil,
  country: nil,
  line1: nil,
  line2: nil,
  postal_code: nil,
  state: nil
)
  @city = city
  @country = country
  @line1 = line1
  @line2 = line2
  @postal_code = postal_code
  @state = state
end

Instance Attribute Details

#cityObject

City, district, suburb, town, or village.



2240
2241
2242
# File 'lib/stripe/resources/account.rb', line 2240

def city
  @city
end

#countryObject

Two-letter country code ([ISO 3166-1 alpha-2](en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).



2242
2243
2244
# File 'lib/stripe/resources/account.rb', line 2242

def country
  @country
end

#line1Object

Address line 1 (e.g., street, PO Box, or company name).



2244
2245
2246
# File 'lib/stripe/resources/account.rb', line 2244

def line1
  @line1
end

#line2Object

Address line 2 (e.g., apartment, suite, unit, or building).



2246
2247
2248
# File 'lib/stripe/resources/account.rb', line 2246

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



2248
2249
2250
# File 'lib/stripe/resources/account.rb', line 2248

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



2250
2251
2252
# File 'lib/stripe/resources/account.rb', line 2250

def state
  @state
end