Package com.stripe.model
Class BalanceTransfer
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.BalanceTransfer
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
Balance transfers represent funds moving between balance types on your Stripe account. They
currently support moving funds between your Stripe balance and your Issuing balance and between your Allocated Funds balance and your
Stripe balance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about DestinationBalance, please refer to the API Reference.static classFor more details about SourceBalance, 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 TypeMethodDescriptionprotected booleanstatic BalanceTransfercreate(BalanceTransferCreateParams params) Creates a balance transfer.static BalanceTransfercreate(BalanceTransferCreateParams params, RequestOptions options) Creates a balance transfer.static BalanceTransferCreates a balance transfer.static BalanceTransfercreate(Map<String, Object> params, RequestOptions options) Creates a balance transfer.booleanA positive integer representing how much was transferred in the smallest currency unit.Time at which the object was created.Three-letter ISO currency code, in lowercase.The balance that funds were transferred to.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.The balance that funds were transferred from.inthashCode()voidA positive integer representing how much was transferred in the smallest currency unit.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDestinationBalance(BalanceTransfer.DestinationBalance destinationBalance) The balance that funds were transferred to.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) Get expandedbalanceTransaction.voidsetSourceBalance(BalanceTransfer.SourceBalance sourceBalance) The balance that funds were transferred from.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
-
BalanceTransfer
public BalanceTransfer()
-
-
Method Details
-
create
Creates a balance transfer. For Issuing use cases, funds will be debited immediately from the source balance and credited to the destination balance immediately (if your account is based in the US) or next-business-day (if your account is based in the EU). For Segregated Separate Charges and Transfers use cases, funds will be debited immediately from the source balance and credited immediately to the destination balance.- Throws:
StripeException
-
create
public static BalanceTransfer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a balance transfer. For Issuing use cases, funds will be debited immediately from the source balance and credited to the destination balance immediately (if your account is based in the US) or next-business-day (if your account is based in the EU). For Segregated Separate Charges and Transfers use cases, funds will be debited immediately from the source balance and credited immediately to the destination balance.- Throws:
StripeException
-
create
Creates a balance transfer. For Issuing use cases, funds will be debited immediately from the source balance and credited to the destination balance immediately (if your account is based in the US) or next-business-day (if your account is based in the EU). For Segregated Separate Charges and Transfers use cases, funds will be debited immediately from the source balance and credited immediately to the destination balance.- Throws:
StripeException
-
create
public static BalanceTransfer create(BalanceTransferCreateParams params, RequestOptions options) throws StripeException Creates a balance transfer. For Issuing use cases, funds will be debited immediately from the source balance and credited to the destination balance immediately (if your account is based in the US) or next-business-day (if your account is based in the EU). For Segregated Separate Charges and Transfers use cases, funds will be debited immediately from the source balance and credited immediately to the destination balance.- Throws:
StripeException
-
setResponseGetter
Get expandedbalanceTransaction.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAmount
A positive integer representing how much was transferred in the smallest currency unit. -
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. -
getDestinationBalance
The balance that funds were transferred to. -
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
balance_transfer. -
getSourceBalance
The balance that funds were transferred from. One ofcard,fpx, orbank_account. -
setAmount
A positive integer representing how much was transferred in the smallest currency unit. -
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. -
setDestinationBalance
The balance that funds were transferred to. -
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
balance_transfer. -
setSourceBalance
The balance that funds were transferred from. One ofcard,fpx, orbank_account. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-