Package com.duffel.sdk.model
Class OrderChange
java.lang.Object
com.duffel.sdk.model.OrderChange
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T15:26:22.356688490+07:00[Asia/Bangkok]")
public class OrderChange
extends Object
An order change represents alterations to an existing order with an airline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere the refund, once confirmed, will be sent. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeTotalAmount(String changeTotalAmount) changeTotalCurrency(String changeTotalCurrency) confirmedAt(LocalDateTime confirmedAt) createdAt(LocalDateTime createdAt) booleanexpiresAt(LocalDateTime expiresAt) The amount that will be charged or refunded, determined according to the fare conditions.The currency of the `change_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime that indicates when the order change was confirmedorg.openapitools.jackson.nullable.JsonNullable<LocalDateTime> The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was createdThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime by which this change must be confirmedgetId()Duffel's unique identifier for the order changeWhether the order change was created in live mode.The total price of the order for all the flights and services booked, including taxes, once the change is confirmed.The currency of the `new_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.Duffel's unique identifier for the order which is being changedThe amount charged by the airline for making this change.The currency of the `penalty_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.Where the refund, once confirmed, will be sent.org.openapitools.jackson.nullable.JsonNullable<OrderChange.RefundToEnum> @Valid OrderChangeSlicesGet slicesinthashCode()newTotalAmount(String newTotalAmount) newTotalCurrency(String newTotalCurrency) penaltyTotalAmount(String penaltyTotalAmount) penaltyTotalCurrency(String penaltyTotalCurrency) refundTo(OrderChange.RefundToEnum refundTo) voidsetChangeTotalAmount(String changeTotalAmount) voidsetChangeTotalCurrency(String changeTotalCurrency) voidsetConfirmedAt(LocalDateTime confirmedAt) voidsetConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<LocalDateTime> confirmedAt) voidsetCreatedAt(LocalDateTime createdAt) voidsetExpiresAt(LocalDateTime expiresAt) voidvoidsetLiveMode(Boolean liveMode) voidsetNewTotalAmount(String newTotalAmount) voidsetNewTotalCurrency(String newTotalCurrency) voidsetOrderId(String orderId) voidsetPenaltyTotalAmount(String penaltyTotalAmount) voidsetPenaltyTotalCurrency(String penaltyTotalCurrency) voidsetRefundTo(OrderChange.RefundToEnum refundTo) voidsetRefundTo_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OrderChange.RefundToEnum> refundTo) voidsetSlices(OrderChangeSlices slices) slices(OrderChangeSlices slices) toString()
-
Field Details
-
JSON_PROPERTY_CHANGE_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_CHANGE_TOTAL_CURRENCY
- See Also:
-
JSON_PROPERTY_CONFIRMED_AT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_EXPIRES_AT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LIVE_MODE
- See Also:
-
JSON_PROPERTY_NEW_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_NEW_TOTAL_CURRENCY
- See Also:
-
JSON_PROPERTY_ORDER_ID
- See Also:
-
JSON_PROPERTY_PENALTY_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_PENALTY_TOTAL_CURRENCY
- See Also:
-
JSON_PROPERTY_REFUND_TO
- See Also:
-
JSON_PROPERTY_SLICES
- See Also:
-
-
Constructor Details
-
OrderChange
public OrderChange()
-
-
Method Details
-
changeTotalAmount
-
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
-
changeTotalCurrency
-
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
-
confirmedAt
-
getConfirmedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime that indicates when the order change was confirmed- Returns:
- confirmedAt
-
getConfirmedAt_JsonNullable
-
setConfirmedAt_JsonNullable
public void setConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<LocalDateTime> confirmedAt) -
setConfirmedAt
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the order change was created- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
getExpiresAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime by which this change must be confirmed- Returns:
- expiresAt
-
setExpiresAt
-
id
-
getId
Duffel's unique identifier for the order change- Returns:
- id
-
setId
-
liveMode
-
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
-
newTotalAmount
-
getNewTotalAmount
The total price of the order for all the flights and services booked, including taxes, once the change is confirmed.- Returns:
- newTotalAmount
-
setNewTotalAmount
-
newTotalCurrency
-
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
-
orderId
-
getOrderId
Duffel's unique identifier for the order which is being changed- Returns:
- orderId
-
setOrderId
-
penaltyTotalAmount
-
getPenaltyTotalAmount
The amount charged by the airline for making this change.- Returns:
- penaltyTotalAmount
-
setPenaltyTotalAmount
-
penaltyTotalCurrency
-
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
-
refundTo
-
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
-
slices
-
getSlices
Get slices- Returns:
- slices
-
setSlices
-
equals
-
hashCode
public int hashCode() -
toString
-