app_store_server_library/primitives/check_test_notification_response.rs
1use crate::primitives::send_attempt_item::SendAttemptItem;
2use serde::{Deserialize, Serialize};
3
4/// A response that contains the contents of the test notification sent by the App Store server and the result from your server.
5///
6/// [CheckTestNotificationResponse](https://developer.apple.com/documentation/appstoreserverapi/checktestnotificationresponse)
7#[derive(Debug, Clone, Deserialize, Serialize, Hash)]
8pub struct CheckTestNotificationResponse {
9 /// A cryptographically signed payload, in JSON Web Signature (JWS) format, containing the response body for a version 2 notification.
10 ///
11 /// [signedPayload](https://developer.apple.com/documentation/appstoreservernotifications/signedpayload)
12 #[serde(rename = "signedPayload")]
13 pub signed_payload: Option<String>,
14
15 /// An array of information the App Store server records for its attempts to send the TEST notification to your server. The array may contain a maximum of six sendAttemptItem objects.
16 ///
17 /// [sendAttemptItem](https://developer.apple.com/documentation/appstoreserverapi/sendattemptitem)
18 #[serde(rename = "sendAttempts")]
19 pub send_attempts: Option<Vec<SendAttemptItem>>,
20}