81a9a952ee7e7e16d9f3b3e6c2a58b2c129d2cfbd0a7736d8b9ad75368163714:{"__metadata":{"version":0.1},"root":{"steps":[{"step_id":"fa8d43a4-b6a1-4b5b-9b24-193a18bb9cef","step_position":[900,1060],"config_field_values":[],"task_id":"shopify::admin::order_risk_analyzed","task_version":"0.1","task_type":"TRIGGER","description":null,"note":null,"name":null},{"step_id":"b9866324-d7af-45c9-85d6-3f795be15eab","step_position":[1580,1280],"config_field_values":[{"config_field_id":"condition","value":"{\"uuid\":\"36794213-9a7d-11ee-8c8d-7142d25893ec\",\"lhs\":{\"uuid\":\"36794210-9a7d-11ee-8c8d-7142d25893ec\",\"parent_uuid\":\"36794213-9a7d-11ee-8c8d-7142d25893ec\",\"lhs\":{\"uuid\":\"36794211-9a7d-11ee-8c8d-7142d25893ec\",\"parent_uuid\":\"36794210-9a7d-11ee-8c8d-7142d25893ec\",\"value\":\"order.capturable\",\"comparison_value_type\":\"EnvironmentValue\",\"full_environment_path\":\"order.capturable\"},\"rhs\":{\"uuid\":\"370f8ea0-9a7d-11ee-8c8d-7142d25893ec\",\"parent_uuid\":\"36794210-9a7d-11ee-8c8d-7142d25893ec\",\"value\":\"true\",\"comparison_value_type\":\"LiteralValue\"},\"value_type\":\"EnvironmentScalarDefinition:Boolean\",\"operator\":\"==\",\"operation_type\":\"Comparison\"},\"operator\":\"AND\",\"operation_type\":\"LogicalExpression\"}"}],"task_id":"shopify::flow::condition","task_version":"0.1","task_type":"CONDITION","description":null,"note":null,"name":null},{"step_id":"c44233c4-a691-4bdc-ae37-d61b3003a9e9","step_position":[1900,1280],"config_field_values":[{"config_field_id":"order_id","value":"order.id"}],"task_id":"shopify::admin::capture_payment","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"22e9ee21-b156-446d-be30-444a6b6629d6","step_position":[1260,1060],"config_field_values":[{"config_field_id":"condition","value":"{\"uuid\":\"e62e0132-9aca-11ee-820e-7754fbe2fbe4\",\"lhs\":{\"uuid\":\"e62dda20-9aca-11ee-820e-7754fbe2fbe4\",\"parent_uuid\":\"e62e0132-9aca-11ee-820e-7754fbe2fbe4\",\"lhs\":{\"uuid\":\"e62e0130-9aca-11ee-820e-7754fbe2fbe4\",\"parent_uuid\":\"e62dda20-9aca-11ee-820e-7754fbe2fbe4\",\"value\":\"orderRiskLevel\",\"comparison_value_type\":\"EnvironmentValue\",\"full_environment_path\":\"orderRiskLevel\"},\"rhs\":{\"uuid\":\"f15c3f90-9aca-11ee-820e-7754fbe2fbe4\",\"parent_uuid\":\"e62dda20-9aca-11ee-820e-7754fbe2fbe4\",\"value\":\"High\",\"comparison_value_type\":\"LiteralValue\"},\"value_type\":\"EnvironmentScalarDefinition:String\",\"operator\":\"==\",\"operation_type\":\"Comparison\"},\"operator\":\"AND\",\"operation_type\":\"LogicalExpression\"}"}],"task_id":"shopify::flow::condition","task_version":"0.1","task_type":"CONDITION","description":null,"note":null,"name":null},{"step_id":"66ce8128-9a85-40ff-8c8e-7237c63acd9a","step_position":[1900,1420],"config_field_values":[{"config_field_id":"order_id","value":"order.id"},{"config_field_id":"tags","value":"[\"uncaptured\"]"}],"task_id":"shopify::admin::add_order_tags","task_version":"0.1","task_type":"ACTION","description":"Add a tag (\"uncaptured\") to orders where Flow could not capture payment due to issues, staff can then revisit these orders later","note":null,"name":null},{"step_id":"91c56a50-6f47-11ef-bfef-a9c084cc2eb9","step_position":[1580,1060],"config_field_values":[{"config_field_id":"order_id","value":"order.id"},{"config_field_id":"reason","value":"customer"},{"config_field_id":"email","value":"false"},{"config_field_id":"refund_items","value":"true"},{"config_field_id":"refund_shipping","value":"true"},{"config_field_id":"restock","value":"true"}],"task_id":"shopify::admin::cancel_order","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null},{"step_id":"aa4c8f40-6f47-11ef-bfef-a9c084cc2eb9","step_position":[1900,1060],"config_field_values":[{"config_field_id":"address","value":"test@test.com"},{"config_field_id":"subject","value":"High risk order {{order.name}} has been cancelled automatically"},{"config_field_id":"message","value":"High risk order {{order.name}} has been cancelled automatically.\n\nView the order at https://{{shop.myshopifyDomain}}/admin/orders/{{order.id}}"}],"task_id":"shopify::flow::send_email","task_version":"0.1","task_type":"ACTION","description":null,"note":null,"name":null}],"links":[{"from_step_id":"b9866324-d7af-45c9-85d6-3f795be15eab","from_port_id":"true","to_step_id":"c44233c4-a691-4bdc-ae37-d61b3003a9e9","to_port_id":"input"},{"from_step_id":"fa8d43a4-b6a1-4b5b-9b24-193a18bb9cef","from_port_id":"output","to_step_id":"22e9ee21-b156-446d-be30-444a6b6629d6","to_port_id":"input"},{"from_step_id":"b9866324-d7af-45c9-85d6-3f795be15eab","from_port_id":"false","to_step_id":"66ce8128-9a85-40ff-8c8e-7237c63acd9a","to_port_id":"input"},{"from_step_id":"91c56a50-6f47-11ef-bfef-a9c084cc2eb9","from_port_id":"output","to_step_id":"aa4c8f40-6f47-11ef-bfef-a9c084cc2eb9","to_port_id":"input"},{"from_step_id":"22e9ee21-b156-446d-be30-444a6b6629d6","from_port_id":"true","to_step_id":"91c56a50-6f47-11ef-bfef-a9c084cc2eb9","to_port_id":"input"},{"from_step_id":"22e9ee21-b156-446d-be30-444a6b6629d6","from_port_id":"false","to_step_id":"b9866324-d7af-45c9-85d6-3f795be15eab","to_port_id":"input"}],"patched_fields":[],"workflow_name":"Capture payment if order is not high fraud risk"}}