Package com.duffel.sdk.model
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
-
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) createdAt(OffsetDateTime createdAt) booleanexpiresAt(OffsetDateTime expiresAt) The amount that will be charged or returned to the original payment method if 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.org.openapitools.jackson.nullable.JsonNullable<String>@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer was created@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer will expire and no longer be usable to create an ordergetId()Duffel's unique identifier for the order change offerWhether the order change offer was created in live mode.The price of this offer if it was newly purchasedorg.openapitools.jackson.nullable.JsonNullable<String>The currency of the `new_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.The ID for an __order change__ if one has already been created from this __order change offer__The penalty imposed by the airline for making this changeorg.openapitools.jackson.nullable.JsonNullable<String>The currency of the `penalty_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.org.openapitools.jackson.nullable.JsonNullable<String>Where the refund, once confirmed, will be sent.@Valid OrderChangeSlicesGet slices@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer was last updatedinthashCode()newTotalAmount(String newTotalAmount) newTotalCurrency(String newTotalCurrency) orderChangeId(String orderChangeId) penaltyTotalAmount(String penaltyTotalAmount) penaltyTotalCurrency(String penaltyTotalCurrency) refundTo(OrderChangeOffer.RefundToEnum refundTo) voidsetChangeTotalAmount(String changeTotalAmount) voidsetChangeTotalCurrency(String changeTotalCurrency) voidsetChangeTotalCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> changeTotalCurrency) voidsetCreatedAt(OffsetDateTime createdAt) voidsetExpiresAt(OffsetDateTime expiresAt) voidvoidsetLiveMode(Boolean liveMode) voidsetNewTotalAmount(String newTotalAmount) voidsetNewTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> newTotalAmount) voidsetNewTotalCurrency(String newTotalCurrency) voidsetOrderChangeId(String orderChangeId) voidsetPenaltyTotalAmount(String penaltyTotalAmount) voidsetPenaltyTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyTotalAmount) voidsetPenaltyTotalCurrency(String penaltyTotalCurrency) voidsetPenaltyTotalCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> penaltyTotalCurrency) voidsetRefundTo(OrderChangeOffer.RefundToEnum refundTo) voidsetSlices(OrderChangeSlices slices) voidsetUpdatedAt(OffsetDateTime updatedAt) slices(OrderChangeSlices slices) toString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_CHANGE_TOTAL_AMOUNT
- See Also:
-
JSON_PROPERTY_CHANGE_TOTAL_CURRENCY
- 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_CHANGE_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:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
OrderChangeOffer
public OrderChangeOffer()
-
-
Method Details
-
changeTotalAmount
-
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
-
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
-
getChangeTotalCurrency_JsonNullable
-
setChangeTotalCurrency_JsonNullable
public void setChangeTotalCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> changeTotalCurrency) -
setChangeTotalCurrency
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer was created- Returns:
- createdAt
-
setCreatedAt
-
expiresAt
-
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
-
id
-
getId
Duffel's unique identifier for the order change offer- Returns:
- id
-
setId
-
liveMode
-
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
-
newTotalAmount
-
getNewTotalAmount
The price of this offer if it was newly purchased- Returns:
- newTotalAmount
-
getNewTotalAmount_JsonNullable
-
setNewTotalAmount_JsonNullable
public void setNewTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> 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
-
orderChangeId
-
getOrderChangeId
The ID for an __order change__ if one has already been created from this __order change offer__- Returns:
- orderChangeId
-
setOrderChangeId
-
penaltyTotalAmount
-
getPenaltyTotalAmount
The penalty imposed by the airline for making this change- Returns:
- penaltyTotalAmount
-
getPenaltyTotalAmount_JsonNullable
-
setPenaltyTotalAmount_JsonNullable
public void setPenaltyTotalAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> 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
-
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
-
refundTo
-
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
-
slices
-
getSlices
Get slices- Returns:
- slices
-
setSlices
-
updatedAt
-
getUpdatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the offer was last updated- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-