Package com.duffel.sdk.model
Class Payment
java.lang.Object
com.duffel.sdk.model.Payment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class Payment
extends Object
A payment represents a payment for a booking with an airline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of payment applied to this order. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanThe price of the payment@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the payment was createdThe currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.org.openapitools.jackson.nullable.JsonNullable<String>getId()Duffel's unique identifier for the paymentWhether the __Payment__ was created in live mode.getType()The type of payment applied to this order.inthashCode()voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> currency) voidvoidsetLiveMode(Boolean liveMode) voidsetType(Payment.TypeEnum type) toString()type(Payment.TypeEnum type)
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LIVE_MODE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
Payment
public Payment()
-
-
Method Details
-
amount
-
getAmount
The price of the payment- Returns:
- amount
-
setAmount
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the payment was created- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
The currency of the `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:
- currency
-
getCurrency_JsonNullable
-
setCurrency_JsonNullable
public void setCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> currency) -
setCurrency
-
id
-
getId
Duffel's unique identifier for the payment- Returns:
- id
-
setId
-
liveMode
-
getLiveMode
Whether the __Payment__ was created in live mode. This field will be set to `true` if the __Payment__ was created in live mode, or `false` if it was created in test mode.- Returns:
- liveMode
-
setLiveMode
-
type
-
getType
The type of payment applied to this order. 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
-