Package com.stripe.model.treasury
Class ReceivedCredit
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.ReceivedCredit
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
ReceivedCredits represent funds sent to a FinancialAccount (for example, via ACH
or wire). These money movements are not initiated from the FinancialAccount.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
The routing number for the bank account.static class
The type of the source flow that originated the ReceivedCredit.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
boolean
Amount (in cents) transferred.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.Reason for the failure.The FinancialAccount that received the funds.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.The rails used to send the funds.String representing the object's type.Details describing when a ReceivedCredit may be reversed.Status of the ReceivedCredit.Get ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static ReceivedCreditCollection
list
(ReceivedCreditListParams params) Returns a list of ReceivedCredits.static ReceivedCreditCollection
list
(ReceivedCreditListParams params, RequestOptions options) Returns a list of ReceivedCredits.static ReceivedCreditCollection
Returns a list of ReceivedCredits.static ReceivedCreditCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of ReceivedCredits.static ReceivedCredit
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCredit
retrieve
(String id, RequestOptions options) Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCredit
retrieve
(String id, ReceivedCreditRetrieveParams params, RequestOptions options) Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCredit
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit 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
setDescription
(String description) An arbitrary string attached to the object.void
setFailureCode
(String failureCode) Reason for the failure.void
setFinancialAccount
(String financialAccount) The FinancialAccount that received the funds.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
setInitiatingPaymentMethodDetails
(ReceivedCredit.InitiatingPaymentMethodDetails initiatingPaymentMethodDetails) void
setLinkedFlows
(ReceivedCredit.LinkedFlows linkedFlows) 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
setNetwork
(String network) The rails used to send the funds.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setReversalDetails
(ReceivedCredit.ReversalDetails reversalDetails) Details describing when a ReceivedCredit may be reversed.void
Status of the ReceivedCredit.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
-
ReceivedCredit
public ReceivedCredit()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
list
Returns a list of ReceivedCredits.- Throws:
StripeException
-
list
public static ReceivedCreditCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of ReceivedCredits.- Throws:
StripeException
-
list
Returns a list of ReceivedCredits.- Throws:
StripeException
-
list
public static ReceivedCreditCollection list(ReceivedCreditListParams params, RequestOptions options) throws StripeException Returns a list of ReceivedCredits.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.- Throws:
StripeException
-
retrieve
public static ReceivedCredit retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.- Throws:
StripeException
-
retrieve
public static ReceivedCredit retrieve(String id, ReceivedCreditRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit 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. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getFailureCode
Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.One of
account_closed
,account_frozen
, orother
. -
getFinancialAccount
The FinancialAccount that received the funds. -
getHostedRegulatoryReceiptUrl
A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. -
getInitiatingPaymentMethodDetails
-
getLinkedFlows
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getNetwork
The rails used to send the funds.One of
ach
,card
,stripe
, orus_domestic_wire
. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.received_credit
. -
getReversalDetails
Details describing when a ReceivedCredit may be reversed. -
getStatus
Status of the ReceivedCredit. ReceivedCredits are created eithersucceeded
(approved) orfailed
(declined). If a ReceivedCredit is declined, the failure reason can be found in thefailure_code
field.One of
failed
, orsucceeded
. -
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. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setFailureCode
Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.One of
account_closed
,account_frozen
, orother
. -
setFinancialAccount
The FinancialAccount that received the funds. -
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. -
setInitiatingPaymentMethodDetails
public void setInitiatingPaymentMethodDetails(ReceivedCredit.InitiatingPaymentMethodDetails initiatingPaymentMethodDetails) -
setLinkedFlows
-
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setNetwork
The rails used to send the funds.One of
ach
,card
,stripe
, orus_domestic_wire
. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.received_credit
. -
setReversalDetails
Details describing when a ReceivedCredit may be reversed. -
setStatus
Status of the ReceivedCredit. ReceivedCredits are created eithersucceeded
(approved) orfailed
(declined). If a ReceivedCredit is declined, the failure reason can be found in thefailure_code
field.One of
failed
, orsucceeded
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-