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 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 CreditReversal
create
(CreditReversalCreateParams params) Reverses a ReceivedCredit and creates a CreditReversal object.static CreditReversal
create
(CreditReversalCreateParams params, RequestOptions options) Reverses a ReceivedCredit and creates a CreditReversal object.static CreditReversal
Reverses a ReceivedCredit and creates a CreditReversal object.static CreditReversal
create
(Map<String, Object> params, RequestOptions options) Reverses a ReceivedCredit and creates a CreditReversal 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.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 ReceivedCredit being reversed.Status of the CreditReversalGet ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static CreditReversalCollection
list
(CreditReversalListParams params) Returns a list of CreditReversals.static CreditReversalCollection
list
(CreditReversalListParams params, RequestOptions options) Returns a list of CreditReversals.static CreditReversalCollection
Returns a list of CreditReversals.static CreditReversalCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of CreditReversals.static CreditReversal
Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.static CreditReversal
retrieve
(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 CreditReversal
retrieve
(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 CreditReversal
Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list.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
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
setReceivedCredit
(String receivedCredit) The ReceivedCredit 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 CreditReversalvoid
setStatusTransitions
(CreditReversal.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
-
CreditReversal
public CreditReversal()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
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: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. -
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
, 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 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
, 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.
-