Class: Stripe::PaymentIntent::ConfirmParams::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.



11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
# File 'lib/stripe/resources/payment_intent.rb', line 11307

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.



11295
11296
11297
# File 'lib/stripe/resources/payment_intent.rb', line 11295

def city
  @city
end

#countryObject

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



11297
11298
11299
# File 'lib/stripe/resources/payment_intent.rb', line 11297

def country
  @country
end

#line1Object

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



11299
11300
11301
# File 'lib/stripe/resources/payment_intent.rb', line 11299

def line1
  @line1
end

#line2Object

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



11301
11302
11303
# File 'lib/stripe/resources/payment_intent.rb', line 11301

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



11303
11304
11305
# File 'lib/stripe/resources/payment_intent.rb', line 11303

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



11305
11306
11307
# File 'lib/stripe/resources/payment_intent.rb', line 11305

def state
  @state
end