Class: Stripe::Charge::CaptureParams::PaymentDetails::Lodging::Address

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



3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
# File 'lib/stripe/resources/charge.rb', line 3241

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.



3224
3225
3226
# File 'lib/stripe/resources/charge.rb', line 3224

def city
  @city
end

#countryObject

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



3227
3228
3229
# File 'lib/stripe/resources/charge.rb', line 3227

def country
  @country
end

#line1Object

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



3230
3231
3232
# File 'lib/stripe/resources/charge.rb', line 3230

def line1
  @line1
end

#line2Object

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



3233
3234
3235
# File 'lib/stripe/resources/charge.rb', line 3233

def line2
  @line2
end

#postal_codeObject

ZIP or postal code.



3236
3237
3238
# File 'lib/stripe/resources/charge.rb', line 3236

def postal_code
  @postal_code
end

#stateObject

State, county, province, or region.



3239
3240
3241
# File 'lib/stripe/resources/charge.rb', line 3239

def state
  @state
end