Skip to content

Commit 0a36564

Browse files
committed
Update protocol to accept variations
1 parent 05a0164 commit 0a36564

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Creation/Synchronizer/OrderSynchronizer.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ enum OrderSyncState {
1313
/// Product input for an `OrderSynchronizer` type.
1414
///
1515
struct OrderSyncProductInput {
16-
let product: Product
16+
/// Types of products the synchronizer supports
17+
///
18+
enum ProductType {
19+
case product(Product)
20+
case variation(ProductVariation)
21+
}
22+
let product: ProductType
1723
let quantity: Int
1824
}
1925

0 commit comments

Comments
 (0)