Class: Stripe::V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/core/account_update_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

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

Returns a new instance of Address.



5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5287

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

Instance Attribute Details

#cityObject

City, district, suburb, town, or village.



5273
5274
5275
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5273

def city
  @city
end

#countryObject

Two-letter country code (ISO 3166-1 alpha-2).



5275
5276
5277
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5275

def country
  @country
end

#line1Object

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



5277
5278
5279
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5277

def line1
  @line1
end

#line2Object

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



5279
5280
5281
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5279

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



5281
5282
5283
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5281

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



5283
5284
5285
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5283

def state
  @state
end

#townObject

Town or district.



5285
5286
5287
# File 'lib/stripe/params/v2/core/account_update_params.rb', line 5285

def town
  @town
end