Skip to content

Commit 4b81f10

Browse files
committed
add new potential merchant case to LocalNotifications
1 parent 86f8991 commit 4b81f10

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

WooCommerce/Classes/Notifications/LocalNotification.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ struct LocalNotification {
2222
case blazeNoCampaignReminder
2323
case blazeAbandonedCampaignCreationReminder
2424
case productImageBackgroundUpload
25+
case pointOfSalePotentialMerchant
2526
case unknown(siteID: Int64)
2627

2728
var identifier: String {
@@ -32,6 +33,8 @@ struct LocalNotification {
3233
return "blaze_abandoned_campaign_reminder"
3334
case .productImageBackgroundUpload:
3435
return "product_image_background_upload"
36+
case .pointOfSalePotentialMerchant:
37+
return "point_of_sale_potential_merchant"
3538
case let .unknown(siteID):
3639
return "unknown_" + "\(siteID)"
3740
}
@@ -95,6 +98,9 @@ extension LocalNotification {
9598
case .productImageBackgroundUpload:
9699
title = Localization.ProductImageBackgroundUpload.title
97100
body = Localization.ProductImageBackgroundUpload.body
101+
case .pointOfSalePotentialMerchant:
102+
title = Localization.PointOfSalePotentialMerchant.title
103+
body = Localization.PointOfSalePotentialMerchant.body
98104
case .unknown:
99105
title = ""
100106
body = ""
@@ -147,5 +153,17 @@ extension LocalNotification {
147153
comment: "Message on the local notification to inform the user about the background upload of product images."
148154
)
149155
}
156+
enum PointOfSalePotentialMerchant {
157+
static let title = NSLocalizedString(
158+
"localNotification.PointOfSalePotentialMerchant.title",
159+
value: "Thinking about in-person sales?",
160+
comment: "Title of the local notification sent to potential Point of Sale merchants"
161+
)
162+
static let body = NSLocalizedString(
163+
"localNotification.PointOfSalePotentialMerchant.body",
164+
value: "Take a quick 2-minute survey to help us shape features you’ll love.",
165+
comment: "Message body of the local notification sent to potential Point of Sale merchants"
166+
)
167+
}
150168
}
151169
}

0 commit comments

Comments
 (0)