Class: Stripe::PaymentIntentService::UpdateParams::PaymentMethodData::BillingDetails::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_intent_service.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.



4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
# File 'lib/stripe/services/payment_intent_service.rb', line 4191

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.



4179
4180
4181
# File 'lib/stripe/services/payment_intent_service.rb', line 4179

def city
  @city
end

#countryObject

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



4181
4182
4183
# File 'lib/stripe/services/payment_intent_service.rb', line 4181

def country
  @country
end

#line1Object

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



4183
4184
4185
# File 'lib/stripe/services/payment_intent_service.rb', line 4183

def line1
  @line1
end

#line2Object

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



4185
4186
4187
# File 'lib/stripe/services/payment_intent_service.rb', line 4185

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



4187
4188
4189
# File 'lib/stripe/services/payment_intent_service.rb', line 4187

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



4189
4190
4191
# File 'lib/stripe/services/payment_intent_service.rb', line 4189

def state
  @state
end