Class: Stripe::PaymentIntentUpdateParams::PaymentDetails::LodgingDatum::Accommodation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#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.



1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1524

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.



1510
1511
1512
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1510

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1512
1513
1514
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1512

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1514
1515
1516
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1514

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1516
1517
1518
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1516

def nights
  @nights
end

#number_of_roomsObject

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



1518
1519
1520
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1518

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1520
1521
1522
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1520

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1522
1523
1524
# File 'lib/stripe/params/payment_intent_update_params.rb', line 1522

def smoking_indicator
  @smoking_indicator
end