Class: Stripe::V2::Core::AccountCreateParams::Identity::BusinessDetails::AdditionalAddress

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/core/account_create_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, purpose: nil, state: nil, town: nil) ⇒ AdditionalAddress

Returns a new instance of AdditionalAddress.



5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5218

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

Instance Attribute Details

#cityObject

City, district, suburb, town, or village.



5202
5203
5204
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5202

def city
  @city
end

#countryObject

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



5204
5205
5206
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5204

def country
  @country
end

#line1Object

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



5206
5207
5208
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5206

def line1
  @line1
end

#line2Object

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



5208
5209
5210
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5208

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



5210
5211
5212
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5210

def postal_code
  @postal_code
end

#purposeObject

Purpose of additional address.



5212
5213
5214
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5212

def purpose
  @purpose
end

#stateObject

State, county, province, or region.



5214
5215
5216
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5214

def state
  @state
end

#townObject

Town or district.



5216
5217
5218
# File 'lib/stripe/params/v2/core/account_create_params.rb', line 5216

def town
  @town
end