app-store-server-library 6.0.0

The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API
Documentation
use serde::{Deserialize, Serialize};

/// The customer-provided reason for a refund request.
///
/// [consumptionRequestReason](https://developer.apple.com/documentation/appstoreservernotifications/consumptionrequestreason)
#[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum ConsumptionRequestReason {
    #[serde(rename = "UNINTENDED_PURCHASE")]
    UnintendedPurchase,
    #[serde(rename = "FULFILLMENT_ISSUE")]
    FulfillmentIssue,
    #[serde(rename = "UNSATISFIED_WITH_PURCHASE")]
    UnsatisfiedWithPurchase,
    #[serde(rename = "LEGAL")]
    Legal,
    #[serde(rename = "OTHER")]
    Other,

    /// A value the App Store sent that this version of the
    /// library does not support, preserved as received.
    #[serde(untagged)]
    NotSupported(String),
}