pub struct GiftCardActivityRefund {
pub amount_money: Option<Money>,
pub payment_id: Option<String>,
pub redeem_activity_id: Option<String>,
pub reference_id: Option<String>,
}
Expand description
Represents details about a REFUND
gift card activity type.
Fields§
§amount_money: Option<Money>
The amount added to the gift card for the refund. This value is a positive integer.
This field is required when creating a REFUND
activity. The amount can represent a full or
partial refund.
payment_id: Option<String>
Read only The ID of the refunded payment. Square populates this field if the refund is for a payment processed by Square and one of the following conditions is true:
- The Refunds API is used to refund a gift card payment to the same gift card.
- A seller initiated the refund from Square Point of Sale or the Seller Dashboard. The payment source can be the same gift card or a cross-tender payment from a credit card or a different gift card.
redeem_activity_id: Option<String>
The ID of the refunded REDEEM
gift card activity. Square populates this field if the
payment_id
in the corresponding
RefundPayment
request represents a redemption made by the same gift card. Note that you must use
RefundPayment
to refund a gift card payment to the same gift card if the payment was
processed by Square.
For applications that use a custom payment processing system, this field is required when
creating a REFUND
activity. The provided REDEEM
activity ID must be linked to the same
gift card.
reference_id: Option<String>
A client-specified ID that associates the gift card activity with an entity in another system.
Trait Implementations§
Source§impl Clone for GiftCardActivityRefund
impl Clone for GiftCardActivityRefund
Source§fn clone(&self) -> GiftCardActivityRefund
fn clone(&self) -> GiftCardActivityRefund
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 GiftCardActivityRefund
impl Debug for GiftCardActivityRefund
Source§impl Default for GiftCardActivityRefund
impl Default for GiftCardActivityRefund
Source§fn default() -> GiftCardActivityRefund
fn default() -> GiftCardActivityRefund
Source§impl<'de> Deserialize<'de> for GiftCardActivityRefund
impl<'de> Deserialize<'de> for GiftCardActivityRefund
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 GiftCardActivityRefund
impl PartialEq for GiftCardActivityRefund
Source§impl Serialize for GiftCardActivityRefund
impl Serialize for GiftCardActivityRefund
impl Eq for GiftCardActivityRefund
impl StructuralPartialEq for GiftCardActivityRefund
Auto Trait Implementations§
impl Freeze for GiftCardActivityRefund
impl RefUnwindSafe for GiftCardActivityRefund
impl Send for GiftCardActivityRefund
impl Sync for GiftCardActivityRefund
impl Unpin for GiftCardActivityRefund
impl UnwindSafe for GiftCardActivityRefund
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.