app_store_server_library/models/refund_preference.rs
1use serde::{Deserialize, Serialize};
2
3/// A value that indicates your preferred outcome for the refund request.
4///
5/// [refundPreference](https://developer.apple.com/documentation/appstoreserverapi/refundpreference)
6#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
7pub enum RefundPreference {
8 #[serde(rename = "DECLINE")]
9 Declined,
10 #[serde(rename = "GRANT_FULL")]
11 GrantFull,
12 #[serde(rename = "GRANT_PRORATED")]
13 GrantProrated,
14
15 /// A value the App Store sent that this version of the
16 /// library does not support, preserved as received.
17 #[serde(untagged)]
18 NotSupported(String),
19}