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