app_store_server_library/primitives/
status_response.rs

1use crate::primitives::environment::Environment;
2use crate::primitives::subscription_group_identifier_item::SubscriptionGroupIdentifierItem;
3use serde::{Deserialize, Serialize};
4
5/// The response that contains status information for all of a customer’s auto-renewable subscriptions in your app.
6///
7/// [StatusResponse](https://developer.apple.com/documentation/appstoreserverapi/statusresponse)
8#[derive(Debug, Clone, Deserialize, Serialize, Hash)]
9pub struct StatusResponse {
10    /// The server environment, sandbox or production, in which the App Store generated the response.
11    ///
12    /// [environment](https://developer.apple.com/documentation/appstoreserverapi/environment)
13    pub environment: Option<Environment>,
14
15    /// The bundle identifier of an app.
16    ///
17    /// [bundleId](https://developer.apple.com/documentation/appstoreserverapi/bundleid)
18    #[serde(rename = "bundleId")]
19    pub bundle_id: String,
20
21    /// The unique identifier of an app in the App Store.
22    ///
23    /// [appAppleId](https://developer.apple.com/documentation/appstoreservernotifications/appappleid)
24    #[serde(rename = "appAppleId")]
25    pub app_apple_id: Option<i64>,
26
27    /// An array of information for auto-renewable subscriptions, including App Store-signed transaction information and App Store-signed renewal information.
28    pub data: Vec<SubscriptionGroupIdentifierItem>,
29}