Struct stripe::Review [−][src]
pub struct Review {Show 13 fields
pub id: ReviewId,
pub billing_zip: Option<Box<String>>,
pub charge: Option<Box<Expandable<Charge>>>,
pub closed_reason: Option<Box<ReviewClosedReason>>,
pub created: Timestamp,
pub ip_address: Option<Box<String>>,
pub ip_address_location: Option<Box<RadarReviewResourceLocation>>,
pub livemode: bool,
pub open: bool,
pub opened_reason: ReviewOpenedReason,
pub payment_intent: Option<Box<Expandable<PaymentIntent>>>,
pub reason: ReviewReason,
pub session: Option<Box<RadarReviewResourceSession>>,
}
Expand description
The resource representing a Stripe “RadarReview”.
For more details see https://stripe.com/docs/api/reviews/object
Fields
id: ReviewId
Unique identifier for the object.
billing_zip: Option<Box<String>>
The ZIP or postal code of the card used, if applicable.
charge: Option<Box<Expandable<Charge>>>
The charge associated with this review.
closed_reason: Option<Box<ReviewClosedReason>>
The reason the review was closed, or null if it has not yet been closed.
One of approved
, refunded
, refunded_as_fraud
, disputed
, or redacted
.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
ip_address: Option<Box<String>>
The IP address where the payment originated.
ip_address_location: Option<Box<RadarReviewResourceLocation>>
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.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
open: bool
If true
, the review needs action.
opened_reason: ReviewOpenedReason
The reason the review was opened.
One of rule
or manual
.
payment_intent: Option<Box<Expandable<PaymentIntent>>>
The PaymentIntent ID associated with this review, if one exists.
reason: ReviewReason
The reason the review is currently open or closed.
One of rule
, manual
, approved
, refunded
, refunded_as_fraud
, disputed
, or redacted
.
session: Option<Box<RadarReviewResourceSession>>
Information related to the browsing session of the user who initiated the payment.
Implementations
Returns a list of 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.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Review
impl UnwindSafe for Review
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more