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



1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1607

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.



1593
1594
1595
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1593

def accommodation_type
  @accommodation_type
end

#bed_typeObject

Bed type.



1595
1596
1597
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1595

def bed_type
  @bed_type
end

#daily_rate_amountObject

Daily accommodation rate in cents.



1597
1598
1599
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1597

def daily_rate_amount
  @daily_rate_amount
end

#nightsObject

Number of nights.



1599
1600
1601
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1599

def nights
  @nights
end

#number_of_roomsObject

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



1601
1602
1603
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1601

def number_of_rooms
  @number_of_rooms
end

#rate_typeObject

Rate type.



1603
1604
1605
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1603

def rate_type
  @rate_type
end

#smoking_indicatorObject

Whether smoking is allowed.



1605
1606
1607
# File 'lib/stripe/params/payment_intent_capture_params.rb', line 1605

def smoking_indicator
  @smoking_indicator
end