pub enum PaymentSessionStatus {
Show 14 variants
Created,
Canceled,
AuthorizationPending,
AuthorizationSucceeded,
AuthorizationFailed,
CapturePending,
CaptureSucceeded,
CaptureFailed,
VoidPending,
VoidSucceeded,
VoidFailed,
RefundPending,
RefundSucceeded,
RefundFailed,
}Expand description
The most recent meaningful event on the payment session.
For session-level milestones the value is one of created or canceled. For action outcomes the value follows the pattern {action}_{result} — e.g. authorization_succeeded, capture_pending, refund_failed.
JSON schema
{
"description": "The most recent meaningful event on the payment session.\nFor session-level milestones the value is one of `created` or `canceled`. For action outcomes the value follows the pattern `{action}_{result}` — e.g. `authorization_succeeded`, `capture_pending`, `refund_failed`.",
"examples": [
"created"
],
"type": "string",
"enum": [
"created",
"canceled",
"authorization_pending",
"authorization_succeeded",
"authorization_failed",
"capture_pending",
"capture_succeeded",
"capture_failed",
"void_pending",
"void_succeeded",
"void_failed",
"refund_pending",
"refund_succeeded",
"refund_failed"
],
"x-enum-varnames": [
"PaymentSessionStatusCreated",
"PaymentSessionStatusCanceled",
"PaymentSessionStatusAuthorizationPending",
"PaymentSessionStatusAuthorizationSucceeded",
"PaymentSessionStatusAuthorizationFailed",
"PaymentSessionStatusCapturePending",
"PaymentSessionStatusCaptureSucceeded",
"PaymentSessionStatusCaptureFailed",
"PaymentSessionStatusVoidPending",
"PaymentSessionStatusVoidSucceeded",
"PaymentSessionStatusVoidFailed",
"PaymentSessionStatusRefundPending",
"PaymentSessionStatusRefundSucceeded",
"PaymentSessionStatusRefundFailed"
]
}Variants§
Created
Canceled
AuthorizationPending
AuthorizationSucceeded
AuthorizationFailed
CapturePending
CaptureSucceeded
CaptureFailed
VoidPending
VoidSucceeded
VoidFailed
RefundPending
RefundSucceeded
RefundFailed
Trait Implementations§
Source§impl Clone for PaymentSessionStatus
impl Clone for PaymentSessionStatus
impl Copy for PaymentSessionStatus
Source§impl Debug for PaymentSessionStatus
impl Debug for PaymentSessionStatus
Source§impl<'de> Deserialize<'de> for PaymentSessionStatus
impl<'de> Deserialize<'de> for PaymentSessionStatus
Source§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
Source§impl Display for PaymentSessionStatus
impl Display for PaymentSessionStatus
impl Eq for PaymentSessionStatus
Source§impl From<&PaymentSessionStatus> for PaymentSessionStatus
impl From<&PaymentSessionStatus> for PaymentSessionStatus
Source§fn from(value: &PaymentSessionStatus) -> Self
fn from(value: &PaymentSessionStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for PaymentSessionStatus
impl FromStr for PaymentSessionStatus
Source§impl Hash for PaymentSessionStatus
impl Hash for PaymentSessionStatus
Source§impl Ord for PaymentSessionStatus
impl Ord for PaymentSessionStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PaymentSessionStatus
impl PartialEq for PaymentSessionStatus
Source§impl PartialOrd for PaymentSessionStatus
impl PartialOrd for PaymentSessionStatus
Source§impl Serialize for PaymentSessionStatus
impl Serialize for PaymentSessionStatus
impl StructuralPartialEq for PaymentSessionStatus
Source§impl TryFrom<&String> for PaymentSessionStatus
impl TryFrom<&String> for PaymentSessionStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for PaymentSessionStatus
impl TryFrom<&str> for PaymentSessionStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for PaymentSessionStatus
impl TryFrom<String> for PaymentSessionStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PaymentSessionStatus
impl RefUnwindSafe for PaymentSessionStatus
impl Send for PaymentSessionStatus
impl Sync for PaymentSessionStatus
impl Unpin for PaymentSessionStatus
impl UnsafeUnpin for PaymentSessionStatus
impl UnwindSafe for PaymentSessionStatus
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.