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