{
  "integrations": {
    "5f53a098-2d43-4ef6-bfd4-741b44e01471": {
      "action": {
        "label": "Charge",
        "labelReady": "Charged",
        "value": "CHARGE"
      },
      "createdAt": 1716236954946,
      "domain": "https://app.collaboratemd.com/payments/post",
      "id": "5f53a098-2d43-4ef6-bfd4-741b44e01471",
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "attribute": null,
        "isEnabled": false,
        "matchingValue": "",
        "xPath": ""
      },
      "name": "Post Payment",
      "paths": {
        "address": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "company_name": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "customer_id": {
          "regex": "(\\d+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"patient-search\"]"
        },
        "email": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "first_name": {
          "regex": ", (\\S+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"patient-search\"]"
        },
        "invoice_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        },
        "last_name": {
          "regex": "(\\S+),",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"patient-search\"]"
        },
        "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[@id=\"pat-payment-amount\"]"
        },
        "zip": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": ""
        }
      }
    }
  },
  "steps": {
    "5f53a098-2d43-4ef6-bfd4-741b44e01471": {
      "590ec21c-d9d7-4426-a9fc-79d39d013bfd": {
        "id": "590ec21c-d9d7-4426-a9fc-79d39d013bfd",
        "integrationId": "5f53a098-2d43-4ef6-bfd4-741b44e01471",
        "steps": [
          {
            "automationLabel": "Amount",
            "id": "4fc20fa2-8b59-47cc-8578-b5283db6b2fe",
            "path": "//input[@id=\"pat-payment-amount\"]",
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Source - Credit Card",
            "id": "ac783e8c-49b5-456e-b544-ffe29374de7c",
            "path": "//form[@id=\"post-patient-payment-form\"]/cmd-patient-payment-info[1]/div[1]/div[3]/cmd-radio-button-group[1]/div[1]/div[1]/cmd-radio-button[1]/div[1]/input[1]",
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "value": ""
          },
          {
            "automationLabel": "Memo",
            "id": "779284bd-8570-411e-81b6-824407b60b83",
            "path": "//input[@id=\"pat-payment-memo\"]",
            "type": {
              "label": "Input",
              "value": "input"
            },
            "value": "Payjunction Refund {{transactionId}}"
          }
        ],
        "type": "REFUND"
      },
      "5997bfe1-db8d-42ce-a2a8-0adaa8a444e5": {
        "id": "5997bfe1-db8d-42ce-a2a8-0adaa8a444e5",
        "integrationId": "5f53a098-2d43-4ef6-bfd4-741b44e01471",
        "steps": [
          {
            "automationLabel": "Amount",
            "id": "42434738-0988-4df9-b6d7-bc2b9edb7b44",
            "path": "//input[@id=\"pat-payment-amount\"]",
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Source",
            "id": "2663a287-52cb-4351-bbd1-bab8a12df990",
            "path": "//form[@id=\"post-patient-payment-form\"]/cmd-patient-payment-info[1]/div[1]/div[3]/cmd-radio-button-group[1]/div[1]/div[1]/cmd-radio-button[1]/div[1]/input[1]",
            "transactionPaymentTypeSettings": {},
            "type": {
              "label": "Click",
              "value": "click"
            },
            "useTransactionPaymentType": false,
            "value": null
          },
          {
            "automationLabel": "Memo",
            "id": "0777c983-0651-451d-8f17-0b628b48a8ec",
            "options": [
              {
                "name": "FORMAT_INPUT_WITH_DOLLAR"
              }
            ],
            "path": "//input[@id=\"pat-payment-memo\"]",
            "transactionApprovalSetting": {
              "label": "Transaction ID",
              "value": "TRANSACTION_ID"
            },
            "type": {
              "label": "Input",
              "value": "input"
            },
            "useTransactionApproval": false,
            "value": "Payjunction Transaction Id: {{transactionId}}"
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}