Class PaymentIntent1

java.lang.Object
com.duffel.sdk.model.PaymentIntent1

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]") public class PaymentIntent1 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.
  • Field Details

  • Constructor Details

    • PaymentIntent1

      public PaymentIntent1()
  • Method Details

    • amount

      public PaymentIntent1 amount(String amount)
    • getAmount

      @Nullable public String 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

      public void setAmount(String amount)
    • cardCountryCode

      public PaymentIntent1 cardCountryCode(String cardCountryCode)
    • getCardCountryCode

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getCardCountryCode_JsonNullable()
    • setCardCountryCode_JsonNullable

      public void setCardCountryCode_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardCountryCode)
    • setCardCountryCode

      public void setCardCountryCode(String cardCountryCode)
    • cardLastFourDigits

      public PaymentIntent1 cardLastFourDigits(String cardLastFourDigits)
    • getCardLastFourDigits

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getCardLastFourDigits_JsonNullable()
    • setCardLastFourDigits_JsonNullable

      public void setCardLastFourDigits_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> cardLastFourDigits)
    • setCardLastFourDigits

      public void setCardLastFourDigits(String cardLastFourDigits)
    • cardNetwork

      public PaymentIntent1 cardNetwork(PaymentIntent1.CardNetworkEnum cardNetwork)
    • getCardNetwork

      @Nullable public PaymentIntent1.CardNetworkEnum 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<PaymentIntent1.CardNetworkEnum> getCardNetwork_JsonNullable()
    • setCardNetwork_JsonNullable

      public void setCardNetwork_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<PaymentIntent1.CardNetworkEnum> cardNetwork)
    • setCardNetwork

      public void setCardNetwork(PaymentIntent1.CardNetworkEnum cardNetwork)
    • clientToken

      public PaymentIntent1 clientToken(String clientToken)
    • getClientToken

      @Nullable public String getClientToken()
      This value is used when displaying the payment collection form to securely identify and transmit the values to Duffel.
      Returns:
      clientToken
    • setClientToken

      public void setClientToken(String clientToken)
    • confirmedAt

      public PaymentIntent1 confirmedAt(OffsetDateTime confirmedAt)
    • getConfirmedAt

      @Nullable @Valid public @Valid OffsetDateTime 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

      public org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> getConfirmedAt_JsonNullable()
    • setConfirmedAt_JsonNullable

      public void setConfirmedAt_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<OffsetDateTime> confirmedAt)
    • setConfirmedAt

      public void setConfirmedAt(OffsetDateTime confirmedAt)
    • createdAt

      public PaymentIntent1 createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable @Valid public @Valid OffsetDateTime getCreatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was created
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • currency

      public PaymentIntent1 currency(String currency)
    • getCurrency

      @Nullable public String 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

      public void setCurrency(String currency)
    • feesAmount

      public PaymentIntent1 feesAmount(String feesAmount)
    • getFeesAmount

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getFeesAmount_JsonNullable()
    • setFeesAmount_JsonNullable

      public void setFeesAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesAmount)
    • setFeesAmount

      public void setFeesAmount(String feesAmount)
    • feesCurrency

      public PaymentIntent1 feesCurrency(String feesCurrency)
    • getFeesCurrency

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getFeesCurrency_JsonNullable()
    • setFeesCurrency_JsonNullable

      public void setFeesCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> feesCurrency)
    • setFeesCurrency

      public void setFeesCurrency(String feesCurrency)
    • id

      public PaymentIntent1 id(String id)
    • getId

      @Nullable public String getId()
      Duffel's unique identifier for the __Payment Intent__
      Returns:
      id
    • setId

      public void setId(String id)
    • liveMode

      public PaymentIntent1 liveMode(Boolean liveMode)
    • getLiveMode

      @Nullable public Boolean 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

      public void setLiveMode(Boolean liveMode)
    • netAmount

      public PaymentIntent1 netAmount(String netAmount)
    • getNetAmount

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getNetAmount_JsonNullable()
    • setNetAmount_JsonNullable

      public void setNetAmount_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netAmount)
    • setNetAmount

      public void setNetAmount(String netAmount)
    • netCurrency

      public PaymentIntent1 netCurrency(String netCurrency)
    • getNetCurrency

      @Nullable public String 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

      public org.openapitools.jackson.nullable.JsonNullable<String> getNetCurrency_JsonNullable()
    • setNetCurrency_JsonNullable

      public void setNetCurrency_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> netCurrency)
    • setNetCurrency

      public void setNetCurrency(String netCurrency)
    • refunds

      public PaymentIntent1 refunds(List<Refund1> refunds)
    • addRefundsItem

      public PaymentIntent1 addRefundsItem(Refund1 refundsItem)
    • getRefunds

      @Nullable @Valid public @Valid List<Refund1> getRefunds()
      The __Refunds__ for this __Payment Intent__
      Returns:
      refunds
    • setRefunds

      public void setRefunds(List<Refund1> refunds)
    • status

      public PaymentIntent1 status(PaymentIntent1.StatusEnum status)
    • getStatus

      @Nullable public PaymentIntent1.StatusEnum getStatus()
      The status of this Payment Intent
      Returns:
      status
    • setStatus

      public void setStatus(PaymentIntent1.StatusEnum status)
    • updatedAt

      public PaymentIntent1 updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable @Valid public @Valid OffsetDateTime getUpdatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Payment Intent__ was updated
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object