Package com.duffel.sdk.model
Class Refund1
java.lang.Object
com.duffel.sdk.model.Refund1
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-08-28T15:18:14.926970+07:00[Asia/Bangkok]")
public class Refund1
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__.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhere the __Refund__ amount will be sent tostatic enumThe status of the __Refund__. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) destination(Refund1.DestinationEnum destination) booleanThe amount of the __Payment Intent__ that will be refunded to the customerWhen the refund is expected to arrive in the **destination**@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Refund__ was createdThe currency of the `amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.Where the __Refund__ amount will be sent togetId()Duffel's unique identifier for the __Refund__Whether the __Refund__ was created in live mode.The amount deducted from your __Balance__ to cover the __Refund__ `amount`The currency of the `net_amount`, as an [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code.Duffel's unique identifier for the __Payment Intent__ that the __Refund__ is forThe status of the __Refund__.@Valid OffsetDateTimeThe [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Refund__ was updatedinthashCode()netCurrency(String netCurrency) paymentIntentId(String paymentIntentId) voidvoidsetArrival(String arrival) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetDestination(Refund1.DestinationEnum destination) voidvoidsetLiveMode(Boolean liveMode) voidsetNetAmount(String netAmount) voidsetNetCurrency(String netCurrency) voidsetPaymentIntentId(String paymentIntentId) voidsetStatus(Refund1.StatusEnum status) voidsetUpdatedAt(OffsetDateTime updatedAt) status(Refund1.StatusEnum status) toString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_ARRIVAL
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CURRENCY
- See Also:
-
JSON_PROPERTY_DESTINATION
- 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_PAYMENT_INTENT_ID
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
-
Constructor Details
-
Refund1
public Refund1()
-
-
Method Details
-
amount
-
getAmount
The amount of the __Payment Intent__ that will be refunded to the customer- Returns:
- amount
-
setAmount
-
arrival
-
getArrival
When the refund is expected to arrive in the **destination**- Returns:
- arrival
-
setArrival
-
createdAt
-
getCreatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Refund__ 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 always match the currency of the __Payment Intent__.- Returns:
- currency
-
setCurrency
-
destination
-
getDestination
Where the __Refund__ amount will be sent to- Returns:
- destination
-
setDestination
-
id
-
getId
Duffel's unique identifier for the __Refund__- Returns:
- id
-
setId
-
liveMode
-
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
-
netAmount
-
getNetAmount
The amount deducted from your __Balance__ to cover the __Refund__ `amount`- Returns:
- 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.- Returns:
- netCurrency
-
setNetCurrency
-
paymentIntentId
-
getPaymentIntentId
Duffel's unique identifier for the __Payment Intent__ that the __Refund__ is for- Returns:
- paymentIntentId
-
setPaymentIntentId
-
status
-
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
-
updatedAt
-
getUpdatedAt
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime at which the __Refund__ was updated- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-