Class: Stripe::V2::Core::AccountService::CreateParams::Identity::BusinessDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/core/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, town: nil) ⇒ Address

Returns a new instance of Address.



1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/stripe/services/v2/core/account_service.rb', line 1142

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.



1128
1129
1130
# File 'lib/stripe/services/v2/core/account_service.rb', line 1128

def city
  @city
end

#countryObject

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



1130
1131
1132
# File 'lib/stripe/services/v2/core/account_service.rb', line 1130

def country
  @country
end

#line1Object

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



1132
1133
1134
# File 'lib/stripe/services/v2/core/account_service.rb', line 1132

def line1
  @line1
end

#line2Object

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



1134
1135
1136
# File 'lib/stripe/services/v2/core/account_service.rb', line 1134

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



1136
1137
1138
# File 'lib/stripe/services/v2/core/account_service.rb', line 1136

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



1138
1139
1140
# File 'lib/stripe/services/v2/core/account_service.rb', line 1138

def state
  @state
end

#townObject

Town or cho-me.



1140
1141
1142
# File 'lib/stripe/services/v2/core/account_service.rb', line 1140

def town
  @town
end