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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about LinkedFlows, please refer to the API Reference.static classFor more details about StatusTransitions, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic DebitReversalcreate(DebitReversalCreateParams params) Reverses a ReceivedDebit and creates a DebitReversal object.static DebitReversalcreate(DebitReversalCreateParams params, RequestOptions options) Reverses a ReceivedDebit and creates a DebitReversal object.static DebitReversalReverses a ReceivedDebit and creates a DebitReversal object.static DebitReversalcreate(Map<String, Object> params, RequestOptions options) Reverses a ReceivedDebit and creates a DebitReversal object.booleanAmount (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 valuetrueif the object exists in live mode or the valuefalseif 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 expandabletransactionobject.Get expandedtransaction.inthashCode()static DebitReversalCollectionlist(DebitReversalListParams params) Returns a list of DebitReversals.static DebitReversalCollectionlist(DebitReversalListParams params, RequestOptions options) Returns a list of DebitReversals.static DebitReversalCollectionReturns a list of DebitReversals.static DebitReversalCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of DebitReversals.static DebitReversalRetrieves a DebitReversal object.static DebitReversalretrieve(String debitReversal, RequestOptions options) Retrieves a DebitReversal object.static DebitReversalretrieve(String debitReversal, DebitReversalRetrieveParams params, RequestOptions options) Retrieves a DebitReversal object.static DebitReversalRetrieves a DebitReversal object.voidAmount (in cents) transferred.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetFinancialAccount(String financialAccount) The FinancialAccount to reverse funds from.voidsetHostedRegulatoryReceiptUrl(String hostedRegulatoryReceiptUrl) A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.voidUnique identifier for the object.voidsetLinkedFlows(DebitReversal.LinkedFlows linkedFlows) Other flows linked to a DebitReversal.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetNetwork(String network) The rails used to reverse the funds.voidString representing the object's type.voidsetReceivedDebit(String receivedDebit) The ReceivedDebit being reversed.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidStatus of the DebitReversalvoidsetStatusTransitions(DebitReversal.StatusTransitions statusTransitions) voidsetTransaction(String id) voidsetTransactionObject(Transaction expandableObject) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
DebitReversal
public DebitReversal()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-