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.



6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
# File 'lib/stripe/resources/payment_intent.rb', line 6047

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.



6035
6036
6037
# File 'lib/stripe/resources/payment_intent.rb', line 6035

def city
  @city
end

#countryObject

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



6037
6038
6039
# File 'lib/stripe/resources/payment_intent.rb', line 6037

def country
  @country
end

#line1Object

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



6039
6040
6041
# File 'lib/stripe/resources/payment_intent.rb', line 6039

def line1
  @line1
end

#line2Object

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



6041
6042
6043
# File 'lib/stripe/resources/payment_intent.rb', line 6041

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



6043
6044
6045
# File 'lib/stripe/resources/payment_intent.rb', line 6043

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



6045
6046
6047
# File 'lib/stripe/resources/payment_intent.rb', line 6045

def state
  @state
end