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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about DestinationPaymentMethodDetails, please refer to the API Reference.static classFor more details about EndUserDetails, 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()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 booleanstatic OutboundPaymentcreate(OutboundPaymentCreateParams params) Creates an OutboundPayment.static OutboundPaymentcreate(OutboundPaymentCreateParams params, RequestOptions options) Creates an OutboundPayment.static OutboundPaymentCreates an OutboundPayment.static OutboundPaymentcreate(Map<String, Object> params, RequestOptions options) Creates an OutboundPayment.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.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 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.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_wirenetwork.Details about network-specific tracking information if available.Get ID of expandabletransactionobject.Get expandedtransaction.inthashCode()static OutboundPaymentCollectionlist(OutboundPaymentListParams params) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollectionlist(OutboundPaymentListParams params, RequestOptions options) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollectionReturns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of OutboundPayments sent from the specified FinancialAccount.static OutboundPaymentRetrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.static OutboundPaymentretrieve(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 OutboundPaymentretrieve(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 OutboundPaymentRetrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment 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.voidsetCustomer(String customer) ID of the customer to whom an OutboundPayment is sent.voidsetDescription(String description) An arbitrary string attached to the object.voidsetDestinationPaymentMethod(String destinationPaymentMethod) The PaymentMethod via which an OutboundPayment is sent.voidsetDestinationPaymentMethodDetails(OutboundPayment.DestinationPaymentMethodDetails destinationPaymentMethodDetails) Details about the PaymentMethod for an OutboundPayment.voidsetEndUserDetails(OutboundPayment.EndUserDetails endUserDetails) Details about the end user.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.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(OutboundPayment.ReturnedDetails returnedDetails) Details about a returned OutboundPayment.voidsetStatementDescriptor(String statementDescriptor) The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).voidCurrent status of the OutboundPayment:processing,failed,posted,returned,canceled.voidsetStatusTransitions(OutboundPayment.StatusTransitions statusTransitions) voidsetTrackingDetails(OutboundPayment.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
-
OutboundPayment
public OutboundPayment()
-
-
Method Details
-
getTransaction
Get ID of expandabletransactionobject. -
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_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. -
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 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.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 isprocessingif it has been created and is pending. The status changes topostedonce the OutboundPayment has been "confirmed" and funds have left the account, or tofailedorcanceled. 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
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. -
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 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.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 isprocessingif it has been created and is pending. The status changes topostedonce the OutboundPayment has been "confirmed" and funds have left the account, or tofailedorcanceled. 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.
-