Package com.stripe.model.treasury
Class InboundTransfer
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.treasury.InboundTransfer
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Use InboundTransfers
to add funds to your FinancialAccount via a PaymentMethod
that is owned by you. The funds will be transferred via an ACH debit.
Related guide: Moving money with Treasury using InboundTransfer objects
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
Get expandedmandate
.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()
Cancels an InboundTransfer.cancel
(RequestOptions options) Cancels an InboundTransfer.cancel
(InboundTransferCancelParams params) Cancels an InboundTransfer.cancel
(InboundTransferCancelParams params, RequestOptions options) Cancels an InboundTransfer.Cancels an InboundTransfer.cancel
(Map<String, Object> params, RequestOptions options) Cancels an InboundTransfer.protected boolean
static InboundTransfer
create
(InboundTransferCreateParams params) Creates an InboundTransfer.static InboundTransfer
create
(InboundTransferCreateParams params, RequestOptions options) Creates an InboundTransfer.static InboundTransfer
Creates an InboundTransfer.static InboundTransfer
create
(Map<String, Object> params, RequestOptions options) Creates an InboundTransfer.boolean
Amount (in cents) transferred.Returnstrue
if the InboundTransfer is able to be canceled.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.Details about this InboundTransfer's failure.The FinancialAccount that received the funds.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.The origin payment method to be debited for an InboundTransfer.Details about the PaymentMethod for an InboundTransfer.Returnstrue
if the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceeded
state.Statement descriptor shown when funds are debited from the source.Status of the InboundTransfer:processing
,succeeded
,failed
, andcanceled
.Get ID of expandabletransaction
object.Get expandedtransaction
.int
hashCode()
static InboundTransferCollection
list
(InboundTransferListParams params) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollection
list
(InboundTransferListParams params, RequestOptions options) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollection
Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransferCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of InboundTransfers sent from the specified FinancialAccount.static InboundTransfer
Retrieves the details of an existing InboundTransfer.static InboundTransfer
retrieve
(String id, RequestOptions options) Retrieves the details of an existing InboundTransfer.static InboundTransfer
retrieve
(String id, InboundTransferRetrieveParams params, RequestOptions options) Retrieves the details of an existing InboundTransfer.static InboundTransfer
Retrieves the details of an existing InboundTransfer.void
Amount (in cents) transferred.void
setCancelable
(Boolean cancelable) Returnstrue
if the InboundTransfer is able to be canceled.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
setFailureDetails
(InboundTransfer.FailureDetails failureDetails) Details about this InboundTransfer's failure.void
setFinancialAccount
(String financialAccount) The FinancialAccount that received the funds.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
setLinkedFlows
(InboundTransfer.LinkedFlows linkedFlows) 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
setOriginPaymentMethod
(String originPaymentMethod) The origin payment method to be debited for an InboundTransfer.void
setOriginPaymentMethodDetails
(InboundTransfer.OriginPaymentMethodDetails originPaymentMethodDetails) Details about the PaymentMethod for an InboundTransfer.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setReturned
(Boolean returned) Returnstrue
if the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceeded
state.void
setStatementDescriptor
(String statementDescriptor) Statement descriptor shown when funds are debited from the source.void
Status of the InboundTransfer:processing
,succeeded
,failed
, andcanceled
.void
setStatusTransitions
(InboundTransfer.StatusTransitions statusTransitions) 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
-
InboundTransfer
public InboundTransfer()
-
-
Method Details
-
getTransaction
Get ID of expandabletransaction
object. -
setTransaction
-
getTransactionObject
Get expandedtransaction
. -
setTransactionObject
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
public InboundTransfer cancel(Map<String, Object> params, RequestOptions options) throws StripeExceptionCancels an InboundTransfer.- Throws:
StripeException
-
cancel
Cancels an InboundTransfer.- Throws:
StripeException
-
cancel
public InboundTransfer cancel(InboundTransferCancelParams params, RequestOptions options) throws StripeException Cancels an InboundTransfer.- Throws:
StripeException
-
create
Creates an InboundTransfer.- Throws:
StripeException
-
create
public static InboundTransfer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an InboundTransfer.- Throws:
StripeException
-
create
Creates an InboundTransfer.- Throws:
StripeException
-
create
public static InboundTransfer create(InboundTransferCreateParams params, RequestOptions options) throws StripeException Creates an InboundTransfer.- Throws:
StripeException
-
list
Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(InboundTransferListParams params) throws StripeException Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
list
public static InboundTransferCollection list(InboundTransferListParams params, RequestOptions options) throws StripeException Returns a list of InboundTransfers sent from the specified FinancialAccount.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
public static InboundTransfer retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
retrieve
public static InboundTransfer retrieve(String id, InboundTransferRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing InboundTransfer.- Throws:
StripeException
-
getTestHelpers
-
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 InboundTransfer is able to be canceled. -
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. -
getFailureDetails
Details about this InboundTransfer's failure. Only set when status isfailed
. -
getFinancialAccount
The FinancialAccount that received the funds. -
getHostedRegulatoryReceiptUrl
A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. -
getLinkedFlows
-
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.inbound_transfer
. -
getOriginPaymentMethod
The origin payment method to be debited for an InboundTransfer. -
getOriginPaymentMethodDetails
Details about the PaymentMethod for an InboundTransfer. -
getReturned
Returnstrue
if the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceeded
state. -
getStatementDescriptor
Statement descriptor shown when funds are debited from the source. Not all payment networks supportstatement_descriptor
. -
getStatus
Status of the InboundTransfer:processing
,succeeded
,failed
, andcanceled
. An InboundTransfer isprocessing
if it is created and pending. The status changes tosucceeded
once the funds have been "confirmed" and atransaction
is created and posted. The status changes tofailed
if the transfer fails.One of
canceled
,failed
,processing
, orsucceeded
. -
getStatusTransitions
-
setAmount
Amount (in cents) transferred. -
setCancelable
Returnstrue
if the InboundTransfer is able to be canceled. -
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. -
setFailureDetails
Details about this InboundTransfer's failure. Only set when status isfailed
. -
setFinancialAccount
The FinancialAccount that received the funds. -
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. -
setLinkedFlows
-
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.inbound_transfer
. -
setOriginPaymentMethod
The origin payment method to be debited for an InboundTransfer. -
setOriginPaymentMethodDetails
public void setOriginPaymentMethodDetails(InboundTransfer.OriginPaymentMethodDetails originPaymentMethodDetails) Details about the PaymentMethod for an InboundTransfer. -
setReturned
Returnstrue
if the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceeded
state. -
setStatementDescriptor
Statement descriptor shown when funds are debited from the source. Not all payment networks supportstatement_descriptor
. -
setStatus
Status of the InboundTransfer:processing
,succeeded
,failed
, andcanceled
. An InboundTransfer isprocessing
if it is created and pending. The status changes tosucceeded
once the funds have been "confirmed" and atransaction
is created and posted. The status changes tofailed
if the transfer fails.One of
canceled
,failed
,processing
, orsucceeded
. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-