{
  "integrations": {
    "0aade14d-cd66-492b-bf20-91cee24c0713": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 0,
      "domain": "https://*.drchrono.com/billing/patient_payments_v2",
      "id": "0aade14d-cd66-492b-bf20-91cee24c0713",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null
      },
      "name": "DrChrono",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "URL",
            "value": "url"
          },
          "value": {
            "label": "patient_id (107809033)",
            "value": "query:patient_id"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": "([\\w]*)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@ng-model=\"search_patient\"]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "([\\w]*)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@ng-model=\"search_patient\"]"
        },
        "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": "//input[@ng-model=\"$ctrl.new_payment.amount\"]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    },
    "9d05bfce-3dff-4eaf-8ddc-3b50f33ca776": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 1713973127118,
      "domain": "https://practicegroup.drchrono.com/patient_demographics/*/balance",
      "id": "9d05bfce-3dff-4eaf-8ddc-3b50f33ca776",
      "isAuto": false,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": false,
        "matchingValue": "",
        "xPath": ""
      },
      "name": "DrChrono - Invoice",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "URL",
            "value": "url"
          },
          "value": {
            "label": "path: 98456225",
            "value": "pathname:1"
          }
        },
        "email": {
          "attribute": null,
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//a[contains(@href, \"mailto:\")]/text()"
        },
        "first_name": {
          "regex": "^(\\S+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"react-patient-header\"]/div//div/div/div[2]/div/h1"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//*[@id=\"react-patient-header\"]/div/div/div/div[2]/dl/dd[1]"
        },
        "last_name": {
          "regex": "\\b(\\S+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@id=\"react-patient-header\"]/div//div/div/div[2]/div/h1"
        },
        "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": "//strong[contains(text(), \"Patient Balance:\")]/following::td"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    },
    "bfdd8ee8-f29c-4e55-9776-f37c6de4b147": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 0,
      "domain": "https://*.drchrono.com/billing/create_cash_popup/*/",
      "id": "bfdd8ee8-f29c-4e55-9776-f37c6de4b147",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null
      },
      "name": "DrChrono - New Cash",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//a[@id=\"clickable_map\"]/address[1]/span[1]"
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//th[contains(.,\"Emai\")]/following-sibling::td"
        },
        "first_name": {
          "regex": "([\\w]*)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"filters\")]/div[1]/div[2]/h3[1]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "[\\w]* ([\\w]*)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"filters\")]/div[1]/div[2]/h3[1]"
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "phone": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//th[contains(.,\"Phone\")]/following-sibling::td"
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@ng-model=\"$ctrl.new_payment.amount\"]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//a[@id=\"clickable_map\"]/address[1]/span[4]"
        }
      }
    }
  },
  "steps": {
    "0aade14d-cd66-492b-bf20-91cee24c0713": {
      "557d89fc-e311-4d20-bd68-0b67e15e59af": {
        "id": "557d89fc-e311-4d20-bd68-0b67e15e59af",
        "integrationId": "0aade14d-cd66-492b-bf20-91cee24c0713",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "59e17d43-d66d-4206-9d11-031d6b7bb25f",
            "path": "//select[@ng-model=\"$ctrl.new_payment.method\"]",
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": false,
            "value": {
              "label": "Credit Card",
              "value": "string:CRDT"
            }
          },
          {
            "automationLabel": "Payment Type",
            "chosen": false,
            "id": "fff4bffe-12c2-49dd-8206-11091f86ee8e",
            "path": "//select[@ng-model=\"$ctrl.new_payment.type\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Refund",
              "value": "string:REF"
            }
          },
          {
            "automationLabel": "Notes: Trxn ID",
            "chosen": false,
            "id": "d5fe43d0-5879-467d-aca9-9a8751386c54",
            "path": "//textarea[@ng-model=\"$ctrl.new_payment.notes\"]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PJ ID: {{transactionId}} | Last 4: {{vault.lastFour}} "
          },
          {
            "automationLabel": "Amount",
            "chosen": false,
            "id": "69e6575b-e4c5-4611-bfdc-1ef9e4f1c834",
            "path": "//input[@ng-model=\"$ctrl.new_payment.amount\"]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "-{{amountBase}}"
          }
        ],
        "type": "REFUND"
      },
      "6f7ca915-a14f-4025-aea3-44d8a0a4d5b7": {
        "domain": "https://*.drchrono.com/billing/patient_payments_v2",
        "id": "6f7ca915-a14f-4025-aea3-44d8a0a4d5b7",
        "integrationId": "0aade14d-cd66-492b-bf20-91cee24c0713",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "chosen": false,
            "id": "60c48ab0-ccc8-4511-adac-eec724e22e9b",
            "path": "//select[@ng-model=\"$ctrl.new_payment.method\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": false,
            "value": {
              "label": "Credit Card",
              "value": "string:CRDT"
            }
          },
          {
            "automationLabel": "Payment Type",
            "chosen": false,
            "id": "40c7f37a-c6f7-451a-896a-c24dfeef4d84",
            "path": "//select[@ng-model=\"$ctrl.new_payment.type\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Credit",
              "value": "string:"
            }
          },
          {
            "automationLabel": "Notes: Trxn ID",
            "chosen": false,
            "id": "7cc9ad48-5385-411e-9a1e-b235225b8610",
            "path": "//textarea[@ng-model=\"$ctrl.new_payment.notes\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Transaction ID",
              "value": "TRANSACTION_ID"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": false,
            "value": "PJ ID: {{transactionId}} | Last 4: {{vault.lastFour}} "
          },
          {
            "automationLabel": "Amount",
            "chosen": false,
            "id": "37371639-69cd-4563-96bd-c4593ebb32e7",
            "options": [
              {
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//input[@ng-model=\"$ctrl.new_payment.amount\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          }
        ],
        "type": "CHARGE"
      }
    },
    "bfdd8ee8-f29c-4e55-9776-f37c6de4b147": {
      "b4d93865-1d1b-4352-8fae-850ae9d80bbf": {
        "id": "b4d93865-1d1b-4352-8fae-850ae9d80bbf",
        "integrationId": "bfdd8ee8-f29c-4e55-9776-f37c6de4b147",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "chosen": false,
            "id": "eb9cc01c-d983-46fa-9031-2b2999a57f27",
            "path": "//select[@ng-model=\"$ctrl.new_payment.method\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "label": "American Express",
                "value": "string:AMEX"
              },
              "CHECKING": {
                "label": "Check",
                "value": "string:CHCK"
              },
              "DEBIT": {
                "label": "Visa",
                "value": "string:VISA"
              },
              "DINERS": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "DISCOVER": {
                "label": "Discover",
                "value": "string:DISC"
              },
              "GENERAL_LEDGER": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "JCB": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "MASTERCARD": {
                "label": "Mastercard",
                "value": "string:MSTR"
              },
              "SAVINGS": {
                "label": "Check",
                "value": "string:CHCK"
              },
              "UNKNOWN": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "VISA": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              }
            },
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Payment Type",
            "chosen": false,
            "id": "bebbc0e6-2e16-44b5-a280-a98fcc337787",
            "path": "//select[@ng-model=\"$ctrl.new_payment.type\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Credit",
              "value": "string:"
            }
          },
          {
            "automationLabel": "Notes: Trxn ID",
            "chosen": false,
            "id": "6e1e46fa-7ed1-48bf-9a89-b685af0e6623",
            "path": "//textarea[@ng-model=\"$ctrl.new_payment.notes\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Transaction ID",
              "value": "TRANSACTION_ID"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": false,
            "value": "PJ ID: {{transactionId}}  PJ Last 4: {{vault.last4}}"
          },
          {
            "automationLabel": "Amount Total",
            "chosen": false,
            "id": "7da5182a-8e50-4f09-85b7-d7da876ba895",
            "path": "//input[@ng-model=\"$ctrl.new_payment.amount\"]",
            "selected": false,
            "transactionApprovalSetting": {
              "label": "Total Amount",
              "value": "AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          }
        ],
        "type": "CHARGE"
      },
      "dfea0ae5-ceab-49c9-a9a3-3e6887a3ccc5": {
        "id": "dfea0ae5-ceab-49c9-a9a3-3e6887a3ccc5",
        "integrationId": "bfdd8ee8-f29c-4e55-9776-f37c6de4b147",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "chosen": false,
            "id": "83760f5f-7675-4db9-a730-888ae0db1fd0",
            "path": "//select[@ng-model=\"$ctrl.new_payment.method\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "label": "American Express",
                "value": "string:AMEX"
              },
              "CHECKING": {
                "label": "Check",
                "value": "string:CHCK"
              },
              "DEBIT": {
                "label": "Debit",
                "value": "string:DBIT"
              },
              "DINERS": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "DISCOVER": {
                "label": "Discover",
                "value": "string:DISC"
              },
              "GENERAL_LEDGER": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "JCB": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "MASTERCARD": {
                "label": "Mastercard",
                "value": "string:MSTR"
              },
              "SAVINGS": {
                "label": "Check",
                "value": "string:CHCK"
              },
              "UNKNOWN": {
                "label": "Other",
                "value": "string:OTHR"
              },
              "VISA": {
                "label": "Visa",
                "value": "string:VISA"
              }
            },
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Payment Type",
            "chosen": false,
            "id": "6cf2edaa-a1d5-4006-934b-d99e17272061",
            "path": "//select[@ng-model=\"$ctrl.new_payment.type\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Refund",
              "value": "string:REF"
            }
          },
          {
            "automationLabel": "Notes: Trxn ID",
            "chosen": false,
            "id": "be3ffa8f-f86a-4031-be8e-c6228fda799a",
            "path": "//textarea[@ng-model=\"$ctrl.new_payment.notes\"]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PJ ID: {{transactionId}}  PJ Last 4: {{vault.last4}}"
          },
          {
            "automationLabel": "Total Amount",
            "chosen": false,
            "id": "2ffc98ca-f4be-480f-b21c-18fe49c4c341",
            "path": "//input[@ng-model=\"$ctrl.new_payment.amount\"]",
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": false,
            "value": "-{{amountTotal}}"
          }
        ],
        "type": "REFUND"
      }
    }
  }
}