Class: Stripe::V2::Core::Accounts::PersonService::UpdateParams::AdditionalAddress

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

Returns a new instance of AdditionalAddress.



523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 523

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.



507
508
509
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 507

def city
  @city
end

#countryObject

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



509
510
511
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 509

def country
  @country
end

#line1Object

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



511
512
513
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 511

def line1
  @line1
end

#line2Object

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



513
514
515
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 513

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



515
516
517
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 515

def postal_code
  @postal_code
end

#purposeObject

Purpose of additional address.



517
518
519
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 517

def purpose
  @purpose
end

#stateObject

State, county, province, or region.



519
520
521
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 519

def state
  @state
end

#townObject

Town or cho-me.



521
522
523
# File 'lib/stripe/services/v2/core/accounts/person_service.rb', line 521

def town
  @town
end