pub struct PaymentRefundApiRequest {
pub amount: Option<Value>,
pub reason: Option<String>,
pub order_id: Option<String>,
}
Fields§
§amount: Option<Value>
The amount you would like to refund the customer, in minor units. e.g. for $7, use 700
.
Defaults to remaining non-refunded amount.
reason: Option<String>
You can optionally specify a reason for the refund. This is for your own records.
order_id: Option<String>
Optionally you can pass a specific order ID for the refund.
By default this will be set to the original orderId
given on payment creation.
Trait Implementations§
Source§impl Debug for PaymentRefundApiRequest
impl Debug for PaymentRefundApiRequest
Source§impl<'de> Deserialize<'de> for PaymentRefundApiRequest
impl<'de> Deserialize<'de> for PaymentRefundApiRequest
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 Display for PaymentRefundApiRequest
impl Display for PaymentRefundApiRequest
Auto Trait Implementations§
impl Freeze for PaymentRefundApiRequest
impl RefUnwindSafe for PaymentRefundApiRequest
impl Send for PaymentRefundApiRequest
impl Sync for PaymentRefundApiRequest
impl Unpin for PaymentRefundApiRequest
impl UnwindSafe for PaymentRefundApiRequest
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