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.



1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1744

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.



1730
1731
1732
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1730

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1732
1733
1734
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1732

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1734
1735
1736
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1734

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1736
1737
1738
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1736

def nights
  @nights
end

#number_of_roomsObject

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



1738
1739
1740
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1738

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1740
1741
1742
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1740

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1742
1743
1744
# File 'lib/stripe/params/payment_intent_create_params.rb', line 1742

def smoking_indicator
  @smoking_indicator
end