Package com.duffel.sdk.model
Class OfferService
java.lang.Object
com.duffel.sdk.model.OfferService
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class OfferService
extends Object
OfferService
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengerIdsItem(String passengerIdsItem) addSegmentIdsItem(String segmentIdsItem) booleangetId()Duffel's unique identifier for the service@Min(1L) IntegerThe maximum quantity of this service that can be booked with an order minimum: 1@Valid OfferServiceMetadataGet metadataThe list of passenger `id`s the service applies to.The list of segment `id`s the service applies to.The total price of the service for all passengers and segments it applies to, including taxes.The currency of the `total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.getType()The type of the service.inthashCode()maximumQuantity(Integer maximumQuantity) metadata(OfferServiceMetadata metadata) passengerIds(List<String> passengerIds) segmentIds(List<String> segmentIds) voidvoidsetMaximumQuantity(Integer maximumQuantity) voidsetMetadata(OfferServiceMetadata metadata) voidsetPassengerIds(List<String> passengerIds) voidsetSegmentIds(List<String> segmentIds) voidsetTotalAmount(String totalAmount) voidsetTotalCurrency(String totalCurrency) voidsetType(OfferService.TypeEnum type) toString()totalAmount(String totalAmount) totalCurrency(String totalCurrency) type(OfferService.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_MAXIMUM_QUANTITY
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_PASSENGER_IDS
- See Also:
-
JSON_PROPERTY_SEGMENT_IDS
- See Also:
-
JSON_PROPERTY_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_TOTAL_CURRENCY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
OfferService
public OfferService()
-
-
Method Details
-
id
-
getId
Duffel's unique identifier for the service- Returns:
- id
-
setId
-
maximumQuantity
-
getMaximumQuantity
The maximum quantity of this service that can be booked with an order minimum: 1- Returns:
- maximumQuantity
-
setMaximumQuantity
-
metadata
-
getMetadata
Get metadata- Returns:
- metadata
-
setMetadata
-
passengerIds
-
addPassengerIdsItem
-
getPassengerIds
The list of passenger `id`s the service applies to. If you add this service to an order it will apply to all the passengers in this list. For services where the type is `baggage`, this list will include only a single passenger.- Returns:
- passengerIds
-
setPassengerIds
-
segmentIds
-
addSegmentIdsItem
-
getSegmentIds
The list of segment `id`s the service applies to. If you add this service to an order it will apply to all the segments in this list. For services where the type is `baggage`, depending on the airline, this list includes all the segments of all slices or all the segments of a single slice.- Returns:
- segmentIds
-
setSegmentIds
-
totalAmount
-
getTotalAmount
The total price of the service for all passengers and segments it applies to, including taxes. This price is for a single unit of the service.- Returns:
- totalAmount
-
setTotalAmount
-
totalCurrency
-
getTotalCurrency
The currency of the `total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. It will match your organisation's billing currency unless you’re using Duffel as an accredited IATA agent, in which case it will be in the currency provided by the airline (which will usually be based on the country where your IATA agency is registered).- Returns:
- totalCurrency
-
setTotalCurrency
-
type
-
getType
The type of the service. For now we only return services of type `baggage` but we will return other types in the future. We won't consider adding new service types a breaking change.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-