{
  "integrations": {
    "085bbacd-c838-4e14-a2c4-15d56babe59d": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "avs": {
        "label": "Match Address or Zip",
        "value": "ADDRESS_OR_ZIP"
      },
      "createdAt": 0,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://*.modmedapp.*/ema/patient/PatientFinancials.action",
      "id": "085bbacd-c838-4e14-a2c4-15d56babe59d",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": true,
        "matchingValue": "Collect Payment:",
        "xPath": "//h4[contains(@class,\"modal-title\")]"
      },
      "name": "ModMed - Patient Financials",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]"
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": " \\b(\\w+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "^\\W*([\\w-]+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]"
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"payment-total-amount\")]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    },
    "145c8bd3-ae49-4827-ba81-5d2bbafe9dae": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "avs": {
        "label": "Match Address or Zip",
        "value": "ADDRESS_OR_ZIP"
      },
      "createdAt": 1726516130542,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://*modmedapp.*/ema/patient/PatientFinancials.action?*",
      "id": "145c8bd3-ae49-4827-ba81-5d2bbafe9dae",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": true,
        "matchingValue": "Patient Refund",
        "xPath": "//div[contains(@class,\"modal-ema-card-container\")]/div[3]/div[1]/div[1]/div[1]"
      },
      "name": "ModMed - Refund",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": ", (\\w+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "^(.*),",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@ng-model=\"$ctrl.allocations[payment.id].amount\"]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    },
    "3baea04b-ece8-451a-a534-60c702cf328b": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "avs": {
        "label": "Match Address or Zip",
        "value": "ADDRESS_OR_ZIP"
      },
      "createdAt": 1726082598253,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://*.modmedapp.*/ema/practice/scheduler/front/*",
      "id": "3baea04b-ece8-451a-a534-60c702cf328b",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": true,
        "matchingValue": "Collect Payment",
        "xPath": "//h4[contains(@class,\"modal-title\")]"
      },
      "name": "ModMed - Check In/Out",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-info\")]/span[5]/strong[1]"
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": ", (\\w+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "^(.*),",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(@class,\"patient-name\")]/a[1]/span[1]"
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"payment-total-amount\")]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    }
  },
  "steps": {
    "085bbacd-c838-4e14-a2c4-15d56babe59d": {
      "8fc68e11-39d4-4be7-b02a-737495c1afff": {
        "domain": "https://*.ema.md/ema/patient/PatientFinancials.action",
        "id": "8fc68e11-39d4-4be7-b02a-737495c1afff",
        "integrationId": "085bbacd-c838-4e14-a2c4-15d56babe59d",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "chosen": false,
            "id": "3c2e40d5-438c-4ba3-b8df-3c3f2454fad1",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "selected": false,
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "useTransactionPaymentType": false,
            "value": {
              "label": "Other",
              "value": "other"
            }
          },
          {
            "automationLabel": "Notes",
            "chosen": false,
            "id": "cc1d0bc1-cb0b-40fc-9d69-73d725375ed0",
            "options": [
              {
                "enabled": false,
                "label": "Format with \"$\"",
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Prepend",
              "value": "prepend"
            },
            "selected": false,
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PJ ID: {{transactionId}} | {{vault.accountType}} {{vault.lastFour}} | Amount: {{amountBase}}"
          }
        ],
        "type": "CHARGE"
      }
    },
    "145c8bd3-ae49-4827-ba81-5d2bbafe9dae": {
      "9d289887-1323-4155-8fb0-aac661a21850": {
        "id": "9d289887-1323-4155-8fb0-aac661a21850",
        "integrationId": "145c8bd3-ae49-4827-ba81-5d2bbafe9dae",
        "steps": [
          {
            "automationLabel": "Amount",
            "id": "166e56e1-e18c-4c44-8975-96f67e717873",
            "options": [
              {
                "enabled": false,
                "label": "Format with \"$\"",
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//input[@ng-model=\"$ctrl.allocations[payment.id].amount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Method",
            "id": "89dc2979-f19d-4638-aea6-842f872ada6a",
            "path": "//div[@id=\"refundMethod\"]/div[1]/span[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": ""
          },
          {
            "automationLabel": "Method - Other",
            "id": "78b0278f-f4dd-476e-b9b6-0f11d1bde46c",
            "path": "//a[contains(@class,\"ui-select-choices-row-inner\")]/div[text()=\"Other\"]",
            "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": ""
          },
          {
            "automationLabel": "Notes",
            "id": "8440101e-08a4-4cbc-92bf-6f98806c24d5",
            "options": [
              {
                "enabled": false,
                "label": "Format with \"$\"",
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PJ Extension "
          }
        ],
        "type": "REFUND"
      }
    },
    "3baea04b-ece8-451a-a534-60c702cf328b": {
      "7864510b-d1e6-47ea-94f7-6851aa616160": {
        "id": "7864510b-d1e6-47ea-94f7-6851aa616160",
        "integrationId": "3baea04b-ece8-451a-a534-60c702cf328b",
        "steps": [
          {
            "automationLabel": "Payment Method",
            "id": "6ffaa769-a09a-4f70-8b12-a3181d92d41b",
            "path": "//select[@id=\"paymentMethodSelect\"]",
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Dropdown",
              "value": "dropdown"
            },
            "value": {
              "label": "Other",
              "value": "other"
            }
          },
          {
            "automationLabel": "Notes",
            "id": "573fbe6e-3d84-47a2-bcca-ddfc5decea1b",
            "isSkip": false,
            "options": [
              {
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//textarea[@id=\"transactionNotes\"]",
            "placementOption": {
              "label": "Prepend",
              "value": "prepend"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PJ ID: {{transactionId}} | {{vault.accountType}} {{vault.lastFour}} | Amount: {{amountBase}}"
          }
        ],
        "type": "CHARGE"
      }
    },
    "8a8c8481-529f-458a-8e95-3f89bf885183": {
      "3f936fc4-f4fc-45e5-aad4-3d39dd691f92": {
        "id": "3f936fc4-f4fc-45e5-aad4-3d39dd691f92",
        "integrationId": "8a8c8481-529f-458a-8e95-3f89bf885183",
        "steps": [
          {
            "chosen": false,
            "id": "b58d0a1c-152a-4291-a1dc-b77fdf86dcab",
            "path": "//div[contains(@class,\"grid-submit\")]/input[1]",
            "selected": false,
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          }
        ],
        "type": "INVOICE"
      }
    }
  }
}