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
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about IpAddressLocation, please refer to the API Reference.static classFor more details about Session, 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 TypeMethodDescriptionapprove()Approves aReviewobject, closing it and removing it from the list of reviews.approve(RequestOptions options) Approves aReviewobject, closing it and removing it from the list of reviews.approve(ReviewApproveParams params) Approves aReviewobject, closing it and removing it from the list of reviews.approve(ReviewApproveParams params, RequestOptions options) Approves aReviewobject, closing it and removing it from the list of reviews.Approves aReviewobject, closing it and removing it from the list of reviews.approve(Map<String, Object> params, RequestOptions options) Approves aReviewobject, closing it and removing it from the list of reviews.protected booleanbooleanThe ZIP or postal code of the card used, if applicable.Get ID of expandablechargeobject.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 valuetrueif the object exists in live mode or the valuefalseif 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 expandablepaymentIntentobject.Get expandedpaymentIntent.The reason the review is currently open or closed.Information related to the browsing session of the user who initiated the payment.inthashCode()static ReviewCollectionlist(ReviewListParams params) Returns a list ofReviewobjects that haveopenset totrue.static ReviewCollectionlist(ReviewListParams params, RequestOptions options) Returns a list ofReviewobjects that haveopenset totrue.static ReviewCollectionReturns a list ofReviewobjects that haveopenset totrue.static ReviewCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list ofReviewobjects that haveopenset totrue.static ReviewRetrieves aReviewobject.static Reviewretrieve(String review, RequestOptions options) Retrieves aReviewobject.static Reviewretrieve(String review, ReviewRetrieveParams params, RequestOptions options) Retrieves aReviewobject.static ReviewRetrieves aReviewobject.voidsetBillingZip(String billingZip) The ZIP or postal code of the card used, if applicable.voidvoidsetChargeObject(Charge expandableObject) voidsetClosedReason(String closedReason) The reason the review was closed, or null if it has not yet been closed.voidsetCreated(Long created) Time at which the object was created.voidUnique identifier for the object.voidsetIpAddress(String ipAddress) The IP address where the payment originated.voidsetIpAddressLocation(Review.IpAddressLocation ipAddressLocation) Information related to the location of the payment.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidIftrue, the review needs action.voidsetOpenedReason(String openedReason) The reason the review was opened.voidvoidsetPaymentIntentObject(PaymentIntent expandableObject) voidThe reason the review is currently open or closed.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSession(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, 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
-
Review
public Review()
-
-
Method Details
-
getCharge
Get ID of expandablechargeobject. -
setCharge
-
getChargeObject
Get expandedcharge. -
setChargeObject
-
getPaymentIntent
Get ID of expandablepaymentIntentobject. -
setPaymentIntent
-
getPaymentIntentObject
Get expandedpaymentIntent. -
setPaymentIntentObject
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
approve
Approves aReviewobject, closing it and removing it from the list of reviews.- Throws:
StripeException
-
list
Returns a list ofReviewobjects that haveopenset 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 ofReviewobjects that haveopenset 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 ofReviewobjects that haveopenset 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 ofReviewobjects that haveopenset totrue. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves aReviewobject.- Throws:
StripeException
-
retrieve
Retrieves aReviewobject.- Throws:
StripeException
-
retrieve
public static Review retrieve(String review, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves aReviewobject.- Throws:
StripeException
-
retrieve
public static Review retrieve(String review, ReviewRetrieveParams params, RequestOptions options) throws StripeException Retrieves aReviewobject.- 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.
-
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,redacted,canceled,payment_never_settled, oracknowledged. -
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 valuetrueif the object exists in live mode or the valuefalseif 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 ofruleormanual. -
getReason
The reason the review is currently open or closed. One ofrule,manual,approved,refunded,refunded_as_fraud,disputed,redacted,canceled,payment_never_settled, oracknowledged. -
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,redacted,canceled,payment_never_settled, oracknowledged. -
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 valuetrueif the object exists in live mode or the valuefalseif 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 ofruleormanual. -
setReason
The reason the review is currently open or closed. One ofrule,manual,approved,refunded,refunded_as_fraud,disputed,redacted,canceled,payment_never_settled, oracknowledged. -
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.
-