@@ -94,8 +94,8 @@ private extension BetaFeaturesViewController {
9494 return nil
9595 }
9696
97- return Section ( rows: [ . quickOrder ,
98- . quickOrderDescription ] )
97+ return Section ( rows: [ . simplePayments ,
98+ . simplePaymentsDescription ] )
9999 }
100100
101101 /// Register table cells.
@@ -121,10 +121,10 @@ private extension BetaFeaturesViewController {
121121 case let cell as BasicTableViewCell where row == . orderAddOnsDescription:
122122 configureOrderAddOnsDescription ( cell: cell)
123123 // Orders
124- case let cell as SwitchTableViewCell where row == . quickOrder :
125- configureQuickOrderSwitch ( cell: cell)
126- case let cell as BasicTableViewCell where row == . quickOrderDescription :
127- configureQuickOrderDescription ( cell: cell)
124+ case let cell as SwitchTableViewCell where row == . simplePayments :
125+ configureSimplePaymentsSwitch ( cell: cell)
126+ case let cell as BasicTableViewCell where row == . simplePaymentsDescription :
127+ configureSimplePaymentsDescription ( cell: cell)
128128 default :
129129 fatalError ( )
130130 }
@@ -165,12 +165,12 @@ private extension BetaFeaturesViewController {
165165 cell. textLabel? . text = Localization . orderAddOnsDescription
166166 }
167167
168- func configureQuickOrderSwitch ( cell: SwitchTableViewCell ) {
168+ func configureSimplePaymentsSwitch ( cell: SwitchTableViewCell ) {
169169 configureCommonStylesForSwitchCell ( cell)
170- cell. title = Localization . quickOrderTitle
170+ cell. title = Localization . simplePaymentsTitle
171171
172172 // Fetch switch's state stored value.
173- let action = AppSettingsAction . loadQuickOrderSwitchState ( ) { result in
173+ let action = AppSettingsAction . loadSimplePaymentsSwitchState ( ) { result in
174174 guard let isEnabled = try ? result. get ( ) else {
175175 return cell. isOn = false
176176 }
@@ -180,22 +180,22 @@ private extension BetaFeaturesViewController {
180180
181181 // Change switch's state stored value
182182 cell. onChange = { isSwitchOn in
183- ServiceLocator . analytics. track ( event: WooAnalyticsEvent . QuickOrder . settingsBetaFeaturesQuickOrderToggled ( isOn: isSwitchOn) )
183+ ServiceLocator . analytics. track ( event: WooAnalyticsEvent . SimplePayments . settingsBetaFeaturesSimplePaymentsToggled ( isOn: isSwitchOn) )
184184
185- let action = AppSettingsAction . setQuickOrderFeatureSwitchState ( isEnabled: isSwitchOn, onCompletion: { result in
185+ let action = AppSettingsAction . setSimplePaymentsFeatureSwitchState ( isEnabled: isSwitchOn, onCompletion: { result in
186186 // Roll back toggle if an error occurred
187187 if result. isFailure {
188188 cell. isOn. toggle ( )
189189 }
190190 } )
191191 ServiceLocator . stores. dispatch ( action)
192192 }
193- cell. accessibilityIdentifier = " beta-features-order-quick-order -cell "
193+ cell. accessibilityIdentifier = " beta-features-order-simple-payments -cell "
194194 }
195195
196- func configureQuickOrderDescription ( cell: BasicTableViewCell ) {
196+ func configureSimplePaymentsDescription ( cell: BasicTableViewCell ) {
197197 configureCommonStylesForDescriptionCell ( cell)
198- cell. textLabel? . text = Localization . quickOrderDescription
198+ cell. textLabel? . text = Localization . simplePaymentsDescription
199199 }
200200}
201201
@@ -262,14 +262,14 @@ private enum Row: CaseIterable {
262262 case orderAddOnsDescription
263263
264264 // Orders.
265- case quickOrder
266- case quickOrderDescription
265+ case simplePayments
266+ case simplePaymentsDescription
267267
268268 var type : UITableViewCell . Type {
269269 switch self {
270- case . orderAddOns, . quickOrder :
270+ case . orderAddOns, . simplePayments :
271271 return SwitchTableViewCell . self
272- case . orderAddOnsDescription, . quickOrderDescription :
272+ case . orderAddOnsDescription, . simplePaymentsDescription :
273273 return BasicTableViewCell . self
274274 }
275275 }
@@ -285,8 +285,9 @@ private extension BetaFeaturesViewController {
285285 static let orderAddOnsDescription = NSLocalizedString ( " Test out viewing Order Add-Ons as we get ready to launch " ,
286286 comment: " Cell description on the beta features screen to enable the order add-ons feature " )
287287
288- static let quickOrderTitle = NSLocalizedString ( " Quick Order " , comment: " Cell title on the beta features screen to enable the Quick Order feature " )
289- static let quickOrderDescription = NSLocalizedString ( " Test out creating orders with minimal information as we get ready to launch " ,
290- comment: " Cell description on the beta features screen to enable the Quick Order feature " )
288+ static let simplePaymentsTitle = NSLocalizedString ( " Simple Payments " ,
289+ comment: " Cell title on the beta features screen to enable the Simple Payments feature " )
290+ static let simplePaymentsDescription = NSLocalizedString ( " Test out creating orders with minimal information as we get ready to launch " ,
291+ comment: " Cell description on the beta features screen to enable the Simple Payments feature " )
291292 }
292293}
0 commit comments