{
  "integrations": {
    "5ccc6995-e8d1-4df0-83ac-d77f2fa13b6c": {
      "action": {
        "value": "CHARGE",
        "label": "Charge",
        "labelReady": "Charged"
      },
      "avs": {
        "value": "ZIP",
        "label": "Match Zip"
      },
      "createdAt": 1723133964817,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://*.carestack.com/*",
      "id": "5ccc6995-e8d1-4df0-83ac-d77f2fa13b6c",
      "isAutoClose": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": true,
        "matchingValue": "Account Summary",
        "xPath": "//div[contains(@class,\"cfc-page__sidebar\")]/cs-patient-payments-left-pane[1]/div[1]/div[1]/patient-payments-account-summary[1]/div[1]/div[1]/div[1]/h2[1]"
      },
      "name": "CareStack - Ledger",
      "paths": {
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@formcontrolname=\"paymentAmount\"]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//h2[contains(@class,\"patient__name\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "first_name": {
          "regex": ", (.*)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//h2[contains(@class,\"patient__name\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "last_name": {
          "regex": "^(.*),",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//h2[contains(@class,\"patient__name\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "customer_id": {
          "attribute": null,
          "regex": "",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[@data-qa=\"patient-identifier\"]/text()",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//div[contains(@class,\"patient-info-card\")]/div[4]/div[2]/div[1]/span[1]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//span[contains(@class, \"text-regular phone\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "note": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        }
      },
      "isAuto": true,
      "isAutoRunAutomation": true
    }
  },
  "steps": {
    "5ccc6995-e8d1-4df0-83ac-d77f2fa13b6c": {
      "2af17cd3-5457-46c2-ae06-fbd8bc85558b": {
        "id": "2af17cd3-5457-46c2-ae06-fbd8bc85558b",
        "integrationId": "5ccc6995-e8d1-4df0-83ac-d77f2fa13b6c",
        "steps": [
          {
            "automationLabel": "Wait",
            "id": "94af7a64-0e65-432a-8c2e-584342a39cd8",
            "path": "//body",
            "type": {
              "value": "wait",
              "label": "Wait"
            },
            "value": 300
          },
          {
            "automationLabel": "Payment Amount",
            "id": "1c3bdbb6-7d9f-4992-961b-34f56fece15a",
            "options": [],
            "path": "//input[@formcontrolname=\"paymentAmount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Total Amount",
              "value": "AMOUNT"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Payment Type",
            "id": "6ffb32e1-50b5-40eb-8ca2-aa8f0e6addaf",
            "path": "//cfc-dropdown[@formcontrolname=\"paymentType\"]/div/div/div",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": null
          },
          {
            "automationLabel": "Select Payment Type",
            "id": "6e587c20-2953-485f-ba02-ecee998ea6e7",
            "path": "",
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "path": "//div[contains(text(), \"CREDIT/DEBIT CARD - American Express\")]"
              },
              "DEBIT": {
                "path": "//div[contains(text(), \"CREDIT/DEBIT CARD - VISA\")]"
              },
              "DISCOVER": {
                "path": "//div[contains(text(), \"CREDIT/DEBIT CARD - Discover\")]"
              },
              "MASTERCARD": {
                "path": "//div[contains(text(), \"CREDIT/DEBIT CARD - Master Card\")]"
              },
              "VISA": {
                "path": "//div[contains(text(), \"CREDIT/DEBIT CARD - VISA\")]"
              }
            },
            "type": {
              "value": "click",
              "label": "Click"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Remarks",
            "id": "193ec60c-a654-4031-aeed-edf67265747e",
            "options": [],
            "path": "//div[contains(text(), \"Remarks\")]/following::textarea",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "value": "PJ ID: {{transactionId}} | {{vault.accountType}} {{vault.lastFour}}"
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}