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
public class Review extends ApiResource implements HasId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod, ApiResource.RequestType
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Review()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Review
approve()
Approve a review.Review
approve(java.util.Map<java.lang.String,java.lang.Object> params)
Approve a review.Review
approve(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Approve a review.protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getCharge()
Charge
getChargeObject()
java.lang.Long
getCreated()
java.lang.String
getId()
java.lang.Boolean
getLivemode()
java.lang.String
getObject()
java.lang.Boolean
getOpen()
java.lang.String
getPaymentIntent()
PaymentIntent
getPaymentIntentObject()
java.lang.String
getReason()
int
hashCode()
static ReviewCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all reviews.static ReviewCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
List all reviews.static Review
retrieve(java.lang.String id)
Retrieve a review.static Review
retrieve(java.lang.String id, RequestOptions options)
Retrieve a review.static Review
retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieve a review.void
setCharge(java.lang.String chargeId)
void
setChargeObject(Charge charge)
void
setCreated(java.lang.Long created)
void
setId(java.lang.String id)
void
setLivemode(java.lang.Boolean livemode)
void
setObject(java.lang.String object)
void
setOpen(java.lang.Boolean open)
void
setPaymentIntent(java.lang.String paymentIntentId)
void
setPaymentIntentObject(PaymentIntent paymentIntent)
void
setReason(java.lang.String reason)
-
Methods inherited from class com.stripe.net.ApiResource
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCharge
public java.lang.String getCharge()
-
setCharge
public void setCharge(java.lang.String chargeId)
-
getChargeObject
public Charge getChargeObject()
-
setChargeObject
public void setChargeObject(Charge charge)
-
getPaymentIntent
public java.lang.String getPaymentIntent()
-
setPaymentIntent
public void setPaymentIntent(java.lang.String paymentIntentId)
-
getPaymentIntentObject
public PaymentIntent getPaymentIntentObject()
-
setPaymentIntentObject
public void setPaymentIntentObject(PaymentIntent paymentIntent)
-
approve
public Review approve() throws StripeException
Approve a review.- Throws:
StripeException
-
approve
public Review approve(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Approve a review.- Throws:
StripeException
-
approve
public Review approve(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Approve a review.- Throws:
StripeException
-
list
public static ReviewCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
List all reviews.- Throws:
StripeException
-
list
public static ReviewCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
List all reviews.- Throws:
StripeException
-
retrieve
public static Review retrieve(java.lang.String id) throws StripeException
Retrieve a review.- Throws:
StripeException
-
retrieve
public static Review retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieve a review.- Throws:
StripeException
-
retrieve
public static Review retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieve a review.- Throws:
StripeException
-
getObject
public java.lang.String getObject()
-
getCreated
public java.lang.Long getCreated()
-
getLivemode
public java.lang.Boolean getLivemode()
-
getOpen
public java.lang.Boolean getOpen()
-
getReason
public java.lang.String getReason()
-
setId
public void setId(java.lang.String id)
-
setObject
public void setObject(java.lang.String object)
-
setCreated
public void setCreated(java.lang.Long created)
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
-
setOpen
public void setOpen(java.lang.Boolean open)
-
setReason
public void setReason(java.lang.String reason)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-