{
  "integrations": {
    "eeecb570-4d4b-43e7-98af-88e75d813971": {
      "action": {
        "value": "CHARGE",
        "label": "Charge",
        "labelReady": "Charged"
      },
      "avs": {
        "value": "ZIP",
        "label": "Match Zip"
      },
      "createdAt": 1768846294553,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://app.myautoleap.com/#/estimate/*",
      "id": "eeecb570-4d4b-43e7-98af-88e75d813971",
      "isAuto": false,
      "isAutoClose": true,
      "name": "AutoLeap",
      "paths": {
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[@id=\"est-remaining-balance\"]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "invoice_number": {
          "regex": "RO# (\\d+)\\b",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"estimate-title-text\"]/span[1]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "first_name": {
          "regex": "— (\\w*)\\b",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"estimate-title-text\"]//p[contains(@class,\"estimate-title-width\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "last_name": {
          "regex": "\\b(\\w*)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"estimate-title-text\"]//p[contains(@class,\"estimate-title-width\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"estimate-title-text\"]/span[1]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        }
      },
      "isAutoRunAutomation": true,
      "matchElement": {
        "isEnabled": false,
        "xPath": "",
        "matchingValue": "",
        "attribute": null
      }
    }
  },
  "steps": {
    "eeecb570-4d4b-43e7-98af-88e75d813971": {
      "cb986e86-bae7-48b0-89e1-9725c48859ef": {
        "id": "cb986e86-bae7-48b0-89e1-9725c48859ef",
        "integrationId": "eeecb570-4d4b-43e7-98af-88e75d813971",
        "steps": [
          {
            "automationLabel": "Click + Payment",
            "id": "03d65f88-22c0-4406-a3a7-7831c34eda23",
            "path": "//button[@id=\"btn-estimate-add-payment\"]//span[contains(text(), \"Payment\")]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Wait for modal",
            "id": "ace78049-15d7-4171-ac0d-63d0c6a9670f",
            "path": "//body",
            "type": {
              "value": "wait",
              "label": "Wait"
            },
            "value": 500
          },
          {
            "automationLabel": "Choose Payment Type",
            "id": "63cd2b25-41fb-40ec-9a45-42d2a00ac991",
            "path": "//div[@id=\"payment-method-Card\"]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Charge Card - Manual",
            "id": "725e02f6-f209-44c8-9060-4b154507567b",
            "path": "//button[@id=\"ManualCardEntryCheckBox\"]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Amount",
            "id": "ed2e818c-cc00-4bc1-a61f-9c254a7ed892",
            "isSkip": false,
            "options": [],
            "path": "//div[contains(@class,\"input-border\")]/div[1]/input[1]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Payment Method Click",
            "id": "159a2f4e-4799-49bd-bb0c-b461a2bdcb0c",
            "path": "//div[contains(@class,\"payment-completed\")]/div[1]/div[1]/app-dropdown[1]/div[1]/div[1]/input[1]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          },
          {
            "automationLabel": "Choose Card Type",
            "id": "236a57dc-3aa8-4fda-9f96-de278687221b",
            "path": "",
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "path": "//*[contains(text(), \"Amex\")]"
              },
              "DEBIT": {
                "path": "//*[contains(text(), \"Visa\")]"
              },
              "DINERS": {
                "path": "//*[contains(text(), \"Visa\")]"
              },
              "DISCOVER": {
                "path": "//*[contains(text(), \"Discover\")]"
              },
              "JCB": {
                "path": "//*[contains(text(), \"Visa\")]"
              },
              "MASTERCARD": {
                "path": "//*[contains(text(), \"MasterCard\")]"
              },
              "UNKNOWN": {
                "path": "//*[contains(text(), \"Visa\")]"
              },
              "VISA": {
                "path": "//*[contains(text(), \"Visa\")]"
              }
            },
            "type": {
              "value": "click",
              "label": "Click"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Last 4",
            "id": "8586692c-32fd-4e4e-a3a5-597c09af0d51",
            "isSkip": false,
            "options": [],
            "path": "//app-input[@id=\"payment-card-last-4\"]//input[@id=\"payment-card-last-4\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Last Four Digits of Card",
              "value": "LAST_FOUR_DIGITS"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Confirmation No",
            "id": "dbf367d3-7f83-4cd6-80f1-3eba44ddfaa6",
            "options": [],
            "path": "//app-input[@id=\"payment-card-conf-no\"]//input[@id=\"payment-card-conf-no\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "{{response.processor.approvalCode}}"
          },
          {
            "automationLabel": "Note",
            "id": "0860f0a3-78d0-4b36-a528-6fece3c798c8",
            "options": [],
            "path": "//textarea[@id=\"payment-notes\"]",
            "placementOption": {
              "label": "Append",
              "value": "append"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PayJunction ID: {{transactionId}}"
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}