stripe_pay_core/refund/enum.rs
1/// Why Stripe moved a charge's money back to the customer.
2///
3/// The reason is set when the refund is created and never changes
4/// afterwards, so it stays an enum rather than a free string.
5#[derive(
6 Clone, Copy, Debug, Default, Eq, Hash, PartialEq, serde::Deserialize, serde::Serialize,
7)]
8#[serde(rename_all = "snake_case")]
9pub enum RefundReason {
10 /// The customer asked for the money back.
11 #[default]
12 RequestedByCustomer,
13 /// Stripe could not deliver the product or service.
14 Duplicate,
15 /// The merchant recorded the charge in error.
16 Fraudulent,
17 /// An order was cancelled before the product shipped.
18 OrderCancellation,
19}