app_store_server_library/primitives/
order_lookup_response.rs

1use crate::primitives::order_lookup_status::OrderLookupStatus;
2use serde::{Deserialize, Serialize};
3
4/// A response that includes the order lookup status and an array of signed transactions for the in-app purchases in the order.
5///
6/// [OrderLookupResponse](https://developer.apple.com/documentation/appstoreserverapi/orderlookupresponse)
7#[derive(Debug, Clone, Deserialize, Serialize, Hash, PartialEq, Eq)]
8pub struct OrderLookupResponse {
9    /// The status that indicates whether the order ID is valid.
10    ///
11    /// [OrderLookupStatus](https://developer.apple.com/documentation/appstoreserverapi/orderlookupstatus)
12    #[serde(rename = "status")]
13    pub status: OrderLookupStatus,
14
15    /// An array of in-app purchase transactions that are part of the order, signed by Apple, in JSON Web Signature format.
16    ///
17    /// [JWSTransaction](https://developer.apple.com/documentation/appstoreserverapi/jwstransaction)
18    #[serde(rename = "signedTransactions")]
19    pub signed_transactions: Vec<String>,
20}