Skip to main content

app_store_server_library/models/
status_response.rs

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