[][src]Struct stripe::CreateRefund

pub struct CreateRefund<'a> {
    pub amount: Option<i64>,
    pub charge: Option<ChargeId>,
    pub expand: &'a [&'a str],
    pub metadata: Option<Metadata>,
    pub reason: Option<RefundReason>,
    pub refund_application_fee: Option<bool>,
    pub reverse_transfer: Option<bool>,
}

The parameters for Refund::create.

Fields

amount: Option<i64>charge: Option<ChargeId>expand: &'a [&'a str]

Specifies which fields in the response should be expanded.

metadata: Option<Metadata>reason: Option<RefundReason>refund_application_fee: Option<bool>reverse_transfer: Option<bool>

Methods

impl<'a> CreateRefund<'a>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<'a> Default for CreateRefund<'a>[src]

impl<'a> Clone for CreateRefund<'a>[src]

impl<'a> Debug for CreateRefund<'a>[src]

impl<'a> Serialize for CreateRefund<'a>[src]

Auto Trait Implementations

impl<'a> Unpin for CreateRefund<'a>

impl<'a> Sync for CreateRefund<'a>

impl<'a> Send for CreateRefund<'a>

impl<'a> UnwindSafe for CreateRefund<'a>

impl<'a> RefUnwindSafe for CreateRefund<'a>

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self