Class Room
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessionscomplete.requests.Room
-
public final class Room extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoom.RoomBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Room.RoomBuilderbuilder()booleanequals(java.lang.Object o)java.lang.StringgetNumberOfNightsAtRoomRate()For lodging, contains the number of nights charged at the rate provided in the rate field.java.lang.StringgetRate()For lodging, contains the nightly rate for one room.inthashCode()voidsetNumberOfNightsAtRoomRate(java.lang.String numberOfNightsAtRoomRate)For lodging, contains the number of nights charged at the rate provided in the rate field.voidsetRate(java.lang.String rate)For lodging, contains the nightly rate for one room.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Room
public Room()
-
Room
public Room(java.lang.String rate, java.lang.String numberOfNightsAtRoomRate)Creates a newRoominstance.- Parameters:
rate- For lodging, contains the nightly rate for one room. For cruise, contains the total cost of the cruise.numberOfNightsAtRoomRate- For lodging, contains the number of nights charged at the rate provided in the rate field. For cruise, contains the length of the cruise in days.
-
-
Method Detail
-
builder
public static Room.RoomBuilder builder()
-
getRate
public java.lang.String getRate()
For lodging, contains the nightly rate for one room. For cruise, contains the total cost of the cruise.
-
getNumberOfNightsAtRoomRate
public java.lang.String getNumberOfNightsAtRoomRate()
For lodging, contains the number of nights charged at the rate provided in the rate field. For cruise, contains the length of the cruise in days.
-
setRate
public void setRate(java.lang.String rate)
For lodging, contains the nightly rate for one room. For cruise, contains the total cost of the cruise.
-
setNumberOfNightsAtRoomRate
public void setNumberOfNightsAtRoomRate(java.lang.String numberOfNightsAtRoomRate)
For lodging, contains the number of nights charged at the rate provided in the rate field. For cruise, contains the length of the cruise in days.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-