Skip to content

Commit 848f06b

Browse files
committed
Adding new expand fields
1 parent 670e136 commit 848f06b

File tree

1 file changed

+3
-0
lines changed
  • sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/src

1 file changed

+3
-0
lines changed

sample-apps/bundles-cart-transform/extensions/cart-merge-expand_rust/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ fn get_expand_cart_operations(cart: &Cart) -> impl Iterator<Item = CartOperation
175175
.map(|(reference, &quantity)| ExpandedItem {
176176
merchandise_id: reference,
177177
quantity,
178+
price: None,
178179
})
179180
.collect();
180181

@@ -184,6 +185,8 @@ fn get_expand_cart_operations(cart: &Cart) -> impl Iterator<Item = CartOperation
184185
cart_line_id: line.id.clone(),
185186
expanded_cart_items: expand_relationships,
186187
price,
188+
image: None,
189+
title: None,
187190
})
188191
.into()
189192
}

0 commit comments

Comments
 (0)