Class: Stripe::PaymentIntentCreateParams::PaymentDetails::LodgingDatum::Accommodation

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



1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1575

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.



1561
1562
1563
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1561

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1563
1564
1565
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1563

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1565
1566
1567
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1565

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1567
1568
1569
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1567

def nights
  @nights
end

#number_of_roomsObject

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



1569
1570
1571
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1569

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1571
1572
1573
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1571

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1573
1574
1575
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1573

def smoking_indicator
  @smoking_indicator
end