{
  "integrations": {
    "64276eef-7522-44a5-967b-056b995a1942": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "avs": {
        "label": "Match Address or Zip",
        "value": "ADDRESS_OR_ZIP"
      },
      "createdAt": 1710440172540,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://app.kareo.com/payments-ui/",
      "id": "64276eef-7522-44a5-967b-056b995a1942",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": false,
        "matchingValue": "",
        "xPath": ""
      },
      "name": "Collect Payment",
      "paths": {
        "address": {
          "regex": "(.+),\\s\\w+",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//ul[contains(@class,\"small-text\")]/li[3]",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Hide",
            "value": "hide"
          }
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Hide",
            "value": "hide"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "first_name": {
          "regex": "^(\\S+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"grid-4\")]/div[1]/div[1]/div[1]/h3[1]",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "last_name": {
          "regex": "(\\w+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"grid-4\")]/div[1]/div[1]/div[1]/h3[1]",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "purchase_number": {
          "attribute": null,
          "regex": "payment/(\\d+)",
          "type": {
            "label": "URL",
            "value": "url"
          },
          "value": {
            "label": "hash (#/payment/137737995?redirectUrl=%2Fpatient-collections-ui%2F#%2Fpatient-statements%2Flist)",
            "value": "href:hash"
          },
          "visibility": {
            "label": "Hide",
            "value": "hide"
          }
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@name=\"paymentAmount\"]",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        },
        "zip": {
          "regex": "(\\d+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//ul[contains(@class,\"small-text\")]/li[3]",
          "visibility": {
            "label": "Display",
            "value": "display"
          }
        }
      }
    }
  },
  "steps": {
    "64276eef-7522-44a5-967b-056b995a1942": {
      "5ac3998b-d76d-4b06-9cdc-a9d7aae21b9b": {
        "id": "5ac3998b-d76d-4b06-9cdc-a9d7aae21b9b",
        "integrationId": "64276eef-7522-44a5-967b-056b995a1942",
        "steps": [
          {
            "automationLabel": "Amount",
            "id": "b3dad41a-a81b-4170-9ba3-b07c86bb03c4",
            "options": [
              {
                "enabled": false,
                "label": "Format with \"$\"",
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//input[@name=\"paymentAmount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Select Do Not Charge",
            "id": "59f5038d-dc43-4e72-803c-9b7ab85a18bf",
            "isSkip": true,
            "path": "//input[@id=\"manual-payment\"]",
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          },
          {
            "automationLabel": "Add A Note",
            "id": "9c0d3aff-cc1e-4ba9-ae6f-09faf85ce6d1",
            "path": "//button[contains(text(),\"Add Payment Note\")]",
            "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": "Note",
            "id": "6f5cedf0-f051-4bff-91f2-4764d64a7cf5",
            "options": [
              {
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//textarea[@ng-model=\"paymentDetail.note\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "PayJunction ID: {{transactionId}} | Total: {{amountTotal}} | Surcharge: {{amountSurcharge}}"
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}