Struct square_api_client::models::GiftCardActivityRefund
source · [−]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
sourceimpl Clone for GiftCardActivityRefund
impl Clone for GiftCardActivityRefund
sourcefn clone(&self) -> GiftCardActivityRefund
fn clone(&self) -> GiftCardActivityRefund
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for GiftCardActivityRefund
impl Debug for GiftCardActivityRefund
sourceimpl Default for GiftCardActivityRefund
impl Default for GiftCardActivityRefund
sourcefn default() -> GiftCardActivityRefund
fn default() -> GiftCardActivityRefund
sourceimpl<'de> Deserialize<'de> for GiftCardActivityRefund
impl<'de> Deserialize<'de> for GiftCardActivityRefund
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<GiftCardActivityRefund> for GiftCardActivityRefund
impl PartialEq<GiftCardActivityRefund> for GiftCardActivityRefund
sourcefn eq(&self, other: &GiftCardActivityRefund) -> bool
fn eq(&self, other: &GiftCardActivityRefund) -> bool
sourceimpl Serialize for GiftCardActivityRefund
impl Serialize for GiftCardActivityRefund
impl Eq for GiftCardActivityRefund
impl StructuralEq for GiftCardActivityRefund
impl StructuralPartialEq for GiftCardActivityRefund
Auto Trait Implementations
impl RefUnwindSafe for GiftCardActivityRefund
impl Send for GiftCardActivityRefund
impl Sync for GiftCardActivityRefund
impl Unpin for GiftCardActivityRefund
impl UnwindSafe for GiftCardActivityRefund
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.