Class: Stripe::PaymentIntentService::ConfirmParams::PaymentDetails::EventDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_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.



7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
# File 'lib/stripe/services/payment_intent_service.rb', line 7732

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.



7720
7721
7722
# File 'lib/stripe/services/payment_intent_service.rb', line 7720

def city
  @city
end

#countryObject

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



7722
7723
7724
# File 'lib/stripe/services/payment_intent_service.rb', line 7722

def country
  @country
end

#line1Object

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



7724
7725
7726
# File 'lib/stripe/services/payment_intent_service.rb', line 7724

def line1
  @line1
end

#line2Object

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



7726
7727
7728
# File 'lib/stripe/services/payment_intent_service.rb', line 7726

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



7728
7729
7730
# File 'lib/stripe/services/payment_intent_service.rb', line 7728

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



7730
7731
7732
# File 'lib/stripe/services/payment_intent_service.rb', line 7730

def state
  @state
end