apple_bundle/entitlements/wallet.rs
1use serde::{Deserialize, Serialize};
2
3/// Wallet
4#[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq)]
5pub struct Wallet {
6 /// A list of identifiers that specify pass types that your app can access in Wallet.
7 ///
8 /// The value for this key is an array of pass type identifiers.
9 ///
10 /// To add this entitlement to your app, enable the Wallet capability in Xcode.
11 /// If your provisioning profile is associated with multiple pass type identifiers,
12 /// specify which of the identifiers your app can interact with.
13 /// Use $(TeamIdentifierPrefix)* to access all of the passes for your team.
14 ///
15 /// For more information, see Configure Wallet (iOS, watchOS).
16 ///
17 /// ### Note
18 /// The Wallet capability isn’t available to app clips.
19 /// For information on functionality that’s available to app clips, see Choosing the
20 /// Right Functionality for Your App Clip.
21 ///
22 /// ## Availability
23 /// * iOS 6.0+
24 /// * watchOS 2.0+
25 ///
26 /// ## Framework
27 /// * PassKit (Apple Pay and Wallet)
28 #[serde(
29 rename = "com.apple.developer.pass-type-identifiers",
30 serialize_with = "crate::serialize_option",
31 skip_serializing_if = "Option::is_none"
32 )]
33 pub pass_type_ids: Option<Vec<String>>,
34 /// A list of merchant IDs your app uses for Apple Pay support.
35 ///
36 /// The value for this key is an array of strings containing the merchant
37 /// IDs—typically in reverse domain name notation, starting with the string
38 /// 'merchant'.
39 ///
40 /// To add this entitlement, enable the Apple Pay capability in Xcode and select the
41 /// merchant IDs you want to use in your app. Alternatively, see Setting Up Apple
42 /// Pay Requirements for how to create merchant IDs in your developer account.
43 ///
44 /// ## Availability
45 /// * iOS 6.0+
46 /// * watchOS 2.0+
47 ///
48 /// ## Framework
49 /// * PassKit (Apple Pay and Wallet)
50 #[serde(
51 rename = "com.apple.developer.in-app-payments",
52 serialize_with = "crate::serialize_option",
53 skip_serializing_if = "Option::is_none"
54 )]
55 pub merchant_ids: Option<Vec<String>>,
56}