Struct square_api_client::models::GiftCardActivityRedeem
source · [−]pub struct GiftCardActivityRedeem {
pub amount_money: Money,
pub payment_id: Option<String>,
pub reference_id: Option<String>,
pub status: Option<GiftCardActivityRedeemStatus>,
}
Expand description
Represents details about a REDEEM
gift card activity type.
Fields
amount_money: Money
The amount deducted from the gift card for the redemption. This value is a positive integer.
Applications that use a custom order processing system must specify this amount in the CreateGiftCardActivity request.
payment_id: Option<String>
Read only The ID of the payment that represents the gift card redemption. Square populates this field if the payment was processed by Square.
reference_id: Option<String>
A client-specified ID that associates the gift card activity with an entity in another system.
Applications that use a custom order processing system can use this field to track information related to an order or payment.
status: Option<GiftCardActivityRedeemStatus>
Read only The status of the gift card redemption. Gift cards redeemed from Square Point
of Sale or the Square Seller Dashboard use a two-state process: PENDING
to COMPLETED
or
PENDING
to CANCELED
. Gift cards redeemed using the Gift Card Activities API always have
a COMPLETED
status.
Trait Implementations
sourceimpl Clone for GiftCardActivityRedeem
impl Clone for GiftCardActivityRedeem
sourcefn clone(&self) -> GiftCardActivityRedeem
fn clone(&self) -> GiftCardActivityRedeem
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for GiftCardActivityRedeem
impl Debug for GiftCardActivityRedeem
sourceimpl Default for GiftCardActivityRedeem
impl Default for GiftCardActivityRedeem
sourcefn default() -> GiftCardActivityRedeem
fn default() -> GiftCardActivityRedeem
sourceimpl<'de> Deserialize<'de> for GiftCardActivityRedeem
impl<'de> Deserialize<'de> for GiftCardActivityRedeem
sourcefn 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>,
sourceimpl PartialEq<GiftCardActivityRedeem> for GiftCardActivityRedeem
impl PartialEq<GiftCardActivityRedeem> for GiftCardActivityRedeem
sourcefn eq(&self, other: &GiftCardActivityRedeem) -> bool
fn eq(&self, other: &GiftCardActivityRedeem) -> bool
sourceimpl Serialize for GiftCardActivityRedeem
impl Serialize for GiftCardActivityRedeem
impl Eq for GiftCardActivityRedeem
impl StructuralEq for GiftCardActivityRedeem
impl StructuralPartialEq for GiftCardActivityRedeem
Auto Trait Implementations
impl RefUnwindSafe for GiftCardActivityRedeem
impl Send for GiftCardActivityRedeem
impl Sync for GiftCardActivityRedeem
impl Unpin for GiftCardActivityRedeem
impl UnwindSafe for GiftCardActivityRedeem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.