Class: Stripe::PaymentIntentCaptureParams::PaymentDetails::LodgingDatum::Accommodation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, 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.



1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1480

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.



1466
1467
1468
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1466

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1468
1469
1470
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1468

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1470
1471
1472
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1470

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1472
1473
1474
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1472

def nights
  @nights
end

#number_of_roomsObject

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



1474
1475
1476
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1474

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1476
1477
1478
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1476

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1478
1479
1480
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1478

def smoking_indicator
  @smoking_indicator
end