@@ -231,7 +231,7 @@ private extension RefundSubmissionUseCase {
231231 self . alerts = alerts
232232
233233 // Shows reader ready alert.
234- alerts. readerIsReady ( title: Localization . collectPaymentTitle ( username: order. billingAddress? . firstName) , amount: formattedAmount)
234+ alerts. readerIsReady ( title: Localization . refundPaymentTitle ( username: order. billingAddress? . firstName) , amount: formattedAmount)
235235
236236 // Starts refund process.
237237 cardPresentRefundOrchestrator. refund ( amount: refundAmount,
@@ -351,15 +351,15 @@ private extension RefundSubmissionUseCase {
351351 }
352352
353353 enum Localization {
354- private static let collectPaymentWithoutName = NSLocalizedString ( " Refund payment " ,
355- comment: " Alert title when starting the in-person refund flow without a user name. " )
356- private static let collectPaymentWithName = NSLocalizedString ( " Refund payment from %1$@ " ,
357- comment: " Alert title when starting the in-person refund flow with a user name. " )
358- static func collectPaymentTitle ( username: String ? ) -> String {
354+ private static let refundPaymentWithoutName = NSLocalizedString ( " Refund payment " ,
355+ comment: " Alert title when starting the in-person refund flow without a user name. " )
356+ private static let refundPaymentWithName = NSLocalizedString ( " Refund payment from %1$@ " ,
357+ comment: " Alert title when starting the in-person refund flow with a user name. " )
358+ static func refundPaymentTitle ( username: String ? ) -> String {
359359 guard let username = username, username. isNotEmpty else {
360- return collectPaymentWithoutName
360+ return refundPaymentWithoutName
361361 }
362- return . localizedStringWithFormat( collectPaymentWithName , username)
362+ return . localizedStringWithFormat( refundPaymentWithName , username)
363363 }
364364 }
365365}
0 commit comments