Class: Stripe::ChargeUpdateParams::PaymentDetails::LodgingDatum::Accommodation
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::ChargeUpdateParams::PaymentDetails::LodgingDatum::Accommodation
- Defined in:
- lib/stripe/params/charge_update_params.rb
Instance Attribute Summary collapse
-
#accommodation_type ⇒ Object
Type of accommodation.
-
#bed_type ⇒ Object
Bed type.
-
#daily_rate_amount ⇒ Object
Daily accommodation rate in cents.
-
#nights ⇒ Object
Number of nights.
-
#number_of_rooms ⇒ Object
Number of rooms, cabanas, apartments, and so on.
-
#rate_type ⇒ Object
Rate type.
-
#smoking_indicator ⇒ Object
Whether smoking is allowed.
Instance Method Summary collapse
-
#initialize(accommodation_type: nil, bed_type: nil, daily_rate_amount: nil, nights: nil, number_of_rooms: nil, rate_type: nil, smoking_indicator: nil) ⇒ Accommodation
constructor
A new instance of Accommodation.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(accommodation_type: nil, bed_type: nil, daily_rate_amount: nil, nights: nil, number_of_rooms: nil, rate_type: nil, smoking_indicator: nil) ⇒ Accommodation
Returns a new instance of Accommodation.
1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 |
# File 'lib/stripe/params/charge_update_params.rb', line 1373 def initialize( accommodation_type: nil, bed_type: nil, daily_rate_amount: nil, nights: nil, number_of_rooms: nil, rate_type: nil, smoking_indicator: nil ) @accommodation_type = accommodation_type @bed_type = bed_type @daily_rate_amount = daily_rate_amount @nights = nights @number_of_rooms = number_of_rooms @rate_type = rate_type @smoking_indicator = smoking_indicator end |
Instance Attribute Details
#accommodation_type ⇒ Object
Type of accommodation.
1359 1360 1361 |
# File 'lib/stripe/params/charge_update_params.rb', line 1359 def accommodation_type @accommodation_type end |
#bed_type ⇒ Object
Bed type.
1361 1362 1363 |
# File 'lib/stripe/params/charge_update_params.rb', line 1361 def bed_type @bed_type end |
#daily_rate_amount ⇒ Object
Daily accommodation rate in cents.
1363 1364 1365 |
# File 'lib/stripe/params/charge_update_params.rb', line 1363 def daily_rate_amount @daily_rate_amount end |
#nights ⇒ Object
Number of nights.
1365 1366 1367 |
# File 'lib/stripe/params/charge_update_params.rb', line 1365 def nights @nights end |
#number_of_rooms ⇒ Object
Number of rooms, cabanas, apartments, and so on.
1367 1368 1369 |
# File 'lib/stripe/params/charge_update_params.rb', line 1367 def number_of_rooms @number_of_rooms end |
#rate_type ⇒ Object
Rate type.
1369 1370 1371 |
# File 'lib/stripe/params/charge_update_params.rb', line 1369 def rate_type @rate_type end |
#smoking_indicator ⇒ Object
Whether smoking is allowed.
1371 1372 1373 |
# File 'lib/stripe/params/charge_update_params.rb', line 1371 def smoking_indicator @smoking_indicator end |