Class: Stripe::OrderCreateParams::Payment::Settings::PaymentMethodOptions::Klarna::SupplementaryPurchaseData::TrainReservationDetail::Arrival::Address

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/order_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(city: nil, country: nil, postal_code: nil, region: nil, street_address: nil, street_address2: nil) ⇒ Address

Returns a new instance of Address.



1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
# File 'lib/stripe/params/order_create_params.rb', line 1226

def initialize(
  city: nil,
  country: nil,
  postal_code: nil,
  region: nil,
  street_address: nil,
  street_address2: nil
)
  @city = city
  @country = country
  @postal_code = postal_code
  @region = region
  @street_address = street_address
  @street_address2 = street_address2
end

Instance Attribute Details

#cityObject

The city or town.



1214
1215
1216
# File 'lib/stripe/params/order_create_params.rb', line 1214

def city
  @city
end

#countryObject

The country in ISO 3166-1 alpha-2 format.



1216
1217
1218
# File 'lib/stripe/params/order_create_params.rb', line 1216

def country
  @country
end

#postal_codeObject

The postal code formatted according to country.



1218
1219
1220
# File 'lib/stripe/params/order_create_params.rb', line 1218

def postal_code
  @postal_code
end

#regionObject

The state, county, province, or region formatted according to country.



1220
1221
1222
# File 'lib/stripe/params/order_create_params.rb', line 1220

def region
  @region
end

#street_addressObject

Line 1 of the street address.



1222
1223
1224
# File 'lib/stripe/params/order_create_params.rb', line 1222

def street_address
  @street_address
end

#street_address2Object

Line 2 of the street address.



1224
1225
1226
# File 'lib/stripe/params/order_create_params.rb', line 1224

def street_address2
  @street_address2
end