Class: Stripe::AccountService::CreateParams::Individual::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/account_service.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.



4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
# File 'lib/stripe/services/account_service.rb', line 4100

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.



4083
4084
4085
# File 'lib/stripe/services/account_service.rb', line 4083

def city
  @city
end

#countryObject

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



4086
4087
4088
# File 'lib/stripe/services/account_service.rb', line 4086

def country
  @country
end

#line1Object

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



4089
4090
4091
# File 'lib/stripe/services/account_service.rb', line 4089

def line1
  @line1
end

#line2Object

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



4092
4093
4094
# File 'lib/stripe/services/account_service.rb', line 4092

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



4095
4096
4097
# File 'lib/stripe/services/account_service.rb', line 4095

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



4098
4099
4100
# File 'lib/stripe/services/account_service.rb', line 4098

def state
  @state
end