Class: Stripe::Account::CreateParams::Company::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.



4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
# File 'lib/stripe/resources/account.rb', line 4205

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.



4193
4194
4195
# File 'lib/stripe/resources/account.rb', line 4193

def city
  @city
end

#countryObject

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



4195
4196
4197
# File 'lib/stripe/resources/account.rb', line 4195

def country
  @country
end

#line1Object

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



4197
4198
4199
# File 'lib/stripe/resources/account.rb', line 4197

def line1
  @line1
end

#line2Object

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



4199
4200
4201
# File 'lib/stripe/resources/account.rb', line 4199

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



4201
4202
4203
# File 'lib/stripe/resources/account.rb', line 4201

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



4203
4204
4205
# File 'lib/stripe/resources/account.rb', line 4203

def state
  @state
end