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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about InitiatingPaymentMethodDetails, please refer to the API Reference.static classFor more details about LinkedFlows, please refer to the API Reference.static classFor more details about NetworkDetails, please refer to the API Reference.static classFor more details about ReversalDetails, please refer to the API Reference.static classNested 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 booleanbooleanAmount (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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.The network used for the ReceivedDebit.Details specific to the money movement rails.String representing the object's type.Details describing when a ReceivedDebit might be reversed.Status of the ReceivedDebit.Get ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static ReceivedDebitCollectionlist(ReceivedDebitListParams params) Returns a list of ReceivedDebits.static ReceivedDebitCollectionlist(ReceivedDebitListParams params, RequestOptions options) Returns a list of ReceivedDebits.static ReceivedDebitCollectionReturns a list of ReceivedDebits.static ReceivedDebitCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of ReceivedDebits.static ReceivedDebitRetrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebitretrieve(String id, RequestOptions options) Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebitretrieve(String id, ReceivedDebitRetrieveParams params, RequestOptions options) Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list.static ReceivedDebitRetrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit 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.voidsetDescription(String description) An arbitrary string attached to the object.voidsetFailureCode(String failureCode) Reason for the failure.voidsetFinancialAccount(String financialAccount) The FinancialAccount that funds were pulled 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.voidsetInitiatingPaymentMethodDetails(ReceivedDebit.InitiatingPaymentMethodDetails initiatingPaymentMethodDetails) voidsetLinkedFlows(ReceivedDebit.LinkedFlows linkedFlows) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetNetwork(String network) The network used for the ReceivedDebit.voidsetNetworkDetails(ReceivedDebit.NetworkDetails networkDetails) Details specific to the money movement rails.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetReversalDetails(ReceivedDebit.ReversalDetails reversalDetails) Details describing when a ReceivedDebit might be reversed.voidStatus of the ReceivedDebit.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
-
ReceivedDebit
public ReceivedDebit()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
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: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. -
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,international_transaction, 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getNetwork
The network used for the ReceivedDebit.One of
ach,card, orstripe. -
getNetworkDetails
Details specific to the money movement rails. -
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,international_transaction, 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setNetwork
The network used for the ReceivedDebit.One of
ach,card, orstripe. -
setNetworkDetails
Details specific to the money movement rails. -
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.
-