@@ -36,6 +36,10 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
3636 ///
3737 public var isInAppPurchasesSwitchEnabled : Bool
3838
39+ /// The state for the Tap to Pay on iPhone feature switch.
40+ ///
41+ public var isTapToPayOnIPhoneSwitchEnabled : Bool
42+
3943 /// A list (possibly empty) of known card reader IDs - i.e. IDs of card readers that should be reconnected to automatically
4044 /// e.g. ["CHB204909005931"]
4145 ///
@@ -58,6 +62,7 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
5862 isProductSKUInputScannerSwitchEnabled: Bool ,
5963 isCouponManagementSwitchEnabled: Bool ,
6064 isInAppPurchasesSwitchEnabled: Bool ,
65+ isTapToPayOnIPhoneSwitchEnabled: Bool ,
6166 knownCardReaders: [ String ] ,
6267 lastEligibilityErrorInfo: EligibilityErrorInfo ? = nil ,
6368 lastJetpackBenefitsBannerDismissedTime: Date ? = nil ,
@@ -72,6 +77,7 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
7277 self . lastJetpackBenefitsBannerDismissedTime = lastJetpackBenefitsBannerDismissedTime
7378 self . featureAnnouncementCampaignSettings = featureAnnouncementCampaignSettings
7479 self . isInAppPurchasesSwitchEnabled = isInAppPurchasesSwitchEnabled
80+ self . isTapToPayOnIPhoneSwitchEnabled = isTapToPayOnIPhoneSwitchEnabled
7581 }
7682
7783 public static var `default` : Self {
@@ -81,6 +87,7 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
8187 isProductSKUInputScannerSwitchEnabled: false ,
8288 isCouponManagementSwitchEnabled: false ,
8389 isInAppPurchasesSwitchEnabled: false ,
90+ isTapToPayOnIPhoneSwitchEnabled: false ,
8491 knownCardReaders: [ ] ,
8592 lastEligibilityErrorInfo: nil ,
8693 featureAnnouncementCampaignSettings: [ : ] )
@@ -110,6 +117,7 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
110117 isProductSKUInputScannerSwitchEnabled: isProductSKUInputScannerSwitchEnabled,
111118 isCouponManagementSwitchEnabled: isCouponManagementSwitchEnabled,
112119 isInAppPurchasesSwitchEnabled: isInAppPurchasesSwitchEnabled,
120+ isTapToPayOnIPhoneSwitchEnabled: isTapToPayOnIPhoneSwitchEnabled,
113121 knownCardReaders: knownCardReaders,
114122 lastEligibilityErrorInfo: lastEligibilityErrorInfo,
115123 featureAnnouncementCampaignSettings: featureAnnouncementCampaignSettings
@@ -130,6 +138,7 @@ public struct GeneralAppSettings: Codable, Equatable, GeneratedCopiable {
130138 isProductSKUInputScannerSwitchEnabled: isProductSKUInputScannerSwitchEnabled,
131139 isCouponManagementSwitchEnabled: isCouponManagementSwitchEnabled,
132140 isInAppPurchasesSwitchEnabled: isInAppPurchasesSwitchEnabled,
141+ isTapToPayOnIPhoneSwitchEnabled: isTapToPayOnIPhoneSwitchEnabled,
133142 knownCardReaders: knownCardReaders,
134143 lastEligibilityErrorInfo: lastEligibilityErrorInfo,
135144 featureAnnouncementCampaignSettings: updatedSettings
@@ -150,6 +159,7 @@ extension GeneralAppSettings {
150159 self . isProductSKUInputScannerSwitchEnabled = try container. decodeIfPresent ( Bool . self, forKey: . isProductSKUInputScannerSwitchEnabled) ?? false
151160 self . isCouponManagementSwitchEnabled = try container. decodeIfPresent ( Bool . self, forKey: . isCouponManagementSwitchEnabled) ?? false
152161 self . isInAppPurchasesSwitchEnabled = try container. decodeIfPresent ( Bool . self, forKey: . isInAppPurchasesSwitchEnabled) ?? false
162+ self . isTapToPayOnIPhoneSwitchEnabled = try container. decodeIfPresent ( Bool . self, forKey: . isTapToPayOnIPhoneSwitchEnabled) ?? false
153163 self . knownCardReaders = try container. decodeIfPresent ( [ String ] . self, forKey: . knownCardReaders) ?? [ ]
154164 self . lastEligibilityErrorInfo = try container. decodeIfPresent ( EligibilityErrorInfo . self, forKey: . lastEligibilityErrorInfo)
155165 self . lastJetpackBenefitsBannerDismissedTime = try container. decodeIfPresent ( Date . self, forKey: . lastJetpackBenefitsBannerDismissedTime)
0 commit comments