Struct ezstripe::refund::Response

source ·
pub struct Response {
Show 14 fields pub id: String, pub object: String, pub amount: u32, pub balance_transaction: Option<String>, pub charge: String, pub created: i64, pub currency: String, pub metadata: HashMap<String, String>, pub payment_intent: String, pub reason: Option<String>, pub receipt_number: Option<String>, pub source_transfer_reversal: Option<String>, pub status: String, pub transfer_reversal: Option<String>,
}
Expand description

Refunds object from 01/12/2023

Refunds object

Fields§

§id: String

Unique identifier for the object.

§object: String

String representing the object’s type. Objects of the same type share the same value.

§amount: u32

Amount, in cents.

§balance_transaction: Option<String>

Balance transaction that describes the impact on your account balance.

§charge: String

ID of the charge that was refunded.

§created: i64

Time at which the object was created. Measured in seconds since the Unix epoch.

§currency: String

Three-letter ISO currency code, in lowercase. Must be a supported currency.

§metadata: HashMap<String, String>

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.

§payment_intent: String

ID of the PaymentIntent that was refunded.

§reason: Option<String>

Reason for the refund, either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).

§receipt_number: Option<String>

This is the transaction number that appears on email receipts sent for this refund.

§source_transfer_reversal: Option<String>

The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.

§status: String

Status of the refund. For credit card refunds, this can be pending, succeeded, or failed. For other types of refunds, it can be pending, requires_action, succeeded, failed, or canceled. Refer to our refunds documentation for more details.

§transfer_reversal: Option<String>

If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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