Class Release

All Implemented Interfaces:
HasId, StripeActiveObject, StripeObjectInterface

public class Release extends ApiResource implements HasId
ReserveReleases represent the release of funds from a ReserveHold.
  • Constructor Details

    • Release

      public Release()
  • Method Details

    • getReserveHold

      public String getReserveHold()
      Get ID of expandable reserveHold object.
    • setReserveHold

      public void setReserveHold(String id)
    • getReserveHoldObject

      public Hold getReserveHoldObject()
      Get expanded reserveHold.
    • setReserveHoldObject

      public void setReserveHoldObject(Hold expandableObject)
    • getReservePlan

      public String getReservePlan()
      Get ID of expandable reservePlan object.
    • setReservePlan

      public void setReservePlan(String id)
    • getReservePlanObject

      public Plan getReservePlanObject()
      Get expanded reservePlan.
    • setReservePlanObject

      public void setReservePlanObject(Plan expandableObject)
    • list

      public static ReleaseCollection list(Map<String,Object> params) throws StripeException
      Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
      Throws:
      StripeException
    • list

      public static ReleaseCollection list(Map<String,Object> params, RequestOptions options) throws StripeException
      Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
      Throws:
      StripeException
    • list

      public static ReleaseCollection list(ReleaseListParams params) throws StripeException
      Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
      Throws:
      StripeException
    • list

      public static ReleaseCollection list(ReleaseListParams params, RequestOptions options) throws StripeException
      Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
      Throws:
      StripeException
    • retrieve

      public static Release retrieve(String id) throws StripeException
      Retrieve a ReserveRelease.
      Throws:
      StripeException
    • retrieve

      public static Release retrieve(String id, RequestOptions options) throws StripeException
      Retrieve a ReserveRelease.
      Throws:
      StripeException
    • retrieve

      public static Release retrieve(String id, Map<String,Object> params, RequestOptions options) throws StripeException
      Retrieve a ReserveRelease.
      Throws:
      StripeException
    • retrieve

      public static Release retrieve(String id, ReleaseRetrieveParams params, RequestOptions options) throws StripeException
      Retrieve a ReserveRelease.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      Description copied from interface: StripeActiveObject
      Method is used by the containing object or StripeResponseGetter implementations to set the StripeResponseGetter instance used to make further requests.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getAmount

      public Long getAmount()
      Amount released. A positive integer representing how much is released in the smallest currency unit.
    • getCreated

      public Long getCreated()
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • getCreatedBy

      public String getCreatedBy()
      Indicates which party created this ReserveRelease.

      One of application, or stripe.

    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getMetadata

      public Map<String,String> 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

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to reserve.release.

    • getReason

      public String getReason()
      The reason for the ReserveRelease, indicating why the funds were released.

      One of bulk_hold_expiry, hold_released_early, hold_reversed, or plan_disabled.

    • getReleasedAt

      public Long getReleasedAt()
      The release timestamp of the funds.
    • getSourceTransaction

      public Release.SourceTransaction getSourceTransaction()
    • setAmount

      public void setAmount(Long amount)
      Amount released. A positive integer representing how much is released in the smallest currency unit.
    • setCreated

      public void setCreated(Long created)
      Time at which the object was created. Measured in seconds since the Unix epoch.
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Indicates which party created this ReserveRelease.

      One of application, or stripe.

    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      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

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to reserve.release.

    • setReason

      public void setReason(String reason)
      The reason for the ReserveRelease, indicating why the funds were released.

      One of bulk_hold_expiry, hold_released_early, hold_reversed, or plan_disabled.

    • setReleasedAt

      public void setReleasedAt(Long releasedAt)
      The release timestamp of the funds.
    • setSourceTransaction

      public void setSourceTransaction(Release.SourceTransaction sourceTransaction)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId