pub struct CreateRefundParams {
pub amount: Option<i64>,
pub speed: Option<RefundSpeed>,
pub receipt: Option<String>,
pub notes: Option<Notes>,
}Expand description
Fields§
§amount: Option<i64>Amount to refund in the smallest unit. Omitted means refund everything.
speed: Option<RefundSpeed>Requested processing speed.
receipt: Option<String>Your reference for this refund.
notes: Option<Notes>Metadata to attach.
Implementations§
Source§impl CreateRefundParams
impl CreateRefundParams
Sourcepub fn full() -> Self
pub fn full() -> Self
Refund the payment’s entire remaining amount.
use razorpay_api::resources::CreateRefundParams;
assert!(CreateRefundParams::full().amount.is_none());Sourcepub fn partial(amount: i64) -> Self
pub fn partial(amount: i64) -> Self
Refund only amount, in the smallest currency unit.
use razorpay_api::resources::CreateRefundParams;
assert_eq!(CreateRefundParams::partial(10_000).amount, Some(10_000));Sourcepub fn speed(self, speed: RefundSpeed) -> Self
pub fn speed(self, speed: RefundSpeed) -> Self
Request a specific processing speed.
Trait Implementations§
Source§impl Clone for CreateRefundParams
impl Clone for CreateRefundParams
Source§impl Debug for CreateRefundParams
impl Debug for CreateRefundParams
Source§impl Default for CreateRefundParams
impl Default for CreateRefundParams
Source§impl PartialEq for CreateRefundParams
impl PartialEq for CreateRefundParams
Source§impl Serialize for CreateRefundParams
impl Serialize for CreateRefundParams
impl StructuralPartialEq for CreateRefundParams
Auto Trait Implementations§
impl Freeze for CreateRefundParams
impl RefUnwindSafe for CreateRefundParams
impl Send for CreateRefundParams
impl Sync for CreateRefundParams
impl Unpin for CreateRefundParams
impl UnsafeUnpin for CreateRefundParams
impl UnwindSafe for CreateRefundParams
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