Package com.stripe.model.reserve
Class Hold
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.reserve.Hold
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
A ReserveHold holds a portion of an account's funds until it's released. Stripe or the account's
platform can create a ReserveHold directly, and a ReservePlan creates ReserveHolds automatically
from incoming Charges.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about ReleaseDetail, please refer to the API Reference.static classFor more details about ReleaseSchedule, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAmount reserved.Amount in cents that can be released from this ReserveHold.Time at which the object was created.Indicates which party created this ReserveHold.Three-letter ISO currency code, in lowercase.The balance destination to which the reserved funds are sent.getId()Unique identifier for the object.Whether there are any funds available to release on this ReserveHold.If the object exists in live mode, the value istrue.Set of key-value pairs that you can attach to an object.String representing the object's type.The reason for the ReserveHold.List of ReserveReleases and the amounts released from this ReserveHold.Get ID of expandablereservePlanobject.Get expandedreservePlan.Get ID of expandablesourceChargeobject.Get expandedsourceCharge.Which source balance type this ReserveHold reserves funds from.inthashCode()voidAmount reserved.voidsetAmountReleasable(Long amountReleasable) Amount in cents that can be released from this ReserveHold.voidsetCreated(Long created) Time at which the object was created.voidsetCreatedBy(String createdBy) Indicates which party created this ReserveHold.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDestination(String destination) The balance destination to which the reserved funds are sent.voidUnique identifier for the object.voidsetIsReleasable(Boolean isReleasable) Whether there are any funds available to release on this ReserveHold.voidsetLivemode(Boolean livemode) If the object exists in live mode, the value istrue.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidThe reason for the ReserveHold.voidsetReleaseDetails(List<Hold.ReleaseDetail> releaseDetails) List of ReserveReleases and the amounts released from this ReserveHold.voidsetReleaseSchedule(Hold.ReleaseSchedule releaseSchedule) voidsetReservePlan(String id) voidsetReservePlanObject(Plan expandableObject) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidvoidsetSourceChargeObject(Charge expandableObject) voidsetSourceType(String sourceType) Which source balance type this ReserveHold reserves funds from.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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
-
Hold
public Hold()
-
-
Method Details
-
getReservePlan
Get ID of expandablereservePlanobject. -
setReservePlan
-
getReservePlanObject
Get expandedreservePlan. -
setReservePlanObject
-
getSourceCharge
Get ID of expandablesourceChargeobject. -
setSourceCharge
-
getSourceChargeObject
Get expandedsourceCharge. -
setSourceChargeObject
-
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- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAmount
Amount reserved. A positive integer representing how much is reserved in the smallest currency unit. -
getAmountReleasable
Amount in cents that can be released from this ReserveHold. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCreatedBy
Indicates which party created this ReserveHold.One of
application, orstripe. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDestination
The balance destination to which the reserved funds are sent.One of
other,risk_reserved, orsettlement_reserved. -
getIsReleasable
Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet. -
getLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
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
reserve.hold. -
getReason
The reason for the ReserveHold.One of
charge, orstandalone. -
getReleaseDetails
List of ReserveReleases and the amounts released from this ReserveHold. -
getReleaseSchedule
-
getSourceType
Which source balance type this ReserveHold reserves funds from. One ofbank_account,card, orfpx. -
setAmount
Amount reserved. A positive integer representing how much is reserved in the smallest currency unit. -
setAmountReleasable
Amount in cents that can be released from this ReserveHold. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCreatedBy
Indicates which party created this ReserveHold.One of
application, orstripe. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDestination
The balance destination to which the reserved funds are sent.One of
other,risk_reserved, orsettlement_reserved. -
setId
Unique identifier for the object. -
setIsReleasable
Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet. -
setLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
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
reserve.hold. -
setReason
The reason for the ReserveHold.One of
charge, orstandalone. -
setReleaseDetails
List of ReserveReleases and the amounts released from this ReserveHold. -
setReleaseSchedule
-
setSourceType
Which source balance type this ReserveHold reserves funds from. One ofbank_account,card, orfpx. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-