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



5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
# File 'lib/stripe/resources/payment_intent.rb', line 5297

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.



5285
5286
5287
# File 'lib/stripe/resources/payment_intent.rb', line 5285

def city
  @city
end

#countryObject

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



5287
5288
5289
# File 'lib/stripe/resources/payment_intent.rb', line 5287

def country
  @country
end

#line1Object

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



5289
5290
5291
# File 'lib/stripe/resources/payment_intent.rb', line 5289

def line1
  @line1
end

#line2Object

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



5291
5292
5293
# File 'lib/stripe/resources/payment_intent.rb', line 5291

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



5293
5294
5295
# File 'lib/stripe/resources/payment_intent.rb', line 5293

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



5295
5296
5297
# File 'lib/stripe/resources/payment_intent.rb', line 5295

def state
  @state
end