app_store_server_library/primitives/advanced_commerce/
base_response.rs

1use serde::{Deserialize, Serialize};
2
3/// The base response body for an Advanced Commerce request.
4///
5/// [SubscriptionRevokeResponse](https://developer.apple.com/documentation/advancedcommerceapi/subscriptionrevokeresponse)
6#[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)]
7#[serde(rename_all = "camelCase")]
8pub struct AdvancedCommerceResponse {
9    /// Subscription renewal information signed by the App Store, in JSON Web Signature (JWS) format.
10    ///
11    /// [signedRenewalInfo](https://developer.apple.com/documentation/advancedcommerceapi/jwsrenewalinfo)
12    pub signed_renewal_info: String,
13
14    /// Transaction information signed by the App Store, in JWS Compact Serialization format.
15    ///
16    /// [signedTransactionInfo](https://developer.apple.com/documentation/advancedcommerceapi/jwstransaction)
17    pub signed_transaction_info: String,
18}