1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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>>,
}