{
  "integrations": {
    "c49f4754-fbad-4088-82a1-e51613bbeb0d": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 0,
      "domain": "https://www.counselear.com/Controls/Pages/Secure/Index.aspx?page=Business/Invoice",
      "id": "c49f4754-fbad-4088-82a1-e51613bbeb0d",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null
      },
      "name": "Counsel Ear",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"ctl01_txtFinanceAddress1\"]"
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "URL",
            "value": "url"
          },
          "value": {
            "label": "pid (11622896)",
            "value": "query:pid"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"ctl01_txtFinanceEmailAddress\"]"
        },
        "first_name": {
          "regex": "[\\w]*, ([\\w]+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[@id=\"ctl01_ctlPatientSummary_lblPatientInfo\"]/span[1]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"ctl01_txtInvoiceNbr\"]"
        },
        "last_name": {
          "regex": "([\\w]*)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[@id=\"ctl01_ctlPatientSummary_lblPatientInfo\"]/span[1]"
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[@id=\"ctl01_ctlPatientSummary_lblPatientInfo\"]/span[1]"
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[@id=\"ctl01_ctlPatientSummary_lblPatientInfo\"]/span[1]/span[2]"
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"ctl01_txtPaymentAmount\"]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"ctl01_txtFinanceZip\"]"
        }
      }
    }
  },
  "steps": {
    "c49f4754-fbad-4088-82a1-e51613bbeb0d": {
      "c32c2d22-cd94-407c-a718-05d953857812": {
        "domain": "https://www.counselear.com/Controls/Pages/Secure/Index.aspx?page=Business%2fInvoice&pid=10563803&id=0&action=n",
        "id": "c32c2d22-cd94-407c-a718-05d953857812",
        "integrationId": "c49f4754-fbad-4088-82a1-e51613bbeb0d",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "chosen": false,
            "id": "e1543254-356f-4041-a65d-2e2488b709d0",
            "path": "//select[@id=\"ctl01_lstPaymentMethods\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Credit Card",
              "value": "CREDT"
            }
          },
          {
            "automationLabel": "Payer Type - Private Payer",
            "chosen": false,
            "id": "3552ac35-1984-4e47-ae78-b716e592e29e",
            "path": "//select[@id=\"ctl01_lstPaymentPayerTypes\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Private Payer",
              "value": "36001"
            }
          },
          {
            "automationLabel": "Card Type",
            "chosen": false,
            "id": "83f11003-d545-4075-ae8d-9d6fb78ba595",
            "path": "//select[@id=\"ctl01_lstPaymentCardTypes\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "label": "American Express",
                "value": "AMEX"
              },
              "CHECKING": {
                "label": "Other",
                "value": "OTHR"
              },
              "DEBIT": {
                "label": "Other",
                "value": "OTHR"
              },
              "DINERS": {
                "label": "Other",
                "value": "OTHR"
              },
              "DISCOVER": {
                "label": "Discover",
                "value": "DISC"
              },
              "GENERAL_LEDGER": {
                "label": "Other",
                "value": "OTHR"
              },
              "JCB": {
                "label": "Other",
                "value": "OTHR"
              },
              "MASTERCARD": {
                "label": "MasterCard",
                "value": "MC"
              },
              "SAVINGS": {
                "label": "Other",
                "value": "OTHR"
              },
              "UNKNOWN": {
                "label": "Other",
                "value": "OTHR"
              },
              "VISA": {
                "label": "Visa",
                "value": "VISA"
              }
            },
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Card Number - Last4",
            "chosen": false,
            "id": "0e49c7cf-03b9-4e08-ae90-369e28c37580",
            "path": "//input[@id=\"ctl01_txtPaymentCardNbr\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Last Four Digits of Card",
              "value": "LAST_FOUR_DIGITS"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Ref Number - TransactionsId",
            "chosen": false,
            "id": "8307e483-7b24-4e32-997c-9d294a20f9d3",
            "path": "//input[@id=\"ctl01_txtPaymentReferenceNbr\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Transaction ID",
              "value": "TRANSACTION_ID"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Amount",
            "chosen": false,
            "id": "bdf60e17-0c39-45ba-9d15-13b170110bf3",
            "path": "//input[@id=\"ctl01_txtPaymentAmount\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Total Amount",
              "value": "AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Notes",
            "chosen": false,
            "id": "d205e9c3-38aa-4ce5-b92a-d5b8419bdbd3",
            "path": "//textarea[@id=\"ctl01_txtPaymentNotes\"]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PayJunction "
          },
          {
            "automationLabel": "Submit Payment",
            "chosen": false,
            "id": "d5c8c9b7-52bf-41d8-8fda-8e4641179c28",
            "isSkip": false,
            "path": "//input[@id=\"ctl01_btnPaymentSubmit\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}