Package com.stripe.model.treasury
Class OutboundTransfer
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.OutboundTransfer
- All Implemented Interfaces:
- HasId,- StripeActiveObject,- StripeObjectInterface
Use OutboundTransfers
 to transfer funds from a FinancialAccount to a PaymentMethod
 belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can send
 funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
 
Simulate OutboundTransfer state changes with the 
 /v1/test_helpers/treasury/outbound_transfers endpoints. These methods can only be called on test
 mode objects.
 
Related guide: Moving money with Treasury using OutboundTransfer objects
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about DestinationPaymentMethodDetails, please refer to the API Reference.static classFor more details about NetworkDetails, please refer to the API Reference.static classFor more details about ReturnedDetails, please refer to the API Reference.static classFor more details about StatusTransitions, please refer to the API Reference.static classstatic classFor more details about TrackingDetails, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncancel()An OutboundTransfer can be canceled if the funds have not yet been paid out.cancel(RequestOptions options) An OutboundTransfer can be canceled if the funds have not yet been paid out.cancel(OutboundTransferCancelParams params) An OutboundTransfer can be canceled if the funds have not yet been paid out.cancel(OutboundTransferCancelParams params, RequestOptions options) An OutboundTransfer can be canceled if the funds have not yet been paid out.An OutboundTransfer can be canceled if the funds have not yet been paid out.cancel(Map<String, Object> params, RequestOptions options) An OutboundTransfer can be canceled if the funds have not yet been paid out.protected booleanstatic OutboundTransfercreate(OutboundTransferCreateParams params) Creates an OutboundTransfer.static OutboundTransfercreate(OutboundTransferCreateParams params, RequestOptions options) Creates an OutboundTransfer.static OutboundTransferCreates an OutboundTransfer.static OutboundTransfercreate(Map<String, Object> params, RequestOptions options) Creates an OutboundTransfer.booleanAmount (in cents) transferred.Returnstrueif the object can be canceled, andfalseotherwise.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.The PaymentMethod used as the payment instrument for an OutboundTransfer.The date when funds are expected to arrive in the destination account.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.Set of key-value pairs that you can attach to an object.Details about the network used for the OutboundTransfer.String representing the object's type.Details about a returned OutboundTransfer.Information about the OutboundTransfer to be sent to the recipient account.Current status of the OutboundTransfer:processing,failed,canceled,posted,returned.OMAD of the OutboundTransfer for transfers sent over theus_domestic_wirenetwork.Details about network-specific tracking information if available.Get ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static OutboundTransferCollectionlist(OutboundTransferListParams params) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollectionlist(OutboundTransferListParams params, RequestOptions options) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollectionReturns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferRetrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.static OutboundTransferretrieve(String outboundTransfer, RequestOptions options) Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.static OutboundTransferretrieve(String outboundTransfer, OutboundTransferRetrieveParams params, RequestOptions options) Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.static OutboundTransferRetrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.voidAmount (in cents) transferred.voidsetCancelable(Boolean cancelable) Returnstrueif the object can be canceled, andfalseotherwise.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.voidsetDestinationPaymentMethod(String destinationPaymentMethod) The PaymentMethod used as the payment instrument for an OutboundTransfer.voidsetDestinationPaymentMethodDetails(OutboundTransfer.DestinationPaymentMethodDetails destinationPaymentMethodDetails) voidsetExpectedArrivalDate(Long expectedArrivalDate) The date when funds are expected to arrive in the destination account.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.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.voidsetNetworkDetails(OutboundTransfer.NetworkDetails networkDetails) Details about the network used for the OutboundTransfer.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.voidsetReturnedDetails(OutboundTransfer.ReturnedDetails returnedDetails) Details about a returned OutboundTransfer.voidsetStatementDescriptor(String statementDescriptor) Information about the OutboundTransfer to be sent to the recipient account.voidCurrent status of the OutboundTransfer:processing,failed,canceled,posted,returned.voidsetStatusTransitions(OutboundTransfer.StatusTransitions statusTransitions) voidsetTrackingDetails(OutboundTransfer.TrackingDetails trackingDetails) Details about network-specific tracking information if available.voidsetTransaction(String id) voidsetTransactionObject(Transaction expandableObject) Methods inherited from class com.stripe.net.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
OutboundTransferpublic OutboundTransfer()
 
- 
- 
Method Details- 
getTransactionGet ID of expandabletransactionobject.
- 
setTransaction
- 
getTransactionObjectGet expandedtransaction.
- 
setTransactionObject
- 
cancelAn OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
cancelAn OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
cancelAn OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
cancelpublic OutboundTransfer cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionAn OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
cancelAn OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
cancelpublic OutboundTransfer cancel(OutboundTransferCancelParams params, RequestOptions options) throws StripeException An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
- StripeException
 
