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.
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 |
# File 'lib/stripe/params/charge_update_params.rb', line 1280 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.
1266 1267 1268 |
# File 'lib/stripe/params/charge_update_params.rb', line 1266 def accommodation_type @accommodation_type end |
#bed_type ⇒ Object
Bed type.
1268 1269 1270 |
# File 'lib/stripe/params/charge_update_params.rb', line 1268 def bed_type @bed_type end |
#daily_rate_amount ⇒ Object
Daily accommodation rate in cents.
1270 1271 1272 |
# File 'lib/stripe/params/charge_update_params.rb', line 1270 def daily_rate_amount @daily_rate_amount end |
#nights ⇒ Object
Number of nights.
1272 1273 1274 |
# File 'lib/stripe/params/charge_update_params.rb', line 1272 def nights @nights end |
#number_of_rooms ⇒ Object
Number of rooms, cabanas, apartments, and so on.
1274 1275 1276 |
# File 'lib/stripe/params/charge_update_params.rb', line 1274 def number_of_rooms @number_of_rooms end |
#rate_type ⇒ Object
Rate type.
1276 1277 1278 |
# File 'lib/stripe/params/charge_update_params.rb', line 1276 def rate_type @rate_type end |
#smoking_indicator ⇒ Object
Whether smoking is allowed.
1278 1279 1280 |
# File 'lib/stripe/params/charge_update_params.rb', line 1278 def smoking_indicator @smoking_indicator end |