Class ApiPax
java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiPax
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]")
public class ApiPax
extends Object
Passenger information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPassenger type, defines if the passenger is adult or child. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Min(0L) @Max(99L) IntegergetAge()Age of the passenger (required for children passengers).@Size(min=1,max=50) StringgetName()Name of the passenger.@Min(1L) IntegerGet roomId minimum: 1@Size(min=0,max=50) StringSurname of the passenger.@NotNull ApiPax.TypeEnumgetType()Passenger type, defines if the passenger is adult or child.inthashCode()voidvoidvoidvoidsetSurname(String surname) voidsetType(ApiPax.TypeEnum type) toString()type(ApiPax.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_ROOM_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_AGE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SURNAME
- See Also:
-
-
Constructor Details
-
ApiPax
public ApiPax()
-
-
Method Details
-
roomId
-
getRoomId
Get roomId minimum: 1- Returns:
- roomId
-
setRoomId
-
type
-
getType
Passenger type, defines if the passenger is adult or child.- Returns:
- type
-
setType
-
age
-
getAge
Age of the passenger (required for children passengers). Please make sure to use the same ages in confirmation step to those you used in the availability step; the ages cannot be changed once the booking flow has started minimum: 0 maximum: 99- Returns:
- age
-
setAge
-
name
-
getName
Name of the passenger.- Returns:
- name
-
setName
-
surname
-
getSurname
Surname of the passenger.- Returns:
- surname
-
setSurname
-
equals
-
hashCode
public int hashCode() -
toString
-