Package com.stripe.model
Class Review
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.Review
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapprove()
Approves aReview
object, closing it and removing it from the list of reviews.approve
(RequestOptions options) Approves aReview
object, closing it and removing it from the list of reviews.approve
(ReviewApproveParams params) Approves aReview
object, closing it and removing it from the list of reviews.approve
(ReviewApproveParams params, RequestOptions options) Approves aReview
object, closing it and removing it from the list of reviews.Approves aReview
object, closing it and removing it from the list of reviews.approve
(Map<String, Object> params, RequestOptions options) Approves aReview
object, closing it and removing it from the list of reviews.protected boolean
boolean
The ZIP or postal code of the card used, if applicable.Get ID of expandablecharge
object.Get expandedcharge
.The reason the review was closed, or null if it has not yet been closed.Time at which the object was created.getId()
Unique identifier for the object.The IP address where the payment originated.Information related to the location of the payment.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.getOpen()
Iftrue
, the review needs action.The reason the review was opened.Get ID of expandablepaymentIntent
object.Get expandedpaymentIntent
.The reason the review is currently open or closed.Information related to the browsing session of the user who initiated the payment.int
hashCode()
static ReviewCollection
list
(ReviewListParams params) Returns a list ofReview
objects that haveopen
set totrue
.static ReviewCollection
list
(ReviewListParams params, RequestOptions options) Returns a list ofReview
objects that haveopen
set totrue
.static ReviewCollection
Returns a list ofReview
objects that haveopen
set totrue
.static ReviewCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list ofReview
objects that haveopen
set totrue
.static Review
Retrieves aReview
object.static Review
retrieve
(String review, RequestOptions options) Retrieves aReview
object.static Review
retrieve
(String review, ReviewRetrieveParams params, RequestOptions options) Retrieves aReview
object.static Review
Retrieves aReview
object.void
setBillingZip
(String billingZip) The ZIP or postal code of the card used, if applicable.void
void
setChargeObject
(Charge expandableObject) void
setClosedReason
(String closedReason) The reason the review was closed, or null if it has not yet been closed.void
setCreated
(Long created) Time at which the object was created.void
Unique identifier for the object.void
setIpAddress
(String ipAddress) The IP address where the payment originated.void
setIpAddressLocation
(Review.IpAddressLocation ipAddressLocation) Information related to the location of the payment.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
Iftrue
, the review needs action.void
setOpenedReason
(String openedReason) The reason the review was opened.void
void
setPaymentIntentObject
(PaymentIntent expandableObject) void
The reason the review is currently open or closed.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setSession
(Review.Session session) Information related to the browsing session of the user who initiated the payment.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Review
public Review()
-
-
Method Details
-
getCharge
Get ID of expandablecharge
object. -
setCharge
-
getChargeObject
Get expandedcharge
. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntent
object. -
setPaymentIntent
-
getPaymentIntentObject
Get expandedpaymentIntent
. -
setPaymentIntentObject
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReview
object, closing it and removing it from the list of reviews.- Throws:
StripeException
-
list
Returns a list ofReview
objects that haveopen
set totrue
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ReviewCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list ofReview
objects that haveopen
set totrue
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list ofReview
objects that haveopen
set totrue
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static ReviewCollection list(ReviewListParams params, RequestOptions options) throws StripeException Returns a list ofReview
objects that haveopen
set totrue
. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aReview
object.- Throws:
StripeException
-
retrieve
Retrieves aReview
object.- Throws:
StripeException
-
retrieve
public static Review retrieve(String review, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aReview
object.- Throws:
StripeException
-
retrieve
public static Review retrieve(String review, ReviewRetrieveParams params, RequestOptions options) throws StripeException Retrieves aReview
object.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getBillingZip
The ZIP or postal code of the card used, if applicable. -
getClosedReason
The reason the review was closed, or null if it has not yet been closed. One ofapproved
,refunded
,refunded_as_fraud
,disputed
, orredacted
. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getIpAddress
The IP address where the payment originated. -
getIpAddressLocation
Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
review
. -
getOpen
Iftrue
, the review needs action. -
getOpenedReason
The reason the review was opened. One ofrule
ormanual
. -
getReason
The reason the review is currently open or closed. One ofrule
,manual
,approved
,refunded
,refunded_as_fraud
,disputed
, orredacted
. -
getSession
Information related to the browsing session of the user who initiated the payment. -
setBillingZip
The ZIP or postal code of the card used, if applicable. -
setClosedReason
The reason the review was closed, or null if it has not yet been closed. One ofapproved
,refunded
,refunded_as_fraud
,disputed
, orredacted
. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setId
Unique identifier for the object. -
setIpAddress
The IP address where the payment originated. -
setIpAddressLocation
Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
review
. -
setOpen
Iftrue
, the review needs action. -
setOpenedReason
The reason the review was opened. One ofrule
ormanual
. -
setReason
The reason the review is currently open or closed. One ofrule
,manual
,approved
,refunded
,refunded_as_fraud
,disputed
, orredacted
. -
setSession
Information related to the browsing session of the user who initiated the payment. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-