Class: Stripe::ThreeDSecure::AuthenticationCreateParams::PaymentMethodData::BillingDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/three_d_secure/authentication_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, discriminator, discriminator_fields, field_encodings, new, #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.



262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 262

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

#city ⇒ Object

City, district, suburb, town, or village.



250
251
252
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 250

def city
  @city
end

#country ⇒ Object

Two-letter country code (ISO 3166-1 alpha-2).



252
253
254
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 252

def country
  @country
end

#line1 ⇒ Object

Address line 1, such as the street, PO Box, or company name.



254
255
256
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 254

def line1
  @line1
end

#line2 ⇒ Object

Address line 2, such as the apartment, suite, unit, or building.



256
257
258
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 256

def line2
  @line2
end

#postal_code ⇒ Object

ZIP or postal code.



258
259
260
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 258

def postal_code
  @postal_code
end

#state ⇒ Object

Country subdivision code defined in ISO 3166-2.



260
261
262
# File 'lib/stripe/params/three_d_secure/authentication_create_params.rb', line 260

def state
  @state
end