Class: Stripe::PaymentIntentConfirmParams::PaymentDetails::LodgingDatum::Accommodation

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



1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1675

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.



1661
1662
1663
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1661

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1663
1664
1665
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1663

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1665
1666
1667
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1665

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1667
1668
1669
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1667

def nights
  @nights
end

#number_of_roomsObject

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



1669
1670
1671
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1669

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1671
1672
1673
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1671

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1673
1674
1675
# File 'lib/stripe/params/payment_intent_confirm_params.rb', line 1673

def smoking_indicator
  @smoking_indicator
end