Class OrderChange

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class OrderChange extends Object
An order change represents alterations to an existing order with an airline
  • Field Details

  • Constructor Details

    • OrderChange

      public OrderChange()
  • Method Details

    • changeTotalAmount

      public OrderChange changeTotalAmount(String changeTotalAmount)
    • getChangeTotalAmount

      @Nullable public String getChangeTotalAmount()
      The amount that will be charged or refunded, determined according to the fare conditions. A negative value will reflect a refund.
      Returns:
      changeTotalAmount
    • setChangeTotalAmount

      public void setChangeTotalAmount(String changeTotalAmount)
    • changeTotalCurrency

      public OrderChange changeTotalCurrency(String changeTotalCurrency)
    • getChangeTotalCurrency

      @Nullable public String getChangeTotalCurrency()
      The currency of the `change_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:
      changeTotalCurrency
    • setChangeTotalCurrency

      public void setChangeTotalCurrency(String changeTotalCurrency)
    • confirmedAt

      public OrderChange confirmedAt(OffsetDateTime confirmedAt)
    • getConfirmedAt

      @Nullable @Valid public @Valid OffsetDateTime getConfirmedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime that indicates when the order change was confirmed
      Returns:
      confirmedAt
    • getConfirmedAt_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getConfirmedAt_JsonNullable()
    • setConfirmedAt_JsonNullable

      public void setConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> confirmedAt)
    • setConfirmedAt

      public void setConfirmedAt(OffsetDateTime confirmedAt)
    • createdAt

      public OrderChange createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • expiresAt

      public OrderChange expiresAt(OffsetDateTime expiresAt)
    • getExpiresAt

      @Nullable @Valid public @Valid OffsetDateTime getExpiresAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime by which this change must be confirmed
      Returns:
      expiresAt
    • setExpiresAt

      public void setExpiresAt(OffsetDateTime expiresAt)
    • id

      public OrderChange id(String id)
    • getId

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

      public void setId(String id)
    • liveMode

      public OrderChange liveMode(Boolean liveMode)
    • getLiveMode

      @Nullable public Boolean getLiveMode()
      Whether the order change was created in live mode. This field will be set to `true` if the order change was created in live mode, or `false` if it was created in test mode.
      Returns:
      liveMode
    • setLiveMode

      public void setLiveMode(Boolean liveMode)
    • newTotalAmount

      public OrderChange newTotalAmount(String newTotalAmount)
    • getNewTotalAmount

      @Nullable public String getNewTotalAmount()
      The total price of the order for all the flights and services booked, including taxes, once the change is confirmed.
      Returns:
      newTotalAmount
    • setNewTotalAmount

      public void setNewTotalAmount(String newTotalAmount)
    • newTotalCurrency

      public OrderChange newTotalCurrency(String newTotalCurrency)
    • getNewTotalCurrency

      @Nullable public String getNewTotalCurrency()
      The currency of the `new_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:
      newTotalCurrency
    • setNewTotalCurrency

      public void setNewTotalCurrency(String newTotalCurrency)
    • orderId

      public OrderChange orderId(String orderId)
    • getOrderId

      @Nullable public String getOrderId()
      Duffel's unique identifier for the order which is being changed
      Returns:
      orderId
    • setOrderId

      public void setOrderId(String orderId)
    • penaltyTotalAmount

      public OrderChange penaltyTotalAmount(String penaltyTotalAmount)
    • getPenaltyTotalAmount

      @Nullable public String getPenaltyTotalAmount()
      The amount charged by the airline for making this change.
      Returns:
      penaltyTotalAmount
    • setPenaltyTotalAmount

      public void setPenaltyTotalAmount(String penaltyTotalAmount)
    • penaltyTotalCurrency

      public OrderChange penaltyTotalCurrency(String penaltyTotalCurrency)
    • getPenaltyTotalCurrency

      @Nullable public String getPenaltyTotalCurrency()
      The currency of the `penalty_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:
      penaltyTotalCurrency
    • setPenaltyTotalCurrency

      public void setPenaltyTotalCurrency(String penaltyTotalCurrency)
    • refundTo

      public OrderChange refundTo(OrderChange.RefundToEnum refundTo)
    • getRefundTo

      @Nullable public OrderChange.RefundToEnum getRefundTo()
      Where the refund, once confirmed, will be sent. Refunds are indicated by a negative `change_total_amount`. If the change does not require a refund, this field will be `null`. `original_form_of_payment` refers to the form of payment used to create the order.
      Returns:
      refundTo
    • getRefundTo_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<OrderChange.RefundToEnum> getRefundTo_JsonNullable()
    • setRefundTo_JsonNullable

      public void setRefundTo_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderChange.RefundToEnum> refundTo)
    • setRefundTo

      public void setRefundTo(OrderChange.RefundToEnum refundTo)
    • slices

      public OrderChange slices(OrderChangeSlices slices)
    • getSlices

      @Nullable @Valid public @Valid OrderChangeSlices getSlices()
      Get slices
      Returns:
      slices
    • setSlices

      public void setSlices(OrderChangeSlices slices)
    • 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