app_store_server_library/primitives/summary.rs
1use crate::primitives::environment::Environment;
2use serde::{Deserialize, Serialize};
3
4/// The payload data for a subscription-renewal-date extension notification.
5///
6/// [Summary](https://developer.apple.com/documentation/appstoreservernotifications/summary)
7#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
8pub struct Summary {
9 /// The server environment that the notification applies to, either sandbox or production.
10 ///
11 /// [environment](https://developer.apple.com/documentation/appstoreservernotifications/environment)
12 pub environment: Option<Environment>,
13
14 /// The unique identifier of an app in the App Store.
15 ///
16 /// [appAppleId](https://developer.apple.com/documentation/appstoreservernotifications/appappleid)
17 #[serde(rename = "appAppleId")]
18 pub app_apple_id: Option<i64>,
19
20 /// The bundle identifier of an app.
21 ///
22 /// [bundleId](https://developer.apple.com/documentation/appstoreserverapi/bundleid)
23 #[serde(rename = "bundleId")]
24 pub bundle_id: Option<String>,
25
26 /// The unique identifier for the product, that you create in App Store Connect.
27 ///
28 /// [productId](https://developer.apple.com/documentation/appstoreserverapi/productid)
29 #[serde(rename = "productId")]
30 pub product_id: Option<String>,
31
32 /// A string that contains a unique identifier you provide to track each subscription-renewal-date extension request.
33 ///
34 /// [requestIdentifier](https://developer.apple.com/documentation/appstoreserverapi/requestidentifier)
35 #[serde(rename = "requestIdentifier")]
36 pub request_identifier: String,
37
38 /// A list of storefront country codes you provide to limit the storefronts for a subscription-renewal-date extension.
39 ///
40 /// [storefrontCountryCodes](https://developer.apple.com/documentation/appstoreserverapi/storefrontcountrycodes)
41 #[serde(rename = "storefrontCountryCodes")]
42 pub storefront_country_codes: Vec<String>,
43
44 /// The count of subscriptions that successfully receive a subscription-renewal-date extension.
45 ///
46 /// [succeededCount](https://developer.apple.com/documentation/appstoreserverapi/succeededcount)
47 #[serde(rename = "succeededCount")]
48 pub succeeded_count: i64,
49
50 /// The count of subscriptions that fail to receive a subscription-renewal-date extension.
51 ///
52 /// [failedCount](https://developer.apple.com/documentation/appstoreserverapi/failedcount)
53 #[serde(rename = "failedCount")]
54 pub failed_count: i64,
55}