app-store-server-library 4.0.1

The Rust server library for the App Store Server API, App Store Server Notifications and Advanced Commerce API
Documentation
use crate::primitives::notification_history_response_item::NotificationHistoryResponseItem;
use serde::{Deserialize, Serialize};

/// A response that contains the App Store Server Notifications history for your app.
///
/// [NotificationHistoryResponse](https://developer.apple.com/documentation/appstoreserverapi/notificationhistoryresponse)
#[derive(Debug, Clone, Deserialize, Serialize, Hash)]
pub struct NotificationHistoryResponse {
    /// A pagination token that you return to the endpoint on a subsequent call to receive the next set of results.
    ///
    /// [paginationToken](https://developer.apple.com/documentation/appstoreserverapi/paginationtoken)
    #[serde(rename = "paginationToken")]
    pub pagination_token: Option<String>,

    /// A Boolean value indicating whether the App Store has more transaction data.
    ///
    /// [hasMore](https://developer.apple.com/documentation/appstoreserverapi/hasmore)
    #[serde(rename = "hasMore")]
    pub has_more: Option<bool>,

    /// An array of App Store server notification history records.
    #[serde(rename = "notificationHistory")]
    ///
    ///[notificationHistoryResponseItem](https://developer.apple.com/documentation/appstoreserverapi/notificationhistoryresponseitem)
    pub notification_history: Option<Vec<NotificationHistoryResponseItem>>,
}