app_store_server_library/primitives/advanced_commerce/
period.rs

1use serde::{Deserialize, Serialize};
2
3/// The duration of a single cycle of an auto-renewable subscription.
4///
5/// [period](https://developer.apple.com/documentation/advancedcommerceapi/period)
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Deserialize, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum Period {
9    /// One week period
10    P1W,
11    /// One months period
12    P1M,
13    /// Two months period
14    P2M,
15    /// Three months period
16    P3M,
17    /// Six months period
18    P6M,
19    /// One year period
20    P1Y,
21}