Package com.stripe.model.treasury
Class ReceivedDebit
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.ReceivedDebit
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
ReceivedDebits represent funds pulled from a FinancialAccount. These are not
initiated from the FinancialAccount.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
The routing number for the bank account.static class
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 funds were pulled 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.The network used for the ReceivedDebit.String representing the object's type.Details describing when a ReceivedDebit might be reversed.Status of the ReceivedDebit.Get ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static ReceivedDebitCollection
list
(ReceivedDebitListParams params) Returns a list of ReceivedDebits.static ReceivedDebitCollection
list
(ReceivedDebitListParams params, RequestOptions options) Returns a list of ReceivedDebits.static ReceivedDebitCollection
Returns a list of ReceivedDebits.static ReceivedDebitCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of ReceivedDebits.static ReceivedDebit
Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebit
retrieve
(String id, RequestOptions options) Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebit
retrieve
(String id, ReceivedDebitRetrieveParams params, RequestOptions options) Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebit
Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit 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 funds were pulled 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
setInitiatingPaymentMethodDetails
(ReceivedDebit.InitiatingPaymentMethodDetails initiatingPaymentMethodDetails) void
setLinkedFlows
(ReceivedDebit.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 network used for the ReceivedDebit.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
(ReceivedDebit.ReversalDetails reversalDetails) Details describing when a ReceivedDebit might be reversed.void
Status of the ReceivedDebit.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
-
ReceivedDebit
public ReceivedDebit()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
list
Returns a list of ReceivedDebits.- Throws:
StripeException
-
list
public static ReceivedDebitCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of ReceivedDebits.- Throws:
StripeException
-
list
Returns a list of ReceivedDebits.- Throws:
StripeException
-
list
public static ReceivedDebitCollection list(ReceivedDebitListParams params, RequestOptions options) throws StripeException Returns a list of ReceivedDebits.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.- Throws:
StripeException
-
retrieve
public static ReceivedDebit retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.- Throws:
StripeException
-
retrieve
public static ReceivedDebit retrieve(String id, ReceivedDebitRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit 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 ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.One of
account_closed
,account_frozen
,insufficient_funds
, orother
. -
getFinancialAccount
The FinancialAccount that funds were pulled from. -
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 network used for the ReceivedDebit.One of
ach
,card
, orstripe
. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.received_debit
. -
getReversalDetails
Details describing when a ReceivedDebit might be reversed. -
getStatus
Status of the ReceivedDebit. ReceivedDebits are created with a status of eithersucceeded
(approved) orfailed
(declined). The failure reason can be found under thefailure_code
.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 ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen.One of
account_closed
,account_frozen
,insufficient_funds
, orother
. -
setFinancialAccount
The FinancialAccount that funds were pulled 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. -
setInitiatingPaymentMethodDetails
public void setInitiatingPaymentMethodDetails(ReceivedDebit.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 network used for the ReceivedDebit.One of
ach
,card
, orstripe
. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.received_debit
. -
setReversalDetails
Details describing when a ReceivedDebit might be reversed. -
setStatus
Status of the ReceivedDebit. ReceivedDebits are created with a status of eithersucceeded
(approved) orfailed
(declined). The failure reason can be found under thefailure_code
.One of
failed
, orsucceeded
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-