Package com.duffel.sdk.model
Class OfferRequestSlice
java.lang.Object
com.duffel.sdk.model.OfferRequestSlice
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OfferRequestSlice
extends Object
OfferRequestSlice
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the destinationstatic enumThe type of the origin -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondepartureDate(LocalDate departureDate) destination(OfferRequestSliceDestination destination) destinationType(OfferRequestSlice.DestinationTypeEnum destinationType) boolean@Valid LocalDateThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the passengers want to depart@Valid OfferRequestSliceDestinationGet destinationThe type of the destination@Valid OfferRequestSliceOriginGet originThe type of the origininthashCode()origin(OfferRequestSliceOrigin origin) originType(OfferRequestSlice.OriginTypeEnum originType) voidsetDepartureDate(LocalDate departureDate) voidsetDestination(OfferRequestSliceDestination destination) voidsetDestinationType(OfferRequestSlice.DestinationTypeEnum destinationType) voidsetOrigin(OfferRequestSliceOrigin origin) voidsetOriginType(OfferRequestSlice.OriginTypeEnum originType) toString()
-
Field Details
-
JSON_PROPERTY_DEPARTURE_DATE
- See Also:
-
JSON_PROPERTY_DESTINATION
- See Also:
-
JSON_PROPERTY_DESTINATION_TYPE
- See Also:
-
JSON_PROPERTY_ORIGIN
- See Also:
-
JSON_PROPERTY_ORIGIN_TYPE
- See Also:
-
-
Constructor Details
-
OfferRequestSlice
public OfferRequestSlice()
-
-
Method Details
-
departureDate
-
getDepartureDate
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the passengers want to depart- Returns:
- departureDate
-
setDepartureDate
-
destination
-
getDestination
Get destination- Returns:
- destination
-
setDestination
-
destinationType
-
getDestinationType
The type of the destination- Returns:
- destinationType
-
setDestinationType
-
origin
-
getOrigin
Get origin- Returns:
- origin
-
setOrigin
-
originType
-
getOriginType
The type of the origin- Returns:
- originType
-
setOriginType
-
equals
-
hashCode
public int hashCode() -
toString
-