Package com.stripe.model.treasury
Class OutboundPayment
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.OutboundPayment
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Use OutboundPayments
to send funds to another party's external bank account or FinancialAccount. To send money to an
account belonging to the same user, use an OutboundTransfer.
Simulate OutboundPayment state changes with the
/v1/test_helpers/treasury/outbound_payments
endpoints. These methods can only be called on test
mode objects.
Related guide: Moving money with Treasury using OutboundPayment objects
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Get expandedmandate
.static class
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()
Cancel an OutboundPayment.cancel
(RequestOptions options) Cancel an OutboundPayment.cancel
(OutboundPaymentCancelParams params) Cancel an OutboundPayment.cancel
(OutboundPaymentCancelParams params, RequestOptions options) Cancel an OutboundPayment.Cancel an OutboundPayment.cancel
(Map<String, Object> params, RequestOptions options) Cancel an OutboundPayment.protected boolean
static OutboundPayment
create
(OutboundPaymentCreateParams params) Creates an OutboundPayment.static OutboundPayment
create
(OutboundPaymentCreateParams params, RequestOptions options) Creates an OutboundPayment.static OutboundPayment
Creates an OutboundPayment.static OutboundPayment
create
(Map<String, Object> params, RequestOptions options) Creates an OutboundPayment.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.ID of the customer to whom an OutboundPayment is sent.An arbitrary string attached to the object.The PaymentMethod via which an OutboundPayment is sent.Details about the PaymentMethod for an OutboundPayment.Details about the end user.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 OutboundPayment.The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).Current status of the OutboundPayment:processing
,failed
,posted
,returned
,canceled
.OMAD of the OutboundPayment for payments sent over theus_domestic_wire
network.Details about network-specific tracking information if available.Get ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static OutboundPaymentCollection
list
(OutboundPaymentListParams params) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollection
list
(OutboundPaymentListParams params, RequestOptions options) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollection
Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPayment
Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.static OutboundPayment
retrieve
(String id, RequestOptions options) Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.static OutboundPayment
retrieve
(String id, OutboundPaymentRetrieveParams params, RequestOptions options) Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.static OutboundPayment
Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment 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
setCustomer
(String customer) ID of the customer to whom an OutboundPayment is sent.void
setDescription
(String description) An arbitrary string attached to the object.void
setDestinationPaymentMethod
(String destinationPaymentMethod) The PaymentMethod via which an OutboundPayment is sent.void
setDestinationPaymentMethodDetails
(OutboundPayment.DestinationPaymentMethodDetails destinationPaymentMethodDetails) Details about the PaymentMethod for an OutboundPayment.void
setEndUserDetails
(OutboundPayment.EndUserDetails endUserDetails) Details about the end user.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
(OutboundPayment.ReturnedDetails returnedDetails) Details about a returned OutboundPayment.void
setStatementDescriptor
(String statementDescriptor) The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).void
Current status of the OutboundPayment:processing
,failed
,posted
,returned
,canceled
.void
setStatusTransitions
(OutboundPayment.StatusTransitions statusTransitions) void
setTrackingDetails
(OutboundPayment.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
-
OutboundPayment
public OutboundPayment()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
cancel
Cancel an OutboundPayment.- Throws:
StripeException
-
cancel
Cancel an OutboundPayment.- Throws:
StripeException
-
cancel
Cancel an OutboundPayment.- Throws:
StripeException
-
cancel
public OutboundPayment cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionCancel an OutboundPayment.- Throws:
StripeException
-
cancel
Cancel an OutboundPayment.- Throws:
StripeException
-
cancel
public OutboundPayment cancel(OutboundPaymentCancelParams params, RequestOptions options) throws StripeException Cancel an OutboundPayment.- Throws:
StripeException
-
create
Creates an OutboundPayment.- Throws:
StripeException
-
create
public static OutboundPayment create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an OutboundPayment.- Throws:
StripeException
-
create
Creates an OutboundPayment.- Throws:
StripeException
-
create
public static OutboundPayment create(OutboundPaymentCreateParams params, RequestOptions options) throws StripeException Creates an OutboundPayment.- Throws:
StripeException
-
list
Returns a list of OutboundPayments sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundPaymentCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of OutboundPayments sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundPaymentCollection list(OutboundPaymentListParams params) throws StripeException Returns a list of OutboundPayments sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static OutboundPaymentCollection list(OutboundPaymentListParams params, RequestOptions options) throws StripeException Returns a list of OutboundPayments sent from the specified FinancialAccount.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.- Throws:
StripeException
-
retrieve
public static OutboundPayment retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.- Throws:
StripeException
-
retrieve
public static OutboundPayment retrieve(String id, OutboundPaymentRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.- Throws:
StripeException
-
getTestHelpers
OMAD of the OutboundPayment for payments 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. -
getCustomer
ID of the customer to whom an OutboundPayment is sent. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getDestinationPaymentMethod
The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created usingdestination_payment_method_data
. -
getDestinationPaymentMethodDetails
Details about the PaymentMethod for an OutboundPayment. -
getEndUserDetails
Details about the end user. -
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_payment
. -
getReturnedDetails
Details about a returned OutboundPayment. Only set when the status isreturned
. -
getStatementDescriptor
The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). -
getStatus
Current status of the OutboundPayment:processing
,failed
,posted
,returned
,canceled
. An OutboundPayment isprocessing
if it has been created and is pending. The status changes toposted
once the OutboundPayment has been "confirmed" and funds have left the account, or tofailed
orcanceled
. If an OutboundPayment 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. -
setCustomer
ID of the customer to whom an OutboundPayment is sent. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setDestinationPaymentMethod
The PaymentMethod via which an OutboundPayment is sent. This field can be empty if the OutboundPayment was created usingdestination_payment_method_data
. -
setDestinationPaymentMethodDetails
public void setDestinationPaymentMethodDetails(OutboundPayment.DestinationPaymentMethodDetails destinationPaymentMethodDetails) Details about the PaymentMethod for an OutboundPayment. -
setEndUserDetails
Details about the end user. -
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_payment
. -
setReturnedDetails
Details about a returned OutboundPayment. Only set when the status isreturned
. -
setStatementDescriptor
The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). -
setStatus
Current status of the OutboundPayment:processing
,failed
,posted
,returned
,canceled
. An OutboundPayment isprocessing
if it has been created and is pending. The status changes toposted
once the OutboundPayment has been "confirmed" and funds have left the account, or tofailed
orcanceled
. If an OutboundPayment 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.
-