Class Order1

java.lang.Object
com.duffel.sdk.model.Order1

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]") public class Order1 extends Object
An order represents a booking with an airline
  • Field Details

  • Constructor Details

    • Order1

      public Order1()
  • Method Details

    • airlineInitiatedChanges

      public Order1 airlineInitiatedChanges(List<AirlineInitiatedChange> airlineInitiatedChanges)
    • addAirlineInitiatedChangesItem

      public Order1 addAirlineInitiatedChangesItem(AirlineInitiatedChange airlineInitiatedChangesItem)
    • getAirlineInitiatedChanges

      @Nonnull @NotNull @Valid public @NotNull @Valid List<AirlineInitiatedChange> getAirlineInitiatedChanges()
      The airline-initiated changes for this Order
      Returns:
      airlineInitiatedChanges
    • setAirlineInitiatedChanges

      public void setAirlineInitiatedChanges(List<AirlineInitiatedChange> airlineInitiatedChanges)
    • availableActions

      public Order1 availableActions(List<Order1.AvailableActionsEnum> availableActions)
    • addAvailableActionsItem

      public Order1 addAvailableActionsItem(Order1.AvailableActionsEnum availableActionsItem)
    • getAvailableActions

      @Nullable public List<Order1.AvailableActionsEnum> getAvailableActions()
      The available actions for this __Order__
      Returns:
      availableActions
    • setAvailableActions

      public void setAvailableActions(List<Order1.AvailableActionsEnum> availableActions)
    • baseAmount

      public Order1 baseAmount(String baseAmount)
    • getBaseAmount

      @Nullable @NotNull public @NotNull String getBaseAmount()
      The base price of the order for all flights and services booked, excluding taxes
      Returns:
      baseAmount
    • setBaseAmount

      public void setBaseAmount(String baseAmount)
    • baseCurrency

      public Order1 baseCurrency(String baseCurrency)
    • getBaseCurrency

      @Nullable @NotNull public @NotNull String 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

      public void setBaseCurrency(String baseCurrency)
    • bookingReference

      public Order1 bookingReference(String bookingReference)
    • getBookingReference

      @Nonnull @NotNull public @NotNull String 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

      public void setBookingReference(String bookingReference)
    • cancelledAt

      public Order1 cancelledAt(LocalDateTime cancelledAt)
    • getCancelledAt

      @Nullable @NotNull @Valid public LocalDateTime 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

      public void setCancelledAt(LocalDateTime cancelledAt)
    • changes

      public Order1 changes(List<OrderChange> changes)
    • addChangesItem

      public Order1 addChangesItem(OrderChange changesItem)
    • getChanges

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderChange> getChanges()
      The passenger-initiated changes for this Order
      Returns:
      changes
    • setChanges

      public void setChanges(List<OrderChange> changes)
    • conditions

      public Order1 conditions(OrderConditions1 conditions)
    • getConditions

      @Nonnull @NotNull @Valid public @NotNull @Valid OrderConditions1 getConditions()
      Get conditions
      Returns:
      conditions
    • setConditions

      public void setConditions(OrderConditions1 conditions)
    • content

      public Order1 content(Order1.ContentEnum content)
    • getContent

      @Nullable public Order1.ContentEnum getContent()
      Whether the __Order__ is Self-Managed or Managed
      Returns:
      content
    • setContent

      public void setContent(Order1.ContentEnum content)
    • createdAt

      public Order1 createdAt(LocalDateTime createdAt)
    • getCreatedAt

      @Nonnull @NotNull @Valid public LocalDateTime getCreatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(LocalDateTime createdAt)
    • documents

      public Order1 documents(List<OrderDocument> documents)
    • addDocumentsItem

      public Order1 addDocumentsItem(OrderDocument documentsItem)
    • getDocuments

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderDocument> getDocuments()
      The documents issued for this order
      Returns:
      documents
    • setDocuments

      public void setDocuments(List<OrderDocument> documents)
    • id

      public Order1 id(String id)
    • getId

      @Nonnull @NotNull public @NotNull String getId()
      Duffel's unique identifier for the order
      Returns:
      id
    • setId

      public void setId(String id)
    • liveMode

      public Order1 liveMode(Boolean liveMode)
    • getLiveMode

      @Nonnull @NotNull public @NotNull Boolean 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

      public void setLiveMode(Boolean liveMode)
    • metadata

      public Order1 metadata(Object metadata)
    • getMetadata

      @Nullable @NotNull public @NotNull Object 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

      public void setMetadata(Object metadata)
    • owner

      public Order1 owner(Airline4 owner)
    • getOwner

      @Nonnull @NotNull @Valid public @NotNull @Valid Airline4 getOwner()
      Get owner
      Returns:
      owner
    • setOwner

      public void setOwner(Airline4 owner)
    • passengers

      public Order1 passengers(List<OrderPassenger> passengers)
    • addPassengersItem

      public Order1 addPassengersItem(OrderPassenger passengersItem)
    • getPassengers

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderPassenger> getPassengers()
      The passengers who are travelling
      Returns:
      passengers
    • setPassengers

      public void setPassengers(List<OrderPassenger> passengers)
    • paymentStatus

      public Order1 paymentStatus(OrderPaymentStatus paymentStatus)
    • getPaymentStatus

      @Nonnull @NotNull @Valid public @NotNull @Valid OrderPaymentStatus getPaymentStatus()
      Get paymentStatus
      Returns:
      paymentStatus
    • setPaymentStatus

      public void setPaymentStatus(OrderPaymentStatus paymentStatus)
    • services

      public Order1 services(List<OrderService> services)
    • addServicesItem

      public Order1 addServicesItem(OrderService servicesItem)
    • getServices

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderService> getServices()
      The services booked along with this order
      Returns:
      services
    • setServices

      public void setServices(List<OrderService> services)
    • slices

      public Order1 slices(List<OrderSlice> slices)
    • addSlicesItem

      public Order1 addSlicesItem(OrderSlice slicesItem)
    • getSlices

      @Nonnull @NotNull @Valid public @NotNull @Valid List<OrderSlice> 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

      public void setSlices(List<OrderSlice> slices)
    • syncedAt

      public Order1 syncedAt(LocalDateTime syncedAt)
    • getSyncedAt

      @Nonnull @NotNull @Valid public LocalDateTime 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

      public void setSyncedAt(LocalDateTime syncedAt)
    • taxAmount

      public Order1 taxAmount(String taxAmount)
    • getTaxAmount

      @Nullable @NotNull public @NotNull String getTaxAmount()
      The amount of tax payable on the order for all the flights booked
      Returns:
      taxAmount
    • setTaxAmount

      public void setTaxAmount(String taxAmount)
    • taxCurrency

      public Order1 taxCurrency(String taxCurrency)
    • getTaxCurrency

      @Nullable @NotNull public @NotNull String 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

      public void setTaxCurrency(String taxCurrency)
    • totalAmount

      public Order1 totalAmount(String totalAmount)
    • getTotalAmount

      @Nonnull @NotNull public @NotNull String getTotalAmount()
      The total price of the order for all the flights and services booked, including taxes
      Returns:
      totalAmount
    • setTotalAmount

      public void setTotalAmount(String totalAmount)
    • totalCurrency

      public Order1 totalCurrency(String totalCurrency)
    • getTotalCurrency

      @Nonnull @NotNull public @NotNull String 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

      public void setTotalCurrency(String totalCurrency)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object