Package com.stripe.model.reserve
Class Hold
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.reserve.Hold
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about ReleaseSchedule, 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 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.getId()Unique identifier for the object.Whether there are any funds available to release on this ReserveHold.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 reason for the ReserveHold.Get ID of expandablereservePlanobject.Get expandedreservePlan.Get ID of expandablesourceChargeobject.Get expandedsourceCharge.Which source balance type this ReserveHold reserves funds from.inthashCode()static HoldCollectionlist(HoldListParams params) Returns a list of ReserveHolds previously created.static HoldCollectionlist(HoldListParams params, RequestOptions options) Returns a list of ReserveHolds previously created.static HoldCollectionReturns a list of ReserveHolds previously created.static HoldCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of ReserveHolds previously created.static HoldRetrieve a ReserveHold.static Holdretrieve(String id, RequestOptions options) Retrieve a ReserveHold.static Holdretrieve(String id, HoldRetrieveParams params, RequestOptions options) Retrieve a ReserveHold.static HoldRetrieve a ReserveHold.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.voidUnique identifier for the object.voidsetIsReleasable(Boolean isReleasable) Whether there are any funds available to release on this ReserveHold.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.voidThe reason for the 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.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
-
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
-
list
Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.- Throws:
StripeException
-
list
public static HoldCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.- Throws:
StripeException
-
list
Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.- Throws:
StripeException
-
list
public static HoldCollection list(HoldListParams params, RequestOptions options) throws StripeException Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.- Throws:
StripeException
-
retrieve
Retrieve a ReserveHold.- Throws:
StripeException
-
retrieve
Retrieve a ReserveHold.- Throws:
StripeException
-
retrieve
public static Hold retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a ReserveHold.- Throws:
StripeException
-
retrieve
public static Hold retrieve(String id, HoldRetrieveParams params, RequestOptions options) throws StripeException Retrieve a ReserveHold.- Throws:
StripeException
-
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 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. -
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
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
reserve.hold. -
getReason
The reason for the ReserveHold.One of
charge, orstandalone. -
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. -
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
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
reserve.hold. -
setReason
The reason for the ReserveHold.One of
charge, orstandalone. -
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.
-