Class Refund

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-08-28T15:13:42.592945+07:00[Asia/Bangkok]") public class Refund extends Object
A __Refund__ is used to refund money to a customer for part or all of a __Payment Intent__. You can issue multiple __Refund__s from the same __Payment Intent__.
  • Field Details

  • Constructor Details

    • Refund

      public Refund()
  • Method Details

    • amount

      public Refund amount(String amount)
    • getAmount

      @Nullable public String getAmount()
      The amount of the __Payment Intent__ that will be refunded to the customer
      Returns:
      amount
    • setAmount

      public void setAmount(String amount)
    • arrival

      public Refund arrival(String arrival)
    • getArrival

      @Nullable public String getArrival()
      When the refund is expected to arrive in the **destination**
      Returns:
      arrival
    • setArrival

      public void setArrival(String arrival)
    • createdAt

      public Refund createdAt(OffsetDateTime createdAt)
    • getCreatedAt

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

      public void setCreatedAt(OffsetDateTime createdAt)
    • currency

      public Refund 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. It will always match the currency of the __Payment Intent__.
      Returns:
      currency
    • setCurrency

      public void setCurrency(String currency)
    • destination

      public Refund destination(Refund.DestinationEnum destination)
    • getDestination

      @Nullable public Refund.DestinationEnum getDestination()
      Where the __Refund__ amount will be sent to
      Returns:
      destination
    • setDestination

      public void setDestination(Refund.DestinationEnum destination)
    • id

      public Refund id(String id)
    • getId

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

      public void setId(String id)
    • liveMode

      public Refund liveMode(Boolean liveMode)
    • getLiveMode

      @Nullable public Boolean getLiveMode()
      Whether the __Refund__ was created in live mode. This field will be set to `true` if the __Refund__ was created in live mode, or `false` if it was created in test mode.
      Returns:
      liveMode
    • setLiveMode

      public void setLiveMode(Boolean liveMode)
    • netAmount

      public Refund netAmount(String netAmount)
    • getNetAmount

      @Nullable public String getNetAmount()
      The amount deducted from your __Balance__ to cover the __Refund__ `amount`
      Returns:
      netAmount
    • setNetAmount

      public void setNetAmount(String netAmount)
    • netCurrency

      public Refund 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.
      Returns:
      netCurrency
    • setNetCurrency

      public void setNetCurrency(String netCurrency)
    • paymentIntentId

      public Refund paymentIntentId(String paymentIntentId)
    • getPaymentIntentId

      @Nullable public String getPaymentIntentId()
      Duffel's unique identifier for the __Payment Intent__ that the __Refund__ is for
      Returns:
      paymentIntentId
    • setPaymentIntentId

      public void setPaymentIntentId(String paymentIntentId)
    • status

      public Refund status(Refund.StatusEnum status)
    • getStatus

      @Nullable public Refund.StatusEnum getStatus()
      The status of the __Refund__. **Succeeded**: The refund is on its way to the **destination**. **Pending**: The __Refund__ could not be processed immediately, and is pending processing. **Failed**: A refund can fail if the customer’s bank or card issuer has been unable to process it correctly (e.g., a closed bank account or a problem with the card). The bank returns the refunded amount to us and we add it back to your __Balance__. This process can take up to 30 days from the post date.
      Returns:
      status
    • setStatus

      public void setStatus(Refund.StatusEnum status)
    • updatedAt

      public Refund updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable @Valid public @Valid OffsetDateTime getUpdatedAt()
      The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Refund__ 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