pub enum GiftCardActivityRedeemStatus {
Pending,
Completed,
Canceled,
}
Expand description
Indicates the status of a gift card redemption.
This status is relevant only for redemptions made from Square products (such as Square Point of
Sale) because Square products use a two-state process. Gift cards redeemed using the Gift Card
Activities API always have a COMPLETED
status.
Variants§
Pending
The gift card redemption is pending. PENDING
is a temporary status that applies when a
gift card is redeemed from Square Point of Sale or another Square product. A PENDING
status is updated to COMPLETED
if the payment is captured or CANCELED
if the
authorization is voided.
Completed
The gift card redemption is completed.
Canceled
The gift card redemption is canceled. A redemption is canceled if the authorization on the gift card is voided.
Trait Implementations§
Source§impl Clone for GiftCardActivityRedeemStatus
impl Clone for GiftCardActivityRedeemStatus
Source§fn clone(&self) -> GiftCardActivityRedeemStatus
fn clone(&self) -> GiftCardActivityRedeemStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GiftCardActivityRedeemStatus
impl Debug for GiftCardActivityRedeemStatus
Source§impl<'de> Deserialize<'de> for GiftCardActivityRedeemStatus
impl<'de> Deserialize<'de> for GiftCardActivityRedeemStatus
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 PartialEq for GiftCardActivityRedeemStatus
impl PartialEq for GiftCardActivityRedeemStatus
Source§fn eq(&self, other: &GiftCardActivityRedeemStatus) -> bool
fn eq(&self, other: &GiftCardActivityRedeemStatus) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for GiftCardActivityRedeemStatus
impl StructuralPartialEq for GiftCardActivityRedeemStatus
Auto Trait Implementations§
impl Freeze for GiftCardActivityRedeemStatus
impl RefUnwindSafe for GiftCardActivityRedeemStatus
impl Send for GiftCardActivityRedeemStatus
impl Sync for GiftCardActivityRedeemStatus
impl Unpin for GiftCardActivityRedeemStatus
impl UnwindSafe for GiftCardActivityRedeemStatus
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,
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
Compare self to
key
and return true
if they are equal.