Package com.duffel.sdk.model
Class Order1
java.lang.Object
com.duffel.sdk.model.Order1
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class Order1
extends Object
An order represents a booking with an airline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets availableActionsstatic enumWhether the __Order__ is Self-Managed or Managed -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAirlineInitiatedChangesItem(AirlineInitiatedChange airlineInitiatedChangesItem) addAvailableActionsItem(Order1.AvailableActionsEnum availableActionsItem) addChangesItem(OrderChange changesItem) addDocumentsItem(OrderDocument documentsItem) addPassengersItem(OrderPassenger passengersItem) addServicesItem(OrderService servicesItem) addSlicesItem(OrderSlice slicesItem) airlineInitiatedChanges(List<AirlineInitiatedChange> airlineInitiatedChanges) availableActions(List<Order1.AvailableActionsEnum> availableActions) baseAmount(String baseAmount) baseCurrency(String baseCurrency) bookingReference(String bookingReference) cancelledAt(OffsetDateTime cancelledAt) changes(List<OrderChange> changes) conditions(OrderConditions1 conditions) content(Order1.ContentEnum content) createdAt(OffsetDateTime createdAt) documents(List<OrderDocument> documents) boolean@NotNull @Valid List<AirlineInitiatedChange>The airline-initiated changes for this OrderThe available actions for this __Order__@NotNull StringThe base price of the order for all flights and services booked, excluding taxes@NotNull StringThe currency of the `base_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.@NotNull StringThe airline's reference for the order, sometimes known as a \"passenger name record\" (PNR) or \"record locator\".@NotNull @Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order was cancelled, if it has been cancelled@NotNull @Valid List<OrderChange>The passenger-initiated changes for this Order@NotNull @Valid OrderConditions1Get conditionsWhether the __Order__ is Self-Managed or Managed@NotNull @Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order was created@NotNull @Valid List<OrderDocument>The documents issued for this order@NotNull StringgetId()Duffel's unique identifier for the order@NotNull BooleanWhether the order was created in live mode.@NotNull ObjectMetadata contains a set of key-value pairs that you can attach to an object.@NotNull @Valid Airline4getOwner()Get owner@NotNull @Valid List<OrderPassenger>The passengers who are travelling@NotNull @Valid OrderPaymentStatusGet paymentStatus@NotNull @Valid List<OrderService>The services booked along with this order@NotNull @Valid List<OrderSlice>The [slices](/docs/api/overview/key-principles) that make up the itinerary of this order.@NotNull @Valid OffsetDateTimeAirlines are always the source of truth for orders.@NotNull StringThe amount of tax payable on the order for all the flights booked@NotNull StringThe currency of the `tax_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.@NotNull StringThe total price of the order for all the flights and services booked, including taxes@NotNull StringThe currency of the `total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.inthashCode()passengers(List<OrderPassenger> passengers) paymentStatus(OrderPaymentStatus paymentStatus) services(List<OrderService> services) voidsetAirlineInitiatedChanges(List<AirlineInitiatedChange> airlineInitiatedChanges) voidsetAvailableActions(List<Order1.AvailableActionsEnum> availableActions) voidsetBaseAmount(String baseAmount) voidsetBaseCurrency(String baseCurrency) voidsetBookingReference(String bookingReference) voidsetCancelledAt(OffsetDateTime cancelledAt) voidsetChanges(List<OrderChange> changes) voidsetConditions(OrderConditions1 conditions) voidsetContent(Order1.ContentEnum content) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDocuments(List<OrderDocument> documents) voidvoidsetLiveMode(Boolean liveMode) voidsetMetadata(Object metadata) voidvoidsetPassengers(List<OrderPassenger> passengers) voidsetPaymentStatus(OrderPaymentStatus paymentStatus) voidsetServices(List<OrderService> services) voidsetSlices(List<OrderSlice> slices) voidsetSyncedAt(OffsetDateTime syncedAt) voidsetTaxAmount(String taxAmount) voidsetTaxCurrency(String taxCurrency) voidsetTotalAmount(String totalAmount) voidsetTotalCurrency(String totalCurrency) slices(List<OrderSlice> slices) syncedAt(OffsetDateTime syncedAt) taxCurrency(String taxCurrency) toString()totalAmount(String totalAmount) totalCurrency(String totalCurrency)
-
Field Details
-
JSON_PROPERTY_AIRLINE_INITIATED_CHANGES
- See Also:
-
JSON_PROPERTY_AVAILABLE_ACTIONS
- See Also:
-
JSON_PROPERTY_BASE_AMOUNT
- See Also:
-
JSON_PROPERTY_BASE_CURRENCY
- See Also:
-
JSON_PROPERTY_BOOKING_REFERENCE
- See Also:
-
JSON_PROPERTY_CANCELLED_AT
- See Also:
-
JSON_PROPERTY_CHANGES
- See Also:
-
JSON_PROPERTY_CONDITIONS
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_DOCUMENTS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LIVE_MODE
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_OWNER
- See Also:
-
JSON_PROPERTY_PASSENGERS
- See Also:
-
JSON_PROPERTY_PAYMENT_STATUS
- See Also:
-
JSON_PROPERTY_SERVICES
- See Also:
-
JSON_PROPERTY_SLICES
- See Also:
-
JSON_PROPERTY_SYNCED_AT
- See Also:
-
JSON_PROPERTY_TAX_AMOUNT
- See Also:
-
JSON_PROPERTY_TAX_CURRENCY
- See Also:
-
JSON_PROPERTY_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_TOTAL_CURRENCY
- See Also:
-
-
Constructor Details
-
Order1
public Order1()
-
-
Method Details
-
airlineInitiatedChanges
-
addAirlineInitiatedChangesItem
-
getAirlineInitiatedChanges
@Nonnull @NotNull @Valid public @NotNull @Valid List<AirlineInitiatedChange> getAirlineInitiatedChanges()The airline-initiated changes for this Order- Returns:
- airlineInitiatedChanges
-
setAirlineInitiatedChanges
-
availableActions
-
addAvailableActionsItem
-
getAvailableActions
The available actions for this __Order__- Returns:
- availableActions
-
setAvailableActions
-
baseAmount
-
getBaseAmount
The base price of the order for all flights and services booked, excluding taxes- Returns:
- baseAmount
-
setBaseAmount
-
baseCurrency
-
getBaseCurrency
The currency of the `base_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:
- baseCurrency
-
setBaseCurrency
-
bookingReference
-
getBookingReference
The airline's reference for the order, sometimes known as a \"passenger name record\" (PNR) or \"record locator\". Your customers can use this to check in and manage their booking on the airline's website. Usually, this is made up of six alphanumeric characters, but airlines can have their own formats (for example, easyJet's booking references are 7 alphanumeric characters long and LATAM's references are made up of 13 alphanumeric characters beginning with `LA`.)- Returns:
- bookingReference
-
setBookingReference
-
cancelledAt
-
getCancelledAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order was cancelled, if it has been cancelled- Returns:
- cancelledAt
-
setCancelledAt
-
changes
-
addChangesItem
-
getChanges
The passenger-initiated changes for this Order- Returns:
- changes
-
setChanges
-
conditions
-
getConditions
Get conditions- Returns:
- conditions
-
setConditions
-
content
-
getContent
Whether the __Order__ is Self-Managed or Managed- Returns:
- content
-
setContent
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order was created- Returns:
- createdAt
-
setCreatedAt
-
documents
-
addDocumentsItem
-
getDocuments
The documents issued for this order- Returns:
- documents
-
setDocuments
-
id
-
getId
Duffel's unique identifier for the order- Returns:
- id
-
setId
-
liveMode
-
getLiveMode
Whether the order was created in live mode. This field will be set to `true` if the order was created in live mode, or `false` if it was created in test mode.- Returns:
- liveMode
-
setLiveMode
-
metadata
-
getMetadata
Metadata contains a set of key-value pairs that you can attach to an object. It can be useful for storing additional information about the object, in a structured format. Duffel does not use this information. You should not store sensitive information in this field.- Returns:
- metadata
-
setMetadata
-
owner
-
getOwner
Get owner- Returns:
- owner
-
setOwner
-
passengers
-
addPassengersItem
-
getPassengers
The passengers who are travelling- Returns:
- passengers
-
setPassengers
-
paymentStatus
-
getPaymentStatus
Get paymentStatus- Returns:
- paymentStatus
-
setPaymentStatus
-
services
-
addServicesItem
-
getServices
The services booked along with this order- Returns:
- services
-
setServices
-
slices
-
addSlicesItem
-
getSlices
The [slices](/docs/api/overview/key-principles) that make up the itinerary of this order. One-way journeys can be expressed using one slice, whereas return trips will need two.- Returns:
- slices
-
setSlices
-
syncedAt
-
getSyncedAt
Airlines are always the source of truth for orders. The orders returned in the Duffel API are a view of those orders. This field is the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Order__ was last synced with the airline. If this datetime is in the last minute you can consider the order up to date.- Returns:
- syncedAt
-
setSyncedAt
-
taxAmount
-
getTaxAmount
The amount of tax payable on the order for all the flights booked- Returns:
- taxAmount
-
setTaxAmount
-
taxCurrency
-
getTaxCurrency
The currency of the `tax_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:
- taxCurrency
-
setTaxCurrency
-
totalAmount
-
getTotalAmount
The total price of the order for all the flights and services booked, 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
-
equals
-
hashCode
public int hashCode() -
toString
-