app_store_server_library/models/advanced_commerce_reason.rs
1use serde::{Deserialize, Serialize};
2
3/// The reason for the Advanced Commerce request.
4#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
5#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
6pub enum AdvancedCommerceReason {
7 Upgrade,
8 Downgrade,
9 ApplyOffer,
10
11 /// A value the App Store sent that this version of the
12 /// library does not support, preserved as received.
13 #[serde(untagged)]
14 NotSupported(String),
15}