pub struct PartialRefund {
pub refund_id: Option<String>,
pub refund_pre_tax_amount: Option<Price>,
}Expand description
A partial refund of a transaction.
This type is not used in any activity, and only used as part of another schema.
Fields§
§refund_id: Option<String>Required. A unique id distinguishing this partial refund. If the refund is successful, subsequent refunds with the same id will fail. Must be unique across refunds for one individual transaction.
refund_pre_tax_amount: Option<Price>Required. The pre-tax amount of the partial refund. Should be less than the remaining pre-tax amount of the transaction.
Trait Implementations§
Source§impl Clone for PartialRefund
impl Clone for PartialRefund
Source§fn clone(&self) -> PartialRefund
fn clone(&self) -> PartialRefund
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialRefund
impl Debug for PartialRefund
Source§impl Default for PartialRefund
impl Default for PartialRefund
Source§fn default() -> PartialRefund
fn default() -> PartialRefund
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialRefund
impl<'de> Deserialize<'de> for PartialRefund
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PartialRefund
impl Serialize for PartialRefund
impl Part for PartialRefund
Auto Trait Implementations§
impl Freeze for PartialRefund
impl RefUnwindSafe for PartialRefund
impl Send for PartialRefund
impl Sync for PartialRefund
impl Unpin for PartialRefund
impl UnwindSafe for PartialRefund
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
Mutably borrows from an owned value. Read more