Class: Stripe::PaymentIntent::UpdateParams::PaymentMethodData::BillingDetails::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.



6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
# File 'lib/stripe/resources/payment_intent.rb', line 6334

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.



6322
6323
6324
# File 'lib/stripe/resources/payment_intent.rb', line 6322

def city
  @city
end

#countryObject

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



6324
6325
6326
# File 'lib/stripe/resources/payment_intent.rb', line 6324

def country
  @country
end

#line1Object

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



6326
6327
6328
# File 'lib/stripe/resources/payment_intent.rb', line 6326

def line1
  @line1
end

#line2Object

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



6328
6329
6330
# File 'lib/stripe/resources/payment_intent.rb', line 6328

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



6330
6331
6332
# File 'lib/stripe/resources/payment_intent.rb', line 6330

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



6332
6333
6334
# File 'lib/stripe/resources/payment_intent.rb', line 6332

def state
  @state
end