- 
createCreates an OutboundTransfer.- Throws:
- StripeException
 
- 
createpublic static OutboundTransfer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an OutboundTransfer.- Throws:
- StripeException
 
- 
createCreates an OutboundTransfer.- Throws:
- StripeException
 
- 
createpublic static OutboundTransfer create(OutboundTransferCreateParams params, RequestOptions options) throws StripeException Creates an OutboundTransfer.- Throws:
- StripeException
 
- 
listReturns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
- StripeException
 
- 
listpublic static OutboundTransferCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
- StripeException
 
- 
listpublic static OutboundTransferCollection list(OutboundTransferListParams params) throws StripeException Returns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
- StripeException
 
- 
listpublic static OutboundTransferCollection list(OutboundTransferListParams params, RequestOptions options) throws StripeException Returns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
- StripeException
 
- 
retrieveRetrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.- Throws:
- StripeException
 
- 
retrievepublic static OutboundTransfer retrieve(String outboundTransfer, RequestOptions options) throws StripeException Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.- Throws:
- StripeException
 
- 
retrievepublic static OutboundTransfer retrieve(String outboundTransfer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.- Throws:
- StripeException
 
- 
retrievepublic static OutboundTransfer retrieve(String outboundTransfer, OutboundTransferRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.- Throws:
- StripeException
 
- 
getTestHelpersOMAD of the OutboundTransfer for transfers sent over theus_domestic_wirenetwork.
- 
setResponseGetterDescription copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getAmountAmount (in cents) transferred.
- 
getCancelableReturnstrueif the object can be canceled, andfalseotherwise.
- 
getCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
getCurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
- 
getDescriptionAn arbitrary string attached to the object. Often useful for displaying to users.
- 
getDestinationPaymentMethodThe PaymentMethod used as the payment instrument for an OutboundTransfer.
- 
getDestinationPaymentMethodDetails
- 
getExpectedArrivalDateThe date when funds are expected to arrive in the destination account.
- 
getFinancialAccountThe FinancialAccount that funds were pulled from.
- 
getHostedRegulatoryReceiptUrlA hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getMetadataSet 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.
- 
getNetworkDetailsDetails about the network used for the OutboundTransfer.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to treasury.outbound_transfer.
- 
getReturnedDetailsDetails about a returned OutboundTransfer. Only set when the status isreturned.
- 
getStatementDescriptorInformation about the OutboundTransfer to be sent to the recipient account.
- 
getStatusCurrent status of the OutboundTransfer:processing,failed,canceled,posted,returned. An OutboundTransfer isprocessingif it has been created and is pending. The status changes topostedonce the OutboundTransfer has been "confirmed" and funds have left the account, or tofailedorcanceled. If an OutboundTransfer fails to arrive at its destination, its status will change toreturned.One of canceled,failed,posted,processing, orreturned.
- 
getStatusTransitions
- 
getTrackingDetailsDetails about network-specific tracking information if available.
- 
setAmountAmount (in cents) transferred.
- 
setCancelableReturnstrueif the object can be canceled, andfalseotherwise.
- 
setCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
setCurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
- 
setDescriptionAn arbitrary string attached to the object. Often useful for displaying to users.
- 
setDestinationPaymentMethodThe PaymentMethod used as the payment instrument for an OutboundTransfer.
- 
setDestinationPaymentMethodDetailspublic void setDestinationPaymentMethodDetails(OutboundTransfer.DestinationPaymentMethodDetails destinationPaymentMethodDetails) 
- 
setExpectedArrivalDateThe date when funds are expected to arrive in the destination account.
- 
setFinancialAccountThe FinancialAccount that funds were pulled from.
- 
setHostedRegulatoryReceiptUrlA hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
- 
setIdUnique identifier for the object.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setMetadataSet 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.
- 
setNetworkDetailsDetails about the network used for the OutboundTransfer.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to treasury.outbound_transfer.
- 
setReturnedDetailsDetails about a returned OutboundTransfer. Only set when the status isreturned.
- 
setStatementDescriptorInformation about the OutboundTransfer to be sent to the recipient account.
- 
setStatusCurrent status of the OutboundTransfer:processing,failed,canceled,posted,returned. An OutboundTransfer isprocessingif it has been created and is pending. The status changes topostedonce the OutboundTransfer has been "confirmed" and funds have left the account, or tofailedorcanceled. If an OutboundTransfer fails to arrive at its destination, its status will change toreturned.One of canceled,failed,posted,processing, orreturned.
- 
setStatusTransitions
- 
setTrackingDetailsDetails about network-specific tracking information if available.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-