#[non_exhaustive]pub enum DisputeStatus {
EarlyWarning,
WarningNeedsResponse,
WarningUnderReview,
WarningClosed,
NeedsResponse,
UnderReview,
Won,
Lost,
Prevented,
Other(String),
}Expand description
Where a dispute (a chargeback, or the inquiry before one) stands, in the
shape issue #602 set out, plus the two states a Merchant of Record reports
around it. The provider’s own spelling is kept on
Dispute::provider_status; DisputeStatus::phase is the coarse
lifecycle a venture reacts to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EarlyWarning
A pre-dispute signal from the card network (Polar early_warning); no
chargeback has been filed yet.
WarningNeedsResponse
An inquiry that wants a response (Stripe warning_needs_response).
WarningUnderReview
An inquiry under review (Stripe warning_under_review).
WarningClosed
An inquiry that closed without becoming a chargeback (Stripe
warning_closed).
NeedsResponse
A chargeback that wants evidence (needs_response).
UnderReview
Evidence submitted, the issuer is deciding (under_review).
Won
Decided for the merchant: the funds come back.
Lost
Decided for the cardholder: the funds stay withdrawn.
Prevented
Headed off by a refund before it escalated (prevented): no
chargeback, and no dispute fee.
Other(String)
A status this version does not know; the raw value is kept.
Implementations§
Source§impl DisputeStatus
impl DisputeStatus
Sourcepub fn from_provider(status: &str) -> Self
pub fn from_provider(status: &str) -> Self
Maps a provider status string (Polar’s and Stripe’s spellings) to a
status; anything unknown is kept as DisputeStatus::Other.
Sourcepub fn phase(&self) -> DisputePhase
pub fn phase(&self) -> DisputePhase
The lifecycle phase this status is in. An unknown status counts as
DisputePhase::Open: the cautious reading, since a venture that
flags on open keeps the flag until a known terminal status arrives.
Trait Implementations§
Source§impl Clone for DisputeStatus
impl Clone for DisputeStatus
Source§impl Debug for DisputeStatus
impl Debug for DisputeStatus
impl Eq for DisputeStatus
Source§impl PartialEq for DisputeStatus
impl PartialEq for DisputeStatus
impl StructuralPartialEq for DisputeStatus
Auto Trait Implementations§
impl Freeze for DisputeStatus
impl RefUnwindSafe for DisputeStatus
impl Send for DisputeStatus
impl Sync for DisputeStatus
impl Unpin for DisputeStatus
impl UnsafeUnpin for DisputeStatus
impl UnwindSafe for DisputeStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.