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.



1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
# File 'lib/stripe/params/charge_capture_params.rb', line 1271

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.



1257
1258
1259
# File 'lib/stripe/params/charge_capture_params.rb', line 1257

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1259
1260
1261
# File 'lib/stripe/params/charge_capture_params.rb', line 1259

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1261
1262
1263
# File 'lib/stripe/params/charge_capture_params.rb', line 1261

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1263
1264
1265
# File 'lib/stripe/params/charge_capture_params.rb', line 1263

def nights
  @nights
end

#number_of_roomsObject

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



1265
1266
1267
# File 'lib/stripe/params/charge_capture_params.rb', line 1265

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1267
1268
1269
# File 'lib/stripe/params/charge_capture_params.rb', line 1267

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1269
1270
1271
# File 'lib/stripe/params/charge_capture_params.rb', line 1269

def smoking_indicator
  @smoking_indicator
end