Package com.duffel.sdk.model
Class PaymentIntent3
java.lang.Object
com.duffel.sdk.model.PaymentIntent3
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]")
public class PaymentIntent3
extends Object
A __Payment Intent__ is used to collect and capture a payment from a customer to top-up your __Balance__ and then pay for an __Offer__, __Order__, or __Order Change Offer__. You're able to include markup here.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe card network in which the __Payment Intent__ was processed on.static enumThe status of this Payment Intent -
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 Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRefundsItem(Refund1 refundsItem) cardCountryCode(String cardCountryCode) cardLastFourDigits(String cardLastFourDigits) cardNetwork(PaymentIntent3.CardNetworkEnum cardNetwork) clientToken(String clientToken) confirmedAt(OffsetDateTime confirmedAt) createdAt(OffsetDateTime createdAt) booleanfeesAmount(String feesAmount) feesCurrency(String feesCurrency) The amount of the __Payment Intent__ that covers the cost of the flight being sold and any additional markup.The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the country that issued the card used to confirm the __Payment Intent__.org.openapitools.jackson.nullable.JsonNullable<String>The last four digits of the card used to confirm the __Payment Intent__.org.openapitools.jackson.nullable.JsonNullable<String>The card network in which the __Payment Intent__ was processed on.org.openapitools.jackson.nullable.JsonNullable<PaymentIntent3.CardNetworkEnum>This value is used when displaying the payment collection form to securely identify and transmit the values to Duffel.@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was confirmed.org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime>@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was createdThe currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.The amount of the fees to process the __Payment Intent__.org.openapitools.jackson.nullable.JsonNullable<String>The currency of the `fees_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 __Payment Intent__Whether the __Payment Intent__ was created in live mode.The amount of the __Payment Intent__ that was added to the __Balance__.org.openapitools.jackson.nullable.JsonNullable<String>The currency of the `net_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.org.openapitools.jackson.nullable.JsonNullable<String>The __Refunds__ for this __Payment Intent__The status of this Payment Intent@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was updatedinthashCode()netCurrency(String netCurrency) voidvoidsetCardCountryCode(String cardCountryCode) voidsetCardCountryCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardCountryCode) voidsetCardLastFourDigits(String cardLastFourDigits) voidsetCardLastFourDigits_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardLastFourDigits) voidsetCardNetwork(PaymentIntent3.CardNetworkEnum cardNetwork) voidsetCardNetwork_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PaymentIntent3.CardNetworkEnum> cardNetwork) voidsetClientToken(String clientToken) voidsetConfirmedAt(OffsetDateTime confirmedAt) voidsetConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> confirmedAt) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetFeesAmount(String feesAmount) voidsetFeesAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesAmount) voidsetFeesCurrency(String feesCurrency) voidsetFeesCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesCurrency) voidvoidsetLiveMode(Boolean liveMode) voidsetNetAmount(String netAmount) voidsetNetAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netAmount) voidsetNetCurrency(String netCurrency) voidsetNetCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netCurrency) voidsetRefunds(List<Refund1> refunds) voidsetStatus(PaymentIntent3.StatusEnum status) voidsetUpdatedAt(OffsetDateTime updatedAt) status(PaymentIntent3.StatusEnum status) toString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_CARD_COUNTRY_CODE
- See Also:
-
JSON_PROPERTY_CARD_LAST_FOUR_DIGITS
- See Also:
-
JSON_PROPERTY_CARD_NETWORK
- See Also:
-
JSON_PROPERTY_CLIENT_TOKEN
- See Also:
-
JSON_PROPERTY_CONFIRMED_AT
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_FEES_AMOUNT
- See Also:
-
JSON_PROPERTY_FEES_CURRENCY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LIVE_MODE
- See Also:
-
JSON_PROPERTY_NET_AMOUNT
- See Also:
-
JSON_PROPERTY_NET_CURRENCY
- See Also:
-
JSON_PROPERTY_REFUNDS
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
PaymentIntent3
public PaymentIntent3()
-
-
Method Details
-
amount
-
getAmount
The amount of the __Payment Intent__ that covers the cost of the flight being sold and any additional markup. The card payment will be charged this amount.- Returns:
- amount
-
setAmount
-
cardCountryCode
-
getCardCountryCode
The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the country that issued the card used to confirm the __Payment Intent__. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- cardCountryCode
-
getCardCountryCode_JsonNullable
-
setCardCountryCode_JsonNullable
public void setCardCountryCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardCountryCode) -
setCardCountryCode
-
cardLastFourDigits
-
getCardLastFourDigits
The last four digits of the card used to confirm the __Payment Intent__. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- cardLastFourDigits
-
getCardLastFourDigits_JsonNullable
-
setCardLastFourDigits_JsonNullable
public void setCardLastFourDigits_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardLastFourDigits) -
setCardLastFourDigits
-
cardNetwork
-
getCardNetwork
The card network in which the __Payment Intent__ was processed on. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- cardNetwork
-
getCardNetwork_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<PaymentIntent3.CardNetworkEnum> getCardNetwork_JsonNullable() -
setCardNetwork_JsonNullable
public void setCardNetwork_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PaymentIntent3.CardNetworkEnum> cardNetwork) -
setCardNetwork
-
clientToken
-
getClientToken
This value is used when displaying the payment collection form to securely identify and transmit the values to Duffel.- Returns:
- clientToken
-
setClientToken
-
confirmedAt
-
getConfirmedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was confirmed. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- confirmedAt
-
getConfirmedAt_JsonNullable
-
setConfirmedAt_JsonNullable
public void setConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> confirmedAt) -
setConfirmedAt
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ 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. The card payment will be charged in this currency. If it's different to your __Balance__ currency, it will be converted to your __Balance__ currency before the __Balance__ is topped up.- Returns:
- currency
-
setCurrency
-
feesAmount
-
getFeesAmount
The amount of the fees to process the __Payment Intent__. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- feesAmount
-
getFeesAmount_JsonNullable
-
setFeesAmount_JsonNullable
public void setFeesAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesAmount) -
setFeesAmount
-
feesCurrency
-
getFeesCurrency
The currency of the `fees_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. This currency will match your __Balance__ currency. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- feesCurrency
-
getFeesCurrency_JsonNullable
-
setFeesCurrency_JsonNullable
public void setFeesCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesCurrency) -
setFeesCurrency
-
id
-
getId
Duffel's unique identifier for the __Payment Intent__- Returns:
- id
-
setId
-
liveMode
-
getLiveMode
Whether the __Payment Intent__ was created in live mode. This field will be set to `true` if the __Payment Intent__ was created in live mode, or `false` if it was created in test mode.- Returns:
- liveMode
-
setLiveMode
-
netAmount
-
getNetAmount
The amount of the __Payment Intent__ that was added to the __Balance__. It'll be `amount` (in the __Balance__ currency) less the `fees_amount`. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- netAmount
-
getNetAmount_JsonNullable
-
setNetAmount_JsonNullable
public void setNetAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netAmount) -
setNetAmount
-
netCurrency
-
getNetCurrency
The currency of the `net_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. This currency will match your __Balance__ currency. It will be `null` until the __Payment Intent__ is confirmed.- Returns:
- netCurrency
-
getNetCurrency_JsonNullable
-
setNetCurrency_JsonNullable
public void setNetCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netCurrency) -
setNetCurrency
-
refunds
-
addRefundsItem
-
getRefunds
The __Refunds__ for this __Payment Intent__- Returns:
- refunds
-
setRefunds
-
status
-
getStatus
The status of this Payment Intent- Returns:
- status
-
setStatus
-
updatedAt
-
getUpdatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was updated- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-