test(postman): update postman collection files

This commit is contained in:
github-actions
2023-09-14 14:42:46 +00:00
parent c8049542de
commit 089bb64e21

View File

@ -7238,15 +7238,22 @@
" );",
"}",
"",
"// Response body should have value \"connector error\" for \"error type\"",
"// Response body should have value \"cancellation succeeded\" for \"payment status\"",
"if (jsonData?.status) {",
" pm.test(",
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'cancelled'\",",
" \"[POST]::/payments/:id/cancel - Content check if value for 'jsonData.status' matches 'succeeded'\",",
" function () {",
" pm.expect(jsonData.status).to.eql(\"cancelled\");",
" pm.expect(jsonData.status).to.eql(\"succeeded\");",
" },",
" );",
"}",
"",
"// Response body should have value \"0\" for \"amount_capturable\"",
"if (jsonData?.amount){",
" pm.test(\"[post]:://payments/:id/capture - Content check if value for 'amount_capturable' matches 'amount - 0'\", function() {",
" pm.expect(jsonData.amount_capturable).to.eql(0);",
" } )",
"} ",
""
],
"type": "text/javascript"