Source code for appstoreserverlibrary.models.NotificationHistoryResponseItem

# Copyright (c) 2023 Apple Inc. Licensed under MIT License.
from typing import Optional, List

from attr import define
import attr

from .SendAttemptItem import SendAttemptItem

[docs] @define class NotificationHistoryResponseItem: """ The App Store server notification history record, including the signed notification payload and the result of the server's first send attempt. https://developer.apple.com/documentation/appstoreserverapi/notificationhistoryresponseitem """ signedPayload: Optional[str] = attr.ib(default=None) """ A cryptographically signed payload, in JSON Web Signature (JWS) format, containing the response body for a version 2 notification. https://developer.apple.com/documentation/appstoreservernotifications/signedpayload """ sendAttempts: Optional[List[SendAttemptItem]] = attr.ib(default=None) """ An array of information the App Store server records for its attempts to send a notification to your server. The maximum number of entries in the array is six. https://developer.apple.com/documentation/appstoreserverapi/sendattemptitem """