Class: Stripe::PaymentIntent::CaptureParams::PaymentDetails::Lodging::Address

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



11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
# File 'lib/stripe/resources/payment_intent.rb', line 11704

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.



11692
11693
11694
# File 'lib/stripe/resources/payment_intent.rb', line 11692

def city
  @city
end

#countryObject

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



11694
11695
11696
# File 'lib/stripe/resources/payment_intent.rb', line 11694

def country
  @country
end

#line1Object

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



11696
11697
11698
# File 'lib/stripe/resources/payment_intent.rb', line 11696

def line1
  @line1
end

#line2Object

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



11698
11699
11700
# File 'lib/stripe/resources/payment_intent.rb', line 11698

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



11700
11701
11702
# File 'lib/stripe/resources/payment_intent.rb', line 11700

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



11702
11703
11704
# File 'lib/stripe/resources/payment_intent.rb', line 11702

def state
  @state
end