Class: Stripe::V2::Core::AccountService::UpdateParams::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.



3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
# File 'lib/stripe/services/v2/core/account_service.rb', line 3561

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.



3547
3548
3549
# File 'lib/stripe/services/v2/core/account_service.rb', line 3547

def city
  @city
end

#countryObject

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



3549
3550
3551
# File 'lib/stripe/services/v2/core/account_service.rb', line 3549

def country
  @country
end

#line1Object

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



3551
3552
3553
# File 'lib/stripe/services/v2/core/account_service.rb', line 3551

def line1
  @line1
end

#line2Object

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



3553
3554
3555
# File 'lib/stripe/services/v2/core/account_service.rb', line 3553

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



3555
3556
3557
# File 'lib/stripe/services/v2/core/account_service.rb', line 3555

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



3557
3558
3559
# File 'lib/stripe/services/v2/core/account_service.rb', line 3557

def state
  @state
end

#townObject

Town or cho-me.



3559
3560
3561
# File 'lib/stripe/services/v2/core/account_service.rb', line 3559

def town
  @town
end