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