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



8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
# File 'lib/stripe/resources/payment_intent.rb', line 8463

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.



8451
8452
8453
# File 'lib/stripe/resources/payment_intent.rb', line 8451

def city
  @city
end

#countryObject

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



8453
8454
8455
# File 'lib/stripe/resources/payment_intent.rb', line 8453

def country
  @country
end

#line1Object

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



8455
8456
8457
# File 'lib/stripe/resources/payment_intent.rb', line 8455

def line1
  @line1
end

#line2Object

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



8457
8458
8459
# File 'lib/stripe/resources/payment_intent.rb', line 8457

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



8459
8460
8461
# File 'lib/stripe/resources/payment_intent.rb', line 8459

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



8461
8462
8463
# File 'lib/stripe/resources/payment_intent.rb', line 8461

def state
  @state
end