pub struct PaymentRefund {
pub id: String,
pub status: Option<PaymentRefundStatus>,
pub location_id: Option<String>,
pub amount_money: Option<Money>,
pub app_fee_money: Option<Money>,
pub processing_fee: Option<Vec<ProcessingFee>>,
pub payment_id: Option<String>,
pub order_id: Option<String>,
pub reason: Option<String>,
pub created_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub team_member_id: Option<String>,
}
Expand description
Represents a refund of a payment made using Square.
Contains information about the original payment and the amount of money refunded.
Fields§
§id: String
The unique ID for this refund, generated by Square.
status: Option<PaymentRefundStatus>
The refund’s status.
location_id: Option<String>
The location ID associated with the payment this refund is attached to.
amount_money: Option<Money>
The amount of money refunded. This amount is specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents).
app_fee_money: Option<Money>
The amount of money the application developer contributed to help cover the refunded amount. This amount is specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see Working with Monetary Amounts.
processing_fee: Option<Vec<ProcessingFee>>
Processing fees and fee adjustments assessed by Square for this refund.
payment_id: Option<String>
The ID of the payment associated with this refund.
order_id: Option<String>
The ID of the order associated with the refund.
reason: Option<String>
The reason for the refund.
created_at: Option<DateTime>
Read only The timestamp of when the refund was created.
updated_at: Option<DateTime>
Read only The timestamp of when the refund was last updated.
team_member_id: Option<String>
Read only An optional ID of the team member associated with taking the payment.
Trait Implementations§
Source§impl Clone for PaymentRefund
impl Clone for PaymentRefund
Source§fn clone(&self) -> PaymentRefund
fn clone(&self) -> PaymentRefund
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 PaymentRefund
impl Debug for PaymentRefund
Source§impl Default for PaymentRefund
impl Default for PaymentRefund
Source§fn default() -> PaymentRefund
fn default() -> PaymentRefund
Source§impl<'de> Deserialize<'de> for PaymentRefund
impl<'de> Deserialize<'de> for PaymentRefund
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 PaymentRefund
impl PartialEq for PaymentRefund
Source§impl Serialize for PaymentRefund
impl Serialize for PaymentRefund
impl Eq for PaymentRefund
impl StructuralPartialEq for PaymentRefund
Auto Trait Implementations§
impl Freeze for PaymentRefund
impl RefUnwindSafe for PaymentRefund
impl Send for PaymentRefund
impl Sync for PaymentRefund
impl Unpin for PaymentRefund
impl UnwindSafe for PaymentRefund
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.