Class: Stripe::ChargeCaptureParams::PaymentDetails::LodgingDatum::Accommodation

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



1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'lib/stripe/params/charge_capture_params.rb', line 1364

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_typeObject

Type of accommodation.



1350
1351
1352
# File 'lib/stripe/params/charge_capture_params.rb', line 1350

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1352
1353
1354
# File 'lib/stripe/params/charge_capture_params.rb', line 1352

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1354
1355
1356
# File 'lib/stripe/params/charge_capture_params.rb', line 1354

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1356
1357
1358
# File 'lib/stripe/params/charge_capture_params.rb', line 1356

def nights
  @nights
end

#number_of_roomsObject

Number of rooms, cabanas, apartments, and so on.



1358
1359
1360
# File 'lib/stripe/params/charge_capture_params.rb', line 1358

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1360
1361
1362
# File 'lib/stripe/params/charge_capture_params.rb', line 1360

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1362
1363
1364
# File 'lib/stripe/params/charge_capture_params.rb', line 1362

def smoking_indicator
  @smoking_indicator
end