(input: input::ResponseData)
| 48 | |
| 49 | #[shopify_function_target(query_path = "src/run.graphql", schema_path = "schema.graphql")] |
| 50 | fn run(input: input::ResponseData) -> Result<output::FunctionRunResult> { |
| 51 | let cart_operations: Vec<CartOperation> = get_merge_cart_operations(&input.cart) |
| 52 | .chain(get_expand_cart_operations(&input.cart)) |
| 53 | .collect(); |
| 54 | |
| 55 | Ok(output::FunctionRunResult { |
| 56 | operations: cart_operations, |
| 57 | }) |
| 58 | } |
| 59 | |
| 60 | // merge operation logic |
| 61 |
nothing calls this directly
no test coverage detected