Class: Stripe::Account::CreateParams::BusinessProfile::SupportAddress

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) ⇒ SupportAddress

Returns a new instance of SupportAddress.



3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
# File 'lib/stripe/resources/account.rb', line 3507

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.



3495
3496
3497
# File 'lib/stripe/resources/account.rb', line 3495

def city
  @city
end

#countryObject

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



3497
3498
3499
# File 'lib/stripe/resources/account.rb', line 3497

def country
  @country
end

#line1Object

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



3499
3500
3501
# File 'lib/stripe/resources/account.rb', line 3499

def line1
  @line1
end

#line2Object

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



3501
3502
3503
# File 'lib/stripe/resources/account.rb', line 3501

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



3503
3504
3505
# File 'lib/stripe/resources/account.rb', line 3503

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



3505
3506
3507
# File 'lib/stripe/resources/account.rb', line 3505

def state
  @state
end