{
  "integrations": {
    "e1c8ec31-63ea-456b-81a1-ffc2cd87403a": {
      "action": {
        "value": "CHARGE",
        "label": "Charge",
        "labelReady": "Charged"
      },
      "avs": {
        "value": "ADDRESS_OR_ZIP",
        "label": "Match Address or Zip"
      },
      "createdAt": 0,
      "cvvSettings": {
        "label": "Enable",
        "value": "enable"
      },
      "domain": "https://shop.tekmetric.com/admin/shop/*/repair-orders/*/payment",
      "id": "e1c8ec31-63ea-456b-81a1-ffc2cd87403a",
      "name": "Tekmetric",
      "paths": {
        "transaction_amount": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//label[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), \"payment amount\")]/following-sibling::div//input",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "tax": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "invoice_number": {
          "regex": "RO #(\\d*)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//h2[contains(@class,\"flex-wrap\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "purchase_number": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "visibility": {
            "value": "hide",
            "label": "Hide"
          }
        },
        "first_name": {
          "attribute": null,
          "regex": "^\\W*([\\w-]+)",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//input[@id=\"customerName\"]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "last_name": {
          "regex": "\\b(\\w+)$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//label[contains(translate(., 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'), \"cardholder name\")]/following-sibling::div//input",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "customer_id": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "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": "//label[contains(.,\"Email\")]/following-sibling::div",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        },
        "phone": {
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "",
          "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": {
          "regex": "(.*)\\W\\w+\\WBalance Due$",
          "type": {
            "label": "Page",
            "value": "path"
          },
          "value": "//h2[contains(.,\"RO #\")]",
          "visibility": {
            "value": "display",
            "label": "Display"
          }
        }
      },
      "isAuto": true,
      "isAutoClose": false,
      "isAutoRunAutomation": true,
      "matchElement": {
        "isEnabled": false,
        "xPath": "",
        "matchingValue": "",
        "attribute": null
      }
    }
  },
  "steps": {
    "8a8c8481-529f-458a-8e95-3f89bf885183": {
      "3f936fc4-f4fc-45e5-aad4-3d39dd691f92": {
        "id": "3f936fc4-f4fc-45e5-aad4-3d39dd691f92",
        "integrationId": "8a8c8481-529f-458a-8e95-3f89bf885183",
        "steps": [
          {
            "id": "b58d0a1c-152a-4291-a1dc-b77fdf86dcab",
            "path": "//div[contains(@class,\"grid-submit\")]/input[1]",
            "type": {
              "value": "click",
              "label": "Click"
            },
            "value": ""
          }
        ],
        "type": "INVOICE"
      }
    },
    "e1c8ec31-63ea-456b-81a1-ffc2cd87403a": {
      "6f32f8bd-36f1-4f05-8c84-0b00ba6fee6a": {
        "id": "6f32f8bd-36f1-4f05-8c84-0b00ba6fee6a",
        "integrationId": "e1c8ec31-63ea-456b-81a1-ffc2cd87403a",
        "steps": [
          {
            "automationLabel": "Payment Amount",
            "id": "63be4423-57b9-498c-abb9-80cc0fe2ab49",
            "options": [],
            "path": "//input[@data-testid=\"currency-field-amount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          }
        ],
        "type": "REFUND"
      },
      "7b9dc25b-1920-482a-bb71-2791ad7c7b9a": {
        "domain": "https://shop.tekmetric.com/admin/shop/*/repair-orders/*/payment",
        "id": "7b9dc25b-1920-482a-bb71-2791ad7c7b9a",
        "integrationId": "e1c8ec31-63ea-456b-81a1-ffc2cd87403a",
        "steps": [
          {
            "automationLabel": "Payment Type",
            "id": "c8cca4b3-52d4-4d60-85a6-23a9cedd7560",
            "path": "//select[@data-testid=\"select-cardType\"]",
            "transactionPaymentTypeSettings": {
              "AMERICAN_EXPRESS": {
                "label": "American Express",
                "value": "American Express"
              },
              "DINERS": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              },
              "DISCOVER": {
                "label": "Discover",
                "value": "Discover"
              },
              "JCB": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              },
              "MASTERCARD": {
                "label": "Mastercard",
                "value": "Mastercard"
              },
              "VISA": {
                "label": "Visa",
                "value": "Visa"
              },
              "DEBIT": {
                "label": "Debit Card",
                "value": "Debit Card"
              },
              "UNKNOWN": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              },
              "CHECKING": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              },
              "SAVINGS": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              },
              "GENERAL_LEDGER": {
                "label": "None",
                "value": "NONE_pj_extension_value"
              }
            },
            "type": {
              "value": "dropdown",
              "label": "Dropdown"
            },
            "useTransactionPaymentType": true,
            "value": null
          },
          {
            "automationLabel": "Last 4",
            "id": "a1b0779a-c827-4edd-af7f-e0fb3b51c960",
            "options": [],
            "path": "//input[@id=\"ccLast4\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Last Four Digits of Card",
              "value": "LAST_FOUR_DIGITS"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Auth Code",
            "id": "2374748a-0401-4944-ac78-6461d577cd12",
            "options": [],
            "path": "//input[@id=\"authCode\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Transaction ID",
              "value": "TRANSACTION_ID"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          },
          {
            "automationLabel": "Amount",
            "id": "4cca7b97-251a-475f-a3b8-9acdd552899b",
            "options": [],
            "path": "//input[@data-testid=\"payment-amount\"]",
            "placementOption": {
              "label": "Replace",
              "value": "replace"
            },
            "transactionApprovalSetting": {
              "label": "Base Amount",
              "value": "BASE_AMOUNT"
            },
            "type": {
              "value": "input",
              "label": "Input"
            },
            "useTransactionApproval": true,
            "value": ""
          }
        ],
        "type": "CHARGE"
      }
    }
  }
}