app_store_server_library/primitives/history_response.rs
1use crate::primitives::environment::Environment;
2use serde::{Deserialize, Serialize};
3
4/// A response that contains the customer’s transaction history for an app.
5///
6/// [HistoryResponse](https://developer.apple.com/documentation/appstoreserverapi/historyresponse)
7#[derive(Debug, Clone, Deserialize, Serialize, Hash)]
8pub struct HistoryResponse {
9 /// A token you use in a query to request the next set of transactions for the customer.
10 ///
11 /// [revision](https://developer.apple.com/documentation/appstoreserverapi/revision)
12 #[serde(rename = "revision")]
13 pub revision: Option<String>,
14
15 /// A Boolean value indicating whether the App Store has more transaction data.
16 ///
17 /// [hasMore](https://developer.apple.com/documentation/appstoreserverapi/hasmore)
18 #[serde(rename = "hasMore")]
19 pub has_more: Option<bool>,
20
21 /// The bundle identifier of an app.
22 ///
23 /// [bundleId](https://developer.apple.com/documentation/appstoreserverapi/bundleid)
24 #[serde(rename = "bundleId")]
25 pub bundle_id: Option<String>,
26
27 /// The unique identifier of an app in the App Store.
28 ///
29 /// [appAppleId](https://developer.apple.com/documentation/appstoreservernotifications/appappleid)
30 #[serde(rename = "appAppleId")]
31 pub app_apple_id: Option<i64>,
32
33 /// The server environment in which you’re making the request, whether sandbox or production.
34 ///
35 /// [environment](https://developer.apple.com/documentation/appstoreserverapi/environment)
36 #[serde(rename = "environment")]
37 pub environment: Option<Environment>,
38
39 /// An array of in-app purchase transactions for the customer, signed by Apple, in JSON Web Signature format.
40 ///
41 /// [JWSTransaction](https://developer.apple.com/documentation/appstoreserverapi/jwstransaction)
42 #[serde(rename = "signedTransactions")]
43 pub signed_transactions: Option<Vec<String>>,
44}