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
Modifier and TypeClassDescriptionstatic class
static class
Get expandedmandate
.static class
static class
static class
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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
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 boolean
static OutboundTransfer
create
(OutboundTransferCreateParams params) Creates an OutboundTransfer.static OutboundTransfer
create
(OutboundTransferCreateParams params, RequestOptions options) Creates an OutboundTransfer.static OutboundTransfer
Creates an OutboundTransfer.static OutboundTransfer
create
(Map<String, Object> params, RequestOptions options) Creates an OutboundTransfer.boolean
Amount (in cents) transferred.Returnstrue
if the object can be canceled, andfalse
otherwise.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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.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_wire
network.Details about network-specific tracking information if available.Get ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static OutboundTransferCollection
list
(OutboundTransferListParams params) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollection
list
(OutboundTransferListParams params, RequestOptions options) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollection
Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransferCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of OutboundTransfers sent from the specified FinancialAccount.static OutboundTransfer
Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.static OutboundTransfer
retrieve
(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 OutboundTransfer
retrieve
(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 OutboundTransfer
Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.void
Amount (in cents) transferred.void
setCancelable
(Boolean cancelable) Returnstrue
if the object can be canceled, andfalse
otherwise.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setDestinationPaymentMethod
(String destinationPaymentMethod) The PaymentMethod used as the payment instrument for an OutboundTransfer.void
setDestinationPaymentMethodDetails
(OutboundTransfer.DestinationPaymentMethodDetails destinationPaymentMethodDetails) void
setExpectedArrivalDate
(Long expectedArrivalDate) The date when funds are expected to arrive in the destination account.void
setFinancialAccount
(String financialAccount) The FinancialAccount that funds were pulled from.void
setHostedRegulatoryReceiptUrl
(String hostedRegulatoryReceiptUrl) A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setReturnedDetails
(OutboundTransfer.ReturnedDetails returnedDetails) Details about a returned OutboundTransfer.void
setStatementDescriptor
(String statementDescriptor) Information about the OutboundTransfer to be sent to the recipient account.void
Current status of the OutboundTransfer:processing
,failed
,canceled
,posted
,returned
.void
setStatusTransitions
(OutboundTransfer.StatusTransitions statusTransitions) void
setTrackingDetails
(OutboundTransfer.TrackingDetails trackingDetails) Details about network-specific tracking information if available.void
setTransaction
(String id) void
setTransactionObject
(Transaction expandableObject) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
OutboundTransfer
public OutboundTransfer()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
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_wire
network. -
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
Amount (in cents) transferred. -
getCancelable
Returnstrue
if the object can be canceled, andfalse
otherwise. -
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 valuetrue
if the object exists in live mode or the valuefalse
if 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.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 isprocessing
if it has been created and is pending. The status changes toposted
once the OutboundTransfer has been "confirmed" and funds have left the account, or tofailed
orcanceled
. 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
Returnstrue
if the object can be canceled, andfalse
otherwise. -
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 valuetrue
if the object exists in live mode or the valuefalse
if 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.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 isprocessing
if it has been created and is pending. The status changes toposted
once the OutboundTransfer has been "confirmed" and funds have left the account, or tofailed
orcanceled
. 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.
-