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
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 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.The rails used to send the funds.Details specific to the money movement rails.String representing the object's type.Details describing when a ReceivedCredit may be reversed.Status of the ReceivedCredit.Get ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static ReceivedCreditCollectionlist(ReceivedCreditListParams params) Returns a list of ReceivedCredits.static ReceivedCreditCollectionlist(ReceivedCreditListParams params, RequestOptions options) Returns a list of ReceivedCredits.static ReceivedCreditCollectionReturns a list of ReceivedCredits.static ReceivedCreditCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of ReceivedCredits.static ReceivedCreditRetrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCreditretrieve(String id, RequestOptions options) Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCreditretrieve(String id, ReceivedCreditRetrieveParams params, RequestOptions options) Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.static ReceivedCreditRetrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit 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 received the funds.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(ReceivedCredit.InitiatingPaymentMethodDetails initiatingPaymentMethodDetails) voidsetLinkedFlows(ReceivedCredit.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 rails used to send the funds.voidsetNetworkDetails(ReceivedCredit.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(ReceivedCredit.ReversalDetails reversalDetails) Details describing when a ReceivedCredit may be reversed.voidStatus of the ReceivedCredit.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
-
ReceivedCredit
public ReceivedCredit()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
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: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 ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen.One of
account_closed,account_frozen,international_transaction, 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getNetwork
The rails used to send the funds.One of
ach,card,stripe, orus_domestic_wire. -
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_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_codefield.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,international_transaction, 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 valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setNetwork
The rails used to send the funds.One of
ach,card,stripe, orus_domestic_wire. -
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_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_codefield.One of
failed, orsucceeded. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-