Class OrderChangeOffer

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class OrderChangeOffer extends Object
An order change offer represents flights that can be used to replace a slice in an existing paid order
  • Field Details

  • Constructor Details

    • OrderChangeOffer

      public OrderChangeOffer()
  • Method Details

    • changeTotalAmount

      public OrderChangeOffer changeTotalAmount(String changeTotalAmount)
    • getChangeTotalAmount

      @Nullable public String getChangeTotalAmount()
      The amount that will be charged or returned to the original payment method if refunded, determined according to the fare conditions. This may be negative to reflect a refund.
      Returns:
      changeTotalAmount
    • setChangeTotalAmount

      public void setChangeTotalAmount(String changeTotalAmount)
    • changeTotalCurrency

      public OrderChangeOffer 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
    • getChangeTotalCurrency_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getChangeTotalCurrency_JsonNullable()
    • setChangeTotalCurrency_JsonNullable

      public void setChangeTotalCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> changeTotalCurrency)
    • setChangeTotalCurrency

      public void setChangeTotalCurrency(String changeTotalCurrency)
    • createdAt

      public OrderChangeOffer createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • expiresAt

      public OrderChangeOffer expiresAt(OffsetDateTime expiresAt)
    • getExpiresAt

      @Nullable @Valid public @Valid OffsetDateTime getExpiresAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer will expire and no longer be usable to create an order
      Returns:
      expiresAt
    • setExpiresAt

      public void setExpiresAt(OffsetDateTime expiresAt)
    • id

      public OrderChangeOffer id(String id)
    • getId

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

      public void setId(String id)
    • liveMode

      public OrderChangeOffer liveMode(Boolean liveMode)
    • getLiveMode

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

      public void setLiveMode(Boolean liveMode)
    • newTotalAmount

      public OrderChangeOffer newTotalAmount(String newTotalAmount)
    • getNewTotalAmount

      @Nullable public String getNewTotalAmount()
      The price of this offer if it was newly purchased
      Returns:
      newTotalAmount
    • getNewTotalAmount_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getNewTotalAmount_JsonNullable()
    • setNewTotalAmount_JsonNullable

      public void setNewTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> newTotalAmount)
    • setNewTotalAmount

      public void setNewTotalAmount(String newTotalAmount)
    • newTotalCurrency

      public OrderChangeOffer 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)
    • orderChangeId

      public OrderChangeOffer orderChangeId(String orderChangeId)
    • getOrderChangeId

      @Nullable public String getOrderChangeId()
      The ID for an __order change__ if one has already been created from this __order change offer__
      Returns:
      orderChangeId
    • setOrderChangeId

      public void setOrderChangeId(String orderChangeId)
    • penaltyTotalAmount

      public OrderChangeOffer penaltyTotalAmount(String penaltyTotalAmount)
    • getPenaltyTotalAmount

      @Nullable public String getPenaltyTotalAmount()
      The penalty imposed by the airline for making this change
      Returns:
      penaltyTotalAmount
    • getPenaltyTotalAmount_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getPenaltyTotalAmount_JsonNullable()
    • setPenaltyTotalAmount_JsonNullable

      public void setPenaltyTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyTotalAmount)
    • setPenaltyTotalAmount

      public void setPenaltyTotalAmount(String penaltyTotalAmount)
    • penaltyTotalCurrency

      public OrderChangeOffer 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
    • getPenaltyTotalCurrency_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<String> getPenaltyTotalCurrency_JsonNullable()
    • setPenaltyTotalCurrency_JsonNullable

      public void setPenaltyTotalCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyTotalCurrency)
    • setPenaltyTotalCurrency

      public void setPenaltyTotalCurrency(String penaltyTotalCurrency)
    • refundTo

      public OrderChangeOffer refundTo(OrderChangeOffer.RefundToEnum refundTo)
    • getRefundTo

      @Nullable public OrderChangeOffer.RefundToEnum getRefundTo()
      Where the refund, once confirmed, will be sent. `card` is currently a restricted feature. `awaiting_payment` is for pay later orders where no payment has been made yet.
      Returns:
      refundTo
    • setRefundTo

      public void setRefundTo(OrderChangeOffer.RefundToEnum refundTo)
    • slices

      public OrderChangeOffer slices(OrderChangeSlices slices)
    • getSlices

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

      public void setSlices(OrderChangeSlices slices)
    • updatedAt

      public OrderChangeOffer updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable @Valid public @Valid OffsetDateTime getUpdatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer was last updated
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • 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