Package com.duffel.sdk.model
Class OrderService
java.lang.Object
com.duffel.sdk.model.OrderService
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class OrderService
extends Object
OrderService
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPassengerIdsItem(String passengerIdsItem) addSegmentIdsItem(String segmentIdsItem) boolean@NotNull StringgetId()Duffel's unique identifier for the booked service@NotNull @Valid OrderServiceMetadataGet metadataList of passenger `id`s the service applies to.@NotNull @Min(1L) IntegerThe quantity of the service that was booked minimum: 1List of segment `id`s the service applies to.@NotNull StringThe total price of the service for all passengers and segments it applies to, accounting for quantity and including taxes@NotNull StringThe currency of the `total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.@NotNull OrderService.TypeEnumgetType()The type of the service.inthashCode()metadata(OrderServiceMetadata metadata) passengerIds(List<String> passengerIds) segmentIds(List<String> segmentIds) voidvoidsetMetadata(OrderServiceMetadata metadata) voidsetPassengerIds(List<String> passengerIds) voidsetQuantity(Integer quantity) voidsetSegmentIds(List<String> segmentIds) voidsetTotalAmount(String totalAmount) voidsetTotalCurrency(String totalCurrency) voidsetType(OrderService.TypeEnum type) toString()totalAmount(String totalAmount) totalCurrency(String totalCurrency) type(OrderService.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_PASSENGER_IDS
- See Also:
-
JSON_PROPERTY_QUANTITY
- 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
-
OrderService
public OrderService()
-
-
Method Details
-
id
-
getId
Duffel's unique identifier for the booked service- Returns:
- id
-
setId
-
metadata
-
getMetadata
Get metadata- Returns:
- metadata
-
setMetadata
-
passengerIds
-
addPassengerIdsItem
-
getPassengerIds
List of passenger `id`s the service applies to. The service applies to all the passengers in this list.- Returns:
- passengerIds
-
setPassengerIds
-
quantity
-
getQuantity
The quantity of the service that was booked minimum: 1- Returns:
- quantity
-
setQuantity
-
segmentIds
-
addSegmentIdsItem
-
getSegmentIds
List of segment `id`s the service applies to. The service applies to all the segments in this list.- Returns:
- segmentIds
-
setSegmentIds
-
totalAmount
-
getTotalAmount
The total price of the service for all passengers and segments it applies to, accounting for quantity and including taxes- 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` and `seat` 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
-