Struct Review

Source
pub struct Review {
Show 13 fields pub billing_zip: Option<String>, pub charge: Option<Expandable<Charge>>, pub closed_reason: Option<ReviewClosedReason>, pub created: Timestamp, pub id: ReviewId, pub ip_address: Option<String>, pub ip_address_location: Option<RadarReviewResourceLocation>, pub livemode: bool, pub open: bool, pub opened_reason: ReviewOpenedReason, pub payment_intent: Option<Expandable<PaymentIntent>>, pub reason: String, pub session: Option<RadarReviewResourceSession>,
}
Expand description

Reviews can be used to supplement automated fraud detection with human expertise.

Learn more about Radar and reviewing payments here.

For more details see <https://stripe.com/docs/api/radar/reviews/object>.

Fields§

§billing_zip: Option<String>

The ZIP or postal code of the card used, if applicable.

§charge: Option<Expandable<Charge>>

The charge associated with this review.

§closed_reason: Option<ReviewClosedReason>

The reason the review was closed, or null if it has not yet been closed. One of approved, refunded, refunded_as_fraud, disputed, redacted, or canceled.

§created: Timestamp

Time at which the object was created. Measured in seconds since the Unix epoch.

§id: ReviewId

Unique identifier for the object.

§ip_address: Option<String>

The IP address where the payment originated.

§ip_address_location: Option<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<Expandable<PaymentIntent>>

The PaymentIntent ID associated with this review, if one exists.

§reason: String

The reason the review is currently open or closed. One of rule, manual, approved, refunded, refunded_as_fraud, disputed, redacted, or canceled.

§session: Option<RadarReviewResourceSession>

Information related to the browsing session of the user who initiated the payment.

Trait Implementations§

Source§

impl Clone for Review

Source§

fn clone(&self) -> Review

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Review

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserialize for Review

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more
Source§

impl FromValueOpt for Review

Source§

impl Object for Review

Source§

type Id = ReviewId

The canonical id type for this object.
Source§

fn id(&self) -> &Self::Id

The id of the object.
Source§

fn into_id(self) -> Self::Id

The owned id of the object.
Source§

impl ObjectDeser for Review

Auto Trait Implementations§

§

impl Freeze for Review

§

impl RefUnwindSafe for Review

§

impl Send for Review

§

impl Sync for Review

§

impl Unpin for Review

§

impl UnwindSafe for Review

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.