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



5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
# File 'lib/stripe/resources/payment_intent.rb', line 5748

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.



5736
5737
5738
# File 'lib/stripe/resources/payment_intent.rb', line 5736

def city
  @city
end

#countryObject

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



5738
5739
5740
# File 'lib/stripe/resources/payment_intent.rb', line 5738

def country
  @country
end

#line1Object

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



5740
5741
5742
# File 'lib/stripe/resources/payment_intent.rb', line 5740

def line1
  @line1
end

#line2Object

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



5742
5743
5744
# File 'lib/stripe/resources/payment_intent.rb', line 5742

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



5744
5745
5746
# File 'lib/stripe/resources/payment_intent.rb', line 5744

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



5746
5747
5748
# File 'lib/stripe/resources/payment_intent.rb', line 5746

def state
  @state
end