Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci(postman): Add delay for checkout refunds test cases (#2947)
likhinbopannaf4d534c62692
diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Refund After Partial Capture/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Refund After Partial Capture/Refunds - Create/event.prerequest.jsindex e69de29bb2..97b68c987b 100644--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Refund After Partial Capture/Refunds - Create/event.prerequest.js+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Refund After Partial Capture/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Successful Partial Capture and Refund/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Successful Partial Capture and Refund/Refunds - Create/event.prerequest.jsindex e69de29bb2..97b68c987b 100644--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Successful Partial Capture and Refund/Refunds - Create/event.prerequest.js+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario10-Multiple Captures/Successful Partial Capture and Refund/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario11-Save card flow/Refunds - Create Copy/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario11-Save card flow/Refunds - Create Copy/event.prerequest.jsnew file mode 100644index 0000000000..97b68c987b--- /dev/null+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario11-Save card flow/Refunds - Create Copy/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.test.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.test.jsdeleted file mode 100644index c549d5d0c0..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/event.test.js+++ /dev/null@@ -1,55 +0,0 @@-// Validate status 2xx-pm.test("[POST]::/refunds - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[POST]::/refunds - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Set response object as internal variable-let jsonData = {};-try {- jsonData = pm.response.json();-} catch (e) {}--// pm.collectionVariables - Set refund_id as variable for jsonData.payment_id-if (jsonData?.refund_id) {- pm.collectionVariables.set("refund_id", jsonData.refund_id);- console.log(- "- use {{refund_id}} as collection variable for value",- jsonData.refund_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{refund_id}}, as jsonData.refund_id is undefined.",- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/refunds - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have value "540" for "amount"-if (jsonData?.status) {- pm.test(- "[POST]::/refunds - Content check if value for 'amount' matches '540'",- function () {- pm.expect(jsonData.amount).to.eql(540);- },- );-}--// Validate the connector-pm.test("[POST]::/payments - connector", function () {- pm.expect(jsonData.connector).to.eql("checkout");-});diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.jsondeleted file mode 100644index d18aaf8bef..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/request.json+++ /dev/null@@ -1,42 +0,0 @@-{- "method": "POST",- "header": [- {- "key": "Content-Type",- "value": "application/json"- },- {- "key": "Accept",- "value": "application/json"- }- ],- "body": {- "mode": "raw",- "options": {- "raw": {- "language": "json"- }- },- "raw_json_formatted": {- "payment_id": "{{payment_id}}",- "amount": 540,- "reason": "Customer returned product",- "refund_type": "instant",- "metadata": {- "udf1": "value1",- "new_customer": "true",- "login_date": "2019-09-10T10:11:12Z"- }- }- },- "url": {- "raw": "{{baseUrl}}/refunds",- "host": [- "{{baseUrl}}"- ],- "path": [- "refunds"- ]- },- "description": "To create a refund against an already processed payment"-}diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Create Copy/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.jsondeleted file mode 100644index 688c85746e..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/.event.meta.json+++ /dev/null@@ -1,5 +0,0 @@-{- "eventOrder": [- "event.test.js"- ]-}diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.test.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.test.jsdeleted file mode 100644index 920a7c47f3..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/event.test.js+++ /dev/null@@ -1,50 +0,0 @@-// Validate status 2xx-pm.test("[GET]::/refunds/:id - Status code is 2xx", function () {- pm.response.to.be.success;-});--// Validate if response header has matching content-type-pm.test("[GET]::/refunds/:id - Content-Type is application/json", function () {- pm.expect(pm.response.headers.get("Content-Type")).to.include(- "application/json",- );-});--// Set response object as internal variable-let jsonData = {};-try {- jsonData = pm.response.json();-} catch (e) {}--// pm.collectionVariables - Set refund_id as variable for jsonData.payment_id-if (jsonData?.refund_id) {- pm.collectionVariables.set("refund_id", jsonData.refund_id);- console.log(- "- use {{refund_id}} as collection variable for value",- jsonData.refund_id,- );-} else {- console.log(- "INFO - Unable to assign variable {{refund_id}}, as jsonData.refund_id is undefined.",- );-}--// Response body should have value "succeeded" for "status"-if (jsonData?.status) {- pm.test(- "[POST]::/refunds - Content check if value for 'status' matches 'succeeded'",- function () {- pm.expect(jsonData.status).to.eql("succeeded");- },- );-}--// Response body should have value "6540" for "amount"-if (jsonData?.status) {- pm.test(- "[POST]::/refunds - Content check if value for 'amount' matches '540'",- function () {- pm.expect(jsonData.amount).to.eql(540);- },- );-}diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.jsondeleted file mode 100644index 6c28619e85..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/request.json+++ /dev/null@@ -1,27 +0,0 @@-{- "method": "GET",- "header": [- {- "key": "Accept",- "value": "application/json"- }- ],- "url": {- "raw": "{{baseUrl}}/refunds/:id",- "host": [- "{{baseUrl}}"- ],- "path": [- "refunds",- ":id"- ],- "variable": [- {- "key": "id",- "value": "{{refund_id}}",- "description": "(Required) unique refund id"- }- ]- },- "description": "To retrieve the properties of a Refund. This may be used to get the status of a previously initiated payment or next action for an ongoing payment"-}diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.json b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.jsondeleted file mode 100644index fe51488c70..0000000000--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario14-Save card payment with manual capture/Refunds - Retrieve Copy/response.json+++ /dev/null@@ -1 +0,0 @@-[]diff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario8-Refund full payment/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario8-Refund full payment/Refunds - Create/event.prerequest.jsindex e69de29bb2..97b68c987b 100644--- a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario8-Refund full payment/Refunds - Create/event.prerequest.js+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario8-Refund full payment/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create-copy/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create-copy/event.prerequest.jsnew file mode 100644index 0000000000..97b68c987b--- /dev/null+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create-copy/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..97b68c987b--- /dev/null+++ b/postman/collection-dir/checkout/Flow Testcases/Happy Cases/Scenario9-Partial refund/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.jsindex e69de29bb2..97b68c987b 100644--- a/postman/collection-dir/checkout/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.js+++ b/postman/collection-dir/checkout/Flow Testcases/QuickStart/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund exceeds amount/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund exceeds amount/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..97b68c987b--- /dev/null+++ b/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund exceeds amount/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of filediff --git a/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund for unsuccessful payment/Refunds - Create/event.prerequest.js b/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund for unsuccessful payment/Refunds - Create/event.prerequest.jsnew file mode 100644index 0000000000..97b68c987b--- /dev/null+++ b/postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario6-Refund for unsuccessful payment/Refunds - Create/event.prerequest.js@@ -0,0 +1,3 @@+setTimeout(function(){+ console.log("Sleeping for 3 seconds before next request.");+}, 3000);\ No newline at end of file