Skip to content

Commit d7e2f3a

Browse files
committed
Expose Order Factory as a public enum to hold newEmptyOrder
1 parent 5388ef9 commit d7e2f3a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Yosemite/Yosemite/Stores/Order/OrderFactory.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Networking
33

44
/// Factory to create convenience order types.
55
///
6-
enum OrderFactory {
6+
public enum OrderFactory {
77
/// Creates an order suitable to be used as a simple payments order.
88
/// Under the hood it uses a fee line with or without taxes to create an order with the desired amount.
99
///
@@ -51,4 +51,8 @@ enum OrderFactory {
5151
taxes: [],
5252
attributes: [])
5353
}
54+
55+
/// References a new empty order with constants `Date` values.
56+
///
57+
public static let emptyNewOrder = Order.empty
5458
}

0 commit comments

Comments
 (0)