pub struct RefundCapturedPaymentDto {
pub amount: Option<Money>,
pub invoice_id: Option<String>,
pub note_to_payer: Option<String>,
}
Fields§
§amount: Option<Money>
The amount to refund. To refund a portion of the captured amount, specify an amount. If amount is not specified, an amount equal to captured amount - previous refunds is refunded. The amount must be a positive number and in the same currency as the one in which the payment was captured.
invoice_id: Option<String>
The API caller-provided external invoice number for this order. Appears in both the payer’s transaction history and the emails that the payer receives.
note_to_payer: Option<String>
The reason for the refund. Appears in both the payer’s transaction history and the emails that the payer receives.
Trait Implementations§
Source§impl Clone for RefundCapturedPaymentDto
impl Clone for RefundCapturedPaymentDto
Source§fn clone(&self) -> RefundCapturedPaymentDto
fn clone(&self) -> RefundCapturedPaymentDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RefundCapturedPaymentDto
impl Debug for RefundCapturedPaymentDto
Auto Trait Implementations§
impl Freeze for RefundCapturedPaymentDto
impl RefUnwindSafe for RefundCapturedPaymentDto
impl Send for RefundCapturedPaymentDto
impl Sync for RefundCapturedPaymentDto
impl Unpin for RefundCapturedPaymentDto
impl UnwindSafe for RefundCapturedPaymentDto
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