Package com.duffel.sdk.model
Class AirlineInitiatedChange
java.lang.Object
com.duffel.sdk.model.AirlineInitiatedChange
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class AirlineInitiatedChange
extends Object
AirlineInitiatedChange
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe action taken in response to this airline-initiated change.static enumGets or Sets availableActions -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionTaken(AirlineInitiatedChange.ActionTakenEnum actionTaken) actionTakenAt(String actionTakenAt) addAddedItem(OfferSlice addedItem) addAvailableActionsItem(AirlineInitiatedChange.AvailableActionsEnum availableActionsItem) added(List<OfferSlice> added) addRemovedItem(OfferSlice removedItem) addTravelAgentTicketItem(TravelAgentTicket travelAgentTicketItem) availableActions(List<AirlineInitiatedChange.AvailableActionsEnum> availableActions) createdAt(LocalDateTime createdAt) booleanThe action taken in response to this airline-initiated change.@NotNull StringThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which an action was taken@NotNull @Valid List<OfferSlice> getAdded()List of updated [slices and segments](/docs/api/orders/schema#orders-schema-slices) following the change.The available actions you can take on this Airline-Initiated Change through our API.The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which we detected the airline-initiated change@NotNull StringgetId()Duffel's unique identifier for the airline-initiated change@NotNull StringDuffel's unique identifier for the order@NotNull @Valid List<OfferSlice> List of [slices and segments](/docs/api/orders/schema#orders-schema-slices) as they were before the change.@NotNull @Valid List<TravelAgentTicket> The associated Travel Agent Ticket, if any, for this Airline-Initiated Change.The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the airline-initiated change was last updatedinthashCode()removed(List<OfferSlice> removed) voidsetActionTaken(AirlineInitiatedChange.ActionTakenEnum actionTaken) voidsetActionTakenAt(String actionTakenAt) voidsetAdded(List<OfferSlice> added) voidsetAvailableActions(List<AirlineInitiatedChange.AvailableActionsEnum> availableActions) voidsetCreatedAt(LocalDateTime createdAt) voidvoidsetOrderId(String orderId) voidsetRemoved(List<OfferSlice> removed) voidsetTravelAgentTicket(List<TravelAgentTicket> travelAgentTicket) voidsetUpdatedAt(LocalDateTime updatedAt) toString()travelAgentTicket(List<TravelAgentTicket> travelAgentTicket) updatedAt(LocalDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_ACTION_TAKEN
- See Also:
-
JSON_PROPERTY_ACTION_TAKEN_AT
- See Also:
-
JSON_PROPERTY_ADDED
- See Also:
-
JSON_PROPERTY_AVAILABLE_ACTIONS
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_ORDER_ID
- See Also:
-
JSON_PROPERTY_REMOVED
- See Also:
-
JSON_PROPERTY_TRAVEL_AGENT_TICKET
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
AirlineInitiatedChange
public AirlineInitiatedChange()
-
-
Method Details
-
actionTaken
-
getActionTaken
The action taken in response to this airline-initiated change. Accepted, cancelled and changed reflect your action in accepting the change, cancelling the order or changing the order respectively.- Returns:
- actionTaken
-
setActionTaken
-
actionTakenAt
-
getActionTakenAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which an action was taken- Returns:
- actionTakenAt
-
setActionTakenAt
-
added
-
addAddedItem
-
getAdded
List of updated [slices and segments](/docs/api/orders/schema#orders-schema-slices) following the change. These slices and segments may each have a new ID as a result of the changes.- Returns:
- added
-
setAdded
-
availableActions
public AirlineInitiatedChange availableActions(List<AirlineInitiatedChange.AvailableActionsEnum> availableActions) -
addAvailableActionsItem
public AirlineInitiatedChange addAvailableActionsItem(AirlineInitiatedChange.AvailableActionsEnum availableActionsItem) -
getAvailableActions
@Nonnull @NotNull public @NotNull List<AirlineInitiatedChange.AvailableActionsEnum> getAvailableActions()The available actions you can take on this Airline-Initiated Change through our API. `\"update\"` means that you can use the update endpoint for an Airline-Initiated Change. Possible values in array: `\"accept\"`, `\"cancel\"`, `\"change\"`, or `\"update\"`- Returns:
- availableActions
-
setAvailableActions
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which we detected the airline-initiated change- Returns:
- createdAt
-
setCreatedAt
-
id
-
getId
Duffel's unique identifier for the airline-initiated change- Returns:
- id
-
setId
-
orderId
-
getOrderId
Duffel's unique identifier for the order- Returns:
- orderId
-
setOrderId
-
removed
-
addRemovedItem
-
getRemoved
List of [slices and segments](/docs/api/orders/schema#orders-schema-slices) as they were before the change.- Returns:
- removed
-
setRemoved
-
travelAgentTicket
-
addTravelAgentTicketItem
-
getTravelAgentTicket
The associated Travel Agent Ticket, if any, for this Airline-Initiated Change. This value will be present for Airline-Initiated changes that take some time to be processed.- Returns:
- travelAgentTicket
-
setTravelAgentTicket
-
updatedAt
-
getUpdatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the airline-initiated change was last updated- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-