Class AccommodationData.AccommodationDataBuilder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessions.requests.AccommodationData.AccommodationDataBuilder
-
- Enclosing class:
- AccommodationData
public static class AccommodationData.AccommodationDataBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccommodationData.AccommodationDataBuilderaddress(Address address)The address details of the accommodation.AccommodationData.AccommodationDataBuilderbookingReference(java.lang.String bookingReference)A unique identifier for the booking.AccommodationDatabuild()AccommodationData.AccommodationDataBuildercheckInDate(java.time.Instant checkInDate)For lodging, contains the actual or scheduled date the guest checked-in.AccommodationData.AccommodationDataBuildercheckOutDate(java.time.Instant checkOutDate)For lodging, contains the actual or scheduled date the guest checked-out.AccommodationData.AccommodationDataBuildercity(java.lang.String city)The address city.AccommodationData.AccommodationDataBuildercountry(java.lang.String country)The ISO country code of the address.AccommodationData.AccommodationDataBuilderguests(java.util.List<Guest> guests)Contains information about the guests staying at the accommodation.AccommodationData.AccommodationDataBuildername(java.lang.String name)For lodging, contains the lodging name that appears on the storefront/customer receipts.AccommodationData.AccommodationDataBuildernumberOfRooms(java.lang.Long numberOfRooms)The total number of rooms booked for the accommodation.AccommodationData.AccommodationDataBuilderroom(java.util.List<Room> room)Contains information about the rooms booked by the customer.AccommodationData.AccommodationDataBuilderstate(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()
-
-
-
Method Detail
-
name
public AccommodationData.AccommodationDataBuilder name(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.- Returns:
this.
-
bookingReference
public AccommodationData.AccommodationDataBuilder bookingReference(java.lang.String bookingReference)
A unique identifier for the booking.- Returns:
this.
-
checkInDate
public AccommodationData.AccommodationDataBuilder checkInDate(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.- Returns:
this.
-
checkOutDate
public AccommodationData.AccommodationDataBuilder checkOutDate(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.- Returns:
this.
-
address
public AccommodationData.AccommodationDataBuilder address(Address address)
The address details of the accommodation.- Returns:
this.
-
state
public AccommodationData.AccommodationDataBuilder state(java.lang.String state)
The state or province of the address country (ISO 3166-2 code of up to two alphanumeric characters).- Returns:
this.
-
country
public AccommodationData.AccommodationDataBuilder country(java.lang.String country)
The ISO country code of the address.- Returns:
this.
-
city
public AccommodationData.AccommodationDataBuilder city(java.lang.String city)
The address city.- Returns:
this.
-
numberOfRooms
public AccommodationData.AccommodationDataBuilder numberOfRooms(java.lang.Long numberOfRooms)
The total number of rooms booked for the accommodation.- Returns:
this.
-
guests
public AccommodationData.AccommodationDataBuilder guests(java.util.List<Guest> guests)
Contains information about the guests staying at the accommodation.- Returns:
this.
-
room
public AccommodationData.AccommodationDataBuilder room(java.util.List<Room> room)
Contains information about the rooms booked by the customer.- Returns:
this.
-
build
public AccommodationData build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-