Package com.duffel.sdk.model
Class ConfirmOrderChangeRequestDataPayment
java.lang.Object
com.duffel.sdk.model.ConfirmOrderChangeRequestDataPayment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class ConfirmOrderChangeRequestDataPayment
extends Object
The payment details to use to pay for the order change, if there is an amount to be paid. Some order changes may not need this. If the `change_total_amount` is zero or negative, there is no need to pass a `payment` object.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of payment you want to use for the __Order Change__. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull StringThe amount of the payment.@NotNull StringThe currency of the `change_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.getType()The type of payment you want to use for the __Order Change__.inthashCode()voidvoidsetCurrency(String currency) voidtoString()
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
ConfirmOrderChangeRequestDataPayment
public ConfirmOrderChangeRequestDataPayment()
-
-
Method Details
-
amount
-
getAmount
The amount of the payment. This should be the same as the `change_total_amount` of the order change.- Returns:
- amount
-
setAmount
-
currency
-
getCurrency
The currency of the `change_total_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.- Returns:
- currency
-
setCurrency
-
type
-
getType
The type of payment you want to use for the __Order Change__. If you are an IATA agent with your own agreements with airlines, in some cases, you can pay using ARC/BSP cash by specifying `arc_bsp_cash`. Otherwise, you must pay using your Duffel account's balance by specifying `balance`. In [test mode](/docs/api/overview/test-mode), your balance is unlimited. If you're not sure which of these options applies to you, get in touch with the Duffel support team at <help@duffel.com>.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-