feat: use admin_api_key auth along with merchant_id for connector list, retrieve and update apis (#5613)

This commit is contained in:
Hrithikesh
2024-08-21 14:53:10 +05:30
committed by GitHub
parent beb4fb050f
commit b60ced02ff
13 changed files with 135 additions and 226 deletions

View File

@ -484,7 +484,8 @@ Cypress.Commands.add("connectorRetrieveCall", (globalState) => {
headers: {
Accept: "application/json",
"Content-Type": "application/json",
"api-key": globalState.get("apiKey"),
"api-key": globalState.get("adminApiKey"),
"x-merchant-id": merchant_id,
},
failOnStatusCode: false,
}).then((response) => {
@ -530,7 +531,8 @@ Cypress.Commands.add(
headers: {
Accept: "application/json",
"Content-Type": "application/json",
"api-key": globalState.get("apiKey"),
"api-key": globalState.get("adminApiKey"),
"x-merchant-id": merchant_id,
},
body: updateConnectorBody,
failOnStatusCode: false,
@ -554,7 +556,8 @@ Cypress.Commands.add("connectorListByMid", (globalState) => {
url: `${globalState.get("baseUrl")}/account/${merchant_id}/connectors`,
headers: {
"Content-Type": "application/json",
"api-key": globalState.get("apiKey"),
"api-key": globalState.get("adminApiKey"),
"X-Merchant-Id": merchant_id,
},
failOnStatusCode: false,
}).then((response) => {
@ -2062,7 +2065,8 @@ Cypress.Commands.add("ListMCAbyMID", (globalState) => {
url: `${globalState.get("baseUrl")}/account/${merchantId}/connectors`,
headers: {
"Content-Type": "application/json",
"api-key": globalState.get("apiKey"),
"api-key": globalState.get("adminApiKey"),
"X-Merchant-Id": merchantId,
},
failOnStatusCode: false,
}).then((response) => {