Skip to content

Commit 77e13e3

Browse files
committed
Rename Quick Order to Simple Payments
1 parent d2e91b7 commit 77e13e3

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

WooCommerce/Classes/Extensions/UIImage+Woo.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,10 +584,10 @@ extension UIImage {
584584
.imageWithTintColor(tintColor)!
585585
}
586586

587-
/// Quick Order Icon
587+
/// Simple Payments Icon
588588
///
589-
static var quickOrderImage: UIImage {
590-
return UIImage(named: "icon-quick-order")!
589+
static var simplePaymentsImage: UIImage {
590+
return UIImage(named: "icon-simple-payments")!
591591
}
592592

593593
/// Work In Progress banner icon on the Products Tab

WooCommerce/Classes/ViewRelated/Orders/Order Creation/AddOrderCoordinator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class AddOrderCoordinator: Coordinator {
3636
case (true, true):
3737
presentOrderTypeBottomSheet()
3838
case (false, true):
39-
presentOrderCreationFlow(bottomSheetOrderType: .quick)
39+
presentOrderCreationFlow(bottomSheetOrderType: .simple)
4040
case (true, false):
4141
presentOrderCreationFlow(bottomSheetOrderType: .full)
4242
case (false, false):
@@ -60,7 +60,7 @@ private extension AddOrderCoordinator {
6060

6161
func presentOrderCreationFlow(bottomSheetOrderType: BottomSheetOrderType) {
6262
switch bottomSheetOrderType {
63-
case .quick:
63+
case .simple:
6464
presentSimplePaymentsAmountController()
6565
case .full:
6666
presentNewOrderController()

WooCommerce/Classes/ViewRelated/Orders/Order Creation/BottomSheetOrderType.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
import Yosemite
22

33
public enum BottomSheetOrderType: Hashable {
4-
case quick
4+
case simple
55
case full
66

77
/// Title shown on the action sheet.
88
///
99
var actionSheetTitle: String {
1010
switch self {
11+
case .simple:
12+
return NSLocalizedString("Simple Payments",
13+
comment: "Action sheet option when the user wants to create Simple Payments order")
1114
case .full:
1215
return NSLocalizedString("Create order",
1316
comment: "Action sheet option when the user wants to create full manual order")
14-
case .quick:
15-
return NSLocalizedString("Quick order",
16-
comment: "Action sheet option when the user wants to create quick order")
1717
}
1818
}
1919

2020
/// Description shown on the action sheet.
2121
///
2222
var actionSheetDescription: String {
2323
switch self {
24+
case .simple:
25+
return NSLocalizedString("Create an order with minimal information",
26+
comment: "Description of the Action sheet option when the user wants to create Simple Payments order")
2427
case .full:
2528
return NSLocalizedString("Create a new manual order",
2629
comment: "Description of the Action sheet option when the user wants to create full manual order")
27-
case .quick:
28-
return NSLocalizedString("Create an order with minimal information",
29-
comment: "Description of the Action sheet option when the user wants to create quick order")
3030
}
3131
}
3232

3333
/// Image shown on the action sheet.
3434
///
3535
var actionSheetImage: UIImage {
3636
switch self {
37-
case .quick:
38-
return UIImage.quickOrderImage
37+
case .simple:
38+
return UIImage.simplePaymentsImage
3939
case .full:
4040
return UIImage.pagesImage
4141
}
@@ -48,7 +48,7 @@ final class OrderTypeBottomSheetListSelectorCommand: BottomSheetListSelectorComm
4848

4949
var data: [BottomSheetOrderType] = [
5050
.full,
51-
.quick
51+
.simple
5252
]
5353

5454
var selected: BottomSheetOrderType? = nil

WooCommerce/Resources/Images.xcassets/icon-quick-order.imageset/Contents.json renamed to WooCommerce/Resources/Images.xcassets/icon-simple-payments.imageset/Contents.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"images" : [
33
{
4-
"filename" : "icon-quick-order.pdf",
4+
"filename" : "icon-simple-payments.pdf",
55
"idiom" : "universal"
66
}
77
],

WooCommerce/Resources/Images.xcassets/icon-quick-order.imageset/icon-quick-order.pdf renamed to WooCommerce/Resources/Images.xcassets/icon-simple-payments.imageset/icon-simple-payments.pdf

File renamed without changes.

WooCommerce/WooCommerceTests/Extensions/IconsTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ final class IconsTests: XCTestCase {
541541
XCTAssertNotNil(UIImage.cardReaderManualIcon)
542542
}
543543

544-
func test_quickOrderImage_is_not_nil() {
545-
XCTAssertNotNil(UIImage.quickOrderImage)
544+
func test_simplePaymentsImage_is_not_nil() {
545+
XCTAssertNotNil(UIImage.simplePaymentsImage)
546546
}
547547
}

0 commit comments

Comments
 (0)