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
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.