Package com.stripe.model.treasury
Class DebitReversal
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.DebitReversal
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
You can reverse some ReceivedDebits
depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a
new object known as a DebitReversal.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static DebitReversal
create
(DebitReversalCreateParams params) Reverses a ReceivedDebit and creates a DebitReversal object.static DebitReversal
create
(DebitReversalCreateParams params, RequestOptions options) Reverses a ReceivedDebit and creates a DebitReversal object.static DebitReversal
Reverses a ReceivedDebit and creates a DebitReversal object.static DebitReversal
create
(Map<String, Object> params, RequestOptions options) Reverses a ReceivedDebit and creates a DebitReversal object.boolean
Amount (in cents) transferred.Time at which the object was created.Three-letter ISO currency code, in lowercase.The FinancialAccount to reverse funds from.A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.getId()
Unique identifier for the object.Other flows linked to a DebitReversal.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.The rails used to reverse the funds.String representing the object's type.The ReceivedDebit being reversed.Status of the DebitReversalGet ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static DebitReversalCollection
list
(DebitReversalListParams params) Returns a list of DebitReversals.static DebitReversalCollection
list
(DebitReversalListParams params, RequestOptions options) Returns a list of DebitReversals.static DebitReversalCollection
Returns a list of DebitReversals.static DebitReversalCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of DebitReversals.static DebitReversal
Retrieves a DebitReversal object.static DebitReversal
retrieve
(String debitReversal, RequestOptions options) Retrieves a DebitReversal object.static DebitReversal
retrieve
(String debitReversal, DebitReversalRetrieveParams params, RequestOptions options) Retrieves a DebitReversal object.static DebitReversal
Retrieves a DebitReversal object.void
Amount (in cents) transferred.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setFinancialAccount
(String financialAccount) The FinancialAccount to reverse funds from.void
setHostedRegulatoryReceiptUrl
(String hostedRegulatoryReceiptUrl) A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.void
Unique identifier for the object.void
setLinkedFlows
(DebitReversal.LinkedFlows linkedFlows) Other flows linked to a DebitReversal.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setNetwork
(String network) The rails used to reverse the funds.void
String representing the object's type.void
setReceivedDebit
(String receivedDebit) The ReceivedDebit being reversed.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
Status of the DebitReversalvoid
setStatusTransitions
(DebitReversal.StatusTransitions statusTransitions) void
setTransaction
(String id) void
setTransactionObject
(Transaction expandableObject) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
DebitReversal
public DebitReversal()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
create
Reverses a ReceivedDebit and creates a DebitReversal object.- Throws:
StripeException
-
create
public static DebitReversal create(Map<String, Object> params, RequestOptions options) throws StripeExceptionReverses a ReceivedDebit and creates a DebitReversal object.- Throws:
StripeException
-
create
Reverses a ReceivedDebit and creates a DebitReversal object.- Throws:
StripeException
-
create
public static DebitReversal create(DebitReversalCreateParams params, RequestOptions options) throws StripeException Reverses a ReceivedDebit and creates a DebitReversal object.- Throws:
StripeException
-
list
Returns a list of DebitReversals.- Throws:
StripeException
-
list
public static DebitReversalCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of DebitReversals.- Throws:
StripeException
-
list
Returns a list of DebitReversals.- Throws:
StripeException
-
list
public static DebitReversalCollection list(DebitReversalListParams params, RequestOptions options) throws StripeException Returns a list of DebitReversals.- Throws:
StripeException
-
retrieve
Retrieves a DebitReversal object.- Throws:
StripeException
-
retrieve
public static DebitReversal retrieve(String debitReversal, RequestOptions options) throws StripeException Retrieves a DebitReversal object.- Throws:
StripeException
-
retrieve
public static DebitReversal retrieve(String debitReversal, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a DebitReversal object.- Throws:
StripeException
-
retrieve
public static DebitReversal retrieve(String debitReversal, DebitReversalRetrieveParams params, RequestOptions options) throws StripeException Retrieves a DebitReversal object.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
Amount (in cents) transferred. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getFinancialAccount
The FinancialAccount to reverse funds from. -
getHostedRegulatoryReceiptUrl
A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. -
getLinkedFlows
Other flows linked to a DebitReversal. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
getNetwork
The rails used to reverse the funds.One of
ach
, orcard
. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.debit_reversal
. -
getReceivedDebit
The ReceivedDebit being reversed. -
getStatus
Status of the DebitReversalOne of
failed
,processing
, orsucceeded
. -
getStatusTransitions
-
setAmount
Amount (in cents) transferred. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setFinancialAccount
The FinancialAccount to reverse funds from. -
setHostedRegulatoryReceiptUrl
A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. -
setId
Unique identifier for the object. -
setLinkedFlows
Other flows linked to a DebitReversal. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setNetwork
The rails used to reverse the funds.One of
ach
, orcard
. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.debit_reversal
. -
setReceivedDebit
The ReceivedDebit being reversed. -
setStatus
Status of the DebitReversalOne of
failed
,processing
, orsucceeded
. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-