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 Summary
Nested 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.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()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.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
-
OutboundTransfer
public OutboundTransfer()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
setTransaction
-
getTransactionObject
Get expandedtransaction. -
setTransactionObject
-
cancel
An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
StripeException
-
cancel
An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
StripeException
-
cancel
An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
StripeException
-
cancel
public 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
-
cancel
An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
StripeException
-
cancel
public OutboundTransfer cancel(OutboundTransferCancelParams params, RequestOptions options) throws StripeException An OutboundTransfer can be canceled if the funds have not yet been paid out.- Throws:
StripeException
-
create
Creates an OutboundTransfer.- Throws:
StripeException
-
create
public static OutboundTransfer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an OutboundTransfer.- Throws:
StripeException
-
create
Creates an OutboundTransfer.- Throws:
StripeException
-
create
public static OutboundTransfer create(OutboundTransferCreateParams params, RequestOptions options) throws StripeException Creates an OutboundTransfer.- Throws:
StripeException
-
list
Returns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundTransferCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundTransferCollection list(OutboundTransferListParams params) throws StripeException Returns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundTransferCollection list(OutboundTransferListParams params, RequestOptions options) throws StripeException Returns a list of OutboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.- Throws:
StripeException
-
retrieve
public 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
-
retrieve
public 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
-
retrieve
public 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
-
getTestHelpers
OMAD of the OutboundTransfer for transfers sent over theus_domestic_wirenetwork. -
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 object can be canceled, andfalseotherwise. -
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. -
getDestinationPaymentMethod
The PaymentMethod used as the payment instrument for an OutboundTransfer. -
getDestinationPaymentMethodDetails
-
getExpectedArrivalDate
The date when funds are expected to arrive in the destination account. -
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. -
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. -
getNetworkDetails
Details about the network used for the OutboundTransfer. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.outbound_transfer. -
getReturnedDetails
Details about a returned OutboundTransfer. Only set when the status isreturned. -
getStatementDescriptor
Information about the OutboundTransfer to be sent to the recipient account. -
getStatus
Current 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
-
getTrackingDetails
Details about network-specific tracking information if available. -
setAmount
Amount (in cents) transferred. -
setCancelable
Returnstrueif the object can be canceled, andfalseotherwise. -
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. -
setDestinationPaymentMethod
The PaymentMethod used as the payment instrument for an OutboundTransfer. -
setDestinationPaymentMethodDetails
public void setDestinationPaymentMethodDetails(OutboundTransfer.DestinationPaymentMethodDetails destinationPaymentMethodDetails) -
setExpectedArrivalDate
The date when funds are expected to arrive in the destination account. -
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. -
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. -
setNetworkDetails
Details about the network used for the OutboundTransfer. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
treasury.outbound_transfer. -
setReturnedDetails
Details about a returned OutboundTransfer. Only set when the status isreturned. -
setStatementDescriptor
Information about the OutboundTransfer to be sent to the recipient account. -
setStatus
Current 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
-
setTrackingDetails
Details about network-specific tracking information if available. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-