Class AccommodationData
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.AccommodationData
-
public final class AccommodationData extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccommodationData.AccommodationDataBuilder
-
Constructor Summary
Constructors Constructor Description AccommodationData()AccommodationData(java.lang.String name, java.lang.String bookingReference, java.time.Instant checkInDate, java.time.Instant checkOutDate, Address address, java.lang.String state, java.lang.String country, java.lang.String city, java.lang.Long numberOfRooms, java.util.List<Guest> guests, java.util.List<Room> room)Creates a newAccommodationDatainstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccommodationData.AccommodationDataBuilderbuilder()booleanequals(java.lang.Object o)AddressgetAddress()The address details of the accommodation.java.lang.StringgetBookingReference()A unique identifier for the booking.java.time.InstantgetCheckInDate()For lodging, contains the actual or scheduled date the guest checked-in.java.time.InstantgetCheckOutDate()For lodging, contains the actual or scheduled date the guest checked-out.java.lang.StringgetCity()The address city.java.lang.StringgetCountry()The ISO country code of the address.java.util.List<Guest>getGuests()Contains information about the guests staying at the accommodation.java.lang.StringgetName()For lodging, contains the lodging name that appears on the storefront/customer receipts.java.lang.LonggetNumberOfRooms()The total number of rooms booked for the accommodation.java.util.List<Room>getRoom()Contains information about the rooms booked by the customer.java.lang.StringgetState()The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).inthashCode()voidsetAddress(Address address)The address details of the accommodation.voidsetBookingReference(java.lang.String bookingReference)A unique identifier for the booking.voidsetCheckInDate(java.time.Instant checkInDate)For lodging, contains the actual or scheduled date the guest checked-in.voidsetCheckOutDate(java.time.Instant checkOutDate)For lodging, contains the actual or scheduled date the guest checked-out.voidsetCity(java.lang.String city)The address city.voidsetCountry(java.lang.String country)The ISO country code of the address.voidsetGuests(java.util.List<Guest> guests)Contains information about the guests staying at the accommodation.voidsetName(java.lang.String name)For lodging, contains the lodging name that appears on the storefront/customer receipts.voidsetNumberOfRooms(java.lang.Long numberOfRooms)The total number of rooms booked for the accommodation.voidsetRoom(java.util.List<Room> room)Contains information about the rooms booked by the customer.voidsetState(java.lang.String state)The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).java.lang.StringtoString()
-
-
-
Constructor Detail
-
AccommodationData
public AccommodationData()
-
AccommodationData
public AccommodationData(java.lang.String name, java.lang.String bookingReference, java.time.Instant checkInDate, java.time.Instant checkOutDate, Address address, java.lang.String state, java.lang.String country, java.lang.String city, java.lang.Long numberOfRooms, java.util.List<Guest> guests, java.util.List<Room> room)Creates a newAccommodationDatainstance.- Parameters:
name- For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.bookingReference- A unique identifier for the booking.checkInDate- For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.checkOutDate- For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.address- The address details of the accommodation.state- The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).country- The ISO country code of the address.city- The address city.numberOfRooms- The total number of rooms booked for the accommodation.guests- Contains information about the guests staying at the accommodation.room- Contains information about the rooms booked by the customer.
-
-
Method Detail
-
builder
public static AccommodationData.AccommodationDataBuilder builder()
-
getName
public java.lang.String getName()
For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.
-
getBookingReference
public java.lang.String getBookingReference()
A unique identifier for the booking.
-
getCheckInDate
public java.time.Instant getCheckInDate()
For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.
-
getCheckOutDate
public java.time.Instant getCheckOutDate()
For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.
-
getAddress
public Address getAddress()
The address details of the accommodation.
-
getState
public java.lang.String getState()
The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
-
getCountry
public java.lang.String getCountry()
The ISO country code of the address.
-
getCity
public java.lang.String getCity()
The address city.
-
getNumberOfRooms
public java.lang.Long getNumberOfRooms()
The total number of rooms booked for the accommodation.
-
getGuests
public java.util.List<Guest> getGuests()
Contains information about the guests staying at the accommodation.
-
getRoom
public java.util.List<Room> getRoom()
Contains information about the rooms booked by the customer.
-
setName
public void setName(java.lang.String name)
For lodging, contains the lodging name that appears on the storefront/customer receipts. For cruise, contains the ship name booked for the cruise.
-
setBookingReference
public void setBookingReference(java.lang.String bookingReference)
A unique identifier for the booking.
-
setCheckInDate
public void setCheckInDate(java.time.Instant checkInDate)
For lodging, contains the actual or scheduled date the guest checked-in. For cruise, contains the cruise departure date also known as sail date.
-
setCheckOutDate
public void setCheckOutDate(java.time.Instant checkOutDate)
For lodging, contains the actual or scheduled date the guest checked-out. For cruise, contains the cruise return date also known as sail end date.
-
setAddress
public void setAddress(Address address)
The address details of the accommodation.
-
setState
public void setState(java.lang.String state)
The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).
-
setCountry
public void setCountry(java.lang.String country)
The ISO country code of the address.
-
setCity
public void setCity(java.lang.String city)
The address city.
-
setNumberOfRooms
public void setNumberOfRooms(java.lang.Long numberOfRooms)
The total number of rooms booked for the accommodation.
-
setGuests
public void setGuests(java.util.List<Guest> guests)
Contains information about the guests staying at the accommodation.
-
setRoom
public void setRoom(java.util.List<Room> room)
Contains information about the rooms booked by the customer.
-
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
-
-