Class OrderCancellation

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

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

  • Constructor Details

    • OrderCancellation

      public OrderCancellation()
  • Method Details

    • confirmedAt

      public OrderCancellation confirmedAt(LocalDateTime confirmedAt)
    • getConfirmedAt

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

      public void setConfirmedAt(LocalDateTime confirmedAt)
    • createdAt

      public OrderCancellation 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 cancellation was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(LocalDateTime createdAt)
    • expiresAt

      public OrderCancellation expiresAt(LocalDateTime expiresAt)
    • getExpiresAt

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

      public void setExpiresAt(LocalDateTime expiresAt)
    • id

      public OrderCancellation id(String id)
    • getId

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

      public void setId(String id)
    • liveMode

      public OrderCancellation liveMode(Boolean liveMode)
    • getLiveMode

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

      public void setLiveMode(Boolean liveMode)
    • orderId

      public OrderCancellation orderId(String orderId)
    • getOrderId

      @Nonnull @NotNull public @NotNull String getOrderId()
      Duffel's unique identifier for the order
      Returns:
      orderId
    • setOrderId

      public void setOrderId(String orderId)
    • refundAmount

      public OrderCancellation refundAmount(String refundAmount)
    • getRefundAmount

      @Nonnull @NotNull public @NotNull String getRefundAmount()
      The amount that will be returned to the original payment method if the order is cancelled, determined according to the fare conditions. This may be `0.00` if the fare is non-refundable. It will include the refund amount of the flights and the services booked.
      Returns:
      refundAmount
    • setRefundAmount

      public void setRefundAmount(String refundAmount)
    • refundCurrency

      public OrderCancellation refundCurrency(String refundCurrency)
    • getRefundCurrency

      @Nonnull @NotNull public @NotNull String getRefundCurrency()
      The currency of the `refund_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). For `hold` orders that are awaiting payment, the refund amount will always be 0.00.
      Returns:
      refundCurrency
    • setRefundCurrency

      public void setRefundCurrency(String refundCurrency)
    • refundTo

    • getRefundTo

      @Nonnull @NotNull public @NotNull OrderCancellation.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(OrderCancellation.RefundToEnum refundTo)
    • 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