Struct stripe::CreateRefund [−][src]
pub struct CreateRefund<'a> {
pub amount: Option<i64>,
pub charge: Option<ChargeId>,
pub expand: &'a [&'a str],
pub metadata: Option<Metadata>,
pub payment_intent: Option<PaymentIntentId>,
pub reason: Option<RefundReason>,
pub refund_application_fee: Option<bool>,
pub reverse_transfer: Option<bool>,
}
Expand description
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>
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
payment_intent: Option<PaymentIntentId>
reason: Option<RefundReason>
refund_application_fee: Option<bool>
reverse_transfer: Option<bool>
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateRefund<'a>
impl<'a> Send for CreateRefund<'a>
impl<'a> Sync for CreateRefund<'a>
impl<'a> Unpin for CreateRefund<'a>
impl<'a> UnwindSafe for CreateRefund<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more