public class Review extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
Review.Location |
static class |
Review.Session |
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Review() |
Modifier and Type | Method and Description |
---|---|
Review |
approve()
Approves a
Review object, closing it and removing it from the list of reviews. |
Review |
approve(java.util.Map<java.lang.String,java.lang.Object> params)
Approves a
Review object, closing it and removing it from the list of reviews. |
Review |
approve(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Approves a
Review object, closing it and removing it from the list of reviews. |
Review |
approve(RequestOptions options)
Approves a
Review object, closing it and removing it from the list of reviews. |
Review |
approve(ReviewApproveParams params)
Approves a
Review object, closing it and removing it from the list of reviews. |
Review |
approve(ReviewApproveParams params,
RequestOptions options)
Approves a
Review object, closing it and removing it from the list of reviews. |
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBillingZip()
The ZIP or postal code of the card used, if applicable.
|
java.lang.String |
getCharge()
Get ID of expandable
charge object. |
Charge |
getChargeObject()
Get expanded
charge . |
java.lang.String |
getClosedReason()
The reason the review was closed, or null if it has not yet been closed.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getIpAddress()
The IP address where the payment originated.
|
Review.Location |
getIpAddressLocation()
Information related to the location of the payment.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.Boolean |
getOpen()
If
true , the review needs action. |
java.lang.String |
getOpenedReason()
The reason the review was opened.
|
java.lang.String |
getPaymentIntent()
Get ID of expandable
paymentIntent object. |
PaymentIntent |
getPaymentIntentObject()
Get expanded
paymentIntent . |
java.lang.String |
getReason()
The reason the review is currently open or closed.
|
Review.Session |
getSession()
Information related to the browsing session of the user who initiated the payment.
|
int |
hashCode() |
static ReviewCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of
Review objects that have open set to true
. |
static ReviewCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of
Review objects that have open set to true
. |
static ReviewCollection |
list(ReviewListParams params)
Returns a list of
Review objects that have open set to true
. |
static ReviewCollection |
list(ReviewListParams params,
RequestOptions options)
Returns a list of
Review objects that have open set to true
. |
static Review |
retrieve(java.lang.String review)
Retrieves a
Review object. |
static Review |
retrieve(java.lang.String review,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves a
Review object. |
static Review |
retrieve(java.lang.String review,
RequestOptions options)
Retrieves a
Review object. |
static Review |
retrieve(java.lang.String review,
ReviewRetrieveParams params,
RequestOptions options)
Retrieves a
Review object. |
void |
setBillingZip(java.lang.String billingZip)
The ZIP or postal code of the card used, if applicable.
|
void |
setCharge(java.lang.String id) |
void |
setChargeObject(Charge expandableObject) |
void |
setClosedReason(java.lang.String closedReason)
The reason the review was closed, or null if it has not yet been closed.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setIpAddress(java.lang.String ipAddress)
The IP address where the payment originated.
|
void |
setIpAddressLocation(Review.Location ipAddressLocation)
Information related to the location of the payment.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setOpen(java.lang.Boolean open)
If
true , the review needs action. |
void |
setOpenedReason(java.lang.String openedReason)
The reason the review was opened.
|
void |
setPaymentIntent(java.lang.String id) |
void |
setPaymentIntentObject(PaymentIntent expandableObject) |
void |
setReason(java.lang.String reason)
The reason the review is currently open or closed.
|
void |
setSession(Review.Session session)
Information related to the browsing session of the user who initiated the payment.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCharge()
charge
object.public void setCharge(java.lang.String id)
public Charge getChargeObject()
charge
.public void setChargeObject(Charge expandableObject)
public java.lang.String getPaymentIntent()
paymentIntent
object.public void setPaymentIntent(java.lang.String id)
public PaymentIntent getPaymentIntentObject()
paymentIntent
.public void setPaymentIntentObject(PaymentIntent expandableObject)
public static ReviewCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently
created object appearing first.StripeException
public static ReviewCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently
created object appearing first.StripeException
public static ReviewCollection list(ReviewListParams params) throws StripeException
Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently
created object appearing first.StripeException
public static ReviewCollection list(ReviewListParams params, RequestOptions options) throws StripeException
Review
objects that have open
set to true
. The objects are sorted in descending order by creation date, with the most recently
created object appearing first.StripeException
public static Review retrieve(java.lang.String review) throws StripeException
Review
object.StripeException
public static Review retrieve(java.lang.String review, RequestOptions options) throws StripeException
Review
object.StripeException
public static Review retrieve(java.lang.String review, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Review
object.StripeException
public static Review retrieve(java.lang.String review, ReviewRetrieveParams params, RequestOptions options) throws StripeException
Review
object.StripeException
public Review approve() throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public Review approve(RequestOptions options) throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public Review approve(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public Review approve(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public Review approve(ReviewApproveParams params) throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public Review approve(ReviewApproveParams params, RequestOptions options) throws StripeException
Review
object, closing it and removing it from the list of reviews.StripeException
public java.lang.String getBillingZip()
public java.lang.String getClosedReason()
approved
, refunded
, refunded_as_fraud
, or disputed
.public java.lang.Long getCreated()
public java.lang.String getIpAddress()
public Review.Location getIpAddressLocation()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to review
.
public java.lang.Boolean getOpen()
true
, the review needs action.public java.lang.String getOpenedReason()
rule
or manual
.public java.lang.String getReason()
rule
, manual
, approved
, refunded
, refunded_as_fraud
, or disputed
.public Review.Session getSession()
public void setBillingZip(java.lang.String billingZip)
public void setClosedReason(java.lang.String closedReason)
approved
, refunded
, refunded_as_fraud
, or disputed
.public void setCreated(java.lang.Long created)
public void setId(java.lang.String id)
public void setIpAddress(java.lang.String ipAddress)
public void setIpAddressLocation(Review.Location ipAddressLocation)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setObject(java.lang.String object)
Equal to review
.
public void setOpen(java.lang.Boolean open)
true
, the review needs action.public void setOpenedReason(java.lang.String openedReason)
rule
or manual
.public void setReason(java.lang.String reason)
rule
, manual
, approved
, refunded
, refunded_as_fraud
, or disputed
.public void setSession(Review.Session session)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object