{
  "integrations": {
    "223e5cea-d776-4d66-8c82-4e50e5b3a6b0": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 0,
      "domain": "https://www.therapynotes.com/app/patients/edit/*",
      "id": "223e5cea-d776-4d66-8c82-4e50e5b3a6b0",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "name": "Therapy Notes - Patient Billing",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "URL",
            "value": "url"
          },
          "value": {
            "label": "path: Qym54SX1kRdayMLbqNk9cA",
            "value": "pathname:3"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"PatientInformation__LeftCell\"]/div[14]/div[1]/a[1]"
        },
        "first_name": {
          "regex": "(\\w*)[\\)]*\\W\\w+$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(.,\"Patient:\")]/following-sibling::span"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "\\w*$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(.,\"Patient:\")]/following-sibling::span"
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//td[contains(.,\"Payment Amount:\")]/following-sibling::td//input"
        },
        "zip": {
          "regex": "\\d*$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    },
    "80d4da6f-deff-4e12-ad49-457e526a028b": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 0,
      "domain": "https://www.therapynotes.com/app/billing/",
      "id": "80d4da6f-deff-4e12-ad49-457e526a028b",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null
      },
      "name": "Therapy Notes - Billing",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": {
            "label": "href",
            "value": "href"
          },
          "regex": "/edit/(.*)/",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"CalendarEntryBillingTab__EntryHeaderLine\")]//a[contains(@href,\"/app/patients/edit/\")]"
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": "(\\w+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-payment-description\")]"
        },
        "invoice_number": {
          "regex": "[\\d\\w/]* at [\\d\\w:]*$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-payment-description\")]"
        },
        "last_name": {
          "regex": "\\w+.(\\w+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-payment-description\")]"
        },
        "note": {
          "regex": "",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-payment-description\")]"
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "regex": "",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(.,\"Amount Due\")]/following-sibling::div[1]/text()"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    }
  },
  "steps": {
    "223e5cea-d776-4d66-8c82-4e50e5b3a6b0": {
      "ad566303-5300-434c-8ef4-9985f90a587c": {
        "domain": "https://www.therapynotes.com/app/patients/edit/Qym54SX1kRfGSJQFExm3cA/",
        "id": "ad566303-5300-434c-8ef4-9985f90a587c",
        "integrationId": "223e5cea-d776-4d66-8c82-4e50e5b3a6b0",
        "steps": [
          {
            "chosen": false,
            "path": "//button[contains(.,\"External\")]",
            "selected": false,
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          },
          {
            "chosen": false,
            "path": "//td[contains(.,\"Payment Amount:\")]/following-sibling::td//input",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Total Amount",
              "value": "AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "chosen": false,
            "path": "//td[contains(.,\"Transaction ID:\")]/following-sibling::td//input",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "ID:{{transactionId}} {{vault.type}}: {{vault.accountType}} {{vault.lastFour}}"
          }
        ],
        "type": "CHARGE"
      }
    },
    "80d4da6f-deff-4e12-ad49-457e526a028b": {
      "544fe37e-26c6-48c2-9fd7-a7b4247957db": {
        "domain": "https://www.therapynotes.com/app/billing/",
        "id": "544fe37e-26c6-48c2-9fd7-a7b4247957db",
        "integrationId": "80d4da6f-deff-4e12-ad49-457e526a028b",
        "steps": [
          {
            "automationLabel": "Click External",
            "chosen": false,
            "id": "d3fceb54-9b82-4b03-9912-e4f8882afd54",
            "path": "//button[contains(.,\"External\")]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          },
          {
            "automationLabel": "Payment Amount",
            "chosen": false,
            "id": "66f319ab-1dcd-46cf-88f5-7b79c2c6c68c",
            "options": [
              {
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//input[contains(@class,\"patient-payment-amount\")]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Total Amount",
              "value": "AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Transaction ID",
            "chosen": false,
            "id": "3f143e0c-9fde-463b-a68b-4b16d09a0f3f",
            "path": "//input[contains(@class,\"patient-payment-transaction\")]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": false,
            "value": "PayJunction# {{transactionId}} - {{vault.type}} {{vault.accountType}} {{vault.lastFour}}"
          },
          {
            "automationLabel": "Click Save",
            "chosen": false,
            "id": "4b7baece-c670-4b6a-9bfd-aaf6d1efd2ca",
            "path": "//input[contains(@value,\"Save New Payment\")]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          },
          {
            "automationLabel": "Save Changes",
            "id": "878db736-0cb2-4776-84ae-ad6de4bde7c6",
            "path": "//div[contains(@class,\"CalendarEntryBillingTab__SaveButton\")]/psy-button[1]",
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "path": ""
              },
              "CHECKING": {
                "path": ""
              },
              "DEBIT": {
                "path": ""
              },
              "DINERS": {
                "path": ""
              },
              "DISCOVER": {
                "path": ""
              },
              "GENERAL_LEDGER": {
                "path": ""
              },
              "JCB": {
                "path": ""
              },
              "MASTERCARD": {
                "path": ""
              },
              "SAVINGS": {
                "path": ""
              },
              "UNKNOWN": {
                "path": ""
              },
              "VISA": {
                "path": ""
              }
            },
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}