{
  "openruna_format": "flow-graph-v1",
  "title": "0288_Code_Schedule_Create_Webhook",
  "slug": "0288-code-schedule-create-webhook",
  "source_filename": "0288_Code_Schedule_Create_Webhook.json",
  "nodes": [
    {
      "id": "If charge has customer",
      "name": "If charge has customer",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Get customer",
      "name": "Get customer",
      "integration": "stripe",
      "kind": "action"
    },
    {
      "id": "On schedule",
      "name": "On schedule",
      "integration": "schedule",
      "kind": "trigger"
    },
    {
      "id": "Remove duplicate customers",
      "name": "Remove duplicate customers",
      "integration": "itemLists",
      "kind": "logic"
    },
    {
      "id": "Aggregate `amount_captured`",
      "name": "Aggregate `amount_captured`",
      "integration": "itemLists",
      "kind": "logic"
    },
    {
      "id": "Aggregate totals",
      "name": "Aggregate totals",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Create or update customer",
      "name": "Create or update customer",
      "integration": "hubspot",
      "kind": "action"
    },
    {
      "id": "Merge data",
      "name": "Merge data",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Get all charges",
      "name": "Get all charges",
      "integration": "stripe",
      "kind": "action"
    },
    {
      "id": "Get HubSpot field",
      "name": "Get HubSpot field",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Create field in HubSpot",
      "name": "Create field in HubSpot",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Configure",
      "name": "Configure",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Skip field checking",
      "name": "Skip field checking",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Do nothing",
      "name": "Do nothing",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "If field exists",
      "name": "If field exists",
      "integration": "if",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Configure",
      "to": "Skip field checking"
    },
    {
      "from": "Merge data",
      "to": "Aggregate totals"
    },
    {
      "from": "On schedule",
      "to": "Configure"
    },
    {
      "from": "Get customer",
      "to": "Merge data"
    },
    {
      "from": "Get all charges",
      "to": "If charge has customer"
    },
    {
      "from": "Get all charges",
      "to": "Merge data"
    },
    {
      "from": "If field exists",
      "to": "Get all charges"
    },
    {
      "from": "If field exists",
      "to": "Create field in HubSpot"
    },
    {
      "from": "Aggregate totals",
      "to": "Create or update customer"
    },
    {
      "from": "Get HubSpot field",
      "to": "If field exists"
    },
    {
      "from": "Skip field checking",
      "to": "Get all charges"
    },
    {
      "from": "Skip field checking",
      "to": "Get HubSpot field"
    },
    {
      "from": "If charge has customer",
      "to": "Remove duplicate customers"
    },
    {
      "from": "If charge has customer",
      "to": "Aggregate `amount_captured`"
    },
    {
      "from": "If charge has customer",
      "to": "Do nothing"
    },
    {
      "from": "Create field in HubSpot",
      "to": "Get all charges"
    },
    {
      "from": "Remove duplicate customers",
      "to": "Get customer"
    }
  ]
}