app_store_server_library/primitives/
last_transactions_item.rs

1use crate::primitives::status::Status;
2use serde::{Deserialize, Serialize};
3
4/// The most recent App Store-signed transaction information and App Store-signed renewal information for an auto-renewable subscription.
5///
6/// [lastTransactionsItem](https://developer.apple.com/documentation/appstoreserverapi/lasttransactionsitem)
7#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq)]
8pub struct LastTransactionsItem {
9    /// The status of the auto-renewable subscription.
10    ///
11    /// [status](https://developer.apple.com/documentation/appstoreserverapi/status)
12    #[serde(rename = "status")]
13    pub status: Option<Status>,
14
15    /// The original transaction identifier of a purchase.
16    ///
17    /// [originalTransactionId](https://developer.apple.com/documentation/appstoreserverapi/originaltransactionid)
18    #[serde(rename = "originalTransactionId")]
19    pub original_transaction_id: Option<String>,
20
21    /// Transaction information signed by the App Store, in JSON Web Signature (JWS) format.
22    ///
23    /// [JWSTransaction](https://developer.apple.com/documentation/appstoreserverapi/jwstransaction)
24    #[serde(rename = "signedTransactionInfo")]
25    pub signed_transaction_info: Option<String>,
26
27    /// Subscription renewal information, signed by the App Store, in JSON Web Signature (JWS) format.
28    ///
29    /// [JWSRenewalInfo](https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfo)
30    #[serde(rename = "signedRenewalInfo")]
31    pub signed_renewal_info: Option<String>,
32}