We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b5045f4 + d0a81f1 commit 2e433c8Copy full SHA for 2e433c8
Yosemite/Yosemite/Stores/Order/OrderFactory.swift
@@ -52,6 +52,18 @@ public enum OrderFactory {
52
attributes: [])
53
}
54
55
+ /// Creates a fee line suitable to delete a fee line already saved remotely in an order.
56
+ ///
57
+ public static func deletedFeeLine(_ feeLine: OrderFeeLine) -> OrderFeeLine {
58
+ feeLine.copy(name: .some(nil))
59
+ }
60
+
61
+ /// Creates a shipping line suitable to delete a shipping line already saved remotely in an order.
62
63
+ public static func deletedShippingLine(_ shippingLine: ShippingLine) -> ShippingLine {
64
+ shippingLine.copy(methodID: .some(nil))
65
66
67
/// References a new empty order with constants `Date` values.
68
///
69
public static let emptyNewOrder = Order.empty
0 commit comments