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§
Source§impl Clone for GiftCardActivityRedeem
impl Clone for GiftCardActivityRedeem
Source§fn clone(&self) -> GiftCardActivityRedeem
fn clone(&self) -> GiftCardActivityRedeem
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GiftCardActivityRedeem
impl Debug for GiftCardActivityRedeem
Source§impl Default for GiftCardActivityRedeem
impl Default for GiftCardActivityRedeem
Source§fn default() -> GiftCardActivityRedeem
fn default() -> GiftCardActivityRedeem
Source§impl<'de> Deserialize<'de> for GiftCardActivityRedeem
impl<'de> Deserialize<'de> for GiftCardActivityRedeem
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>,
Source§impl PartialEq for GiftCardActivityRedeem
impl PartialEq for GiftCardActivityRedeem
Source§impl Serialize for GiftCardActivityRedeem
impl Serialize for GiftCardActivityRedeem
impl Eq for GiftCardActivityRedeem
impl StructuralPartialEq for GiftCardActivityRedeem
Auto Trait Implementations§
impl Freeze for GiftCardActivityRedeem
impl RefUnwindSafe for GiftCardActivityRedeem
impl Send for GiftCardActivityRedeem
impl Sync for GiftCardActivityRedeem
impl Unpin for GiftCardActivityRedeem
impl UnwindSafe for GiftCardActivityRedeem
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.