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::environment::Environment;
use serde::{Deserialize, Serialize};

/// A response that contains the customer’s transaction history for an app.
///
/// [HistoryResponse](https://developer.apple.com/documentation/appstoreserverapi/historyresponse)
#[derive(Debug, Clone, Deserialize, Serialize, Hash)]
pub struct HistoryResponse {
    /// A token you use in a query to request the next set of transactions for the customer.
    ///
    /// [revision](https://developer.apple.com/documentation/appstoreserverapi/revision)
    #[serde(rename = "revision")]
    pub revision: 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>,

    /// The bundle identifier of an app.
    ///
    /// [bundleId](https://developer.apple.com/documentation/appstoreserverapi/bundleid)
    #[serde(rename = "bundleId")]
    pub bundle_id: Option<String>,

    /// The unique identifier of an app in the App Store.
    ///
    /// [appAppleId](https://developer.apple.com/documentation/appstoreservernotifications/appappleid)
    #[serde(rename = "appAppleId")]
    pub app_apple_id: Option<i64>,

    /// The server environment in which you’re making the request, whether sandbox or production.
    ///
    /// [environment](https://developer.apple.com/documentation/appstoreserverapi/environment)
    #[serde(rename = "environment")]
    pub environment: Option<Environment>,

    /// An array of in-app purchase transactions for the customer, signed by Apple, in JSON Web Signature format.
    ///
    /// [JWSTransaction](https://developer.apple.com/documentation/appstoreserverapi/jwstransaction)
    #[serde(rename = "signedTransactions")]
    pub signed_transactions: Option<Vec<String>>,
}