Class: Stripe::PaymentMethodService::UpdateParams::BillingDetails::Address

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

Returns a new instance of Address.



785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
# File 'lib/stripe/services/payment_method_service.rb', line 785

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.



773
774
775
# File 'lib/stripe/services/payment_method_service.rb', line 773

def city
  @city
end

#countryObject

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



775
776
777
# File 'lib/stripe/services/payment_method_service.rb', line 775

def country
  @country
end

#line1Object

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



777
778
779
# File 'lib/stripe/services/payment_method_service.rb', line 777

def line1
  @line1
end

#line2Object

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



779
780
781
# File 'lib/stripe/services/payment_method_service.rb', line 779

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



781
782
783
# File 'lib/stripe/services/payment_method_service.rb', line 781

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



783
784
785
# File 'lib/stripe/services/payment_method_service.rb', line 783

def state
  @state
end