app_store_server_library/models/advanced_commerce_effective.rs
1use serde::{Deserialize, Serialize};
2
3/// A string value that indicates when a requested change to an auto-renewable subscription goes into effect.
4///
5/// [effective](https://developer.apple.com/documentation/advancedcommerceapi/effective)
6#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum AdvancedCommerceEffective {
9 Immediately,
10 NextBillCycle,
11
12 /// A value the App Store sent that this version of the
13 /// library does not support, preserved as received.
14 #[serde(untagged)]
15 NotSupported(String),
16}