Package com.stripe.model.reserve
Class Plan
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.reserve.Plan
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
ReservePlans are used to automatically place holds on a merchant's funds until the plan expires.
It takes a portion of each incoming Charge (including those resulting from a Transfer from a
platform account).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FixedRelease, please refer to the API Reference.static classFor more details about RollingRelease, 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 booleanbooleanTime at which the object was created.Indicates which party created this ReservePlan.Three-letter ISO currency code, in lowercase.Time at which the ReservePlan was disabled.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 percent of each Charge to reserve.The current status of the ReservePlan.getType()The type of the ReservePlan.inthashCode()static PlanRetrieve a ReservePlan.static Planretrieve(String id, RequestOptions options) Retrieve a ReservePlan.static Planretrieve(String id, PlanRetrieveParams params, RequestOptions options) Retrieve a ReservePlan.static PlanRetrieve a ReservePlan.voidsetCreated(Long created) Time at which the object was created.voidsetCreatedBy(String createdBy) Indicates which party created this ReservePlan.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDisabledAt(Long disabledAt) Time at which the ReservePlan was disabled.voidsetFixedRelease(Plan.FixedRelease fixedRelease) 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.voidsetPercent(Long percent) The percent of each Charge to reserve.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetRollingRelease(Plan.RollingRelease rollingRelease) voidThe current status of the ReservePlan.voidThe type of the ReservePlan.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
-
Plan
public Plan()
-
-
Method Details
-
retrieve
Retrieve a ReservePlan.- Throws:
StripeException
-
retrieve
Retrieve a ReservePlan.- Throws:
StripeException
-
retrieve
public static Plan retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a ReservePlan.- Throws:
StripeException
-
retrieve
public static Plan retrieve(String id, PlanRetrieveParams params, RequestOptions options) throws StripeException Retrieve a ReservePlan.- 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.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCreatedBy
Indicates which party created this ReservePlan.One of
application, orstripe. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. An unset currency indicates that the plan applies to all currencies. -
getDisabledAt
Time at which the ReservePlan was disabled. -
getFixedRelease
-
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.plan. -
getPercent
The percent of each Charge to reserve. -
getRollingRelease
-
getStatus
The current status of the ReservePlan. The ReservePlan only affects charges if it isactive.One of
active,disabled, orexpired. -
getType
The type of the ReservePlan.One of
fixed_release, orrolling_release. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCreatedBy
Indicates which party created this ReservePlan.One of
application, orstripe. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. An unset currency indicates that the plan applies to all currencies. -
setDisabledAt
Time at which the ReservePlan was disabled. -
setFixedRelease
-
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
reserve.plan. -
setPercent
The percent of each Charge to reserve. -
setRollingRelease
-
setStatus
The current status of the ReservePlan. The ReservePlan only affects charges if it isactive.One of
active,disabled, orexpired. -
setType
The type of the ReservePlan.One of
fixed_release, orrolling_release. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-