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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about StatusTransitions, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
CreditReversalpublic CreditReversal()
 
- 
- 
Method Details- 
getTransactionGet ID of expandabletransactionobject.
- 
setTransaction
- 
getTransactionObjectGet expandedtransaction.
- 
setTransactionObject
- 
createReverses a ReceivedCredit and creates a CreditReversal object.- Throws:
- StripeException
 
- 
createpublic static CreditReversal create(Map<String, Object> params, RequestOptions options) throws StripeExceptionReverses a ReceivedCredit and creates a CreditReversal object.- Throws:
- StripeException
 
- 
createReverses a ReceivedCredit and creates a CreditReversal object.- Throws:
- StripeException
 
- 
createpublic static CreditReversal create(CreditReversalCreateParams params, RequestOptions options) throws StripeException Reverses a ReceivedCredit and creates a CreditReversal object.- Throws:
- StripeException
 
- 
listReturns a list of CreditReversals.- Throws:
- StripeException
 
- 
listpublic static CreditReversalCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of CreditReversals.- Throws:
- StripeException
 
- 
listReturns a list of CreditReversals.- Throws:
- StripeException
 
- 
listpublic static CreditReversalCollection list(CreditReversalListParams params, RequestOptions options) throws StripeException Returns a list of CreditReversals.- Throws:
- StripeException
 
- 
retrieveRetrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.- Throws:
- StripeException
 
- 
retrievepublic 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
 
- 
retrievepublic 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
 
- 
retrievepublic 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
 
- 
setResponseGetterDescription copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getAmountAmount (in cents) transferred.
- 
getCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
getCurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
- 
getFinancialAccountThe FinancialAccount to reverse funds from.
- 
getHostedRegulatoryReceiptUrlA hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getMetadataSet 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.
- 
getNetworkThe rails used to reverse the funds.One of ach, orstripe.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to treasury.credit_reversal.
- 
getReceivedCreditThe ReceivedCredit being reversed.
- 
getStatusStatus of the CreditReversalOne of canceled,posted, orprocessing.
- 
getStatusTransitions
- 
setAmountAmount (in cents) transferred.
- 
setCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
setCurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
- 
setFinancialAccountThe FinancialAccount to reverse funds from.
- 
setHostedRegulatoryReceiptUrlA hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
- 
setIdUnique identifier for the object.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setMetadataSet 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.
- 
setNetworkThe rails used to reverse the funds.One of ach, orstripe.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to treasury.credit_reversal.
- 
setReceivedCreditThe ReceivedCredit being reversed.
- 
setStatusStatus of the CreditReversalOne of canceled,posted, orprocessing.
- 
setStatusTransitions
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-