Package com.stripe.model.treasury
Class InboundTransfer
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.InboundTransfer
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
Use InboundTransfers
to add funds to your FinancialAccount via a PaymentMethod
that is owned by you. The funds will be transferred via an ACH debit.
Related guide: Moving money with Treasury using InboundTransfer objects
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FailureDetails, please refer to the API Reference.static classFor more details about LinkedFlows, please refer to the API Reference.static classFor more details about OriginPaymentMethodDetails, please refer to the API Reference.static classFor more details about StatusTransitions, 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 TypeMethodDescriptioncancel()Cancels an InboundTransfer.cancel(RequestOptions options) Cancels an InboundTransfer.cancel(InboundTransferCancelParams params) Cancels an InboundTransfer.cancel(InboundTransferCancelParams params, RequestOptions options) Cancels an InboundTransfer.Cancels an InboundTransfer.cancel(Map<String, Object> params, RequestOptions options) Cancels an InboundTransfer.protected booleanstatic InboundTransfercreate(InboundTransferCreateParams params) Creates an InboundTransfer.static InboundTransfercreate(InboundTransferCreateParams params, RequestOptions options) Creates an InboundTransfer.static InboundTransferCreates an InboundTransfer.static InboundTransfercreate(Map<String, Object> params, RequestOptions options) Creates an InboundTransfer.booleanAmount (in cents) transferred.Returnstrueif the InboundTransfer is able to be canceled.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.Details about this InboundTransfer's 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.Set of key-value pairs that you can attach to an object.String representing the object's type.The origin payment method to be debited for an InboundTransfer.Details about the PaymentMethod for an InboundTransfer.Returnstrueif the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceededstate.Statement descriptor shown when funds are debited from the source.Status of the InboundTransfer:processing,succeeded,failed, andcanceled.Get ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static InboundTransferCollectionlist(InboundTransferListParams params) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollectionlist(InboundTransferListParams params, RequestOptions options) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollectionReturns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferRetrieves the details of an existing InboundTransfer.static InboundTransferretrieve(String id, RequestOptions options) Retrieves the details of an existing InboundTransfer.static InboundTransferretrieve(String id, InboundTransferRetrieveParams params, RequestOptions options) Retrieves the details of an existing InboundTransfer.static InboundTransferRetrieves the details of an existing InboundTransfer.voidAmount (in cents) transferred.voidsetCancelable(Boolean cancelable) Returnstrueif the InboundTransfer is able to be canceled.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.voidsetFailureDetails(InboundTransfer.FailureDetails failureDetails) Details about this InboundTransfer's 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.voidsetLinkedFlows(InboundTransfer.LinkedFlows linkedFlows) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOriginPaymentMethod(String originPaymentMethod) The origin payment method to be debited for an InboundTransfer.voidsetOriginPaymentMethodDetails(InboundTransfer.OriginPaymentMethodDetails originPaymentMethodDetails) Details about the PaymentMethod for an InboundTransfer.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetReturned(Boolean returned) Returnstrueif the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceededstate.voidsetStatementDescriptor(String statementDescriptor) Statement descriptor shown when funds are debited from the source.voidStatus of the InboundTransfer:processing,succeeded,failed, andcanceled.voidsetStatusTransitions(InboundTransfer.StatusTransitions statusTransitions) 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
-
InboundTransfer
public InboundTransfer()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
setTransaction
-
getTransactionObject
Get expandedtransaction. -
setTransactionObject
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
public InboundTransfer cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionCancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
public InboundTransfer cancel(InboundTransferCancelParams params, RequestOptions options) throws StripeException Cancels an InboundTransfer.- Throws:
StripeException
-
create
Creates an InboundTransfer.- Throws:
StripeException
-
create
public static InboundTransfer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an InboundTransfer.- Throws:
StripeException
-
create
Creates an InboundTransfer.- Throws:
StripeException
-
create
public static InboundTransfer create(InboundTransferCreateParams params, RequestOptions options) throws StripeException Creates an InboundTransfer.- Throws:
StripeException
-
list
Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(InboundTransferListParams params) throws StripeException Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(InboundTransferListParams params, RequestOptions options) throws StripeException Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
public static InboundTransfer retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
public static InboundTransfer retrieve(String id, InboundTransferRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
getTestHelpers
-
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. -
getCancelable
Returnstrueif the InboundTransfer is able to be canceled. -
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. -
getFailureDetails
Details about this InboundTransfer's failure. Only set when status isfailed. -
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. -
getLinkedFlows
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.inbound_transfer. -
getOriginPaymentMethod
The origin payment method to be debited for an InboundTransfer. -
getOriginPaymentMethodDetails
Details about the PaymentMethod for an InboundTransfer. -
getReturned
Returnstrueif the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceededstate. -
getStatementDescriptor
Statement descriptor shown when funds are debited from the source. Not all payment networks supportstatement_descriptor. -
getStatus
Status of the InboundTransfer:processing,succeeded,failed, andcanceled. An InboundTransfer isprocessingif it is created and pending. The status changes tosucceededonce the funds have been "confirmed" and atransactionis created and posted. The status changes tofailedif the transfer fails.One of
canceled,failed,processing, orsucceeded. -
getStatusTransitions
-
setAmount
Amount (in cents) transferred. -
setCancelable
Returnstrueif the InboundTransfer is able to be canceled. -
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. -
setFailureDetails
Details about this InboundTransfer's failure. Only set when status isfailed. -
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. -
setLinkedFlows
-
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.inbound_transfer. -
setOriginPaymentMethod
The origin payment method to be debited for an InboundTransfer. -
setOriginPaymentMethodDetails
public void setOriginPaymentMethodDetails(InboundTransfer.OriginPaymentMethodDetails originPaymentMethodDetails) Details about the PaymentMethod for an InboundTransfer. -
setReturned
Returnstrueif the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceededstate. -
setStatementDescriptor
Statement descriptor shown when funds are debited from the source. Not all payment networks supportstatement_descriptor. -
setStatus
Status of the InboundTransfer:processing,succeeded,failed, andcanceled. An InboundTransfer isprocessingif it is created and pending. The status changes tosucceededonce the funds have been "confirmed" and atransactionis created and posted. The status changes tofailedif the transfer fails.One of
canceled,failed,processing, orsucceeded. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-