Package com.stripe.model.treasury
Class CreditReversal
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.CreditReversal
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
You can reverse some ReceivedCredits
depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a
new object known as a CreditReversal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic 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 CreditReversalcreate(CreditReversalCreateParams params) Reverses a ReceivedCredit and creates a CreditReversal object.static CreditReversalcreate(CreditReversalCreateParams params, RequestOptions options) Reverses a ReceivedCredit and creates a CreditReversal object.static CreditReversalReverses a ReceivedCredit and creates a CreditReversal object.static CreditReversalcreate(Map<String, Object> params, RequestOptions options) Reverses a ReceivedCredit and creates a CreditReversal 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.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 ReceivedCredit being reversed.Status of the CreditReversalGet ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static CreditReversalCollectionlist(CreditReversalListParams params) Returns a list of CreditReversals.static CreditReversalCollectionlist(CreditReversalListParams params, RequestOptions options) Returns a list of CreditReversals.static CreditReversalCollectionReturns a list of CreditReversals.static CreditReversalCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of CreditReversals.static CreditReversalRetrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.static CreditReversalretrieve(String creditReversal, RequestOptions options) Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.static CreditReversalretrieve(String creditReversal, CreditReversalRetrieveParams params, RequestOptions options) Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.static CreditReversalRetrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.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.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.voidsetReceivedCredit(String receivedCredit) The ReceivedCredit being reversed.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidStatus of the CreditReversalvoidsetStatusTransitions(CreditReversal.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
-
CreditReversal
public CreditReversal()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
setTransaction
-
getTransactionObject
Get expandedtransaction. -
setTransactionObject
-
create
Reverses a ReceivedCredit and creates a CreditReversal object.- Throws:
StripeException
-
create
public static CreditReversal create(Map<String, Object> params, RequestOptions options) throws StripeExceptionReverses a ReceivedCredit and creates a CreditReversal object.- Throws:
StripeException
-
create
Reverses a ReceivedCredit and creates a CreditReversal object.- Throws:
StripeException
-
create
public static CreditReversal create(CreditReversalCreateParams params, RequestOptions options) throws StripeException Reverses a ReceivedCredit and creates a CreditReversal object.- Throws:
StripeException
-
list
Returns a list of CreditReversals.- Throws:
StripeException
-
list
public static CreditReversalCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of CreditReversals.- Throws:
StripeException
-
list
Returns a list of CreditReversals.- Throws:
StripeException
-
list
public static CreditReversalCollection list(CreditReversalListParams params, RequestOptions options) throws StripeException Returns a list of CreditReversals.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.- Throws:
StripeException
-
retrieve
public static CreditReversal retrieve(String creditReversal, RequestOptions options) throws StripeException Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.- Throws:
StripeException
-
retrieve
public static CreditReversal retrieve(String creditReversal, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.- Throws:
StripeException
-
retrieve
public static CreditReversal retrieve(String creditReversal, CreditReversalRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.- 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. -
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, orstripe. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.credit_reversal. -
getReceivedCredit
The ReceivedCredit being reversed. -
getStatus
Status of the CreditReversalOne of
canceled,posted, orprocessing. -
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. -
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, orstripe. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.credit_reversal. -
setReceivedCredit
The ReceivedCredit being reversed. -
setStatus
Status of the CreditReversalOne of
canceled,posted, orprocessing. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-